Black-box Coreset Variational Inference

Dionysis Manousakas, Hippolyt Ritter, Theofanis Karaletsos

Abstract

Recent advances in coreset methods have shown that a selection of representative datapoints can replace massive volumes of data for Bayesian inference, preserving the relevant statistical information and significantly accelerating subsequent downstream tasks. Existing variational coreset constructions rely on either selecting subsets of the observed datapoints, or jointly performing approximate inference and optimizing pseudodata in the observed space akin to inducing points methods in Gaussian Processes. So far, both approaches are limited by complexities in evaluating their objectives for general purpose models, and require generating samples from a typically intractable posterior over the coreset throughout inference and testing. In this work, we present a black-box variational inference framework for coresets that overcomes these constraints and enables principled application of variational coresets to intractable models, such as Bayesian neural networks. We apply our techniques to supervised learning problems, and compare them with existing approaches in the literature for data summarization and inference.

Introduction

In the era of "Big Data," Bayesian inference provides a principled framework for uncertainty quantification, yet it remains computationally demanding. Standard posterior estimation typically requires repeated passes over the entire dataset, a process that becomes prohibitively expensive as data scales.

Coresets offer a compelling solution by identifying small, weighted subsets of data that serve as a statistical summary. The goal is to construct a coreset such that the resulting posterior distribution closely approximates the posterior derived from the full dataset. However, traditional coreset constructions are often limited to tractable models where the posterior can be calculated exactly or sampled directly. This limitation has historically excluded complex architectures like Bayesian Neural Networks (BNNs), where the posterior is intractable.

Black-box Coreset Variational Inference

This work introduces a "black-box" variational inference framework for coresets, enabling their application to complex models without requiring a tractable posterior. The authors propose two primary algorithms:

  1. BB PSVI (Black-box Pseudodata Sparse VI): This method optimizes the locations and weights of "synthetic" or "pseudo" observations. By allowing these points to move freely in the input space rather than being restricted to the original dataset, the model can more efficiently capture the underlying data distribution.
  2. BB Sparse VI: This variant selects and weights a sparse subset of the actual observed datapoints.

Overcoming Intractability

To enable gradient-based optimization in models where the posterior is unknown, the framework addresses two core technical challenges:

  • The Sampling Problem: Since direct sampling from the coreset posterior is impossible for complex models, the authors employ Importance Sampling. They draw samples from a tractable "proposal" distribution and re-weight them to approximate the target coreset posterior.
  • The Scoring Problem: Evaluating the quality of a coreset requires calculating a marginal likelihood, which is often intractable. The authors implement a nested variational inference step—an "inner loop" optimization—to derive an Evidence Lower Bound (ELBO). This makes the objective function end-to-end differentiable and suitable for black-box optimization.

Experimental Evaluation

The framework was evaluated across a range of tasks, from standard logistic regression to deep learning architectures.

Logistic Regression and Massive Compression

On standard benchmarks such as Webspam (~150k points), Phishing (~11k points), and Adult (~32k points), the authors demonstrated that a coreset of just 50 weighted points could achieve performance parity with the full dataset. This represents a massive reduction in data volume, allowing downstream inference tasks (like MCMC) to run orders of magnitude faster.

Bayesian Neural Networks (BNNs)

A significant contribution of this work is the successful application of coresets to BNNs. On the MNIST image classification task, BB PSVI achieved approximately 91% accuracy using only 100 pseudopoints. This performance significantly outperformed random data selection and proved competitive with specialized dataset distillation techniques, while maintaining the superior uncertainty estimates characteristic of Bayesian methods.

Continual Learning

Coresets also provide a robust mechanism for mitigating "catastrophic forgetting" in continual learning. By maintaining a coreset of previously encountered tasks, a BNN can retain knowledge of old data without the need to store or re-process the entire historical dataset, acting as an efficient memory buffer.

Discussion and Future Directions

While the framework marks a significant step forward, several challenges remain. The use of importance sampling can lead to high variance in extremely high-dimensional spaces, potentially requiring more advanced techniques like Sequential Monte Carlo for very large models. Additionally, the nested optimization process is computationally more intensive than standard training, suggesting a need for hypergradient approximations to improve efficiency.

Beyond efficiency, the authors highlight the potential for coresets in privacy-preserving data sharing. Because pseudopoints summarize the statistical properties of a dataset without necessarily exposing individual raw records, they offer a promising path for sharing sensitive information securely.

Conclusion

Black-box Coreset Variational Inference provides a principled way to compress large datasets for complex, intractable models. By framing coreset construction as a variational optimization problem, this work bridges the gap between data summarization and modern deep learning, offering a path toward more efficient and scalable Bayesian inference.

Summary updated

BibTeX
@inproceedings{manousakas2022black,
  author = {Dionysis Manousakas and Hippolyt Ritter and Theofanis Karaletsos},
  title = {{Black-box Coreset Variational Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=XBXEfw6OxRh},
}
Figure