atlas

Research map / Architectures and efficiency / RNNs and normalization

Model Merging by Uncertainty-Based Gradient Matching

ICLR 2024 · Architectures and efficiency › RNNs and normalization · approach: Layer-wise analysis of language models · 2 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.

Connects weighted parameter averaging error to gradient mismatch and proposes an uncertainty-based (Hessian/Fisher-preconditioned) merging scheme that reduces this mismatch, generalizing task arithmetic, Fisher averaging and influence-function data removal.

Problem

Weighted averaging of separately fine-tuned models is often inaccurate relative to a jointly trained target model, and it is unclear why and when it works or how to improve it, especially without retraining or tuning scaling factors.

Approach

Shows the merging error equals a weighted sum of gradient-mismatch terms; a first-order Taylor expansion of the target's gradient yields a closed-form merge that adds Hessian (diagonal Fisher) preconditioners to task arithmetic. The derivation unifies existing schemes as special cases (via H0 and Ht choices) and reveals the Bayesian/Laplace MAP interpretation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace Task Arithmetic (α_t=1) with uncertainty-based gradient-matching mergingRoBERTa · sentiment tasks (Avg. accuracy)accuracy: 91.8 -> 94.5Helped
use uncertainty-based gradient-matching merging instead of tuned Task ArithmeticRoBERTa · sentiment tasks (Avg. accuracy)accuracy: 94.4 -> 94.5Helped
use squared-gradient Hessian approximation instead of identity Hessian (ablation)Ours on RoBERTa · sentiment task addition (Avg. accuracy)accuracy: 94.3 -> 94.5Helped
sum squared gradients rather than average them (ablation)Ours on RoBERTa · sentiment tasks (Avg. accuracy)accuracy: 94.5 -> 94.5No clear effect
use uncertainty-based gradient-matching merging instead of Task ArithmeticRoBERTa · Yelpaccuracy: 95.6 -> 97.3Helped
use uncertainty-based gradient-matching merging instead of Task ArithmeticRoBERTa · SST2accuracy: 91.6 -> 93.7Helped
use F_sum rather than F_avg (ablation)Ours on RoBERTa · SST2accuracy: 94.6 -> 93.7Hurt
use uncertainty-based gradient-matching merging instead of Task ArithmeticT5 250M · sentiment tasks (Avg. accuracy)accuracy: 92.6 -> 94.6Helped
use uncertainty-based gradient-matching merging instead of Task ArithmeticGPT2 117M · toxicity removal100·Avg. toxicity: 9.8 -> 9.6Helped
use uncertainty-based gradient-matching merging instead of Task ArithmeticGPT2 117M · toxicity removalPPL: 30.3 -> 26.9Helped
use uncertainty-based gradient-matching merging instead of Task ArithmeticGPT-J 1.3B · toxicity removalPPL: 12.7 -> 12.8Hurt
use uncertainty-based gradient-matching merging instead of Task ArithmeticFlanT5 250M · hallucination removalBLEU: 18.2 -> 18.2No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: IMDB Yelp Amazon RottenTomatoes SST2 Cars DTD EuroSAT GTSRB MNIST RESISC45 SUN397

Benchmarks: IMDB Yelp RottenTomatoes SST2 Amazon Cars DTD EuroSAT GTSRB MNIST RESISC45 SUN397

Metrics: accuracy average accuracy true average accuracy toxicity rate perplexity BLEU critic score Q^2

Baselines: Averaging Task Arithmetic Fisher Averaging RegMean TIES-Merging FA1 Sparse Finetuning

Builds on: task arithmetic Fisher averaging RegMean influence functions TIES-merging

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