Introduction
Multitask learning (MTL) is a powerful paradigm for creating robust foundation models that generalize well across diverse domains. By training on multiple supervised datasets simultaneously, models can learn shared representations that benefit a wide array of downstream tasks. However, traditional MTL faces significant hurdles: it typically requires massive centralized compute and simultaneous access to all datasets. In many real-world scenarios, data is siloed due to privacy constraints, legal regulations, or logistical barriers.
To address these challenges, the authors introduce ColD Fusion (Collaborative Descent Fusion). This method enables distributed multitask learning by recycling isolated finetuning efforts. Instead of sharing raw data, contributors share model weights, which are then iteratively averaged to build a superior foundational model.
The ColD Fusion Method
ColD Fusion is an iterative, round-robin approach to distributed multitask learning that leverages model fusion through weight averaging. The process avoids the need for centralized data or complex gradient routing.
The workflow consists of five main steps:
- Initialization: A central repository provides a base pretrained model (e.g., RoBERTa).
- Distribution & Local Finetuning: Multiple contributors download the current base model and finetune it on their local, private datasets using standard optimization techniques.
- Weight Uploading: Contributors send only the updated model parameters back to the central repository, preserving the privacy of the underlying data.
- Parameter Fusion: The repository averages the weights of all contributed models to synthesize a new, single base model.
- Iteration: This fused model serves as the starting point for the next round of local finetuning.
This approach effectively aggregates knowledge across domains by exploiting the observation that averaging weights of models finetuned on different tasks can merge their capabilities without catastrophic interference.
Experimental Setup and Datasets
The effectiveness of ColD Fusion was evaluated using a simulated distributed environment comprising 36 diverse English-language datasets. These included benchmarks like GLUE and SuperGLUE, Natural Language Inference tasks (MNLI, QNLI, RTE), sentiment analysis, and various Twitter-based datasets (emoji prediction, irony detection). To test generalization, 35 datasets were used, with a subset held out as "unseen" tasks to evaluate the model's performance as a zero-shot or few-shot base.
Key Results and Generalization
ColD Fusion demonstrates significant improvements over standard pretrained models and traditional multitask baselines. On average, the ColD Fusion model outperformed the original RoBERTa-base by 2.33 points across 35 datasets. Notably, it also surpassed highly optimized centralized multitask models like MUPPET, which are often prone to negative transfer on specific tasks.
A critical finding is the model's ability to generalize. As shown in the evaluation of seen versus unseen tasks, the fused model becomes a strictly better base model for entirely new datasets. It acquires generalizable linguistic skills rather than merely memorizing specific distributions. Furthermore, in few-shot scenarios (using only 100 training examples), ColD Fusion outperformed the RoBERTa baseline by up to 6.73 points after 20 iterations.
The method also proved remarkably consistent. While centralized MTL models can experience drastic performance drops on certain datasets, ColD Fusion improved performance on 75% of evaluated datasets, with a maximum degradation of only 1.73 points.
Discussion and Future Directions
While ColD Fusion offers a privacy-preserving and resource-efficient alternative to centralized MTL, it has limitations. Real-world deployment requires robust infrastructure to manage iterations and communication. Additionally, the system must be secured against "poisoned" updates from malicious actors.
Future research directions include exploring asynchronous updates to remove the need for global synchronization, implementing weighted averaging schemes, and developing anomaly detection to filter harmful model updates. The authors also suggest that this collaborative paradigm could be extended from the finetuning stage to the initial pretraining phase of large language models.
Summary updated