Epistasis as a Steady State: Genotype-Driven Gene Network Equilibria Without ODE Integration

Twin and family studies say genes explain much more of human trait variation than the variants found in genome-wide scans can account for. This gap is called "missing heritability." Part of it appears to be non-additive: variants whose effects depend on other variants, a pattern called epistasis. Current tools measure how much epistasis there is, but they do not explain where it comes from. We propose a simple mechanistic account and a way to fit it cheaply. Each person's gene expression profile is treated as the resting state (the equilibrium) of a shared gene-regulatory network, described as a differential equation. Each person's inherited variants shift the network's production rates additively. Because regulation saturates, as when transcription factors bind cooperatively and switch genes on in an S-shaped way, purely additive shifts in the parameters can produce non-additive variation in expression. If that holds, some of the "missing" epistatic variance is simply what a nonlinear network does to additive inputs.

The computational obstacle is solver overhead. Continuous-time network models are usually trained by numerically stepping an ODE solver through time. Doing this for every individual at every training step is expensive, and it is unstable when feedback loops make the system stiff. Population genotype–expression data are cross-sectional snapshots of cells near equilibrium, not trajectories. So we never need to integrate through time. We solve for the equilibrium directly by root-finding, and we compute gradients by implicit differentiation. The core claim is that this equilibrium formulation makes genotype-conditioned mechanistic networks cheap enough to fit on population data. It then lets us test a sharp prediction: a network with additive-in-parameter genetic effects reproduces the marginal epistasis that variance-component methods detect.

Core Claim and Mechanism

We borrow the regulatory model from Interpretable Neural ODEs for Gene Regulatory Network Discovery under Perturbations (PerturbODE). That paper models expression change as $A\sigma(\alpha\circ(By-\beta))$ plus interventions minus decay. Here $y$ is the expression vector, $B$ maps genes to a small set of regulatory modules, $A$ maps module activity back to genes, and the sigmoid $\sigma$ stands in for a cooperative-binding Hill curve. PerturbODE fits this to single-cell data from laboratory overexpression experiments by explicit time integration. Its authors report high solver variability and large-magnitude mispredictions. That paper supplies our dynamics; its reported instability motivates our solver choice.

Our change is to make the intervention term a person-specific, additive function of local (cis) genotype. Individual $i$'s expression is then the fixed point

$$y_i^* = D^{-1}\left(A\,\sigma(\alpha\circ(B y_i^* - \beta)) + W g_i + c\right),$$

where $D$ is a diagonal matrix of positive decay rates, $g_i$ is the vector of cis-variant genotypes near each gene, $W$ is a sparse matrix of additive per-variant production effects, and $c$ is baseline production. We constrain the spectral norms of $A$ and $B$ relative to $D$ so that the map on the right is a contraction. That guarantees a unique, stable equilibrium. We find it by Newton iteration warm-started from a fixed-point step. The training gradient needs one linear solve with the Jacobian at the equilibrium, not a backward pass through a solver trajectory. The contraction constraint rules out multistable networks. We accept this limitation and state it openly.

Epistasis is then a derived quantity, not a fitted one. Under a fitted model we draw genotypes from the empirical allele-frequency and linkage structure. We compute $y^*$ and split each gene's genetic variance into the part explained by the best additive projection on genotypes and the remainder. The remainder is model-implied non-additive variance. Every unit of it traces to specific saturating modules and specific pairs of upstream variants.

Relation to Prior Work

Three quantitative-genetics methods motivate the question and set targets. Detecting epistasis with the marginal epistasis test in genetic mapping studies of quantitative traits (MAPIT) estimates each variant's combined interaction with the rest of the genome as a variance component. On GEUVADIS it found 3,434 marginally epistatic QTLs across 228 genes. For several of those genes it estimated roughly 10% of expression variance as epistatic versus 3.5% additive. Discovering non-additive heritability using additive GWAS summary statistics (i-LDSC) recovers local non-additive signal from summary statistics in 24 of 25 UK Biobank traits. Novel methods for epistasis detection in genome-wide association studies (epiGWAS) recasts partner-finding as causal inference. All three treat interaction as a static statistical parameter. None proposes a generative mechanism that predicts which pairs interact, in which direction, or why. We aim to supply that mechanism, and we use MAPIT's GEUVADIS output as the external target it must reproduce.

The continuous-time literature supplies solver lessons and a constraint. Automatic and Structure-Aware Sparsification of Hybrid Neural ODEs with Application to Glucose Prediction shows that feedback cycles make mechanistic ODEs stiff. It stabilizes them by collapsing cycles and pruning. We keep cycles and handle stability through the contraction constraint instead. The same paper stresses that different graphs can yield identical outputs, which constrains how causally we may read the fitted $A$ and $B$. Individualized Dosing Dynamics via Neural Eigen Decomposition removes solvers by making dynamics linear enough for closed-form solutions. That route destroys the saturation that produces epistasis in our model, so we reject it. Simulation-free methods, namely Building Normalizing Flows with Stochastic Interpolants, CFO: Learning Continuous-Time PDE Dynamics via Flow-Matched Neural Operators, and Joint Velocity-Growth Flow Matching for Single-Cell Dynamics Modeling, avoid solvers by regressing velocities along known or constructed paths. They need time-indexed data that genotyped cohorts lack. Our equilibrium approach removes the solver for a different reason: the observable is the endpoint, not the path.

Research Program

The first stage is a synthetic study where the truth is known. We build networks in the style of SERGIO (the 400-gene synthetic benchmark used by PerturbODE) and have simulated genotypes additively shift production rates. We then compute true additive and non-additive variance by exhaustive simulation. This tests three things. Can the equilibrium fit recover $W$ and module structure from a few hundred individuals? Does the model-implied non-additive variance match the truth? How do cost and failure rate compare with integrating to steady state as network stiffness rises?

