---
title: 'CByG: Controllable Bayesian Flow Guidance'
url: https://www.emergentmind.com/topics/cbyg
type: topic
---

# CByG: Controllable Bayesian Flow Guidance

Searching arXiv for papers explicitly mentioning or closely related to "CByG".
CByG is an ambiguous label across current arXiv-adjacent technical discussions. Its explicit and named use is **“Controllable Bayesian Flow Network with Integrated Guidance,”** a framework for controllable 3D molecular generation in structure-based drug design (SBDD) that generates ligands conditioned on a protein pocket while steering sampling toward binding affinity, synthetic feasibility, and selectivity [2508.21468]. In other arXiv contexts, the same letter sequence appears only as an interpretive shorthand attached to distinct topics, including cycle-code / cylinder-type / girth-based quasi-cyclic LDPC construction [1403.0804], succinct colored de Bruijn graph comparison pipelines [2411.09114], and Cayley-graph / generalized bicycle CSS codes [2507.21237]. Related Byzantine-SGD terminology such as **ByGARS** is adjacent in spelling but does not define or use CByG [2006.13421].

## 1. Nomenclature and scope

The explicit arXiv meaning of CByG is concentrated in one paper, whereas several other uses are contextual or interpretive rather than author-defined. This distinction matters because the acronym otherwise risks conflating unrelated literatures.

| Usage | Domain | Status |
|---|---|---|
| **Controllable Bayesian Flow Network with Integrated Guidance** | Structure-based drug design | Explicit acronym [2508.21468] |
| Cycle-code / cylinder-type / girth-based construction | QC-LDPC cycle codes | Interpretive shorthand [1403.0804] |
| Colored de Bruijn graph analysis | Comparative genomics | Interpretive shorthand [2411.09114] |
| Cayley-graph / generalized bicycle CSS codes | Quantum error correction | Interpretive shorthand [2507.21237] |
| Byzantine gradient aggregation | Distributed learning | Related terminology only; not CByG [2006.13421] |

In the explicit SBDD usage, CByG is not a new generative backbone from scratch. The framework starts from a pretrained **Bayesian Flow Network (BFN)**, inherits the architecture and pretrained weights from **MolCRAFT**, and adds inference-time conditional guidance through an external Bayesian property predictor. The technical novelty is therefore concentrated in the guidance formalism, the hybrid continuous/discrete update mechanism, and the evaluation protocol rather than in a wholly new unconditional generator [2508.21468].

## 2. CByG as controllable 3D molecular generation

CByG is defined for pocket-conditioned 3D ligand generation. The generated ligand is written as
$$
\mathbf{m}=\{(\mathbf{x}_{\mathrm{M}},\mathbf{v}_{\mathrm{M}})\},
$$
where \(\mathbf{x}_{\mathrm{M}}\in\mathbb{R}^{N_{\mathrm{M}}\times 3}\) are ligand atom coordinates and \(\mathbf{v}_{\mathrm{M}}\in\mathbb{R}^{N_{\mathrm{M}}\times K}\) are atom-type variables over \(K\) categories. The conditioning protein pocket is
$$
\mathbf{P}=\{(\mathbf{x}_{\mathrm{P}},\mathbf{v}_{\mathrm{P}})\}.
$$
The target properties are denoted by \(\mathtt{l}\), and the framework uses those properties during sampling as guidance signals [2508.21468].

The motivating claim is that prior SBDD generation work is evaluated too narrowly, often mainly by docking affinity and typically with **AutoDock Vina** alone, whereas realistic drug discovery also requires **synthetically feasible** and **selective** molecules. The paper further argues that conventional diffusion-based guidance is poorly matched to 3D molecule generation because the data are **hybrid-modal**: coordinates are continuous but atom types are categorical. Three specific limitations are identified. First, diffusion guidance has difficulty modeling interactions between coordinate and type variables when they are assigned different distributions. Second, gradient guidance on categorical variables is unstable or ineffective because reverse sampling often involves **argmax** or other non-differentiable operations. Third, directly perturbing intermediate noisy molecular states in sample space can damage chemical and geometric validity. The paper also argues that guidance based on \(p(\mathtt{l}\mid \mathbf{x}_t)\), meaning property prediction from noisy intermediate states, is unsuitable because such intermediates are chemically meaningless [2508.21468].

