TL;DR
This paper introduces INTERVMERGE, a novel method for efficiently merging multiple task-specific models into a single multi-task model. It tackles the problem of "representation bias" that plagues existing methods by applying lightweight, task-specific interventions across the entire network, leading to improved performance with fewer parameters.
What Problem Does This Paper Address?
Training a single model for multiple tasks (Multi-Task Learning or MTL) is appealing for its efficiency and knowledge transfer benefits. However, it often suffers from "negative transfer" or "task interference," where learning one task hinders performance on another. Collecting data from all tasks for joint training can also be costly and raise privacy concerns.
Model merging offers an alternative: combining already trained task-specific models into a single, unified model without retraining on all data. This approach is becoming increasingly popular, especially with large language models. However, a key challenge in model merging is "representation bias." This occurs when the merged model's internal representations (how it processes information) diverge from those of the original task-specific models, leading to degraded performance. Existing methods like "Surgery" attempt to mitigate this bias, but they typically focus only on the final layers of the network, failing to address bias propagation from earlier layers. This paper aims to solve this by providing a more comprehensive and parameter-efficient way to combat representation bias throughout the entire model.
Methods
The core innovation of INTERVMERGE lies in its "parameter-efficient interventions." Instead of modifying large parts of the merged model, INTERVMERGE applies small, adaptive adjustments at specific points within the network.
- Full-Intervention: Inspired by the ReFT framework, INTERVMERGE uses lightweight, task-specific modules that are inserted into each block of the network. These modules adapt the representations to mitigate bias. They employ low-rank projection matrices, which means they modify the representation using fewer parameters than a full layer.
- Mini-Intervention: To further enhance parameter efficiency, INTERVMERGE introduces "mini-interventions." This approach modifies only a selected part of the representation within a layer, rather than the entire representation. This allows for fine-grained control and even greater parameter savings. The paper explores different strategies for selecting which part of the representation to modify and how to distribute these modifications across network blocks.
INTERVMERGE can be applied on top of existing merging techniques like AdaMerging, further improving their performance. The method uses a distillation loss, similar to Surgery, to ensure the merged model's outputs align with task-specific expectations.
Datasets
The paper evaluates INTERVMERGE on eight diverse image classification datasets:
- SUN397
- Stanford Cars
- RESISC45
- EuroSAT
- SVHN
- GTSRB
- MNIST
- DTD
These datasets cover a range of categories and contexts, including natural scenes, fine-grained vehicle models, and satellite imagery, making them suitable for evaluating multi-task learning and model merging capabilities.
Key Insights and Ideas
- Bias is a multi-layer problem: The paper strongly suggests that representation bias isn't confined to the final layers. Addressing it earlier in the network is crucial for stable and consistent performance.
- Efficiency is key: By using low-rank projections and modifying only specific parts of representations (mini-interventions), INTERVMERGE achieves significant performance gains with substantially fewer added parameters compared to methods like Surgery.
- Task-specific interventions matter: The adaptive nature of the interventions, tailored to each task, is vital for effectively mitigating bias without introducing new conflicts.
- Distributed interventions are powerful: Applying interventions across multiple blocks, even with mini-interventions, proves more effective than concentrating them in a single block or only at the end of the network.
- Class token is important: For image classification tasks using Vision Transformers, intervening on the class token yields the highest accuracy, highlighting its critical role in aggregating global information.
Key Results
- INTERVMERGE consistently outperforms the state-of-the-art Surgery method across various merging techniques.
- When applied to AdaMerging with rank 1, INTERVMERGE surpasses Surgery (rank 64) by 1.46% accuracy, using 3.5 times fewer parameters.
- The mini-intervention approach, when applied across all 12 blocks, achieves an average accuracy of 88.83%, demonstrating its effectiveness.
- Even with a single block intervention, INTERVMERGE shows significant improvements, with middle blocks often yielding better results than the first or last.
- The paper shows that INTERVMERGE is more robust in low-data regimes, outperforming Surgery when only 1% of test data is available.
Limitations and Future Work
- Domain Limitation: The current study is limited to image classification. The authors acknowledge that extending INTERVMERGE to other domains like LLMs, object detection, or segmentation is a promising future direction.
- Intervention Placement: The interventions are currently placed after the Multi-Head Self-Attention (MHSA) layer. Exploring the impact of interventions at other layer types (e.g., MLPs) or within different architectures (like CNNs) is suggested.
- Task-Specific Optimization: While the method is task-specific, the optimal placement and configuration of interventions might still require some tuning per task, especially for single-block interventions.
The paper concludes that INTERVMERGE offers a comprehensive and efficient solution for model merging, effectively addressing representation bias and paving the way for more robust and adaptable multi-task models.
Summary updated