The second stage fits GEUVADIS: 462 individuals with lymphoblastoid RNA-seq and genotypes. We restrict to the 228 MAPIT genes plus their strongest co-expression partners, a few hundred genes in total. We use sparse cis-variant effects and a small number of modules so that parameter count stays well below sample-limited regimes. Covariates and expression principal components are regressed out first, as in standard eQTL practice. We then run MAPIT on the model's predicted expression and ask whether the fitted mechanism regenerates MAPIT's epistatic signal.

The third stage checks the equilibrium solver on TF Atlas, the 1.1-million-cell, 1,836-overexpression dataset from PerturbODE. Overexpression is a known shift to the intervention term, and post-perturbation populations are near steady state. This lets us compare equilibrium fitting against PerturbODE's integration-based training on its own data. It does not assume that the embryonic-stem-cell networks transfer to lymphoblastoid cells, which they likely do not.

Baselines

The naive reference is a per-gene linear cis-eQTL model: expression regressed on the same cis genotypes with the same sparsity penalty. It defines the additive-only ceiling. Any variance the mechanistic model explains beyond it on held-out individuals must come from cross-gene structure or nonlinearity.

The strongest existing method for the epistasis question is MAPIT itself, run on the observed GEUVADIS expression. Its reported result, 3,434 mepiQTLs across 228 genes with about 10% epistatic versus 3.5% additive variance for several genes, is the target. The fair comparison runs MAPIT on the model's predicted expression for held-out individuals and on the observed expression for those same individuals, with the same genotype filtering. Beating it does not mean finding more epistasis. It means reproducing a substantial, pre-registered fraction of MAPIT's significant variants, with matched variance proportions, from a model with no interaction parameters. It also means attributing each signal to named modules. For held-out predictive accuracy on GEUVADIS, we found no reported result on Lacuna for any method, so we will report the linear cis-eQTL model as the numeric floor.

The strongest flexible competitor is a multilayer perceptron from the same cis genotypes to the same gene set. It gets the same hyperparameter-search budget and a matched or larger parameter count. It can represent any interaction, so it tests whether the mechanism adds anything beyond nonlinearity.

For solver cost, the baseline is identical dynamics trained by integrating to steady state with an adaptive Runge–Kutta solver and adjoint gradients, in the manner of PerturbODE. It runs on the same hardware. We report wall-clock time, function evaluations, memory, and non-convergence rate. On TF Atlas, PerturbODE's reported advantage is that it scales to 812 genes where DCDI and Bicycle run out of memory, and that it attains the highest precision-recall against ChIP-Atlas binding. No numeric AUPRC is given in the file, so we will reproduce it.

The key ablation replaces $\sigma$ with the identity, leaving everything else unchanged. The equilibrium is then linear in genotype and must produce zero non-additive variance. If the full model's MAPIT-reproduction vanishes under this ablation, saturation is the operative ingredient. A second ablation removes the cross-gene modules, making the network gene-diagonal. This separates cis-only saturation, where a single gene's own curve bends, from trans-network epistasis.

Why not just…?

Why not just trust MAPIT's variance components and stop there? MAPIT answers "how much" and "which variant," but it assigns no mechanism. It cannot predict an interaction's sign for a pair it was not tested on, or tell apart epistasis from network saturation and epistasis from direct protein interaction. Our model is only interesting if it agrees with MAPIT where MAPIT has power. We will therefore treat disagreement as falsification rather than as a finding.

Why not just fit a multilayer perceptron on genotypes? This is a real threat. With 462 people, a flexible network may match held-out expression as well as the mechanism. Accuracy alone will not settle it. We will hold out variant pairs, not just individuals. From synthetic data where ground truth exists, and on GEUVADIS from pairs flagged by MAPIT but withheld from model selection, we ask which model predicts the sign and magnitude of pairwise interaction effects. We also ask which one transfers when module activity is shifted, as with TF Atlas-style interventions. If the perceptron matches the mechanism on held-out interactions, the mechanistic claim fails and we will report it that way.

Why not just integrate the ODE to steady state with a standard adaptive solver? It computes the same equilibrium, so the question is purely cost and reliability. PerturbODE reports solver variability and large errors with integration-based training. The glucose-model paper shows that feedback cycles inflate stiffness. Integration time to equilibrium grows with the slowest decay mode, while Newton's cost depends on the Jacobian solve. The synthetic stiffness sweep measures this directly. If integration is competitive at GEUVADIS scale, the solver contribution shrinks to a convenience, and the biology claim must stand on its own.

Why not just use flow matching, which already removes the solver? Flow matching regresses a velocity field along paths between time-indexed distributions. VGFM requires snapshots at multiple developmental times, and CFO requires trajectories to fit splines. A genotyped cohort has one snapshot per person and no time axis. So the training signal those methods need does not exist here. Equilibrium solving is the solver-free option that matches the data.

Decisive Checks

The proposal succeeds or fails on three results. First, on synthetic networks, the model-implied non-additive variance must track the simulated truth. It must also collapse to zero in the linear ablation. Second, on GEUVADIS, running MAPIT on the mechanism's held-out predictions must recover a pre-registered fraction of the observed mepiQTLs among the 228 genes. It must also beat the perceptron on held-out interaction signs. Third, equilibrium fitting must reach equal or better fit than steady-state integration, with fewer function evaluations and no convergence failures across the stiffness sweep. If the second check fails while the first passes, the conclusion is useful in its own right. It would mean the epistasis MAPIT sees in lymphoblastoid expression is not network saturation, which narrows where missing heritability can hide.