The unconditional BFN distribution is written as
$$
p_\phi(\mathbf{m}) = \int p_\phi(\mathbf{m}\mid\boldsymbol{\theta}_n)p(\boldsymbol{\theta}_0)\prod_{i=1}^n p_{\mathtt{U}}(\boldsymbol{\theta}_i\mid\boldsymbol{\theta}_{i-1};\alpha_i)\,d\boldsymbol{\theta}_{1:n}.
$$
For pocket- and property-conditioned generation, the paper extends this to
$$
p_\phi(\mathbf{m}\mid\mathbf{p},\mathtt{l}) = \int p_\phi(\mathbf{m}\mid\boldsymbol{\theta}_n,\mathbf{p},\mathtt{l}) p(\boldsymbol{\theta}_0)\prod_{i=1}^n p_{\mathtt{U}}(\boldsymbol{\theta}_i\mid\boldsymbol{\theta}_{i-1},\mathbf{p},\mathtt{l};\alpha_i)\, d\boldsymbol{\theta}_{1:n},
$$
and then factorizes the model over coordinates and atom types. This makes the object of control the BFN parameter state \(\boldsymbol{\theta}\), not the molecular sample directly [2508.21468].

## 3. Bayesian-flow updates and integrated guidance

CByG reformulates BFN updates in gradient form and then augments them with conditional guidance. In the appendix, the BFN is specified through four distributions: the input distribution \(p_{\mathtt{I}}(\mathbf{m}\mid\boldsymbol{\theta})\), output distribution \(p_{\mathtt{O}}(\mathbf{m}\mid\boldsymbol{\theta},t)\), sender distribution \(p_{\mathtt{S}}(\mathbf{y}\mid\mathbf{m};\alpha)\), and receiver distribution \(p_{\mathtt{R}}(\mathbf{y}\mid\boldsymbol{\theta},t,\alpha)\). The Bayesian update distribution is
$$
p_{\mathtt{U}}\left(\boldsymbol{\theta}_i \mid \boldsymbol{\theta}_{i-1}; \alpha_i\right)
=
\mathbb{E}_{p_{\mathtt{O}}(\mathbf{m}\mid \theta_{i-1} ; t_i)}
\left[
\mathbb{E}_{p_{\mathtt{S}}(\mathbf{y}_i \mid \mathbf{m} ; \alpha_i)}
\left[
\delta\left(\boldsymbol{\theta}_i-h\left(\boldsymbol{\theta}_{i-1}, \mathbf{y}_i, \alpha_i\right)\right)
\right]
\right].
$$
This is the formal substrate on which the guidance term is inserted [2508.21468].

For coordinates, the sender is Gaussian,
$$
p_{\mathtt{S}}(\mathbf{y} \mid \mathbf{X} ; \alpha \mathbf{I})=\mathcal{N}\left(\mathbf{X}, \alpha^{-1} \mathbf{I}\right),
$$
and the Bayesian update obeys
$$
\rho_i=\rho_{i-1}+\alpha_i,\qquad
\boldsymbol{\theta}^{\mathbf{x}_i} = \frac{\boldsymbol{\theta}^{\mathbf{x}_{i-1}}\rho_{i-1}+\mathbf{y}\alpha_i}{\rho_i}.
$$
Using Tweedie’s formula,
$$
\mathbb{E}[\mu_\mathbf{x} \mid \mathbf{x}] = \mathbf{x} + \Sigma_\mathbf{x}\nabla_\mathbf{x}\log p(\mathbf{x}),
$$
the paper rewrites the update in a score-like form. For discrete atom types, the update is based on a softmax posterior and is given a continuous-relaxation / Tweedie-style interpretation that exposes a gradient term on the categorical variable. This is central to the paper’s claim that BFN guidance can handle the continuous/discrete hybrid without diffusion-style argmax pathologies [2508.21468].

