Introduction
In the current landscape of artificial intelligence, the standard practice involves fine-tuning foundational models for specific downstream tasks. While highly effective, this approach leads to a deployment bottleneck: maintaining a separate model for every task is prohibitively expensive in terms of storage and compute. Multi-Task Learning (MTL) offers a potential solution by creating a single model capable of handling multiple tasks, but it typically requires simultaneous training on all datasets, raising significant privacy concerns and requiring massive computational resources.
Model Merging has emerged as a compelling "data-free" alternative. By mathematically combining the weights of existing expert models, researchers can create a multi-task powerhouse without needing the original training data. However, this process is often plagued by "task interference," where the specific parameter updates of different models clash, leading to a significant degradation in performance. This paper introduces DOGE (Adaptive Projective Gradient Descent), a framework that treats model merging as a constrained optimization problem to mitigate these conflicts.
The DOGE Framework
DOGE addresses task interference by framing the merging process through the lens of optimization rather than simple weight averaging. The framework consists of three core innovations:
1. A Data-Free Optimization Objective
The authors frame merging as an effort to minimize the performance gap between the merged model and the individual experts. To overcome the absence of original training data, they utilize a first-order Taylor expansion to approximate the loss function. By substituting missing gradients with "task vectors"—the difference between fine-tuned and pre-trained weights—they treat these vectors as accumulated gradients that represent the direction of task-specific expertise.
2. Shared Subspace Projection
To resolve conflicts without discarding essential common knowledge, DOGE employs Singular Value Decomposition (SVD) to identify a "shared subspace" where tasks overlap. The optimization is then constrained so that updates are made orthogonal to this shared subspace. This allows the model to resolve task-specific conflicts in the "empty" or non-overlapping parts of the parameter space, effectively smoothing out friction without damaging the foundational features shared across tasks.
3. Task-Aware, Training-Free Scaling
Rather than relying on a single global scaling factor ($\lambda$) for all tasks, DOGE derives an adaptive, layer-wise coefficient based on the norm of the task vectors. This approach functions similarly to an adaptive optimizer (like Adam), automatically balancing the influence of different tasks based on their parameter magnitude and importance.
Experimental Evaluation
The authors evaluated DOGE across diverse domains, demonstrating its robustness and scalability:
- Vision Benchmarks: Using ViT-B/32 and ViT-L/14 models, DOGE was tested on an 8-task benchmark including diverse datasets such as SUN397 (scenes), Stanford Cars, and EuroSAT (satellite imagery). On the ViT-B/32 benchmark, DOGE improved the average accuracy of standard Task Arithmetic from 69.1% to 80.7%.
- Natural Language Processing: Evaluated on the GLUE benchmark using Flan-T5 models, DOGE achieved an average score of 79.9%, outperforming both traditional weight averaging (78.2%) and advanced methods like Ties-Merging (77.5%).
- Generative LLMs: The framework successfully merged WizardLM-13B, WizardMath-13B, and LLaMA-2-13B-code-alpaca. The resulting model maintained high performance across instruction following, mathematics, and coding tasks. Notably, merging three 13-billion parameter models took only 58 minutes on a single NVIDIA A100 GPU.
Key Insights
A critical finding of this research is the rejection of the "Orthogonality Trap." While previous studies suggested that forcing task vectors to be orthogonal reduces interference, the authors argue that high-dimensional vectors are already nearly orthogonal. Forcing further orthogonality often destroys the shared knowledge necessary for generalization. Instead, DOGE demonstrates that the most effective way to "fix" a merged model is to adjust parameters in directions where tasks do not overlap, preserving the core logic while resolving specific conflicts.
Limitations and Future Work
Despite its success, DOGE currently requires homogeneous merging—all models must share the same architecture and parameter shapes. Additionally, the mathematical derivation relies on the "Neural Tangent Kernel" assumption, which posits that the model stays within a linear regime during fine-tuning. This assumption is generally accurate for Parameter-Efficient Fine-Tuning (PEFT) like LoRA but may be less precise for extensive full-parameter fine-tuning.
Future research may explore applying this projective approach to "model breading" or evolving models across different architectures, potentially moving toward a more flexible and universal model merging paradigm.
Summary updated