TL;DR
This paper introduces "progressive task-specific adaptation," a new parameter-efficient method for multi-task learning. It addresses the challenge of task interference in multi-task learning by progressively making adapter modules more task-specific deeper into the network, outperforming existing methods while using fewer trainable parameters.
What Problem Does This Paper Address?
Large pre-trained models are incredibly powerful but adapting them to multiple tasks (multi-task learning or MTL) is computationally expensive and prone to issues like "task interference" and "negative transfer." This happens because sharing parameters across tasks can lead to conflicting gradients, degrading performance. Parameter-efficient fine-tuning (PEFT) methods, like adapters or LoRA, offer a solution by only training a small subset of parameters. However, extending these PEFT methods to MTL still faces challenges: individual task adaptation doesn't allow knowledge transfer, and shared PEFT modules can still suffer from interference. The authors aim to bridge this gap by developing a PEFT approach for MTL that balances knowledge transfer and task specialization effectively.
Methods
The core innovation is progressive task-specific adaptation. Instead of having all adapter modules shared or all task-specific, this method uses adapter modules that are shared in the earlier layers of the network and become progressively more specialized as they move towards the output layers (decoders). This creates a branched structure, similar to successful full fine-tuning approaches, but implemented efficiently with adapters.
To manage task interference, the authors propose a gradient-based task similarity metric. This metric quantifies how similar tasks are by analyzing the gradients of their respective losses with respect to the shared model parameters. This similarity score is then used to group tasks. Similar tasks are assigned to the same adapter module within a given layer, promoting positive knowledge transfer and reducing conflicts.
The implementation uses a LoRA-based layer named TGLORA (Task-Grouped LoRA). This layer allows for multiple low-rank modules, each dedicated to a specific task group within a layer, enabling the progressive specialization. The task grouping itself is framed as a set partitioning problem, aiming to maximize a score based on the computed task similarities.
Datasets
The authors evaluate their approach on two standard multi-task learning datasets for dense prediction tasks:
- PASCAL: This dataset includes four tasks: semantic segmentation, saliency detection, surface normal estimation, and human part segmentation.
- NYUD-v2: This dataset includes three tasks: semantic segmentation, depth estimation, and surface normal estimation.
Key Insights and Ideas
- Progressive Specialization is Key: The idea of adapters becoming progressively task-specific, rather than all-or-nothing, is crucial for balancing efficiency and performance in MTL.
- Gradient Similarity for Task Grouping: Using gradient information to measure task similarity is an effective and computationally efficient way to group tasks, directly addressing the core problem of task interference.
- Adapter Efficiency for Branching: Adapters provide a parameter-efficient way to implement the beneficial "branching" architecture for MTL, avoiding the high parameter counts of full fine-tuning branched models.
- Task Grouping Matters: The experiments show that grouping less similar tasks together negatively impacts performance, validating the importance of their proposed task similarity metric.
Key Results
- Outperforms Existing PEFT-MTL Methods: On both PASCAL and NYUD-v2 datasets, their proposed TGLORA method achieves better overall multi-task performance (measured by the average per-task improvement, Am) compared to existing parameter-efficient multi-task learning methods like MTLORA and Polyhistor.
- Fewer Trainable Parameters: TGLORA consistently uses fewer trainable parameters than these competing methods while achieving superior results. For instance, on PASCAL, it achieved a +4.50% Am improvement with 6.89M parameters, outperforming MTLORA (+2.55% Am with 8.34M parameters).
- Flexible Trade-off: The architecture allows for a flexible trade-off between computational budget (inference cost) and performance. By adjusting the number of task groups per layer, they can tune the model's efficiency and accuracy.
- Backbone Agnostic: The method shows strong performance when applied to both Swin Transformers and Pyramid Vision Transformers, suggesting its generalizability.
Limitations and Future Work
- Manual Task Grouping: The number of task groups in each layer was determined manually. The authors suggest that developing automated methods for selecting the optimal number of task groups would be a valuable future direction.
- Scalability of Task Grouping Algorithm: The current branch-and-bound algorithm for task grouping becomes intractable for a very large number of tasks. They propose exploring approximate variants to make the method more scalable.
- Further Exploration of Branching Configurations: Exploring a broader range of branching configurations could yield deeper insights.
Summary updated