Matching Dynamic Disease Models to Mendelian Randomization Equilibria

When two diseases make each other worse, as rheumatoid arthritis and hypothyroidism appear to, a clinician wants a forecast of a different kind than prediction alone. The question is: if we push one condition down with treatment, how will the other respond over the coming months, and how will that response feed back on the first? Longitudinal health records can show how conditions move together, but they cannot reliably show which one drives the other. Mendelian randomization (MR), which uses inherited genetic variants as natural experiments, can show direction. It gives only one static, population-level number per direction, though, with no time course and no individual patients. This note proposes joining the two. We fit a continuous-time model in which each condition is an interacting "agent" with its own dynamics and influence on the others. Cycles are allowed. We train it so that its long-run response to a sustained push on one condition reproduces the bidirectional MR estimates for that pair.

The connection to multi-agent interaction modeling is the type of prediction being made. Driving models moved from predicting each car alone to predicting how the surrounding traffic reacts to a proposed ego maneuver (Prediction by Anticipation). The clinical query has the same form: hold one condition on a treated path and predict the reaction of the others. The core claim is narrow and testable. Feedback-loop structure cannot be identified from confounded observational trajectories alone. One extra constraint, that the model's equilibrium total effects equal the MR estimates in both directions, is enough to pin down the direction and strength of the coupling. Interventional forecasts improve as a result, while ordinary forecasting accuracy does not.

Core Claim

The closest continuous-time causal model, Causal Trajectory Prediction (CTP), learns a neural differential equation over patient features. It imposes a directed acyclic graph (DAG) constraint on the connectivity matrix, and its authors concede that this rules out feedback. Bidirectional MR studies find exactly such feedback. Neuropsychiatric disorders and constipation affect each other in both directions (Zhao et al.). Rheumatoid arthritis and hypothyroidism do too, while the link between rheumatoid arthritis and hyperthyroidism runs one way only (Lai et al.). These asymmetries are what a cyclic model must reproduce and what a DAG model cannot represent.

The bridge between the two rests on one observation. A germline variant shifts a person's baseline drive toward a condition for their whole life. In a dynamical system, that is a constant additive input on one equation, and the MR estimate is the resulting shift in the long-run state. Write each patient's condition-severity vector as $x(t)$ and its dynamics as $\dot{x} = f_\theta(x, u)$, where $u$ collects treatments. Linearize around the population's typical stable state $x^*$ with Jacobian $J = \partial f_\theta / \partial x$. A sustained unit drive on condition $j$ then shifts the equilibrium by $-J^{-1} e_j$. The implied total effect of $j$ on $i$, scaled per unit change in $j$, is

$$T_{ij}(\theta) = \frac{[J^{-1}]_{ij}}{[J^{-1}]_{jj}}.$$

In cyclic linear structural models this is the standard total-effect expression. It already contains every loop, so it is the right object to compare against an MR estimate that also integrates lifelong feedback. Training minimizes

$$\mathcal{L}(\theta) = \mathcal{L}_{\text{traj}}(\theta) + \lambda \sum_{(i,j)} \frac{\big(T_{ij}(\theta) - \hat\beta_{ij}\big)^2}{\hat s_{ij}^2}.$$

Here $\mathcal{L}_{\text{traj}}$ is the negative log-likelihood of the observed trajectories, $\hat\beta_{ij}$ and $\hat s_{ij}$ are the bidirectional MR estimate and its standard error, and $\lambda$ sets how strongly the genetic evidence is trusted. The trajectory data fixes how fast things move. The MR term fixes which arrow is which, and how large each arrow is once loops are included.

The assumptions are stated up front because they define where this can fail. The variant must act on only one equation, which is the exclusion restriction in dynamical form. Pleiotropy breaks it. The population must sit near a stable equilibrium. MR effects on the liability scale must map onto the severity scale used in the records, and this needs a learned or calibrated measurement link.

Research Program

Each condition is one agent. It has a small recurrent state, its own drift network, and incoming messages from the other agents through a gated interaction layer, in the spirit of MultiPath++'s multi-context gating (MultiPath++). The interaction weights are not masked to be acyclic. A sparsity penalty keeps them interpretable, and a spectral penalty keeps $J$ stable, so that $J^{-1}$ exists and the equilibrium is meaningful.

Interventional queries use the anticipate-then-react pattern. The treated condition's path is clamped to a specified schedule, and the remaining agents are rolled forward in reaction. These queries are evaluated jointly over all agents, not one at a time. The driving literature shows that marginal predictions mislead in exactly this kind of reactive setting.

The work proceeds in three parts. First, a synthetic testbed with known ground truth. We extend CTP's Michaelis–Menten simulators (MM-25 and MM-50) by adding reciprocal feedback edges and hidden confounders that act on several nodes. Simulated genotypes enter as constant drives on single nodes, with an optional pleiotropic fraction. Running two-sample MR on the simulated summary statistics then reproduces the real pipeline end to end.

Second, the method itself, including the measurement link and an uncertainty-aware version in which $\hat\beta$ is sampled from its sampling distribution.

