Instance-Adaptive Parametrization for Amortized Variational Inference

Andrea Pollastro, Andrea Apicella, Francesco Isgrò, Roberto Prevete
4/8/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Latent variable models, including variational autoencoders (VAE), remain a central tool in modern deep generative modeling due to their scalability and a well-founded probabilistic formulation. These models 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 variational 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. 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 a key factor in mitigating amortization-induced suboptimality in deep generative models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{pollastro2026instanceadaptive,
  title  = {Instance-Adaptive Parametrization for Amortized Variational Inference},
  author = {Andrea Pollastro and Andrea Apicella and Francesco Isgrò and Roberto Prevete},
  year   = {2026},
  eprint = {2604.06796},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.06796v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.06796.svg)](https://codeofpaper.com/paper/2604.06796)

Discussion