The conditional move is conceptually
$$
\nabla \log p(\mathbf{x})
\rightarrow
\nabla \log p(\mathbf{x}\mid \mathtt{l})
=
\nabla \log p(\mathbf{x}) + \nabla \log p(\mathtt{l}\mid \mathbf{x}),
$$
with an analogous modification for atom types. The coordinate update is explicitly decomposed into an **Unconditional Generation** term plus a **Controllable Guidance** term proportional to
$$
\frac{1}{\rho_i}\nabla_\mathbf{x}\log p(\mathtt{l}\mid \mathbf{x}).
$$
For atom types, the guided update is written as a softmax expression in which the unconditional factor is multiplied by a controllable-guidance factor involving \(\nabla_{\mathbf{e}_\mathbf{x}}\log p(\mathtt{l}\mid \mathbf{e}_\mathbf{x})\). In the paper’s terminology, “gradient integration” means that property guidance is inserted into the **Bayesian posterior update** rather than added as an ad hoc sample-space perturbation [2508.21468].

The paper contrasts this with diffusion guidance. In diffusion, guidance modifies the reverse process using \(\nabla_{\mathbf{x}_t}\log p(y\mid \mathbf{x}_t)\) or an approximation based on \(\hat{\mathbf{x}}_0\). In CByG, the analogous control term enters a parameter update,
$$
\boldsymbol{\theta}_{i} =
\frac{\rho_{i-1}}{\rho_i}\boldsymbol{\theta}_{i-1}
+
\frac{\alpha}{\rho_i}\mathbf{x}_0
+
\frac{1}{\rho_i}\nabla_{\mathbf{x}_0}\log p(\mathbf{x}_0)
+
\frac{1}{\rho_i}\nabla_{\mathbf{x}_0}\log p(y\mid \mathbf{x}_0).
$$
The paper’s claim is that diffusion perturbs the **sample**, whereas BFN updates **distribution parameters** using noisy observations, so the guidance acts more stably [2508.21468].

## 4. Property prediction, uncertainty, and implementation

The guidance signal is supplied by an external Bayesian property predictor,
$$
p(\mathtt{l}\mid \mathbf{m}, \mathbf{p}) = \mathcal{N}\big(\mathtt{l}; \boldsymbol{\mu}_{\vartheta}(\mathbf{m},\mathbf{p}), \boldsymbol{\sigma}_{\vartheta}(\mathbf{m},\mathbf{p})^2\big),
$$
which outputs both a predictive mean and predictive variance. The paper estimates these quantities over \(M\) stochastic forward passes and decomposes the variance by the law of total variance into **Aleatoric Uncertainty** and **Epistemic Uncertainty**. The predictor is trained with Gaussian negative log-likelihood,
$$
\mathcal{L}_\text{NLL}\left( \mathbf{y}_n, \mathbf{x}_n\right)
=
\frac{\log \boldsymbol{\sigma}_{\vartheta}^2\left(\mathbf{x}_n\right)}{2}
+
\frac{\left(\boldsymbol{\mu}_{\vartheta}\left(\mathbf{x}_n\right)-\mathbf{y}_n\right)^2}{2 \boldsymbol{\sigma}_{\vartheta}^2\left(\mathbf{x}_n\right)},
$$
and a \(\beta\)-weighted version
$$
\mathcal{L}_{\beta\text{-NLL}\left(\mathbf{y}_n, \mathbf{x}_n\right)}
=
\operatorname{stop}\left(\mathbf{\sigma}^{2 \beta}\right)\,
\mathcal{L}_\text{NLL}\left(\mathbf{y}_n, \mathbf{x}_n\right),
$$
with \(\beta>0\) [2508.21468].

A central practical claim is that guidance is applied **at inference time**, not by retraining the generator. The BFN backbone is pretrained; the property predictor is trained separately. This permits, in the paper’s framing, **multi-property optimization directly at sampling time without retraining**. The controlled properties emphasized are **binding affinity**, **synthetic feasibility**, and **selectivity**. In the selectivity setting, the task is explicitly defined as increasing affinity to an **on-target** while reducing affinity to an **off-target** [2508.21468].

