一句话:借鉴软件工程模块化思想,将多任务模型分解为任务专属模块按需部署并协同演化,兼顾性能与推理效率。
多任务深度模型在长期部署中常因下游任务分布与需求变化而需要微调,传统全参数微调会损害原有知识,参数高效微调则将新知识隔离在外部参数中,基座模型难以从下游更新中累积收益。ModularEvo 借鉴软件工程模块化设计,先将模型分解为任务专属模块,每个模块保留相关权重与功能,并仅按需部署对应模块;部署期间各模块独立优化,通过模块化微调只更新任务相关权重,并周期性用模型合并将新知识整合回模型,实现模型与模块的协同演化。作者在三个 Transformer 模型与六个分类/生成下游任务上评估,多轮演化场景下绝对性能较 SOTA 提升 2.34%,推理加速 2.22 倍。
Training a general multi-task deep neural network (DNN) model, such as a large language model, and deploying it across diverse downstream tasks has become a common practice. In long-term deployment scenarios, downstream tasks can change over time, such as new data distributions and requirements, leading to the fine-tuning of the model accordingly, i.e., evolving the model. However, traditional full-parameter fine-tuning methods adapt the model to individual tasks, resulting in degradation of the original knowledge. Although parameter-efficient fine-tuning methods could mitigate this problem, they still isolate new knowledge in external, separate parameters. As a result, the base model gains little cumulative benefit from downstream updates. These limitations stem from the indiscriminate model deployment and fine-tuning. Inspired by modular design principles in software engineering, we propose ModularEvo, a framework that enables on-demand deployment and co-evolution of multi-task models and modules across diverse downstream tasks. ModularEvo first decomposes the model into task-specific modules, each retaining a subset of relevant weights and functionality. These modules, instead of the entire model, are deployed on downstream tasks on demand. During long-term deployment, each module is independently optimized to adjust to the change of the corresponding task. Unlike conventional fine-tuning methods, ModularEvo applies modular fine-tuning to update only the task-relevant weights within modules. Furthermore, new knowledge acquired by modules is periodically integrated into the model through model merging, enabling the co-evolution of both the model and modules. We evaluate ModularEvo through extensive experiments on three Transformer models and six downstream tasks involving both classification and generation tasks. Results demonstrate the effectiveness of ModularEvo in model performance and inference efficiency in evolution scenarios. Compared to state-of-the-art baselines, ModularEvo achieves an absolute performance gain of 2.34% in multi-round evolution scenarios and a 2.22 times speedup in inference. In all, our work provides a new paradigm for the reuse and evolution of DNN models in the development of intelligent software applications.
@inproceedings{paperbot11667,
title = {ModularEvo: Evolving Multi-Task Models via Neural Network Modularization and Composition},
author = {Wenrui Long and Binhang Qi and Hailong Sun and Zongzhen Yang and Ruobing Zhao and Xiang Gao},
booktitle = {ICSE},
year = {2026},
doi = {10.1145/3744916.3773134}
}