On the Effectiveness of Neural Ensembles for Image Classification with Small Datasets

Lorenzo Brigato, Luca IocchiarXiv 2021

TL;DR

When training data is scarce, deep neural networks prone to severe overfitting typically fail to generalize. This paper reveals that ensembles of smaller, shallower networks consistently outperform their deeper or wider single counterparts under a fixed computational budget. The authors demonstrate that these ensembles achieve superior data efficiency because they inherently learn simpler, smoother mathematical functions.

What Problem Does This Paper Address?

Modern deep learning thrives on massive datasets, but in many real-world applications—such as medical imaging or rare-object recognition—collecting thousands of labeled images is impossible. When trained from scratch on just tens or hundreds of samples per class, standard deep convolutional neural networks (CNNs) overfit dramatically.

While transfer learning and few-shot learning mitigate this, they still depend on massive external datasets for pre-training. This paper tackles the challenge of training CNNs from scratch in data-starved regimes. Specifically, it investigates how to best allocate a fixed computational budget: Should you build a deeper network, a wider network, or an ensemble of smaller networks?

Methods

The authors systematically evaluate homogeneous neural ensembles—groups of identical, smaller architectures (such as ResNet-8 or VGG-5) trained independently with randomized initializations.

To ensure a fair comparison, they introduce a strict computational budget measured in floating-point operations (FLOPs). Instead of comparing an ensemble to a single network of the same small size, they compare an ensemble of $M$ small networks against a single deep network (increased depth) or a single wide network (increased width) that consumes the exact same total FLOPs.

To uncover the underlying mechanism of why ensembles excel, the authors analyze function complexity using the Frobenius norm of the input-output Jacobian. This metric tracks how sensitive the network's outputs are to small perturbations in the inputs, serving as a proxy for the smoothness of the learned function.

Datasets

The authors sub-sampled five popular image classification benchmarks to simulate data-scarce environments:

  • CIFAR-10 and CIFAR-100 (evaluated at 10, 50, 100, and 250 samples per class)
  • SVHN (evaluated at 10, 50, 100, and 250 samples per class)
  • Stanford Dogs (evaluated at 10, 50, and 100 samples per class)
  • CUB-200 (a fine-grained dataset evaluated at 5, 10, 20, and 30 samples per class)

Key Insights and Ideas

  • Depth is a Liability with Small Data: Counter-intuitively for modern deep learning, increasing network depth degrades performance when data is scarce. Deeper networks possess an inherent bias toward learning highly complex functions, making them hyper-sensitive to input variance and prone to extreme overfitting.
  • Width Beats Depth, But Ensembles Win: If you must use a single network, making it wider handles data scarcity better than making it deeper. However, splitting that same computational budget across an ensemble of smaller networks yields the best generalization.
  • Ensembles Learn Simpler Functions: Independent training combined with prediction averaging effectively acts as a low-pass filter. It dampens the high-frequency oscillations (overfitting) of individual networks, resulting in a smoother function landscape with lower local sensitivity.
Comparison of allocating resources to depth, width, or multiple networks (ensembles) across CIFAR datasets.

Key Results

  • Beating the State-of-the-Art: Ensembles consistently outperformed specialized data-efficiency methods, including advanced regularization techniques (like Convolutional Neural Tangent Kernels) and generative data augmentation (like GLICO).
  • Substantial Accuracy Gains: On CIFAR-10 with 100 samples per class, an ensemble of 20 ResNet-8 networks achieved 63.64% accuracy, significantly outperforming a regularized single ResNet-18 competitor at 49.30%.
  • Lower Sensitivity: Qualitative t-SNE visualizations of the input-output Jacobian norms confirmed that ensembles maintain significantly lower sensitivity across the feature space compared to deeper or wider single alternatives.
t-SNE visualization showing that ensembles maintain lower local sensitivity (smoother functions) across the testing sample space.

Limitations and Future Work

While the authors successfully control the computational budget during inference, training multiple networks independently can introduce engineering overhead in terms of parallelization and memory management. Furthermore, the base models within the ensemble must still possess enough raw representational capacity to fit the training data; if a task's baseline complexity is too high, an ensemble of ultra-shallow networks will underfit.

Promising future directions include combining these resource-equivalent ensembles with advanced data augmentation strategies or generative models to see if the data-efficiency gains stack synergistically.

Summary updated

BibTeX
@misc{brigato2021effectiveness,
  author = {Lorenzo Brigato and Luca Iocchi},
  title = {{On the Effectiveness of Neural Ensembles for Image Classification with Small Datasets}},
  year = {2021},
  eprint = {2111.14493},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.14493},
}
Figure