Towards efficient feature sharing in MIMO architectures

Rémy Sun, Alexandre Ramé, Clément Masson, Nicolas Thome, Matthieu Cord

Abstract

Multi-Input Multi-Output (MIMO) architectures offer a pathway to efficient ensembling by training multiple subnetworks within a single model. However, on resource-constrained hardware, these subnetworks often partition the model's capacity rather than sharing it, leading to a significant performance drop. This paper introduces MixShare, a novel approach incorporating unmixing mechanisms and kernel alignment to enforce feature sharing. Experimental results on CIFAR-100 demonstrate that MixShare significantly improves both individual subnetwork performance and overall ensemble accuracy, making MIMO viable for smaller neural architectures.

Introduction

Ensembling—the process of combining predictions from multiple neural networks—is a gold standard for improving accuracy and robustness in deep learning. Despite its benefits, ensembling is computationally expensive, typically requiring the training and inference of $N$ separate models. MIMO architectures were proposed to mitigate this cost by training $M$ independent subnetworks within a single "base" network simultaneously.

While MIMO is effective for large-scale models, it faces a critical "scaling issue" on smaller networks, such as those deployed on mobile or AR/VR devices. In these contexts, subnetworks fail to share features, instead exhibiting "roommate" behavior where they partition the network's limited capacity. This leads to a quadratic collapse in available parameters per subnetwork, rendering the individual components too weak to contribute effectively to the ensemble.

The Problem: Capacity Partitioning

The authors identify that in standard MIMO implementations, the parameters available to each subnetwork decrease quadratically as more subnetworks are added. Rather than learning a shared representation, each subnetwork claims a fraction of the neurons. For example, in a two-subnetwork system, each might take half the capacity; in a four-subnetwork system, each takes a quarter. On a small model like WideResNet-28-2, this partitioning leaves each subnetwork with insufficient depth or width to learn complex features.

The MixShare Framework

To transition from capacity partitioning to true feature sharing, the authors propose MixShare, which consists of three primary technical contributions:

1. Unmixing Mechanism

Standard MIMO utilizes input-level "mixing" (similar to CutMix) to combine multiple images into a single input. MixShare introduces an "unmixing" step prior to the final classification layer. By using the original mixing masks to filter feature maps, the architecture allows a single feature map to describe different inputs for different classifiers, effectively forcing the model to use the same internal representations for multiple tasks.

2. Kernel Alignment

A primary reason subnetworks fail to share features is that they develop distinct internal "languages" or representations from the first layer. MixShare addresses this by initializing the convolutional encoders of all subnetworks to the same values. This forced alignment ensures that all subnetworks begin training with a common vocabulary, facilitating the sharing of weights throughout the training process.

3. Fadeout Unmixing

Effective ensembling requires a balance between feature sharing (for efficiency) and subnetwork diversity (for ensemble gains). If subnetworks share everything, they become identical, and the ensemble benefit vanishes. MixShare employs a "fadeout" strategy: training begins with strong unmixing to establish shared features, which is then gradually reduced. This allows subnetworks to specialize and diverge in the later stages of training, capturing the necessary diversity for a robust ensemble.

Experimental Results

The researchers evaluated MixShare using the CIFAR-100 dataset on WideResNet-28-2 (small) and WideResNet-28-5 (medium) architectures. The results indicate a substantial improvement over standard MIMO (MixMo):

  • Accuracy Improvement: On the WideResNet-28-2, standard MIMO achieved an ensemble accuracy of 74.8%. MixShare with fadeout increased this to 79.0%.
  • Subnetwork Strength: The average accuracy of individual subnetworks rose from 71.6% to 76.7%, confirming that feature sharing strengthens the underlying components.
  • Quantifiable Sharing: The "classifier share rate"—a metric measuring the overlap in the final layers—rose from a negligible 4.9% in standard MIMO to 64.4% with MixShare.

Conclusion and Future Work

MixShare demonstrates that the inefficiencies of MIMO on small-scale architectures are not inherent but are a result of poor feature sharing. By enforcing a common representation through kernel alignment and unmixing, MixShare makes high-performance ensembling accessible for resource-constrained devices.

As preliminary work, the authors note that future research should focus on automating hyperparameter tuning for the fadeout schedule and testing the framework on larger datasets like ImageNet. Additionally, exploring the impact of MixShare on uncertainty estimation and out-of-distribution robustness will be critical for its application in safety-critical mobile AI.

Summary updated

BibTeX
@inproceedings{sun2022towards,
  author = {Rémy Sun and Alexandre Ramé and Clément Masson and Nicolas Thome and Matthieu Cord},
  title = {{Towards efficient feature sharing in MIMO architectures}},
  booktitle = {Workshops @ CVPR},
  year = {2022},
}
Figure