The Challenge of Gene Regulatory Networks
Discovering the causal structure of Gene Regulatory Networks (GRNs) from observational data is a holy grail in computational biology. Understanding how genes regulate one another is critical for designing targeted drugs and biological experiments. However, framing this as a standard causal discovery problem hits two major roadblocks:
- Cycles: Standard causal discovery assumes the underlying system is a Directed Acyclic Graph (DAG). But biology is full of feedback loops and cycles, meaning DAGs are fundamentally the wrong model for GRNs.
- Uncertainty: Biological data is noisy and limited. For any given dataset, there is usually a massive "equivalence class" of graphs that explain the data equally well. Instead of outputting a single "best" graph, we need a Bayesian posterior distribution over all plausible graphs.
Existing methods typically force a choice: either identify cycles but only output a single point-estimate graph, or learn complex Bayesian posteriors but restrict the search space strictly to DAGs.
To bridge this gap, researchers introduce DynGFN, a novel method that leverages Generative Flow Networks (GFlowNets) and RNA velocity data to learn Bayesian posteriors over cyclic causal structures.
Methods: Reframing Structure Learning
The authors reframe structure learning as the sparse identification of a dynamical system. To achieve this, they rely on RNA velocity techniques, which estimate both a gene's current expression state ($x$) and its instantaneous rate of change ($dx$). Having access to $dx$ allows the model to treat the system's dynamics as a regression task ($dx = f(x)$) rather than relying on computationally heavy differential equation solvers. This acts as a "causal cheat code," allowing models to capture cyclic feedback loops over time without explicitly unrolling complex ODEs.
The core architecture of DynGFN consists of three interconnected components:
- GFlowNet Graph Sampler: A Generative Flow Network sequentially builds cyclic graphs by adding edges. GFlowNets excel at sampling from multi-modal discrete distributions, making them perfect for exploring the massive combinatorial space of possible graphs without forcing restrictive parametric assumptions.
- Parameter HyperNetwork: Because the parameters of the structural model depend on the specific graph $G$ being evaluated, a HyperNetwork generates these parameters on the fly. (For simpler linear systems, the authors bypass the HyperNetwork and solve for the parameters analytically).
- Structural Model: A neural network (or linear model) that predicts the velocity $dx$ from the state $x$, masked by the graph $G$ sampled by the GFlowNet.
To make the massive search space tractable, the authors introduce a per-node factorization. By assuming causal sufficiency (all relevant variables are observed), the $2^{d^2}$ graph search space is broken down into $d$ independent $2^d$ search spaces (where $d$ is the number of variables). The GFlowNet only has to learn the parent distribution for one node at a time, drastically shrinking the state space.
Experimental Validation
The researchers evaluated DynGFN across several datasets, including synthetic toy systems, 20-variable dynamical systems, and real single-cell RNA-velocity data from human Fibroblasts (focusing on a 5-gene cell cycle module).
They also introduced a novel Indeterminacy Benchmark to evaluate Bayesian posteriors. By artificially adding perfectly correlated "copy" variables to a synthetic system, they created a known, highly multi-modal ground-truth posterior to test if models actually capture structural uncertainty.
Key Results
DynGFN was compared against dynamic adaptations of state-of-the-art Bayesian DAG learners (DiBS and BCD-Nets):
- Synthetic Linear Systems (20 nodes): The linear analytic version of DynGFN ($\ell$-DynGFN) achieved a Bayes-SHD (Structural Hamming Distance) of 22.8, outperforming baselines (29.2 and 32.0). It also achieved a vastly superior KL divergence (1091 vs. 1707 and 6622), proving it models the true multi-modal posterior much more accurately.
- Real Single-Cell Data (5 nodes): On the human Fibroblast RNA-velocity data, $\ell$-DynGFN modeled the posterior significantly closer to the ground truth, achieving a KL divergence of 44.98 compared to 321.95 and 550.17 for the baselines.
- Qualitative Success: In toy datasets, DynGFN successfully identified true cyclic dependencies where standard DAG-based methods completely failed.
Limitations and Future Work
While DynGFN represents a significant step forward, it faces two primary challenges:
- Scalability: Even with per-node factorization, the state space grows exponentially ($d 2^d$). The method is currently limited to small systems (e.g., 5 to 20 variables) and cannot yet scale to a full genome.
- Training Instability: Training a GFlowNet jointly with a learned energy function (the HyperNetwork) is highly unstable, often requiring careful initialization tricks to converge properly.
Future work may scale the method by incorporating biological priors—such as initializing the GFlowNet with known high-confidence gene connections—or by grouping genes into functional modules to learn the structure between sets of genes rather than individual genes.
Summary updated