Introduction
Deep Ensembles (DE)—the practice of training the same neural network architecture multiple times with different random seeds—are a highly effective way to boost predictive accuracy and uncertainty calibration. However, this approach has a glaring drawback: it scales linearly in computational cost. If a practitioner wants an ensemble of five models, they must execute five full forward passes during inference, which often becomes a serious bottleneck for real-world deployment.
Recent research into "mode connectivity" has shown that the different local optima (modes) found by these training runs are actually connected by simple, low-loss paths (such as Bezier curves) in the parameter space. While previous works have leveraged these paths to quickly train new ensemble members, they have not solved the inference bottleneck. To utilize these intermediate models, one still has to run a full forward pass for every model sampled from that path. This paper tackles the inference cost directly, asking: if two models are connected by a simple path, can we cheaply predict the output of a model on that path without actually running it?
Methodology: Bridge Networks
To bypass the need for full forward passes, the authors propose Bridge Networks, which are lightweight auxiliary Convolutional Neural Networks (CNNs).
First, the method identifies a low-loss Bezier curve connecting two trained base models (modes). Instead of running a new input all the way through a model sampled from the middle of this curve, a bridge network is used to predict what that intermediate model would have outputted.
The authors introduce two variants of these networks:
- Type I Bridge Networks: This variant takes intermediate features from just one base model and predicts the output of the intermediate model. Because it relies on a single base model's features, it is incredibly cheap to run and allows practitioners to build an ensemble starting from a single base model.
- Type II Bridge Networks: This variant takes intermediate features from both base models to predict the intermediate model's output. While more accurate than Type I, it requires running two full forward passes first to extract the necessary features.
These bridge networks are trained using Knowledge Distillation—specifically, by minimizing the Kullback-Leibler (KL) divergence between the bridge's prediction and the actual intermediate model's output. The training process also utilizes Mixup data augmentation to ensure the bridge learns the underlying function mapping rather than simply memorizing and copying the base model's output.
Key Insights
The core insight of this work lies in the distinction between function space and parameter space. Because the parameters of two models are connected by a simple curve, their outputs (in function space) are also connected by a relatively simple mapping. Therefore, a massive, deep network is not required to traverse this connection.
By reusing the feature maps already computed by the base models, the bridge network skips the heavy lifting of the early layers, effectively generating "free" ensemble members. Type I bridges even break the traditional rule that ensembling strictly requires multiple full forward passes, allowing a single model's performance to be scaled up by attaching multiple Type I bridges to it.
Empirical Results
The authors evaluated their method on standard image classification benchmarks, including CIFAR-10, CIFAR-100, Tiny ImageNet, and ImageNet, demonstrating massive gains for minimal floating-point operations (FLOPs).
Adding a single, small Type I bridge to a standard ResNet requires only ~5% additional FLOPs. However, on Tiny ImageNet, this tiny addition boosts performance so significantly that it achieves a Deep Ensemble Equivalent (DEE) score of 2.28. This means a model utilizing 1.05x compute outperforms a standard 2-model ensemble, which requires 2.0x compute.
Furthermore, the approach scales existing ensembles efficiently. When adding Type II bridges to an existing 4-model ensemble (DE-4), the resulting predictions achieve the performance of a 5-model ensemble (DE-5) but with significantly fewer FLOPs. Overall, the bridge network approach consistently outperforms other efficient ensembling methods—such as BatchEnsemble, MIMO, and Stochastic Weight Averaging (SWA)—in cost-performance trade-offs.
Limitations and Future Work
While highly effective, the proposed framework has a few limitations:
- Distance Constraints: Type I bridges struggle to accurately predict the outputs of models that are too far away from the base model on the Bezier curve (e.g., past the midpoint).
- Need for Neuron Alignment: On highly complex datasets like ImageNet, the loss landscape is messy. The authors note that "neuron alignment" (permuting the weights of the models to match each other) is required before finding the low-loss subspace; otherwise, the bridge network fails to learn the correlation.
- Compute Floors for Type II: Type II bridges inherently require the memory and compute to run at least two full base models. If a deployment environment is so constrained that it can only fit a single model in memory, practitioners are restricted to using only Type I bridges.
Summary updated