paper-with-me

홈 › Papers

Merging Multi-Task Models via Weight-Ensembling Mixture of Experts

2024-02-01 · Anke Tang, Li Shen, Yong Luo, Nan Yin, Lefei Zhang, DaCheng Tao

Merging various task-specific Transformer-based models trained on different tasks into a single unified model can execute all the tasks concurrently. Previous methods, exemplified by task arithmetic, have been proven to be both effective and scalable. Existing methods have primarily focused on seeking a static optimal solution within the original model parameter space. A notable challenge is mitigating the interference between parameters of different models, which can substantially deteriorate performance. In this paper, we propose to merge most of the parameters while upscaling the MLP of the Transformer layers to a weight-ensembling mixture of experts (MoE) module, which can dynamically integrate shared and task-specific knowledge based on the input, thereby providing a more flexible solution that can adapt to the specific needs of each instance. Our key insight is that by identifying and separating shared knowledge and task-specific knowledge, and then dynamically integrating them, we can mitigate the parameter interference problem to a great extent. We conduct the conventional multi-task model merging experiments and evaluate the generalization and robustness of our method. The results demonstrate the effectiveness of our method and provide a comprehensive understanding of our method. The code is available at https://github.com/tanganke/weight-ensembling_MoE

📄 PDF Abstract BibTeX arXiv:2402.00433

Code (1)

tanganke/weight-ensembling_moe 공식 구현 pytorch

Tasks

Mixture-of-ExpertsTask Arithmetic

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Position-Wise Feed-Forward Layer 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Residual Connection 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

Efficient and Effective Weight-Ensembling Mixture of Experts for Multi-Task Model Merging

2024-10-29 · Li Shen, Anke Tang, Enneng Yang, Guibing Guo 외

Multi-task learning (MTL) leverages a shared model to accomplish multiple tasks and facilitate knowledge transfer. Recent research on task arithmetic-based MTL demonstrates that merging the parameters of independently fi…

Mixture-of-ExpertsMulti-Task LearningTask ArithmeticTransfer Learning

Trade-offs in Ensembling, Merging and Routing Among Parameter-Efficient Experts

2026-03-03 · Sanae Lotfi, Lucas Caccia, Alessandro Sordoni, Jordan T. Ash 외 arxiv

While large language models (LLMs) fine-tuned with lightweight adapters achieve strong performance across diverse tasks, their performance on individual tasks depends on the fine-tuning strategy. Fusing independently tra…

Multi-Task Learning

M-Loss: Quantifying Model Merging Compatibility with Limited Unlabeled Data

2026-02-09 · Tiantong Wang, Yiyang Duan, Haoyu Chen, Tiantong Wu 외 arxiv

Training of large-scale models is both computationally intensive and often constrained by the availability of labeled data. Model merging offers a compelling alternative by directly integrating the weights of multiple so…

DLLG: Dynamic Logit-Level Gating of LLM Experts

2026-06-03 · Bingnan Li, Zhaoyang Zhang, Xiaoze Liu, Yantao Shen 외 arxiv

Leveraging multiple specialized LLMs can combine complementary strengths, but existing approaches trade adaptability for stability: routing commits prematurely, heuristic ensembling depends on fragile proxies, and parame…

Domain-Specialized Object Detection via Model-Level Mixtures of Experts

2026-04-20 · Svetlana Pavlitska, Malte Stüven, Beyza Keskin, J. Marius Zöllner arxiv

Mixture-of-Experts (MoE) models provide a structured approach to combining specialized neural networks and offer greater interpretability than conventional ensembles. While MoEs have been successfully applied to image cl…

Semantic SegmentationImage ClassificationObject Detection