The property predictor adapts the **TargetDiff** graph transformer by removing the equivariant head, yielding an **SE(3)-invariant graph transformer**. The stated implementation details are: **16 attention heads**, **three SE(3)-invariant layers** in each attention block, hidden dimension **64**, key/value embeddings from a **two-layer MLP**, **LayerNorm** throughout, **Swish** activation, and an exponentially decayed learning rate with factor **0.6**, lower bound \(1\times 10^{-6}\), triggered after ten validation checks without improvement, with validation every 1000 steps. The paper also states an \(O(3)\)-equivariance argument: if the property predictor is invariant under \(T_g(\mathbf{x})=\mathbf{R}\mathbf{x}\), then its coordinate gradient is equivariant under the same transformation [2508.21468].

Several caveats are explicit. The paper does **not** provide a clean general formula for aggregating multiple property gradients into one joint objective, even though the framework is described as supporting multiple properties. It also notes an unresolved tension in the displayed uncertainty-weighting formula: the text says uncertainty should “moderate” guidance, but the written sampling update multiplies the gradient term by \(\sigma_\vartheta^2\), which appears to increase guidance with variance. The paper does not clarify that point further [2508.21468].

## 5. Evaluation protocol, empirical results, and limitations

The main generation experiments use **CrossDocked2020**, following the filtered split of Luo et al.: the source corpus contains **22.5M protein–ligand pairs**, and after RMSD filtering and a **30% sequence identity split**, the reported setup uses **100,000 training pairs** and **100 test proteins**, sampling **100 molecules** per test protein. A separate selectivity benchmark is constructed from kinase inhibitor selectivity data with **38 kinase inhibitors**, initially **317 kinases** in the main text, and a final curated set of **279 proteins** after UniProt/ATP-binding-site filtering. Protein structures are predicted with **AlphaFold3**, and pockets are extracted around ATP binding sites [2508.21468].

The evaluation suite is deliberately broader than single-docking benchmarks. Binding is assessed with **AutoDock Vina**, **SMINA**, and **GNINA**, reporting **Score.** and **Dock.** values. The paper also reports **High Affinity**, **SA**, **PB-Valid** from **PoseBusters**, and **Diversity**. For retrosynthetic realism it uses **AiZynthFinder**, reporting **Solved**, **Routes**, **Solved Routes**, and **Top Score**. Structural quality is additionally examined with **PoseCheck** in the appendix. Baselines are divided into generation-only methods—**AR**, **Pocket2Mol**, **TargetDiff**, **DecompDiff**, **MolCRAFT**—and optimization/generation methods—**RGA**, **DecompOpt**, **TacoGFN**, **ALIDiff**, and **TargetOpt**—with **TargetOpt** serving as the main diffusion-guided comparator [2508.21468].

On the principal docking and quality benchmarks, CByG is reported as the strongest overall method. The stated values are: **SMINA** Score. \(-7.74\), Dock. \(-9.61\); **GNINA** Score. \(-7.63\), Dock. \(-8.33\); **Vina** Score. \(-8.60\), Dock. \(-9.16\); **High Affinity** Avg. \(93.6\%\), Med. \(100.0\%\); **SA** Avg. \(0.84\), Med. \(0.87\); **PB-Valid** Avg. \(94.9\%\), Med. \(96.0\%\); and **Diversity** Avg. \(0.61\), Med. \(0.62\). For **AiZynthFinder**, the paper reports **Solved \(0.487\)**, **Routes \(334.4\)**, **Solved Routes \(18.90\)**, and **Top Score \(0.853\)**. The paper also stresses that SA and AiZynthFinder solvability are **not strongly correlated**, treating that as evidence that SA alone is an inadequate proxy for realistic synthesis [2508.21468].

In the selectivity benchmark, the reported success rates are **58.2\%** for **TargetDiff**, **68.6\%** for **TargetOpt**, **62.6\%** for **CByG w/o G**, and **78.3\%** for full **CByG**. The associated \(\Delta\) score improves from **\(-0.78\)** for the diffusion pair to **\(-1.39\)** for the BFN pair. Appendix ablations report that removing position guidance, removing type guidance, or removing uncertainty all degrade performance; among tested guidance scales, \((\lambda_{\mathbf{x}},\lambda_{\mathbf{v}})=(40,40)\) is best, \((30,30)\) under-guides, and \((50,50)\) reduces SA and PB-valid. The paper’s strongest stated limitation is synthetic feasibility: even for CByG, **approximately half of the molecules generated remain synthetically infeasible**, reflected in the **Solved \(0.487\)** result [2508.21468].

