DynGFN: Towards Bayesian Inference of Gene Regulatory Networks with GFlowNets

Lazar Atanackovic, Alexander Tong, Jason Hartford, Leo J. Lee, Bo Wang, Yoshua Bengio · DOI

Abstract

One of the grand challenges of cell biology is inferring the gene regulatory network (GRN) which describes interactions between genes and their products that control gene expression and cellular function. We can treat this as a causal discovery problem but with two non-standard challenges: (1) regulatory networks are inherently cyclic so we should not model a GRN as a directed acyclic graph (DAG), and (2) observations have significant measurement noise, so for typical sample sizes there will always be a large equivalence class of graphs that are likely given the data, and we want methods that capture this uncertainty. In this paper, we leverage RNA velocity techniques to develop an approach that addresses both challenges. By treating Bayesian structure learning as sparse identification of a dynamical system, we capture cyclic feedback loops through time. We leverage Generative Flow Networks (GFlowNets) to estimate the posterior distribution over the combinatorial space of possible sparse dependencies. Our results indicate that our method learns posteriors that better encapsulate the distributions of cyclic structures compared to state-of-the-art Bayesian structure learning approaches.

Introduction

Inferring Gene Regulatory Networks (GRNs) is a fundamental task in systems biology, aimed at understanding the causal mechanisms governing cellular function. Traditional causal discovery methods often struggle with two primary characteristics of biological systems: inherent cyclicity and high measurement noise. Most existing frameworks assume a Directed Acyclic Graph (DAG) structure, which fails to account for the ubiquitous feedback loops in biology. Furthermore, noisy single-cell RNA sequencing data often leads to multiple plausible network structures, necessitating a Bayesian approach that can quantify uncertainty rather than providing a single point estimate.

Methodology: The DynGFN Framework

DynGFN addresses these challenges by framing GRN inference as the sparse identification of a dynamical system. The framework integrates three key components: RNA velocity data, GFlowNets for structure sampling, and HyperNetworks for parameter estimation.

RNA Velocity and Dynamical Modeling

Instead of relying solely on static gene expression levels ($x$), DynGFN utilizes RNA velocity ($dx/dt$) to model the instantaneous change in expression. This allows the problem to be treated as a regression task where $dx \approx f(x, G)$, bypassing the need to solve complex differential equations and enabling the distinction between reciprocal causal directions (e.g., $A \to B$ vs. $B \to A$).

Structure Learning with GFlowNets

The core of the architecture is a GFlowNet Graph Sampler. GFlowNets are trained to sample discrete objects—in this case, the adjacency matrix $G$—with a probability proportional to a given reward function. This allows the model to explore the vast space of possible graphs and identify multiple high-probability modes, effectively capturing the Bayesian posterior.

Parameter Estimation via HyperNetworks

To handle the dependency of functional parameters $\theta$ on the graph structure $G$, the authors employ a Parameter HyperNetwork. This network takes a sampled graph as input and generates the corresponding parameters $\theta$, ensuring that the model remains flexible across different candidate structures.

The DynGFN architecture consists of a GFlowNet graph sampler, a parameter HyperNetwork, and a structural model that predicts gene expression velocity.

Experimental Evaluation

The authors evaluated DynGFN on both synthetic and real-world biological datasets:

  1. Synthetic Systems: Linear and non-linear dynamical systems designed with "indeterminacy" to test the model's ability to capture full posterior distributions.
  2. Human Fibroblast Data: Real-world single-cell RNA-velocity data focusing on a 5-gene cell cycle module with partially known ground-truth interactions.

Results and Discussion

DynGFN demonstrated superior performance in capturing the true posterior distribution compared to baselines like DynDiBS. In synthetic tests, it achieved significantly lower KL-divergence, indicating a more accurate representation of the graph distribution.

Handling Cyclic Structures

In a toy 3-variable cyclic system, DynGFN achieved an AUC-ROC of 1.0. Unlike methods like NOTEARS, which are constrained to DAGs, DynGFN successfully identified cyclic dependencies and interaction strengths.

Heatmap showing the learned interaction weights for a 3-variable system using DynGFN, illustrating its ability to capture specific interaction strengths in the posterior.

Biological Discovery

On human Fibroblast data, DynGFN identified known regulatory pathways within the cell cycle module. It outperformed other Bayesian structure learning approaches in terms of Structural Hamming Distance (SHD), providing a more reliable and uncertainty-aware map of gene interactions.

Conclusion

DynGFN represents a significant step toward robust Bayesian inference of cyclic biological networks. By combining the generative power of GFlowNets with the temporal information in RNA velocity, it provides a principled way to handle both feedback loops and data uncertainty. Future work will focus on improving scalability to genome-wide scales and incorporating prior biological knowledge to further refine the search space.

Summary updated

BibTeX
@inproceedings{atanackovic2023dyngfn,
  author = {Lazar Atanackovic and Alexander Tong and Jason Hartford and Leo J. Lee and Bo Wang and Yoshua Bengio},
  title = {{DynGFN: Towards Bayesian Inference of Gene Regulatory Networks with GFlowNets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=e7MK5Vq44Q},
}
Figure