Manuscript Offprint

arXiv:2609.39525

Mitigating Representation Gaps in Amortized Bayesian Inference with Auxiliary Supervision

Hans Olischläger, Svenja Jedhoff, Šimon Kucharský, Aayush Mishra, Stefan T. Radev, Paul Bürkner

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Casting Bayesian inference as a neural network optimization problem targeting an amortized posterior is attractive, as it extends to otherwise intractable statistical models and offers near instantaneous inference for new datasets after prepaying the training cost. Although theory guarantees faithfulness under ideal convergence, practical amortized inference still requires iterating over architectures and optimization choices and ultimately “satisficing” under finite simulation, compute, and time budgets. Even the best-performing solution may thus retain avoidable representation gaps that typically require problem-specific fixes. Here, we propose a generic alternative which improves training dynamics with auxiliary guidance losses applied to internal representations. Specifically, we show how such guidance leads to faster convergence when training data is abundant and to better performance when it is scarce. We formalize representation gaps as getting stuck in a local optimum at the information bottleneck between the parts of the network tasked with feature learning and those tasked with conditional distribution learning, and offer a generic diagnostic to separate summary failures from inference failures. Finally, we demonstrate that auxiliary supervision improves convergence speed and accuracy on a range of challenging real-world inference problems.

1 Introduction

Bayesian inference is a cornerstone of scientific modeling, but it is often computationally intractable for complex, realistic models (Cranmer et al., 2020). Amortized Bayesian inference (ABI) addresses this by recasting posterior estimation as a neural network optimization problem (Zammit-Mangion et al., 2025; Arruda et al., 2025): instead of solving inference anew for each dataset, a network learns to approximate the posterior conditional on any data by first training on labeled simulations. Once trained, this network delivers near-instantaneous inference for new data, offering an attractive trade-off between an upfront simulation and training cost and downstream inference speed.

While the theoretical guarantees behind ABI are appealing (Frazier et al., 2024), practice looks different. Realistic training runs operate under finite simulation, compute, and time budgets, and practitioners must repeatedly iterate over architectures and optimization strategies. Even the best solution found under these constraints is typically only a "satisficing" one, and can suffer representation gaps—systematic discrepancies between the amortized approximation and the analytic posterior (Hermans et al., 2022; Schmitt et al., 2023; Falkiewicz et al., 2023; Mishra et al., 2026). In practice, closing such gaps relies on problem-specific fixes, which require a lot of expertise in deep learning and do not transfer easily across applications.

In this work, we propose a generic alternative that improves the training dynamics of ABI directly via auxiliary losses applied to internal representations. We show that this auxiliary supervision yields faster convergence when training data is abundant and improved performance when data is scarce. To understand why such gaps arise in the first place, we formalize them as the network becoming stuck in a local optimum at the information bottleneck separating the components responsible for feature (summary) learning from those responsible for conditional distribution (inference) learning. Building on this formalization, we introduce a generic diagnostic that disentangles summary failures from inference failures, providing a principled way to localize where a representation gap originates.

Taken together, our contributions are threefold: (1) a generic, architecture-agnostic supervision mechanism for improving training dynamics in ABI; (2) a formal account of representation gaps as local optima at the summary–inference bottleneck, along with a diagnostic to distinguish their sources; and (3) an empirical demonstration, across a range of challenging real-world inference problems, that auxiliary supervision improves both convergence speed and final accuracy.

References (52)