Introduction
Bayesian Neural Networks (BNNs) represent a robust framework for safety-critical machine learning applications, offering not only predictions but also principled uncertainty quantification. However, the computational and memory overhead associated with BNNs—particularly when dealing with large-scale datasets—remains a significant barrier to widespread adoption. To address this, researchers have turned to Bayesian Coresets, which seek to identify a small subset of data that effectively summarizes the information contained in the full dataset.
Building upon this, Pseudocoresets synthesize new, optimized data points rather than merely selecting existing ones. Traditionally, these synthetic points are optimized by matching the posterior distribution of the coreset to that of the full dataset within the model's weight space. This paper, presented at NeurIPS 2023 by researchers from KAIST and AITRICS, introduces Function Space Bayesian Pseudocoresets (FBPC), a novel approach that shifts the optimization target from internal parameters to model outputs, significantly enhancing scalability and robustness.
The Challenge: Weight Space vs. Function Space
Traditional pseudocoreset methods operate in weight space, attempting to align the distribution of millions of internal parameters. This approach faces several critical hurdles:
- High Dimensionality: Modern deep networks possess millions of parameters ($p$), making the optimization of posteriors computationally prohibitive and memory-intensive.
- Multimodality: The loss surfaces of weight spaces are notoriously complex and non-convex, leading to unstable optimization of synthetic data.
- Architecture Dependency: Weight-space representations are strictly tied to a specific neural architecture, limiting the transferability of the resulting coreset.
By contrast, FBPC operates in function space, focusing on the distribution of model outputs (logits). Since the number of output classes ($d$) is typically orders of magnitude smaller than the number of weights ($p$), this shift provides a massive reduction in dimensionality and a smoother optimization landscape.
Methodology: The FBPC Framework
The authors propose a multi-faceted approach to make function-space matching both tractable and effective:
1. Function Space Matching and Linearization
To align the distributions, the method ensures the distribution of outputs for the coreset mimics that of the full dataset. To handle the complexity of neural networks, the authors employ a Taylor expansion to linearize the network around its Maximum A Posteriori (MAP) solution. This linearization allows the function space posterior to be treated as a multivariate Gaussian, simplifying the mathematical alignment.
2. Empirical Covariance via Expert Trajectories
Rather than assuming simple isotropic noise, FBPC utilizes "expert trajectories"—statistics collected from pre-trained model checkpoints. By using these trajectories to build a realistic covariance matrix (similar to SWAG), the method captures the true predictive uncertainty of the model more accurately.
3. Multi-Architecture Training
A unique advantage of function space is its relative universality. The authors leverage this by training a single pseudocoreset across multiple neural architectures simultaneously. This process encourages the synthetic data to capture fundamental, architecture-agnostic features of the dataset, enhancing the generalizability of the coreset.
Experimental Results
The FBPC method was evaluated on standard benchmarks, including CIFAR-10, CIFAR-100, and Tiny-ImageNet, with a specific focus on Out-of-Distribution (OOD) robustness using CIFAR-10-C.
Performance and Efficiency
- Accuracy: On CIFAR-10, using a budget of only 10 images per class, FBPC achieved an accuracy of 62.33%, significantly outperforming the best weight-space baseline (BPC-fKL) at 56.19%.
- Memory Footprint: The efficiency gains were stark. For a ResNet18 model, FBPC required only 2.56 GB of VRAM, whereas the weight-space equivalent required 12.18 GB—a nearly 5x reduction in memory usage.
Robustness and Generalization
- OOD Stability: When tested against corrupted images in CIFAR-10-C (e.g., blur, noise), FBPC demonstrated superior stability. It recorded a degradation score of 23.7, compared to 38.9 for weight-space methods, indicating that function-space matching better preserves the model's ability to handle distribution shifts.
- Cross-Architecture Success: Coresets trained on a mixture of architectures (e.g., ConvNet and ResNet) outperformed those trained on a single model, proving that FBPC captures the "essence" of the data in a way that transcends specific model quirks.
Discussion and Limitations
While FBPC represents a significant leap forward in coreset efficiency, it is not without limitations. The reliance on expert trajectories introduces a one-time upfront computational cost, as the full dataset must be processed to generate these training paths. Additionally, the linearization of the network is an approximation; while effective for many architectures, it may struggle with extremely deep or highly non-linear models where the linear assumption is less valid.
Future research may explore the integration of pseudo-label learning, where labels for the synthetic data are optimized alongside the images themselves, potentially further closing the gap between coreset performance and full-dataset training.
Summary updated