atlas

Research map / Large language models / Instruction and fine-tuning

Twin-Merging: Dynamic Integration of Modular Expertise in Model Merging

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Calibration and knowledge in LLM tuning · 6 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Twin-Merging, which splits task knowledge into a shared expert plus SVD-compressed exclusive task vectors and dynamically merges them with a learned input-conditioned router, narrowing the gap to fine-tuned experts on GLUE, generative LLM tasks and vision tasks.

Problem

Model merging of multiple task-specific fine-tuned models into one multitask model leaves a large performance gap to individual experts, due to parameter/task interference and a static, one-size-fits-all merged model that cannot adapt to heterogeneous test inputs.

Approach

Decompose experts into a shared expert (merged base) and low-rank SVD-compressed exclusive task vectors (expert minus shared), then use a small router conditioned on the shared expert's last-layer token embeddings to softmax-weight and dynamically compose these exclusive vectors at inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add dynamic merging of task-specific knowledge to the shared model (ablation)Twin-Merging · GLUE (8 discriminative tasks)average normalized score: 67.80 -> 96.14Helped
add dynamic merging of task-specific knowledge to the shared model (ablation)Twin-Merging · Qwen generative tasksaverage normalized score: 96.61 -> 102.38Helped
use a shared expert instead of a task-specific expert as the foundation for dynamic merging (ablation)Twin-Merging · RoBERTa (8 discriminative tasks)average normalized score: 81.47 -> 96.14Helped
use a shared expert instead of a task-specific expert as the foundation for dynamic merging (ablation)Twin-Merging · Qwen generative tasksaverage normalized score: 87.77 -> 102.38Helped
use a shared expert rather than the pretrained model as the foundation for dynamic merging (ablation)Twin-Merging · RoBERTa (8 discriminative tasks)average normalized score: 85.90 -> 96.14Helped
use a shared expert rather than the pretrained model as the foundation for dynamic merging (ablation)Twin-Merging · Qwen generative tasksaverage normalized score: 95.03 -> 102.38Helped
increase exclusive-vector compression rank from 1 to 16 (ablation)Twin-Merging · Qwen generative tasksaverage normalized score: 100.96 -> 102.38Helped
use SVD rather than Magnitude or Bernoulli Dropout for sparsification (ablation)Twin-Merging · GLUEperformanceHelped
merge with Twin-Merging rather than Task ArithmeticRoBERTa-base · GLUE (8 discriminative tasks)average normalized score: 67.80 -> 96.14Helped
merge with Twin-Merging rather than Task Arithmetic (w/ DARE)Qwen-14B · Generative tasksaverage normalized score: 98.52 -> 102.38Helped
merge with Twin-Merging rather than SurgeryViT-B/32 · CV tasks (8 image classification datasets)average normalized score: 94.04 -> 95.33Helped
merge with Twin-Merging rather than Task ArithmeticQwen-72B · TruthfulQAscore: 98.70 -> 99.30Helped

Surprising findings

Limitations

Experimental setup

Datasets: GLUE (CoLA, SST-2, MRPC, STS-B, QQP, QNLI, MNLI, RTE) MMLU TruthfulQA BBQ CNN-DailyMail Dolly-15k SUN397 Stanford Cars RESISC45 EuroSAT SVHN GTSRB

Benchmarks: GLUE MMLU TruthfulQA BBQ CNN-DailyMail SUN397 Stanford Cars RESISC45 EuroSAT SVHN GTSRB MNIST

Metrics: normalized score exact match ROUGE-2 accuracy inference time VRAM

Baselines: Weight Averaging Task Arithmetic Ties-Merging DARE AdaMerging Surgery Multi-Task Learning

Builds on: Task Arithmetic Ties-Merging DARE LoRA AdaMerging

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy