NeuroTrails: Training with Dynamic Sparse Heads as the Key to Effective Ensembling
Bram Grooten, Farid Hasanov, Chenxiang Zhang, Qiao Xiao, Boqian Wu, Zahra Atashgahi, Ghada Sokar, Shiwei Liu, Lu Yin, Elena Mocanu, Mykola Pechenizkiy, Decebal Constantin Mocanu
TL;DR
NeuroTrails tackles the high computational cost of ensembles by splitting a network into a shared backbone and multiple dynamically sparsified heads that are periodically reshaped during training. By using dynamic sparse training and a layer/block-based architecture split, it creates diverse predictive trails while preserving efficient inference via soft voting across heads. Empirical results across CV and language tasks show improved accuracy and robustness with substantially fewer parameters and FLOPs, including real-time CPU speedups using DeepSparse and strong zero-shot generalization on downstream tasks. The work identifies a Goldilocks region of prediction diversity that maximizes ensemble benefit, offering a practical, model-agnostic approach to efficient ensembling for vision and language models.
Abstract
Model ensembles have long been a cornerstone for improving generalization and robustness in deep learning. However, their effectiveness often comes at the cost of substantial computational overhead. To address this issue, state-of-the-art methods aim to replicate ensemble-class performance without requiring multiple independently trained networks. Unfortunately, these algorithms often still demand considerable compute at inference. In response to these limitations, we introduce $\textbf{NeuroTrails}$, a sparse multi-head architecture with dynamically evolving topology. This unexplored model-agnostic training paradigm improves ensemble performance while reducing the required resources. We analyze the underlying reason for its effectiveness and observe that the various neural trails induced by dynamic sparsity attain a $\textit{Goldilocks zone}$ of prediction diversity. NeuroTrails displays efficacy with convolutional and transformer-based architectures on computer vision and language tasks. Experiments on ResNet-50/ImageNet, LLaMA-350M/C4, among many others, demonstrate increased accuracy and stronger robustness in zero-shot generalization, while requiring significantly fewer parameters.
