Efficient Multi-Task Modeling through Automated Fusion of Trained Models

Jingxuan Zhou, Weidong Bao, Ji Wang, Zhengyi Zhong, Dayu Zhang

TL;DR

The Efficient Multi-Task Modeling (EMM) framework automates multi-task learning by hierarchically deconstructing and fusing existing, trained single-task models. By combining a Mixture-of-Experts approach for intra-task fusion with a self-attention mechanism for inter-task fusion, EMM eliminates the need for manual architecture design while outperforming state-of-the-art baselines on large-scale datasets.

What Problem Does This Paper Address?

Multi-Task Learning (MTL) is highly desirable because it allows a single model to execute multiple tasks simultaneously, saving computational resources and leveraging shared knowledge. However, building an MTL model is traditionally a bespoke, labor-intensive process. Engineers must carefully design specialized architectures (like hard parameter sharing or complex routing networks) based on the specific relationships between the tasks at hand.

Meanwhile, the machine learning community has produced an abundance of high-performing, standalone single-task models. The authors ask an intuitive question: Can we quickly construct a high-performance multi-task model simply by integrating these already-trained single-task models? Doing so would bypass the cumbersome architecture design phase and directly recycle existing model knowledge.

Methods

The authors introduce the Efficient Multi-Task Modeling (EMM) framework, which consists of two primary phases:

  1. Model Deconstruction: Heterogeneous single-task models (which may have different depths or structures) are broken down into hierarchical components. The algorithm identifies common structural layers across all models to act as demarcation points. This ensures that components at the same hierarchical level share consistent input-output dimensions, making them integrable.
  2. Adaptive Knowledge Fusion (AKF) Module: Once deconstructed, these components are stacked and fused using a two-layered gating approach:
  3. Intra-Task Fusion: For models trained on the same task, EMM uses a Mixture-of-Experts (MoE) style Task Gating Network to weight and combine their outputs.
  4. Inter-Task Fusion: To share knowledge across different tasks, EMM introduces a Fusion Gating Network paired with a Multi-Task Merge (MTM) module. Inspired by the Transformer's self-attention mechanism, the MTM adaptively identifies the two most relevant tasks and fuses their representations, preventing unrelated tasks from interfering with each other.
Fig. 1: Illustrates Efficient Multi-Task Modeling (EMM) framework. When presenting the model pool and model structures, we employ different colors to distinguish various tasks and utilize diverse model styles to represent various model structures. Specifically, model structures with the same background color indicate that this part of the model shares the same input and output characteristics. The core advantage of the EMM method lies in its ability to deconstruct trained models into multiple independent model components and combine them hierarchically using the AKF module. For the same task, this method employs the MoE ideology to achieve knowledge fusion; whereas for different tasks, it adopts the Multi-Task Merge (MTM) method for fusion after adaptive screening. Subsequently, by stacking these component layers, we can effectively achieve multi-task modeling.

During training, the parameters of the original single-task model components remain frozen; only the lightweight gating networks and attention layers are trained, making the process highly efficient.

Fig. 2: The process of knowledge fusion is described. The task gating network is responsible for merging the knowledge from model components of the same task and the same hierarchical level. The fusion gating network selects model components from different tasks but at the same hierarchical level. After the selection is completed, the Multi-Task Merge (MTM) method is used to integrate the knowledge from components originating from different tasks.

Datasets

The framework was evaluated on three distinct datasets of varying scales:

  • Census-Income: A popular benchmark for predicting income levels (primary task) and marital status (auxiliary task).
  • Ali-CCP: A large-scale click-through rate and purchase prediction dataset derived from mobile Taobao logs.
  • AliExpress: An e-commerce dataset used to predict user behaviors, specifically focusing on conversion rate and click-through rate prediction.

Key Insights and Ideas

  • Recycling over Redesigning: Instead of treating MTL as an architectural engineering problem, EMM treats it as a knowledge routing problem. It proves that pre-trained single-task models contain highly transferable features that can be unlocked without full network retraining.
  • Mitigating Negative Transfer via Selective Attention: A classic pitfall in MTL is "negative transfer," where optimizing for Task A degrades performance on Task B. EMM elegantly avoids this by using self-attention to dynamically pair only the most complementary tasks for knowledge fusion.
  • Scales Well with Complexity: Traditional MTL baselines often struggle or require complete re-architecting when the dataset size scales up or more tasks are added. EMM's performance advantage actually becomes more pronounced as the number of tasks increases.

Key Results

Performance was measured using the Area Under the ROC Curve (AUC) metric.

  • Small Scale (Census-Income): EMM achieved highly competitive results, ranking closely behind specialized sequential models like AITM and AdaTT.
  • Large Scale (Ali-CCP & AliExpress): EMM significantly outperformed all mainstream baselines (including MMoE, PLE, AITM, and AdaTT). For instance, on the AliExpress conversion task (T1), EMM achieved an AUC of 0.85080, substantially beating the next best baseline, PLE, which scored 0.81261.
  • Task Adaptability: As shown in the paper's adaptability analysis, when the number of tasks scaled up to 3 and 4 tasks across the datasets, EMM consistently maintained dominant or leading performance compared to traditional expert-based architectures.
Fig. 3: To test the adaptability of the EMM method for multi-task processing, we increased the number of tasks. In the experimental results charts, the X-axis represents the different tasks, while the Y-axis shows the AUC evaluation values.

Limitations and Future Work

The primary limitation of EMM is its structural assumption: it requires the candidate single-task models to share identical layer structures at certain alignment points to perform the intersection slice. While the current trend toward standardized architectures (like standard MLPs or Transformer blocks) makes this likely, completely disparate architectures might limit deconstruction efficiency.

For future work, exploring how to dynamically map completely heterogeneous layer dimensions without structural intersection constraints would make the framework truly universal.

Summary updated

BibTeX
@misc{zhou2025efficient,
  author = {Jingxuan Zhou and Weidong Bao and Ji Wang and Zhengyi Zhong and Dayu Zhang},
  title = {{Efficient Multi-Task Modeling through Automated Fusion of Trained Models}},
  year = {2025},
  eprint = {2504.09812},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.09812},
}
Figure