Promoting Ensemble Diversity with Interactive Bayesian Distributional Robustness for Fine-tuning Foundation Models

Ngoc-Quan Pham, Tuan Truong, Quyen Tran, Tan Nguyen, Dinh Q. Phung, Trung Le · OpenReview

Abstract

We introduce Interactive Bayesian Distributional Robustness (IBDR), a novel Bayesian inference framework that allows modeling the interactions between particles, thereby enhancing ensemble quality through increased particle diversity. IBDR is grounded in a generalized theoretical framework that connects the distributional population loss with the approximate posterior, motivating a practical dual optimization procedure that enforces distributional robustness while fostering particle diversity. We evaluate IBDR's performance against various baseline methods using the VTAB-1K benchmark and the common reasoning language task. The results consistently show that IBDR outperforms these baselines, underscoring its effectiveness in real-world applications.

Introduction

As foundation models like Vision Transformers (ViT) and Large Language Models (LLMs) become central to modern AI, the focus has shifted from simple accuracy to the reliability and calibration of these models. In high-stakes applications, it is not enough for a model to be right; it must also know when it is likely to be wrong. Bayesian methods offer a principled approach to uncertainty estimation by treating model parameters as distributions. However, traditional Bayesian sampling often suffers from "mode collapse," where the individual members of an ensemble (particles) converge to nearly identical solutions, negating the benefits of the ensemble approach.

This paper, presented at ICML 2025, introduces Interactive Bayesian Distributional Robustness (IBDR). IBDR addresses the "lonely particle" problem by enabling models to interact during the fine-tuning process, ensuring they remain diverse while maintaining high individual performance and robustness to data shifts.

The Challenge: The "Lonely Particle" Problem

When fine-tuning foundation models, practitioners often use ensembles to improve performance and estimate uncertainty. Standard Bayesian methods, such as Markov Chain Monte Carlo (MCMC) or Variational Inference (VI), typically sample model instances independently. Because these particles do not "talk" to one another during training, they often gravitate toward the same local minima in the loss landscape. If every member of an ensemble makes the same mistake, the ensemble’s collective uncertainty estimate becomes misleadingly confident. To solve this, a mechanism is needed to push particles apart without sacrificing their individual accuracy.

Interactive Bayesian Distributional Robustness (IBDR)

IBDR introduces a dual-optimization framework that balances ensemble diversity with individual model robustness.

1. Interactive Particles and Divergence Loss

Instead of training models in isolation, IBDR defines a joint distribution over the entire ensemble. The framework introduces a divergence loss ($l_{div}$) inspired by Determinantal Point Processes (DPP). Unlike standard diversity metrics, this loss focuses on "non-maximal" prediction probabilities—the scores assigned to incorrect classes. By encouraging models to span a larger "volume" in this probability space, IBDR forces the ensemble members to disagree on which incorrect labels are most likely. This ensures that the ensemble captures a broader spectrum of potential uncertainty.

2. Distributional Robustness and Flat Minima

To prevent diverse particles from becoming unstable or inaccurate, IBDR integrates Wasserstein-based Distributional Robustness Optimization (DRO). This provides a theoretical bridge to Sharpness-Aware Minimization (SAM). By optimizing for distributional robustness, the framework ensures that models converge to "flat minima"—regions where the loss remains low even if data or parameters are slightly perturbed. The authors demonstrate that the popular Sharpness-Aware Bayesian Neural Network (SA-BNN) is actually a special case of this broader IBDR framework.

3. Parameter-Efficient Implementation

To make this approach viable for massive foundation models, IBDR is designed for Parameter-Efficient Fine-Tuning (PEFT), specifically using Low-Rank Adaptation (LoRA). Rather than applying Bayesian interactions to billions of parameters, the framework operates only on the low-rank adapter weights, significantly reducing the computational and memory overhead.

Experimental Evaluation

The authors evaluated IBDR across two primary domains: computer vision and natural language processing.

Vision: VTAB-1K Benchmark

On the VTAB-1K benchmark, which includes 19 diverse image classification tasks with limited data (1,000 examples each), IBDR achieved an average top-1 accuracy of 73.6%. This significantly outperformed standard LoRA (68.4%) and the previous state-of-the-art Bayesian method, SA-BNN (68.2%).

Language: Commonsense Reasoning

Using LLaMA2-7B, the authors tested IBDR on tasks including ARC, Winogrande, OpenBookQA, and BoolQ. IBDR consistently achieved the lowest Expected Calibration Error (ECE). This indicates that the model's confidence levels are well-aligned with its actual accuracy, a critical requirement for reliable AI deployment.

Out-of-Distribution (OOD) Detection

IBDR demonstrated superior performance in identifying OOD data. When presented with images from datasets outside its training distribution, the interactive ensemble showed much lower confidence than standard methods, effectively signaling its own lack of knowledge.

Discussion and Limitations

While IBDR represents a significant step forward, it does introduce some trade-offs:

  • Computational Overhead: Training with multiple particles is more intensive than training a single model. For example, using four particles is approximately 3x slower than standard single-model training.
  • Hyperparameter Sensitivity: The method introduces new parameters, such as $\alpha$ (diversity) and $\rho$ (robustness), which may require tuning for different architectures.
  • Scaling: Future work is needed to determine how well IBDR scales to "frontier" models exceeding 70B parameters, where memory constraints are most severe.

Conclusion

Interactive Bayesian Distributional Robustness (IBDR) provides a robust theoretical and practical framework for fine-tuning foundation models. By fostering interaction between ensemble members and anchoring them in distributional robustness, IBDR achieves superior accuracy, better calibration, and more reliable uncertainty estimation than traditional independent sampling methods.

Summary updated

Abstract

We introduce Interactive Bayesian Distributional Robustness (IBDR), a novel Bayesian inference framework that allows modeling the interactions between particles, thereby enhancing ensemble quality through increased particle diversity. IBDR is grounded in a generalized theoretical framework that connects the distributional population loss with the approximate posterior, motivating a practical dual optimization procedure that enforces distributional robustness while fostering particle diversity. We evaluate IBDR's performance against various baseline methods using the VTAB-1K benchmark and the common reasoning language task. The results consistently show that IBDR outperforms these baselines, underscoring its effectiveness in real-world applications.
BibTeX
@inproceedings{pham2025promoting,
  author = {Ngoc-Quan Pham and Tuan Truong and Quyen Tran and Tan Nguyen and Dinh Q. Phung and Trung Le},
  title = {{Promoting Ensemble Diversity with Interactive Bayesian Distributional Robustness for Fine-tuning Foundation Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=yTWqL3XHCC},
}
Figure