Fast Ensembling with Diffusion Schrödinger Bridge

Hyunsu Kim, Jongmin Yoon, Juho Lee

TL;DR

Deep Ensembles are the gold standard for model reliability, but they are notoriously expensive to run. This paper introduces Diffusion Bridge Networks (DBN), a method that uses Schrödinger Bridge theory to "warp" the output of a single neural network into the superior distribution of a full ensemble in a single, lightweight step. The result is ensemble-level accuracy and uncertainty quantification at a fraction of the usual computational cost.

What Problem Does This Paper Address?

In deep learning, "Deep Ensembles" (DE)—averaging the predictions of multiple models trained from different starting points—is a simple yet incredibly effective way to boost accuracy and estimate uncertainty. However, there is a massive catch: inference cost. If you have an ensemble of five models, you have to store five sets of weights and perform five forward passes for every single prediction. This linear scaling makes ensembles impractical for resource-constrained environments like mobile devices or real-time systems.

Previous attempts to solve this, such as "Ensemble Distillation" (compressing the ensemble into one model) or "Bridge Networks" (connecting models via low-loss subspaces in weight space), often struggle to maintain the ensemble's performance or become overly complex as the number of models grows.

Methods

The authors propose Diffusion Bridge Networks (DBN). Instead of trying to find a path between models in the high-dimensional weight space, they focus on the logit space (the raw output scores before the final softmax).

The core idea relies on the Diffusion Schrödinger Bridge (DSB). Think of this as finding the most efficient "stochastic path" that transforms the output distribution of a single "source" model into the averaged output distribution of the target ensemble.

Key components include:

  1. Conditional Diffusion: The bridge is conditioned on the input image's features, ensuring the transformation is context-aware.
  2. Temperature Annealing: To prevent the network from simply "memorizing" and copying the source model's output (a simplicity bias), they inject noise by scaling the source logits with a random temperature during training. This forces the bridge to learn a non-trivial mapping.
  3. Lightweight Score Network: They designed a specialized, efficient architecture using Depthwise Separable Convolutions (similar to MobileNet) to ensure the "bridge" itself doesn't become a computational bottleneck.
  4. Progressive Distillation: Standard diffusion requires many steps to reach a result. The authors use distillation techniques to collapse this process into a single-step inference, making it extremely fast.
Overview of the DBN architecture.

Datasets

The researchers evaluated DBN on three standard image classification benchmarks:

  • CIFAR-10 and CIFAR-100: Small-scale but standard benchmarks for ensembling.
  • TinyImageNet: A more challenging, mid-scale dataset.
  • CIFAR-10-C: A "corrupted" version of CIFAR-10 used to test how well the model handles out-of-distribution data (robustness).

Key Insights and Ideas

  • Logits Over Weights: By working in the logit space rather than trying to interpolate model weights, the authors avoid the complex geometry of "loss landscapes" and create a more scalable solution.
  • The Bridge as a Refiner: The diffusion process acts as a refiner. It takes the "confident but perhaps wrong" prediction of a single model and gradually shifts the probability mass to match the more nuanced, averaged consensus of the ensemble.
  • Breaking the Linear Cost: DBN allows a single model to mimic the performance of 3 to 5 ensemble members with only a ~15-30% increase in FLOPs, rather than the 300-500% increase required by a traditional ensemble.

Key Results

The results show that DBN consistently punches above its weight class:

  • Efficiency: On CIFAR-10, a single model plus a DBN achieved performance equivalent to a 3-model ensemble (DE-3) while using significantly fewer FLOPs and parameters than even a 2-model ensemble.
  • Superiority over Baselines: DBN outperformed the previous state-of-the-art "Bridge Network" (BN) across almost all metrics, including accuracy, Negative Log-Likelihood (NLL), and Expected Calibration Error (ECE).
  • Ensemble Capacity: As shown in the performance comparison below, a single DBN can effectively distill the knowledge of nearly three "teacher" models. If more performance is needed, multiple DBNs can be stacked, though this eventually increases the cost.
Accuracy and Deep Ensemble Equivalent (DEE) comparison.

Limitations and Future Work

While impressive, DBN has a few hurdles:

  • Capacity Saturation: A single bridge network has an intrinsic limit to how much "ensemble-ness" it can capture. To mimic very large ensembles (e.g., 10+ models), you currently need to use multiple DBNs, which brings back some of the linear scaling issues.
  • Training Overhead: While inference is fast, training a diffusion bridge is more computationally intensive than simple ensemble distillation.
  • Scope: The current work focuses on classification. Extending this to regression or generative tasks remains an open area for research.

Summary updated

BibTeX
@inproceedings{kim2024fast,
  author = {Hyunsu Kim and Jongmin Yoon and Juho Lee},
  title = {{Fast Ensembling with Diffusion Schrödinger Bridge}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=Mgq6kxl115},
}
Figure