Automated Search for Resource-Efficient Branched Multi-Task Networks

David Brüggemann, Menelaos Kanakis, Stamatios Georgoulis, Luc Van Gool

Introduction

In computer vision, the demand for multi-task models—capable of simultaneously performing operations such as semantic segmentation, depth estimation, and edge detection—is rapidly increasing. This paradigm, known as Multi-Task Learning (MTL), offers significant advantages in terms of inference speed and memory footprint compared to maintaining separate networks for each task. However, the design of an optimal MTL architecture remains a significant challenge. Researchers must navigate the trade-off between "fully shared" architectures, which are efficient but often suffer from task interference, and "independent" architectures, which are accurate but computationally prohibitive.

Historically, "branched" architectures have served as a middle ground, where tasks share a common feature-extracting trunk before diverging into task-specific heads. Yet, determining the precise branching points has largely remained a manual, heuristic-driven process. To overcome these limitations, we present BMTAS (Branched Multi-Task Architecture Search), an automated framework that leverages differentiable search to discover high-performance, resource-efficient branched networks.

BMTAS treats the branching problem as a Neural Architecture Search (NAS) task. The core of the approach is a "supergraph" search space where each task can independently select its path through a sequence of parallel operations.

The BMTAS framework: starting from a supergraph of candidate operations, the system uses differentiable sampling masks to derive an optimized, tree-like branched architecture.

To make this search efficient and end-to-end trainable, BMTAS employs the Gumbel-Softmax trick. This technique relaxes discrete architectural choices into continuous, differentiable parameters, allowing the network structure to be optimized via standard gradient descent alongside the model weights. A critical constraint is enforced during this process: two tasks share computation at a given layer only if they have shared all preceding layers. This ensures the resulting architecture is a clean, deployable tree structure.

Furthermore, BMTAS introduces a proxyless resource loss. Unlike previous methods that rely on offline metrics or pre-trained task relatedness, BMTAS directly estimates the number of Multiply-Add (MAdd) operations during training. By adjusting a single hyperparameter, $\lambda$, the framework can be tuned to prioritize either maximum task accuracy or minimal computational footprint, effectively mapping out the optimal architectural configurations for any given resource budget.

Experimental Results and Discussion

The effectiveness of BMTAS was validated on two prominent dense prediction benchmarks: PASCAL-Context and NYUD-v2. The framework was tested across diverse backbones, including the efficiency-oriented MobileNetV2 and the high-performance ResNet-50.

Performance vs. computational cost (MAdds) for various methods on the MobileNetV2 backbone. BMTAS consistently defines a superior Pareto front compared to greedy and brute-force baselines.

As illustrated in the Pareto front analysis, BMTAS models consistently outperform existing baselines. Specifically, BMTAS achieves a better balance of accuracy and efficiency than greedy layer-by-layer splitting methods (FAFS) or brute-force grouping (BMN). Compared to a fully shared baseline, BMTAS provides a substantial boost in accuracy with only a marginal increase in computational cost.

Interestingly, the automated search often rediscovered intuitive task groupings. For instance, the system frequently grouped "Semantic Segmentation" with "Part Segmentation" and "Surface Normals" with "Edge Detection," confirming that the differentiable search successfully identifies underlying task affinities.

Conclusion

BMTAS represents a significant step forward in automated multi-task network design. By integrating architecture search directly into the training loop and incorporating hardware-aware constraints, it enables the creation of branched networks that are tailored to specific performance and resource requirements. While current work focuses on tree-like structures for 4-5 tasks, future research will aim to scale these methods to broader task sets and explore more complex routing topologies.

Summary updated

BibTeX
@inproceedings{bruggemann2020automated,
  author = {David Brüggemann and Menelaos Kanakis and Stamatios Georgoulis and Luc Van Gool},
  title = {{Automated Search for Resource-Efficient Branched Multi-Task Networks}},
  booktitle = {BMVC},
  year = {2020},
}
Figure