Introduction
Multi-Task Learning (MTL) aims to improve the performance of multiple related tasks by training them within a single model. The industry-standard approach, the Shared-Bottom (SB) architecture, uses common low-level layers for all tasks. However, this often leads to "negative transfer," where conflicting gradients from unrelated tasks degrade overall performance. To address this, researchers from Google and the University of Michigan proposed Sub-Network Routing (SNR), a flexible framework that automates the decision of what to share and what to keep task-specific.
The Sub-Network Routing (SNR) Framework
SNR modularizes shared layers into parallel sub-networks, allowing the model to learn a dynamic routing strategy. This approach moves away from fixed paths, instead using learnable "coding variables" to determine the flow of information between modules.
The authors introduced two primary routing mechanisms:
- SNR-Trans: Employs a transformation matrix and a scalar latent variable for connections, enabling complex feature remapping across layers.
- SNR-Aver: Uses a simpler weighted average of embeddings from the preceding layer’s sub-networks.
Learning the Routing Strategy
To optimize the architecture during standard training, SNR treats routing decisions as latent random variables. By utilizing a hard concrete distribution—a continuous relaxation of discrete Bernoulli variables—the model can explore and finalize its architecture via backpropagation.
Additionally, the inclusion of $L_0$ regularization encourages sparsity, effectively pruning non-essential connections. This not only improves accuracy but also reduces the model's memory footprint, facilitating faster real-time serving. The model naturally learns to allocate more capacity to tasks with more data while protecting smaller tasks from noise.
Experimental Results
The framework was evaluated using the YouTube8M dataset, involving a massive multi-task classification problem across 16 top-level categories. SNR-Trans and SNR-Aver consistently outperformed both the Shared-Bottom baseline and the state-of-the-art Multi-gate Mixture-of-Experts (MMoE) model in Macro and Micro Average-MAP@10 metrics.
A key finding was SNR's superior scaling behavior. While traditional models like SB and MMoE often plateau as parameter counts increase, SNR models demonstrate a steady performance gain with higher capacity. Furthermore, the $L_0$ regularization allowed for an 11% reduction in model size for SNR-Trans without compromising predictive accuracy.
Conclusion
SNR provides a robust solution for large-scale MTL by automating architecture search through learnable sub-network routing. By balancing modularity with sparsity, it mitigates negative transfer and scales effectively, making it a powerful tool for complex, real-time recommendation and classification systems.
Summary updated