Combining fine-tuned models by composing their parameter updates has become a standard alternative to multi-task training. We formalize composability as a property of a collection of task vectors and prove that the excess loss of the merged model is controlled by an interference functional of the cross-task curvature overlap and the signed alignment of the updates. In the quadratic regime this functional equals the excess loss, giving a criterion that is necessary as well as sufficient and that measures the angle between task vectors in the curvature metric rather than the Euclidean one. Fine-tuning under a curvature-guided regularizer -- constructed from curvature statistics of the kind memory-efficient optimizers maintain -- keeps displacement in the base curvature metric below a ceiling set by the penalty coefficient at every iterate, at the standard O(1/T) non-convex rate. Under a single Loewner comparison between the base statistic and the task curvatures, this control converts into a ceiling on the interference functional, inversely proportional to the penalty coefficient, so that the curvature term of the bound is controlled during training. A first-order term, present because regularized solutions are not stationary for the task loss, is not reduced in the same way. Experiments on an exact non-quadratic model confirm the budget and the ceiling, show the first-order term dominating for strong penalties, and find the curvature-guided penalty slightly better than an isotropic one. In a three-seed transformer study the functional is rank-correlated with merging degradation, but no more strongly than the Euclidean displacement norm.
Figures & tables
Models and merging
d
parameter dimension
λ
merging weights (λ1,…,λK)
K,[K]
# tasks; {1,…,K}
Λ
admissible weight set
θ0
base (pre-fine-tuning) model
θ(λ)
merged model, Eq. ( 1 )
θk
task- k fine-tuned model
dk(λ)
displacement θ(λ)−θk , Eq. ( 2 )
τk
task vector θk−θ0
Losses and curvature
Table 1: Summary of notation.
Figure 1: Merge geometry for K=2 at λ=(0.8,0.75) : the displacement d1(λ) splits into a shrinkage part and an overlap part whose square in the H1 metric is Ω1 , and the bold ellipse ∥θ−θ1∥H12=2ε is the decision boundary of Theorem 4.1 .
Figure 2: The three contributions to the bound of Theorem 3.1 scale as ∥dk∥ , ∥dk∥2 and ∥dk∥3 , so the curvature term leads only over an intermediate band of displacements (illustrative constants ϵg=0.15 , ρ=1.2 , Ωk=0.8∥dk∥2 ; the crossings move with the constants, the ordering of the exponents does not).
Figure 3: Heuristic reading (Remark 3.2 ): each established merging operator can be read as targeting one term of the decomposition ( 3 ), leaving the others uncontrolled, whereas the penalty of Section 5 bounds the functional as a whole under Assumption 5 (schematic; no relative magnitudes are asserted).
Figure 4: Drawn for h<h′ (soft along τ1 , stiff across it). With curvature, tolerance, ∥τ2∥ and λ=(1,1) all held fixed, Euclidean-orthogonal task vectors (a) can fail ε -composability while strongly overlapping ones (b) satisfy it, because the criterion measures the angle in the Hk metric rather than the Euclidean one.
Figure 5: Along the regularized dynamics the task gradient drives the iterate outward while the penalty pulls it back in the Sˉ0 metric, so the trajectory stays inside the budget of Theorem 5.1 (ii) at every t and equilibrates where the two forces cancel, whereas the μ=0 run (dotted) leaves the region.
Figure 6: Logistic regression, exact quantities. Left: for one problem, the excess loss of the merged model θk+sτj , the curvature term 21Ωk and the bound of Theorem 3.1 , against the merge scale s . Right: relative error of the curvature term as a predictor of the excess loss, median and interquartile range over 40 cases; the dashed line marks 10% .
Figure 7: Logistic regression, exact quantities. Left: the surrogate Φt=∥θt−θ0∥Sˉ02 (solid) stays below the ceiling of Theorem 5.1 (ii) (dashed) at every iterate, for three penalty coefficients. Right: pooled loss of the merged model and own-task loss of the single-task models against μ , with the base model and the jointly trained optimum for reference.
Figure 8: Logistic regression, exact quantities. Left: pooled loss of the merged model against the own-task loss of the single-task models, for the curvature-guided penalty and the isotropic one; lower is better. Right: the two contributions to the excess loss of the merged model on task A against μ , with the ceiling of Theorem 5.3 and the bound of Proposition 5.4 (b) (dashed).
Subset
Ωk (curvature-weighted)
∥dk∥2 (Euclidean)
All evaluations
0.30±0.08
0.39±0.04
Merge weight w=0.5
0.16±0.11
0.28±0.07
Merge weight w=1
0.04±0.13
0.22±0.04
Task arithmetic
0.27±0.18
0.51±0.10
Fisher-weighted averaging
0.53±0.05
0.61±0.03
TIES
0.47±0.09
0.65±0.05
Table 2: Transformer study: Spearman rank correlation between each predictor and the observed excess loss, mean ± standard deviation over three seeds ( 80 merge evaluations per seed; 40 within each merge weight and 20 within each operator).
Figure 9: Transformer study. Left: predicted against observed excess loss for the 240 merge evaluations of the three seeds; points on the dotted line have non-positive observed excess. Right: Spearman rank correlation with the observed excess loss for the curvature-weighted functional and for the Euclidean baseline, over all evaluations, within each merge weight and within each operator (mean and standard deviation over seeds).
Figure 10: Transformer study, merge-aware training (mean and standard deviation over three seeds). Left: the criterion maxk21Ωk for each pair. Right: the observed degradation. The penalty coefficients were too small to change the task vectors, and no difference across μ exceeds the spread over seeds.
Model merging combines separately fine-tuned models by adding their task vectors to a shared backbone. Interference is typically assessed only after constructing and evaluating a candidate merge, making coefficient search expensive. We show that a first-order directional derivative of task A's outputs along task B's vector can predict interference, but only when evaluated at the appropriate model. At the receiver model, this derivative forecasts nearby merges per task and per example, halves the accuracy error of a no-change baseline, and identifies most examples whose predictions flip. For full multi-task merges, a single evaluation is insufficient; two evaluations along the merge path are needed. At the shared pretrained backbone, however, the derivative is nearly orthogonal to realized changes in our vision experiments and only partly predictive in LoRA language-model pilots. Controls link this failure to displacement along the receiver's own task vector, not simply parameter distance; the mismatch appears within the first few dozen fine-tuning steps. Freezing receiver-local responses produces a surrogate affine in the merge coefficients. We use it to construct LR-Merge, a label-free correction that optimizes coefficients through convex teacher matching on unlabeled probes, without backpropagation through merged networks. LR-Merge improves all tested closed-form, isotropic, and sparsified base mergers, with gains generally increasing as more tasks are merged. Using pretrained rather than receiver-local responses instead degrades the base merge. LR-Merge matches exact teacher matching through a merged network, which takes roughly three times longer to converge and performs similarly at an equal compute budget. Once built, the surrogate answers new coefficient and task-subset queries in seconds.
Ido Nitzan Hidekel, Dan Raviv
School of Electrical and Computer Engineering, Tel Aviv University
Task vector composition has emerged as a promising paradigm for editing pre-trained models, enabling model merging through addition and unlearning through subtraction. Fine-tuning in the tangent space of a pre-trained model (linear fine-tuning) has proven effective, as it produces task vectors that are naturally disentangled and resistant to interference. However, linearized models suffer from limited expressivity during training and incur higher computational costs at inference time, which restrict their practical applicability. In this work, we bridge the gap between linear and standard non-linear fine-tuning. We show that linearity with respect to weight perturbations, a property defined in parameter space, can be enforced through constraints in activation space during training. Concretely, we distill hidden representations from a curvature-regularized linearized teacher into a non-linear student trained via conventional fine-tuning. We find that the resulting model inherits key properties of linearized models for task arithmetic, enabling effective composition of task vectors and achieving strong performance across vision and language benchmarks without incurring any inference-time overhead.
Thomas Sommariva, Francesca Morandi, Simone Calderara +1
ImageLab, Department of Engineering “Enzo Ferrari”, University of Modena and Reggio Emilia, Italy · University of Pisa, Italy
Parameter-efficient fine-tuning methods such as LoRA enable efficient adaptation of large pretrained models, but often lag behind full fine-tuning in both convergence speed and final performance. Recent approaches aim to reduce this gap by aligning LoRA parameter updates with those of full fine-tuning, but such parameter-space alignment only indirectly controls model predictions. Instead, we adopt a function-space perspective and formulate the prediction alignment problem, whose objective is to match the outputs of LoRA fine-tuning to those of full fine-tuning. We show that this objective naturally leads to a curvature-aware, second-order formulation, where optimal low-rank updates correspond to a Newton-like, curvature-whitened gradient. Based on this insight, we propose Curvature-Guided LoRA (CG-LoRA), an algorithm that selects adaptation directions using local curvature information. Our method is computationally efficient and avoids explicit second-order matrix construction. Experiments on standard natural language understanding benchmarks demonstrate improved performance and faster convergence compared to existing LoRA variants.