TL;DR
MINGLE introduces a novel paradigm called Test-Time Continual Model Merging (TTCMM) that sequentially fuses independently fine-tuned models using only a handful of unlabeled test samples. By combining a low-rank mixture-of-experts architecture with adaptive null-space constrained gating, it achieves state-of-the-art accuracy while virtually eliminating catastrophic forgetting.
What Problem Does This Paper Address?
Continual learning (CL) aims to incrementally adapt machine learning models to new tasks without forgetting previously acquired knowledge. However, traditional CL approaches typically require continuous access to original training data, raising significant privacy concerns and massive computational overhead.
Continual Model Merging (CMM) offers a data-free alternative by directly combining independently fine-tuned models in parameter space. Unfortunately, existing CMM methods face two major hurdles: severe parameter interference between tasks (which causes catastrophic forgetting) and a lack of adaptability to shifting test-time distributions.
To bridge this gap, the authors formalize the task of Test-Time Continual Model Merging (TTCMM), which leverages a tiny set of unlabeled test samples during inference to dynamically mitigate parameter conflicts and handle distribution shifts.
Methods
The authors propose MINGLE (MIxture of Null-Space Gated Low-Rank Experts), a framework designed to continually fuse models at test-time while robustly preserving past knowledge. Its core components include:
- Low-Rank Expert Mixture: Instead of statically averaging weights, MINGLE implements a Mixture-of-Experts (MoE) architecture. For each new task, a lightweight, LoRA-based expert is extracted via a truncated Singular Value Decomposition (SVD) on the task vector, which has been orthogonally projected away from prior task directions.
- Null-Space Constrained Gating: A dynamic gating mechanism routes inputs to the appropriate experts. To prevent new task updates from disrupting old tasks, gating parameter updates are strictly restricted to the null-space (orthogonal complement) of the features activated by prior tasks.
- Adaptive Relaxation Strategy: A rigid null-space constraint can over-stabilize the model, severely limiting its plasticity (ability to adapt). MINGLE tracks online interference signals using an exponential moving average and dynamically relaxes the constraint strength, striking an optimal balance between stability and adaptability.
Datasets
MINGLE was evaluated across both vision and language domains:
- Vision: 20 standard image classification datasets (including SUN397, Stanford Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, and DTD) evaluated in progressive sequences of 8, 14, and 20 tasks.
- Multi-domain Vision: The Multi-domain Task-Incremental Learning (MTIL) benchmark, consisting of 11 diverse vision tasks.
- Language: 8 text-classification datasets from the GLUE benchmark, evaluated using a Flan-T5-base backbone.
Key Insights and Ideas
- Test-Time Data as a Proxy for History: Instead of needing massive historical datasets to prevent forgetting, a tiny buffer of unlabeled test samples (as few as 5 per class) can effectively calibrate how models should be merged on the fly.
- Dynamic Routing Beats Static Blending: Static weight averaging enforces a single mixing rule across the entire input space. A dynamic MoE allows the model to specialize, activating specific experts only when an input falls into their domain of expertise.
- Soft Constraints Maintain Plasticity: While a hard null-space projection completely blocks interference, it can paralyze the model's capacity to learn. Dynamically attenuating the constraint based on real-time feedback allows the model to remain flexible without sacrificing past knowledge.
Key Results
- Superior Accuracy: MINGLE consistently outperforms previous state-of-the-art methods (such as OPCM and Task Arithmetic) by 7–9% on average across diverse task counts and orderings.
- Near-Zero Forgetting: The framework achieves near-zero Backward Transfer (BWT), demonstrating exceptional long-term stability. For example, on a 20-task sequence with a ViT-B/16 backbone, MINGLE limits BWT degradation to just -1.9%, compared to -6.3% for OPCM and -25.8% for LoRA-WEMOE.
- Robustness to Corruptions: MINGLE maintains high performance under severe test-time distribution shifts, outperforming baselines on corrupted datasets (e.g., Gaussian noise, motion blur, and JPEG compression).
- Efficiency: Despite using a dynamic architecture, the router effectively merges experts into a single model per input during inference, keeping the computational overhead minimal and throughput high.
Limitations and Future Work
As with many model-merging techniques, MINGLE assumes that all independently fine-tuned models originate from a shared pretrained initialization (e.g., a common CLIP backbone). The current implementation is also restricted to homogeneous backbone architectures. The authors note that extending the framework to support diverse initialization points or heterogeneous architectural variants remains an open and promising direction for future research.
Summary updated