Abstract
Variational Inference (VI) often presents a choice between fast but potentially suboptimal amortized models (e.g., VAEs) and accurate but slow encoderless models. We present Relay Variational Inference (RVI), a novel approach that bridges this gap. By introducing "relays"—shared latent vectors that facilitate information flow between datapoints during optimization—RVI achieves significantly faster convergence and superior reconstruction quality compared to traditional encoderless methods, while maintaining robustness to noisy or missing data.
Introduction
In the field of Variational Inference, researchers typically navigate a trade-off between speed and accuracy. Amortized VI uses an encoder to map inputs to latent parameters, offering rapid inference but often struggling with "one-size-fits-all" mappings in the presence of missing data or high uncertainty. Conversely, encoderless VI optimizes parameters for each datapoint individually. While more accurate and robust, this approach is computationally expensive due to the "mean-field assumption," which treats datapoints independently and prevents gradient information from being shared across the dataset. The authors of this work aim to overcome the slow convergence of encoderless VI without sacrificing its inherent accuracy.
Methodology
RVI introduces the concept of a Relay to break the mean-field bottleneck. Instead of independent parameters, the approximate posterior parameters ($\phi_i$) for each datapoint are defined as a combination of two components:
- The Relay ($\phi_i^R$): A shared factor that binds sets of datapoints together. It is a linear combination of a pool of shared stochastic vectors in the latent space.
- The Individual Offset ($\phi_i^\epsilon$): A stochastic variable unique to each specific datapoint.
This structure allows gradients to flow between datapoints; learning about a relay from one sample immediately benefits all other samples sharing that relay. RVI can employ multiple relay groups to capture hierarchical patterns, from broad holistic features to fine-grained details, effectively acting as a communication channel within the latent space.
Experimental Evaluation
The authors evaluated RVI across four diverse datasets to test its versatility and robustness:
- MNIST & Fashion-MNIST: Standard benchmarks for image reconstruction.
- CMU-MOSI: A multimodal sentiment analysis dataset containing text, visual, and acoustic signals.
- Toy Artificial Dataset: A 300-dimensional synthetic dataset generated from mixed distributions to test performance in controlled, noisy settings.
Key Results and Discussion
RVI consistently outperformed both standard VAEs and previous encoderless methods, such as Variational Adam (VAD), across several key metrics.
Convergence Speed and Depth
RVI demonstrates significantly faster convergence than VAD and often achieves a lower training loss than VAEs. By breaking the independence assumption, the optimization process becomes collaborative, allowing the model to reach optimal states more efficiently.
Robustness to Missing Data
A primary advantage of RVI is its natural handling of missing values. Because it does not rely on a fixed encoder to process the input, it can marginalize over missing dimensions during optimization. Experimental results show that RVI maintains stable performance even at high missingness levels (up to 90%), where VAE performance typically degrades significantly.
Representation Learning
When the learned latent representations were applied to supervised downstream tasks, such as digit classification, RVI's features led to faster training and higher final accuracy compared to competing methods, indicating a higher quality of learned latent structure.
Conclusion and Future Work
Relay Variational Inference offers a compelling middle ground in the VI landscape, combining the speed of amortization with the accuracy and robustness of encoderless optimization. While it currently requires more optimization steps than a simple VAE forward pass during inference, its superior convergence and handling of incomplete data make it a powerful tool for complex real-world applications. Future research will explore more flexible relay configurations, such as mixture models, and evaluate the method's scalability on high-resolution, large-scale datasets.
Summary updated