Abstract: We aim to train a multi-task model such that users can adjust the desired compute budget and relative importance of task performances after deployment, without retraining. This enables optimizing performance for dynamically varying user needs, without heavy computational overhead to train and save models for various scenarios. To this end, we propose a multi-task model consisting of a shared encoder and task-specific decoders where both encoder and decoder channel widths are slimmable. Our key idea is to control the task importance by varying the capacities of task-specific decoders, while controlling the total computational cost by jointly adjusting the encoder capacity. This improves overall accuracy by allowing a stronger encoder for a given budget, increases control over computational cost, and delivers high-quality slimmed sub-architectures based on user’s constraints. Our training strategy involves a novel ‘Configuration-Invariant Knowledge Distillation’ loss that enforces backbone representations to be invariant under different runtime width configurations to enhance accuracy. Further, we present a simple but effective search algorithm that translates user constraints to runtime width configurations of both the shared encoder and task decoders, for sampling the sub-architectures. The key rule for the search algorithm is to provide a larger computational budget to the higher preferred task decoder, while searching a shared encoder configuration that enhances the overall MTL performance. Various experiments on three multi-task benchmarks (PASCALContext, NYUDv2, and CIFAR100-MTL) with diverse backbone architectures demonstrate the advantage of our approach. For example, our method shows a higher controllability by ∼ 33.5% in the NYUD-v2 dataset over prior methods, while incurring much less compute cost.
1. Introduction
Multi-Task Learning (MTL) models are increasingly deployed across diverse hardware environments, from high-performance servers in autonomous vehicles to low-power edge devices in smart infrastructure. In these real-world scenarios, both the available computational budget and the relative importance of specific tasks can vary dynamically. Traditional approaches often require training and storing multiple separate models for different hardware or priority scenarios, which is prohibitively expensive. While recent "controllable" models attempt to address this, they often rely on complex hypernetworks that introduce significant memory overhead and scaling issues.
2. The ECMT Framework
We propose Efficient Controllable Multi-Task Architectures (ECMT), a framework that enables a "train-once, deploy-anywhere" paradigm. By utilizing slimmable neural networks, ECMT allows for real-time adjustments of channel widths to meet specific compute and task preference constraints without the need for retraining.
3. Methodology
The core of our approach involves two main components: a novel distillation loss to stabilize training across widths and an efficient search mechanism that decouples compute and preference control.
3.1 Configuration-Invariant Knowledge Distillation (CI-KD)
To enhance the performance of smaller sub-architectures, we introduce Configuration-Invariant Knowledge Distillation (CI-KD). During training, the full-width "SuperNet" acts as a teacher. We compute channel-dimension averages of features to make representations comparable across different widths. This allows smaller SubNets to inherit the robustness and knowledge of the larger model, effectively mitigating task conflicts that typically plague smaller MTL networks.
3.2 Decoupled Control and Evolutionary Search
A key insight of our work is the decoupling of control: we adjust decoder capacity to manage task preferences and encoder capacity to control the overall compute budget. This separation prevents adversarial effects where changing a shared encoder might unexpectedly hurt one task while helping another. At runtime, an evolutionary search algorithm, guided by simple accuracy predictors (3-layer MLPs), identifies the optimal width configuration for a given user-specified budget and task preference vector.
4. Experimental Evaluation
We evaluated ECMT on three diverse benchmarks: NYUD-v2 (3 tasks), PASCAL-Context (5 tasks), and CIFAR100-MTL (20 tasks), using backbones such as MobileNetV2 and ResNet.
- Superior Controllability: ECMT significantly outperforms prior state-of-the-art methods like CDMA. It shows a ~33.5% improvement in controllability (measured by Hypervolume) on NYUD-v2 and a ~55% improvement on PASCAL-Context.
- Resource Efficiency: Our method achieves superior performance trade-offs with significantly lower computational costs (GMACs) and fewer control parameters compared to hypernetwork-based approaches. In NYUD-v2, it achieved better results with roughly half the GMACs of competing methods.
- Zero Retraining: Once the SuperNet is trained, generating a new SubNet for a specific hardware constraint takes negligible time, enabling seamless dynamic adaptation.
5. Conclusion
ECMT provides a highly efficient and flexible framework for dynamic MTL. By leveraging slimmable networks and configuration-invariant distillation, it achieves unprecedented levels of controllability and resource efficiency without the overhead of retraining. Future work will explore extending these principles to Transformer-based architectures and investigating deeper task relativity in the search process.
Summary updated