Third, a real application in UK Biobank, which links genetics to longitudinal diagnoses and biomarkers. We study two pairs with published bidirectional MR results: rheumatoid arthritis with thyroid dysfunction (Lai et al.), and depression with alcohol use (Wang et al.). The constraint uses MR estimates from external summary statistics so that it stays independent of the cohort. Acute intensive-care settings such as MIMIC-IV are out of scope, because lifelong genetic effects say little about hour-scale organ coupling.

Baselines

The naive reference is per-condition population-mean progression from the last observed value. It shows how much of the forecasting signal is trivial.

The uncoupled baseline gives each condition its own neural differential equation with no interaction terms. It tests whether coupling matters at all. Bi-Causal reported a 2–3% accuracy drop when it severed its reciprocal channel in video, but that says nothing about clinical trajectories.

The classical baseline is a cross-lagged panel model with Granger-style lagged coefficients, fit on the same visits.

The strongest existing method is CTP, run from its published design: a DAG-constrained neural differential equation with an ensemble to bound confounding. On ADNI it reports reconstruction mean squared error of 0.20, and counterfactual errors "often 4 to 6 times lower than standard non-causal models" (CTP). We reproduce it on ADNI as a sanity check before using it elsewhere.

The key ablation uses the identical cyclic multi-agent architecture with $\lambda = 0$. It is the only comparison that isolates the MR constraint. A second ablation replaces the equilibrium-matching term with a naive one that matches the instantaneous coupling weight $\partial f_i/\partial x_j$ to $\hat\beta_{ij}$. This shows whether the loop-aware total-effect mapping matters.

Every model sees the same visits, covariates and splits, and gets the same hyperparameter search budget. Each is trained to the same wall-clock limit. Treatment inputs are available to every model that can take them.

Beating the field means three things on synthetic data:

  1. Lower error on clamped interventional rollouts than both CTP and the $\lambda = 0$ ablation.
  2. Correct recovery of edge direction and sign, including the one-way edges.
  3. Observational forecasting error within noise of the $\lambda = 0$ model.

That third condition is what shows the constraint adds information rather than trading accuracy away. For the synthetic benchmarks there is no reported result on Lacuna for any baseline, so all numbers there are produced in this study.

Why not just…?

Why not just drop CTP's acyclicity constraint and fit a cyclic neural ODE? This is the real threat, and it is precisely the $\lambda = 0$ ablation. A cyclic model may forecast observational trajectories as well as ours. When a hidden confounder drives both conditions, though, many coupling matrices fit the data equally well, including ones with the arrows reversed. Plastaras et al. is the cautionary case: hip weakness looked like a cause of patellofemoral pain until inception-cohort data showed it was a consequence. If the unconstrained cyclic model matches ours on interventional rollouts in the confounded simulators, the MR term is unnecessary and we would say so. The experiments vary confounder strength precisely to find where, if anywhere, the gap opens.

Why not just use cross-lagged regression or Granger causality on the records? These test whether $A$ at one visit predicts $B$ at the next. Shared unmeasured causes produce exactly that pattern in both directions. The synthetic testbed measures how often they assign wrong arrows as confounding grows. Lai et al. motivate MR precisely because observational associations cannot settle direction.

Why not just report the MR estimates and stop? MR answers "does lifelong liability to $A$ raise $B$?" It cannot say how fast $B$ responds after treatment starts, or how the response differs between a patient early in the disease and one late in it. Our model must agree with MR at equilibrium, by construction up to $\lambda$. Its added value is entirely in the transient and patient-specific part. We test that part directly in the synthetic clamped rollouts, where ground truth is available.

Why not just train a large transformer on all variables? Beyond Patterns and SEAD both show that pattern-matching predictors absorb spurious correlations and degrade out of distribution (Beyond Patterns, SEAD). A transformer has no equilibrium to compare against MR. We include one as a forecasting-only reference, expecting it to be competitive on observational error and weak on clamped interventions.

Decisive Checks

The first check is synthetic. With a known cyclic system, hidden confounders, and simulated instruments, does the constrained model recover edge direction, including one-way edges like the hyperthyroidism → rheumatoid arthritis non-effect, where the $\lambda = 0$ model and CTP do not? Does the advantage shrink gracefully as the pleiotropic fraction rises? Robustness to pleiotropy is the honest limit of the method.

The second check is parity on ADNI. With no MR term available, our cyclic architecture should match CTP's reported 0.20 reconstruction error. This shows that dropping acyclicity costs nothing in fit.

The third check is in UK Biobank. We fit the constraint using one direction's MR estimate only, then ask whether the learned dynamics predict the held-out direction's estimate. As a check on transients, we run a target-trial emulation of treatment initiation within patients, comparing records before and after a patient starts the drug: levothyroxine for rheumatoid-arthritis markers, and antidepressants for alcohol-related records. The question is whether the constrained model's clamped rollouts track the observed post-initiation changes better than the $\lambda = 0$ model. If both real-data checks fail while the synthetic results succeed, the likely culprit is the measurement link or a non-equilibrium population, and that would itself be a useful negative finding.