cs.LGApr 8, 2026

Instance-Adaptive Parametrization for Amortized Variational Inference

Authors: Andrea Pollastro, Andrea Apicella, Francesco Isgrò, Roberto Prevete

Organizations: Department of Electrical Engineering and Information Technology, University of Naples Federico II, 80125, Naples, Italy · Department of Information Engineering, Electrical Engineering, and Applied Mathematics, University of Salerno, 84084, Fisciano (Salerno), Italy

Abstract

Variational autoencoders (VAEs) rely on amortized variational inference to enable efficient posterior approximation, but this efficiency comes at the cost of a shared parametrization, giving rise to the amortization gap. We propose the instance-adaptive variational autoencoder (IA-VAE), an amortized inference framework in which a hypernetwork generates input-dependent modulations of a shared encoder. This enables input-specific adaptation of the inference model while preserving the efficiency of a single forward pass. From a theoretical perspective, we show that the variational family induced by IA-VAE contains that of standard amortized inference, implying that IA-VAE cannot yield a worse optimal ELBO. By leveraging instance-specific parameter modulations, the proposed approach can achieve performance comparable to standard encoders with substantially fewer parameters, indicating a more efficient use of model capacity. Experiments on synthetic data, where the true posterior is known, show that IA-VAE yields more accurate posterior approximations and reduces the amortization gap. Similarly, on standard image benchmarks, IA-VAE consistently improves held-out ELBO over baseline VAEs, with statistically significant gains across multiple runs. These results suggest that increasing the flexibility of the inference parametrization through instance-adaptive modulation is an effective strategy for mitigating amortization-induced suboptimality in deep generative models.

Figures & tables

Explore similar work

CardsList
  1. Variational objectives for amortized Bayesian inference in inverse problems: The role of posterior conditioning

    Sep 21, 2026Abhishek Srivastava, Arijit Hazra, Rajesh DubbakuAmortized InferenceBayesian Inverse Problems

  2. Amortized Factor Inference Networks for Posterior Inference

    May 26, 2026Joohwan Ko, Justin DomkeAmortized InferenceBayesian Inference