NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Controllable Dynamic Multi-Task Architectures

Dripta S. Raychaudhuri, Yumin Suh, Samuel Schulter, Xiang Yu, Masoud Faraki, Amit K. Roy-Chowdhury, Manmohan Chandraker

TL;DR

This paper introduces a multi-task learning (MTL) framework that dynamically reshapes its own architecture and weights at inference time. By using hypernetworks to control branching, it allows users to precisely tune the trade-off between task performance and computational cost on the fly, outperforming existing fixed-architecture dynamic models.

What Problem Does This Paper Address?

In the real world, AI models often need to handle multiple tasks at once (e.g., a self-driving car identifying pedestrians, reading signs, and estimating depth). However, these tasks often compete for limited "brain power" (model capacity).

Existing "dynamic" multi-task models are somewhat flexible—they can shift their focus between tasks at runtime—but they usually operate on a fixed architecture. This means the computational cost (FLOPs) remains the same whether the model is performing one task or ten. If your battery is low or you only care about one specific task right now, a fixed-architecture model is inefficient. The authors aim to provide "controllable" MTL where both the task priority and the total compute budget can be adjusted instantly.

Figure 1. Problem setup. Our goal is to enable users to control resource allocation dynamically among multiple tasks at inference time. Conventional dynamic networks (PHN [38]) for MTL achieve this in terms of weight changes within a fixed model (color gra- dients indicate proportion of weights allocated for each task). In contrast, we perform resource allocation in terms of both architec- ture and weights. This enables us to control total compute cost in addition to task preference. Dashed circle represents maximum compute budget, while filled circle represents the desired budget. Portion of colors represents the user-defined task importance.

Methods

The authors propose a system called DYMU (Dynamic Multi-Task Architectures) built around three main components:

  1. The Anchor Net: Instead of starting from scratch, they initialize an "N-stream" network where each stream is a pre-trained model for a specific task. This acts as a "supernet" containing all possible paths.
  2. The Edge Hypernet ($h$): This small auxiliary network takes a user's task preferences ($r$) and resource constraints ($c$) as input. It then predicts the "branching structure"—essentially deciding which layers should be shared between tasks and which should remain independent.
  3. The Weight Hypernet ($\bar{h}$): Once the architecture is chosen, this second hypernetwork predicts "modulations" (adjustments to batch-normalization parameters). This helps the model adapt to new, "cross-task" connections that weren't present during the initial anchor net training.

To train this effectively, they use a Branching Regularized Loss. This loss uses "Task Affinity" (how similar two tasks are) to encourage similar tasks to share features, while an "Inactive Loss" forces low-priority tasks to "piggyback" on existing branches to save compute.

Figure 2. Overview of the framework: Anchor net training, hypernet training, and inference use cases.

Datasets

The framework was evaluated on three standard multi-task benchmarks:

  • NYU-v2: A 3-task indoor scene dataset (semantic segmentation, depth estimation, and surface normals).
  • PASCAL-Context: Tested in both 3-task and 5-task configurations (including saliency and edge detection).
  • CIFAR-100: Re-organized into 20 separate 5-way classification tasks to test scalability.

Key Insights and Ideas

  • Architecture > Weights for Efficiency: While previous methods only changed weight values, changing the structure (pruning branches or merging paths) is a far more effective way to control actual hardware usage and power consumption.
  • Task Affinity as a Guide: The model doesn't just share parameters randomly. By calculating task similarity using Representational Similarity Analysis (RSA), the branching regularizer encourages "logical" sharing—e.g., two tasks that both rely on edges and textures are more likely to share early layers.
  • Active vs. Inactive Dichotomy: The authors found that explicitly separating tasks into "active" (high priority) and "inactive" (low priority) groups during training was crucial for fine-grained control. Inactive tasks are essentially told to "stay out of the way" of the active tasks' resource needs.
Figure 4. Branching loss. Illustration of the branching regular- ization, consisting of active and inactive losses. The active loss encourages limited sharing between high importance tasks, while the inactive loss tries to limit branching for less preferred tasks as much as possible.

Key Results

  • Superior Controllability: The model successfully scales its parameter usage based on the resource preference $c$. As $c$ increases, the model becomes significantly leaner by merging branches.
  • Better Pareto Fronts: In terms of "Hypervolume" (a metric measuring the overall quality of the trade-off between all tasks), DYMU consistently beat state-of-the-art dynamic baselines like PHN (Pareto Hypernetworks).
  • Efficiency: Training one DYMU model is much faster than training dozens of separate static models to cover the same range of task preferences.
  • Performance Gains: On NYU-v2 and CIFAR-100, the dynamic sharing actually allowed the model to outperform single-task baselines, proving that "knowledge transfer" between tasks was happening effectively.
Figure 5. Resource usage on NYU-v2. We visualize resource usage by plotting the proportion of parameters active in the anchor net versus the task preference. The three vertices represent the task preferences with non-zero importance to only one task, while areas in the middle correspond to more dense preferences. As c increases, the predicted networks grow progressively smaller in the dense regions. On the other hand, conventional dynamic networks for MTL always have a constant resource usage (T1:semantic seg., T2:surface normal, T3:depth).

Limitations and Future Work

  • Fixed Depth: Currently, the model only adapts its "width" (branching). The total number of layers (depth) remains constant, which sets a "floor" for the minimum possible compute cost.
  • Memory Overhead: The "Anchor Net" approach requires keeping weights for all tasks available during training, which might not scale well to hundreds of tasks without further optimization.
  • Future Directions: The authors suggest extending the search space to include skip-connections and variable-depth paths to allow for even more extreme power-saving modes.

Summary updated

BibTeX
@misc{raychaudhuri2022controllable,
  author = {Dripta S. Raychaudhuri and Yumin Suh and Samuel Schulter and Xiang Yu and Masoud Faraki and Amit K. Roy-Chowdhury and Manmohan Chandraker},
  title = {{Controllable Dynamic Multi-Task Architectures}},
  year = {2022},
  eprint = {2203.14949},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.14949},
}
Figure