Abstract
Continual Model Merging (CMM) aims to integrate specialized models into a single unified architecture sequentially without requiring access to original training data. However, existing methods suffer from catastrophic forgetting due to parameter interference and lack the flexibility to adapt to specific test-time distributions. We introduce MINGLE (Mixture of Null-Space Gated Low-Rank Experts), a novel paradigm for Test-Time Continual Model Merging (TTCMM). MINGLE utilizes a null-space constrained gating mechanism and low-rank experts to prevent interference between tasks while leveraging a small amount of unlabeled data for test-time adaptation. Our experiments across vision and language benchmarks demonstrate a 7–9% accuracy improvement over state-of-the-art methods and near-zero forgetting.
1. Introduction
In modern machine learning, the ability to combine specialized models—such as those trained for distinct classification tasks—into a single multi-task model is highly desirable. This process, known as model merging, is particularly valuable when original training datasets are unavailable due to privacy concerns or storage constraints.
Traditional Continual Model Merging (CMM) faces two primary challenges: Parameter Interference and Static Rigidity. When a new task is merged into an existing model, it often overwrites the parameters critical for previous tasks, leading to catastrophic forgetting. Furthermore, most merging techniques rely on static weight averaging, which fails to adapt to the specific data distributions encountered during inference. MINGLE addresses these issues by reframing model merging as a dynamic, test-time adaptation problem.
2. The MINGLE Framework
MINGLE (Mixture of Null-Space Gated Low-Rank Experts) is built upon three architectural pillars designed to ensure modularity and stability during sequential merging.
2.1 Low-Rank Experts (LoRA)
Rather than merging massive, dense weight matrices, MINGLE employs Low-Rank Adaptation (LoRA). By extracting and maintaining task-specific updates as low-rank experts, the framework keeps the model lightweight. This modularity allows the system to preserve the unique "knowledge" of each task without the bloat of full-parameter storage.
2.2 Null-Space Constrained Gating
The core innovation of MINGLE is its gating mechanism. To prevent a new task from interfering with established ones, MINGLE restricts the "router"—the component responsible for selecting which expert to activate. The framework ensures that updates to the router occur only within the mathematical null-space of previous tasks. By forcing updates into directions orthogonal to the features used by prior tasks, MINGLE effectively creates a "firewall" that prevents new learning from corrupting old knowledge.
2.3 Test-Time Adaptation (TTA) and Adaptive Relaxation
Unlike static merging, MINGLE utilizes a "seed set" of approximately five unlabeled samples per class during inference. This unlabeled data guides the alignment of experts and the router. To prevent the model from becoming overly rigid, MINGLE includes an Adaptive Relaxation strategy. This dynamically softens null-space constraints based on the level of interference detected during the adaptation phase, allowing for a better balance between stability and plasticity.
3. Experimental Evaluation
3.1 Datasets and Backbones
The researchers evaluated MINGLE across diverse domains:
- Vision: 20 image classification datasets (including SUN397, SVHN, MNIST, DTD, and EuroSAT) were tested using CLIP-ViT (B/32, B/16, and L/14) backbones.
- NLP: 8 tasks from the GLUE benchmark were evaluated using a Flan-T5-base backbone.
- Robustness: The model was tested against corrupted data (e.g., Gaussian noise, motion blur) to evaluate its performance under distribution shifts.
3.2 Key Results
- Superior Accuracy: MINGLE consistently outperformed existing methods like OPCM and Task Arithmetic by 7–9% on average across various task sequences.
- Zero Forgetting: While competing methods experienced performance drops of 4% to 30% on early tasks (Backward Transfer), MINGLE maintained forgetting metrics near zero, typically ranging from -0.1% to -1.5%.
- Efficiency: The test-time adaptation process is computationally efficient, adding only roughly 10 seconds of overhead per task.
- Robustness: MINGLE demonstrated significant resilience to data corruption, maintaining high accuracy where prior static merging methods often collapsed.
4. Discussion and Limitations
The success of MINGLE highlights the power of combining Mixture-of-Experts (MoE) with null-space mathematics. By specializing the model's response to individual inputs and protecting previous activation patterns, MINGLE solves the fundamental trade-off in continual learning.
However, some limitations remain. MINGLE currently assumes that all models share a shared initialization (fine-tuned from the same checkpoint) and identical architectures (e.g., all must be ViT-B/16). Future research will focus on supporting heterogeneous backbones and further optimizing the memory footprint required to store multiple low-rank experts.
5. Conclusion
MINGLE represents a significant step forward in Test-Time Continual Model Merging. By leveraging unlabeled data and null-space constraints, it provides a robust, efficient, and high-performance solution for integrating specialized models without the risk of catastrophic forgetting.
Summary updated