Learning to Recover Task Experts from a Multi-Task Merged Model

Jinwook Jung, Taegyu Kim, Kumju Jo, Sungyong Baik

TL;DR

Model merging consolidates multiple task-specific AI models into a single checkpoint, but it usually suffers from performance-degrading parameter interference. ReTeX (Recover Task eXpert) solves this by using a single merged model and dynamically predicting lightweight, low-rank parameter offsets to "undo" interference on the fly. This approach recovers over 95% of individual expert performance across vision and NLP tasks without the massive memory overhead of storing multiple models.

What Problem Does This Paper Address?

The current deep learning paradigm relies heavily on fine-tuning large pre-trained foundation models (like CLIP or T5) for specific downstream tasks. While this creates highly accurate "task experts," deploying a separate large model for every single task is incredibly expensive in terms of storage, memory traffic, and management overhead.

Model merging attempts to solve this by blending multiple fine-tuned experts into a single unified model. However, traditional static merging methods suffer from parameter interference—the unique weight updates required for different tasks collide, leading to suboptimal performance. On the other hand, dynamic merging methods route inputs to different expert components on the fly, but they require storing and loading multiple heavy expert components during inference.

The authors of ReTeX ask a compelling question: Can we get the best of both worlds—the low storage footprint of a single merged model, combined with the pristine performance of individual standalone experts?

Comparison of multi-task deployment strategies: EMR-Merging, Twin-Merging, and ReTeX (Ours).

Methods

ReTeX operates on an intuitive premise: parameter interference can be viewed as a temporary "perturbation" added to an expert's weights during the merging process. Therefore, we can restore an expert simply by predicting and subtracting this perturbation.

The framework consists of two main stages at inference time:

  1. Router-Free Task Identification: When an input arrives without a task label, ReTeX identifies the task using Singular Value Decomposition (SVD) subspace signatures. These signatures are computed offline before inference using a tiny set of reference inputs. At inference, the input feature is projected onto each task's low-dimensional subspace, and the task yielding the smallest projection residual is selected as the predicted task ID ($\hat{t}$).
  2. Task Expert Recovery via Low-Rank Offsets: Once the task is identified, a lightweight generator predicts a task-conditioned parameter offset ($\bm{\beta}_{\hat{t}}$) and adds it directly to the merged model's weights ($\bm{\theta}_{\text{merge}}$). To keep memory usage minimal, this offset is factorized into a task-specific low-rank factor and a factor shared across all tasks.

Crucially, ReTeX is trained using parameter supervision only. The training objective simply minimizes the L2 distance between the recovered weights and the original standalone expert weights. It requires zero access to the original training datasets or input-output examples during this recovery training phase.

The overall ReTeX framework, detailing (a) SVD-based task identification and (b) low-rank task expert parameter recovery.

Datasets

The authors rigorously evaluated ReTeX across both vision and NLP domains:

  • Vision: Built on CLIP backbones (ViT-B/32, ViT-B/16, ViT-L/14) and evaluated on multi-task suites containing 8, 14, 20, 30, and up to 50 diverse datasets (including SUN397, Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, and DTD). They also constructed a highly challenging fine-grained benchmark using the CUB-200 birds dataset to test robustness under extreme inter-task similarity.
  • NLP: Built on a T5-large backbone and evaluated on a 7-task suite consisting of PAWS, QASC, QuaRTz, StoryCloze, WikiQA, Winogrande, and WSC.

Key Insights and Ideas

  • Interference as an Additive Offset: Instead of treating model merging as a complex optimization search for a compromise weight space, the authors mathematically demonstrate that an expert's true weights can be closely approximated by adding a task-specific shift to the statically merged model.
  • Spectral Concentration: The authors prove via bounding theorems that the difference between an individual expert's weights and the merged model's weights is highly concentrated within the top singular values. This explains why a low-rank offset is mathematically sufficient to recover nearly all of an expert's original energy.
  • Emergent OOD Generalization: When trained using soft target mixtures (sampling from a Dirichlet distribution rather than strict one-hot task indicators), ReTeX develops an ability to adaptively interpolate knowledge from seen experts to handle entirely unseen, out-of-distribution (OOD) tasks.

Key Results

  • Near-Perfect Recovery: ReTeX successfully recovers over 95% (and frequently 98-99%) of individual expert performance across both vision and NLP tasks.
  • Superior Scalability: While traditional static and dynamic merging methods collapse as the number of tasks scales up, ReTeX remains remarkably stable. For instance, in a massive 50-task vision setting, ReTeX achieves 81.5% accuracy, completely outclassing the next best baseline which drops to 52.1%.
  • High Efficiency: By grouping inputs that share the same predicted task ID during batch processing, ReTeX reduces per-input latency to just 0.0015 seconds while maintaining a tiny VRAM footprint (around 2.0 - 2.7 GB on an NVIDIA RTX 3090).

Limitations and Future Work

Despite its strong performance, the authors note a couple of practical limitations:

  • Post-Merging Training Stage: Unlike purely training-free static merging methods, ReTeX requires a lightweight post-merging training phase to learn the offset generator.
  • Not Fully Data-Free: Constructing the SVD task memory bank requires a small set of reference inputs (typically 64 samples per task) offline. Developing a completely data-free task identification method that maintains this level of accuracy is an open avenue for future research.

Summary updated

Abstract

Multi-task model merging aims to consolidate several task-specific experts into a unified model, yet static merging consistently suffers from parameter interference. While dynamic merging models aim to bridge this gap, many works rely on the costly storage and loading of redundant expert components at inference. In this work, from the perspective of task expert, we view parameter interference as parameter perturbation introduced to each expert during merging process. We show that such parameter perturbations can be modeled as affine transformation, which can be approximated as additive offsets. Motivated by these, we propose Recover Task eXpert (ReTeX), a framework that predicts those offsets, in order to undo parameter interference and recover task-expert performance from a single merged checkpoint. To recover the appropriate expert when task identity is unknown, we introduce a router-free task identifier based on SVD subspace signatures computed offline before inference. At inference, the identifier selects the task whose subspace yields the smallest projection residual for a given input. As a result, ReTeX recovers over 95% of individual-expert performance in both vision and NLP domains, while significantly improving generalization to unseen tasks. Crucially, we also show that the parameter offset prediction leads to emergent adaptive interpolation of expert knowledge for out-of-distribution (OOD) tasks. ReTeX adaptively interpolates seen expert knowledge to handle unseen tasks. Our code is available at https://github.com/BAIKLAB/ReTeX
BibTeX
@misc{jung2026learning,
  author = {Jinwook Jung and Taegyu Kim and Kumju Jo and Sungyong Baik},
  title = {{Learning to Recover Task Experts from a Multi-Task Merged Model}},
  year = {2026},
  eprint = {2606.26902},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.26902},
}
Figure