Research
CONGA: Compiling Gaussian Fiber Geometry for Structured Bayesian Inference
Many structured Bayesian models — state-space models, graph fields, Gaussian-process regressions, hierarchical models — contain a large latent block $x$ that is Gaussian once you condition on a…
- arXiv
- 2611.20995 · accepted · NEURIPS workshop
- Published
- 2026-11-16
- Authors
- Víctor Gallego
In plain words
Many structured Bayesian models — state-space models, graph fields, Gaussian-process regressions, hierarchical models — contain a large latent block $x$ that is Gaussian once you condition on a smaller nonlinear block $\eta$. Generic samplers and normalizing flows ignore this and spend warmup relearning geometry that is available analytically.
AI summary
Overview
Research area: Computational statistics / Bayesian inference — specifically measure transport, Markov chain Monte Carlo (HMC/NUTS), and probabilistic-program compilation for structured posterior geometry.
Technical level: Advanced. The paper assumes familiarity with Markov chain Monte Carlo diagnostics (ESS, rank-$\hat R$), optimal transport maps (Brenier, Knothe–Rosenblatt), sparse Gaussian Markov random fields, and measure-valued gradient flows.
Scope: A single-author paper (Víctor Gallego, Komorebi AI Technologies, arXiv:2611.20995v1, stat.CO, presented in the Geometric Distributional Deep Learning workshop track) that shows how an exactly Gaussian conditional block in a Bayesian model yields exact affine "fiber" transports, and builds a compiler, CONGA, that discovers such blocks and selects among temporal, spectral, and sparse implementations by cost.
What This Paper Is About
Many structured Bayesian models — state-space models, graph fields, Gaussian-process regressions, hierarchical models — contain a large latent block $x$ that is Gaussian once you condition on a smaller nonlinear block $\eta$. Generic samplers and normalizing flows ignore this and spend warmup relearning geometry that is available analytically. CONGA identifies these "Gaussian fibers," constructs the exact whitening map that turns the block into a standard normal independent of $\eta$, and then decides — from the precision graph and the intended workload — whether to implement that map as a sequential/balanced temporal elimination, a spectral Brenier map, or a sparse triangular Knothe–Rosenblatt map, or to leave the target unchanged because compilation is invalid or too expensive.
Key Contributions
-
An exact fiber factorization theorem. Proposition 1 shows that for any affine standardizer $A_\eta = O_\eta \Lambda(\eta)^{1/2}$ with orthogonal $O_\eta$, the pushforward of the joint law is $\varphi_n(z),p(\eta)$ — the block becomes standard normal and independent of the core. Corollary 2 then shows that KL and relative Fisher objectives (and, in Proposition 3, compatible population-flow geometries) reduce entirely to the $k$-dimensional core, so learned maps only ever need to act on the core.
-
A representation choice, not just a marginalization. The orthogonal factor $O_\eta$ is free: $O_\eta = I$ gives the symmetric Brenier map, and $A_\eta = L^\top$ from a Cholesky factor gives the triangular Knothe–Rosenblatt map. Both satisfy the same identity but have very different costs depending on the precision graph, elimination order, and fill.
-
A compiler with a safety distinction. CONGA separates an exact contract (identity established from model algebra or symbolic analysis, allowing the residual to be erased) from a numerical certificate (probes only, which permits only the target-preserving change of variables in Eq. 10). Failed validation leaves the model unchanged. An approximate-identity bound (Proposition 4) gives $\mathrm{KL} \le 2\varepsilon$, $| \tilde p - q_0|_{\mathrm{TV}} \le \sqrt{\varepsilon}$, and pointwise acceptance at least $e^{-2\varepsilon}$.
-
Empirical validation across temporal, load-forecasting, and graph models, including a 46-target census run without model-specific configuration (fibers proposed for 38, none found for 7, one candidate rejected at the held-out pattern check, all accepted numerical residuals below $2.3\times 10^{-9}$).
Main Findings
- Stock–Watson inflation: minimum ESS per second improves by 12.5× for NUTS. Median NUTS time drops from 1,821 to 406 seconds, and WALNUTS from 682 to 289 seconds. At $T=252$ the raw target has 756 coordinates; CONGA integrates 252 and samples a 504-dimensional volatility core. Raw WALNUTS fails the convergence gate in every seed while its CONGA counterpart passes, so no efficiency ratio is reported for it.
- Electricity-load DLM: a 6,760-dimensional model reduces to 34 core coordinates (a 6,726-coordinate fiber). Raw NUTS reaches a minimum ESS of about 5 with worst $\hat R = 2.121$ and 30 divergences and fails the gate in all three seeds; CONGA reaches minimum ESS 1,161 with worst $\hat R = 1.006$ in 566 seconds versus 631 for raw NUTS, with 3 divergences. The authors frame this as failing-versus-passing, not a speedup. The same program evaluates one value-and-gradient of a 4.5-million-coordinate extension in 214 seconds.
- Backend choice matters independently of statistics: at $n = 1{,}024$, fast-transform Brenier reduces seconds per minimum core ESS by 7.7× on a path and 38.1× on a lattice relative to sparse KR, even though the maps are statistically equivalent.
- Learning on the core is far more stable: in a two-state DLM with an 8-dimensional core and $T=100$, removing the 200-dimensional state fiber lets an 8-dimensional flow reach median held-out Fisher divergence 0.52 versus 5.45×10⁴ for the 208-dimensional flow, with 19,776 rather than 279,376 parameters; the compiled transport is 10.8–15.0× faster than a generic adapter for the same map. The learned arms fail the convergence criterion at every length.
- Graph fields ($n=256$): sparse collapse passes on the tree, lattice, planar graph, and expander, with the highest median ESS/s on the tree, lattice, and expander; on the planar graph it is comparable to the learned flow; no method passes on the star. A star requires 256 probe colors for its squared graph, so CONGA can reject the exact collapse before sampling.
- Coloring and fill diverge: a star has no fill yet needs $|V|$ colors, while an expander needs few probes but produces substantial fill — so both are priced before an expensive pilot.
- Temporal crossover: balanced associative-scan elimination overtakes sequential Kalman elimination for scores from $T = 400$.
- Keeping the original target is sometimes correct: a Student-$t$ sensor-noise variant breaks the Gaussian identity, and applying the Gaussian candidate through Eq. 10 stays calibrated, whereas erasing the residual biases posterior means.
Methodology in Plain English
The approach has two halves. First, a mathematical half: if you know that a chunk of your model is Gaussian given the rest, you can write down the exact linear transformation that standardizes that chunk for each value of the remaining parameters. Because the result is standard normal regardless of those parameters, the block becomes statistically independent of the core, and everything downstream — variational objectives, gradient flows, sampling — only has to deal with the small core.
Second, a software half: the compiler probes the target with directional score differences and colored probes to guess which coordinates form a jointly quadratic block, recovers the precision pattern, and then tests the guess at fresh points by measuring the residual $r(x,\eta)$ between the true log density and the hypothesized collapsed Gaussian. These probes are explicitly not a proof.
The compiler then prices candidate implementations with a simple cost model $\hat C_a(W,R) = B_a + R,\hat n_a(W),t_a$ (construction time plus uses times pilot-estimated score count times per-score latency) and picks the cheapest program that also passes diagnostics. If the only evidence is numerical, the map is used as an ordinary change of variables with the Jacobian correction, which is still correct even if the guessed structure is wrong. If validation fails or the rewrite is uneconomic, the original target is retained.
Why This Matters
Impact on research. The paper makes a clean conceptual point: the non-uniqueness of a whitening map is a computational resource, not a nuisance. Two transports with identical distributional guarantees can differ by more than an order of magnitude in runtime, which means published comparisons of "marginalize vs. don't" may partly be measuring implementation rather than statistics. Theorems tying KL, relative Fisher, Wasserstein, Fisher–Rao, WFR, and Stein geometries down to the core also give the flow/transport literature a principled reason to learn only on the non-Gaussian part.
Real-world applications:
- Macroeconomic forecasting: stochastic-volatility models like Stock–Watson are standard at central banks and forecasting firms, where 12.5× ESS gains translate into faster model rotation.
- Electricity load and grid forecasting: hierarchical day-of-week seasonality with regional transmission structure is exactly the block-tridiagonal regime where the DLM experiment applies, and the 4.5-million-coordinate gradient evaluation suggests national-scale feasibility.
- Disease and environmental mapping: intrinsic CAR models over irregular graphs (areal data on counties, sensor networks) are the canonical use of the graph experiments.
- Probabilistic programming systems: the discovery-plus-validation pattern is a template for compilers that exploit conjugacy from syntax or traces.
Industry relevance. The compiler framing — discover, validate, price, fall back — is directly deployable as a backend optimization in probabilistic programming languages, and the explicit "reject the exact rewrite because it costs more" rule is a discipline that production systems often lack.
Future Directions
- Proving identities instead of probing them. Finite probes cannot certify a global Gaussian identity, so marginalization still requires a hand-supplied algebraic or symbolic contract; automating that certificate is the main obstacle to unsupervised use.
- Broadening the template library. The current implementation covers temporal and graph templates rather than arbitrary kernels, does not infer commuting matrix pencils, and reconstructs joint temporal draws sequentially.
- Handling non-Gaussian fibers. Discrete or heavy-tailed conditional blocks would need different maps; the Student-$t$ experiment only demonstrates that the safety fallback behaves, not that a transport exists.
- Scaling and validating the census. The experiments use three seeds and a limited model census; the authors state that the choice of representation remains dependent on the target and workload, so broader benchmarking would test how often compilation is rejected on cost grounds.
Target Audience
Researchers and practitioners in Bayesian computation who work with structured latent-variable models — state-space and dynamic linear models, Gaussian Markov random fields, hierarchical and Gaussian-process models — and who build or tune samplers and normalizing flows. It is also relevant to probabilistic-programming implementers interested in compilation passes and to statisticians evaluating marginalization/Rao–Blackwellization strategies, since it separates the statistical benefit from the engineering cost. Readers without a background in optimal transport and MCMC diagnostics will find the theory sections demanding, but the experimental tables and the "when to keep the original target" discussion are accessible.
Authors’ abstract
In structured Bayesian models, a large latent block is often Gaussian conditional on a smaller set of parameters, yet generic inference methods relearn this geometry during warmup. We study how this structure can be used to construct transports for posterior inference. The conditional mean and precision determine exact affine maps, including symmetric Brenier and triangular Knothe-Rosenblatt maps, that separate a standard normal block from the remaining non-Gaussian core. KL…
The full abstract on arXiv