## 6. Other arXiv interpretations and adjacent uses

Outside SBDD, CByG is not a standardized acronym but rather a label that can be projected onto several structurally different literatures. In **“Double Cylinder Cycle codes of Arbitrary Girth”** [1403.0804], the relevant notion is **cycle-code / cylinder-type / girth-based construction** for QC-LDPC cycle codes. That paper studies column-weight-two quasi-cyclic cycle codes, defines a mother matrix \(H(a,b,c)\), analyzes a **block-structure graph** \(\mathrm{BSG}(H)\), and derives the maximum achievable girth
$$
g_{\max}= \begin{cases}
8(a+c), & b\ge \left\lceil \dfrac{a-1}{c+1}\right\rceil+2,\\[1.2ex]
4(bc+b+a-1), & \text{otherwise}.
\end{cases}
$$
with design rate
$$
{\cal R}=1-\frac{(a+c-1)b}{(a+c)b}=\frac{1}{a+c}.
$$
The paper therefore fits a **construction-by-girth** reading of CByG, but it does not use the acronym itself [1403.0804].

In **“Comparative genomics with succinct colored de Bruijn graphs”** [2411.09114], the relevant reading is **colored de Bruijn graph** analysis. That paper introduces **gcBB** and **mgcBB**, methods that compare genomes directly from a succinct colored de Bruijn graph in **BOSS** form using the **Burrows-Wheeler Similarity Distribution (BWSD)** rather than alignments or explicit path extraction. The BOSS space cost is stated as
$$
5m + 6\log_2 m \text{ bits},
$$
and the reported end-to-end runtime improves from about **156.4 days** for gcBB to about **20.6 days** for mgcBB. On a 12-species **Drosophila** phylogeny task, the best reported configuration is **entropy distance with coverage** at \(k=31\) and \(k=63\), both achieving **RF distance \(1\)**. This is a colored-graph usage, not an explicit CByG acronym expansion [2411.09114].

In **“(2,2)-GB Codes: Classification and Comparison with weight-4 Surface Codes”** [2507.21237], the technical note explicitly says that the paper does **not** use the acronym CByG, but that the closest intended meaning is **Cayley/Bicycle/Generalized-bicycle CSS codes**. The paper studies \((2,2)\)-GB codes of the form \(GB(1+X^a,1+X^b,n)\), identifies
$$
GB(1+X^a,1+X^b,n)=CSS(\mathbb Z/n\mathbb Z,\overline a,\overline b),
$$
introduces a lattice-based distance lower bound, and constructs three infinite optimal families:
$$
[[2n^2,2,n]],\qquad [[4r^2,2,2r]],\qquad [[(2t+1)^2+1,2,2t+1]].
$$
It also introduces **CGP-equivalence**, a CSS-preserving equivalence notion based on qubit permutations. This is again a plausible interpretive use of CByG, but not an author-declared acronym [2507.21237].

By contrast, **“ByGARS: Byzantine SGD with Arbitrary Number of Attackers”** [2006.13421] is only terminologically adjacent. The paper proposes **ByGARS** and **ByGARS++**, not CByG. Its relevance is limited to nearby naming patterns in robust distributed learning; substantively it concerns auxiliary-data-driven reputation scores for Byzantine gradient aggregation and is not part of the CByG nomenclature itself [2006.13421].

Taken together, the current arXiv landscape makes CByG primarily a name for **controllable Bayesian-flow-guided 3D molecular generation** in SBDD, with several secondary, non-standardized interpretive uses in coding theory, comparative genomics, and quantum error correction. The commonality across those secondary uses is not a shared method, but only a shared letter pattern attached to graph- or guidance-centric constructions.

Source: https://www.emergentmind.com/topics/cbyg