Skip to content

LoRA Merging Needs Element-Wise Strengths, Not One Shared Scalar

THE ARGUMENT

A shared scalar forces every parameter in a LoRA update to use the same merge strength; M2LE solves for per-element strengths from a locally quadratic joint loss and uses TSP to shape a flatter update, but the gain depends on the task sequence and on reliable curvature estimates.

On this page

A team has 10 sequential image tasks and one vendor promise: train a small patch per task, merge it into a single model, keep no old data — but should the team sign? The usual advice is to tune one merge coefficient and keep it small. That advice assumes every element of the patch deserves the same merge strength. At first glance, a single scalar looks like a clean control knob: lower it when old tasks degrade, raise it when new tasks underfit. The trouble is that a patch is not homogeneous. Some coordinates carry information that old tasks are sensitive to, while others mainly serve the new task. A single knob cannot express that difference. The paper’s preliminary test splits one patch update into two groups and gives each group its own coefficient; the best pair is not on the diagonal, where both groups share one strength [1].

Why One Shared Scalar Is Not Enough

Continual learning means a model sees tasks in sequence and cannot revisit old data; LoRA means a pair of low-rank matrices is added to a frozen backbone, and only those matrices are trained. After each task, a common merge step multiplies the current LoRA update by a scalar α and adds it to the inference model; α is the merge strength shared by every element. The paper asks whether that sharing is justified. On ImageNet-R with 10 tasks, it takes the model after task 0 and the update learned on task 1, splits the update by normalized magnitude at 0.5 into a low group and a high group, and assigns two independent coefficients. The low-loss region is not centered on the diagonal α1 = α2. The best grouped point is (0.40, 0.80), with 91.84% average accuracy on tasks 0 and 1; the best shared scalar on the diagonal is (0.60, 0.60), with 91.04% [1].

Merge styleTwo coefficients (α1, α2)Average accuracy on tasks 0 and 1Where it sits in the paper
Shared scalar(0.60, 0.60)91.04%Best on the diagonal
Two independent groups(0.40, 0.80)91.84%Best off the diagonal

HIM: Solving the Merge Element by Element

HIM, short for Hessian Information-guided Adaptive Merging, stops searching for a global α and solves directly for the merged update ΔW*. The objective is a weighted sum of the old-task loss change J_old and the current-task loss change J_new; λ controls the trade-off. Old data are unavailable, so the paper expands each loss locally to second order. The Hessian is the second derivative of loss with respect to parameters — in plain terms, how fast loss rises when a parameter moves. After treating first-order terms as approximately zero at a local optimum, the first-order condition gives a linear equation. Each Hessian is approximated by a diagonal empirical Fisher matrix, which uses expected squared gradients to estimate the curvature diagonal and saves memory; the old-task term reuses a historical running sum. The solution becomes an element-wise scaling of the current LoRA update, so each coordinate gets its own strength [1].

TSP: Shaping the Update Before Merging

Once merged, the update becomes part of the fixed inference model, and later merges will move it again. If the current update sits in a sharp local region, a later merge can easily raise the loss on old tasks. TSP, Task Simulation Perturbation for Merging, regularizes training before that happens: it induces a local parameter change with one subset of the current mini-batch and evaluates the loss change on another subset, simulating cross-task interference and encouraging a flatter update. In plain terms, it makes the patch less fragile when something bumps it later. HIM decides how to merge; TSP shapes what gets merged [1].

What the Numbers Show — and What They Do Not

The abstract says the method consistently beats existing PEFT-based continual-learning methods on multiple benchmarks. The excerpt I have only details ImageNet-R with 10 tasks; other benchmark names, full tables, and hyper-parameters are not in the excerpt, so I will not invent them. The checkable numbers are these: the split threshold is 0.5; the best grouped coefficients are (0.40, 0.80) against the best shared (0.60, 0.60); average accuracy is 91.84% against 91.04%; the sequence length is 10 [1].

  • ImageNet-R: 10-task setting; preliminary analysis uses the first merge after task 0 and the update from task 1.
  • Split rule: normalized magnitude below 0.5 versus at least 0.5.
  • Best grouped point (0.40, 0.80): 91.84% average accuracy on tasks 0 and 1.
  • Best shared point (0.60, 0.60): 91.04% on the same metric.

A Checklist for Buyers and Evaluators

For a buyer or an evaluator, six questions matter more than one headline number.

  • Setting: is it rehearsal-free, meaning no stored old data, and are task identities given at test time? The paper uses a rehearsal-free setting without task identities.
  • Merge granularity: shared scalar, grouped coefficients, or element-wise? Ask for all three on the same task order.
  • Metrics: report old-task retention, current-task accuracy, and the average over all seen tasks separately.
  • Hyper-parameters: λ, LoRA rank (the width of the low-rank matrices), and the 0.5 split threshold need sensitivity checks.
  • Reproduction: the abstract gives a code link; at minimum, the ImageNet-R 10-task line should run.
  • Failure conditions: does the element-wise solution stay stable when task interference is strong or curvature estimates are poor?

These checks follow the paper’s stated setting and reported comparison [1].

Where This Method Stops Working

The method does not apply when its approximations break. It relies on a local quadratic expansion and treats first-order terms as zero; with strong cross-task interference or losses far from quadratic, the element-wise strengths need not stay stable. It approximates each Hessian with a diagonal Fisher matrix, so off-diagonal coupling is discarded; if old-task curvature is misestimated, the merge drifts. TSP simulates local perturbations only, not every later merge. The excerpt gives ImageNet-R 10-task numbers but not the full benchmark set or ablations, so the result is out of scope for claims about all continual-learning settings. It fails when you need exact curvature under strong coupling, or when the historical Fisher running sum no longer represents old tasks [1].

References

  1. Modulating Merging Strengths via Joint Loss Estimation for LoRA-based Continual Learning

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…