A Margin Perspective on LoRA: Robustness to Catastrophic Forgetting and Adapter Merging (MaLoRA)
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
A Margin Perspective on LoRA: Robustness to Catastrophic Forgetting and Adapter Merging (MaLoRA)
arXiv:2611.14397v1 [cs.LG] 10 Nov 2026
Ziqing Xu1,4∗ Salma Tarmoun2,4
Hancheng Min7 Lachlan Ewen MacDonald3,4 Enrique Mallada8 Weijie Su1 René Vidal2,3,4,5,6
1
Statistics and Data Science 2 AMCS 3 ESE 4 IDEAS 5 Radiology 6 CIS University of Pennsylvania 7 INS & SMS, Shanghai Jiao Tong University 8 ECE, Johns Hopkins University
Abstract Low-rank adaptation (LoRA) is the de facto method for parameter-efficient finetuning of large neural networks, achieving strong task adaptation with minimal trainable parameters and low optimization cost. Beyond this efficiency, practitioners have observed two striking properties: robustness to catastrophic forgetting and the ability to merge independently trained adapters into a single model that performs competitively across multiple tasks. These properties are central to continual and multi-task learning, yet remain poorly understood. In this work, we provide a theoretical explanation through a unified margin-based perspective. We analyze LoRA in multiclass linear classification under a near-orthogonal task regime with ℓ2 -regularization, and characterize the optimal LoRA adapter across regularization regimes. Our analysis shows that, in an intermediate regime of regularization parameters, the optimal adapter aligns with the max-margin solution on the fine-tuning data. Building on this characterization, we derive two key consequences. First, we obtain closed-form expressions for the margins on pre-training and fine-tuning data, revealing a precise margin trade-off: the regularization parameter controls the balance between retention and adaptation. Second, we analyze adapter merging, proving that merged models achieve positive margin on each task and deriving optimal mixing coefficients that balance margins across tasks and maximize the margin over their union. These results lead to a simple, training-free merging rule, which we term margin-based LoRA merging (MaLoRA). Experiments on modern architectures and real datasets validate our theoretical predictions, showing that MaLoRA matches or outperforms several adapter-merging baselines across a range of vision and language classification tasks.
1
Introduction
Foundation models have transformed artificial intelligence across numerous domains. However, deploying these models in real-world applications typically requires fine-tuning on specialized datasets to meet accuracy, safety, and alignment requirements. Traditional full fine-tuning, which updates all parameters of a pre-trained model, incurs substantial computational cost, including large memory footprints, long training times, and significant storage demands. Low-Rank Adaptation (LoRA) [Hu et al., 2022] addresses this challenge by augmenting pre-trained weight matrices W with low-rank adapters B, A while keeping W frozen. Empirically, LoRA matches the performance of full fine-tuning while training only a small fraction of the parameters. ∗ Correspondence: ziqingxu@wharton.upenn.edu
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
While LoRA was originally introduced for its computational efficiency, practitioners have since identified two striking empirical properties. 1. Robustness to catastrophic forgetting. In fine-tuning and continual learning, the degradation of performance on previously learned tasks after adapting to new ones (a.k.a. catastrophic forgetting) is a fundamental challenge [McCloskey and Cohen, 1989, Kirkpatrick et al., 2017, Ramasesh et al., 2021]. Surprisingly, recent studies show that LoRA exhibits strong robustness to catastrophic forgetting, even after substantial adaptation [Wistuba et al., 2023, Biderman et al., 2024, Qiao and Mahdavi, 2024]. This robustness makes LoRA particularly appealing for continual learning. 2. Effective adapter merging. In multi-task settings, maintaining separate fine-tuned models for each task is storage-intensive. Remarkably, LoRA adapters trained independently on different tasks can be merged (e.g., via simple weighted averaging) into a single adapter that performs well across all tasks [Huang et al., 2023, Yadav et al., 2023, Wang et al., 2024, Yu et al., 2024, Zhao et al., 2024]. This property enables flexible and efficient deployment. Despite these empirical benefits, the theoretical mechanisms underlying LoRA’s robustness to catastrophic forgetting and its adapter merging capabilities remain poorly understood. In this work, we provide a unified theoretical explanation for both phenomena through a margin-based perspective. Paper contributions. We study LoRA in multiclass linear classification under a near-orthogonal-task regime, in which fine-tuning samples are nearly orthogonal to one another and to the pre-training samples. In this setting, we characterize the global minimizer of the LoRA objective and use this characterization to analyze forgetting and adapter merging. Compared with prior theoretical work on LoRA (see Appendix B), our work makes the following contributions: • Characterization of the optimal solution. We characterize the global minimizer of LoRA across different regularization regimes (Theorem 3.1). In the high-penalty regime, the optimal adapter is zero. In the intermediate regime, the adapter aligns with the max-margin direction on the fine-tuning data. In the low-penalty regime, the adapter aligns with a non-max-margin classifier whose direction generally does not admit a simple closed form. Nevertheless, we show that this direction converges to an interpretable limit as the regularization parameter tends to zero. • Theory for reduced forgetting. We define forgetting as the reduction in margin on the pre-training data after fine-tuning, and derive closed-form expressions for the normalized margins on the pretraining data, the fine-tuning data, and their union (Theorem 3.2). Our analysis shows that these margins are governed by the regularization parameter and satisfy a precise trade-off: decreasing the regularization parameter increases the fine-tuning margin but also increases the Frobenius-norm ratio of the adapter to the pre-trained weights, leading to greater forgetting. We further identify the regularization parameter that maximizes the margin on the union of pre-training and fine-tuning tasks, thereby optimally balancing retention and adaptation. • Theory for adapter merging. Under the intermediate-regime assumption for each task, we derive closed-form expressions for the margin of the merged model on every task (Theorem 3.3). We show that the merged model attains strictly positive margin on each task, providing a theoretical explanation for the effectiveness of adapter merging. We also characterize, in closed form, the mixing coefficients that maximize the margin of the merged model on the union of all tasks, which naturally leads to margin-based LoRA merging (MaLoRA), a theoretically motivated adaptermerging method. This contrasts with many existing model-merging approaches, which rely primarily on heuristic prescriptions for choosing how to combine task-specific models. • Numerical validation. Experiments on real datasets and modern architectures support the theory in three ways: (i) in the linear probing setting, the empirically optimal regularization parameter agrees with the value predicted by our analysis; (ii) in the same setting, the empirically optimal adapter mixing weights agree with our closed-form coefficients; and (iii) in LoRA adapter merging, MaLoRA achieves performance comparable to, and in several cases better than, strong heuristic adapter-merging baselines across vision and language classification tasks.
2
Preliminaries
In this section, we first introduce the multiclass linear classification problem and its corresponding hard-margin SVM formulation. We then describe the specific learning problem considered in this 2
work, which consists of a pre-training and fine-tuning phase. Finally, we state the key assumptions that underpin our analysis, and discuss their motivation and implications. 2.1
Background on multiclass linear classification
We first review the standard K-class linear classification problem. Given a dataset D, the goal is to learn a weight matrix W ∈ RK×d that minimizes the mean empirical cross-entropy loss: P 1 minW ∈RK×d L(W ; D) := |D| (1) (x,y)∈D LCE (y, W x), where x ∈ Rd is the input and y ∈ RK is a one-hot label vector. The cross-entropy loss is given by: ! K X exp(ŷc ) LCE (y, ŷ) := − yc log PK , ŷ = W x . (2) c=1 i=1 exp(ŷi ) Recent studies have shown that when the data are linearly separable, gradient descent (GD) implicitly biases the solution of (1) toward the max-margin classifier [Soudry et al., 2018, Lyu and Li, 2019, Ravi et al., 2024]. Specifically, the iterates of GD converge in direction to the max-margin solution of the following hard-margin SVM problem2 : W SVM (D) := arg min ∥W ∥2F
subject to
C(W ; D) ≥ 1,
(3)
W ∈RK×d
where C(W ; D) is the minimum margin over the dataset: C(W ; D) := min(x,y)∈D
min
k̸=c,yc =1
wc⊤ x − wk⊤ x ,
with
W = [w1 ; . . . ; wK ]⊤ .
(4)
The hard-margin SVM problem in (3) seeks a weight matrix of minimum norm that separates all examples with at least unit margin between the correct class and the nearest competing class. Intuitively, classification decisions depend primarily on the direction of the weight matrix rather than its scale. To enable comparisons across different scales of W , we adopt the normalized margin used ;D) in [Crammer and Singer, 2001], i.e., γ(W ; D) := C(W ∥W ∥F for W ̸= 0. This definition has been used in recent theoretical studies [Lyu and Li, 2019, Ravi et al., 2024]. We additionally set γ(0; D) := 0 by convention. 2.2
Pre-training and fine-tuning setup
We now describe the specific pre-training and fine-tuning framework used in our theoretical analysis. Pre-training stage. Let Dpre be a labeled dataset with K classes, and let Wpre ∈ RK×d denote a pre-trained linear classifier obtained by GD minimizing the cross-entropy loss L(W ; Dpre ). When Dpre is linearly separable, this objective admits no finite minimizer. The GD iterates instead diverge in norm while converging in direction to the max-margin solution [Lyu and Li, 2019, Soudry et al., 2018]. We formalize this directional structure in Assumption 2.4. Fine-tuning stage. We adapt the pre-trained model to a downstream dataset Dft consisting of n additional samples from each of 2 ≤ K̄ ≤ K classes selected from the original K pre-training classes. This restriction applies throughout the paper and appendix, including to every task in adapter merging. This setup captures practical scenarios such as domain-incremental learning [Esaki et al., 2024], domain adaptation [Zohrizadeh et al., 2019, Zhang et al., 2022], and bias-rebalancing fine-tuning [Li and Xu, 2021, ValizadehAslani et al., 2024]. When LoRA is applied to adapt the pre-trained model to the fine-tuning task, we introduce a low-rank update to the weights, parameterized by matrices B ∈ RK×r and A ∈ Rr×d : minB,A L(Wpre + BA; Dft ) + λ2 (∥B∥2F + ∥A∥2F ).
(5)
Here, the Frobenius-norm penalties explicitly constrain the adapters in weight space, limiting the deviation of the fine-tuned model from the pretrained initialization. 2Whenever (3) is feasible, its solution is unique since the objective ∥W ∥2 is strongly convex and the feasible set is convex. F
3
Although some empirical studies of LoRA do not include this penalty explicitly in the loss, they train the adapters using the AdamW optimizer [Loshchilov and Hutter, 2017], whose decoupled weight decay induces an effect analogous to L2 regularization on B and A. Thus, the objective in (5) captures the regularization that is, explicitly or implicitly, used in standard LoRA fine-tuning practice [Hu et al., 2022, Wistuba et al., 2023, Biderman et al., 2024]. Our goal is to understand the structure of the optimal solution to (5), and how it explains both LoRA’s robustness to catastrophic forgetting and its effectiveness in enabling adapter merging. 2.3
Assumptions and their implications
Our theoretical analysis uses the following assumptions. Let Nft = K̄n be the number of fine-tuning samples, write Xft = [x̄1 , . . . , x̄Nft ], and let Xpre collect the pre-training feature vectors as columns. Assumption 2.1 (Task geometry). The combined pre-training and fine-tuning datasets are linearly separable. There exist ϵ1 , ϵ2 ∈ [0, 1) such that, for all i, j ∈ [Nft ] and x ∈ Dpre , (a) ∥x̄i ∥2 = ∥x∥2 = 1,
(b) |x̄⊤ i x̄j | ≤ ϵ1 (i ̸= j),
(c) |x̄⊤ i x| ≤ ϵ2 .
(6)
Assumption 2.2 (Dimension). In the strict-orthogonal case ϵ1 = ϵ2 = 0, the input dimension satisfies d ≥ Nft +rank(Xpre ). For near-orthogonal data, we assume (Nft −1)ϵ1 < 1. Assumption 2.3 (LoRA rank). The LoRA rank parameter satisfies r ≥ K̄, where K̄ is the number of fine-tuning classes. Assumption 2.4 (Pre-trained classifier). The pre-trained classifier Wpre is a scaled version of the SVM SVM hard-margin SVM solution on Dpre : Wpre = ρpre · Wpre /∥Wpre ∥F , for some scalar ρpre > 0, SVM SVM where Wpre = W (Dpre ). Assumption justification. The near-orthogonal task Assumption 2.1 is arguably a strong assumption in practice, but reflects the realistic geometric structure of fine-tuning data, and similar orthogonalitytype assumptions are commonly used in theoretical analyses to enable closed-form characterizations [Bui Thi Mai and Lampert, 2021, Boursier et al., 2022, Frei et al., 2022, Kou et al., 2023]. The feature-correlation analyses on CIFAR-100 and six multi-domain benchmarks in Appendices H.1.1 and H.2.1 provide empirical motivation for studying this reference geometry. Assumption 2.2 makes the geometric feasibility and conditioning requirements explicit. The strict-case bound accounts for both the fine-tuning sample count and the pre-training feature span, specifying a high-dimensional, sample-limited setting. Assumption 2.3 requires only r ≥ K̄, meaning the LoRA rank needs only to be at least the number of fine-tuning classes. Finally, Assumption 2.4 is motivated by recent theoretical results on the implicit bias of GD in multiclass classification [Lyu et al., 2021, Ravi et al., 2024], as discussed in §2.1. ρpre captures the (unspecified) scale at which pre-training was stopped, which arises naturally in implicit-bias analyses where the GD iterate diverges along the SVM direction. For clarity of exposition, all theorems in the main paper are stated under the strict-orthogonal special case (ϵ1 = ϵ2 = 0) of Assumption 2.1. The general versions of these results for ϵ1 , ϵ2 > 0, together with their proofs, are deferred to the Appendix D–F. Implications. The assumptions introduced above lead to a clean closed-form expression for the K̄class hard-margin SVM solution for the fine-tuning task, and also imply near-orthogonality between the pre-trained weights Wpre and the fine-tuning dataset Dft , which underpins our subsequent theoretical analysis in §3. To formalize these implications, we begin by introducing the concept of a simplex equiangular tight frame (simplex ETF), which characterizes the geometry of the hard-margin SVM solution in our setting Definition 2.1 (Simplex ETF). For m ≥ 2, anqm-simplex ETF is a collection of m vectors in Rp for m 1 p×m some p ≥ m, given by the columns of Mm := m−1 P Im − m 1m 1⊤ satisfies m , where P ∈ R P ⊤ P = Im . Throughout, we use the canonical choice p = m and P = Im , so Mm ∈ Rm×m . Using this definition, we now present a proposition that, under the strict-orthogonal specialization, characterizes the structure of the hard-margin SVM solution for the fine-tuning data (Dft ) and the orthogonality between the pre-trained weights (Wpre ) and the fine-tuning data. 4
Proposition 2.1. Let K̄ ≥ 2. Under Assumption 2.1 with ϵ1 = ϵ2 = 0 and Assumption 2.4, the following hold: (i) The minimum-norm SVM solution WftSVM ∈ RK̄×d qfor Dft , defined by (3) with K̄ output SVM ⊤ classes, admits the closed-form solution Wft = K̄−1 MK̄ ⊗1⊤ n Xft , where xi,j is the K̄ j-th sample from class i, and Xft = [x1,1 , . . . , x1,n , . . . , xK̄,n ] is the fine-tuning data matrix. (ii) The pre-trained weights are orthogonal to the fine-tuning data: Wpre x̄ = 0 for all x̄ ∈ Dft . Remark on Proposition 2.1. Proposition 2.1 reveals that the hard-margin SVM solution for the fineq ⊤ K̄−1 SVM tuning task admits a compact closed-form expression: Wft = MK̄ ⊗ 1⊤ n Xft . However, K̄ this form does not immediately reveal how the classifier aggregates information from the fine-tuning data. To provide insight, we explicitly derive the expression for the first row of WftSVM (the remaining ⊤ Pn PK̄ Pn 1 rows follow symmetrically), yielding K̄−1 x̄ − x̄ . 1,i k,j i=1 k=2 j=1 K̄ K̄ Intuitively, each row of WftSVM encodes a direction that emphasizes its corresponding class mean while uniformly suppressing the influence of all other classes, leading to class separation in maxmargin classification. The second result in Proposition 2.1 follows from the representer theorem for SVMs, which implies that the hard-margin SVM solution on pre-training data lies in the span of Dpre . By Assumption 2.4, Wpre inherits this property; combined with condition (c) of Assumption 2.1 at ϵ2 = 0, each row of Wpre is therefore orthogonal to the fine-tuning data. Building upon these assumptions and propositions, we develop a rigorous theoretical framework that provides a principled explanation for LoRA’s empirical advantages in the subsequent section. Our analysis reveals properties that enable precise quantification of LoRA’s benefits in terms of robustness to catastrophic forgetting and adapter merging performance.
3
Main Results
In this section, we first analyze the optimization landscape of the LoRA objective and characterize its global minimum in §3.1. We then derive closed-form expressions for the margins on the union of pre-training and fine-tuning datasets, explaining why LoRA mitigates catastrophic forgetting in §3.2. Finally, in §3.3, we extend our margin-based analysis to the multi-task setting, explaining the effectiveness of adapter merging and deriving optimal mixing coefficients that maximize the margin on the union of all tasks. Moreover, building on these closed-form coefficients, we translate them into a simple training-free merging rule, margin-based LoRA merging (MaLoRA, Algorithm 1). 3.1
Global minimum of the LoRA objective
In this subsection, we present our main theoretical result characterizing the global minimizer of the LoRA objective in (5). Interestingly, under suitable regularization, we find that part of the optimal LoRA adapter aligns exactly with the K̄-class hard-margin SVM solution (WftSVM ) for the fine-tuning data (see Proposition 2.1 for its definition). While our analysis neither assumes nor relies on this alignment, its emergence reveals a geometric structure that partially explains LoRA’s effectiveness. Theorem 3.1. Let K and K̄ ≤ K be the number of pre-training and fine-tuning classes, respectively. There exist scalar functions aλ , bλ , cλ , Θλ of λ such that for any global minimizer Bλ∗ , A∗λ of (5) with λ > 0, we have aλ + bλ IK̄ − bλ 1K̄ 1⊤K̄ ⊤ (7) Bλ∗ A∗λ = ⊗ 1 Xft⊤ , ∥Bλ∗ A∗λ ∥F = Θλ . n −cλ 1K−K̄ 1⊤K̄ 1 When K̄ ≥ 2, there exists a critical regularization weight λcrit ∈ [0, K̄ √ ) such that the scalar n functions aλ , bλ , cλ , Θλ are characterized as follows: 1 (i) High-penalty regime λ ≥ K̄ √ : aλ = bλ = cλ = Θλ = 0, thus Bλ∗ A∗λ = 0K×d . n
5
√ Θλ K̄−1 1 √ , bλ = √ Θλ (ii) Intermediate regime λcrit < λ < K̄ √ : a = λ n K̄ n K̄
n(K̄−1)
, cλ = 0, and Θλ is
the unique root of a nonlinear equation (see (29) in Appendix D), thus the minimizer is M Θ K̄ ⊤ ∗ ∗ λ ⊗ 1n Xft⊤ . B λ Aλ = √ 0 K̄n
(8)
(K−K̄)×K̄
(iii) Low-penalty regime 0 < λ ≤ λcrit : aλ , bλ , cλ , Θλ are non-negative. Moreover, the small-regularization limit satisfies limλ→0+ Θλ = ∞ , (K̄)
where MK
B ∗ A∗
limλ→0+ ∥B ∗λA∗λ∥F = λ
λ
q
1 nK̄
(K̄)
MK
⊤ ⊗ 1⊤ n Xft ,
(9)
is the first K̄ columns of the K-ETF matrix MK .
Remark 3.1. For K̄ ≥ 2, the critical weight satisfies √ λcrit = 0 if and only if K̄ = K. In this case, the intermediate regime covers all 0 < λ < 1/(K n), and the low-penalty regime contains no positive regularization weights. The limits in (9) remain valid as λ → 0+ , approached through the intermediate regime. The proof of Theorem 3.1 is provided in Appendix D. The theorem shows that the optimal LoRA update Bλ∗ A∗λ has the unified form in (7), and identifies up to three regimes based on the regularization parameter λ. We make the following remarks: Effect of regularization and connection with max-margin classifier. The theorem shows that the regularization parameter governs the structure of the optimal LoRA adapters. In the high-penalty regime, the regularization term dominates and drives the optimal adapters to zero. In the intermediate regime, the adapters balance cross-entropy and regularization, yielding the explicit form in (8). In particular, the first K̄ rows of Bλ∗ A∗λ align with the K̄-class hard-margin SVM solution on the finetuning data (Proposition 2.1), which gives a clear max-margin interpretation of the learned solution. In the low-penalty regime, explicit formulas for aλ and bλ are no longer available. Nevertheless, as λ → 0+ , the cross-entropy term dominates and Θλ → ∞, while our asymptotic analysis still characterizes the limiting direction of Bλ∗ A∗λ in (9). This direction coincides with the hard-margin SVM solution only when K̄ = K. Implication for the fine-tuned model. The structured form of the optimal LoRA adapters in (7) λ naturally enables WLoRA := Wpre +Bλ∗ A∗λ to perform well on both pre-training and fine-tuning data. Under Assumptions 2.1 and 2.4, Proposition 2.1 and Theorem 3.1 imply that Wpre x̄ = 0 for all x̄ ∈ Dft and Bλ∗ A∗λ x = 0 for all x ∈ Dpre . That is, the two components operate independently: Wpre classifies the pre-training data, while Bλ∗ A∗λ adapts to the fine-tuning data: Wpre x if x ∈ Dpre , λ ∀x ∈ Dpre ∪ Dft , WLoRA x= holds ∀λ > 0 . (10) Bλ∗ A∗λ x if x ∈ Dft . λ This clean separation lets us decompose the normalized margin of WLoRA on each component dataset ∗ ∗ into a contribution from the relevant component (either Wpre or Bλ Aλ ) and a relative-norm factor: λ γ(WLoRA ; D) = γ(W ; D)
∥W ∥F , λ ∥WLoRA ∥F
(W, D) ∈ {(Wpre , Dpre ), (Bλ∗ A∗λ , Dft )} .
(11)
The expression in (11) shows that the normalized margin on the combined dataset depends not only on the individual normalized margins of Wpre and Bλ∗ A∗λ on the Dpre and Dft respectively, but also on the relative Frobenius norms of these components. In the following sections, we use (11) to derive closed-form expressions for the normalized margin on the combined dataset and to compute the optimal mixing coefficients for adapter merging. For clarity of presentation, we focus on the case K̄ = K and refer the reader to Appendix E and Appendix F for the full version of our results. 3.2
Margin trade-off between forgetting and fine-tuning under LoRA adaptation
We now analyze catastrophic forgetting through the normalized margin. Our goal is to characterize how the LoRA fine-tuned model trades off performance on the pre-training data and the fine-tuning 6
data as the regularization parameter varies, and to identify the regularization level that maximizes the margin on their union. For convenience, define γpre := γ(Wpre ; Dpre ), γft,λ := γ(Bλ∗ A∗λ ; Dft ). Moreover, we define the adaptation to the fine-tuning data and forgetting on the pre-training data by λ λ Adapt(λ) = γ WLoRA ; Dft −γ(Wpre , Dft ), Forget(λ) := γpre −γ WLoRA ; Dpre . (12) Based on these definitions, we now present the theorem. Theorem 3.2. Adopt the setup of Theorem 3.1 under strict orthogonality, and assume K̄ = K ≥ 2. ∗ Let γft be the max normalized margin any linear classifier can obtain on the fine-tuning data Dft , and recall the scalar ρpre from Assumption 2.4. Then, Adapt(λ) and Forget(λ) can be characterized uniformly over all λ as follows: Θλ ρpre Adapt(λ) = γft,λ q , Forget(λ) = γpre 1 − q . (13) Θ2λ + ρ2pre Θ2λ + ρ2pre Moreover, the effect of the regularization parameter λ is characterized by two regimes: 1 (i) High-penalty regime: if λ ≥ K̄ √ , then Θλ = 0, and hence Forget(λ) = Adapt(λ) = 0. n 1 ∗ , then γft,λ = γft , and Θλ is decreasing in λ. (ii) Intermediate and low-penalty regimes: if λ < K̄ √ n Therefore, Adapt(λ) and Forget(λ) are both decreasing in λ. In particular, ∗ lim Adapt(λ), Forget(λ) = γft , γpre , lim1 Adapt(λ), Forget(λ) = (0, 0). (14) λ→0+
λ→ K̄ √n
Remark 3.2. Notably, the intermediate and low-penalty regimes coincide when K̄ = K. This merging is specific to the case K̄ = K; when K̄ < K, the two regimes remain distinct. Balancing adaptation and forgetting. Theorem 3.2 shows that the same quantity Θλ controls both adaptation and forgetting. As λ decreases, the adapter scale Θλ increases, improving Adapt(λ) on the fine-tuning data while also increasing Forget(λ) on the pre-training data. Thus, LoRA fine-tuning induces a direct margin trade-off: stronger adaptation comes at the cost of larger pre-training margin degradation. The natural question is how to choose λ to balance these effects. In the following Corollary 3.1, we quantify this trade-off by studying the normalized margin on the union of the pre-training and fine-tuning datasets, which leads to an explicit optimal regularization level. Corollary 3.1 (Optimal balance between adaptation and forgetting). Under the conditions of Theoλ rem 3.2, with K̄ = K, the normalized margin of WLoRA on the union Dpre ∪ Dft is λ γ(WLoRA ; Dpre ∪ Dft ) = min γpre − Forget(λ), Adapt(λ) . (15) √ This margin is uniquely maximized at the balancing point λ∗ ∈ (0, 1/(K n)), with −1/2 1 1 λ max γ(WLoRA + . (16) ; Dpre ∪ Dft ) = ∗ )2 2 λ>0 (γft γpre 3.3
Margin characterization of merged LoRA models and optimal mixing coefficients
We now extend the margin-based analysis to the multi-task setting, where a single pre-trained model is independently adapted by T LoRA adapters that we wish to merge into a unified model. Through the same margin lens, we derive closed-form expressions for the merged model’s margin on each task and identify mixing coefficients that maximize the margin on the union of all tasks (Theorem 3.3). Building on this characterization, we design a practical LoRA merging algorithm margin-based LoRA merging (MaLoRA, Algorithm 1). Let Bi∗ , A∗i denote the LoRA adapter trained on dataset Di , for i ∈ [T ]. We merge the adapters with the pre-trained weight matrix as follows: PT ∗ ∗ WLoRA (α) := Wpre + α1 , . . . , αT ≥ 0, (17) i=1 αi Bi Ai , where α = (α1 , . . . , αT ) are mixing coefficients. Moreover, we generalize Assumption 2.1 to the setting of learning multiple tasks as follows. 7
Algorithm 1 Margin-based LoRA Merging (MaLoRA) val , {Dival }Ti=1 , S ⊂ R>0 Require: Wpre , {(Bi∗ , A∗i )}Ti=1 , Dpre val 1: C̄pre ← C̄(Wpre ; Dpre ) 2: for i = 1, . . . , T do C̄pre /C̄i , C̄i > 0, 3: C̄i ← C̄(Wpre + Bi∗ A∗i ; Dival ), βi ← 0, otherwise 4: end for PT ∗ ∗ 5: s∗ ∈ arg maxs∈S ValAcc Wpre + s i=1 βi Bi Ai PT ∗ ∗ 6: return Wpre + s∗ i=1 βi Bi Ai
Assumption 3.1. There exist ϵ1 , ϵ2 ∈ [0, 1) such that (a) Every sample has unit norm: ∥x∥2 = 1 for every x ∈
ST
i=1 Di ∪ Dpre .
(b) Within-task: for each i ∈ [T ] and each pair of distinct x̄, x̄′ ∈ Di , |x̄⊤ x̄′ | ≤ ϵ1 . (c) Cross-task and pre-training: ∀x̄ ∈ Di , x̄′ ∈ Dj , i ̸= j, or x ∈ Dpre , then |x̄⊤ x̄′ |, |x̄⊤ x| ≤ ϵ2 . The following theorem characterizes the optimal mixing coefficients in the strict orthogonal case (ϵ1 = ϵ2 = 0). We refer the reader to Appendix F for the proof. Theorem 3.3. Under Assumption 3.1, suppose each fine–tuning task Di (i = 1, . . . , T ) is trained with a regularization parameter in the intermediate or low-penalty regime. Let Θλ,i = ∥Bi∗ A∗i ∥F and γi = γ(Bi∗ A∗i ; Di ). For any nonnegative coefficient vector α = (α1 , . . . , αT ) ∈ RT≥0 , the merged model (17) achieves the normalized margins on each task as follows γ α Θ γ ρpre γ WLoRA (α); Dpre = q 2 pre , γ W (α); D = q 2 iPiT λ,i 2 2 , PT LoRA i ρpre + j=1 α2j Θ2λ,j ρpre + j=1 αj Θλ,j (18) γ WLoRA (α); Dpre ∪{Di }Ti=1 = min γ WLoRA (α); Dpre , γ WLoRA (α); Di , i ∈ [T ] . C(W
;D
)
pre , i ∈ [T ], maximizes the margin on the union of all tasks: Choosing the weights αi = C(Bpre i Ai ;Di )
maxα∈RT≥0 γ WLoRA (α); Dpre ∪ {Di }Ti=1
=
1 2 γpre
+
PT
1 j=1 (γj )2
−1/2
.
Theorem 3.3 characterizes the margins on each task as well as on the union of tasks as functions of the mixing coefficients. In particular, it shows that the optimal mixing coefficients are given by the ratio between the unnormalized margin of the pre-trained model on Dpre and that of each fine-tuned adapter on its own task. The unnormalized margin measures how confidently a classifier separates classes on its dataset, with smaller values indicating more challenging classification problems. This formula admits a direct interpretation: an adapter that achieves a smaller margin on its task is assigned a larger mixing weight, increasing its contribution so as to preserve a positive margin for that task in the merged model. Towards practical margin-based adapter mixing The preceding analysis suggests choosing adapter mixing coefficients according to how confidently each adapter separates its task data, as measured by the unnormalized margin. In practice, however, datasets are often not perfectly separable, so the minimum margin C(·; ·) can be negative and overly sensitive to hard examples. We therefore use the average margin C̄(·; D) as a more stable proxy for adapter performance. Under the strictorthogonal assumptions of Theorem 3.3, the per-sample margins of each optimal adapter are equal on its own fine-tuning dataset. Consequently, minimum and average margins coincide on these fine-tuning datasets. In our practical algorithm, we therefore use average margins as empirical proxies for the minimum margins appearing in the theoretical mixing rule. Algorithm 1: Margin-based LoRA merging (MaLoRA). Motivated by Theorem 3.3, we propose a practical LoRA merging algorithm using the average-margin proxies C̄(W ; D). When a task has non-positive average margin C̄i , the corresponding coefficient would be negative and no longer 8
Figure 1: Merged-model accuracy across architectures. Each panel shows the accuracy of the merged model evaluated on the combined dataset, across a 50 × 50 grid of mixing coefficients (α1 , α2 ) ∈ (0, 1)2 . For each architecture, the red star indicates the theoretically predicted optimal coefficients from Theorem 3.3, while the red triangle marks the empirically optimal coefficients. consistent with the regime motivated by the theorem. Algorithm 1 therefore drops such tasks by setting their coefficients to zero. We also tune a global scaling factor s∗ on a held-out validation set, following Ilharco et al. [2022], and find that this further improves performance. In §4.2, we compare the resulting method with other popular adapter-merging baselines.
4
Experiments
Our experiments aim to validate the theoretical predictions in Section 3 and assess how well they transfer beyond the linear setting, rather than to establish state-of-the-art performance. Since our analysis gives closed-form predictions for optimal regularization and adapter mixing coefficients, we test whether these quantities match empirical behavior in modern architectures. Specifically, we focus on two questions: (i) whether the mixing coefficients derived from our margin analysis agree with empirically optimal coefficients, and (ii) whether the resulting theory-driven merging rule, MaLoRA, remains competitive with adapter-merging baselines in nonlinear models. Experiments on the effect of regularization are deferred to Appendix H.1.2. Setup and metric. We evaluate our theory and method in two complementary settings. First, in linear probing on CIFAR-100 [Krizhevsky et al., 2009] (§4.1), we use four frozen pre-trained backbones (ResNet-50, ViT-B/16, ConvNeXt, and CLIP) as feature extractors [He et al., 2016, Dosovitskiy et al., 2021, Radford et al., 2021, Liu et al., 2022], apply LoRA only to the final linear classifier [Kornblith et al., 2019], and construct tasks from the CIFAR-100 superclass hierarchy. Second, in multi-domain adapter merging (§4.2), we evaluate ViT-B/16 on PACS, VLCS, and TerraIncognita [Fang et al., 2013, Li et al., 2017, Beery et al., 2018], and XLM-RoBERTa Base on MNLI, Amazon Reviews, and CivilComments [Zhang et al., 2015, Williams et al., 2018, Borkan et al., 2019, Conneau et al., 2020]. Although our theory is stated in terms of normalized margin, we report classification accuracy in experiments, since real-world classification tasks often do not achieve perfect separation and can have negative normalized margins. Additional details are given in Appendix H. 4.1
Optimal mixing coefficients for adapter merging: theory vs. grid search
We fine-tune LoRA adapters on two disjoint tasks (D1 , D2 ), then merge them with the pre-trained weights using mixing coefficients (α1 , α2 ). We evaluate the merged model’s performance on the combined dataset Dpre ∪ D1 ∪ D2 . As shown in Figure 1, our predicted mixing coefficients closely match the grid-searched optima, confirming the practical accuracy of our merging theory. 4.2
Comparison between MaLoRA and other training-free baselines
Following Ilharco et al. [2022], we report average normalized accuracy (per-task merged accuracy divided by per-task finetuned accuracy, averaged across tasks) and its complement, relative accuracy drop, in Table 1. The aggregate performance of the methods is comparable, with average normalized 9
accuracy ranging from 92.87% to 93.32%. MaLoRA lies at the top of this range, achieving an average normalized accuracy of 93.32% and the smallest relative accuracy drop of 6.68%. We emphasize that although MaLoRA is competitive with baselines, our purpose here is not to achieve state-of-the-art results but to demonstrate the efficacy of our theoretically-grounded method. Table 1: Average normalized accuracy and relative accuracy drop, following Ilharco et al. [2022]. Results are averaged over 10 seeds. Bold indicates the best result in each column. Per-benchmark normalized accuracy
Aggregate metrics
Method
PACS
VLCS
Terra Inc.
MNLI
Amazon
CivilComm.
Avg. norm. acc
Rel. drop
Soup TA TIES DARE-TIES DARE-Linear MaLoRA
96.38 97.52 97.52 97.57 96.48 96.69
96.89 97.19 96.95 97.23 96.77 97.54
64.31 64.46 63.78 64.23 64.73 65.75
101.16 101.27 100.87 100.90 101.12 101.23
100.64 100.68 100.64 100.45 100.50 100.69
98.27 97.80 98.00 97.92 97.61 98.00
92.94 93.15 92.96 93.05 92.87 93.32
7.06 6.85 7.04 6.95 7.13 6.68
Computational overhead. MaLoRA computes task margins once and reuses them throughout the scale search. Under a separate matched 49-configuration timing protocol, the mean runtime is 972.6 s versus 950.3 s for TA, approximately 2.35% overhead across the six benchmarks. Detailed timings and the measurement protocol are in Appendix H.2.2.
5
Conclusion, Limitations, and Future Work
In this work, we study LoRA fine-tuning through the normalized margin under a near-orthogonal task regime. We characterize the global minimizer of the regularized LoRA objective across three regularization regimes (Theorem 3.1), derive closed-form expressions for the margins on the pretraining and fine-tuning data, and identify the regularization level that maximizes the margin on their union (Theorem 3.2). We further extend the analysis to multi-task settings by deriving closed-form optimal mixing coefficients for adapter merging (Theorem 3.3). Based on this theory, we propose margin-based LoRA merging (MaLoRA, Algorithm 1), which matches or outperforms several adaptermerging baselines on a range of vision and language benchmarks. Across architectures and tasks, the empirical results closely align with the theoretical predictions. Limitations and future work. First, our analysis relies on simplifying assumptions, most notably near-orthogonal task structure (Assumption 2.1) and balanced class sizes in the fine-tuning data. These assumptions enable a sharp closed-form characterization, but they also limit the scope of the theory. An important direction for future work is to relax them and study LoRA under more general data distributions and pre-training conditions. Second, experiments applying MaLoRA to nonlinear models provide empirical support for the practical usefulness of our merging rule beyond multiclass linear classification. These findings motivate extending the margin-based theoretical analysis to nonlinear adaptation. Third, our theory characterizes margins on the training datasets; establishing corresponding generalization or test-risk guarantees requires further analysis.
Acknowledgments and Disclosure of Funding Ziqing Xu, Lachlan Ewen MacDonald, Salma Tarmoun, and René Vidal acknowledge support from NSF grant 2031985, Simons Foundation grant 814201 (Theorinet), ONR MURI 503405-78051, and University of Pennsylvania startup funds. Enrique Mallada acknowledges support from NSF Global Centers grant 2330450 and DOE Office of Science (ASCR) award 826565. Hancheng Min acknowledges support from the Science and Technology Commission of Shanghai Municipality through the Shanghai Pujiang Programme (grant 25PJA070) and Shanghai Jiao Tong University startup funds.
References Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Proceedings of the European Conference 10
on Computer Vision (ECCV), pages 139–154, 2018. Sara Beery, Grant Van Horn, and Pietro Perona. Recognition in terra incognita. In Proceedings of the European conference on computer vision (ECCV), pages 456–473, 2018. Dan Biderman, Jacob Portes, Jose Javier Gonzalez Ortiz, Mansheej Paul, Philip Greengard, Connor Jennings, Daniel King, Sam Havens, Vitaliy Chiley, Jonathan Frankle, et al. Lora learns less and forgets less. arXiv preprint arXiv:2405.09673, 2024. Daniel Borkan, Lucas Dixon, Jeffrey Sorensen, Nithum Thain, and Lucy Vasserman. Nuanced metrics for measuring unintended bias with real data for text classification. CoRR, abs/1903.04561, 2019. URL http://arxiv.org/abs/1903.04561. Etienne Boursier, Loucas Pullaud-Vivien, and Nicolas Flammarion. Gradient flow dynamics of shallow relu networks for square loss and orthogonal inputs. In Advances in Neural Information Processing Systems, volume 35, pages 20105–20118, 2022. Phuong Bui Thi Mai and Christoph Lampert. The inductive bias of relu networks on orthogonally separable data. In 9th International Conference on Learning Representations, 2021. Christopher J Burges and David Crisp. Uniqueness of the svm solution. Advances in neural information processing systems, 12, 1999. Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer, and Veselin Stoyanov. Unsupervised cross-lingual representation learning at scale. In Proceedings of the 58th annual meeting of the association for computational linguistics, pages 8440–8451, 2020. Koby Crammer and Yoram Singer. On the algorithmic implementation of multiclass kernel-based vector machines. Journal of machine learning research, 2(Dec):265–292, 2001. Thang Doan, Mehdi Abbana Bennani, Bogdan Mazoure, Guillaume Rabusseau, and Pierre Alquier. A theoretical analysis of catastrophic forgetting through the ntk overlap matrix. In International Conference on Artificial Intelligence and Statistics, pages 1072–1080. PMLR, 2021. Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2021. Yasushi Esaki, Satoshi Koide, and Takuro Kutsuna. One-shot domain incremental learning. In 2024 International Joint Conference on Neural Networks (IJCNN), pages 1–8. IEEE, 2024. Itay Evron, Edward Moroshko, Rachel Ward, Nathan Srebro, and Daniel Soudry. How catastrophic can catastrophic forgetting be in linear regression? In Conference on Learning Theory, pages 4028–4079. PMLR, 2022. Chen Fang, Ye Xu, and Daniel N Rockmore. Unbiased metric learning: On the utilization of multiple datasets and web images for softening bias. In Proceedings of the IEEE international conference on computer vision, pages 1657–1664, 2013. Cong Fang, Hangfeng He, Qi Long, and Weijie J Su. Exploring deep neural networks via layer-peeled model: Minority collapse in imbalanced training. Proceedings of the National Academy of Sciences, 118(43):e2103091118, 2021. Spencer Frei, Gal Vardi, Peter L Bartlett, Nathan Srebro, and Wei Hu. Implicit bias in leaky relu networks trained on high-dimensional data. arXiv preprint arXiv:2210.07082, 2022. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016. Wanli Hong and Shuyang Ling. Neural collapse for unconstrained feature model under cross-entropy loss with imbalanced data. arXiv preprint arXiv:2309.09725, 2023. 11
Roger A Horn and Charles R Johnson. Matrix analysis. Cambridge university press, 2012. Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Liang Wang, Weizhu Chen, et al. Lora: Low-rank adaptation of large language models. Iclr, 1(2):3, 2022. Chengsong Huang, Qian Liu, Bill Yuchen Lin, Tianyu Pang, Chao Du, and Min Lin. Lorahub: Efficient cross-task generalization via dynamic lora composition. arXiv preprint arXiv:2307.13269, 2023. Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman, Suchin Gururangan, Ludwig Schmidt, Hannaneh Hajishirzi, and Ali Farhadi. Editing models with task arithmetic. arXiv preprint arXiv:2212.04089, 2022. Uijeong Jang, Jason D Lee, and Ernest K Ryu. Lora training in the ntk regime has no spurious local minima. arXiv preprint arXiv:2402.11867, 2024. James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114 (13):3521–3526, 2017. Simon Kornblith, Jonathon Shlens, and Quoc V Le. Do better imagenet models transfer better? In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 2661–2671, 2019. Yiwen Kou, Zixiang Chen, and Quanquan Gu. Implicit bias of gradient descent for two-layer relu and leaky relu networks on nearly-orthogonal data. Advances in Neural Information Processing Systems, 36:30167–30221, 2023. Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images.(2009), 2009. Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M. Hospedales. Deeper, broader and artier domain generalization, 2017. URL https://arxiv.org/abs/1710.03077. Xuhong Li, Yves Grandvalet, and François Davoine. Explicit inductive bias for transfer learning with convolutional networks. In International Conference on Machine Learning (ICML), pages 2825–2834, 2018. Zhiheng Li and Chenliang Xu. Discover the unknown biased attribute of an image classifier. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 14970–14979, 2021. Zhizhong Li and Derek Hoiem. Learning without forgetting. In European Conference on Computer Vision (ECCV), pages 614–629, 2016. Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, and Saining Xie. A convnet for the 2020s. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 11976–11986, 2022. Ilya Loshchilov and Frank Hutter. arXiv:1711.05101, 2017.
Decoupled weight decay regularization.
arXiv preprint
Kaifeng Lyu and Jian Li. Gradient descent maximizes the margin of homogeneous neural networks. arXiv preprint arXiv:1906.05890, 2019. Kaifeng Lyu, Zhiyuan Li, Runzhe Wang, and Sanjeev Arora. Gradient descent on two-layer nets: Margin maximization and simplicity bias. Advances in Neural Information Processing Systems, 34:12978–12991, 2021. Sadhika Malladi, Alexander Wettig, Dingli Yu, Danqi Chen, and Sanjeev Arora. A kernel-based view of language model fine-tuning. In International Conference on Machine Learning, pages 23610–23641. PMLR, 2023. 12
Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pages 109–165. Elsevier, 1989. Fuli Qiao and Mehrdad Mahdavi. Learn more, but bother less: parameter efficient continual learning. Advances in Neural Information Processing Systems, 37:97476–97498, 2024. Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PmLR, 2021. Vinay Venkatesh Ramasesh, Aitor Lewkowycz, and Ethan Dyer. Effect of scale on catastrophic forgetting in neural networks. In International conference on learning representations, 2021. Hrithik Ravi, Clay Scott, Daniel Soudry, and Yutong Wang. The implicit bias of gradient descent on separable multiclass data. Advances in Neural Information Processing Systems, 37:81324–81359, 2024. Benjamin Recht, Maryam Fazel, and Pablo A Parrilo. Guaranteed minimum-rank solutions of linear matrix equations via nuclear norm minimization. SIAM review, 52(3):471–501, 2010. Kurt S Riedel. A sherman–morrison–woodbury identity for rank augmenting matrices with application to centering. SIAM Journal on Matrix Analysis and Applications, 13(2):659–662, 1992. Bernhard Scholkopf and Alexander J Smola. Learning with kernels: support vector machines, regularization, optimization, and beyond. MIT press, 2018. Jonathan Schwarz, Wojciech M Czarnecki, Jelena Luketina, Agnieszka Grabska-Barwinska, Yee Whye Teh, Razvan Pascanu, and Raia Hadsell. Progress & compress: A scalable framework for continual learning. In International Conference on Machine Learning (ICML), pages 4528–4537, 2018. Daniel Soudry, Elad Hoffer, Mor Shpigel Nacson, Suriya Gunasekar, and Nathan Srebro. The implicit bias of gradient descent on separable data. Journal of Machine Learning Research, 19(70):1–57, 2018. Rangarajan K Sundaram. A first course in optimization theory. Cambridge university press, 1996. Taha ValizadehAslani, Yiwen Shi, Jing Wang, Ping Ren, Yi Zhang, Meng Hu, Liang Zhao, and Hualou Liang. Two-stage fine-tuning with chatgpt data augmentation for learning class-imbalanced data. Neurocomputing, 592:127801, 2024. Hanqing Wang, Bowen Ping, Shuo Wang, Xu Han, Yun Chen, Zhiyuan Liu, and Maosong Sun. Lora-flow: Dynamic lora fusion for large language models in generative tasks. arXiv preprint arXiv:2402.11455, 2024. G Alistair Watson. Characterization of the subdifferential of some matrix norms. Linear Algebra Appl, 170(1):33–45, 1992. Adina Williams, Nikita Nangia, and Samuel Bowman. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 1112–1122. Association for Computational Linguistics, 2018. URL http://aclweb.org/anthology/N18-1101. Martin Wistuba, Prabhu Teja Sivaprasad, Lukas Balles, and Giovanni Zappella. Continual learning with low rank adaptation. arXiv preprint arXiv:2311.17601, 2023. Mitchell Wortsman, Gabriel Ilharco, Samir Ya Gadre, Rebecca Roelofs, Raphael Gontijo-Lopes, Ari S Morcos, Hongseok Namkoong, Ali Farhadi, Yair Carmon, Simon Kornblith, et al. Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. In International conference on machine learning, pages 23965–23998. PMLR, 2022. 13
Ziqing Xu, Hancheng Min, Lachlan Ewen MacDonald, Jinqi Luo, Salma Tarmoun, Enrique Mallada, and Rene Vidal. Understanding the learning dynamics of lora: A gradient flow perspective on low-rank adaptation in matrix factorization. arXiv preprint arXiv:2503.06982, 2025. Prateek Yadav, Derek Tam, Leshem Choshen, Colin Raffel, and Mohit Bansal. Resolving interference when merging models. arXiv preprint arXiv:2306.01708, 1, 2023. Le Yu, Bowen Yu, Haiyang Yu, Fei Huang, and Yongbin Li. Language models are super mario: Absorbing abilities from homologous models as a free lunch. In Forty-first International Conference on Machine Learning, 2024. Yuchen Zeng and Kangwook Lee. The expressive power of low-rank adaptation. arXiv preprint arXiv:2310.17513, 2023. Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. In International conference on machine learning, pages 3987–3995. PMLR, 2017. Wenyu Zhang, Li Shen, Wanyue Zhang, and Chuan-Sheng Foo. Few-shot adaptation of pre-trained networks for domain shift. arXiv preprint arXiv:2205.15234, 2022. Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. Advances in neural information processing systems, 28, 2015. Ziyu Zhao, Leilei Gan, Guoyin Wang, Wangchunshu Zhou, Hongxia Yang, Kun Kuang, and Fei Wu. Loraretriever: Input-aware lora retrieval and composition for mixed tasks in the wild. arXiv preprint arXiv:2402.09997, 2024. Fariba Zohrizadeh, Mohsen Kheirandishfard, and Farhad Kamangar. Class subset selection for partial domain adaptation. In CVPR Workshops, 2019.
14
Contents 1
Introduction
1
2
Preliminaries
2
2.1
Background on multiclass linear classification . . . . . . . . . . . . . . . . . . . .
3
2.2
Pre-training and fine-tuning setup . . . . . . . . . . . . . . . . . . . . . . . . . .
3
2.3
Assumptions and their implications . . . . . . . . . . . . . . . . . . . . . . . . . .
4
3
4
5
Main Results
5
3.1
Global minimum of the LoRA objective . . . . . . . . . . . . . . . . . . . . . . .
5
3.2
Margin trade-off between forgetting and fine-tuning under LoRA adaptation . . . .
6
3.3
Margin characterization of merged LoRA models and optimal mixing coefficients .
7
Experiments
9
4.1
Optimal mixing coefficients for adapter merging: theory vs. grid search . . . . . .
9
4.2
Comparison between MaLoRA and other training-free baselines . . . . . . . . . .
9
Conclusion, Limitations, and Future Work
10
A LLM Usage
17
B Related work
17
C Characterization of Hard-margin SVM Solution for Orthogonal data
18
D Proof of Theorem 3.1
19
D.1 Proof of Theorem 3.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
19
D.2 Proof of General Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
25
E Proof of Theorem 3.2 and Corollary 3.1
29
E.1 Proof of Theorem 3.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
E.2 Proof of Corollary 3.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
E.3 Proof of General Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
F Proof of Theorem 3.3
36
F.1
Proof of Theorem 3.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
36
F.2
Proof of General Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
37
G Lemmas
40
G.1 Preliminary Lemmas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
40
G.2 Proof of Lemma D.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
41
G.3 Proof of Lemma D.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
G.4 Proof of Lemma G.6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
45
15
H Experiment
46
H.1 Details for experiments in §H.1.2 and §4.1 . . . . . . . . . . . . . . . . . . . . . .
46
H.1.1 Empirical Motivation for the Task Geometry Assumption . . . . . . . . . .
47
H.1.2 Effect of regularization . . . . . . . . . . . . . . . . . . . . . . . . . . . .
49
H.1.3 Details for experiments in §4.1 . . . . . . . . . . . . . . . . . . . . . . . .
49
H.2 Details for experiments in §4.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
51
H.2.1 Feature correlations across domains . . . . . . . . . . . . . . . . . . . . .
53
H.2.2 Computational overhead . . . . . . . . . . . . . . . . . . . . . . . . . . .
54
16
A
LLM Usage
In this work, we use LLM to revise the writing, and help build standard training baselines of the experiments, such as dataset downloading, data processing, and pre-trained model loading.
B
Related work
Theory of LoRA. There are many works theoretically studying the expressiveness, characterizing the loss landscape, and understanding the learning dynamics of LoRA. Zeng and Lee [2023] prove that, under mild assumptions, LoRA can approximate any deep linear, feed-forward, or transformer network. Within the NTK regime, Malladi et al. [2023] characterize the conditions under which one can √ study LoRA in the NTK regime, while Jang et al. [2024] show that when the LoRA rank is ri ≳ N , where N is the number of√samples, the optimization landscape of LoRA has no spurious local minima, and GD can find O( N )-rank solutions that generalize well. Moreover, Xu et al. [2025] study the learning dynamics of LoRA in the context of matrix factorization, and show that smaller initialization leads to longer training time and lower training error. However, none of these studies theoretically characterize why LoRA reduces catastrophic forgetting and support effective adapter merging. LoRA merging. A variety of techniques have been proposed to merge task-specific LoRA adapters by forming a weighted average of their parameters. For example, LoRA-Hub [Huang et al., 2023] learns per-task mixing coefficients first, and then applies a weighted average of LoRA weight matrices B and A separately. LoRA-Flow [Wang et al., 2024] introduces token-level gates that dynamically assign merging coefficients to each LoRA adapter before taking weighted averaging. LoRA-Retriever [Zhao et al., 2024] first retrieves the most relevant adapters for each input, and then averages the selected LoRA adapters. Beyond weighted averaging, another line of work attempts to address redundancy and conflicting updates directly. TIES [Yadav et al., 2023] proceeds in three steps: trimming redundant parameters, resolving sign conflicts into an aggregate vector, and averaging only the parameters consistent with the aggregate sign, thereby mitigating degradation from redundant or conflicting updates. DARE [Yu et al., 2024] can be used as a preprocessing step for other merging methods, where parameters are randomly dropped according to a specified rate and the remaining ones are rescaled, reducing redundancy and potential interference among merged adapters. However, all these methods remain largely heuristic and lack theoretical guarantees. Regularization and task orthogonality help reduce forgetting. A large body of work in finetuning and continual learning shows that controlling deviation of the fine-tuned model from the pretrained model reduces catastrophic forgetting. Concretely, these approaches impose weight-space penalties that restrict the magnitude and direction of parameter updates away from the pretrained solution. Weight-anchoring and importance-aware penalties exemplify this idea: Kirkpatrick et al. [2017] penalize movement along directions identified by the Fisher information matrix, while Zenke et al. [2017] accumulate path-wise importance during training. Schwarz et al. [2018] extend this idea to long sequences of tasks. Related approaches estimate parameter sensitivity [Aljundi et al., 2018], apply output-level distillation to preserve prior behavior [Li and Hoiem, 2016], or explicitly regularize parameters toward the pretrained anchor [Li et al., 2018]. Although these approaches differ in how importance or anchoring is computed, the common mechanism is the same: weightspace regularizers constrain updates during fine-tuning relative to the pretrained model to mitigate catastrophic forgetting. Another complementary perspective highlights the role of task relations. When task representations are sufficiently decorrelated, interference between tasks is naturally reduced and forgetting is alleviated. In linear and kernelized models, it has been shown that when tasks are orthogonal or nearly orthogonal, cross-task gradient interference vanishes in expectation, implying negligible forgetting [Doan et al., 2021, Evron et al., 2022]. These insights resonate with our analysis of LoRA, where we explicitly study a regularized objective on low-rank adapters and make the simplifying assumption that the fine-tuning data are orthogonal to the pretraining data. This assumption directly connects to prior findings on task orthogonality and provides a tractable setting in which we can isolate and analyze the role of regularization in mitigating forgetting. 17
C
Characterization of Hard-margin SVM Solution for Orthogonal data
In this section, we characterize the hard-margin SVM solution for K̄-class classification problem for orthogonal data. We show the solution is closely related to the K̄-ETF simplex. Problem Formulation. Consider a K̄-class classification problem with data {(xi,j , yi )}K̄,n i=1,j=1 where: • K̄ ≥ 2 is the number of classes in the dataset • n is the number of samples per class • yi ∈ [K̄] denotes the class label for samples xi,j • All data vectors xi,j have unit norm: ∥xi,j ∥ = 1 • All data vectors are mutually orthogonal: xTi,j xk,l = 0 for (i, j) ̸= (k, l) Let W ∈ RK̄×d be a weight matrix for a linear classifier, where the predicted class for input x is arg maxk (Wk x). For simplicity, we use the following points: X = p notation to denote all the data / K̄ [x1,1 , · · · , xK̄,n ]. We use the canonical ETF MK̄ := K̄/(K̄ − 1) IK̄ −1K̄ 1⊤ , corresponding K̄ to P = IK̄ in Definition 2.1. Now, we are ready to present the main result. Theorem C.1 (Maximum Margin with Frobenius Norm). Under the above data assumptions, the largest normalized margin any nonzero linear classifier can achieve is: γ∗ = p
1 n(K̄ − 1)
(19)
The unique unit-margin minimum-Frobenius-norm SVM solution is r ⊤ K̄ − 1 SVM W = MK̄ ⊗ 1⊤ n X . K̄ The normalized margin is maximized precisely by W = cW SVM with c > 0.
Proof. We first solve the unit-margin minimum-norm SVM problem (3) with K̄ output classes. By Proposition G.1, its solution has the form W SVM = A∗ X ⊤ for some A∗ ∈ RK̄×K̄n . Since X ⊤ X = IK̄n , the logits satisfy W SVM X = A∗ and ∥W SVM ∥F = ∥A∗ ∥F . Thus, A∗ solves 1 ∥A∥2F A∈RK̄×K̄n 2
A∗ = arg min
subject to
Ai,(i−1)n+j − Ak,(i−1)n+j ≥ 1,
i, k ∈ [K̄], i ̸= k, j ∈ [n].
(20)
This feasible problem has a strictly convex objective and a convex constraint set, so its solution is unique [Burges and Crisp, 1999]. We use the permutation invariances of this fixed-scale problem to characterize A∗ . We first decompose A∗ into block matrices, i.e., A∗ = A∗1 · · · A∗K̄ where A∗i ∈ RK̄×n , i ∈ [K̄]. Invariance under column permutation within block matrices. Permuting columns within a class block preserves both the constraints and the objective in (20). Thus, for any permutation matrices Πi ∈ Rn×n , the matrix A∗1 Π1 · · · A∗K̄ ΠK̄ is also optimal. Uniqueness gives A∗i Πi = A∗i for K̄ every Πi , so all columns of each block are equal: A∗i = vi 1⊤ n for some vi ∈ R . Invariance under permutation across block matrices. Let V := [v1 , . . . , vK̄ ]. Simultaneously permuting output rows and the corresponding class blocks preserves the constraints and objective in (20). Uniqueness therefore gives ΠV Π⊤ = V for every permutation matrix Π ∈ RK̄×K̄ . By Lemma G.5, V = aIK̄ −b1K̄ 1⊤ for some a, b ∈ R. K̄ 18
Scalar optimization. The unit-margin constraints reduce to a ≥ 1, and ∥A∗ ∥2F = nK̄(a − b)2 + nK̄(K̄ − 1)b2 a 2 = n (K̄ − 1)a2 + K̄ 2 b − . K̄ The unique minimum is attained at a = 1 and b = 1/K̄. Hence, q 1 SVM ⊤ ⊤ ⊤ SVM W = IK̄ − 1K̄ 1K̄ ⊗ 1n X , ∥W ∥F = n(K̄ − 1), K̄ which gives the stated ETF formula and has C(W SVM ; D) = 1. Finally, any classifier W with C(W ; D) > 0 can be rescaled to the feasible unit-margin classifier W/C(W ; D). Minimum-norm optimality yields γ(W ; D) =
1 1 1 . ≤ =p ∥W/C(W ; D)∥F ∥W SVM ∥F n(K̄ − 1)
Equality holds precisely when W/C(W ; D) = W SVM , by uniqueness of the unit-margin minimumnorm solution. Thus all normalized-margin maximizers are exactly the positive multiples of W SVM . Classifiers with nonpositive margin cannot attain this positive optimum.
D
Proof of Theorem 3.1
In this section, we first present the proof of Theorem 3.1. Then, under additional assumptions on ϵ1 , ϵ2 , we show that the same conclusion still holds, with additional error terms that depend on ϵ1 , ϵ2 . D.1
Proof of Theorem 3.1
For the case 2 ≤ K̄ < K, we first define the following functions used in the proof of Theorem 3.1. The balanced case K̄ = K is treated separately below. s ρ(K − K̄) gN (x) := K̄(K − K̄)x2 + K̄K(1 − x)2 q r ρ gN (x) K̄n 2 K 2 x + (1 − x) ga (x) := exp q K K − K̄ (1 − x)2 x2 + K− K̄ q r ρ gN (x) K̄n x2 K 2 q gb (x) := exp − + (1 − x) K K − K̄ x2 + K− (1 − x)2 K̄ − 1 K̄ q r ρ gN (x) K̄n K K̄ gc (x) := exp q − · (1 − x)2 . (21) K − K̄ x2 + K (1 − x)2 K − K̄ K−K̄
Moreover, let x0 ∈ [0, 1] be the root of the equation gb (x) =q gc (x)
1
.
K +1 K−K̄
Remark D.1. Our proof technique follows Fang et al. [2021], and the readers can see the same definition of ga (x), gb (x), gc (x) and x0 in Fang et al. [2021]. Moreover, the authors prove the existence of x0 under certain conditions. Now, we begin the proof of Theorem 3.1. 19
Theorem D.1 (Restatement of Theorem 3.1). Let Bλ∗ , A∗λ be any minimizer of (5). There exist scalar functions aλ , bλ , cλ , Θλ of λ such that for any global minimizer Bλ∗ , A∗λ of (5) with λ > 0, we have aλ + bλ IK̄ − bλ 1K̄ 1⊤K̄ ∗ ∗ ⊤ B λ Aλ = ⊗ 1n Xft⊤ , ∥Bλ∗ A∗λ ∥F = Θλ . (22) −cλ 1K−K̄ 1⊤K̄ 1 ), with λcrit = 0 if and only When K̄ ≥ 2, there exists a critical regularization weight λcrit ∈ [0, K̄ √ n if K̄ = K, such that the scalar functions aλ , bλ , cλ , Θλ are characterized as follows: 1 (i) High-penalty regime λ ≥ K̄ √ : aλ = bλ = cλ = Θλ = 0, thus Bλ∗ A∗λ = 0K×d . n √ Θλ K̄−1 1 √ (ii) Intermediate regime λcrit < λ < K̄ n : aλ = K̄ √n , bλ = √ Θλ , cλ = 0, and Θλ is K̄
n(K̄−1)
the unique root of a nonlinear equation (see (29) in Appendix D), thus the minimizer is Θλ MK̄ ∗ ∗ ⊤ ⊤ B λ Aλ = √ 0(K−K̄)×K̄ ⊗ 1n Xft . K̄n (iii) Low-penalty regime 0 < λ ≤ λcrit : aλ , bλ , cλ , Θλ are non-negative.
(23)
Moreover, the small-regularization limit satisfies Bλ∗ A∗λ = lim ∗ ∗ λ→0+ ∥Bλ Aλ ∥F
lim Θλ = ∞ ,
λ→0+ (K̄)
where MK
r
1 (K̄) ⊤ MK ⊗ 1 ⊤ n Xft , nK̄
(24)
is the first K̄ columns of the K-ETF matrix MK .
Proof. We first show that one can simplify the objective in (5) based on the following Lemma. Lemma D.1. Under Assumptions 2.1 and 2.4 with ϵ1 = ϵ2 = 0, the original fine-tuning problem in (5) is equivalent to the following symmetric formulation: K̄
min L(B, Ã) := B,Ã
n
λ 1 XX LCE yc , B Ãen(c−1)+j + ∥B∥2F + ∥Ã∥2F , 2 K̄n c=1 j=1
(25)
where Xft = [x̄1,1 , . . . , x̄1,n , · · · , x̄K̄,1 , · · · x̄K̄,n ], B ∈ RK×r , Ã = AXft ∈ Rr×K̄n . Let Xft,⊥ be an orthonormal complement of Xft . Then: 1. If (B ∗ , A∗ ) is any global minimizer of (5), then (B ∗ , Ã∗ )
with Ã∗ = A∗ Xft
is a global minimizer of (25). 2. Conversely, if (B ∗ , Ã∗ ) is any global minimizer of (25), then (B ∗ , Ã∗ Xft⊤ ) yields a global minimizer of the original problem in (5). We refer the readers to Appendix G.2 for the proof of Lemma D.1. Lemma D.1 indicates that to characterize the global minimizer of the objective in (5), one can instead characterize the global minimizer of the objective in (25). We start with the following equations that characterize the global minimizer of (25) K̄ n ∂L(B, Ã) 1 XX ∂ ⊤ = λB + LCE yc , B Ãe(c−1)n+j e⊤ (c−1)n+j à = 0 ∂B K̄n c=1 j=1 ∂B à K̄ X n X ∂L(B, Ã) ∂ ⊤ 1 = λà + B LCE yc , B Ãe(c−1)n+j e⊤ (c−1)n+j = 0 . K̄n c=1 j=1 ∂B à ∂ à 20
Based on the above equation, we can conclude that any minimizer (B, Ã) of (25) must satisfy λB ⊤ B = λÃÃ⊤ ⇒ ∥B∥2F = ∥Ã∥2F .
(26)
Our second step is to converge the problem into a constraint optimization problem. The following lemma characterizes this. Lemma D.2. Let B ∈ RK×r , Ã ∈ Rr×K̄n , and assume r ≥ K̄ as in Assumption 2.3. For each λ > 0, there exists a unique non-negative value ρλ such that the solution set for the following optimization problems are equivalent K̄
n
λ 1 XX ∥B∥2F + ∥Ã∥2F , LCE yc , B Ãe(c−1)n+j + 2 B,Ã K̄n c=1 j=1
min
K̄
(Problem one)
n
1 XX LCE yc , B Ãe(c−1)n+j B,Ã K̄n c=1 j=1
min
s.t.∥B∥2F ≤ ρλ , ∥Ã∥2F ≤ ρλ .
(Problem two)
Moreover, the map λ 7→ ρλ enjoys the following properties: (i) Monotonicity and continuity. ρλ is continuous and non-increasing on (0, ∞). (ii) Asymptotic behaviour. lim ρλ = ∞,
lim ρλ = 0.
λ→0+
λ→∞
(iii) Flat regions. For any 0 < λ1 < λ2 , ρ(λ1 ) = ρ(λ2 ) ⇐⇒ ρ(λ1 ) = ρ(λ2 ) = 0. We refer the readers to Appendix G.3 for the proof. Balanced case K̄ = K ≥ 2. By Lemmas D.1 and D.2, it suffices to solve the convex problem (Problem three). Let ℓ(Z) denote its mean cross-entropy term and set C := (IK − 1K 1⊤ K /K) ⊗ √ 1⊤ . The K −1 nonzero singular values of C equal n, so for t > 0, n ∇ℓ(tC) = −
C n(et + K − 1)
,
C √ ∈ ∂∥tC∥∗ . n
t Thus√ the global optimality condition 0 ∈ ∇ℓ(Z) √ + λ∂∥Z∥∗ holds at Z = tC exactly when e +K−1 √= 1/(λ n). At zero, ∥∇ℓ(0)∥op = 1/(K n), so zero is optimal exactly when λ ≥ 1/(K n). Uniqueness (Lemma G.6) therefore gives ( 1 1 − (K − 1) , 0 < λ < K √ , log λ√ ∗ n n Zλ = tλ C , tλ = 1 0, λ ≥ K √n .
Since rank(Zλ∗ ) ≤ K−1 ≤ r, this solution is feasible for the factorized problem. Writing Ā∗λ := A∗λ Xft , √ ∗ ∗ ∗ ∗ ∗ ⊤ every global pminimizer satisfies Bλ Āλ = Zλ and Bλ Aλ = tλ CXft . Consequently, ρλ = n(K −1)tλ and Θλ = n(K − 1)tλ . These formulas prove the intermediate ETF form and both limits in (9). We set λcrit = 0 and ρcrit = +∞ as limiting boundaries; no minimizer at λ = 0 is asserted. For the remainder of this strict-orthogonal proof, assume 2 ≤ K̄ < K. For simplicity, we will use ρ to denote ρλ for convenience. Characterization to solution of (Problem two). (Problem two) can be viewed as a special case of the neural collapse phenomenon in the extreme setting of an imbalanced dataset: for the first K̄ classes we observe n data points per class, while all remaining classes have zero samples. In this context, we directly invoke the following result from Fang et al. Fang et al. [2021] (see p. 26 in . Fang et al. [2021]).
21
Lemma D.3 (Neural collapse under extreme imbalance; [Fang et al., 2021, Page 26]). Assume 2 ≤ K̄ < K. For any constants c1 , c2 , c3 , ρ > 0, define c1 c′1 = c1 + (K̄ − 1)c2 + (K − K̄)c3 c2 c′2 = c1 + (K̄ − 1)c2 + (K − K̄)c3 c3 c′3 = c1 + (K̄ − 1)c2 + (K − K̄)c3 c4 = −c′1 log c′1 − c′2 (K̄ − 1) log c′2 − (K − K̄)c′3 log(c′3 ) K̄c2 K̄c2 + (K − K̄)c3 (K − K̄)c3 c6 = K̄c2 + (K − K̄)c3 K̄c2 + (K − K̄)c3 c7 = c1 + (K̄ − 1)c2 + (K − K̄)c3 c5 =
For any feasible solution (B, Ã) of (Problem two), the objective value of (Problem two) can be simplified to v r u n K̄ X K̄ X X a c7 ρ u 1 t LCE yc , B Ãe(c−1)n+j ≥ − ∥c5 w1 + c6 w2 − bi ∥2 + c4 K̄n c=1 j=1 K̄ n i=1 1 where w1 = K̄ c1 , c2 , c3 .
PK̄
1 i=1 bi , w2 = K−K̄
a
PK
i=K̄+1 bi , and ≥ becomes equality under certain choices of
Readers are referred to Fang et al. [2021] for the full proof. Note the following distinction between Lemma D.3 and its analogue in Fang et al. [2021]: the inequality in Fang et al. [2021] becomes tight only when all minority-class features are zero and certain choices of c1 , c2 , c3 , whereas in our lemma, we do not require that all minority-class features are zero. This difference is resolved by our change of variables à = AXft , which effectively confines à to the subspace of observed (majority-class) features and thus guarantees equality in Lemma D.3. Now, we carefull pick the B, à and c1 , c2 , c3 to achieve the global minimum of the objective in (Problem two). The following lemma characterizes this exactly. Lemma D.4 (Lemma 5 in Fang et al. [2021]). Under the assumptions of Theorem 3.1, with 2 ≤ K̄ < K, define r √ K ρcrit = nK̄(K̄ −1) log +1 K − K̄ such that the optimal value to (Problem two) is as follows • when K̄ ≥ 2 and ρλ < ρcrit , we choose c1 = exp
ρ√ λ K̄ n
, c2 = exp
√
−ρλ nK̄(K̄−1)
and (Problem two) attain its minimum ρλ ρλ ρλ −√ +log K − K̄ +(K̄ − 1) exp − √ +exp √ , nK̄ nK̄(K̄ − 1) nK̄ where B ∗ , Ã∗ takes the following form ∗ ∗ √ b1 , b2 , . . . , b∗K̄ = n ā∗1 , ā∗2 , . . . , ā∗K̄ = a∗i = ā∗⌈i/n⌉ , b∗j = 0,
i = 1, . . . , K̄n, j > K̄.
22
r
ρ P MK̄ , K̄
, c3 = 1,
Here P ∈ Rr×K̄ satisfies P ⊤ P = IK̄ , a∗i is the i-th column of Ã∗ , and ā∗c is the common column for samples in class c. Writing Ā∗ := Ã∗ = A∗ Xft for the data-coordinate factor, the product takes the following form ρλ MK̄ ∗ ∗ ⊗ 1⊤ (27) B Ā = p n . K̄n(K̄ − 1) 0(K−K̄)×K̄ • when K̄ ≥ 2 and ρ ≥ ρcrit , one choose c1 = ga (x0 ),
c2 = gb (x0 ),
c3 = gc (x0 ) ,
where ga (x), gb (x), gc (x) and x0 are defined in (21). Then, (Problem two) attain its minimum ga (x0 ) + (K̄ − 1)gb (x0 ) + (K − K̄)gc (x0 ) log , ga (x0 ) where " # 1 − x x K̄ x 0 0 0 −p ȳi + √ 1K̄ , i ≤ K̄, gN (x0 ) P p ∗ K̄(K̄ − 1) K̄ bi = √ K̄(K̄ − 1) g (x ) K̄ (1 − x0 ) − N 0 i > K̄. P 1K̄ , K − K̄ q K s (1−x0 ) K− gN (x0 ) x0 K̄ K̄ ∗ √ āc = √ −p P x0 ȳc + 1K̄ , n K̄ −1 K̄(K̄ −1) K̄ where ȳc ∈ RK̄ is a one-hot vector with the c-th entry equal to one (and ȳi is defined analogously with the i-th entry equal to one), and P ∈ Rr×K̄ is a partial orthogonal matrix such that P ⊤ P = IK̄ . The sample columns satisfy a∗(c−1)n+j = ā∗c for c ∈ [K̄] and j ∈ [n]. Moreover, B ∗ Ã∗ takes the following form (log ga (x0 ) − log gb (x0 ))IK̄ + log gb (x0 )1K̄ 1⊤ ∗ ∗ K̄ B Ã = ⊗ 1⊤ n . log gc (x0 )1K−K̄ 1⊤ K̄ Lemma D.4 is Lemma 5 in Fang et al. [2021]. We refer the readers to Fang et al. [2021] for the proof. Lemma D.4 exactly characterize the optimal solution and value of the objective in (Problem two). Computation of the product of LoRA adapters. Based on Lemma D.4, we can characterize the solution to the LoRA objective in (5), then it suffices to compute the product of the minimizer to prove Theorem 3.1. In the Intermediate regime, restricting B ∗ to its first K̄ rows gives ρλ ⊤ ⊤ B ∗ 1:K̄,: ā∗1 , ā∗2 , . . . , ā∗K̄ = √ MK̄ P P MK̄ K̄ n ρλ K̄ 1 = √ IK̄ − 1K̄ 1⊤ K̄ K̄ n K̄ − 1 K̄ ρλ =p MK̄ , K̄n(K̄ − 1) and it leads to the product of final solution ∗
B Ã
∗
= p
ρλ K̄n(K̄ − 1)
MK̄
0(K−K̄)×K̄
⊗ 1⊤ n .
In the Low penalty regime, in Fang et al. [2021], the authors further show that log ga (x0 ) i = j ≤ K̄ (b∗i )⊤ ā∗j = log gb (x0 ) i ̸= j, i ≤ K̄ i ∈ [K], j ∈ [K̄]. log gc (x0 ) K̄ < i ≤ K 23
(28)
Thus, one can show that ∗
∗
B Ã =
(log ga (x0 ) − log gb (x0 ))IK̄ + log gb (x0 )1K̄ 1⊤ K̄ log gc (x0 )1K−K̄ 1⊤ K̄
⊗ 1⊤ n .
Characterization of λcrit . In Lemma D.4, when K̄ ≥ 2, we see that the solution takes different form based on whether ρλ < ρcrit or ρλ ≥ ρcrit . Moreover, based on Lemma D.2, there must exist a unique λcrit such that ρcrit = ρ(λcrit ). Now, we characterize the range of λcrit here. Due to Lemma D.4, we know when λ > λcrit , the solution takes the form 1 ρ IK̄ − K̄ 1K̄ 1⊤ K̄ B ∗ Ā∗ = √ ⊗ 1⊤ n , 0(K−K̄)×K̄ n(K̄ − 1) and adding the penalty λρ to this constrained minimum cross entropy gives the scalar penalized objective ρ ρ ρ ψ(ρ) := λρ− √ +log K − K̄ +(K̄ − 1) exp − √ +exp √ , nK̄ nK̄(K̄ − 1) nK̄ √ For this ETF-form update, ρ = K̄ − 1Θ. Differentiating ψ(ρ) and substituting this relation into the stationarity condition gives dψ(ρ) =0 dρ exp √nρK̄ − exp − √nK̄(ρK̄−1) 1 1 =0 ⇐⇒ (λ − √ )+ √ · nK̄ nK̄ K − K̄ +(K̄ − 1) exp − √nK̄(ρK̄−1) +exp √nρK̄ exp √ Θ −1 1 1 n(K̄−1) =0 ⇐⇒ (λ − √ )+ √ · nK̄ nK̄ (K − K̄) exp √ Θ +(K̄ − 1)+exp √ Θ K̄
n(K̄−1)
(29)
n(K̄−1)
√ We argue by contradiction. Suppose λcrit ≥ 1/( nK̄). For every λ > λcrit , the preceding ETF form (including the zero product) applies and (29) gives dψ/dρ > 0 for ρ > 0, so ρλ = 0. Letting λ ↓ λcrit and using continuity from Lemma D.2 yields ρ(λcrit ) = 0, contradicting its defining value ρcrit > 0. This covers both equality and strict inequality in the contradiction hypothesis. Therefore λcrit < √
1 . nK̄
Characterization of ρλ . In this part, we characterize the ρλ when λ > λcrit . By Lemma D.4, in this ETF regime ψ(ρ) equals the constrained minimum cross entropy at budget ρ, plus the penalty λρ. Thus, ρλ must attain the minimum of ψ(ρ). Based on (29), one can first see that if λ ≥ √n1K̄ , dψ(ρ) √ 1 , solve (29) for Θλ dρ > 0, and the minimum is attained when ρλ = 0. When λcrit < λ < nK̄
and recover ρλ =
√
K̄ − 1Θλ .
Asymptotic behaviour of ρλ . On one hand, as λ → 0+, one obviously has limλ→0+ ∥B ∗ Ã∗ ∥F = ∞, since by Lemma D.2 we have Zλ∗ = B ∗ Ã∗ where Zλ∗ is the unique minimizer of (Problem three) and ∥Zλ∗ ∥∗ = ρλ → ∞. Then, we characterize its asymptotic direction, which is equivalent to study ga (x0 ) log ga (x0 ) the limit of log log gb (x0 ) and log gc (x0 ) as λ → 0+. We will use x0,λ denote the choice of x0 for fix regularization effect λ. First, the equation to derive for x0 is as follows gb (x) 1 q = gc (x) 1+
K K−K̄
2
⇐⇒
K − x + ( K− )3/2 (1 − x)2 ρλ K̄ √ · K̄−12 = − log 1 + K K̄ n x + K− (1 − x)2 K̄
24
r
K K − K̄
Since limλ→0+ ρλ = ∞, one must have x0,λ approaches the solution of the following quadratic equation x20,λ K̄ − 1
=
K 3/2 (1 − x0,λ )2 . K − K̄ log g (x
)
log g (x
)
a 0,λ 0,λ Moreover, one can see that the expression for log gab (x0,λ ) and log gc (x0,λ ) takes the following form q K (1 − x0,λ )2 x20,λ + K− log ga (x0,λ ) K̄ q = x2 log gb (x0,λ ) K − 0,λ + (1 − x )2
K−K̄
K̄−1
0,λ
q
K (1 − x0,λ )2 x20,λ + K− log ga (x0,λ ) K̄ q . = K log gc (x0,λ ) (1 − x )2 − K̄ · K−K̄
K−K̄
0,λ
Thus, combine the above two equations, we can compute that lim
log ga (x0,λ )
λ→0+ log gb (x0,λ )
= lim
log ga (x0,λ )
λ→0+ log gc (x0,λ )
= −(K − 1) .
Connection between ρλ and Θλ . In previous analysis, we have shown that ρλ = ∥Bλ∗ A∗λ ∥∗ ,
Θλ = ∥Bλ∗ A∗λ ∥F
(30)
It remains to relate ρλ and Θλ across the regularization regimes. Write Ā∗λ := A∗λ Xft for the datacoordinate factor denoted by Ã∗ above. By Lemma D.1, Bλ∗ A∗λ = Bλ∗ Ā∗λ Xft⊤ . Since Xft⊤ Xft = IK̄n , the weight-space and data-coordinate products have the same nonzero singular values, and hence the same nuclear and Frobenius norms. First, it is obvious in the high-penalty regime, ρλ = Θλ = 0. Second, in the intermediate regime, the data-coordinate product is ρλ MK̄ ∗ ∗ ⊗ 1⊤ Bλ Āλ = p n . K̄n(K̄ − 1) 0(K−K̄)×K̄ Consequently, ρλ = ∥Bλ∗ Ā∗λ ∥∗ ,
Θλ = ∥Bλ∗ Ā∗λ ∥F = √
ρλ
K̄ − 1 Equivalently, the data-coordinate product in the intermediate regime is Θλ MK̄ ∗ ∗ Bλ Āλ = √ ⊗ 1⊤ n . nK̄ 0(K−K̄)×K̄
.
Multiplying by Xft⊤ recovers the weight-space formula (8). Third, in the low-penalty regime, the preceding asymptotic analysis gives limλ→0+ ∥Bλ∗ Ā∗λ ∥F = ∞ and characterizes the limiting direction. The solution of (5). Finally, one can use Lemma D.1 to characterize the optimal solution of (5) based on the above results.
D.2
Proof of General Version
In this subsection we present the general version of Theorem 3.1: under the near-orthogonal regime in Assumption 2.1 (i.e., ϵ1 , ϵ2 small but possibly nonzero), the optimal LoRA update Bλ∗ A∗λ remains close, in Frobenius norm, to its closed-form orthogonal-case description, with the deviation controlled linearly in ϵ1 and ϵ2 . Notation. Write G := Xft⊤ Xft ∈ RK̄n×K̄n , R := G1/2 , Q := Xft R−1 ∈ Rd×K̄n (so that Q⊤ Q = IK̄n and Xft = QR), S := Wpre Xft ∈ RK×K̄n , and let Npre := |Dpre | be the number 25
of pre-training samples. Set δ := (K̄n − 1) ϵ1 . For any S̄ ∈ RK×K̄n and any positive-definite R̄ ∈ RK̄n×K̄n , define K̄
Φ(Z; S̄, R̄) :=
n
1 XX LCE yc , (Z R̄ + S̄) e(c−1)n+j + λ∥Z∥∗ , K̄n c=1 j=1
Zλ∗ (S̄, R̄) := arg
Φ(Z; S̄, R̄) .
min
(31) (32)
Z∈RK×K̄n
The minimizer Zλ∗ is unique by Lemma G.6 (for S̄ = 0, R̄ = I; the same argument applies for general R̄ ≻ 0). Theorem D.2 (General version of Theorem 3.1). Fix λ > 0 and suppose Assumptions 2.1–2.4 hold with ϵ1 , ϵ2 ∈ [0, 1). There exist constants δ0 ∈ (0, 1/2], s0 ∈ (0, 1], and µ0 , C0 > 0, depending on λ, K, K̄, n, ∥Zλ∗ (0, I)∥∗ but not on ϵ1 , ϵ2 , such that whenever δ := (K̄n − 1) ϵ1 ≤ δ0 and ∥S∥F ≤ s0 , C0 Bλ∗ A∗λ − Zλ∗ (0, I) Xft⊤ F ≤ (33) ∥S∥F + δ 1 + ∥Zλ∗ (0, I)∥F . µ0 In particular, as ϵ1 , ϵ2 → 0, Bλ∗ A∗λ converges in Frobenius norm to its orthogonal-case form Zλ∗ (0, I)Xft⊤ . Remark D.2 (Bounding ∥S∥F in ϵ2 ). The bound (33) is stated directly in terms of ∥S∥F = ∥Wpre Xft ∥F . To translate this into a bound in ϵ2 , one needs a lower bound on σmin (Xpre ). By Proposition G.1 and Assumption 2.4, each row wk of Wpre admits the representation wk = Xpre βk with ∥βk ∥2 ≤ ∥wk ∥2 /σmin (Xpre ). Combined with Assumption 2.1(c), p p ∥wk ∥2 Npre ϵ2 ⊤ ⊤ ⊤ |wk x̄c,j | = |βk Xpre x̄c,j | ≤ ∥βk ∥2 Npre ϵ2 ≤ , (34) σmin (Xpre ) p hence ∥S∥F ≤ K̄n Npre ∥Wpre ∥F ϵ2 /σmin (Xpre ). In particular, ∥S∥F → 0 as ϵ2 → 0 whenever σmin (Xpre ) is bounded below by a positive constant. The cleanest specialization is the orthonormal ⊤ case Xpre Xpre = INpre (so σmin (Xpre ) = 1), which yields q ∥S∥F ≤ K̄n Npre ∥Wpre ∥F ϵ2 . (35) The same conclusion holds, up to a multiplicative conditioning constant, whenever σmin (Xpre ) can be lower-bounded (e.g., near-orthogonal pre-training features, or unit-norm pre-training features with bounded condition number). We highlight that we do not claim (35) is tight. The goal of Remark D.2 is to show that ∥S∥F can be controlled by ϵ2 under mild assumptions, so that the right-hand side of (33) goes to zero as ϵ2 → 0. Proof of Theorem D.2. We first reformulate the optimization problem in Z as it was done in the previous proof. By the same change of variable used in the proof of Lemma D.1, decompose A = ÃQ⊤ +A⊥ where à := AQ ∈ Rr×K̄n and A⊥ := A(Id −QQ⊤ ). Then Axc,j = ÃRe(c−1)n+j and (5) can be rewritten as λ 1 X L(B, A) = LCE yc , (B ÃR + S)e(c−1)n+j + ∥B∥2F + ∥Ã∥2F + ∥A⊥ ∥2F . (36) 2 K̄n c,j The component A⊥ contributes only to the regularizer and is therefore zero at any minimizer. Setting Z = B à and applying the variational form of the nuclear norm (Lemma G.2), the LoRA problem becomes the rank-constrained minimization minZ∈RK×K̄n , rank(Z)≤r Φ(Z; S, R), where Φ(Z; S̄, R̄) := L(Z; S̄, R̄) + λ∥Z∥∗ . Let Zλ∗ (S, R) denote the unique unconstrained minimizer of Φ(·; S, R) over RK×K̄n (Lemma G.6). We first establish a perturbation bound for this unconstrained problem, then verify that its minimizer satisfies the rank constraint. Then, we provide a spectral bound on R. By Assumption 2.1, Gii = ∥x̄i ∥2 = 1 and |Gij | = |x̄⊤ i x̄j | ≤ ϵ1 for i ̸= j. By Gershgorin’s circle theorem, X ∥G − I∥op ≤ max |Gij | ≤ (K̄n − 1) ϵ1 = δ . (37) i
j̸=i
26
p √ √ Hence every eigenvalue of G lies in [1 − δ, 1 + δ], so σi (R) = σi (G) ∈ [ 1 − δ, 1 + δ], which √ √ gives σmin (R) ≥ 1 − δ. Using | x − 1| ≤ |x − 1| for x ≥ 0, p ∥R − I∥op = max | σi (G) − 1| ≤ max |σi (G) − 1| = ∥G − I∥op ≤ δ . (38) i
i
Based on the previous spectral bound, we can now bound the deviation of Zλ∗ (S, R) from Zλ∗ (0, I), which will lead to the desired bound on ∥Bλ∗ A∗λ − Zλ∗ (0, I)Xft⊤ ∥F . Let L(Z; S̄, R̄) := Φ(Z; S̄, R̄) − λ∥Z∥∗ be the smooth (cross-entropy) part of the objective, and write Z1 := Zλ∗ (S, R), Z0 := Zλ∗ (0, I). The first-order optimality conditions read −∇Z L(Z1 ; S, R) ∈ λ ∂∥Z1 ∥∗ ,
−∇Z L(Z0 ; 0, I) ∈ λ ∂∥Z0 ∥∗ .
(39)
Subdifferentials of convex functions are monotone, so ⟨G1 −G0 , Z1 −Z0 ⟩ ≥ 0 for any Gi ∈ ∂∥Zi ∥∗ . Substituting, ⟨∇L(Z1 ; S, R) − ∇L(Z0 ; 0, I), Z1 − Z0 ⟩ ≤ 0 .
(40)
We work under the preliminary bound ∥S∥F ≤ 1 and will choose s0 ≤ 1 below. By Lemma G.6, both Z0 and Z1 lie in the subspace {Z : 1⊤ K Z = 0}. We next establish an a priori F-norm bound to enable application of local strong convexity. The unperturbed bound ∥Z0 ∥∗ ≤ log K/λ is already given in the proof of Lemma D.1 (using Φ(0; 0, I) = log K). The same argument extends to the perturbed problem: by optimality of Z1 and feasibility of Z = 0, λ ∥Z1 ∥F ≤ λ ∥Z1 ∥∗ ≤ Φ(Z1 ; S, R) ≤ Φ(0; S, R) = L(0; S, R) ≤ log K + 2∥S∥F , (41) P zi where the last inequality uses LCE (yc , z) = −zc + log i e ≤ log K + 2∥z∥∞ together with ∥Se(c−1)n+j ∥∞ ≤ ∥S∥F . Define R0 :=
log K + 2 , λ
B := Z ∈ RK×K̄n : ∥Z∥F ≤ R0 , 1⊤ KZ = 0 ,
so that {Z0 , Z1 } ⊂ B. By Lemma G.7 applied with radius R0 , L(·; 0, I) is µ0 -strongly convex on B in directions ∆Z ∈ {∆Z : 1⊤ K ∆Z = 0}, where µ0 = µ0 (R0 ) > 0. Consequently ⟨∇L(Z1 ; 0, I) − ∇L(Z0 ; 0, I), Z1 − Z0 ⟩ ≥ µ0 ∥Z1 − Z0 ∥2F .
(42)
Subtracting from (40), µ0 ∥Z1 − Z0 ∥2F ≤ ⟨∇L(Z1 ; 0, I) − ∇L(Z1 ; S, R), Z1 − Z0 ⟩ ≤ ∥∇L(Z1 ; 0, I) − ∇L(Z1 ; S, R)∥F ∥Z1 − Z0 ∥F ,
(43) (44)
µ0 ∥Z1 − Z0 ∥F ≤ ∥∇L(Z1 ; 0, I) − ∇L(Z1 ; S, R)∥F .
(45)
hence
It remains to bound the right-hand side of (45). Direct calculation gives 1 X ∇L(Z; S̄, R̄) = σc,j (Z; S̄, R̄) (R̄ e(c−1)n+j )⊤ , K̄n c,j where σc,j (Z; S̄, R̄) := softmax (Z R̄ + S̄)e(c−1)n+j − yc ∈ RK . Splitting, 1 Xh ∇L(Z; S, R) − ∇L(Z; 0, I) = σc,j (Z; S, R) − σc,j (Z; 0, I) (R e(c−1)n+j )⊤ K̄n c,j i + σc,j (Z; 0, I) ((R − I) e(c−1)n+j )⊤ .
(46)
(47) (48)
The softmax map is 1-Lipschitz, so ∥σc,j (Z; S, R) − σc,j (Z; 0, I)∥2 ≤ ∥((ZR + S) − Z)e(c−1)n+j ∥2 ≤ ∥Z∥F ∥R − I∥op + ∥S e(c−1)n+j ∥2 , 27
(49)
√ and ∥σc,j (Z; 0, I)∥2 ≤ 2 since σc,j is the difference of a probability vector and P a one-hot label, both in [0, 1]K . Combining via the triangle inequality and Cauchy–Schwarz (using c,j ∥Se(c−1)n+j ∥2 ≤ √ √ P K̄n ∥S∥F and c,j ∥(R − I)e(c−1)n+j ∥2 ≤ K̄n ∥R − I∥F ≤ K̄n δ), ∥S∥F √ ∥∇L(Z; S, R) − ∇L(Z; 0, I)∥F ≤ (1 + δ) δ∥Z∥F + √ + 2δ. (50) K̄n Evaluating at Z = Z1 , using ∥Z1 ∥F ≤ ∥Z0 ∥F + ∥Z1 − Z0 ∥F , and substituting into (45): ∥S∥F √ µ0 − (1 + δ)δ ∥Z1 − Z0 ∥F ≤ (1 + δ) δ ∥Z0 ∥F + √ + 2δ. (51) K̄n Set η0 := min(1/2, µ0 /3) ∈ (0, 1/2]. For any δ ≤ η0 we have 1 + δ ≤ 3/2 and (1 + δ)δ ≤ 32 δ ≤ 32 · µ30 = µ20 ,
√ √ so µ0 − (1 + δ)δ ≥ µ0 /2 > 0. Dividing through and using 1 + δ ≤ 3/2, 2δ ≤ 2δ (1 + ∥Z0 ∥F ), C1 ∥Z1 − Z0 ∥F ≤ ∥S∥F + δ 1 + ∥Z0 ∥F , (52) µ0 √ √ where C1 is an absolute constant absorbing the factors 2, 3/ K̄n, 2 from the previous display. By Lemma D.5 below, there exist thresholds δ0′ ≤ η0 and s0 ≤ 1 such that rank(Z1 ) ≤ K̄ ≤ r whenever δ ≤ δ0′ and ∥S∥F ≤ s0 . Choose the theorem’s threshold δ0 := δ0′ . Under the joint conditions in the statement, the rank constraint is therefore non-binding, so B ∗ Ã∗ = Z1 and B ∗ A∗ = Z1 Q⊤ . Finally, we bound ∥Bλ∗ A∗λ − Z0 Xft⊤ ∥F . From the reformulation above, Bλ∗ A∗λ = Z1 Q⊤ . Using Xft = QR, hence Xft⊤ = RQ⊤ , we obtain Z0 Xft⊤ = Z0 R Q⊤ , so Bλ∗ A∗λ − Z0 Xft⊤ F = (Z1 − Z0 R) Q⊤ F (since Q⊤ Q = I)
= Z1 − Z 0 R F ≤ ∥Z1 − Z0 ∥F + Z0 (I − R) F ≤ ∥Z1 − Z0 ∥F + δ ∥Z0 ∥F .
Combining with (52) and using δ ∥Z0 ∥F ≤ δ (1 + ∥Z0 ∥F ), C1 Bλ∗ A∗λ − Z0 Xft⊤ F ≤ ∥S∥F + δ (1 + ∥Z0 ∥F ) + δ (1 + ∥Z0 ∥F ) µ0 C1 + µ0 ≤ ∥S∥F + δ (1 + ∥Z0 ∥F ) . µ0
(53)
(54) (55)
Setting C0 := C1 + µ0 (which depends only on λ, K, K̄, n, ∥Z0 ∥∗ , as required) gives (33). Lemma D.5 (Rank stability of the unconstrained minimizer). Adopt the notation from the proof of Theorem D.2. Let Zλ∗ (S̄, R̄) denote the unique unconstrained minimizer of Φ(·; S̄, R̄) = L(·; S̄, R̄) + λ∥ · ∥∗ over RK×K̄n (Lemma G.6), and write Z0 := Zλ∗ (0, I). There exist constants δ0′ ∈ (0, η0 ] and s0 ∈ (0, 1], depending on λ, K, K̄, n, µ0 , C1 , ∥Z0 ∥∗ but not on ϵ1 , ϵ2 , such that whenever δ ≤ δ0′ and ∥S∥F ≤ s0 , rank Zλ∗ (S, R) ≤ K̄ . Proof. Write Z1 := Zλ∗ (S, R) and Gi := −∇L(Zi ; S̄i , R̄i )/λ for i ∈ {0, 1}, with (S̄0 , R̄0 ) = (0, I) and (S̄1 , R̄1 ) = (S, R). By the within-class permutation argument in the proof of Lemma D.2, Z0 = V ⊗ 1⊤ n for some V ∈ RK×K̄ . PK̄ Consequently, σ(Z0 e(c−1)n+j ) = σ(V:,c ) =: pc depends only on c. Letting D := c=1 (pc − K×K̄ yc ) e⊤ , c ∈R ∇L(Z0 ; 0, I) =
K̄ n X 1 X 1 (pc − yc ) e⊤ D ⊗ 1⊤ n , (c−1)n+j = K̄n c=1 K̄n j=1
28
(56)
so rank ∇L(Z0 ; 0, I) ≤ rank(D) ≤ K̄, and σi (G0 ) = 0
for all i > K̄ .
(57)
Then, we study the first-order optimality condition for the unconstrained convex problem reads G1 ∈ ∂∥Z1 ∥∗ . Letting Z1 = U1 Σ1 V1⊤ be a compact SVD of rank r1 := rank(Z1 ), the standard subdifferential characterization of the nuclear norm [Watson, 1992] gives G1 = U1 V1⊤ + W with U1⊤ W = 0, W V1 = 0, and ∥W ∥op ≤ 1. Since U1 V1⊤ and W have orthogonal column and row spaces, their singular values combine: σi (G1 ) = 1 for i ≤ r1 , and σi (G1 ) = σi−r1 (W ) ≤ 1 for i > r1 . Applying Weyl’s inequality for singular values to G1 and G0 , together with (57),
σK̄+1 (G1 ) ≤ σK̄+1 (G0 ) + ∥G1 − G0 ∥op = ∥G1 − G0 ∥op ≤ ∥G1 − G0 ∥F .
(58)
Next, based on the previous analysis, we bound the difference between the gradients. Decompose ∇L(Z1 ; S, R) − ∇L(Z0 ; 0, I) = ∇L(Z1 ; S, R) − ∇L(Z1 ; 0, I) + ∇L(Z1 ; 0, I) − ∇L(Z0 ; 0, I) . {z } | {z } | =:(I)
=:(II)
The bound (59) on (I) follows from the gradient calculation in the proof of Theorem D.2 (the display preceding (52)): for δ ≤ η0 , ∥S∥F √ + 2δ. (59) ∥(I)∥F ≤ (1 + δ) δ∥Z1 ∥F + √ K̄n For (II), the softmax map σ : RK → ∆K−1 has Jacobian diag(p) − pp⊤ with operator norm at most 1, and is therefore 1-Lipschitz in ℓ2 . Since {e(c−1)n+j }c,j is an orthonormal basis of RK̄n , ∥(II)∥2F =
∥Z1 − Z0 ∥2F 1 X 2 σ(Z1 e(c−1)n+j ) − σ(Z0 e(c−1)n+j ) 2 ≤ . 2 (K̄n) c,j (K̄n)2
(60)
1 By (52), ∥Z1 −Z0 ∥F ≤ C µ0 ∥S∥F +δ(1+∥Z0 ∥F ) . Combined with ∥Z1 ∥F ≤ ∥Z0 ∥F +∥Z1 −Z0 ∥F and restricting to δ ≤ η0 and ∥S∥F ≤ 1, there exists a constant √ 0 ∥F ) 1 √1 , + 2 + C1 (1+∥Z C2 := (1 + η0 ) ∥Z0 ∥F + C µ0 (1 + ∥Z0 ∥F ) + µ0 K̄n K̄n
depending only on λ, K, K̄, n, µ0 , C1 , ∥Z0 ∥∗ , such that ∥∇L(Z1 ; S, R) − ∇L(Z0 ; 0, I)∥F ≤ C2 (δ + ∥S∥F ) .
(61)
Finally, we use the above bounds to establish a condition under which the rank of Z1 is bounded. Set λ λ δ0′ := min η0 , 4C , s0 := min 1, 4C . 2 2 For δ ≤ δ0′ and ∥S∥F ≤ s0 , ∥G1 − G0 ∥F =
1 C2 (δ0′ + s0 ) 1 ∥∇L(Z1 ; S, R) − ∇L(Z0 ; 0, I)∥F ≤ ≤ < 1. λ λ 2
Combined with (58), σK̄+1 (G1 ) < 1. Since at most K̄ singular values of G1 can equal 1 by Step 2, we conclude rank(Z1 ) ≤ K̄.
E
Proof of Theorem 3.2 and Corollary 3.1
In this section, we first present the proofs of Theorem 3.2 and Corollary 3.1. Then, under additional smallness assumptions on ϵ1 , ϵ2 , we show that the same conclusions still hold, with additional error terms that depend on ϵ1 , ϵ2 . 29
E.1
Proof of Theorem 3.2
λ For convenience, we will first define the following notations. Let WLoRA = Wpre + Bλ∗ A∗λ , and define the following shorthand for margins as: γpre = γ(Wpre ; Dpre ), γft,λ = γ(Bλ∗ A∗λ ; Dft ), and λ γλ = γ(WLoRA ; Dpre ∪ Dft ). Additionally, given an K̄-class max-margin classifier Wft∗ ∈ RK̄×d pad on the fine-tuning data, let γft = γ(([Wft∗ ; 0(K−K̄)×d ]); Dft ). When K̄ < K this is in general a lower bound on maxW ∈RK×d γ(W ; Dft ), with equality iff K̄ = K. In the balanced case K̄ = K, pad ∗ γft = γft as defined in the main theorem.
With these definitions in place, we restate Theorem 3.2 in expanded form covering the general K̄ ≤ K setting. The expanded version specifies the closed-form values of Θλ and γft,λ in three regimes when K̄ < K. In the balanced case K̄ = K, the intermediate and low-penalty regimes coincide in their ETF geometry and margin formulas, recovering the two-regime statement √of Theorem 3.2. More precisely, λcrit = 0, so the intermediate formula holds for every 0 < λ < 1/(K n), and the limit λ → 0+ retains the same ETF geometry. Theorem E.1 (Detailed version of Theorem 3.2). Adopt the setup of Theorem 3.1 and let Θλ := λ ∥Bλ∗ A∗λ ∥F . The normalized margins of WLoRA on the pre-training and fine-tuning data are ρpre λ γ WLoRA ; Dpre = γpre q , Θ2λ + ρ2pre
Θλ λ γ WLoRA ; Dft = γft,λ q , Θ2λ + ρ2pre
(62)
λ which yield the closed-form Adapt(λ) and Forget(λ) in (13) via Adapt(λ) = γ(WLoRA ; Dft ) λ (since γ(Wpre ; Dft ) = 0 in the strict-orthogonal regime) and Forget(λ) = γpre − γ(WLoRA ; Dpre ). Moreover, Θλ and γft,λ take the following values: 1 (i) High–penalty regime λ ≥ K̄ √ : Θλ = γft,λ = 0, and hence Adapt(λ) = Forget(λ) = 0. n 1 (ii) Intermediate regime λcrit < λ < K̄ √ : Θλ = √ρλ n
K̄−1
pad , γft,λ = γft , and Θλ is a strictly
decreasing function of λ. Both Adapt(λ) and Forget(λ) are therefore strictly decreasing in λ on this regime. (iii) Low–penalty regime 0 < λ ≤ λcrit : q Θλ = nK̄a2λ + nK̄(K̄ − 1)b2λ + nK̄(K − K̄)c2λ ,
γft,λ =
aλ + cλ . Θλ
Remark E.1. Full fine-tuning as an alternative method. While our work focuses on LoRA, it is instructive to briefly contrast it with the more conventional strategy of full fine-tuning. Full fine-tuning updates all parameters of the pretrained model, which is considerably less efficient in both computation and storage, whereas LoRA achieves adaptation through a compact low-rank parameterization. In the linear classification setting, the two approaches correspond to the following regularized objectives: min L(Wpre + BA; Dft ) + λ2 ∥B∥2F + ∥A∥2F , LoRA objective , (63) B,A
min L(W ; Dft ) + λ2 ∥W − Wpre ∥2F ,
Full fine-tuning objective .
W
(64)
Beyond efficiency, the two formulations induce fundamentally different (implicit) biases. By exploiting the variational form of the nuclear norm [Recht et al., 2010], one can show that for any solution λ (B ∗ , A∗ ) of (63), the induced update WLoRA is equivalently the solution of min
W,rank(W −Wpre )≤r
L(W ; Dft ) + λ∥W − Wpre ∥∗ ,
Implicit bias of LoRA fine-tuning , (65)
which highlights LoRA’s connection to nuclear-norm regularization under rank constraints. We refer the readers to Jang et al. [2024] for the proof of the argument. Understanding the consequences of this distinction between nuclear norm regularization and Frobenius norm regularization remains an open direction for future work. Importantly, our goal is not to compare LoRA and full fine-tuning, but to rigorously analyze why LoRA exhibits reduced forgetting and to provide principled guidance for selecting regularization parameters in adapter-based fine-tuning. 30
λ Proof. Our key observation is that when one computes the margin of WLoRA on the pre-training and ∗ ∗ fine-tuning datasets, only Wpre or Bλ Aλ is activated. This is because by Theorem 3.1, the product of the optimal LoRA adapters lies in the span of fine-tuning data, and by Proposition G.1 together with Assumption 2.1, Wpre lies in the span of pre-training data. Thus, under Assumption 2.1, Bλ∗ A∗λ x = 0 if x ∈ Dpre , and Wpre x = 0 if x ∈ Dft . In particular, γ(Wpre ; Dft ) = 0, so Adapt(λ) = λ γ(WLoRA ; Dft ). Before proving that the margins take the structures shown in Theorem E.1, we introduce the following notation. Let Wpre = [w1 , . . . , wK ]⊤ and Bλ∗ A∗λ = [δwλ,1 , · · · , δwλ,K ]⊤ . λ Now, when we compute the margin of WLoRA on pre-training data, one has λ γ(WLoRA ; Dpre ) =
min(xi,c ,yc )∈Dpre (wc + δλ,c )⊤ x − maxi̸=y (wi + δλ,i )⊤ x λ ∥WLoRA ∥F
min(xi,c ,yc )∈Dpre wc⊤ x − maxi̸=y wi⊤ x ∥Wpre ∥F · λ ∥Wpre ∥F ∥WLoRA ∥F ρpre = γpre · q . ρ2pre + ∥Bλ∗ A∗λ ∥2F
=
Then, for the fine-tuning data, one has min(xi,c ,yc )∈Dft (wc + δλ,c )⊤ x − maxi̸=y (wi + δλ,i )⊤ x λ ∥WLoRA ∥F ∗ ∗ C(Bλ Aλ ; Dft ) =q , ρ2pre + ∥Bλ∗ A∗λ ∥2F
λ γ(WLoRA ; Dft ) =
∥Bλ∗ A∗λ ∥F . = γft,λ · q ρ2pre + ∥Bλ∗ A∗λ ∥2F The last equality also holds when Bλ∗ A∗λ = 0 by the convention γ(0; D) = 0. These are exactly the formulas in (62) with Θλ = ∥Bλ∗ A∗λ ∥F , and substituting them into the definitions of Adapt(λ) and Forget(λ) recovers (13). It remains to compute ∥Bλ∗ A∗λ ∥F in each regime. High-penalty regime. In this regime, Bλ∗ A∗λ = 0, so ∥Bλ∗ A∗λ ∥F = 0. Intermediate regime. In the intermediate regime, one has ρλ MK̄ ⊤ ⊗ 1 Xft⊤ , Bλ∗ A∗λ = p n 0 (K− K̄)× K̄ K̄n(K̄ − 1) and one can compute its norm as follows K̄ 1 ρ2λ ⊤ ⊤ 2 ∗ ∗ 2 · (IK̄ − 1K̄ 1K̄ ) ⊗ 1⊤ ∥Bλ Aλ ∥F = n Xft F K̄n(K̄ − 1) K̄ − 1 K̄ ρ2λ K̄ K̄ − 1 2 (K̄ − 1)n = · · K̄ n · ( ) + K̄n(K̄ − 1) K̄ − 1 K̄ K̄ 2 2 ρλ = . K̄ − 1 Thus, Θλ = ∥Bλ∗ A∗λ ∥F = √ρλ .
(66)
K̄−1
Low-penalty regime. In this regime, Bλ∗ A∗λ takes the following form aλ + bλ IK̄ − bλ 1K̄ 1⊤K̄ ∗ ∗ ⊤ B λ Aλ = ⊗ 1n Xft⊤ , −cλ 1K−K̄ 1⊤K̄ and its Frobenius norm is ∥Bλ∗ A∗λ ∥F = =
√ √
aλ + bλ IK̄ − bλ 1K̄ 1⊤K̄ −cλ 1K−K̄ 1⊤K̄ F
q
K̄a2λ + K̄(K̄ − 1)b2λ + (K − K̄)K̄c2λ .
n n·
31
(67)
For any sample x̄c,j ∈ Dft in class c ≤ K̄, the score on the correct class is aλ , the score on any other class k ≤ K̄, k ̸= c is −bλ , and the score on any class k > K̄ is −cλ . Hence the per-sample margin is aλ − max(−bλ , −cp λ ) = aλ + min(bλ , cλ ). By the defining equation of x0 in Lemma D.4, gb (x0 )/gc (x0 ) = 1/( K/(K − K̄) + 1) < 1, so log gb (x0 ) < log gc (x0 ). Combined with bλ = − log gb (x0 ) and cλ = − log gc (x0 ), this gives bλ > cλ , so min(bλ , cλ ) = cλ and the unnormalized fine-tuning margin equals aλ + cλ . Dividing by Θλ = ∥Bλ∗ A∗λ ∥F yields γft,λ = (aλ + cλ )/Θλ . E.2
Proof of Corollary 3.1
Proof. The first identity in Corollary 3.1, λ γ(WLoRA ; Dpre ∪ Dft ) = min γpre − Forget(λ), Adapt(λ) , λ follows from the definition of the union margin together with γ(WLoRA ; Dpre ) = γpre − Forget(λ) λ and γ(WLoRA ; Dft ) = Adapt(λ) from Theorem 3.2. It remains to maximize this minimum over λ. √ We work in the balanced setting K̄ = K of Corollary 3.1. In the high-penalty regime (λ ≥√1/(K n)), Θλ = 0 and so Adapt(λ) = 0, which gives a union margin of 0. Every 0 < λ < 1/(K n) gives a positive union margin, so the optimum lies in this interval. ∗ On this interval, γft,λ = γft is constant. By the balanced-case solution in Appendix D, Θλ decreases √ continuously and strictly from +∞ to 0 as λ increases from 0 to 1/(K n). From (62), the pretraining margin is strictly decreasing in Θλ and the fine-tuning margin is strictly increasing in Θλ . Their minimum is therefore uniquely maximized where they are equal:
γpre q
ρpre
ρpre γpre Θλ ∗ q . = γft ⇐⇒ Θλ = Θ∗ := ∗ γft Θ2λ + ρ2pre Θ2λ + ρ2pre
√ Since 0 < Θ∗ < ∞, there is a unique λ∗ ∈ (0, 1/(K n)) with Θλ∗ = Θ∗ . No additional balancing ∗ condition is needed. Substituting Θ into (62) gives −1/2 ∗ γpre γft 1 1 λ∗ γ(WLoRA ; Dpre ∪ Dft ) = q = + . ∗ )2 2 (γft γpre 2 + (γ ∗ )2 γpre ft
E.3
Proof of General Version
In this subsection we present the general version of Theorem 3.2: under the near-orthogonal regime λ in Assumption 2.1, the normalized margins of WLoRA on pre-training, fine-tuning, and combined data remain close to their strict-orthogonal closed-form values from Theorem E.1, with deviations controlled by the perturbation error Eλ + ϵ2 defined below. Notation. We adopt the notation of Theorem D.2: G, R, Q, S, δ, δ0 , s0 , µ0 , C0 , and Zλ∗ (S̄, R̄), with the key bound (33). Additionally, write (0)
(0)
Θλ := ∥Zλ∗ (0, I)∥F ,
γft,λ := γft,λ ϵ1 =ϵ2 =0 ,
(68)
for the strict-orthogonal adapter Frobenius norm and the strict-orthogonal fine-tuning margin from (0) (0) Theorem E.1. (When Xft⊤ Xft = I, Θλ = ∥Bλ∗ A∗λ ∥F and γft,λ = γft,λ .) Set Eλ :=
C0 ∥S∥F + δ (1 + ∥Zλ∗ (0, I)∥F ) µ0
(the bound in (33)) .
(69)
The construction C0 = C1 + µ0 in the proof of Theorem D.2 gives C0 /µ0 > 1, so ∥S∥F ≤ Eλ and δ ≤ Eλ . Therefore, ∥S∥F = O(ϵ2 ), and Eλ → 0 as ϵ1 , ϵ2 → 0. Theorem E.2 (General version of Theorem 3.2). Adopt the setup of Theorem D.2 (so δ ≤ δ0 and ∥S∥F ≤ s0 ). Assume additionally that pre-training samples are unit-norm. There exists a constant 32
C > 0, depending on λ, K, K̄, n, ρpre , µ0 , C0 , ∥Zλ∗ (0, I)∥∗ but not on ϵ1 , ϵ2 , such that ρpre λ ≤ C Eλ + ϵ2 , γ WLoRA ; Dpre − γpre q (0) (Θλ )2 + ρ2pre (0) Θλ (0) λ γ WLoRA ; Dft − γft,λ q ≤ C Eλ + ϵ2 . (0) 2 (Θλ ) + ρ2pre
(70)
(71)
λ The corresponding bound on γ(WLoRA ; Dpre ∪ Dft ) = min{·, ·} inherits the same right-hand side. In particular, as Eλ + ϵ2 → 0, the three margins converge to their strict-orthogonal closed-form values from Theorem E.1.
Proof. Throughout the proof, C denotes a positive constant whose value may change line to line, but always depends only on the quantities listed in the theorem statement. We first establish leakage bounds quantifying how much pre-training and fine-tuning components mix in the near-orthogonal regime. Since S = Wpre Xft , for any fine-tuning sample x̄j and any row wk of Wpre , |wk⊤ x̄j | = |Skj | ≤ ∥S∥F ≤ Eλ .
(72)
∗ ∗ For the symmetric direction, write δλ,k := (Bλ∗ A∗λ )⊤ k for the k-th row of Bλ Aλ . By the reformulation ∗ ∗ ∗ ⊤ in the proof of Theorem D.2, Bλ Aλ = Zλ (S, R) Q , so for any unit-norm x ∈ Dpre , ⊤ |δλ,k x| ≤ ∥(Zλ∗ (S, R))k ∥2 ∥Q⊤ x∥2 .
(73) √
Since ∥Q⊤ x∥2 = ∥R−1 Xft⊤ x∥2 ≤ ∥R−1 ∥op ∥Xft⊤ x∥2 , ∥R−1 ∥op √≤ 1/ 1 − δ, and ∥Xft⊤ x∥22 = P ⊤ 2 ⊤ 2 √K̄n ϵ2 ∥(Z ∗ (S, R))k ∥2 . Using λ l |x̄l x| ≤ K̄n ϵ2 by Assumption 2.1(c), we have |δλ,k x| ≤ 1−δ ∗ ∗ ∥Zλ (S, R)∥F ≤ ∥Zλ (0, I)∥F + Eλ from (52), ⊤ |δλ,k x| ≤ C (∥Zλ∗ (0, I)∥F + Eλ ) ϵ2 ≤ C ϵ2 . λ Then, we bound the perturbation of the Frobenius norm ∥WLoRA ∥F from ing,
(74) q
(0)
ρ2pre + (Θλ )2 . Expand-
λ ∥WLoRA ∥2F = ∥Wpre ∥2F + 2 Wpre , Bλ∗ A∗λ + ∥Bλ∗ A∗λ ∥2F .
(75)
Each row of Bλ∗ A∗λ lies in span(Dft ) (the column space of Xft ), so Wpre , Bλ∗ A∗λ
=
X
wk⊤ δλ,k ≤
k
X
∥PXft wk ∥2 ∥(Bλ∗ A∗λ )k ∥2 ,
(76)
k
where PXft is the orthogonal projection onto span(Dft ). The identity Wpre Q = SR−1 gives √ ∥Wpre Q∥F ≤ ∥S∥F / 1 − δ. Thus, Cauchy–Schwarz and Bλ∗ A∗λ = Zλ∗ (S, R)Q⊤ yield Wpre , Bλ∗ A∗λ
≤
∥S∥F ∥Bλ∗ A∗λ ∥F (0) √ ≤ C (Θλ + Eλ ) ∥S∥F . 1−δ (0)
Write ∆λ := Bλ∗ A∗λ . Equation (52) and Q⊤ Q = I give ∥∆λ ∥F − Θλ q ρ2pre + ∥∆λ ∥2F and then using this norm bound yields λ ∥WLoRA ∥F −
q (0) ρ2pre + (Θλ )2 ≤
(77)
≤ Eλ . Comparing first with
2 ⟨Wpre , ∆λ ⟩ q + Eλ ρ2pre + ∥∆λ ∥2F
λ ∥WLoRA ∥F +
2∥S∥F ≤√ + Eλ ≤ C (Eλ + ϵ2 ) . 1−δ
(78)
λ Next, we bound the perturbation of the unnormalized margins C(WLoRA ; ·) on each dataset. For pre-training data (x, yc ) ∈ Dpre and k ̸= c,
[(wc + δλ,c ) − (wk + δλ,k )]⊤ x = (wc − wk )⊤ x + (δλ,c − δλ,k )⊤ x . 33
(79)
Taking the minimum over (x, c, k) and combining min(wc − wk )⊤ x = C(Wpre ; Dpre ) = ρpre γpre ⊤ ⊤ (definition of γpre ) with |δλ,c x − δλ,k x| ≤ 2 Cϵ2 from (74), λ C(WLoRA ; Dpre ) − ρpre γpre ≤ C ϵ2 .
(80)
For fine-tuning data (x̄, yc ) ∈ Dft and k ̸= c, [(wc + δλ,c ) − (wk + δλ,k )]⊤ x̄ = (δλ,c − δλ,k )⊤ x̄ + (wc − wk )⊤ x̄ .
(81)
The unnormalized fine-tuning margin is 2-Lipschitz in the F-norm of the classifier matrix (since for any W, W ′ ∈ RK×d and any unit-norm x̄, |((W − W ′ )c − (W − W ′ )k )⊤ x̄| ≤ 2∥W − W ′ ∥F ), so by Theorem D.2, C(Bλ∗ A∗λ ; Dft ) − C(Zλ∗ (0, I)Xft⊤ ; Dft ) ≤ 2 Eλ .
(82)
We further compare C(Zλ∗ (0, I)Xft⊤ ; Dft ) — the unnormalized margin of the strict-orthogonal classi(0) (0) fier evaluated on the actual (near-orthogonal) data — with its strict-orthogonal value Θλ γft,λ . For any sample x̄c′ ,j ′ ∈ Dft , Xft⊤ x̄c′ ,j ′ = e(c′ −1)n+j ′ + rc′ ,j ′ ,
rc′ ,j ′ := Xft⊤ x̄c′ ,j ′ − e(c′ −1)n+j ′ ,
(83)
′′ ′′ ′ ′ where the ((c′′ − 1)n + j ′′ )-th entry of rc′ ,j ′ is x̄⊤ c′′ ,j ′′ x̄c′ ,j ′ for (c , j ) ̸= (c , j ) and 0 otherwise. By Assumption 2.1(b), X ∥rc′ ,j ′ ∥22 ≤ ϵ21 = (K̄n − 1) ϵ21 , (84) (c′′ ,j ′′ )̸=(c′ ,j ′ )
hence ∥rc′ ,j ′ ∥2 ≤
√
√ K̄n − 1 ϵ1 = δ/ K̄n − 1. For any class k ∈ [K],
(Zλ∗ (0, I)Xft⊤ x̄c′ ,j ′ )k − (Zλ∗ (0, I))k,(c′ −1)n+j ′ = (Zλ∗ (0, I))k rc′ ,j ′ ≤ ∥(Zλ∗ (0, I))k ∥2 ∥rc′ ,j ′ ∥2 , (85) (0)
where (Zλ∗ (0, I))k denotes the k-th row. Since maxk ∥(Zλ∗ (0, I))k ∥2 ≤ ∥Zλ∗ (0, I)∥F = Θλ , the difference of two-class scores satisfies [(Zλ∗ (0, I)Xft⊤ x̄c′ ,j ′ )c − (Zλ∗ (0, I)Xft⊤ x̄c′ ,j ′ )k ] − [(Zλ∗ (0, I))c,(c′ −1)n+j ′ − (Zλ∗ (0, I))k,(c′ −1)n+j ′ ] (0)
2Θ δ ≤√ λ K̄n − 1
(86)
for every x̄ ∈ Dft and every pair c ̸= k. Setting c = c′ and taking the minimum over c′ ∈ [K̄], j ′ ∈ [n], and k ∈ [K] \ {c′ }, the 1-Lipschitz property of min gives (0) ∗ 2 Θλ δ ∗ √ ′ ′ ′ ′ ′ C(Zλ∗ (0, I)Xft⊤ ; Dft ) − ′ min (Z (0, I)) − (Z (0, I)) ≤ . c ,(c −1)n+j k,(c −1)n+j λ λ c ,j ′ ,k̸=c′ K̄n − 1 (87) (0)
(0)
The displayed minimum is precisely the strict-orthogonal unnormalized margin Θλ γft,λ (it is the minimum-margin definition applied to Zλ∗ (0, I) on a one-hot K̄n-dimensional input set, which is what Theorem E.1 characterizes). Hence (0)
2Θ (0) (0) δ ≤ Cδ. C(Zλ∗ (0, I)Xft⊤ ; Dft ) − Θλ γft,λ ≤ √ λ K̄n − 1
(88)
The leakage from the pre-training rows on Dft contributes at most 2∥S∥F to the per-pair score difference via (72), so taking the min, λ C(WLoRA ; Dft ) − C(Bλ∗ A∗λ ; Dft ) ≤ 2∥S∥F ≤ 2Eλ .
(89)
Combining with (82) and (88) via the triangle inequality (and noting δ ≤ (µ0 /C0 ) Eλ by definition of Eλ , so the δ from (88) is absorbed into C Eλ ), (0) (0)
λ C(WLoRA ; Dft ) − Θλ γft,λ ≤ C (Eλ + ϵ2 ) .
34
(90)
√ Finally, we combine the bounds. q For a dataset of unit-norm inputs, |γ(W ; D)| ≤ 2 whenever W ̸= 0. (0)
λ λ Let a := ∥WLoRA ∥F , b := ρ2pre + (Θλ )2 , u := C(WLoRA ; D), and let u0 be the corresponding strict-orthogonal unnormalized margin. Then √ u − u0 u u0 |u − u0 | + 2 |a − b| ub−a = ≤ − + . (91) a b b a b b
Since b ≥ ρpre > 0, (78) combined with (80) gives (70) and combined with (90) gives (71). Taking the minimum of the pre-training and fine-tuning margins gives the combined-data bound by the 1-Lipschitz property of min. We now translate Theorem E.2 into perturbation bounds on Adapt(λ) and Forget(λ), and on the optimal-trade-off value of Corollary 3.1. Corollary E.1 (Near-orthogonal bounds on Adapt and Forget). Under the hypotheses of Theorem E.2, with C as there, (0)
Θλ
(0)
Adapt(λ) − γft,λ q Forget(λ) − γpre 1 − q
(0)
(Θλ )2 + ρ2pre ρpre (0)
≤ C (Eλ + ϵ2 ) ,
(92)
≤ C (Eλ + ϵ2 ) .
(93)
(Θλ )2 + ρ2pre
In particular, as Eλ + ϵ2 → 0, both Adapt(λ) and Forget(λ) converge to their strict-orthogonal closed-form values from Theorem E.1. Proof. For the Forget bound, note that γpre = γ(Wpre ; Dpre ) does not depend on ϵ1 , ϵ2 and that λ Forget(λ) = γpre − γ(WLoRA ; Dpre ), so (93) is just (70) with the γpre term absorbed. For the λ Adapt bound, use Adapt(λ) = γ(WLoRA ; Dft ) − γ(Wpre ; Dft ). The leakage bound (72) controls the second term: for any x̄ ∈ Dft and any pair c ̸= k, |(wc − wk )⊤ x̄| ≤ 2∥S∥F , so taking the min over (x̄, c, k) and dividing by ∥Wpre ∥F = ρpre gives |γ(Wpre ; Dft )| ≤ 2∥S∥F /ρpre ≤ 2Eλ /ρpre . Combining with (71) via the triangle inequality yields (92). pad,(0)
Corollary E.2 (Near-orthogonal version of Corollary 3.1). Let γft denote the strict-orthogonal pad,(0) pad reference value of γft . Adopt the hypotheses of Theorem E.2, and set Θ∗ := ρpre γpre /γft . If (0) ∗ ∗ K̄ < K, assume Θ < Θλcrit ; when K̄ = K, no additional balancing condition is needed. Let λ be √ (0) the unique solution of Θλ∗ = Θ∗ in (λcrit , 1/(K̄ n)), and choose a compact subinterval Λ of this open interval containing λ∗ . Writing δ0 (λ), s0 (λ) for the local thresholds in Theorem D.2, require δ ≤ inf δ0 (λ) ,
∥S∥F ≤ inf s0 (λ) .
λ∈Λ
λ∈Λ
Suppose Eλ ≤ Ē for all λ ∈ Λ, and the constant C in Theorem E.2 can be taken uniform on Λ with value C̄. Then 1 1 −1/2 λ max γ(WLoRA ; Dpre ∪ Dft ) − + ≤ C̄ (Ē + ϵ2 ) . (94) 2 pad,(0) 2 λ∈Λ γpre (γ ) ft
In particular, as Ē + ϵ2 → 0 (with Λ fixed), the maximum converges to the corresponding strictorthogonal intermediate-regime balancing value, which reduces to the value in Corollary 3.1 when K̄ = K. Proof. By Theorem E.2 applied uniformly on Λ, together with the 1-Lipschitz property of min, λ γ(WLoRA ; Dpre ∪ Dft ) − γ (0) (λ) ≤ C̄ (Ē + ϵ2 ) for every λ ∈ Λ , q q (0) (0) (0) (0) where γ (0) (λ) := min γpre ρpre / (Θλ )2 + ρ2pre , γft,λ Θλ / (Θλ )2 + ρ2pre is the strictorthogonal union margin. Taking supλ∈Λ on both sides and using | supΛ f − supΛ g| ≤ supΛ |f − g|, λ max γ(WLoRA ; Dpre ∪ Dft ) − max γ (0) (λ) ≤ C̄ (Ē + ϵ2 ) . λ∈Λ
λ∈Λ
35
(0)
pad,(0)
On Λ, γft,λ = γft
(0)
and Θλ is strictly decreasing in λ. The pre-training term in γ (0) is strictly
(0)
decreasing in Θλ , while the fine-tuning term is strictly increasing. Their minimum is therefore (0) uniquely maximized when Θλ = Θ∗ , which occurs at λ∗ ∈ Λ. Hence maxλ∈Λ γ (0) (λ) = γ (0) (λ∗ ) = pad,(0) 2 2 (1/(γft ) + 1/γpre )−1/2 , proving (94) for both K̄ = K and K̄ < K. Remark E.2 (Explicit bounds on Ē and C̄). The constants in Corollary E.2 can be chosen with (0) (0) the following explicit upper bounds. Set Ē := supλ∈Λ Eλ and Θmax := maxλ∈Λ Θλ . Since a := min Λ > 0, the proof of Theorem D.2 uses radii bounded by (log K + 2)/a. Thus µ0 (λ) can be chosen uniformly bounded below by a positive constant and C0 (λ) uniformly bounded above. Write κΛ := supλ∈Λ C0 (λ)/µ0 (λ) < ∞. Bound on Ē. For the conversion to an epsilon-only bound, assume the uniform positive singular-value lower bound discussed in Remark D.2. Combining p the definition of Eλ in (69) with δ = (K̄n − 1) ϵ1 from Theorem D.2 and the explicit bound ∥S∥F ≤ K̄n Npre ρpre ϵ2 /σmin (Xpre ) from that remark, p K̄n Npre ρpre (0) (95) ϵ2 + (K̄n − 1) 1 + Θmax ϵ1 , Ē ≤ κΛ σmin (Xpre ) which is linear in ϵ1 and ϵ2 . Bound on C̄. The constant C in the proof of Theorem E.2 is built from three sources: (i) the direct leakage bound (72) has coefficient 1 √ in ∥S∥F , the projection bound (77) con√ tributes Lproj := 2, and (74) contributes Lft := 2K̄n, uniformly since δ ≤ 1/2; √ (ii) Cauchy–Schwarz over K classes contributes a factor K; √ the unit-norm input bound |γ(W ; D)| ≤ 2 and (91) contribute a factor at most (1 + (iii) √ 2)/ρpre when converting numerator and norm errors to normalized-margin errors. Using Eλ ϵ2 ≤ Eλ in (74) and absorbing universal numerical factors into C∗ > 0, √ C∗ K (1 + Lproj + Lft ) C̄ ≤ 1 + ρpre + Θ(0) (96) max . ρpre Under the stated conditioning requirement, substituting (95) and (96) into the right-hand side of (94) yields a fully explicit linear-in-(ϵ1 , ϵ2 ) bound on the gap between the near-orthogonal optimum and the strict-orthogonal value.
F
Proof of Theorem 3.3
In this section, we first present the proof of Theorem 3.3. Then, under additional smallness assumptions on ϵ1 , ϵ2 , we show that the same conclusions still hold, with additional error terms that depend on ϵ1 , ϵ2 . F.1
Proof of Theorem 3.3
Proof. For α ∈ RT≥0 , following the same argument as in Appendix E, one can show that the margin of linear classifier WLoRA for each task is ρpre γ WLoRA (α); Dpre = γpre q , (97) P T ρ2pre + j=1 αj2 Θ2λ,j αi Θλ,i γ WLoRA (α); Di = γi q , PT ρ2pre + j=1 αj2 Θ2λ,j
i = 1, . . . , T.
Then, our goal is to solve the following optimization problem αi Θλ,i ρpre q , min γ max min γpre q i PT PT α1 ,··· ,αT ≥0 i≤T ρ2pre + j=1 αj2 Θ2λ,j ρ2pre + j=1 αj2 Θ2λ,j 36
(98)
For convenience, we introduce the following notation xi = αi Θλ,i ≥ 0, i ∈ [T ], then the above optimization problem can be rewritten as ρpre γpre γi xi max min q , min q . (99) PT PT x1 ,··· ,xT ≥0 i∈[T ] ρ2pre + j=1 x2j ρ2pre + j=1 x2j q PT γ ρ Let S := ρ2pre + j=1 x2j and t := min{ γiSxi , preS pre }, then Problem 99 is equivalent to max
t,S,x1 ,··· ,xT
s.t.
t
(100)
xi ≥ 0, γi xi ≥ tS, γpre ρpre ≥ tS , T X
x2i + ρ2pre = S 2 ,
i ∈ [T ]
S > 0.
i=1
We first claim at optimum, the inequalities w.r.t. xi will be tight, i.e., xi = tS γi , ∀i ∈ [T ]. In this case, one can see that X T T X 1 1 2 2 2 2 2 S = ρpre + xj ≥ S t · + 2 . γ2 γpre j=1 i=1 i Thus, the optimal value of the objective is t ≤ q
1
PT
, and the equality is achieved under
1 j=1 γj2 ρpre γpre the condition γi xi = γpre ρpre , which is equivalent to αi = γi Θλ,i , i = 1, . . . , T . 1
2 γpre
+
Finally, we show that at the optimum of Problem 100, both the adapter and pre-training inequalities are tight. Case 1: some adapter inequality is slack. Assume for the optimal solution (t∗ , S ∗ , x∗ ) there exists j ∈ [T ] such that γj x∗j > t∗ S ∗ . Decrease x∗j slightly to x∗j − ϵ with ϵ > 0. The new S is s X S̃ = ρ2pre + (x∗i )2 + (x∗j − ϵ)2 < S ∗ . i̸=j
For ϵ sufficiently small, every other adapter inequality remains satisfied (since S̃ < S ∗ ), the pretraining inequality remains satisfied (γpre ρpre ≥ t∗ S ∗ > t∗ S̃), and γj (x∗j − ϵ) > t∗ S̃ by continuity. Therefore one can increase t∗ until one inequality becomes tight, raising the objective and contradicting optimality. Case 2: all adapter inequalities are tight but the pre-training inequality is slack. Assume γi x∗i = t∗ S ∗ for every i ∈ [T ] but γpre ρpre > t∗ S ∗ . Take x̃i := cx∗i for some c > 1, leaving ρpre unchanged. Then s q X S̃ = ρ2pre + c2 (x∗i )2 = c2 (S ∗ )2 − ρ2pre (c2 − 1) < c S ∗ . i
Setting t̃ := ct∗ S ∗ /S̃ keeps all adapter inequalities tight (since γi x̃i = cγi x∗i = ct∗ S ∗ = t̃S̃), and t̃ > t∗ from S̃ < cS ∗ . For c close enough to 1, the pre-training inequality γpre ρpre ≥ t̃S̃ = ct∗ S ∗ remains satisfied by continuity. Hence (t̃, S̃, x̃) is feasible with t̃ > t∗ , again contradicting optimality. Combining the two cases, all inequalities must be tight at any optimum. F.2
Proof of General Version
In this subsection we present the general version of Theorem 3.3: under a near-orthogonal multi-task assumption (defined below), the margins of the merged model WLoRA (α) on the pre-training data and on each fine-tuning task remain close to the strict-orthogonal closed-form values from Theorem 3.3, 37
with deviations controlled by the perturbation error E defined below. Consequently, the optimal mixing coefficients of Theorem 3.3 continue to (approximately) maximize the merged margin. Near-orthogonal multi-task assumption. Let Xi ∈ Rd×K̄i ni denote the data matrix of task i ∈ [T ]. We replace Assumption 3.1 by the following near-orthogonal version: there exist ϵ1 , ϵ2 ∈ [0, 1) such that ST (a) Every fine-tuning sample has unit norm: ∥x̄∥2 = 1 for every x̄ ∈ i=1 Di . (b) Within-task: for each i ∈ [T ] and each pair of distinct x̄, x̄′ ∈ Di , |x̄⊤ x̄′ | ≤ ϵ1 . ′ (c) Cross-task and pre-training: for S each i ̸= j in [T ], every⊤x̄ ∈ Di and x̄ ∈ Dj satisfy ⊤ ′ |x̄ x̄ | ≤ ϵ2 ; and for every x̄ ∈ i Di and every x ∈ Dpre , |x̄ x| ≤ ϵ2 . The strict-orthogonal Assumption 3.1 is recovered at ϵ1 = ϵ2 = 0. Notation. For each task i ∈ [T ] we adopt the per-task analogues of the notation of Theorem D.2: 1/2 Gi := Xi⊤ Xi , Ri := Gi , Qi := Xi Ri−1 , Si := Wpre Xi , δi := (K̄i ni − 1)ϵ1 , and the unique ∗ optimum Zλ,i (S̄, R̄) of Φi (Z; S̄, R̄) defined as in Theorem D.2 but with Xi , K̄i , ni in place of Xft , K̄, n. We take δ0 , s0 , µ0 as the minima of their per-task counterparts and C0 as the maximum. ∗ By the per-task reformulation, Bi∗ A∗i = Zλ,i (Si , Ri )Q⊤ i , where the rank constraint rank(Z) ≤ r is non-binding for δi , ∥Si ∥F sufficiently small by Lemma D.5 applied per task. Write (0)
∗ Θλ,i := ∥Zλ,i (0, I)∥F ,
(0)
γi := γi ϵ1 =ϵ2 =0 ,
(101) (0)
for the strict-orthogonal per-task adapter Frobenius norm and per-task margin (so Θλ,i = Θλ,i and (0)
γi
= γi from Theorem 3.3 when ϵ1 = ϵ2 = 0). Set Eλ,i :=
C0 (0) ∥Si ∥F + δi (1 + Θλ,i ) , µ0
E := max Eλ,i + ϵ2 . i∈[T ]
(102)
The common constants satisfy C0 /µ0 ≥ 1, so ∥Si ∥F ≤ Eλ,i ≤ E. Under a uniform positive lower bound on σmin (Xpre ), ∥Si ∥F = O(ϵ2 ) uniformly in i (Remark D.2), so E → 0 as ϵ1 , ϵ2 → 0. Theorem F.1 (General version of Theorem 3.3). Adopt the near-orthogonal multi-task assumption above with δi ≤ δ0 and ∥Si ∥F ≤ s0 for every i ∈ [T ], using the common thresholds chosen above. Suppose each task is trained in the intermediate or low-penalty regime, and the pre-training samples have unit norm. There exist constants E0 ∈ (0, 1] and C > 0, depending ∗ on λ, K, {K̄i , ni }Ti=1 , ρpre , µ0 , C0 , {∥Zλ,i (0, I)∥∗ }Ti=1 but not on ϵ1 , ϵ2 or α, such that whenever E ≤ E0 , the following bounds hold uniformly for all nonnegative coefficient vectors α ∈ RT≥0 : γ WLoRA (α); Dpre − q
γpre ρpre ≤ CE , PT 2 (Θ(0) )2 α i=1 i λ,i
(103)
ρ2pre +
(0)
(0)
γj αj Θλ,j ≤ CE , j ∈ [T ] . (104) PT (0) ρ2pre + i=1 αi2 (Θλ,i )2 S Write F (α) := γ(WLoRA (α); Dpre ∪ i Di ) and let F (0) (α) be the minimum of the reference margins displayed above. The 1-Lipschitz property of min gives |F (α) − F (0) (α)| ≤ CE uniformly (0) (0) over α ≥ 0. In particular, the strict-orthogonal optimum αi∗ = ρpre γpre /(γi Θλ,i ) satisfies γ WLoRA (α); Dj − q
0 ≤ sup F (α) − F (α∗ ) ≤ 2CE. α∈RT ≥0
Thus α∗ remains optimal up to an additive O(E) error in achieved margin, and all margins converge uniformly to their strict-orthogonal reference values as E → 0. Proof. Throughout, C denotes a positive constant whose value may change line to line, but always depends only on the quantities listed in the theorem statement. We work with E ≤ 1 and choose E0 ≤ 1 below. 38
(i)
We first establish leakage bounds. Since Si = Wpre Xi , for every task i ∈ [T ], sample x̄j ∈ Di , and row wk of Wpre , (i)
|wk⊤ x̄j | = |(Si )kj | ≤ ∥Si ∥F ≤ Eλ,i .
(105)
∗ ∗ ∗ ∗ ∗ ⊤ For each i, write δλ,i,k := (Bi∗ A∗i )⊤ k for the k-th row of Bi Ai . Using Bi Ai = Zλ,i (Si , Ri )Qi , we
obtain (i) for any unit-norm x ∈ Dpre , ⊤ ∗ |δλ,i,k x| ≤ ∥(Zλ,i (Si , Ri ))k ∥2 ∥Q⊤ (106) i x∥2 ≤ C ϵ2 , p √ (i),⊤ where the last step uses ∥Q⊤ ≤ K̄i ni ϵ2 / 1 − δi (from |x̄l x| ≤ ϵ2 ) and i x∥2 (0) ∗ ∥Zλ,i (Si , Ri )∥F ≤ Θλ,i + Eλ,i ≤ C. (ii) For any x̄ ∈ Dj with j ̸= i, the same argument with Xj in place of {x} gives ⊤ |δλ,i,k x̄| ≤ C ϵ2 ,
(107)
since each entry of Xi⊤ x̄ is bounded by ϵ2 (cross-task assumption). The adapter leakage bounds are O(ϵ2 ) uniformly in i, k, and the pre-trained classifier leakage is controlled by ∥Si ∥F . Then, we bound the perturbation of the merged-model Frobenius norm. Expanding, ∥WLoRA (α)∥2F = ρ2pre +
T X
αi2 ∥Bi∗ A∗i ∥2F + 2
T X
αi Wpre , Bi∗ A∗i +
i=1
i=1
X
αi αj Bi∗ A∗i , Bj∗ A∗j .
i̸=j
(108) The identity Wpre Qi = Si Ri−1 and the same projection argument as in the proof of Theorem E.2 give ∥Si ∥F ∥Bi∗ A∗i ∥F (0) √ ≤ C (Θλ,i + Eλ,i ) ∥Si ∥F . (109) 1 − δi For the cross-task term with i ̸= j, each row (Bi∗ A∗i )k lies in span(Xi ) and (Bj∗ A∗j )k ∈ span(Xj ). √ Writing u ∈ span(Xi ) as u = Xi α with ∥α∥2 ≤ ∥u∥2 /σmin (Ri ) ≤ ∥u∥2 / 1 − δi ≤ C ∥u∥2 (and similarly for v = Xj β), we have u⊤ v = α⊤ Xi⊤ Xj β with each entry of Xi⊤ Xj bounded by ϵ2 in absolute value, hence |u⊤ v| ≤ ∥Xi⊤ Xj ∥op ∥α∥2 ∥β∥2 ≤ C ϵ2 ∥u∥2 ∥v∥2 . Summing this bound over rows k and applying Cauchy–Schwarz, Wpre , Bi∗ A∗i
≤
(0)
Bi∗ A∗i , Bj∗ A∗j
(0)
≤ C ϵ2 ∥Bi∗ A∗i ∥F ∥Bj∗ A∗j ∥F ≤ C ϵ2 (Θλ,i + Eλ,i )(Θλ,j + Eλ,j ) . (110) P (0) Set aα := ∥WLoRA (α)∥F and b2α := ρ2pre + i αi2 (Θλ,i )2 . Combining (109), (110) with the (0)
(0)
per-task bound ∥Bi∗ A∗i ∥F − Θλ,i ≤ Eλ,i + O(δi Θλ,i ) from Theorem D.2 and using E ≤ 1 yields, for some D > 0 independent of α, ϵ1 , ϵ2 , |a2α − b2α | ≤ DE(1 + ∥α∥22 ). Here the linear and mixed coefficient terms are controlled using ∥α∥1 ≤ (0) T ∥α∥22 . The stated regimes ensure Θλ,i > 0 for every i, so (0)
c := min{ρpre , min Θλ,i } > 0, i
√
T ∥α∥2 and ∥α∥21 ≤
b2α ≥ c2 (1 + ∥α∥22 ).
Thus, setting κ := D/c2 , we obtain the uniform relative bound |a2α − b2α | ≤ κE b2α . Choose E0 := min{1, (2κ)
−1
(111)
}. For E ≤ E0 , this gives, uniformly over α ≥ 0,
bα aα ≥ √ > 0, 2
|aα − bα | |a2α − b2α | = ≤ κE. bα bα (aα + bα )
Next, we bound the perturbation of the unnormalized margins on each dataset. For (x, yc ) ∈ Dpre and k ̸= c, decomposing h i ⊤ P P PT wc + i αi δλ,i,c − wk + i αi δλ,i,k x = (wc − wk )⊤ x + i=1 αi (δλ,i,c − δλ,i,k )⊤ x , (112) 39
and applying (106) to each adapter term, C(WLoRA (α); Dpre ) − ρpre γpre ≤ C ∥α∥1 ϵ2 . For (x̄, yc ) ∈ Dj and k ̸= c, X ⊤ · · · x̄ = αj (δλ,j,c − δλ,j,k )⊤ x̄ + αi (δλ,i,c − δλ,i,k )⊤ x̄ + (wc − wk )⊤ x̄ .
(113)
(114)
i̸=j
The first term in (114) is the within-task contribution. Since αj ≥ 0, it can be taken outside the minimum. By the same argument as in the proof of Theorem E.2 (Step 3 there), (0) (0) min(w.r.t. (x̄, c, k)) αj (δλ,j,c − δλ,j,k )⊤ x̄ − αj Θλ,j γj ≤ C |αj | (Eλ,j + δj ). The cross-task adapter terms are bounded via (107): |αi (δλ,i,c − δλ,i,k )⊤ x̄| ≤ 2 C |αi | ϵ2 , and the pre-training leakage on Dj contributes at most 2∥Sj ∥F ≤ 2Eλ,j via (105). Combining via the triangle inequality, (0) (0)
C(WLoRA (α); Dj ) − αj Θλ,j γj
≤ C (1 + ∥α∥1 ) E ,
(115)
where we have absorbed δj into E via δj ≤ (µ0 /C0 )Eλ,j ≤ (µ0 /C0 )E. Finally, fix any dataset D ∈ {Dpre , D1 , . . . , DT } and set uα := C(WLoRA (α); D). Its reference (0) (0) (0) numerator uα is ρpre γpre for Dpre , and αj Θλ,j γj for Dj . Equations (113)–(115) give |uα − (0)
uα | ≤ C(1 + ∥α∥1 )E. Since 1 + ∥α∥1 ≤ bα
√
T +1
p
1 + ∥α∥22
bα
√ ≤
T +1 , c
the numerator √ error divided by bα is uniformly O(E). All inputs have unit norm and aα > 0, so |uα /aα | ≤ 2. Applying the ratio estimate (91) and the relative norm bound above, √ (0) (0) uα uα |uα − uα | + 2 |aα − bα | − ≤ ≤ CE. aα bα bα This proves (103)–(104) uniformly in α. Taking the minimum across datasets gives |F (α) − F (0) (α)| ≤ CE uniformly. For the optimality claim, Theorem 3.3 gives F (0) (α) ≤ F (0) (α∗ ) for every α ≥ 0. Therefore, F (α) ≤ F (0) (α) + CE ≤ F (0) (α∗ ) + CE ≤ F (α∗ ) + 2CE. Taking the supremum over all nonnegative coefficient vectors proves the stated 2CE near-optimality bound.
G
Lemmas
This section first lists the preliminary lemmas (cited from external sources) used throughout the proofs, and then gives full proofs of the paper-specific supporting lemmas. G.1
Preliminary Lemmas
In this subsection, we provide several preliminary lemmas that will be used in the proof. Lemma G.1 (Theorem 3 in Riedel [1992]). Let A ∈ Rl×l with rank(A) < l, and vi , wi , i = 1, 2 be vectors in Rl . Let v1 ∈ M (A), w1 ⊥ M (A), and v2 ∈ M (A∗ ), w2 ⊥ M (A∗ ), where M (A) denotes the range of A. Assume w2 ∥ w1 and wi ̸= 0, i = 1, 2. Let Ω = A + (v1 + w1 )(v2 + w2 )∗ , Then Ω† = A† −
w2 v2∗ A† A† v1 w1∗ w2 w1∗ ∗ † − + (1 + v A v ) · . 1 2 ∥w2 ∥2 ∥w1 ∥2 ∥w1 ∥2 ∥w2 ∥2
We refer the readers to Riedel [1992] for the proof. Lemma G.2 (Variational form of the nuclear norm). For any fixed Z ∈ RK×m , we have ∥Z∥∗ = min
1
Z=BA 2
(∥B∥2F + ∥A∥2F ) .
40
We refer the readers to Recht et al. [2010] for the proof. Lemma G.3. For any Z ∈ RK×m , ∥Z∥∗ =
max
V ∈Rm×K , ∥V ∥op ≤1
Tr(ZV ) .
For any orthogonal projection P ∈ RK×K and any Z ∈ RK×m , ∥P Z∥∗ ≤ ∥P ∥op ∥Z∥∗ ≤ ∥Z∥∗ , Equality ∥P Z∥∗ = ∥Z∥∗ holds if and only if P Z = Z. Moreover, for any two matrices A, B ∈ RK×m , one has min(K,m)
X
min(K,m) ⊤
σi (AB ) ≤
X
i=1
σi (A)σi (B) .
i=1
We refer the readers to Horn and Johnson [2012] for the proof. Lemma G.4 (Berge’s Maximum Theorem). Let X, Θ be topological spaces, f : X × Θ → R be a continuous function on the product X × Θ, and C : Θ → X be a compact-valued correspondence such that C(θ) ̸= ∅ for all θ ∈ Θ. Define the marginal function f ∗ : Θ → R and the set of minimizers C ∗ : Θ → X by f ∗ (θ) = sup{f (x, θ) : x ∈ C(θ)} C ∗ (θ) = arg max{f (x, θ) : x ∈ C(θ)} = {x ∈ C(θ) : f (x; θ) = f ∗ (θ)} . If C is continuous at θ, then the value function f ∗ (θ) is continuous, and the set of maximizers C ∗ (θ) is upper-hemicontinuous with nonempty and compact values. Moreover, if C ∗ (θ) is single-valued, and thus is a continuous function rather than a correspondence. We refer the readers to Sundaram [1996] for the proof. Lemma G.5 (Invariance under Permutation). Suppose X satisfies ΠXΠ⊤ = X for any permutation Π, then X = aI + c11⊤ for any constants a, c ∈ R. We refer the readers to Lemma 10 in Hong and Ling [2023] for the proof. c ,K Proposition G.1 (Representer Theorem for Hard-margin SVM Problem). Let {(xc,i , yc )}ni=1,c=1 be d K mm the dataset with features xc,i ∈ R and class labels yc ∈ R . Then, let W be the solution of the following hard-margin SVM problem, i.e.,
min
W ∈RK×d
2 1 2 ∥W ∥F
s.t.
∀ i ∈ [K], ∀ j ∈ [ni ], ∀ k ̸= i : wi⊤ xi,j ≥ wk⊤ xi,j + 1 ,
i where W = [w1 , · · · , wK ]⊤ . Then, there exists a set of scalars {αi,c,j }K,K,n i=1,c=1,j=1 such that each mm row of W has the following structure
wimm =
nc K X X
αi,c,j xc,j .
c=1 j=1
We refer the readers to Scholkopf and Smola [2018] for the proof. G.2
Proof of Lemma D.1
Proof. By Proposition G.1 and Assumption 2.4, each row of Wpre lies in the span of the pre-training features. Under Assumption 2.1(c) with ϵ2 = 0, every fine-tuning feature is orthogonal to this span, so Wpre Xft = 0 . 41
(116)
Moreover, Assumption 2.1(a)–(b) with ϵ1 = 0 gives Xft⊤ Xft = IK̄n . We apply change of variable as follows: Ã = AXft ∈ Rr×K̄n . K̄
n
K̄
n
K̄
n
K̄
n
1 XX λ ∥B∥2F + ∥A∥2F LCE (yc , (Wpre + BA)xc,j ) + 2 K̄n c=1 j=1 =
λ 1 XX ∥B∥2F + ∥A∥2F LCE yc , Wpre Xft e(c−1)n+j + BAXft e(c−1)n+j + 2 K̄n c=1 j=1
λ 1 XX = ∥B∥2F + ∥AQ∥2F + ∥AQ⊥ ∥2F LCE yc , Wpre Xft e(c−1)n+j + BAQRe(c−1)n+j + 2 K̄n c=1 j=1 =
λ 1 XX ∥B∥2F + ∥Ã∥2F + ∥AQ⊥ ∥2F . LCE yc , Wpre Xft e(c−1)n+j + B ÃRe(c−1)n+j + 2 K̄n c=1 j=1
Under this transformation, the objective in (5) can be rewritten as follows K̄
n
K̄
n
K̄
n
K̄
n
1 XX λ ∥B∥2F + ∥A∥2F LCE (yc , (Wpre + BA)xc,j ) + 2 K̄n c=1 j=1 λ 1 XX LCE yc , BAXft e(c−1)n+j + = ∥B∥2F + ∥A∥2F 2 K̄n c=1 j=1 =
λ 1 XX LCE yc , B Ãe(c−1)n+j + ∥B∥2F + ∥AXft ∥2F + ∥AXft,⊥ ∥2F 2 K̄n c=1 j=1
=
λ 1 XX LCE yc , B Ãe(c−1)n+j + ∥B∥2F + ∥Ã∥2F + ∥AXft,⊥ ∥2F . 2 K̄n c=1 j=1
Notice that the component AXft,⊥ contributes only to the regularization term and does not affect the cross-entropy loss. Hence at any global minimizer (B ∗ , A∗ ) of (5) we must have AXft,⊥ = 0. Moreover, if (B ∗ , A∗ ) is a global minimizer of the original problem, then (B ∗ , A∗ Xft ) is a global minimizer of the objective in (25). Conversely, let (B ∗ , Ã∗ ) be any global minimizer of (25), then one can solve the following equation to obtain (B ∗ , A∗ ) which is a global minimizer of the original objective in (5). A∗ Xft = Ã∗ ,
G.3
A∗ Xft,⊥ = 0 .
(117)
Proof of Lemma D.2
Proof. To show that there exists a unique value ρλ such that the (Problem one) and (Problem two) enjoys the same set of solutions, we first introduce two additional optimization problems. K̄
n
min
1 XX LCE yc , Ze(c−1)n+j + λ∥Z∥∗ , K̄n c=1 j=1
min
1 XX LCE yc , Ze(c−1)n+j K̄n c=1 j=1
Z
K̄
Z
(Problem three)
n
s.t.∥Z∥∗ ≤ ρλ .
(Problem four)
where Z ∈ RK×K̄n . Let Si (λ), i = 1, 2, 3, 4 be the solution sets of the above four optimization problems for the same fixed λ. We will show that 42
• S1 (λ) = S2 (λ), S3 (λ) = S4 (λ). • S3 (λ), S4 (λ) contains only one element for any fixed λ > 0. • ∀B ∗ , Ã∗ ∈ S1 (λ), one has B ∗ Ã∗ ∈ S3 (λ). • Let S3 (λ) = S4 (λ) = {Zλ∗ }, then there exists B ∗ Ã∗ = Zλ∗ such that (B ∗ , Ã∗ ) ∈ S1 (λ). We first establish that (Problem three) has a unique solution. Our analysis is based on the following lemma. Lemma G.6 (Cross entropy loss with nuclear norm has a unique minimizer). For any λ > 0, define K̄
ϕ(Z; λ) =
n
1 XX LCE yc , Ze(c−1)n+j + λ∥Z∥∗ , K̄n c=1 j=1
where yc is a one-hot vector with c-th index equals one. Then ϕ(Z; λ) has a unique solution. We refer the readers to later sections in Appendix G.4 for the proof. Based on Lemma G.6, (Problem three) has a unique solution, denoted by Zλ∗ . Before relating this solution to the fixed-width factorization in (Problem one), we verify its rank feasibility. Let Π = diag(Π1 , . . . , ΠK̄ ), where each Πc ∈ Rn×n is a permutation matrix. Permuting columns within a class leaves the mean cross entropy unchanged, and ∥ZΠ∥∗ = ∥Z∥∗ by unitary invariance. Thus ϕ(ZΠ; λ) = ϕ(Z; λ), and uniqueness implies Zλ∗ Π = Zλ∗ for every such Π. Consequently, columns within each class coincide, so Zλ∗ = Vλ ⊗ 1⊤ n,
Vλ ∈ RK×K̄ ,
rank(Zλ∗ ) ≤ K̄ ≤ r,
where the final inequality follows from Assumption 2.3. Set q = rank(Zλ∗ ). If q > 0, take the compact SVD Zλ∗ = Uq Σq Vq⊤ , with Uq ∈ RK×q and Vq ∈ RK̄n×q , and define B0 = Uq Σ1/2 0K×(r−q) ∈ RK×r , q 1/2 Σq Vq⊤ Ã0 = ∈ Rr×K̄n . 0(r−q)×K̄n If q = 0, take B0 = 0 and Ã0 = 0 with the same dimensions. In either case, B0 Ã0 = Zλ∗ ,
∥B0 ∥2F = ∥Ã0 ∥2F = ∥Zλ∗ ∥∗ .
By Lemma G.2, the objective of (Problem one) at any (B, Ã) is at least ϕ(B Ã; λ) ≥ ϕ(Zλ∗ ; λ), and (B0 , Ã0 ) attains this lower bound. Hence the minimum values of (Problem one) and (Problem three) agree. Every (B ∗ , Ã∗ ) ∈ S1 (λ) must therefore satisfy B ∗ Ã∗ = Zλ∗ ,
2∥Zλ∗ ∥∗ = ∥B ∗ ∥2F + ∥Ã∗ ∥2F .
Equality in ∥B ∗ Ã∗ ∥∗ ≤ ∥B ∗ ∥F ∥Ã∗ ∥F ≤ (∥B ∗ ∥2F + ∥Ã∗ ∥2F )/2 also gives ∥B ∗ ∥2F = ∥Ã∗ ∥2F = ∥Zλ∗ ∥∗ . Then, one can choose ρλ = ∥Zλ∗ ∥∗ , and based on strong duality, (Problem three) and (Problem four) admits the same set of solutions, i.e., S3 (λ) = S4 (λ). Next, we show that ∀(B ∗ , Ã∗ ) ∈ S2 (λ), it must satisfy B ∗ Ã∗ ∈ S4 (λ),
2∥B ∗ Ã∗ ∥∗ = ∥B ∗ ∥2F + ∥Ã∗ ∥2F .
This is because first, the minimum objective value of (Problem two) and (Problem four) must be equal. Given Zλ∗ ∈ S4 (λ), one can do balanced factorization, and obtain the corresponding B ∗ , Ã∗ . This implies that the minimum objective value of (Problem two) is less than or equal to that of ∥B ∗ ∥2F +∥Ã∗ ∥2F (Problem four). On the other hand, ∀(B ∗ , Ã∗ ) ∈ S2 (λ), one has ∥B ∗ Ã∗ ∥∗ ≤ ≤ 2 43
ρλ which implies B ∗ Ã∗ is a feasible solution of (Problem four). Thus, the minimum objective value of (Problem four) is less than or equal to that of (Problem two). Combine these together, we conclude that the minimum objective value of (Problem two) and (Problem four) must be equal, and ∀(B ∗ , Ã∗ ) ∈ S2 (λ), B ∗ Ã∗ ∈ S4 (λ) must hold. Since S4 (λ) = {Zλ∗ }, the preceding norm inequalities are equalities, and ∥B ∗ ∥2F = ∥Ã∗ ∥2F = ρλ . Finally, we show S1 (λ) = S2 (λ). This is because, on one hand, ∀B1∗ , Ã∗1 ∈ S1 (λ), from previous reasoning, they must satisfy B1∗ Ã∗1 ∈ S3 (λ) = S4 (λ),
∥B1∗ ∥2F = ∥Ã∗1 ∥2F = ρλ ,
and this indicates B1∗ , Ã∗1 ∈ S2 (λ). On the other hand, ∀B2∗ , Ã∗2 ∈ S2 (λ), they must satisfy B2∗ Ã∗2 ∈ S3 (λ) = S4 (λ),
∥B2∗ ∥2F = ∥Ã∗2 ∥2F = ρλ ,
and this indicates (B2∗ , Ã∗2 ) ∈ S1 (λ). Thus, we finish the proof for S1 (λ) = S2 (λ). The last step is to show ρλ is a continuous and non-increasing function of λ that satisfies lim ρλ = ∞,
lim ρλ = 0 .
ρ→∞
ρ→0+
Continuity of ρλ . In this part, we will use Lemma G.4 to prove the solution to (Problem three) is continuous, which implies that ρλ is a continuous function w.r.t. λ. Notice Lemma G.4 is presented for maximization problem, one can replace the objective f to −f to extend it to minimization problem. Moreover, it is obvious that the objective function is continuous, convex, and the set of minimizers is single-valued for any fixed λ > 0. Thus, in order to apply Lemma G.4 to show the continuity of ρλ , we only need to check C(λ), which is the range of Z, is a compact-valued correspondence. At first glance, this seems wrong since Z can take any values in RK×K̄n in (Problem three). However, we will show that one can constrain the domain of Z which leads to the same minimizer. Notice that nwhen Z = 0, the o objective in (Problem three) takes the value log K. log K Thus, we can choose C(λ) = Z∥∥Z∥∗ ≤ λ , which is a compact set. Therefore, for any fix λ, one can apply Lemma G.4 to show Zλ∗ is continuous w.r.t. λ, which implies ρλ := ∥Zλ∗ ∥∗ is also continuous w.r.t. λ. ρλ is a non-increasing function. For any 0 < λ1 < λ2 , let Zλ1 , Zλ2 be the solutions for (Problem three) with the corresponding regularization penalty. Then, our first observation is ϕ(Zλ2 ; λ2 ) ≤ ϕ(Zλ1 ; λ2 ) ⇐⇒ ϕ(Zλ2 ; λ1 ) + (λ2 − λ1 )∥Zλ2 ∥∗ ≤ ϕ(Zλ1 ; λ1 ) + (λ2 − λ1 )∥Zλ1 ∥∗ ⇐⇒ ϕ(Zλ2 ; λ1 ) − ϕ(Zλ1 ; λ1 ) ≤ (λ2 − λ1 )(∥Zλ1 ∥∗ − ∥Zλ2 ∥∗ ) ⇐⇒ ϕ(Zλ2 ; λ1 ) − ϕ(Zλ1 ; λ1 ) ≤ (λ2 − λ1 )(ρ(λ1 ) − ρ(λ2 )) . Notice Zλ1 ∈ arg min ϕ(Z; λ1 ), thus, we have ϕ(Zλ2 ; λ1 ) − ϕ(Zλ1 ; λ1 ) ≥ 0, and it leads to ρ(λ1 ) ≥ ρ(λ2 ). Therefore, ρλ is non-increasing in λ. If ρ(λ1 ) = ρ(λ2 ), the preceding comparison and uniqueness imply Zλ1 = Zλ2 =: Z. Write ℓ(Z) := ϕ(Z; 0). By first-order optimality, choose Gi ∈ ∂∥Z∥∗ such that ∇ℓ(Z) + λi Gi = 0,
i = 1, 2.
Subtracting these optimality conditions gives λ1 G1 = λ2 G2 .
(118)
Every nuclear-norm subgradient satisfies ⟨Gi , Z⟩ = ∥Z∥∗ . Taking Frobenius inner products of (118) with Z therefore yields (λ1 − λ2 )∥Z∥∗ = 0. Since 0 < λ1 < λ2 , this forces ∥Z∥∗ = 0, hence Z = 0. Thus, when ρ(λ1 ) = ρ(λ2 ) holds, one must have Zλ1 = Zλ2 = 0. 44
Asymptotic behaviour of ρλ . In this part, we aim to show lim ρλ = ∞, lim ρλ = 0 .
λ→0
λ→∞
We first use proof by contradiction to show that limλ→∞ ρλ = 0. Assume there exists M > 0 such that ∀λ > 0, one has ρλ ≥ M . Then, we take a series λi such that limi→∞ λi = ∞, and let S = {ρ(λi )}∞ i=1 . Based on the assumption, we know all the elements in S has a lower bound M . Moreover, we know ∀λi , ρ(λi ) ≤ logλiK . This is because ϕ(0; λ) = log K which is independent of the choices of λi . Thus, there exists M ′ such that ∀ρλ ∈ S, we have ρλ ≤ M ′ . Based on Bolzano–Weierstrass theorem, there exists a subsequence λik such that limk→∞ ρ(λik ) = M ∗ where M ≤ M ∗ ≤ M ′ . However, in this case, limk→∞ ϕ(Zλ∗i ; λik ) ≥ limk→∞ λik ρ(λik ) = ∞. This is k in contradictory to the assumption that Zλ∗i minimizes ϕ(Z; λik ) and ϕ(0; λ) = log K. Thus, one k must have limλ→∞ ρλ = 0. Next, we first use proof by contradiction to show that limλ→0 ρλ = ∞. Assume there exists N > 0 such that ∀λ > 0, one has ρλ ≤ N . For every finite R > 0, ϕ(Z; 0) is continuous and strictly positive on the compact nuclear-norm ball {Z : ∥Z∥∗ ≤ R}. Consequently, ϵR := min ϕ(Z; 0) > 0 . ∥Z∥∗ ≤R
Then, we pick a series λk = k12 , Rk = k, and choose ⊤ 1n 0⊤ 0⊤ n n ⊤ 0⊤ 1⊤ 0 n n n Z̃k = k ⊤ 0⊤ 0n ··· n 0(K−K̄)×K̄n
· · · , 0⊤ n · · · 0⊤ n ⊤ ⊤ 0n 1n
Based on the optimality of Zλ∗k , one must have ϕ(Zλ∗k ; λk ) ≤ ϕ(Z̃k ; λk ) = log 1 + (K − 1) exp(−k)
√ K̄ n + . k
On the other hand, ϕ(Zλ∗k ; λk ) ≥ ϕ(Zλ∗k ; 0) ≥ ϵN > 0 . Combine these two inequalities together, one has √ K̄ n . ϵN ≤ log 1 + (K − 1) exp(−k) + k However, one can choose k sufficiently large that the above inequality breaks. Thus, there cannot exist a N > 0 such that ρλ ≤ N holds ∀λ > 0. Therefore, one must have limλ→0 ρλ = ∞. G.4
Proof of Lemma G.6
Proof. Our starting point is the following lemma which is developed in Hong and Ling [2023]. Lemma G.7 (Cross entropy loss is locally strongly convex in restricted direction). Define K̄
ϕ(Z) =
n
1 XX LCE yc , Ze(c−1)n+j , K̄n c=1 j=1
where yc is a one-hot vector with c-th entry equal to one. For any R > 0, there exists µ(R) > 0 such that on the compact set {Z ∈ RK×K̄n : ∥Z∥F ≤ R}, ϕ(Z) is µ(R)-strongly convex in any direction ∆Z ∈ {∆Z : 1⊤ K ∆Z = 0}. This bounded-set statement follows from the pointwise restricted Hessian bound in the proof of Lemma 5.1 in Hong and Ling [2023]. Fix λ > 0 and write ϕ(Z; λ) := ϕ(Z) + λ∥Z∥∗ . Since cross entropy is nonnegative, ϕ(Z; λ) ≥ λ∥Z∥∗ ≥ λ∥Z∥F . 45
Hence ϕ(·; λ) is continuous and coercive, so it attains a global minimum. Every global minimizer Z ∗ satisfies λ∥Z ∗ ∥F ≤ ϕ(Z ∗ ; λ) ≤ ϕ(0; λ) = log K, and therefore ∥Z ∗ ∥F ≤ log K/λ. We next show that every global minimizer is centered. Let Z ∗ be any global minimizer and decompose it as 1 1 ∗ ∗ Z ∗ = 1K 1⊤ 1K 1⊤ K Z + (IK − K )Z . K K 1 For simplicity, let P = IK − K 1K 1⊤ K be the projection matrix onto the space orthogonal to 1K . 1 ⊤ ∗ The removed component K 1K 1K Z has constant entries within each column. Since cross entropy is invariant under such logit shifts, ϕ(Z ∗ ) = ϕ(P Z ∗ ). By the contraction property in Lemma G.3 applied to the orthogonal projection P , ∥P Z ∗ ∥∗ ≤ ∥Z ∗ ∥∗ , with equality if and only if P Z ∗ = Z ∗ . Combined with ϕ(Z ∗ ) = ϕ(P Z ∗ ), we have ϕ(P Z ∗ ; λ) ≤ ϕ(Z ∗ ; λ), and optimality of Z ∗ forces equality, hence P Z ∗ = Z ∗ and ∗ 1⊤ KZ = 0 .
Finally, choose R > log K/λ. All global minimizers belong to the convex set BR := {Z ∈ RK×K̄n : 1⊤ K Z = 0, ∥Z∥F ≤ R}. By Lemma G.7, ϕ(Z) is µ(R)-strongly convex on BR . Since the nuclear norm is convex, the regularized objective ϕ(Z; λ) is also µ(R)-strongly convex on this set. Thus, for any two global minimizers Z1 , Z2 , Z1 + Z 2 ϕ(Z1 ; λ) + ϕ(Z2 ; λ) µ(R) ϕ ;λ ≤ − ∥Z1 − Z2 ∥2F . 2 2 8 If Z1 ̸= Z2 , their midpoint would have a strictly smaller objective value, contradicting global optimality. Therefore the global minimizer is unique.
H
Experiment
In this section, we present the detailed setup of the experiments in §4. Code availability. Code is available at https://github.com/simonxu97/MaLoRA. Hardware. All experiments are run on a single NVIDIA RTXA5000 GPU (24GB) per (benchmark, seed), allocated through an academic SLURM cluster. The backbones—ViT-Base/16 pre-trained on ImageNet-21k and XLM-RoBERTa Base—are loaded directly from public checkpoints; we do not pretrain any model from scratch. Per-domain LoRA finetuning runs for 20 fixed epochs with AdamW and takes 5–30 minutes per domain depending on the dataset, totalling roughly 0.5–3GPU-hours per (benchmark, seed) across all per-domain adapters and the pretrain-task adapter. Computational overhead and merge-selection runtime are reported in Appendix H.2.2, using a dedicated matchedbudget timing protocol. H.1
Details for experiments in §H.1.2 and §4.1
Definition of superclasses of CIFAR-100. CIFAR-100 groups its 100 fine categories into 20 coarse superclasses as follows Construction of pre-training and fine-tuning tasks. For every superclass S, let [cS1 , . . . , cS5 ] be a fixed random permutation of its five fine labels. We build three disjoint labelled sets [ [ [ Dpre = {cS1 , cS2 , cS3 }, D1 = {cS4 }, D2 = {cS5 }. S
S
S
Hence Dpre contains 60 fine classes (three per super-class) while each fine-tuning task Di contains exactly one new class per superclass, preserving maximal diversity yet zero overlap with Dpre . 46
Table 2: CIFAR-100 coarse superclasses and their five fine labels. Superclass
Fine classes (5 per superclass)
aquatic mammals fish flowers food containers fruit & vegetables household electrical devices household furniture insects large carnivores large man-made outdoor things large natural outdoor scenes large omnivores & herbivores medium-sized mammals non-insect invertebrates people reptiles small mammals trees vehicles 1 vehicles 2
beaver, dolphin, otter, seal, whale aquarium fish, flatfish, ray, shark, trout orchid, poppy, rose, sunflower, tulip bottle, bowl, can, cup, plate apple, mushroom, orange, pear, sweet pepper clock, computer keyboard, lamp, telephone, television bed, chair, couch, table, wardrobe bee, beetle, butterfly, caterpillar, cockroach bear, leopard, lion, tiger, wolf bridge, castle, house, road, skyscraper cloud, forest, mountain, plain, sea camel, cattle, chimpanzee, elephant, kangaroo fox, porcupine, possum, raccoon, skunk crab, lobster, snail, spider, worm baby, boy, girl, man, woman crocodile, dinosaur, lizard, snake, turtle hamster, mouse, rabbit, shrew, squirrel maple, oak, palm, pine, willow bicycle, bus, motorcycle, pickup truck, train lawn-mower, rocket, streetcar, tank, tractor
Frozen feature extractors. training dataset:
We evaluate four widely used backbones, noting their different pre-
• ResNet-50 [He et al., 2016] (torchvision, supervised ImageNet-1K). • ViT-Base/16 [Dosovitskiy et al., 2021] (timm: supervised pre-training on ImageNet-21K, then fine-tuned on ImageNet-1K). • ConvNeXt-Tiny [Liu et al., 2022] pre-trained on ImageNet-12K, then fine-tuned on ImageNet-1K. • CLIP ViT-B/32 [Radford et al., 2021] (OpenAI’s contrastive pre-training on web-scale image–text pairs; no ImageNet supervision). All models are kept frozen; we extract the CLS token (ViT/CLIP) or the global-average-pooled penultimate tensor (CNNs) at 224 × 224 resolution for every CIFAR-100 image. Pre-training stage. A linear classifier Wpre ∈ R20×d (d = embedding dimension) is trained from scratch on Dpre for 600 epochs with Adam (η = 0.2). The 20 rows correspond to the super-classes, not the 60 fine labels; this matches our theoretical model where each task’s labels share a common output. H.1.1
Empirical Motivation for the Task Geometry Assumption
In this section, we conduct a comprehensive feature correlation analysis on CIFAR-100. This analysis quantifies both intra-class and inter-class correlations in the feature space to provide empirical motivation for the near-orthogonal task geometry in Assumption 2.1. Let Fθ (x) denote the feature extraction function of a neural network with parameters θ, where x ∈ R3×32×32 represents an input image from CIFAR-100. For each architecture (ResNet-50, ViT-Base/16, CLIP ViT-B/32, and ConvNeXt-Tiny), we extract features from the penultimate layer, obtaining feature vectors fi = Fθ (xi ) ∈ Rd for each training sample xi . We organize the extracted features by class, creating sets Sc = {fi : yi = c} for each class c ∈ {0, 1, . . . , 99}, where yi is the ground truth label of sample xi . 47
Figure 2: Distributions of pairwise feature correlation across four pre-trained models. The red dashed line represent the mean value of correlations, and the dashed lines represent mean plus and minus one std. Cosine-Similarity Computation. For any two feature vectors fi , fj ∈ Rd , we compute the cosine similarity: Pd (k) (k) ⟨fi , fj ⟩ k=1 fi fj , (119) s(fi , fj ) = = qP q Pd ∥fi ∥2 ∥fj ∥2 (k) 2 (k) 2 d f f i j k=1 k=1 (k)
where fi
denotes the k-th coordinate of fi .
Intra-class Similarity. For each class c, we compute the average intra-class cosine similarity: sintra (c) =
1 |Sc |(|Sc | − 1)/2
X
s(fi , fj ).
(120)
fi ,fj ∈Sc , i<j
This measures how aligned features are within the same class, indicating the consistency of learned representations for semantically similar samples. Inter-class Similarity. For any two distinct classes c1 ̸= c2 , we compute the average inter-class cosine similarity: X X 1 sinter (c1 , c2 ) = s(fi , fj ). (121) |Sc1 | · |Sc2 | fi ∈Sc1 fj ∈Sc2
This quantifies the alignment between features from different classes, with values closer to zero indicating more orthogonal (i.e., better separated) classes. 48
Intra-class mean (std) Inter-class mean (std)
CLIP 0.2713(0.0769) -0.0024(0.0670)
RESNET 0.2312(0.0689) -0.0021(0.0621)
VIT 0.2536(0.0652) -0.0021(0.0563)
CONVNEXT 0.2731(0.0784) -0.0027(0.0439)
Table 3: Mean and standard deviation of intra-class and inter-class feature cosine similarities. Values closer to zero indicate greater orthogonality between features.
Similarity Matrix Construction. We construct a 100 × 100 similarity matrix S where: s (i) if i = j Sij = intra sinter (i, j) if i ̸= j.
(122)
Implementation Details. To ensure computational efficiency while maintaining statistical reliability, we subsample feature pairs for similarity computation. Specifically, for each class we randomly sample 100 points (10,000 in total). We first report the distribution of pairwise cosine similarities across all sampled points in Figure 2. To further distinguish intra-class and inter-class relationships, we visualize the corresponding similarities as a heatmap in Figure 3. For intra-class similarities, we randomly sample up to 1,000 distinct sample pairs per class (drawn without replacement to exclude trivial self-pairs whose cosine would be 1); for inter-class similarities, we sample up to 1,000 pairs for each class pair. This subsampling strategy yields robust similarity estimates while keeping the computation tractable. Figure 2 highlights two key observations: (1) most pairwise cosine similarities are concentrated around zero; and (2) the mean similarity ± one standard deviation remains below 0.15 for every architecture. These descriptive statistics provide qualitative motivation for studying a near-orthogonal reference geometry. Figure 3 highlights three observations: (1) higher diagonal values indicate stronger within-class alignment; (2) near-zero off-diagonal values indicate weak average inter-class alignment; and (3) Table 3 quantifies this contrast, with inter-class means close to zero and intra-class means around 0.23–0.27. The weak average inter-class and within-class alignment provides qualitative motivation for studying a near-orthogonal reference geometry. Extending the analysis to richer within-class structure and stronger correlations remains an important direction for future work. H.1.2
Effect of regularization
In this section, we numerically verify Theorem 3.2. We first pre-train a linear classifier on the pretraining task, and then fine-tune it using LoRA across 50 logarithmically spaced regularization strengths, with λ ∈ [10−5 , 10−1 ]. Figure 4 shows that LoRA’s performance exhibits a non-monotonic relationship with λ, peaking at a moderate value. For ViT and ResNet, the theoretically predicted optimal λ is within a factor of 1.8 of the best empirical choice for every K̄, and for ConvNeXt within a factor of 1.2 when K̄ ∈ {10, 20}; for CLIP, the empirical optimum is 1.8–4.4 times larger than predicted. Detailed comparisons are reported in Appendix H. For each fine-tuning task, we freeze the pre-trained weights Wpre and attach a rank-r LoRA block, where r is set to the number of classes in the fine-tuning task. This satisfies Assumption 2.3. We evaluate performance across three fine-tuning tasks with varying class counts: K̄ = 5, 10, 20. Each task is constructed by selecting the top K̄ superclasses from D2 . We fine-tune the model on each task using SGD for 3000 steps with a learning rate of 0.5, sweeping over regularization values λ ∈ [10−5 , 10−1 ] with 50 logarithmically spaced regularization strengths. For each K̄ and each frozen feature extractor, we record both the empirically optimal regularization parameter and the theoretically predicted one from Theorem 3.2. The detailed figures are given in Table 4. H.1.3
Details for experiments in §4.1
For the experiments in §4.1, we fine-tune D1 , D2 using different LoRA adapters (Bi , Ai ), i = 1, 2 with LoRA rank 20. We fine-tune the LoRA adapters using Adam (η = 0.1) with regularization parameter λ = 5 × 10−7 . Let (Bi∗ , A∗i ), i = 1, 2 be the optimal LoRA adapters we achieve at the 49
Figure 3: Feature correlation analysis across different pretrained models.
Figure 4: Accuracy of the fine-tuned model across varying regularization levels for four different pre-trained models. Each line represents a fine-tuning task, indicated by color. Stars highlight the bestperforming regularization value for each task. Vertical dashed lines indicate the theoretically predicted optimal regularization parameter for each setting. Alignment between the star and the dashed line of the same color reflects how well our theory predicts the empirically optimal regularization level.
end of fine-tuning, we merge them together as follows λ WLoRA (α1 , α2 ) = Wpre + α1 B1∗ A∗1 + α2 B2∗ A∗2
To seek for the optimal mixing coefficients (α1 , α2 ), we run grid search over a 50 × 50 lattice on (0, 1)2 , and compare it with the optimal theoretical mixing coefficients presented in Theorem 3.3. We test different number of classes in the fine-tuning datasets, i.e., K̄ = 5, 10, 20, and reports their results here. 50
Table 4: Empirical (Emp) and theoretical (Thm) optimal regularization parameters λ for different pre-trained models and fine-tuning task sizes (K̄). Model ResNet-50 ViT-B/16 ConvNeXt CLIP
K̄ = 5
K̄ = 10
K̄ = 20
Emp: 0.005208 Thm: 0.007424 Emp: 0.001835 Thm: 0.003304 Emp: 0.000647 Thm: 0.006709 Emp: 0.007373 Thm: 0.001889
Emp: 0.003092 Thm: 0.004158 Emp: 0.002599 Thm: 0.002763 Emp: 0.002599 Thm: 0.003114 Emp: 0.005208 Thm: 0.001178
Emp: 0.002184 Thm: 0.002121 Emp: 0.001090 Thm: 0.001551 Emp: 0.001835 Thm: 0.002039 Emp: 0.001835 Thm: 0.001030
Figure 5: Merged-model accuracy across architectures and different number of classes in the finetuning tasks. Each panel shows the accuracy of the merged model evaluated on the combined dataset, across a 50 × 50 grid of mixing coefficients (α1 , α2 ) ∈ (0, 1)2 . For each architecture, the red star indicates the theoretically predicted optimal coefficients from Theorem 3.3, while the red triangle marks the empirically optimal coefficients.
H.2
Details for experiments in §4.2
In §4.2, the datasets tested are all multi-domain benchmarks (See Table 7 for details). 51
Table 5: Average normalized accuracy (%) following Ilharco et al. [2022]: each task’s merged-model accuracy is divided by the per-domain finetuned model’s accuracy on that task, then averaged across domains within each benchmark. Mean ± std over 10 seeds. Bold = best per column. Values >100 indicate the merged model outperforms the per-task finetuned model on that benchmark. Method
PACS
VLCS
Terra Inc.
MNLI
Amazon
CivilComm.
Avg
Soup 96.38 ± 0.77 96.89 ± 0.47 64.31 ± 2.53 101.16 ± 0.19 100.64 ± 0.54 98.27 ± 1.66 92.94 ± 0.53 TA 97.52 ± 0.97 97.19 ± 0.96 64.46 ± 2.65 101.27 ± 0.24 100.68 ± 0.64 97.80 ± 1.69 93.15 ± 0.58 TIES 97.52 ± 0.86 96.95 ± 0.72 63.78 ± 2.36 100.87 ± 0.21 100.64 ± 0.54 98.00 ± 1.98 92.96 ± 0.55 DARE-TIES 97.57 ± 0.85 97.23 ± 0.96 64.23 ± 2.27 100.90 ± 0.23 100.45 ± 0.65 97.92 ± 1.94 93.05 ± 0.55 DARE-Linear 96.48 ± 0.77 96.77 ± 0.51 64.73 ± 2.34 101.12 ± 0.21 100.50 ± 0.57 97.61 ± 1.88 92.87 ± 0.53 MaLoRA 96.69 ± 0.83 97.54 ± 0.62 65.75 ± 2.31 101.23 ± 0.22 100.69 ± 0.56 98.00 ± 1.99 93.32 ± 0.55
Table 6: Average relative accuracy drop (%), the complement of normalized accuracy (1 − merged/oracle, averaged across domains within each benchmark and across benchmarks). Mean ± std over 10 seeds. Bold = smallest per column (least forgetting). Negative values indicate the merged model outperforms the per-task pPfinetuned model on average. Avg is the equally weighted mean 2 across benchmarks; its std is b σb /6, where σb is the per-benchmark std, assuming independent benchmarks. Method
PACS
VLCS
Terra Inc.
MNLI
Amazon
CivilComm.
Avg
Soup 3.62 ± 0.77 3.11 ± 0.47 35.69 ± 2.53 −1.16 ± 0.19 −0.64 ± 0.54 1.73 ± 1.66 7.06 ± 0.53 TA 2.48 ± 0.97 2.81 ± 0.96 35.54 ± 2.65 −1.27 ± 0.24 −0.68 ± 0.64 2.20 ± 1.69 6.85 ± 0.58 TIES 2.48 ± 0.86 3.05 ± 0.72 36.22 ± 2.36 −0.87 ± 0.21 −0.64 ± 0.54 2.00 ± 1.98 7.04 ± 0.55 DARE-TIES 2.43 ± 0.85 2.77 ± 0.96 35.77 ± 2.27 −0.90 ± 0.23 −0.45 ± 0.65 2.08 ± 1.94 6.95 ± 0.55 DARE-Linear 3.52 ± 0.77 3.23 ± 0.51 35.27 ± 2.34 −1.12 ± 0.21 −0.50 ± 0.57 2.39 ± 1.88 7.13 ± 0.53 MaLoRA 3.31 ± 0.83 2.46 ± 0.62 34.25 ± 2.31 −1.23 ± 0.22 −0.69 ± 0.56 2.00 ± 1.99 6.68 ± 0.55
Table 7: Benchmarks used in the main paper. “Domains” lists every domain in the dataset; the pretrain column marks the one folded into base_with_pretrain. “# merged” is the number of LoRA adapters that participate in the dense task-arithmetic merge (i.e. all non-pretrain adapters). Dataset
Modality # domains # classes # merged Domains (pretrain in bold)
PACS VLCS Terra Incognita
vision vision vision
4 4 4
7 5 10
3 3 3
art painting, cartoon, photo, sketch Caltech101, LabelMe, SUN09, VOC2007 location_38, location_43, location_46, location_100
MNLI
language
5
3
4
Amazon Reviews language CivilComments language
4 5
2 2
3 4
fiction, government, slate, telephone, travel books, electronics, kitchen, movies identity_attack, insult, obscene, sexual_explicit, threat
Validation/test splits. For every domain, we hold out a stratified 10% validation split and a stratified 10% test split from the per-domain training set, with the remaining 80% used for finetuning. The split indices are deterministic in the configured random seed and are reused across all methods so that Soup, Task Arithmetic, and MaLoRA are evaluated on the same per-domain val/test sets within a seed. Validation accuracy averaged over all merged domains is the criterion for selecting the merge coefficient λ∗ . LoRA configuration. We use LoRA Hu et al. [2022] with the following layout, applied identically to every adapter (per-domain, per-seed): • Target modules: query and value projections only (no key, no MLP, no embeddings, no normalization). • Layers transformed: the last four transformer layers, indexed {8, 9, 10, 11} (out of 12). This was identified as the best layer placement in our preliminary layer-sweep ablation. 52
• Scaling factor: αLoRA = 16 for all adapters. • LoRA dropout: 0.05. • Classifier head: a fresh classification head is initialized for each adapter and trained jointly with the LoRA parameters. At merge time, each merged adapter contributes both its classifier head and its LoRA delta to the weighted sum, so that the merged model has a coherent classifier without an external head-aggregation step. Training and per-dataset hyperparameters. All adapters are trained with AdamW for 20 epochs (no early stopping; lora_patience = 0). Before enabling the LoRA branch, we warm up the classifier head for 5 epochs at learning rate 3 × 10−4 (head_epochs = 5, head_lr = 3e-4); each domain trains its own head (train_shared_head = false). We use default PyTorch gradient clipping. The four hyperparameters that vary across datasets, i.e., LoRA rank r, learning rate, batch size, and weight decay, are summarized in Table 8. Table 8: Per-dataset training hyperparameters. All adapters use AdamW with LoRA α = 16, dropout 0.05, query and value projections of the final four transformer layers, and 20 training epochs. The pretrain domain is the one folded into the base_with_pretrain model, with the remaining domains fine-tuned on top. Dataset PACS VLCS Terra Incognita MNLI Amazon Reviews CivilComments
Pretrain domain art painting VOC2007 location_100 fiction books insult
LoRA rank r
Learning rate −4
5 × 10 5 × 10−4 5 × 10−4 5 × 10−4 5 × 10−4 5 × 10−4
4 4 4 8 8 32
Batch size
Weight decay
32 32 32 32 128 32
5 × 10−3 5 × 10−2 5 × 10−3 5 × 10−3 5 × 10−3 5 × 10−3
Baseline methods.. We compare the following methods for merging the LoRA adapters, • Uniform Soup Wortsman et al. [2022]: αi = 1/N (equal weight across all merged adapters). Equivalent to Task Arithmetic at λ = 1/N . • Task Arithmetic (TA) Ilharco et al. [2022]: αi = λ for every i, with λ tuned on validation. • DARE-Linear Yu et al. [2024]: each task vector ∆Wi is randomly sparsified by a Bernoulli mask with keep rate d and rescaled by 1/d, then linearly averaged with global scale λ, i.e. ∆Wmerged = P ˜ ˜ (λ/N ) i ∆W i where ∆Wi is the dropped-and-rescaled task vector. Both d and λ are tuned on validation. • DARE-TIES Yu et al. [2024]: applies the DARE drop-and-rescale step above to each task vector, then aggregates via the TIES sign-election and disjoint-merge procedure with global scale λ. Both d and λ are tuned on validation. • TIES Yadav et al. [2023]: each task vector is first trimmed to its top-d fraction of parameters by magnitude; per parameter, the dominant sign is elected across adapters by total signed magnitude; the merged delta averages only the sign-aligned values and is scaled by λ. Both d and λ are tuned on validation. All baselines that involve density and λ are tuned over d ∈ {0.2, 0.3, . . . , 0.9} and λ ∈ {0.1, 0.2, . . . , 1.0} (80 configurations); Task Arithmetic uses the same λ grid (10 configurations). H.2.1
Feature correlations across domains
We extend the CIFAR-100 analysis in Appendix H.1.1 to the six multi-domain benchmarks in §4.2. For this analysis, we extract features using the stock pre-trained checkpoints google/vit-base-patch16-224-in21k for PACS, VLCS, and Terra Incognita, and xlm-roberta-base for MNLI, Amazon Reviews, and CivilComments. The backbones are kept fixed and used for inference only. Each domain is treated as a task, and the domain counts include both the pre-training domain and all fine-tuning domains. In Table 9, cross-domain mean correlations range from −0.060 to 0.060, providing qualitative motivation for weak average cross-task alignment. Within domains, small mean correlations for 53
Table 9: Feature correlations within and across classes and domains. Entries report mean correlations, with ± denoting spread across class–domain cell pairs in each group. A cell is a class–domain combination. Dataset
# classes
PACS VLCS Terra Incognita MNLI Amazon Reviews CivilComments
# domains
7 5 10 3 2 2
4 4 4 5 4 5
Mean
Same class
Different classes
Same domain
Different domains
Same domain
Different domains
+0.376±0.155 +0.183±0.169 +0.312±0.143 +0.145±0.132 +0.073±0.024 +0.053±0.024
+0.020±0.157 +0.029±0.047 +0.060±0.085 −0.018±0.048 −0.003±0.018 +0.018±0.020
+0.139±0.100 +0.008±0.042 +0.059±0.152 +0.143±0.131 +0.039±0.023 +0.044±0.020
−0.060±0.090 −0.019±0.029 −0.033±0.095 −0.019±0.048 −0.026±0.020 +0.011±0.018
+0.191
+0.018
+0.072
−0.025
different-class pairs on VLCS (0.008) and for both same-class and different-class pairs on Amazon Reviews and CivilComments (0.039–0.073) also motivate a near-orthogonal reference geometry. Stronger same-class alignment on PACS (0.376) and Terra Incognita (0.312) highlights structured departures from this geometry, showing that agreement with the reference geometry varies across benchmarks and pair categories. H.2.2
Computational overhead
We measure end-to-end merge-selection runtime on all six benchmarks over ten random seeds, using one NVIDIA RTX A5000 GPU and a fixed budget of four CPU threads. For the six methods compared in Table 10, we use a matched budget of 49 configurations per method, separately from the accuracy-selection grids described above. The timings measure merging and coefficient selection from trained adapters; adapter-training costs are reported separately in the hardware description. MaLoRA estimates margins with one forward pass over each domain’s validation split, costing 1.05– 1.48 times a single validation pass. The resulting margins are computed once and reused throughout the global-scale search. For fixed adapters and validation sets, this additional margin-computation cost is independent of the number of candidate scales. Table 10 reports the mean runtime for each benchmark and the arithmetic mean across the six benchmarks. MaLoRA’s aggregate mean runtime is 972.6 s, compared with 950.3 s for TA, an increase of 22.3 s or approximately 2.35%. Its aggregate mean runtime is lower than those of DARE-Linear, DARE-TIES, and TIES (980.2–991.0 s). Table 10: Mean end-to-end merge-selection runtime (seconds) over ten seeds per benchmark under the matched-budget timing protocol. Avg. is the arithmetic mean across the six benchmarks; the final column divides each method’s Avg. by MaLoRA’s. Method
PACS
VLCS
Soup TA DARE-Linear DARE-TIES TIES MaLoRA
287.6 287.6 316.4 323.2 324.9 295.4
752.2 752.8 784.1 787.3 790.6 769.6
Terra Inc.
MNLI
Amazon
904.1 3207.7 903.8 3206.7 937.1 3230.9 940.8 3242.7 939.9 3254.4 924.0 3277.4
253.6 253.5 280.4 285.2 290.0 261.7
54
CivilComm.
Avg.
Ratio
297.4 950.4 0.98× 297.2 950.3 0.98× 332.4 980.2 1.01× 340.0 986.5 1.01× 346.2 991.0 1.02× 307.3 972.6 1.00×
NeurIPS Paper Checklist 1. Claims Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? Answer: [Yes] Justification: The claim made in the abstract can be found in Theorem 3.1, Theorem 3.2, Theorem 3.3, and Algorithm 1. Guidelines: • The answer [N/A] means that the abstract and introduction do not include the claims made in the paper. • The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A [No] or [N/A] answer to this question will not be perceived well by the reviewers. • The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. • It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. 2. Limitations Question: Does the paper discuss the limitations of the work performed by the authors? Answer: [Yes] Justification: we discuss the limitations of the work in §5. Guidelines: • The answer [N/A] means that the paper has no limitation while the answer [No] means that the paper has limitations, but those are not discussed in the paper. • The authors are encouraged to create a separate “Limitations” section in their paper. • The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. • The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. • The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. • The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. • If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. • While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. 3. Theory assumptions and proofs Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? Answer: [Yes] 55
Justification: we list all the assumptions in §2.1, and provide proofs in Appendix D– Appendix F. Guidelines: • The answer [N/A] means that the paper does not include theoretical results. • All the theorems, formulas, and proofs in the paper should be numbered and crossreferenced. • All assumptions should be clearly stated or referenced in the statement of any theorems. • The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. • Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. • Theorems and Lemmas that the proof relies upon should be properly referenced. 4. Experimental result reproducibility Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? Answer: [Yes] Justification: we list all the model architectures, datasets, and training setups in AppendixH. Guidelines: • The answer [N/A] means that the paper does not include experiments. • If the paper includes experiments, a [No] answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. • If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. • Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general. releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. • While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example (a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. (b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. (c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). (d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. 5. Open access to data and code Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? 56
Answer: [Yes] Justification: all the experiments conducted in this paper use open source datasets, and we provide citations to them. Guidelines: • The answer [N/A] means that paper does not include experiments requiring code. • Please see the NeurIPS code and data submission guidelines (https://neurips.cc/ public/guides/CodeSubmissionPolicy) for more details. • While we encourage the release of code and data, we understand that this might not be possible, so [No] is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). • The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https: //neurips.cc/public/guides/CodeSubmissionPolicy) for more details. • The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. • The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. • At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). • Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. 6. Experimental setting/details Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results? Answer: [Yes] Justification: in Appendix H, we provide details on the experiments. Guidelines: • The answer [N/A] means that the paper does not include experiments. • The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. • The full details can be provided either with the code, in appendix, or as supplemental material. 7. Experiment statistical significance Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? Answer: [Yes] Justification: in Appendix H, we report the mean normalized accuracy and drop with std computed based on 10 repetitions. Guidelines: • The answer [N/A] means that the paper does not include experiments. • The authors should answer [Yes] if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. • The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). • The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) • The assumptions made should be given (e.g., Normally distributed errors). 57
• It should be clear whether the error bar is the standard deviation or the standard error of the mean. • It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified. • For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g., negative error rates). • If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. 8. Experiments compute resources Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? Answer: [Yes] Justification: we report the usage of computational resources in Appendix H. Guidelines: • The answer [N/A] means that the paper does not include experiments. • The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. • The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. • The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper). 9. Code of ethics Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? Answer: [Yes] Justification: we have reviewed the NeurIPS Code of Ethics and followed it. Guidelines: • The answer [N/A] means that the authors have not reviewed the NeurIPS Code of Ethics. • If the authors answer [No], they should explain the special circumstances that require a deviation from the Code of Ethics. • The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). 10. Broader impacts Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? Answer: [N/A] Justification: there is no societal impact of the work performed. Guidelines: • The answer [N/A] means that there is no societal impact of the work performed. • If the authors answer [N/A] or [No], they should explain why their work has no societal impact or why the paper does not address societal impact. • Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. 58
• The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. • The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. • If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). 11. Safeguards Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)? Answer: [N/A] Justification: the paper poses no such risks. Guidelines: • The answer [N/A] means that the paper poses no such risks. • Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. • Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. • We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. 12. Licenses for existing assets Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? Answer: [Yes] Justification: in §4, we cite the original paper that produces the datasets used in the experiment. Guidelines: • The answer [N/A] means that the paper does not use existing assets. • The authors should cite the original paper that produced the code package or dataset. • The authors should state which version of the asset is used and, if possible, include a URL. • The name of the license (e.g., CC-BY 4.0) should be included for each asset. • For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. • If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. • For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. 59
• If this information is not available online, the authors are encouraged to reach out to the asset’s creators. 13. New assets Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? Answer: [N/A] Justification: the paper does not release new assets. Guidelines: • The answer [N/A] means that the paper does not release new assets. • Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. • The paper should discuss whether and how consent was obtained from people whose asset is used. • At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. 14. Crowdsourcing and research with human subjects Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? Answer: [N/A] Justification: the paper does not involve crowdsourcing nor research with human subjects. Guidelines: • The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects. • Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. • According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. 15. Institutional review board (IRB) approvals or equivalent for research with human subjects Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? Answer: [N/A] Justification: the paper does not involve crowdsourcing nor research with human subjects. Guidelines: • The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects. • Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. • We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. • For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. 16. Declaration of LLM usage 60
Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required. Answer: [N/A] Justification: we document how we use LLM in Appendix A. Guidelines: • The answer [N/A] means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. • Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described.
61
Related documents
- Convergent Stochastic Training of Multi-Headed Attention and Understanding LoRA#974412
- SPACE-LoRA: Allocating Activation-Subspace Protection for Continual Learning#1128723
- Machine unlearning using forgetting neural networks#405948
- How Many Ranks Does a Token Need? A Noise-Floor Squelch for Rank-One LoRA Experts#1344856
- PENEX: AdaBoost-Inspired Neural Network Regularization#1456098
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive