Federated G-Computation Whose Communication Rounds Do Not Multiply With the Horizon

Hospitals that want to estimate how a sequence of treatments affects patients face two problems that are usually studied separately. The first is time-varying confounding: a patient's lab values are shaped by yesterday's treatment and also drive today's treatment, so naive regression either blocks real causal paths or leaves confounding paths open. The second is that the hospitals cannot pool their records and must exchange model updates over limited, slow links. The standard fix for the first problem is iterative g-computation. It fits a chain of regression "heads" backward in time: the last head predicts the outcome, and each earlier head is trained to predict what the next head says would happen under the planned treatment. Done federatedly in the obvious way, the chain must be fitted one head at a time, so the number of communication rounds is the horizon length times the rounds each head needs.

This note proposes to break that product. The key observation is that the joint system of equations for all heads has a coupling structure borrowed directly from decentralized Newton methods, but along the time axis rather than across a network graph. Each head depends only on the next one, so the coupling matrix is strictly block-triangular. That means the truncated series used by Network Newton to approximate an inverse Hessian is exact after a finite number of terms instead of being only approximate. We use this structure to design a federated second-order solver that updates every head in every round and carries a K-term correction for how each head's target is about to move. Rounds to convergence should then scale roughly additively in horizon and per-head difficulty rather than multiplicatively. The same lens explains, and lets us control, the error cascade that the detached-target trick in current deep longitudinal estimators leaves open.

Core Claim

Let the horizon be $\tau$ and head $t$ have parameters $\theta_t$. Write $g_t(\theta_t,\theta_{t+1})$ for the average gradient of head $t$'s loss, where the target is the pseudo-outcome produced by head $t+1$ under the intervention of interest. Stacking the equations $g_t=0$ for all $t$ gives a Jacobian

$$J = D + E,$$

where $D$ is block-diagonal and holds each head's own curvature $\partial g_t/\partial\theta_t$. The matrix $E$ has nonzero blocks only at $\partial g_t/\partial\theta_{t+1}$, which records how head $t$'s gradient shifts when its target head changes. Because $E$ is strictly block-upper-triangular, $(D^{-1}E)^{\tau}=0$, and the exact Newton step is the finite series

$$\Delta = -\sum_{k=0}^{\tau-1} (-D^{-1}E)^k D^{-1} g .$$

Here $g$ is the stacked gradient and $\Delta$ the stacked parameter update. Truncating at order $K$ gives a family we call Temporal Network Newton-$K$, the time-axis analogue of NN-$K$ in Network Newton.

Under this reading, $K=0$ is a block-Jacobi iteration that ignores how targets will move. That is what the detached forward pass in DeepBlip and the pseudo-outcome scheme in IGC-Net amount to when all heads are trained simultaneously. $K=\tau-1$ is exact back-substitution.

The claim has two parts. First, in a federated setting with one aggregation round per iteration, using stale corrections from the previous round lets information travel $K+1$ time steps backward per round. Second, heads with strongly convex losses converge in a number of rounds that grows like $R+\tau/(K+1)$, where $R$ is the rounds one head needs on its own. Sequential stage-wise fitting instead needs $\tau R$. This scaling is a hypothesis, not a theorem. It follows from treating the iteration as a pipelined wavefront in which each round clears $K+1$ levels of the triangular system. Proving it, or finding where it fails, is the main theoretical task.

Research Program

We restrict the heads to a regime where second-order guarantees are realistic. Each head is a generalized linear model on a shared, fixed history representation: ridge-penalized linear heads for continuous outcomes such as tumor volume, and logistic heads for binary outcomes such as mortality or vasopressor response. Each per-head problem is then strongly convex, which matches the assumptions under which Network Newton, BFGS-ADMM and Variance-Reduced Stochastic Quasi-Newton Methods for Decentralized Learning have proofs. The history representation is learned once, before the causal stage, by federated factual next-step prediction. Learning the backbone jointly with the heads is an explicit later extension, not the core.

Each iteration of the protocol works as follows. Every site computes, on its own patients, the gradient for every head. It also computes the coupling products $E_{t,s}\,\delta_{t+1}$, where $\delta_{t+1}$ is the correction direction broadcast in the previous round and $s$ indexes sites. Sites send these vectors to the server, about $2\tau p$ numbers for head dimension $p$. The server keeps one inverse-curvature approximation per head and builds the $K$-term direction. Following the secant-based approach of Quasi-Newton Updating for Large-Scale Distributed Learning, these approximations are maintained by Symmetric Rank-One or BFGS updates from aggregated gradient differences, so no $p\times p$ matrix is ever transmitted. That paper supplies the method for $D^{-1}$; its IID assumption is the thing we stress-test.

The research has three threads. The theoretical thread proves linear-then-superlinear convergence of the stale-correction iteration for strongly convex heads and characterizes the dependence on $K$, $\tau$ and cross-site heterogeneity. Heterogeneity enters through the spread of local curvatures $D_{t,s}$ and couplings $E_{t,s}$ around their averages. The second thread measures how the $K=0$ error cascade, flagged as an open problem for recursive schemes, shrinks as $K$ grows. The third thread addresses the open tension between lossy compression and curvature estimation. We quantize the transmitted vectors to 4–8 bits with error feedback and test whether damped secant updates keep each $D_t$ approximation positive definite. A positive result would be a first data point on that tension, which so far has been analyzed only for first-order methods such as Compressed Decentralized Momentum Stochastic Gradient Methods for Nonconvex Optimization.

This differs from the federated causal work in the file in kind, not degree. Federated Causal Inference: Multi-Study ATE Estimation beyond Meta-Analysis estimates single-timepoint effects with linear models and FedAvg. Federated causal inference from observational data handles static confounders with Gaussian processes and random features. Neither has a recursion across time, which is where the round-count problem lives. GST-UNet does have backward G-heads, but trains centrally on one spatiotemporal tensor.

Baselines

The naive reference is local-only estimation: each site fits its own chain of heads, and the server averages final parameters once. This is the single-merge schedule of On The Surprising Effectiveness of a Single Global Merging in Decentralized Learning taken to its zero-intermediate-communication extreme. It costs one round. We expect it to fail under heterogeneous treatment policies, because that paper finds merging breaks without some intermediate exchange and backward recursion compounds the drift. A close cousin is inverse-variance-weighted meta-analysis of site-level effect estimates. That paper's ordering $V^\infty(\text{Pooled}) = V^\infty(\text{Federated}) \le V^\infty(\text{Meta-IVW})$ predicts it is less efficient, but this has been shown only in the static linear case.

The strongest accuracy competitor is sequential stage-wise federated g-computation. It fits $Q_\tau$ to convergence with a federated quasi-Newton solver (the DQN protocol), freezes it, then fits $Q_{\tau-1}$, and so on. It is statistically the same estimator as pooled iterative g-computation, so it is the accuracy ceiling for any method in our class. It will receive the same quasi-Newton machinery, the same features and the same convergence tolerance per head. Beating it means matching its counterfactual error, within seed-to-seed noise, in markedly fewer communication rounds, with the gap widening as $\tau$ grows.

The strongest cheap competitor is simultaneous first-order training: all heads trained at once with detached targets using federated Adam and local steps. This is the federated version of the DeepBlip/IGC-Net training trick. For communication-efficient first-order variants we add DaSHCo-style compressed heavy-ball updates with gradient tracking from Compressed Decentralized Momentum Stochastic Gradient Methods for Nonconvex Optimization. Learning rates and local-step counts get a tuning budget equal in trials to the one given to our damping and $K$ settings.

The decisive ablation is our own method at $K=0$. It keeps quasi-Newton curvature but drops the temporal correction, which isolates whether the gain comes from the block-triangular coupling or merely from second-order curvature.

