Introduction
Multi-task learning (MTL) leverages shared information across related tasks to improve generalization. However, traditional MTL approaches often require large, static neural networks or rigid, human-designed architectures to manage diverse data. While dynamic model compression techniques can select sub-networks on the fly to save computation, they are typically restricted to single-task settings and often underperform compared to uncompressed baselines.
This paper introduces Deep Elastic Networks (DEN), a framework designed for instance-wise dynamic model selection. DEN automatically routes each input image through an optimal, compact sub-network, balancing high performance with computational efficiency without requiring manual task-to-model assignments.
The DEN Framework
The DEN architecture consists of two primary components trained jointly: the Estimator and the Selector.
The Estimator
The Estimator serves as the "muscle" of the system. It is a standard backbone network (e.g., ResNet or VGG) restructured into a hierarchical format. Convolutional layers are partitioned into disjoint groups or "levels." Lower levels utilize fewer channels for efficiency, while higher levels incorporate more channels for increased capacity.
The Selector
The Selector acts as the "brains," consisting of a lightweight auxiliary network. For every input instance, the Selector outputs a probability distribution over the available hierarchy levels for each block in the Estimator. This allows the system to dynamically carve out a custom sub-network tailored to the specific image being processed.
Training and Optimization
Because the Selector makes discrete routing decisions, standard backpropagation is not directly applicable. The authors employ a sampling-based approximation strategy inspired by reinforcement learning, specifically an $\epsilon$-greedy approach for exploration. The total loss function includes a sparsity regularization term that penalizes computationally heavy sub-networks, incentivizing the Selector to find the most efficient path that maintains accuracy.
Experimental Results
The framework was evaluated across several image classification benchmarks, including CIFAR-10/100, Tiny-ImageNet, STL-10, and Mini-ImageNet.
Multi-Task Learning Performance
In a multi-task scenario combining CIFAR-100, Tiny-ImageNet, and STL-10 using a ResNet-42 backbone, DEN achieved a state-of-the-art average accuracy of 74.30% while requiring only 1.61G FLOPs. This significantly outperformed the baseline (69.51% accuracy at 2.91G FLOPs) and surpassed other MTL methods like PackNet and NestedNet.
Efficiency in Hierarchical and Single-Task Settings
For hierarchical classification on CIFAR-100 (predicting coarse and fine labels), DEN halved the FLOP requirement (from 2.91G to 1.37G) while improving accuracy. When applied to single-task compression on CIFAR-10 with a ResNeXt-29 backbone, DEN achieved a 1.9x reduction in FLOPs with 94.47% accuracy, outperforming specialized compression methods like BlockDrop.
Key Insights: Semantic Routing
A significant finding of this work is that instance-level routing allows the network to discover shared features organically across tasks. Qualitative analysis reveals that the Selector learns to route semantically similar images through the same sub-networks, regardless of their original dataset.
As shown in the figure above, images of vehicles from CIFAR-100, Tiny-ImageNet, and STL-10 are routed similarly, as are images of insects or deer. This suggests that the model learns a universal feature representation that transcends specific task boundaries.
Limitations and Conclusion
While effective, the DEN framework faces challenges. The alternating optimization process for the Estimator and Selector is more complex than standard training and highly sensitive to initialization. The authors found that forcing the Selector to favor the full model during early training is crucial to avoid poor local optima. Additionally, increasing the number of hierarchical levels too far can degrade performance due to the exponentially expanding search space.
Despite these complexities, Deep Elastic Networks demonstrate that instance-wise model selection is a powerful strategy for multi-task learning, offering a path toward highly efficient and semantically aware neural architectures suitable for resource-constrained environments.
Summary updated