Deep Elastic Networks with Model Selection for Multi-Task Learning

Chanho Ahn, Eunwoo Kim, Songhwai Oh

TL;DR

Deep Elastic Networks (DEN) introduce a framework for multi-task learning that dynamically selects a specialized sub-model for every single input instance. By combining a hierarchical "elastic" backbone with a tiny selector network, the system achieves state-of-the-art accuracy across multiple tasks while significantly reducing computational overhead (FLOPs).

What Problem Does This Paper Address?

Multi-task learning (MTL) aims to solve several problems at once using a shared neural network. However, it faces a classic "Goldilocks" dilemma: a single shared model might be too small to capture the nuances of diverse tasks (leading to performance degradation), while giving each task its own full-sized model is computationally expensive and ignores potential shared knowledge.

Existing solutions often rely on manual architectural design or complex routing mechanisms that don't optimize for resource efficiency. The authors of this paper tackle the challenge of instance-wise dynamic model selection. They want a system that looks at an image and says, "For this specific picture, I only need these specific parts of the network to get the right answer efficiently."

Methods

The proposed framework, called Deep Elastic Network (DEN), consists of two main components:

  1. The Estimator (The "Elastic" Backbone): This is the heavy lifter, based on standard architectures like ResNet or VGG. The authors divide the network into "blocks," where each block is structured hierarchically. A lower level in the hierarchy uses fewer convolutional channels (saving computation), while higher levels use more. This allows the network to "stretch" or "shrink" its capacity.
  2. The Selector (The Decision Maker): A much smaller network that processes the input instance and outputs a probability distribution over the possible sub-models in the Estimator. It essentially picks the "level" of hierarchy to use for each block.
Figure 1. An overview of the proposed framework, which consists of an estimator and a selector. The estimator, whose structure is identical to the backbone network, includes multiple internal net- works (models) of different configurations and scales. The selector outputs a probability distribution over the candidate models given an instance from a task. The model with the highest probability is chosen from the estimator to perform the assigned task.

Training Strategy

Because choosing a discrete sub-model is a non-differentiable operation, the authors use a sampling-based learning strategy (similar to REINFORCE in reinforcement learning). They jointly train the Estimator and Selector using a loss function that balances classification accuracy with a sparsity regularization term to encourage the selection of smaller, more efficient models. To prevent the model from getting stuck in poor early configurations, they use an $\epsilon$-greedy exploration strategy and initialize the system to favor the "full" model at the start of training.

Figure 2. A graphical representation of the proposed framework which is based on a backbone network (a residual network [10]). The framework consists of an estimator and a selector. The estimator, whose structure is identical to the backbone network, contains n disjoint blocks. A block is defined as a collection of consecutive convolution layers (a block is the same as a residual block while keeping the number of channels). To simplify the hierarchical structure of each block, convolution layers in each block are divided into multiple groups. As shown on the right side of the figure, lower levels of hierarchy contain fewer convolution groups and higher levels contains more groups. The estimator can produce different network models by selecting convolution groups from zero to all groups in every block. The selector outputs a probability distribution over the convolution groups in every block, and a network model is determined from the distribution. The overall loss function consists of a prediction loss term (e.g., cross-entropy) from the determined network model and a sparse regularization term.

Datasets

The authors evaluated DEN on several standard image classification benchmarks, organized into different multi-task and compression scenarios:

  • CIFAR-10 & CIFAR-100: Standard small-scale image datasets.
  • Tiny-ImageNet: A subset of ImageNet with 200 classes at 64x64 resolution.
  • STL-10: A dataset designed for developing unsupervised feature learning.
  • Mini-ImageNet: A subset of 50 classes from ImageNet, resized to 224x224.

Key Insights and Ideas

  • Instance-Awareness is Key: Unlike previous MTL methods that assign a fixed sub-model to an entire task, DEN assigns a sub-model to each image. This allows the network to use high capacity for complex images and low capacity for simple ones, regardless of the task.
  • Shared Knowledge through Structure: The authors found that similar images across different tasks (e.g., a bus in CIFAR-100 and a truck in STL-10) often trigger the selection of similar sub-model structures. This suggests the Selector is effectively identifying common visual features across task boundaries.
  • Efficiency without Fine-Tuning: Unlike many network pruning or architecture search methods, DEN does not require a separate, expensive fine-tuning stage. The "elastic" nature is baked into the joint training process.

Key Results

  • Superior Accuracy/Efficiency Trade-off: In a three-task scenario (CIFAR-100, Tiny-ImageNet, STL-10), DEN using a ResNet-42 backbone achieved an average accuracy of 74.30% using only 1.61G FLOPs. In comparison, a standard baseline required 2.91G FLOPs to reach only 69.51% accuracy.
  • Outperforming Competitors: DEN consistently beat other state-of-the-art MTL methods like PackNet, NestedNet, and Routing Networks in both accuracy and computational savings.
  • Effective Compression: When applied to single-task network compression, DEN outperformed specialized methods like BlockDrop and N2N, achieving higher accuracy with fewer parameters (e.g., 94.50% accuracy on CIFAR-10 with 4.25M parameters vs. 94.15% with 6.44M for Pruning).
Figure 3. Sampled images from each task (dataset) which have the similar model distribution to that of the query images (first column). The query images belong to CIFAR-100, Tiny-ImageNet, and STL-10 from top to bottom, respectively.

Limitations and Future Work

  • Search Space Complexity: The authors noted that if the number of hierarchical levels becomes too high (e.g., five levels), performance can degrade because the model selection space becomes too difficult for the Selector to navigate effectively.
  • Backbone Dependency: While "elastic," the search space is still constrained by the chosen backbone architecture (e.g., ResNet). Integrating DEN with more flexible Neural Architecture Search (NAS) could be a promising future direction.
  • Initial Distribution Sensitivity: The training is sensitive to how the Selector is initialized. The authors had to implement a specific "full-model-first" bias to ensure stable convergence.

Summary updated

BibTeX
@inproceedings{ahn2019deep,
  author = {Chanho Ahn and Eunwoo Kim and Songhwai Oh},
  title = {{Deep Elastic Networks with Model Selection for Multi-Task Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00663},
}
Figure