For gold-standard error on the linear-head case, the reference is the exact pooled solution computed centrally. On the reported-number side, the file gives relative but not absolute errors. IGC-Net reports a 26.7% relative RMSE improvement over the best prior method on semi-synthetic MIMIC-III. DeepBlip reports about 34% lower RMSE than IGC-Net at a 10-step horizon. On the communication side, Network Newton reports NN-1 as roughly 10 times more communication-efficient than first-order decentralized gradient descent on synthetic quadratics. No reported result found on Lacuna for federated estimation of potential outcomes under time-varying confounding, so our centralized runs of IGC-Net-style heads serve as the accuracy anchor.

Why not just…?

Why not just ship sufficient statistics and solve once? For squared-loss linear heads this is a genuine threat. Each site can send $X_t^\top X_t$ and the cross-moment between head-$t$ features and head-$(t+1)$ counterfactual features, and the server solves the triangular system exactly in one round at $O(\tau p^2)$ cost. We concede this regime and use it as the gold standard there. The method earns its place only in two cases. One is non-quadratic losses, such as binary outcomes with logistic heads, where the Hessian depends on the current parameters and must be refreshed every iteration. The other is when $p$ reaches the thousands, as with lagged-and-interacted features from 25 MIMIC vitals, so $p^2$ messages per head per iteration dominate. Experiments will report the crossover in $p$ and the loss type at which our $O(\tau p)$ messages win in total bytes.

Why not just fit the heads one stage at a time? It is exact and simple, and it is our main accuracy baseline. Its weakness is the $\tau R$ round count. The horizon-scaling experiment below measures directly whether pipelining with temporal correction beats it. If $R$ turns out to be one or two rounds for well-conditioned heads, the advantage shrinks to near nothing, and we will report that honestly.

Why not just train all heads at once with first-order federated optimization? Each round is cheap, but there are two problems. Decentralized first-order methods on ill-conditioned problems need many more rounds than curvature-aware ones; Network Newton reports over 1,500 iterations for gradient descent versus far fewer for NN variants. Detached targets also inherit the cascade problem. Propensity-adjusted pseudo-outcomes over long horizons are plausibly ill-conditioned, but that is our assumption, not something the file measures. The comparison is run at equal round budgets, and if first-order methods match us there, the second-order machinery is not justified.

Why not just meta-analyze local causal models? The static theory in Federated Causal Inference: Multi-Study ATE Estimation beyond Meta-Analysis predicts lower efficiency when treatment policies differ across sites. Small sites also cannot fit long chains stably. We include it to test whether that efficiency gap persists, or grows, with horizon.

Proposed Experiments

The first testbed is the synthetic non-small-cell lung cancer tumor-growth simulator used by R-MSN, IGC-Net, DeepBlip and CAETC. We split patients into 5–20 virtual hospitals, each with its own confounding strength $\gamma$, so that treatment policies, and therefore the curvatures $D_{t,s}$, are non-IID. The second testbed is semi-synthetic MIMIC-III with simulated outcomes over 25 vitals, partitioned so that sites differ in case mix. We add a binary-outcome variant to force non-quadratic heads.

Metrics are counterfactual RMSE against simulator ground truth, total aggregation rounds and total transmitted bytes to reach tolerance, and wall-clock time under a simulated per-round latency. For the logistic variant we also track the fraction of iterations in which any per-head curvature approximation loses positive definiteness.

The decisive check is a horizon sweep, with $\tau$ from 3 to 15, comparing rounds-to-tolerance for stage-wise fitting, $K=0$, $K=1$, $K=3$ and $K=\tau-1$. The hypothesis predicts roughly linear growth with slope near $R$ for stage-wise fitting and roughly $1/(K+1)$ for the corrected method. Flat accuracy curves at small $K$ would support the claim. A $K=0$ error that grows with $\tau$ while larger $K$ stays near the pooled solution would confirm that the temporal correction, not curvature alone, controls the cascade.

Two secondary checks follow. A heterogeneity sweep over the spread of $\gamma$ across sites tests where the DQN-style IID assumption breaks. A quantization sweep over message bit-width tests whether damped secant updates survive compression. A final exploratory run unfreezes the history encoder to see whether the $K$ correction still helps as a preconditioner when the problem is nonconvex. We present that run as evidence, not as a guarantee.