Introduction
Multi-Task Learning (MTL) aims to improve generalization and computational efficiency by solving multiple related tasks within a single neural network. However, traditional MTL architectures often struggle with two primary issues: negative transfer, where unrelated tasks interfere with each other's learning, and topological rigidity, where a fixed branching structure fails to accommodate the varying complexity requirements of different tasks.
Searching for an optimal task-specific topology is a potential solution, but searching across a complete Directed Acyclic Graph (DAG) is computationally prohibitive, scaling quadratically ($O(N^2)$) with the number of nodes. This paper introduces a dynamic MTL framework that utilizes a restricted DAG and a novel flow-based pruning algorithm to discover efficient, task-specific sub-networks within a shared architecture.
Methodology: Restricted DAGs and Flow-Based Pruning
The authors propose a three-stage framework designed to find the optimal sub-network for each task while maintaining computational efficiency.
1. Restricted DAG-based Central Network
To mitigate the $O(N^2)$ complexity of a full DAG search, the framework implements a "flow restriction." Connections between layers are only permitted if the distance between them is within a specified window ($j - i \le M$). This restriction reduces the search space complexity to $O(N)$, making it feasible for deeper networks while still allowing for a diverse range of potential paths.
2. Flexible Read-in and Read-out Layers
Standard architectures typically follow a linear flow from input to output. In contrast, this model allows any task to "read-in" from the input at any hidden state and "read-out" to a task-specific head from any state. This flexibility enables "early-exiting" for simpler tasks (like edge detection) and "multi-embedding" for more complex tasks (like scene parsing), ensuring that each task uses only the necessary depth and complexity.
3. Three-Stage Training Pipeline
The optimization process is divided into three distinct phases:
- Warm-up: The basic weights of the central network are trained to establish a foundation.
- Search: The model employs a Squeeze Loss ($L_{sq}$) to penalize the number of active connections. This forces the network to identify and prioritize the most critical paths for each specific task.
- Fine-tuning: A Flow-Based Reduction (FBR) algorithm is applied to prune low-importance edges. Unlike traditional pruning that looks at raw weight magnitude, FBR evaluates the "information flow" (the ratio of edge weights) to determine which connections are truly redundant.
Experimental Evaluation
The framework was evaluated across four diverse benchmarks representing both homogeneous and heterogeneous MTL scenarios:
- Omniglot: 20-way character classification across different alphabets.
- NYU-v2: Heterogeneous tasks including semantic segmentation, depth estimation, and surface normal prediction.
- Cityscapes: Urban driving scene tasks (segmentation and depth).
- PASCAL-Context: A complex 5-task scenario involving segmentation, human parts, saliency, normals, and edges.
Key Insights and Results
The proposed method achieved State-of-the-Art (SOTA) results across all tested datasets. On the NYU-v2 benchmark, the model achieved a relative performance gain ($\Delta T$) of +11.1% over the single-task baseline, outperforming previous methods like AdaShare (+8.9%). On Omniglot, it reached 95.71% accuracy with significantly fewer parameters than existing NAS-based MTL methods.
Beyond quantitative metrics, the research yielded several qualitative insights:
- Task-Specific Personalities: Tasks naturally evolved toward different structures. For instance, depth estimation required significantly more resources (depth and width) compared to surface normal prediction.
- Pruning of Long Skips: The search process revealed that "long skip connections" (connecting very early layers to very late ones) were often redundant. Eliminating these via the flow restriction did not degrade performance but improved search speed.
- Dynamic Sharing Patterns: Adjacency matrices showed that tasks like segmentation and surface normals shared very few parameters at the edges, reflecting their low correlation in feature space.
Conclusion and Future Work
This framework demonstrates that searching for task-specific topologies within a restricted DAG can effectively mitigate negative transfer while maintaining efficiency. While the "flow constant" $M$ currently requires manual tuning and the three-stage training process adds complexity, the performance gains are substantial. Future research may extend this topological search to Transformer-based architectures, exploring how attention heads can be dynamically shared or branched across multiple tasks.
Summary updated