arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.22589cs.LG
收藏

无需训练的多任务模型合并中的任务分类

Training-free Task Classification for Multi-Task Model Merging

Department of Artificial Intelligence(人工智能系);Department of Data Science(数据科学系)

Jungyong Son, Jinwook Jung, Sungyong Baik

AI总结:

提出SiM方法,通过SVD低秩流形近似和投影残差实现无需训练和任务ID的任务路由,提升多任务模型合并性能。

摘要:

自从基础模型和预训练-微调范式出现以来,已有大量工作尝试将多个任务特定专家合并为单个多任务模型。先前的工作主要集中于寻找单个合并模型,但由于参数干扰,它通常表现不如单个专家。为了解决这个问题,动态模型合并采用路由机制,根据每个输入激活任务相关参数。然而,现有的路由通常需要大量标注数据集的额外训练,或者假设在推理时知道每个输入的任务ID。在这项工作中,我们旨在缩小与专家性能的差距,而无需额外训练或任务ID访问假设。为此,我们将路由形式化为每个测试输入的无需训练的任务分类。通过使用基于奇异值分解(SVD)的低秩流形近似表示每个任务,SiM通过测试输入特征在每个任务流形上的投影残差对任务进行评分,并据此进行路由。任务流形可以在合并过程之前,使用每个任务的小规模支持集(例如,每个任务32个样本)从预训练骨干网络中离线预计算,无需路由训练,也无需在合并过程中使用数据。此外,SiM与基于子空间/掩码的合并无缝集成,通过轻量级压缩任务向量表示任务专家,避免了存储完整专家参数的需要。在计算机视觉和自然语言处理基准测试中,在任务未知推理条件下的实验表明,SiM显著提高了合并模型的性能,并持续缩小了与单个任务专家的差距。

英文摘要:

Ever since the advent of foundation models and the pre-training-finetuning paradigm, there have been numerous efforts to merge multiple task-specific experts into a single multi-task model. Prior work largely focuses on finding a single merged model, but it often underperforms individual experts due to parameter interference. To resolve this, dynamic model merging employs routing to activate task-relevant parameters per input. However, existing routers typically require either additional training with abundant labeled datasets or assume the access to task IDs of each input at inference time. In this work, we aim to close the gap to expert performance without additional training or task-ID-access assumption. To this end, we formulate routing as training-free task classification for each test input. Using singular value decomposition (SVD)-based low-rank manifold approximations for each task, SiM scores tasks by the projection residual of the test input feature onto each task manifold and routes accordingly. The task manifolds are pre-computable offline from a pretrained backbone using a small per-task support set (e.g., 32 examples per task) prior to merging process, requiring no router training and no data during the merging process. Moreover, SiM integrates seamlessly with subspace-/mask-based merging that represents task-expert via lightweight compressed task vectors, avoiding the need to store full expert parameters. Experiments across computer vision and natural language processing benchmarks under task-unknown inference demonstrate that SiM substantially improves merged-model performance and consistently narrows the gap to individual task experts. Our code is available at https://github.com/BAIKLAB/SiM

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