Introduction
Supervised fine-tuning (SFT) is an effective technique to adapt large language models (LLMs) to specialized tasks. In many of such tasks, a critical bottleneck is the scarcity of high-quality examples that precisely define the desired behavior. For instance, in medicine, clinician-validated cases may serve as gold-standard target examples; larger biomedical corpora may provide a much wider but noisier training pool [1 , 2 ] . Similarly, in law, a small number of expert-annotated examples may define the target task, while larger collections of legal documents may offer a broader but less aligned training pool [3 , 4 , 5 ] . In all of these examples, estimates of the target distribution are high-value and expensive to label, whereas the available training pool is broader, cheaper, and only partially aligned with the task of interest. This pool of candidate examples, which we refer to as the candidate pool, can provide a useful training signal, but training on all of it is not necessarily safe or effective. Carefully selected subsets have indeed been shown to outperform training on the full candidate pool in various settings [6 , 7 , 8 , 9 ] (see Table 2 for additional examples).
Table 2. Target and reference performance changes across all settings. All values are fine-tuned minus base; higher is better for task scores, whereas smaller absolute StereoSet change means closer preservation. Reference-score changes therefore have the opposite sign to degradation D t a s k D_{\mathrm{task}} D task for higher-is-better metrics. For each setting, target metrics (shaded) are separated by a horizontal rule from reference metrics (details in Appendix D). Bold denotes the best result per row; underline the second best. Scores are means ± standard deviation over three random seeds.
At the same time, fine-tuning does not solely affect the capability we intend to improve [10 ] . Growing evidence shows that seemingly benign finetuning can weaken safety alignment and degrade behavior outside the target task [11 , 12 ] . Beyond safety, fine-tuning can also lead to the forgetting of more general capabilities [13 ] . We refer to these unintended changes as off-target drifts .
These observations suggest that fine-tuning is not just a matter of collecting more data, but selecting the right ones: given a large and noisy candidate pool, we must choose examples that improve the target task without inducing unnecessary off-target drift. The key question is therefore: which examples from the candidate pool should we train on in order to improve the target task while safeguarding other model behaviors?
Existing data selection methods broadly fall into two (and often mutually exclusive) families. The first selects candidate examples that appear most valuable for the target task, either through explicit quality proxies [14 , 15 , 16 , 17 ] or through direct influence estimation [6 , 18 ] . The second prioritizes diversity or distributional coverage of selected candidates to improve generalization [19 , 20 ] . We refer the reader to [21 ] for a comprehensive review. None of these methods explicitly constrain the off-target drift induced by the selected subset, nor do they account for the possible entanglement between target-improving and reference-sensitive parameter directions [22 , 23 , 24 , 25 ] .
If the gradients that yield the largest improvement in the target task overlap with directions associated with worse performance on a reference task, then aggressively selecting them can induce substantial off-target drift. Diversity-based selection, on the other hand, spreads the update across many gradient directions, but may not deliver the best target performance. Optimal data selection must therefore navigate potential tensions between target improvement and reference degradation. Here, we propose an algorithm that explicitly models data selection as a constrained optimization problem to limit unwanted movement along reference-sensitive directions, as illustrated in Figure 1 .
Figure 1. Trade-offs in data selection: gradient alignment selects candidate gradients aligned with the task but can cause substantial off-target drift (e.g., movement along a "forbidden dimension", in red). Diversity-based selection can mitigate this but does not reliably prevent off-target drift. SAFE-DRIFT combines both approaches by constraining updates along the forbidden dimension.
Contributions. We summarize our contributions as follows:
A drift-constrained formulation of data selection. We introduce SAFE-DRIFT, which selects data that maximizes target gradient alignment subject to an explicit budget on off-target drift, quantified by the Fisher information of a user-specified reference distribution. (§ 2 ).
A connection between target-aligned and diversity-based selection. We show that the optimal update under a reference-drift budget is a damped natural-gradient direction. This clarifies when target-aligned selection cannot safeguard against off-target drift, when diversity can reduce the drift, and how both arise as limiting or special cases of a single constrained update problem (§ 2.1 ).
A scalable low-rank implementation. We build a shared low-rank basis that merges leading reference-sensitive directions with residual task-relevant directions (§ 2.3 ) and work with gradients projected onto the derived low-rank basis, making the selection algorithm practical. We also propose diagnostics of target–reference entanglement using the low-rank projections and analyze how it affects the off-target drift control.
Experiments demonstrating controllable drift. Across four settings—code generation, medical question answering, emotional support dialogues, and instruction-following experiments—SAFE-DRIFT achieves competitive target gains while reducing off-target drift on the specified reference behaviors. We provide further robustness and ablation results on the off-target drift budget and different design choices (§ 3 ).
Method
Consider a base language model with parameters θ 0 ∈ R d \theta_0 \in\mathbb{R}^d θ 0 ∈ R d that defines a conditional distribution over output tokens y ∈ Y y \in\mathcal{Y} y ∈ Y given input tokens x ∈ X x \in\mathcal{X} x ∈ X . Let z = ( x , y ) z=(x,y) z = ( x , y ) denote an input–output pair, and let ℓ ( z ; θ ) \ell(z;\theta) ℓ ( z ; θ ) denote the training loss (typically the negative log-likelihood of the output sequence, or of a single answer token in a multiple-choice setting).
We assume that we are given a large candidate training pool D t r a i n = { z i } i = 1 N C \mathcal{D}_{\mathrm{train}} = \{z_i\}_{i=1}^{N_C} D train = { z i } i = 1 N C and a small target set D t a r = { z j } j = 1 N T \mathcal{D}_{\mathrm{tar}} = \{z_j\}_{j=1}^{N_T} D tar = { z j } j = 1 N T with N T ≪ N C N_T \ll N_C N T ≪ N C that encodes the capability we wish to improve. We are also given a reference set D r e f = { x i } i = 1 N R \mathcal{D}_{\mathrm{ref}} = \{x_i\}_{i=1}^{N_R} D ref = { x i } i = 1 N R of prompts from a reference distribution R \mathcal{R} R over inputs, on which the model’s output distribution should be preserved. Let the target risk at parameter θ ∈ R d \theta\in\mathbb{R}^d θ ∈ R d be defined as:
L T ( θ ) : = E z ∼ T [ ℓ ( z ; θ ) ] = E x ∼ T X E y ∼ q T ( ⋅ ∣ x ) [ ℓ ( ( x , y ) ; θ ) ] . (1) L_T(\theta) := \mathbb{E}_{z \sim\mathcal{T}}[\ell(z;\theta)] = \mathbb{E}_{x \sim\mathcal{T}_X}\mathbb{E}_{y \sim q_T(\cdot\mid x)}[\ell((x,y);\theta)]. \tag*{(1)} L T ( θ ) := E z ∼ T [ ℓ ( z ; θ )] = E x ∼ T X E y ∼ q T ( ⋅ ∣ x ) [ ℓ (( x , y ) ; θ )] . (1)
where T X \mathcal{T}_X T X is the marginal of the target distribution T \mathcal{T} T on inputs and q T ( ⋅ ∣ x ) q_T(\cdot\mid x) q T ( ⋅ ∣ x ) denotes the gold-standard conditional distribution. Our goal is to select a subset S ⊂ D t r a i n \mathcal{S} \subset\mathcal{D}_{\mathrm{train}} S ⊂ D train of size S S S such that fine-tuning on S \mathcal{S} S minimizes the target risk L T ( θ ) L_T(\theta) L T ( θ ) while preserving the model’s output distribution on R \mathcal{R} R .
We proceed in two stages. We first characterize the optimal local update, which minimizes L T ( θ ) L_T(\theta) L T ( θ ) while preserving behavior under R \mathcal{R} R . We then identify a subset S ⊂ D t r a i n \mathcal{S} \subset\mathcal{D}_{\mathrm{train}} S ⊂ D train of size S S S whose aggregate effect most closely matches the optimal update. The model is fine-tuned on S \mathcal{S} S in one pass, without any online reweighting or iterative refinement. The first subsection characterizes the oracle update, assuming access to the full target and reference populations. We then derive the subset-selection algorithm and its low-rank implementation in the noisy empirical setting using the finite datasets D t r a i n \mathcal{D}_{\mathrm{train}} D train , D t a r \mathcal{D}_{\mathrm{tar}} D tar , and D r e f \mathcal{D}_{\mathrm{ref}} D ref .
Optimal parameter update under a drift budget
We begin with a population-level oracle problem in which both the population gradient of the target loss g T = E [ ∇ θ L T ( θ 0 ) ] g_T = \mathbb{E}[\nabla_\theta L_T(\theta_0)] g T = E [ ∇ θ L T ( θ 0 )] and the reference distribution R \mathcal{R} R are known exactly. Here θ 0 ∈ R d \theta_0 \in\mathbb{R}^d θ 0 ∈ R d denotes the base model parameters, and the fine-tuned model is parametrized by θ = θ 0 + Δ θ \theta= \theta_0 + \Delta\theta θ = θ 0 + Δ θ for some update Δ θ ∈ R d \Delta\theta\in\mathbb{R}^d Δ θ ∈ R d . The oracle question we ask is: what is the optimal parameter update Δ θ \Delta\theta Δ θ that maximizes the target performance while safeguarding against off-target drift?
Off-target drift on reference distribution. For the fine-tuned model θ 0 + Δ θ \theta_0 + \Delta\theta θ 0 + Δ θ , define the expected drift on the reference distribution as the Kullback-Leibler divergence with the base model,
D R ( Δ θ ) : = E x ∼ R [ D K L ( p θ 0 ( ⋅ ∣ x ) ∥ p θ 0 + Δ θ ( ⋅ ∣ x ) ) ] . (2) D_{\mathcal{R}}(\Delta\theta) := \mathbb{E}_{x \sim\mathcal{R}}\left[D_{\mathrm{KL}}\left(p_{\theta_0}(\cdot\mid x) \mathrel{\|} p_{\theta_0+\Delta\theta}(\cdot\mid x)\right)\right]. \tag*{(2)} D R ( Δ θ ) := E x ∼ R [ D KL ( p θ 0 ( ⋅ ∣ x ) ∥ p θ 0 + Δ θ ( ⋅ ∣ x ) ) ] . (2)
The quantity D R ( Δ θ ) D_{\mathcal{R}}(\Delta\theta) D R ( Δ θ ) captures the off-target effects of fine-tuning: how much the parameter update Δ θ \Delta\theta Δ θ alters model behavior on R \mathcal{R} R , outside the target task. We note here that D R ( Δ θ ) D_{\mathcal{R}}(\Delta\theta) D R ( Δ θ ) is defined globally for any Δ θ \Delta\theta Δ θ . However, because our results consider small fine-tuning updates, it is natural to study the local behavior of D R ( Δ θ ) D_{\mathcal{R}}(\Delta\theta) D R ( Δ θ ) around Δ θ = 0 \Delta\theta= 0 Δ θ = 0 . We next show that, to second order, off-target drift is a quadratic form induced by the Fisher information of the model on the reference distribution.
Definition 1 (Reference Fisher). Let s θ 0 R ( x , y ) : = ∇ θ log p θ 0 ( y ∣ x ) s_{\theta_0}^{R}(x,y) := \nabla_\theta\log p_{\theta_0}(y \mid x) s θ 0 R ( x , y ) := ∇ θ log p θ 0 ( y ∣ x ) . The reference Fisher information at θ 0 \theta_0 θ 0 is:
F R : = E x ∼ R E y ∼ p θ 0 ( ⋅ ∣ x ) [ s θ 0 R ( x , y ) s θ 0 R ( x , y ) ⊤ ] . (3) \mathbf{F}_{\mathcal{R}} := \mathbb{E}_{x \sim\mathcal{R}}\mathbb{E}_{y \sim p_{\theta_0}(\cdot\mid x)}\left[s_{\theta_0}^{R}(x,y)s_{\theta_0}^{R}(x,y)^{\top}\right]. \tag*{(3)} F R := E x ∼ R E y ∼ p θ 0 ( ⋅ ∣ x ) [ s θ 0 R ( x , y ) s θ 0 R ( x , y ) ⊤ ] . (3)
Proposition 1 (Local reference behavior). Assume a common parameter-independent support and standard smoothness and integrability conditions so that differentiation may be exchanged with expectation and with the normalization integral over θ 0 \theta_0 θ 0 . Then, as Δ θ → 0 \Delta\theta\to0 Δ θ → 0 ,
D R ( Δ θ ) = 1 2 Δ θ ⊤ F R Δ θ + o ( ∥ Δ θ ∥ 2 2 ) . (4) D_{\mathcal{R}}(\Delta\theta) = \frac{1}{2}\Delta\theta^{\top}\mathbf{F}_{\mathcal{R}}\Delta\theta+ o(\|\Delta\theta\|_2^2). \tag*{(4)} D R ( Δ θ ) = 2 1 Δ θ ⊤ F R Δ θ + o ( ∥Δ θ ∥ 2 2 ) . (4)
The smoothness conditions and proof are provided in Appendix B.1. Proposition 1 shows that, for small fine-tuning updates, the cost D R ( Δ θ ) D_{\mathcal{R}}(\Delta\theta) D R ( Δ θ ) is estimated as a quadratic form with the curvature given by F R \mathbf{F}_{\mathcal{R}} F R , rather than the classic Euclidean norm ∥ Δ θ ∥ 2 2 \|\Delta\theta\|_2^2 ∥Δ θ ∥ 2 2 : directions with large curvature under F R \mathbf{F}_{\mathcal{R}} F R induce larger second-order changes in the model’s output distribution on x ∼ R x \sim\mathcal{R} x ∼ R , whereas directions lying near the null space of F R \mathbf{F}_{\mathcal{R}} F R have small quadratic off-target drift.
Target gain as gradient alignment. Recall the population gradient loss of the target at the base model θ 0 \theta_0 θ 0 : g T : = ∇ θ L T ( θ 0 ) g_T := \nabla_\theta L_T(\theta_0) g T := ∇ θ L T ( θ 0 ) . For a small update Δ θ \Delta\theta Δ θ , a first order Taylor approximation at θ 0 \theta_0 θ 0 gives,
L T ( θ 0 + Δ θ ) − L T ( θ 0 ) = g T ⊤ Δ θ + o ( ∥ Δ θ ∥ 2 ) . (5) L_T(\theta_0 + \Delta\theta) - L_T(\theta_0) = g_T^{\top}\Delta\theta+ o(\|\Delta\theta\|_2). \tag*{(5)} L T ( θ 0 + Δ θ ) − L T ( θ 0 ) = g T ⊤ Δ θ + o ( ∥Δ θ ∥ 2 ) . (5)
Under a Euclidean norm bound and g T ≠ 0 g_T \ne0 g T = 0 , the update providing the steepest decrease in target loss is proportional to g T g_T g T . However, this strategy might induce updates in the space spanned by F R \mathbf{F}_{\mathcal{R}} F R , creating a potential trade-off between maximizing target accuracy, and minimizing off-target drift.
The oracle update problem. We construct a bridge of data selection by formulating it as a constrained optimization problem of Δ θ \Delta\theta Δ θ : we maximize the target-side gain − g T ⊤ Δ θ -g_T^\top\Delta\theta − g T ⊤ Δ θ , while allowing only a small budget of quadratic off-target drift 1 2 Δ θ ⊤ F R Δ θ \frac{1}{2}\Delta\theta^\top F_R\Delta\theta 2 1 Δ θ ⊤ F R Δ θ on the reference distribution. This leads to the following oracle problem: among all small parameter updates, choose the one that maximizes target gain while spending at most ρ \rho ρ , a fixed drift budget:
Δ θ ⋆ ∈ arg max Δ θ ∈ R d { − g T ⊤ Δ θ } subject to 1 2 Δ θ ⊤ F R Δ θ ≤ ρ , ∥ Δ θ ∥ 2 ≤ ϵ . (6) \Delta\theta^\star\in\arg\max_{\Delta\theta\in\mathbb{R}^d}\left\{-g_T^\top\Delta\theta\right\}\quad\text{subject to}\quad\frac{1}{2}\Delta\theta^\top F_R\Delta\theta\le\rho,\qquad\lVert\Delta\theta\rVert_2\le\epsilon. \tag*{(6)} Δ θ ⋆ ∈ arg Δ θ ∈ R d max { − g T ⊤ Δ θ } subject to 2 1 Δ θ ⊤ F R Δ θ ≤ ρ , ∥ Δ θ ∥ 2 ≤ ϵ . (6)
There are two central parameters: ρ > 0 \rho> 0 ρ > 0 , which sets the budget on quadratic off-target drift, and ϵ > 0 \epsilon> 0 ϵ > 0 which constrains the magnitude of the update.
The constraint ϵ \epsilon ϵ serves two purposes: it ensures that Δ θ \Delta\theta Δ θ is small enough for the local approximations in 4 and 5 to hold, and it regularizes the update in directions where g T g_T g T lies in the null space of F R F_R F R . In practice, a fixed optimizer and its learning rate η \eta η can determine ϵ \epsilon ϵ . For stochastic gradient descent, for instance, we have ∥ Δ θ ∥ 2 ≤ η / S ∥ G ∥ o p \lVert\Delta\theta\rVert_2\le\eta/\sqrt{S}\lVert G\rVert_{\mathrm{op}} ∥ Δ θ ∥ 2 ≤ η / S ∥ G ∥ op where S S S is the selection budget and ∥ G ∥ o p \lVert G\rVert_{\mathrm{op}} ∥ G ∥ op is the spectral norm of the candidate gradient matrix, both quantities that are fixed characteristics of the problem.
With ϵ \epsilon ϵ fixed, the sole quantity in 6 that must be specified is ρ \rho ρ , the maximum off-target drift we are willing to tolerate. To make this quantity interpretable, let B x ⊆ Y B_x\subseteq\mathcal{Y} B x ⊆ Y be a set of undesirable outputs for prompt x x x , for instance, a set of toxic or stereotyped responses. By Pinsker’s and Jensen’s inequalities,
E x ∼ R [ ( p θ ( B x ∣ x ) − p θ 0 ( B x ∣ x ) ) + ] ≤ D R ( Δ θ ) / 2 . \mathbb{E}_{x\sim R}\left[(p_\theta(B_x\mid x)-p_{\theta_0}(B_x\mid x))_+\right]\le\sqrt{D_R(\Delta\theta)/2}. E x ∼ R [ ( p θ ( B x ∣ x ) − p θ 0 ( B x ∣ x ) ) + ] ≤ D R ( Δ θ ) /2 .
For a local oracle update, Appendix § 7 .§ 1 gives D R ( Δ θ ) ≤ ρ + M ϵ 3 / 6 D_R(\Delta\theta)\le\rho+M\epsilon^3/6 D R ( Δ θ ) ≤ ρ + M ϵ 3 /6 , where M M M is the expected third-derivative envelope and ϵ \epsilon ϵ lies within the stated neighborhood. Therefore, for any undesirable reference output B x ⊆ Y B_x\subseteq\mathcal{Y} B x ⊆ Y , the expected increase in the probability of B x B_x B x is bounded by ( ρ + M ϵ 3 / 6 ) / 2 \sqrt{(\rho+M\epsilon^3/6)/2} ( ρ + M ϵ 3 /6 ) /2 . In practice, we treat ρ \rho ρ as a hyperparameter that requires tuning to efficiently safeguard against deleterious off-target drifts; we ablate over a range of ρ \rho ρ ’s in § 3 . We now provide the optimal oracle solution of 6.
Proposition 2 (Oracle Update Δ θ ⋆ \Delta\theta^\star Δ θ ⋆ ). Assume the target gradient vector satisfies g T ≠ 0 g_T\ne0 g T = 0 . When both the drift and the norm constraint multipliers are strictly positive, the solution to (6) is,
Δ θ ⋆ = − ϵ ( F R + α I ) − 1 g T ∥ ( F R + α I ) − 1 g T ∥ 2 , \Delta\theta^\star=-\epsilon\frac{(F_R+\alpha I)^{-1}g_T}{\lVert(F_R+\alpha I)^{-1}g_T\rVert_2}, Δ θ ⋆ = − ϵ ∥( F R + α I ) − 1 g T ∥ 2 ( F R + α I ) − 1 g T , where α > 0 \alpha>0 α > 0 is chosen to satisfy 1 2 ( Δ θ ⋆ ) ⊤ F R Δ θ ⋆ = ρ \frac{1}{2}(\Delta\theta^\star)^\top F_R\Delta\theta^\star=\rho 2 1 ( Δ θ ⋆ ) ⊤ F R Δ θ ⋆ = ρ .
The remaining boundary and singular Fisher cases are characterized in Appendix § 7 .§ 2 ; a tight constraint can have zero multiplier and drift-only solution may include null space components. In the strictly positive-multiplier regime, where both constraints are active, the maximum-gain direction is proportional to the damped natural gradient of the target objective under the reference distribution.
A complete characterization of all cases, along with proofs and an explicit formula for α \alpha α as a function of $(\epsilon,\rho), is provided in Appendices B.2 and B.3.
Algorithm: Safe-Drift Data Selection
Let w ∈ { 0 , 1 } N C w\in\{0,1\}^{N_C} w ∈ { 0 , 1 } N C denote the selection vector, where w i = 1 w_i=1 w i = 1 indicates that candidate example i i i is selected for fine-tuning. Let G ∈ R d × N C G\in\mathbb{R}^{d\times N_C} G ∈ R d × N C be the matrix of candidate loss gradients at θ 0 \theta_0 θ 0 . We approximate the subset-induced parameter update by one step with fixed gradients and preconditioner: Δ θ ( w ) = − η P G w / ∑ i w i \Delta\theta(w)=-\eta P Gw/\sum_i w_i Δ θ ( w ) = − η P Gw / ∑ i w i , where P ∈ R d × d P\in\mathbb{R}^{d\times d} P ∈ R d × d denotes the preconditioner induced by the optimizer and η > 0 \eta>0 η > 0 is the learning rate. For example, P = I d P=I_d P = I d recovers stochastic gradient descent, while adaptive methods such as Adam [26 ] use a diagonal second-order approximation for local curvature. We defer a further discussion of the choice of P P P to Appendix § 7 .§ 4 . In our setting, the goal is to approximate the optimal safe update Δ θ ⋆ \Delta\theta^\star Δ θ ⋆ in Proposition 2 that maximizes the target gain while satisfying the constraint on off-target drift. Accordingly, we aim to construct a subset of exactly S S S examples by,
w ⋆ = arg min w ∈ { 0 , 1 } N C , 1 T w = S ∥ Δ θ ( w ) − Δ θ ⋆ ∥ F R + α I 2 , (7) w^\star= \underset{w \in\{0,1\}^{N_C},\,\mathbf{1}^{\mathsf{T}}w=S}{\arg\min}\ \left\lVert\Delta\theta(w)-\Delta\theta^\star\right\rVert_{\mathbf{F}_R+\alpha\mathbf{I}}^2, \tag*{(7)} w ⋆ = w ∈ { 0 , 1 } N C , 1 T w = S arg min ∥ Δ θ ( w ) − Δ θ ⋆ ∥ F R + α I 2 , (7)
where ∥ x ∥ F R + α I 2 : = x T ( F R + α I ) x \lVert x\rVert_{\mathbf{F}_R+\alpha\mathbf{I}}^2 := x^{\mathsf{T}}(\mathbf{F}_R+\alpha\mathbf{I})x ∥ x ∥ F R + α I 2 := x T ( F R + α I ) x for a vector x ∈ R d x \in\mathbb{R}^d x ∈ R d with α > 0 \alpha> 0 α > 0 .
To approximately solve (7) in practice, we use a greedy forward selector, following the common use of greedy matching procedures in sparse approximation [27 ] and gradient-based subset selection [28 ] . We detail the full pipeline in Algorithm 1 below and Algorithm 3 in Appendix C.2.
Remark 2. We carry out the reconstruction within the geometry defined by the reference set, characterized as the norm ∥ ⋅ ∥ F R + α I 2 \lVert\cdot\rVert_{\mathbf{F}_R+\alpha\mathbf{I}}^2 ∥ ⋅ ∥ F R + α I 2 in (7), which enables us to assign higher penalties to reconstructions that have larger components along costly off-target directions. In Appendix D.7.1, we show that this approach yields stronger safeguarding mechanisms than reconstructions based on the standard Euclidean norm.
Low-rank estimation of Fisher information and gradients
We turn to the problem of estimating the gradients of the candidates and target, as well as the reference Fisher information required to solve problems (6) and (7). In a very high-dimensional parameter space, plug-in estimation in the full parameter space is computationally unstable, memory-intensive and noisy. In particular, the empirical reference Fisher is rank-deficient whenever the number of reference samples is smaller than the number of trainable parameters. Luckily, prior works have shown that language-model updates often lie in a low-dimensional subspace or admit a low-rank update structure [29 , 30 , 31 ] . Our goal is therefore to construct a low-rank projection, U ^ K ∈ R d × K \widehat{\mathbf{U}}_K \in\mathbb{R}^{d \times K} U K ∈ R d × K with K ≪ d K \ll d K ≪ d , that captures the reference-sensitive directions while also retaining the dominant task-relevant gradient structure.
Raw estimation. Define the estimated gradient by g ^ i r a w : = ∇ θ ℓ ( z i ; θ 0 ) \widehat{\mathbf{g}}_i^{\mathrm{raw}} := \nabla_\theta\ell(z_i;\theta_0) g i raw := ∇ θ ℓ ( z i ; θ 0 ) . The target gradient is then estimated by the sample mean g ^ t a r r a w : = 1 N T ∑ z i ∈ D t a r ∇ θ ℓ ( z i ; θ 0 ) \widehat{\mathbf{g}}_{\mathrm{tar}}^{\mathrm{raw}} := \frac{1}{N_T}\sum_{z_i\in\mathcal{D}_{\mathrm{tar}}}\nabla_\theta\ell(z_i;\theta_0) g tar raw := N T 1 ∑ z i ∈ D tar ∇ θ ℓ ( z i ; θ 0 ) . Let D r e f = { x j } j = 1 N R \mathcal{D}_{\mathrm{ref}}=\{x_j\}_{j=1}^{N_R} D ref = { x j } j = 1 N R be the held-out set of reference inputs, and let the score vector for the reference data be denoted:
s j R : = ∇ θ log p θ 0 ( y j ∣ x j ) ∈ R d , y j ∼ p θ 0 ( ⋅ ∣ x j ) . \mathbf{s}_j^R := \nabla_\theta\log p_{\theta_0}(y_j\mid x_j)\in\mathbb{R}^d,\qquad y_j\sim p_{\theta_0}(\cdot\mid x_j). s j R := ∇ θ log p θ 0 ( y j ∣ x j ) ∈ R d , y j ∼ p θ 0 ( ⋅ ∣ x j ) .
Let S R ∈ R N R × d \mathbf{S}_R\in\mathbb{R}^{N_R\times d} S R ∈ R N R × d denote the matrix of stacked score vectors.
Estimating the low-rank projection U ^ K \widehat{\mathbf{U}}_K U K . We construct U ^ K \widehat{\mathbf{U}}_K U K in two stages.
Step 1: low-rank approximation of F R \mathbf{F}_R F R . We estimate the leading eigenspace of F R \mathbf{F}_R F R , and retain the top K R K_R K R strictly positive eigenpairs, ( U ^ K R , Λ ^ K R ) (\widehat{\mathbf{U}}_{K_R},\widehat{\mathbf{\Lambda}}_{K_R}) ( U K R , Λ K R ) , from the raw empirical reference Fisher F ^ R r a w = 1 N R S R T S R \widehat{\mathbf{F}}_R^{\mathrm{raw}}=\frac{1}{N_R}\mathbf{S}_R^{\mathsf{T}}\mathbf{S}_R F R raw = N R 1 S R T S R .1
Step 2: low-rank approximation of target and candidate gradients on the residual subspace. Since the target and candidate gradients may contain informative structure outside this reference eigenspace, we project them onto its orthogonal complement and extract a residual task basis from the projected gradients. Let g ~ i \widetilde{\mathbf{g}}_i g i denote the residualized gradients:
g ~ i : = ( I d − U ^ K R U ^ K R T ) g ^ i r a w , ∀ i ∈ [ N C + N T ] . (8) \widetilde{\mathbf{g}}_i := \left(\mathbf{I}_d-\widehat{\mathbf{U}}_{K_R}\widehat{\mathbf{U}}_{K_R}^{\mathsf{T}}\right)\widehat{\mathbf{g}}_i^{\mathrm{raw}},\qquad\forall i\in[N_C+N_T]. \tag*{(8)} g i := ( I d − U K R U K R T ) g i raw , ∀ i ∈ [ N C + N T ] . (8)
Stacking the residualized gradients gives G ~ T C ∈ R d × ( N T + N C ) \widetilde{\mathbf{G}}_{TC}\in\mathbb{R}^{d\times(N_T+N_C)} G T C ∈ R d × ( N T + N C ) . We then estimate an additional residual basis by retaining the top K T K_T K T left singular vectors corresponding to top positive singular values of G ~ T C \widetilde{\mathbf{G}}_{TC} G T C , yielding, U ^ K T ∈ R d × K T \widehat{\mathbf{U}}_{K_T}\in\mathbb{R}^{d\times K_T} U K T ∈ R d × K T .
Stacking the two bases yields the final working basis U ^ K \widehat{\mathbf{U}}_K U K , which by construction spans both the reference-sensitive and residual task-relevant directions:
U ^ K : = [ U ^ K R U ^ K T ] ∈ R d × K , K : = K R + K T , U ^ K T U ^ K = I K . (9) \widehat{\mathbf{U}}_K := \left[\widehat{\mathbf{U}}_{K_R}\quad\widehat{\mathbf{U}}_{K_T}\right]\in\mathbb{R}^{d\times K},\qquad K:=K_R+K_T,\qquad\widehat{\mathbf{U}}_K^{\mathsf{T}}\widehat{\mathbf{U}}_K=\mathbf{I}_K. \tag*{(9)} U K := [ U K R U K T ] ∈ R d × K , K := K R + K T , U K T U K = I K . (9)
We evaluate the effect of the approximation of F R \mathbf{F}_R F R and the gradients under this low rank projection in Appendices D.1 and D.7.3. As expected, the suitability of the approximation depends on the spectrum of the eigenvalues of F R \mathbf{F}_R F R and the residual target gradient, and the projection error of g T \mathbf{g}_T g T . The selection of K K K is discussed in Appendix C.1 and D.7.3.
Entanglement diagnostics. Proposition 2 shows that how strongly the drift budget ρ \rho ρ affects the update depends on the target–reference entanglement . With the low-rank estimation described above, entanglement can be characterized as the overlap between the target-relevant eigenspace and the reference-sensitive eigenspace. We first illustrate the effect of entanglement in a simple synthetic experiment where we use a linear-Gaussian model with known exact per-example gradients and exact F R = σ − 2 Σ R \mathbf{F}_{R}=\sigma^{-2}\boldsymbol{\Sigma}_{R} F R = σ − 2 Σ R (Appendix D.1), where Σ R \boldsymbol{\Sigma}_{R} Σ R has one expensive direction u 1 u_{1} u 1 that costs 25 × 25\times 25 × more drift than u 2 u_{2} u 2 . The two regimes differ only in the target: in the entangled regime − g T -g_{T} − g T lies mostly along u 1 u_{1} u 1 , and in the disentangled regime − g T = u 2 -g_{T}=u_{2} − g T = u 2 . In the entangled regime (Figure 2 a), other baseline selectors incur drift cost, whereas SAFE-DRIFT achieves the lowest mean plotted drift at the cost of some target alignment. In the disentangled regime (Figure 2 b) the budget does not bind and SAFE-DRIFT matches the target-aligned baseline LESS [6 ] .
Figure 2. Trade-off between target gradient alignment and off-target drift for an “entangled regime” and a “disentangled regime” in the synthetic linear experiment (Appendix D.1). The results are averaged over 100 runs. The red line denotes the budget ρ \rho ρ . SAFE-DRIFT is the only method able to control the drift.
On real data, we measure entanglement using the working basis U ^ K \widehat{\mathbf{U}}_{K} U K : we report the proportion of candidates with positive damped target alignment in both reference and residual blocks, denoted as π Q e n t \pi_{Q_{\mathrm{ent}}} π Q ent , while we use π Q c l e a n \pi_{Q_{\mathrm{clean}}} π Q clean to indicate the proportion of candidates with positive residual alignment and non-positive reference-block alignment. We provide their definitions and discuss their interpretation in Appendix C.3.
Safe update and selection in practice
The target and candidate coordinates in the common basis can be calculated by,
b ^ i ( K ) : = U ^ K ⊤ q i r a w for all z i ∈ D t r a i n ∪ D t a r , b ^ t a r ( K ) : = 1 N T ∑ i : z i ∈ D t a r b ^ i ( K ) . (10) \widehat{b}_{i}^{(K)} := \widehat{\mathbf{U}}_{K}^{\top}q_{i}^{\mathrm{raw}}\ \text{for all }z_{i}\in\mathcal{D}_{\mathrm{train}}\mathbin{\mathop{\cup}}\mathcal{D}_{\mathrm{tar}},\qquad\widehat{b}_{\mathrm{tar}}^{(K)} := \frac{1}{N_{T}}\sum_{i:z_{i}\in\mathcal{D}_{\mathrm{tar}}}\widehat{b}_{i}^{(K)}. \tag*{(10)} b i ( K ) := U K ⊤ q i raw for all z i ∈ D train ∪ D tar , b tar ( K ) := N T 1 i : z i ∈ D tar ∑ b i ( K ) . (10)
Given α > 0 \alpha>0 α > 0 and the scaling factor μ ^ K ≥ 1 \widehat{\mu}_{K}\ge1 μ K ≥ 1 that satisfy the reference and norm budgets in (6) , which we detail in Appendix C.1, the practical safe update Δ θ ^ K ∗ \widehat{\Delta\theta}_{K}^{*} Δ θ K ∗ using the low rank basis is,
Δ θ ^ K ∗ ( α ) = − 1 μ ^ K ( diag ( Λ ^ K , R , 0 K T ) + α I K ) − 1 U ^ K ⊤ q t a r r a w ∈ R K . (11) \widehat{\Delta\theta}_{K}^{*}(\alpha)=-\frac{1}{\widehat{\mu}_{K}}\left(\operatorname{diag}(\widehat{\Lambda}_{K,R},0_{K_{T}})+\alpha I_{K}\right)^{-1}\widehat{\mathbf{U}}_{K}^{\top}q_{\mathrm{tar}}^{\mathrm{raw}}\in\mathbb{R}^{K}. \tag*{(11)} Δ θ K ∗ ( α ) = − μ K 1 ( diag ( Λ K , R , 0 K T ) + α I K ) − 1 U K ⊤ q tar raw ∈ R K . (11)
Define the reduced preconditioner P K : = U ^ K ⊤ P U ^ K ∈ R K × K \mathbf{P}_{K}:=\widehat{\mathbf{U}}_{K}^{\top}\mathbf{P}\widehat{\mathbf{U}}_{K}\in\mathbb{R}^{K\times K} P K := U K ⊤ P U K ∈ R K × K , where P \mathbf{P} P is the fixed preconditioner. Similarly, for the selection vector w ∈ { 0 , 1 } N C w\in\{0,1\}^{N_{C}} w ∈ { 0 , 1 } N C with 1 ⊤ w = S \mathbf{1}^{\top}w=S 1 ⊤ w = S , the projected-gradient surrogate update is,
Δ θ ^ K ( w ) = − η S P K B K w ∈ R K , B K : = [ b ^ 1 ( K ) ⋯ b ^ N C ( K ) ] . (12) \widehat{\Delta\theta}_{K}(w)=-\frac{\eta}{S}\mathbf{P}_{K}\mathbf{B}_{K}w\in\mathbb{R}^{K},\qquad\mathbf{B}_{K}:=\left[\begin{array}{ccc}\widehat{b}_{1}^{(K)}&\cdots&\widehat{b}_{N_{C}}^{(K)}\end{array}\right]. \tag*{(12)} Δ θ K ( w ) = − S η P K B K w ∈ R K , B K := [ b 1 ( K ) ⋯ b N C ( K ) ] . (12)
We can now plug in Δ θ ^ K ∗ ( α ) \widehat{\Delta\theta}_{K}^{*}(\alpha) Δ θ K ∗ ( α ) and Δ θ ^ K ( w ) \widehat{\Delta\theta}_{K}(w) Δ θ K ( w ) in (7) to solve for the final selection w ^ \widehat{w} w . In practice, we turn the norm objective to a score for each candidate and select the top S S S points using the forward-greedy scores as detailed in Algorithm 1 and Appendix C.1.
Algorithm 1 SAFE-DRIFT data selection in the low-rank space
Input: Damping parameter α > 0 \alpha> 0 α > 0 , target update Δ θ ^ K ∗ ( α ) \widehat{\Delta\theta}^{\,*}_{K}(\alpha) Δ θ K ∗ ( α ) , preconditioner P K P_K P K , candidate gradients B K B_K B K , learning rate η \eta η , subset budget 1 ≤ S ≤ N C 1 \le S \le N_C 1 ≤ S ≤ N C , shortlist size S ≤ m ≤ N C S \le m \le N_C S ≤ m ≤ N C .
Form the reduced reference Fisher M α , K = diag ( Λ ^ K R , 0 K T ) + α I K M_{\alpha,K} = \operatorname{diag}(\widehat{\Lambda}_{K_R}, 0_{K_T}) + \alpha I_K M α , K = diag ( Λ K R , 0 K T ) + α I K .
Whiten the reduced objective via M α , K 1 / 2 M_{\alpha,K}^{1/2} M α , K 1/2 , and set
Δ ~ K ← − η S M α , K 1 / 2 P K B K , Δ θ ~ K ∗ ← M α , K 1 / 2 Δ θ ^ K ∗ ( α ) . \widetilde{\Delta}_K \leftarrow-\frac{\eta}{S}M_{\alpha,K}^{1/2}P_KB_K,\qquad\widetilde{\Delta\theta}^{\,*}_K \leftarrow M_{\alpha,K}^{1/2}\widehat{\Delta\theta}^{\,*}_K(\alpha). Δ K ← − S η M α , K 1/2 P K B K , Δ θ K ∗ ← M α , K 1/2 Δ θ K ∗ ( α ) .
Compute singleton scores for each sample in D t r a i n \mathcal{D}_{\mathrm{train}} D train
s i = ⟨ Δ ~ K ( i ) , Δ θ ~ K ∗ ⟩ − 1 2 ∥ Δ ~ K ( i ) ∥ 2 , i = 1 , … , N C . s_i = \langle\widetilde{\Delta}_K(i), \widetilde{\Delta\theta}^{\,*}_K\rangle- \frac{1}{2}\lVert\widetilde{\Delta}_K(i)\rVert^2,\qquad i = 1,\ldots,N_C. s i = ⟨ Δ K ( i ) , Δ θ K ∗ ⟩ − 2 1 ∥ Δ K ( i ) ∥ 2 , i = 1 , … , N C .
Choose the top S S S candidates using the forward greedy selector (Algorithm 3 in Appendix C.2).
Output: Selection w ^ \widehat{w} w , selected subset S ^ : = { i ∈ [ N C ] : w ^ i = 1 } \widehat{S} := \{i \in[N_C] : \widehat{w}_i = 1\} S := { i ∈ [ N C ] : w i = 1 } , and the update Δ θ ^ K ( w ^ ) \widehat{\Delta\theta}_K(\widehat{w}) Δ θ K ( w ) .
Experiments
We compare SAFE-DRIFT against four established data selection baselines. These include (1) random sampling; (2) LESS [6 ] , a target-alignment method which leverages LoRA-based low-dimensional gradient similarity to select data; (3) DSIR [17 ] , a target-alignment method based on hashed n n n -gram features; (4) Prismatic Synthesis [19 ] , a diversity-based method that clusters candidate gradients and samples from underrepresented clusters.2 None of these explicitly controls off-target drift. We additionally compare against two methods that preserve reference behavior: (a) replay, the standard method for catastrophic forgetting [32 ] , and KL-regularized fine-tuning, which penalizes divergence from the base model on reference data.
All experiments use open-weight OLMo-2-7B models (OLMo-2-1124-7B or OLMo-2-1124-7B-Instruct) [33 ] as the base model with parameter θ 0 \theta_0 θ 0 ; the robustness study of § 3.1 additionally evaluates two model families across five scales. The full experimental protocol is summarized in Table 1 . We have additional results about off-target drifts across the settings in Table 4 .
Table 1. Summary of experimental settings. N C N_C N C : candidate pool size. N T N_T N T : target set size (used for g ^ t a r \hat{g}_{\mathrm{tar}} g ^ tar , validation, and test). N R N_R N R : reference set size (used for Fisher estimation and off-target drift evaluation). Sizes here describe the source pools; estimator denominators in Section 2.3 use the corresponding estimation splits. Setting-specific evaluation sets are detailed in Appendix § 9 .§ 2 . The definitions of π Q c l e a n \pi_{Q_{\mathrm{clean}}} π Q clean and π Q e n t \pi_{Q_{\mathrm{ent}}} π Q ent are defined and illustrated in Appendix § 8 .§ 3 . All runs use learning rate η = 2 × 10 − 4 \eta= 2 \times10^{-4} η = 2 × 1 0 − 4 .
Table 4. Spearman rank correlations for the drift budget ρ \rho ρ . D t a s k D_{\mathrm{task}} D task denotes reference-score degradation, measured as base minus fine-tuned score. The negative Setting 3 correlations indicate that target and reference accuracy increase together—consistent with the low target–reference entanglement of that setting. The final column correlates the predicted drift D F D_{\mathrm{F}} D F with the realized drift D K L D_{\mathrm{KL}} D KL over the same runs.
Measuring off-target drift. There are three ways we measure off-target drifts. We write D F = Δ θ ⊤ R ^ K R ( θ ^ ) Δ θ D_F = \Delta\theta^\top\widehat{R}_{K_R}^{(\widehat{\theta})}\Delta\theta D F = Δ θ ⊤ R K R ( θ ) Δ θ for the predicted drift, the reference Fisher cost the selection procedure optimizes; D K L D_{KL} D K L for the realized drift, the token-weighted KL divergence between the base and fine-tuned model on held-out reference data; and D t a s k D_{\mathrm{task}} D task for the behavioral drift, the change in accuracy on the reference benchmarks. SAFE-DRIFT controls D F D_F D F by construction, and as the drift budget changes, D F D_F D F tracks the realized drift D K L D_{KL} D K L closely (Spearman correlation 0.967 and 0.670 in Settings 2 and 3; Table 4 ). Unless stated otherwise, results report D t a s k D_{\mathrm{task}} D task and D K L D_{KL} D K L ; we invoke D F D_F D F only where the claim concerns the mechanism.
Main Results
The settings in Table 1 fall into two regimes, depending on whether fine-tuning on the candidate pool degrades or improves model behavior on the reference task. Settings 1, 2, and 4 fall in the first, where target gains come at the cost of off-target drift. Setting 3 falls in the second: its entanglement score π Q e n t = 0.08 \pi_{Q_{\mathrm{ent}}} = 0.08 π Q ent = 0.08 (Table 1) is far below that of the other settings, so target-improving candidates lie largely outside the reference-sensitive directions and the target can be improved at zero off-target cost. Table 2 reports the target performance and the off-target behavioral drift D t a s k D_{\mathrm{task}} D task across all settings.
Case 1: fine-tuning degrades reference behavior (Settings 1, 2, and 4). In Setting 1, fine-tuning on CodeAlpaca improves Python programming ability but increases stereotype bias: all baselines increase the StereoSet score relative to the base model, where a smaller change indicates better preservation of the base model’s stereotype bias. SAFE-DRIFT achieves competitive pass@1 and pass@10 rates on HumanEval while producing the smallest Δ \Delta Δ StereoSet score among all methods.
Setting 2 illustrates the trade-off more sharply. Although fine-tuning improves MedQA performance, reference metrics deteriorate for most baselines: TruthfulQA drops for all baselines, and BBQ drops for Random and Prismatic. SAFE-DRIFT sacrifices some MedQA accuracy in exchange for substantially smaller losses on off-target drift. The high entanglement score π Q e n t = 0.77 \pi_{Q_{\mathrm{ent}}} = 0.77 π Q ent = 0.77 indicates that most target-improving candidates are entangled with reference-sensitive directions, explaining why controlling drift necessarily constrains target performance in this setting.
Setting 4 presents a complementary picture. With π Q e n t = 0.26 \pi_{Q_{\mathrm{ent}}} = 0.26 π Q ent = 0.26 and π Q c l e a n = 0.22 \pi_{Q_{\mathrm{clean}}} = 0.22 π Q clean = 0.22 , a larger share of candidates carry target signal in directions decoupled from the reference geometry. SAFE-DRIFT achieves the best performance on both target metrics and improves MMLU accuracy, while all baselines except LESS degrade it, confirming that clean task-relevant signal allows the method to improve the target without incurring significant off-target drift.
Case 2: fine-tuning improves reference behavior (Setting 3). Setting 3 has by far the lowest entanglement of the four, π Q e n t = 0.08 \pi_{Q_{\mathrm{ent}}} = 0.08 π Q ent = 0.08 (Table 1): almost no candidate carries its target signal through reference-sensitive directions, so SAFE-DRIFT can place greater emphasis on target alignment. The reference metrics improve—emotional support dialogue draws on broad world knowledge and social reasoning, the same general capabilities probed by MMLU and GSM8K, so gains transfer rather than trade-off. SAFE-DRIFT matches DSIR and Prismatic on the target task while achieving the largest gains on both GSM8K and MMLU. Accordingly, selection is driven almost entirely by target alignment and the selected set includes points whose residual Fisher cost is not small.
Robustness and ablation results
SAFE-DRIFT outperforms behavior-preservation methods without training on reference data. We compare against rehearsal, which mixes held-out reference examples into training at 10% and 20% of the dataset, to the baselines in Setting 1 (Figure 3 d). To the best our knowledge, SAFE-DRIFT is the first to formulate drift control from a reference Fisher perspective and to use it to select data under an explicit budget. SAFE-DRIFT attains the largest target gain compared to any rehearsal-based baselines, with the lowest realized drift, and without ever training on the reference set. We also augment LESS and Prismatic with the reference KL penalty in the SFT loss. The penalty reduces drift as intended, but generally at the cost of target accuracy, so the regularized baselines and SAFE-DRIFT occupy different points on the same trade-off. Full numbers are in Appendix § 9 .§ 4 .
Figure 3. Realized drift D K L D_{\mathrm{KL}} D KL vs. target gain (Setting 1). (a–c) Ablation across Qwen2.5 and OLMo-2 base models. (d) Comparison against rehearsal baselines on OLMo-2-7B: each baseline is fine-tuned with 10% or 20% of replayed reference data, whereas SAFE-DRIFT uses no replay. We plot the mean and standard deviation across three seeds; upper left is better on the Pareto plots.
The drift budget ρ \rho ρ trades target gain against drift, and its cost depends on the gradient update method and entanglement. We sweep ρ \rho ρ over { 10 − 5 , 10 − 2 , 10 0 } \{10^{-5}, 10^{-2}, 10^{0}\} { 1 0 − 5 , 1 0 − 2 , 1 0 0 } under the SGD and Adam preconditioners in Setting 2 (Figure 4 ). Under the SGD preconditioner (P = I P = I P = I ), increasing ρ \rho ρ moves the selected set from mostly low-cost candidates toward a high-cost, high-entanglement region, consistent with π Q e n t = 0.77 \pi_{\mathrm{Qent}} = 0.77 π Qent = 0.77 ; under Adam, the selected set is nearly unchanged between ρ = 10 − 5 \rho= 10^{-5} ρ = 1 0 − 5 and 10 − 2 10^{-2} 1 0 − 2 and enters that region only at ρ = 1 \rho= 1 ρ = 1 , so the preconditioner keeps the effective update in a low-cost region for longer. Across a larger sweep (Table 4 ), larger ρ \rho ρ consistently improves target accuracy (Spearman 0.753 and 0.672 in Settings 2 and 3), but its association with reference drift reverses sign: 0.483 in the entangled Setting 2 against −0.735 in Setting 3, where improving the target also improves reference behavior. Throughout the sweep, the predicted drift D F D_{\mathrm{F}} D F , which SAFE-DRIFT controls, tracks the realized drift D K L D_{\mathrm{KL}} D KL (Spearman 0.967 and 0.670 in Settings 2 and 3; Table 4 ). In practice, we selecting ρ \rho ρ on a validation drift set (Appendix § 9 .5).
Figure 4. Effect of the drift budget ρ \rho ρ on target accuracy and off-target drift under SGD and Adam preconditioners. Colored markers denote the examples selected by SAFE-DRIFT in Setting 2.
The drift control generalizes across models, mixtures of references, and full parameter fine-tuning. We repeat Setting 1 across Qwen2.5 at 1.5B/3B/7B and OLMo-2 at 7B/13B, at a 15% budget with three seeds (Figure 3 a–Figure 3 c; full table in Appendix § 9 .6.1). SAFE-DRIFT attains the lowest predicted drift D F D_{\mathrm{F}} D F in every configuration, reducing D K L D_{\mathrm{KL}} D KL by 31.1–60% relative to full data at competitive target gain. Its realized drift D K L D_{\mathrm{KL}} D KL is lowest at Qwen2.5-1.5B and OLMo-2-13B and its target gain is largest on the smaller Qwen models. When the reference combines several datasets, SAFE-DRIFT matches or exceeds the best baseline on the target and keeps BBQ above the base model, even when BBQ is not protected; on TruthfulQA and MMLU, it performs comparably to the baselines (Figure 5 ). This suggests that a reference Fisher estimated from a subset of benchmarks can capture directions shared with the others (Appendix § 9 .6.2). Also, running SAFE-DRIFT with full SFT instead of LoRA trades some target accuracy for better reference preservation (Appendix § 9 .6.3).
Figure 5. Composite reference distributions (Setting 2). Each panel reports the change from the base model on the target (MedQA) and on each reference benchmark (B = BBQ, T = TruthfulQA, K = MMLU). Results of SAFE-DRIFT are shown for each reference composition. Full results, including held-out KL, are in Table 6 .
Design choices and computational cost. Using reference-Fisher-induced norm in Equation (7) makes the data selection more responsive to the budget ρ \rho ρ ; Euclidean norm objective selects more reference-sensitive gradients regardless of ρ \rho ρ (Appendix § 9 .7.1). The best preconditioner varies by setting, and we recommend matching the downstream optimizer (Appendix § 9 .7.2). Results are stable across ranks ( K R , K T ) (K_R, K_T) ( K R , K T ) , with the largest basis giving the smallest drift (Appendix § 9 .7.3). Finally, SAFE-DRIFT shares its dominant cost—gradient construction over the candidate pool—with LESS and Prismatic, and its reported selection FLOPs match those of other gradient-based selectors at the displayed precision (Appendix § 9 .8).
Conclusion
Data selection methods are typically evaluated on target task alone, without accounting for their impact on model behavior outside the target domain. In this paper, we explicitly formalize this trade-off between target improvement and off-target drift. Our method, SAFE-DRIFT, enables controllable off-target drift during targeted data selection. Through systematic experiments across various settings and domains, we demonstrate the effectiveness of our method. However, our method relies on two assumptions. First, it requires a well-approximated reference distribution. If the reference set does not fully cover all the behaviors we want to preserve, such as reasoning ability or domain knowledge, the observed reference distribution may underestimate the true off-target drift. We believe a future direction is to study how reference distribution should be constructed, expanded, and adapted rather than treated as fixed inputs, for example, following related work on broad-coverage evaluation, red-teaming evaluation, and trustworthiness [47 , 48 , 49 , 50 ] . Second, our analysis is based on a one-step or local update approximation which is a reasonable assumption for supervised fine-tuning, but it might not hold for fine-tuning based on reinforcement learning, where parameter updates can grow large as the policy diverges from initialization. We encourage future work to handle the trade-off in such settings where drift accumulates across updates.
Acknowledgments
C.D. would like to acknowledge support for this project from the National Science Foundation (NSF grant IIS-2238616). This work was completed in part with resources provided by the University of Chicago’s Research Computing Center.
Related Work & Notations
Related Works
Data Selection Data selection aims to find a subset of training examples that induces performance similar to training on the full dataset. In particular, [21 ] divide data selection methods in two main classes: Distribution Matching methods, and Distribution Diversification methods.
Distribution matching methods aim to find samples that closely match the target distribution. In this setting, a crucial component is to assess the similarity of a given data point with the target data. A plethora of methods have introduced non-model specific notions of useful data [51 ] or n-gram features [17 ] to perform data selection for pre-training. Because these methods lack the finesse of detecting “high-quality” data points by solely relying on surface attributes, the general trend in the literature – particularly in the context of fine-tuning or instruction tuning — seems to have turned towards using model-specific metrics based on scores like perplexity [52 ] , model embedding [53 ] . Recent methods have for instance relied on formulating the data selection problem as a multi-armed bandit, where the utility function is an aggregated reward function of the cosine similarity and magnitude similarity between gradients of batches from the auxiliary and target datasets. Another line of recent work relies on model gradients [6 , 54 ] for data selection, and calculate the pointwise data influence between pair of training and validation instances.
Distribution diversification methods , by contrast, seek to emphasize diversity of instances. These algorithms aim to efficiently approximate various geometric extent measures over the training set using a small subset. These include coreset methods [55 , 56 ] and submodular algorithms [57 , 58 ] .
Catastrophic Forgetting Catastrophic forgetting [59 , 32 ] happens when adaptation to a new distribution generally results in a largely reduced ability to capture the old ones. Existing approaches to remedy this issue can be typically divided into two categories: data-aware and data-oblivious. Data-aware methods [60 , 61 ] assume access to earlier data distributions to some extent. In contrast, data-oblivious methods operate solely with the pre-trained model, without revisiting any prior data. Data-oblivious methods assume access to the pretrained model without revisiting any prior data. Previous works [62 , 7 ] selectively update a subset of parameters in a pretrained model to limit interference with previously knowledge.
Notations.
Throughout the paper, we use bold uppercase letters, such as A \mathbf{A} A , to denote matrices. For a matrix A ∈ R d × n \mathbf{A} \in\mathbb{R}^{d \times n} A ∈ R d × n , we write A ( i ) \mathbf{A}^{(i)} A ( i ) for its i i i -th column and A i j A_{ij} A ij for its ( i , j ) (i,j) ( i , j ) -th entry. For a vector a ∈ R d \mathbf{a} \in\mathbb{R}^{d} a ∈ R d , we write a i a_i a i for its i i i -th coordinate. Let diag ( A , B ) \operatorname{diag}(\mathbf{A}, \mathbf{B}) diag ( A , B ) denote the block-diagonal matrix [ A 0 0 B ] \begin{bmatrix} \mathbf{A} & 0 \\ 0 & \mathbf{B} \end{bmatrix} [ A 0 0 B ] given matrices A \mathbf{A} A and B \mathbf{B} B . Let 0 K × K ∈ R K × K \mathbf{0}_{K \times K} \in\mathbb{R}^{K \times K} 0 K × K ∈ R K × K denote the zero matrix, I K ∈ R K × K \mathbf{I}_{K} \in\mathbb{R}^{K \times K} I K ∈ R K × K denote the identity matrix for an integer K ≥ 0 K \ge0 K ≥ 0 , with empty matrices when K = 0 K = 0 K = 0 .
Technical Appendices
Proof of Proposition 1
Proof. Assume there exists r 0 > 0 r_0 > 0 r 0 > 0 such that the following hold in the neighborhood N r 0 ( θ 0 ) : = { θ ∈ R d : ∥ θ − θ 0 ∥ 2 < r 0 } \mathcal{N}_{r_0}(\theta_0) := \{\theta\in\mathbb{R}^{d} : \lVert\theta-\theta_0\rVert_2 < r_0\} N r 0 ( θ 0 ) := { θ ∈ R d : ∥ θ − θ 0 ∥ 2 < r 0 } :
For R \mathcal{R} R -almost every x x x , the distributions p θ ( ⋅ ∣ x ) p_{\theta}(\cdot\mid x) p θ ( ⋅ ∣ x ) have a common support Y x \mathcal{Y}_x Y x throughout N r 0 ( θ 0 ) \mathcal{N}_{r_0}(\theta_0) N r 0 ( θ 0 ) and are strictly positive on that support. For every y ∈ Y x y \in\mathcal{Y}_x y ∈ Y x , the map θ ↦ log p θ ( y ∣ x ) \theta\mapsto\log p_{\theta}(y \mid x) θ ↦ log p θ ( y ∣ x ) is three times continuously differentiable there.
Differentiating ∫ Y x p θ ( y ∣ x ) d y = 1 \int_{\mathcal{Y}_x} p_{\theta}(y \mid x)\,dy = 1 ∫ Y x p θ ( y ∣ x ) d y = 1 twice under the integral is valid; for example, the first two derivatives of p θ p_{\theta} p θ admit integrable dominating envelopes on this neighborhood. The first two log derivatives at θ 0 \theta_0 θ 0 and the squared score have finite joint expectations under x ∼ R , y ∼ p θ 0 ( ⋅ ∣ x ) x \sim\mathcal{R}, y \sim p_{\theta_0}(\cdot\mid x) x ∼ R , y ∼ p θ 0 ( ⋅ ∣ x ) .
There exists an integrable envelope G ( x , y ) G(x,y) G ( x , y ) such that
sup θ ∈ N r 0 ( θ 0 ) ∥ ∇ θ 3 log p θ ( y ∣ x ) ∥ ≤ G ( x , y ) , E x ∼ R , y ∼ p θ 0 ( ⋅ ∣ x ) [ G ( x , y ) ] < ∞ . \sup_{\theta\in\mathcal{N}_{r_0}(\theta_0)} \left\lVert\nabla_{\theta}^{3} \log p_{\theta}(y \mid x) \right\rVert\le G(x,y), \qquad\mathbb{E}_{x \sim\mathcal{R},\, y \sim p_{\theta_0}(\cdot\mid x)}[G(x,y)] < \infty. θ ∈ N r 0 ( θ 0 ) sup ∇ θ 3 log p θ ( y ∣ x ) ≤ G ( x , y ) , E x ∼ R , y ∼ p θ 0 ( ⋅ ∣ x ) [ G ( x , y )] < ∞.
For a fixed x x x , define
d x ( θ ) = D K L ( p θ 0 ( ⋅ ∣ x ) ∥ p θ ( ⋅ ∣ x ) ) . d_x(\theta) = D_{\mathrm{KL}}(p_{\theta_0}(\cdot\mid x) \mathbin{\|} p_{\theta}(\cdot\mid x)). d x ( θ ) = D KL ( p θ 0 ( ⋅ ∣ x ) ∥ p θ ( ⋅ ∣ x )) .
Then,
D R ( Δ θ ) = E x ∼ R [ d x ( θ 0 + Δ θ ) ] . D_{\mathcal{R}}(\Delta\theta)=\mathbb{E}_{x\sim\mathcal{R}}\left[d_x(\theta_0+\Delta\theta)\right]. D R ( Δ θ ) = E x ∼ R [ d x ( θ 0 + Δ θ ) ] .
From the definition of KL divergence,
d x ( θ ) ≔ E y ∼ p θ 0 ( ⋅ ∣ x ) [ log p θ 0 ( y ∣ x ) − log p θ ( y ∣ x ) ] . d_x(\theta)\coloneqq\mathbb{E}_{y\sim p_{\theta_0}(\cdot\mid x)}\left[\log p_{\theta_0}(y\mid x)-\log p_\theta(y\mid x)\right]. d x ( θ ) : = E y ∼ p θ 0 ( ⋅ ∣ x ) [ log p θ 0 ( y ∣ x ) − log p θ ( y ∣ x ) ] .
and
∇ θ d x ( θ ) = E p θ 0 ( ⋅ ∣ x ) [ − ∇ θ log p θ ( ⋅ ∣ x ) ] , ∇ θ 2 d x ( θ ) = E p θ 0 ( ⋅ ∣ x ) [ − ∇ θ 2 log p θ ( ⋅ ∣ x ) ] . \nabla_\theta d_x(\theta)=\mathbb{E}_{p_{\theta_0}(\cdot\mid x)}\left[-\nabla_\theta\log p_\theta(\cdot\mid x)\right],\qquad\nabla_\theta^2d_x(\theta)=\mathbb{E}_{p_{\theta_0}(\cdot\mid x)}\left[-\nabla_\theta^2\log p_\theta(\cdot\mid x)\right]. ∇ θ d x ( θ ) = E p θ 0 ( ⋅ ∣ x ) [ − ∇ θ log p θ ( ⋅ ∣ x ) ] , ∇ θ 2 d x ( θ ) = E p θ 0 ( ⋅ ∣ x ) [ − ∇ θ 2 log p θ ( ⋅ ∣ x ) ] .
At θ = θ 0 \theta=\theta_0 θ = θ 0 ,
∇ θ d x ( θ ) ∣ θ = θ 0 = E p θ 0 ( ⋅ ∣ x ) [ − ∇ θ log p θ 0 ( ⋅ ∣ x ) ] = − ∫ Y x p θ 0 ( y ∣ x ) ∇ θ p θ 0 ( y ∣ x ) p θ 0 ( y ∣ x ) d y = − ∇ θ ∫ Y x p θ 0 ( y ∣ x ) d y = 0 d . \begin{aligned}
\nabla_\theta d_x(\theta)\big|_{\theta=\theta_0}=\mathbb{E}_{p_{\theta_0}(\cdot\mid x)}\left[-\nabla_\theta\log p_{\theta_0}(\cdot\mid x)\right] \\
&=-\int_{\mathcal{Y}_x}p_{\theta_0}(y\mid x)\frac{\nabla_\theta p_{\theta_0}(y\mid x)}{p_{\theta_0}(y\mid x)}\,dy \\
&=-\nabla_\theta\int_{\mathcal{Y}_x}p_{\theta_0}(y\mid x)\,dy \\
&=\mathbf{0}_d.
\end{aligned} ∇ θ d x ( θ ) θ = θ 0 = E p θ 0 ( ⋅ ∣ x ) [ − ∇ θ log p θ 0 ( ⋅ ∣ x ) ] = − ∫ Y x p θ 0 ( y ∣ x ) p θ 0 ( y ∣ x ) ∇ θ p θ 0 ( y ∣ x ) d y = − ∇ θ ∫ Y x p θ 0 ( y ∣ x ) d y = 0 d .
and
∇ θ 2 d x ( θ ) ∣ θ = θ 0 = E p θ 0 ( ⋅ ∣ x ) [ − ∇ θ 2 log p θ 0 ( ⋅ ∣ x ) ] . \nabla_\theta^2d_x(\theta)\big|_{\theta=\theta_0}=\mathbb{E}_{p_{\theta_0}(\cdot\mid x)}\left[-\nabla_\theta^2\log p_{\theta_0}(\cdot\mid x)\right]. ∇ θ 2 d x ( θ ) θ = θ 0 = E p θ 0 ( ⋅ ∣ x ) [ − ∇ θ 2 log p θ 0 ( ⋅ ∣ x ) ] .
By a second-order Taylor expansion around θ = θ 0 \theta=\theta_0 θ = θ 0 ,
d x ( θ ) = d x ( θ 0 ) + ∇ θ d x ( θ ) ∣ θ = θ 0 T ( θ − θ 0 ) + 1 2 ( θ − θ 0 ) T ∇ θ 2 d x ( θ ) ∣ θ = θ 0 ( θ − θ 0 ) + R x ( Δ θ ) = 1 2 Δ θ T E p θ 0 ( ⋅ ∣ x ) [ − ∇ θ 2 log p θ 0 ( ⋅ ∣ x ) ] Δ θ + R x ( Δ θ ) , \begin{aligned}
d_x(\theta)=d_x(\theta_0)+\nabla_\theta d_x(\theta)\big|_{\theta=\theta_0}^{\mathsf T}(\theta-\theta_0)+\frac{1}{2}(\theta-\theta_0)^{\mathsf T}\nabla_\theta^2d_x(\theta)\big|_{\theta=\theta_0}(\theta-\theta_0)+R_x(\Delta\theta) \\
&=\frac{1}{2}\Delta\theta^{\mathsf T}\mathbb{E}_{p_{\theta_0}(\cdot\mid x)}\left[-\nabla_\theta^2\log p_{\theta_0}(\cdot\mid x)\right]\Delta\theta+R_x(\Delta\theta),
\end{aligned} d x ( θ ) = d x ( θ 0 ) + ∇ θ d x ( θ ) θ = θ 0 T ( θ − θ 0 ) + 2 1 ( θ − θ 0 ) T ∇ θ 2 d x ( θ ) θ = θ 0 ( θ − θ 0 ) + R x ( Δ θ ) = 2 1 Δ θ T E p θ 0 ( ⋅ ∣ x ) [ − ∇ θ 2 log p θ 0 ( ⋅ ∣ x ) ] Δ θ + R x ( Δ θ ) ,
where R x ( Δ θ ) R_x(\Delta\theta) R x ( Δ θ ) is Taylor remainder. The common-support and differentiation assumptions give the Fisher identity [63 ] ,
F R = E x ∼ R E y ∼ p θ 0 ( ⋅ ∣ x ) [ − ∇ θ 2 log p θ 0 ( ⋅ ∣ x ) ] , F_{\mathcal{R}}=\mathbb{E}_{x\sim\mathcal{R}}\mathbb{E}_{y\sim p_{\theta_0}(\cdot\mid x)}\left[-\nabla_\theta^2\log p_{\theta_0}(\cdot\mid x)\right], F R = E x ∼ R E y ∼ p θ 0 ( ⋅ ∣ x ) [ − ∇ θ 2 log p θ 0 ( ⋅ ∣ x ) ] ,
which leads to,
D R ( Δ θ ) = 1 2 Δ θ T F R Δ θ + E x ∼ R [ R x ( Δ θ ) ] . D_{\mathcal{R}}(\Delta\theta)=\frac{1}{2}\Delta\theta^{\mathsf T}F_{\mathcal{R}}\Delta\theta+\mathbb{E}_{x\sim\mathcal{R}}\left[R_x(\Delta\theta)\right]. D R ( Δ θ ) = 2 1 Δ θ T F R Δ θ + E x ∼ R [ R x ( Δ θ ) ] .
For ∥ Δ θ ∥ 2 < r 0 \lVert\Delta\theta\rVert_2<r_0 ∥ Δ θ ∥ 2 < r 0 , Taylor’s theorem applied to each log density, followed by expectation over y y y , gives
∣ R x ( Δ θ ) ∣ ≤ ∥ Δ θ ∥ 2 3 6 E y ∼ p θ 0 ( ⋅ ∣ x ) [ sup θ ∈ N r 0 ( θ 0 ) ∥ ∇ θ 3 log p θ ( y ∣ x ) ∥ ] ≤ ∥ Δ θ ∥ 2 3 6 E y ∼ p θ 0 ( ⋅ ∣ x ) [ G ( x , y ) ] . \begin{aligned}
\left|R_x(\Delta\theta)\right|\leq\frac{\lVert\Delta\theta\rVert_2^3}{6}\mathbb{E}_{y\sim p_{\theta_0}(\cdot\mid x)}\left[\sup_{\theta\in\mathcal{N}_{r_0}(\theta_0)}\left\lVert\nabla_\theta^3\log p_\theta(y\mid x)\right\rVert\right] \\
&\leq\frac{\lVert\Delta\theta\rVert_2^3}{6}\mathbb{E}_{y\sim p_{\theta_0}(\cdot\mid x)}\left[G(x,y)\right].
\end{aligned} ∣ R x ( Δ θ ) ∣ ≤ 6 ∥ Δ θ ∥ 2 3 E y ∼ p θ 0 ( ⋅ ∣ x ) [ θ ∈ N r 0 ( θ 0 ) sup ∇ θ 3 log p θ ( y ∣ x ) ] ≤ 6 ∥ Δ θ ∥ 2 3 E y ∼ p θ 0 ( ⋅ ∣ x ) [ G ( x , y ) ] .
Taking expectation over x ∼ R x\sim\mathcal{R} x ∼ R gives
∣ D R ( Δ θ ) − 1 2 Δ θ T F R Δ θ ∣ ≤ ∥ Δ θ ∥ 2 3 6 E x ∼ R E y ∼ p θ 0 ( ⋅ ∣ x ) [ G ( x , y ) ] . \left|D_{\mathcal{R}}(\Delta\theta)-\frac{1}{2}\Delta\theta^{\mathsf T}F_{\mathcal{R}}\Delta\theta\right|\leq\frac{\lVert\Delta\theta\rVert_2^3}{6}\mathbb{E}_{x\sim\mathcal{R}}\mathbb{E}_{y\sim p_{\theta_0}(\cdot\mid x)}\left[G(x,y)\right]. D R ( Δ θ ) − 2 1 Δ θ T F R Δ θ ≤ 6 ∥ Δ θ ∥ 2 3 E x ∼ R E y ∼ p θ 0 ( ⋅ ∣ x ) [ G ( x , y ) ] .
Since the envelope is integrable,
D R ( Δ θ ) = 1 2 Δ θ T F R Δ θ + o ( ∥ Δ θ ∥ 2 2 ) . D_{\mathcal{R}}(\Delta\theta)=\frac{1}{2}\Delta\theta^{\mathsf T}F_{\mathcal{R}}\Delta\theta+o(\lVert\Delta\theta\rVert_2^2). D R ( Δ θ ) = 2 1 Δ θ T F R Δ θ + o (∥ Δ θ ∥ 2 2 ) .
This proves the claim.
Proof of Proposition 2
Theorem 1 (Oracle safe update (full)). Let F R ⪰ 0 F_{\mathcal{R}}\succeq0 F R ⪰ 0 and let g T ≠ 0 g_T\ne0 g T = 0 . For ρ > 0 \rho>0 ρ > 0 and ϵ > 0 \epsilon>0 ϵ > 0 , consider
Δ ⋆ ∈ arg min Δ ∈ R d g T T Δ subject to 1 2 Δ T F R Δ ≤ ρ , ∥ Δ ∥ 2 ≤ ϵ . \Delta^\star\in\arg\min_{\Delta\in\mathbb{R}^d}g_T^{\mathsf T}\Delta\quad\text{subject to}\quad\frac{1}{2}\Delta^{\mathsf T}F_{\mathcal{R}}\Delta\leq\rho,\qquad\lVert\Delta\rVert_2\leq\epsilon. Δ ⋆ ∈ arg Δ ∈ R d min g T T Δ subject to 2 1 Δ T F R Δ ≤ ρ , ∥ Δ ∥ 2 ≤ ϵ . The optimal solutions are characterized by the following cases, checked in order. Here a constraint is tight when it holds with equality; tightness alone does not imply a strictly positive KKT multiplier.
Feasible norm-only optimum. If
ϵ 2 2 ∥ g T ∥ 2 2 g T ⊤ F R g T ≤ ρ , \frac{\epsilon^2}{2\lVert g_T\rVert_2^2}g_T^\top F_R g_T \le\rho, 2 ∥ g T ∥ 2 2 ϵ 2 g T ⊤ F R g T ≤ ρ ,
then a zero drift multiplier is valid, and the unique solution is
Δ ⋆ = − ϵ g T ∥ g T ∥ 2 . \Delta^\star=-\epsilon\frac{g_T}{\lVert g_T\rVert_2}. Δ ⋆ = − ϵ ∥ g T ∥ 2 g T .
Feasible drift-only optimum. Suppose g T ∈ Range ( F R ) g_T\in\operatorname{Range}(F_R) g T ∈ Range ( F R ) and define
Δ R = − 2 ρ g T ⊤ F R † g T F R † g T , \Delta_R=-\sqrt{\frac{2\rho}{g_T^\top F_R^\dagger g_T}}F_R^\dagger g_T, Δ R = − g T ⊤ F R † g T 2 ρ F R † g T ,
where F R † F_R^\dagger F R † denotes the Moore–Penrose pseudoinverse. If
∥ Δ R ∥ 2 ≤ ϵ , \lVert\Delta_R\rVert_2\le\epsilon, ∥ Δ R ∥ 2 ≤ ϵ ,
then a zero norm multiplier is valid, and the complete optimal set is
{ Δ R + v : v ∈ Null ( F R ) , ∥ v ∥ 2 2 ≤ ϵ 2 − ∥ Δ R ∥ 2 2 } . \left\{\Delta_R+v:v\in\operatorname{Null}(F_R),\quad\lVert v\rVert_2^2\le\epsilon^2-\lVert\Delta_R\rVert_2^2\right\}. { Δ R + v : v ∈ Null ( F R ) , ∥ v ∥ 2 2 ≤ ϵ 2 − ∥ Δ R ∥ 2 2 } .
In particular, Δ R \Delta_R Δ R is the minimum-norm optimum. The norm constraint can still be tight for some of these optima.
Both multipliers strictly positive. In all remaining cases, both constraints are tight and both KKT multipliers are strictly positive. There exists a unique damping parameter α > 0 \alpha>0 α > 0 such that
ϵ 2 2 g T ⊤ ( F R + α I ) − 1 F R ( F R + α I ) − 1 g T g T ⊤ ( F R + α I ) − 2 g T = ρ , \frac{\epsilon^2}{2}\frac{g_T^\top(F_R+\alpha I)^{-1}F_R(F_R+\alpha I)^{-1}g_T}{g_T^\top(F_R+\alpha I)^{-2}g_T}=\rho, 2 ϵ 2 g T ⊤ ( F R + α I ) − 2 g T g T ⊤ ( F R + α I ) − 1 F R ( F R + α I ) − 1 g T = ρ ,
and the solution is
Δ ⋆ = − ϵ ( F R + α I ) − 1 g T ∥ ( F R + α I ) − 1 g T ∥ 2 . \Delta^\star=-\epsilon\frac{(F_R+\alpha I)^{-1}g_T}{\lVert(F_R+\alpha I)^{-1}g_T\rVert_2}. Δ ⋆ = − ϵ ∥( F R + α I ) − 1 g T ∥ 2 ( F R + α I ) − 1 g T .
In case 3, the unique solution has the KKT representation
Δ ⋆ = − c ( F R + α I ) − 1 g T \Delta^\star=-c(F_R+\alpha I)^{-1}g_T Δ ⋆ = − c ( F R + α I ) − 1 g T
for some c > 0 c>0 c > 0 and α > 0 \alpha>0 α > 0 . The endpoint α → ∞ \alpha\to\infty α → ∞ yields the normalized Euclidean direction in case 1. In case 2, the pseudoinverse gives the minimum-norm optimum with its drift-determined scale; arbitrary feasible nullspace components must be included to recover every optimum.
Proof. Rewrite (6) as a minimization:
min Δ θ ∈ R d g T ⊤ Δ θ subject to 1 2 Δ θ ⊤ F R Δ θ ≤ ρ , ∥ Δ θ ∥ 2 2 ≤ ϵ 2 . (13) \min_{\Delta\theta\in\mathbb{R}^d}g_T^\top\Delta\theta\quad\text{subject to}\quad\frac{1}{2}\Delta\theta^\top F_R\Delta\theta\le\rho,\quad\lVert\Delta\theta\rVert_2^2\le\epsilon^2. \tag*{(13)} Δ θ ∈ R d min g T ⊤ Δ θ subject to 2 1 Δ θ ⊤ F R Δ θ ≤ ρ , ∥ Δ θ ∥ 2 2 ≤ ϵ 2 . (13)
The objective is linear and both constraints are convex since F R ⪰ 0 F_R\succeq0 F R ⪰ 0 and ∥ ⋅ ∥ 2 \lVert\cdot\rVert_2 ∥ ⋅ ∥ 2 is convex. Note here that F R ⪰ 0 F_R\succeq0 F R ⪰ 0 always holds since for any v ∈ R d v\in\mathbb{R}^d v ∈ R d , v ⊤ F R v = E [ ( v ⊤ s θ 0 ( x , y ) ) 2 ] ≥ 0 v^\top F_Rv=\mathbb{E}[(v^\top s_{\theta_0}(x,y))^2]\ge0 v ⊤ F R v = E [( v ⊤ s θ 0 ( x , y ) ) 2 ] ≥ 0 . Taking Δ θ = 0 \Delta\theta=0 Δ θ = 0 gives 0 < ρ 0<\rho 0 < ρ and 0 < ϵ 2 0<\epsilon^2 0 < ϵ 2 , which is strictly feasible for any ρ , ϵ > 0 \rho,\epsilon>0 ρ , ϵ > 0 . The feasible set is compact and nonempty, so an optimum exists. Slater’s condition and strong duality hold, and the KKT conditions are necessary and sufficient for a global optimum.
Form the Lagrangian with multipliers σ ≥ 0 \sigma\ge0 σ ≥ 0 and μ ≥ 0 \mu\ge0 μ ≥ 0 :
L ( Δ θ , σ , μ ) = g T ⊤ Δ θ + σ ( 1 2 Δ θ ⊤ F R Δ θ − ρ ) + μ ( ∥ Δ θ ∥ 2 2 − ϵ 2 ) . \mathcal{L}(\Delta\theta,\sigma,\mu)=g_T^\top\Delta\theta+\sigma\left(\frac{1}{2}\Delta\theta^\top F_R\Delta\theta-\rho\right)+\mu\left(\lVert\Delta\theta\rVert_2^2-\epsilon^2\right). L ( Δ θ , σ , μ ) = g T ⊤ Δ θ + σ ( 2 1 Δ θ ⊤ F R Δ θ − ρ ) + μ ( ∥ Δ θ ∥ 2 2 − ϵ 2 ) .
Stationarity. Setting ∇ Δ θ L = 0 \nabla_{\Delta\theta}\mathcal{L}=0 ∇ Δ θ L = 0 :
g T + σ F R Δ θ + 2 μ Δ θ = 0 ⟹ ( σ F R + 2 μ I ) Δ θ = − g T . (14) g_T+\sigma F_R\Delta\theta+2\mu\Delta\theta=0\Longrightarrow(\sigma F_R+2\mu I)\Delta\theta=-g_T. \tag*{(14)} g T + σ F R Δ θ + 2 μ Δ θ = 0 ⟹ ( σ F R + 2 μ I ) Δ θ = − g T . (14)
For any μ > 0 \mu>0 μ > 0 , the matrix σ F R + 2 μ I \sigma F_R+2\mu I σ F R + 2 μ I has an inverse regardless of whether F R F_R F R is singular, and:
Δ θ ⋆ = − ( σ F R + 2 μ I ) − 1 g T . (15) \Delta\theta^\star=-(\sigma F_R+2\mu I)^{-1}g_T. \tag*{(15)} Δ θ ⋆ = − ( σ F R + 2 μ I ) − 1 g T . (15)
Complementary slackness.
σ ( 1 2 ( Δ θ ⋆ ) ⊤ F R Δ θ ⋆ − ρ ) = 0 , (16) \sigma\left(\frac{1}{2}(\Delta\theta^\star)^\top F_R\Delta\theta^\star-\rho\right)=0, \tag*{(16)} σ ( 2 1 ( Δ θ ⋆ ) ⊤ F R Δ θ ⋆ − ρ ) = 0 , (16)
μ ( ∥ Δ θ ⋆ ∥ 2 2 − ϵ 2 ) = 0. (17) \mu\left(\lVert\Delta\theta^\star\rVert_2^2-\epsilon^2\right)=0. \tag*{(17)} μ ( ∥ Δ θ ⋆ ∥ 2 2 − ϵ 2 ) = 0. (17)
We consider the three non-trivial cases.
Case 1: σ = 0 \sigma=0 σ = 0 , μ = 0 \mu=0 μ = 0 . Stationarity gives g T = 0 g_T=0 g T = 0 , which is trivial. Assume g T ≠ 0 g_T\ne0 g T = 0 , so this case does not arise.
Case 2: σ > 0 \sigma>0 σ > 0 , μ = 0 \mu=0 μ = 0 (zero norm multiplier ). Stationarity requires g T ∈ Range ( F R ) g_T\in\operatorname{Range}(F_R) g T ∈ Range ( F R ) and gives Δ θ ⋆ = − σ − 1 F R † g T + v \Delta\theta^\star=-\sigma^{-1}F_R^\dagger g_T+v Δ θ ⋆ = − σ − 1 F R † g T + v with v ∈ Null ( F R ) v\in\operatorname{Null}(F_R) v ∈ Null ( F R ) . A zero norm multiplier allows either a slack or a tight norm constraint. By (16), the quadratic drift constraint is tight:
1 2 ( Δ θ ⋆ ) ⊤ F R Δ θ ⋆ = ρ . \frac{1}{2}(\Delta\theta^\star)^\top F_R\Delta\theta^\star=\rho. 2 1 ( Δ θ ⋆ ) ⊤ F R Δ θ ⋆ = ρ .
Substituting this stationarity solution and using F R v = 0 F_Rv=0 F R v = 0 :
1 2 σ 2 g T ⊤ F R † F R F R † g T = 1 2 σ 2 g T ⊤ F R † g T = ρ , \frac{1}{2\sigma^2}g_T^\top F_R^\dagger F_RF_R^\dagger g_T
=\frac{1}{2\sigma^2}g_T^\top F_R^\dagger g_T=\rho, 2 σ 2 1 g T ⊤ F R † F R F R † g T = 2 σ 2 1 g T ⊤ F R † g T = ρ ,
giving σ ⋆ = g T ⊤ F R † g T / ( 2 ρ ) \sigma^\star=\sqrt{g_T^\top F_R^\dagger g_T/(2\rho)} σ ⋆ = g T ⊤ F R † g T / ( 2 ρ ) , and every solution in this case is:
Δ θ ⋆ = − 2 ρ g T ⊤ F R † g T F R † g T + v , v ∈ Null ( F R ) , ∥ v ∥ 2 2 ≤ ϵ 2 − ∥ Δ R ∥ 2 2 . (18) \Delta\theta^\star=-\sqrt{\frac{2\rho}{g_T^\top F_R^\dagger g_T}}F_R^\dagger g_T+v,\qquad v\in\operatorname{Null}(F_R),\qquad\lVert v\rVert_2^2\le\epsilon^2-\lVert\Delta_R\rVert_2^2. \tag*{(18)} Δ θ ⋆ = − g T ⊤ F R † g T 2 ρ F R † g T + v , v ∈ Null ( F R ) , ∥ v ∥ 2 2 ≤ ϵ 2 − ∥ Δ R ∥ 2 2 . (18)
where F R † F_R^\dagger F R † is the Moore–Penrose pseudoinverse. Let the decomposition of g T g_T g T
g T = g r a n g e + g n u l l , g n u l l ∈ Null ( F R ) , g_T=g_{\mathrm{range}}+g_{\mathrm{null}},\qquad g_{\mathrm{null}}\in\operatorname{Null}(F_R), g T = g range + g null , g null ∈ Null ( F R ) ,
The range and nullspace components in (18) are orthogonal, so this set is nonempty exactly when ∥ Δ R ∥ 2 ≤ ϵ \lVert\Delta_R\rVert_2\le\epsilon ∥ Δ R ∥ 2 ≤ ϵ . Every such point satisfies KKT and is optimal; equality in the drift-only Cauchy–Schwarz bound forces this range component, so the set is complete. If g n u l l ≠ 0 g_{\mathrm{null}}\ne0 g null = 0 , the problem without the norm constraint is unbounded below along − g n u l l -g_{\mathrm{null}} − g null . The original norm-constrained problem remains bounded, and projecting stationarity onto the nullspace shows that its norm multiplier must satisfy μ > 0 \mu>0 μ > 0 .
Case 3: σ = 0 \sigma=0 σ = 0 , μ > 0 \mu>0 μ > 0 (norm constraint active ). By the slackness condition (17),
∥ Δ θ ⋆ ∥ 2 2 = 1 4 μ 2 ∥ g T ∥ 2 2 = ϵ 2 \lVert\Delta\theta^\star\rVert_2^2=\frac{1}{4\mu^2}\lVert g_T\rVert_2^2=\epsilon^2 ∥ Δ θ ⋆ ∥ 2 2 = 4 μ 2 1 ∥ g T ∥ 2 2 = ϵ 2
leading to μ ⋆ = ∥ g T ∥ 2 / 2 ϵ \mu^\star=\lVert g_T\rVert_2/2\epsilon μ ⋆ = ∥ g T ∥ 2 /2 ϵ . Thus,
Δ θ ⋆ = − ϵ ∥ g T ∥ 2 g T \Delta\theta^\star=-\frac{\epsilon}{\lVert g_T\rVert_2}g_T Δ θ ⋆ = − ∥ g T ∥ 2 ϵ g T
This point is feasible exactly under the condition in case 1 of the theorem and is the unique minimizer over the Euclidean ball. Its drift constraint may be slack or tight, while the drift multiplier can be zero.
Case 4: σ > 0 \sigma>0 σ > 0 , μ > 0 \mu>0 μ > 0 (both multipliers positive ). If neither of the preceding feasible cases applies, both multipliers must be positive. In this case the solution takes the form (15), which we write compactly:
Δ θ ⋆ = − 1 σ ⋆ ( F R + α I ) − 1 g T , \Delta\theta^\star=-\frac{1}{\sigma^\star}(F_R+\alpha I)^{-1}g_T, Δ θ ⋆ = − σ ⋆ 1 ( F R + α I ) − 1 g T ,
where α = 2 μ ⋆ / σ ⋆ > 0 \alpha=2\mu^\star/\sigma^\star>0 α = 2 μ ⋆ / σ ⋆ > 0 . Both constraints are tight by complementary slackness, and the Lagrangian has positive-definite Hessian σ ⋆ F R + 2 μ ⋆ I \sigma^\star F_R+2\mu^\star I σ ⋆ F R + 2 μ ⋆ I , so this optimum is unique. The update is a damped natural gradient with damping determined by the ratio of the two multipliers.
Using the active norm constraint ( ∥ Δ θ ⋆ ∥ 2 = ϵ (\lVert\Delta\theta^\star\rVert_2=\epsilon (∥ Δ θ ⋆ ∥ 2 = ϵ , we let σ ⋆ = ∥ ( F R + α I ) − 1 g T ∥ 2 / ϵ \sigma^\star=\lVert(F_R+\alpha I)^{-1}g_T\rVert_2/\epsilon σ ⋆ = ∥( F R + α I ) − 1 g T ∥ 2 / ϵ , and Δ θ ⋆ \Delta\theta^\star Δ θ ⋆ becomes
Δ θ ⋆ = − ϵ ( F R + α I ) − 1 g T ∥ ( F R + α I ) − 1 g T ∥ 2 , (19) \Delta\theta^\star=-\epsilon\frac{(F_R+\alpha I)^{-1}g_T}{\lVert(F_R+\alpha I)^{-1}g_T\rVert_2}, \tag*{(19)} Δ θ ⋆ = − ϵ ∥( F R + α I ) − 1 g T ∥ 2 ( F R + α I ) − 1 g T , (19)
Then, α \alpha α is chosen to satisfy (16)
1 2 ( σ ⋆ ) 2 g T ⊤ ( F R + α I ) − 1 F R ( F R + α I ) − 1 g T = ρ (20) \frac{1}{2(\sigma^\star)^2}g_T^\top(F_R+\alpha I)^{-1}F_R(F_R+\alpha I)^{-1}g_T=\rho \tag*{(20)} 2 ( σ ⋆ ) 2 1 g T ⊤ ( F R + α I ) − 1 F R ( F R + α I ) − 1 g T = ρ (20)
The existence of positive multipliers gives a positive root of this scalar equation. In this remaining case the target gradient must have components on at least two distinct eigenvalues: for a single supported eigenvalue, either the norm-only optimum is feasible or the drift-only optimum is feasible. Proposition 3 below therefore gives uniqueness of α \alpha α .
Characterization of alpha
Let ( λ i , v i ) i = 1 d (\lambda_i,v_i)_{i=1}^d ( λ i , v i ) i = 1 d be a complete orthonormal eigensystem of F R \mathbf{F}_R F R , including zero eigenvalues, and write g T = ∑ i c i v i g_T=\sum_i c_i v_i g T = ∑ i c i v i . Proposition 2 gives the oracle direction when both multipliers are positive. When both multipliers are positive, α \alpha α is a positive root of the scalar equation ϕ ( α ) = 2 ρ / ϵ 2 \phi(\alpha)=2\rho/\epsilon^2 ϕ ( α ) = 2 ρ / ϵ 2 , where the sums include all eigenvectors, including those with λ i = 0 \lambda_i=0 λ i = 0 :
ϕ ( α ) : = ∑ i λ i c i 2 ( λ i + α ) 2 ∑ i c i 2 ( λ i + α ) 2 \phi(\alpha):=\frac{\sum_i\frac{\lambda_i c_i^2}{(\lambda_i+\alpha)^2}}{\sum_i\frac{c_i^2}{(\lambda_i+\alpha)^2}} ϕ ( α ) := ∑ i ( λ i + α ) 2 c i 2 ∑ i ( λ i + α ) 2 λ i c i 2
Proposition 3. Let ϕ \phi ϕ be defined as above with g T ≠ 0 g_T\ne0 g T = 0 . Then ϕ \phi ϕ is nondecreasing on ( 0 , ∞ ) (0,\infty) ( 0 , ∞ ) . If there exist i ≠ j i\ne j i = j such that c i c j ≠ 0 c_i c_j\ne0 c i c j = 0 and λ i ≠ λ j \lambda_i\ne\lambda_j λ i = λ j , then ϕ ′ ( α ) > 0 \phi'(\alpha)>0 ϕ ′ ( α ) > 0 for all α > 0 \alpha>0 α > 0 ; under this condition, any positive solution is unique. Otherwise, ϕ \phi ϕ is constant at the single eigenvalue supported by g T g_T g T , so a matching level has every α > 0 \alpha>0 α > 0 as a solution.
Proof.
N ( α ) : = ∑ i λ i c i 2 ( λ i + α ) 2 , D ( α ) : = ∑ i c i 2 ( λ i + α ) 2 , ϕ ( α ) = N ( α ) D ( α ) N(\alpha):=\sum_i\frac{\lambda_i c_i^2}{(\lambda_i+\alpha)^2},\qquad D(\alpha):=\sum_i\frac{c_i^2}{(\lambda_i+\alpha)^2},\qquad\phi(\alpha)=\frac{N(\alpha)}{D(\alpha)} N ( α ) := i ∑ ( λ i + α ) 2 λ i c i 2 , D ( α ) := i ∑ ( λ i + α ) 2 c i 2 , ϕ ( α ) = D ( α ) N ( α )
Since D ( α ) > 0 D(\alpha)>0 D ( α ) > 0 for all α > 0 \alpha>0 α > 0 , the quotient is well defined. We then differentiate both N ( α ) N(\alpha) N ( α ) and D ( α ) D(\alpha) D ( α ) .
ϕ ′ ( α ) = N ′ ( α ) D ( α ) − N ( α ) D ′ ( α ) D ( α ) 2 \phi'(\alpha)=\frac{N'(\alpha)D(\alpha)-N(\alpha)D'(\alpha)}{D(\alpha)^2} ϕ ′ ( α ) = D ( α ) 2 N ′ ( α ) D ( α ) − N ( α ) D ′ ( α )
Moreover,
N ′ ( α ) = − 2 ∑ i λ i c i 2 ( λ i + α ) 3 , D ′ ( α ) = − 2 ∑ i c i 2 ( λ i + α ) 3 N'(\alpha)=-2\sum_i\frac{\lambda_i c_i^2}{(\lambda_i+\alpha)^3},\qquad D'(\alpha)=-2\sum_i\frac{c_i^2}{(\lambda_i+\alpha)^3} N ′ ( α ) = − 2 i ∑ ( λ i + α ) 3 λ i c i 2 , D ′ ( α ) = − 2 i ∑ ( λ i + α ) 3 c i 2
so
N ′ ( α ) D ( α ) − N ( α ) D ′ ( α ) = 2 ∑ i , j λ i c i 2 c j 2 ( λ i − λ j ) ( λ i + α ) 3 ( λ j + α ) 3 N'(\alpha)D(\alpha)-N(\alpha)D'(\alpha)=2\sum_{i,j}\frac{\lambda_i c_i^2c_j^2(\lambda_i-\lambda_j)}{(\lambda_i+\alpha)^3(\lambda_j+\alpha)^3} N ′ ( α ) D ( α ) − N ( α ) D ′ ( α ) = 2 i , j ∑ ( λ i + α ) 3 ( λ j + α ) 3 λ i c i 2 c j 2 ( λ i − λ j )
Pairing the ( i , j ) (i,j) ( i , j ) and ( j , i ) (j,i) ( j , i ) terms gives
N ′ ( α ) D ( α ) − N ( α ) D ′ ( α ) = ∑ i < j 2 c i 2 c j 2 ( λ i − λ j ) 2 ( λ i + α ) 3 ( λ j + α ) 3 ≥ 0. N'(\alpha)D(\alpha)-N(\alpha)D'(\alpha)=\sum_{i<j}\frac{2c_i^2c_j^2(\lambda_i-\lambda_j)^2}{(\lambda_i+\alpha)^3(\lambda_j+\alpha)^3}\ge0. N ′ ( α ) D ( α ) − N ( α ) D ′ ( α ) = i < j ∑ ( λ i + α ) 3 ( λ j + α ) 3 2 c i 2 c j 2 ( λ i − λ j ) 2 ≥ 0.
Hence ϕ ′ ( α ) ≥ 0 \phi'(\alpha)\ge0 ϕ ′ ( α ) ≥ 0 for all α > 0 \alpha>0 α > 0 . If there exist i ≠ j i\ne j i = j such that c i c j ≠ 0 c_i c_j\ne0 c i c j = 0 and λ i ≠ λ j \lambda_i\ne\lambda_j λ i = λ j , then the corresponding pairwise term is strictly positive for every α > 0 \alpha>0 α > 0 , so ϕ ′ ( α ) > 0 \phi'(\alpha)>0 ϕ ′ ( α ) > 0 .
The endpoint values are
ϕ ∞ = g T T F R g T ∥ g T ∥ 2 2 , ϕ 0 = lim α → 0 ϕ ( α ) = { 0 , g n u l l ≠ 0 , g T T F R † g T g T T ( F R † ) 2 g T , g n u l l = 0. \phi_\infty=\frac{g_T^{\mathsf T}\mathbf{F}_R g_T}{\lVert g_T\rVert_2^2},\qquad
\phi_0=\lim_{\alpha\to0}\phi(\alpha)=
\begin{cases}
0, & g_{\mathrm{null}}\ne0,\\
\dfrac{g_T^{\mathsf T}\mathbf{F}_R^\dagger g_T}{g_T^{\mathsf T}(\mathbf{F}_R^\dagger)^2g_T}, & g_{\mathrm{null}}=0.
\end{cases} ϕ ∞ = ∥ g T ∥ 2 2 g T T F R g T , ϕ 0 = α → 0 lim ϕ ( α ) = ⎩ ⎨ ⎧ 0 , g T T ( F R † ) 2 g T g T T F R † g T , g null = 0 , g null = 0.
Under the strict-monotonicity condition, a finite positive root exists exactly when ϕ 0 < 2 ρ / ϵ 2 < ϕ ∞ \phi_0<2\rho/\epsilon^2<\phi_\infty ϕ 0 < 2 ρ / ϵ 2 < ϕ ∞ . A level at or above ϕ ∞ \phi_\infty ϕ ∞ uses the norm-only optimum; a level at or below ϕ 0 \phi_0 ϕ 0 uses the drift-only optimum when g n u l l = 0 g_{\mathrm{null}}=0 g null = 0 , with its own scale and feasible nullspace components. When g n u l l ≠ 0 g_{\mathrm{null}}\ne0 g null = 0 , the positive budget excludes the lower endpoint ϕ 0 = 0 \phi_0=0 ϕ 0 = 0 . These endpoint cases are checked before a one-dimensional monotone solve. See Algorithm 2 for the reduced-coordinate implementation.
Choices of the Preconditioner P
Influence functions describe the derivative of a re-optimized solution under infinitesimal data perturbations. Explicit fine-tuning steps instead depend on the optimizer and its state. We compare their local update models through
Δ θ ( w ) = − η P G w , \Delta\theta(w)=-\eta PGw, Δ θ ( w ) = − η P Gw ,
where P ∈ R d × d P \in\mathbb{R}^{d \times d} P ∈ R d × d is a fixed preconditioner , w ∈ R N C w \in\mathbb{R}^{N_C} w ∈ R N C satisfies ∑ i w i = 1 \sum_i w_i=1 ∑ i w i = 1 , and η > 0 \eta>0 η > 0 is a step size. For a size-S S S subset, this appendix uses normalized weights w i = 1 { i ∈ S } / S w_i=\mathbf{1}\{i\in\mathcal{S}\}/S w i = 1 { i ∈ S } / S , equivalent to the binary indicator divided by S S S in the main text. The linearized target gain is
Gain ( w ) : = − g T ⊤ Δ θ ( w ) = η g T ⊤ P G w = η ∑ i = 1 N C w i g T ⊤ P g i . \operatorname{Gain}(w):=-g_T^\top\Delta\theta(w)=\eta g_T^\top PGw=\eta\sum_{i=1}^{N_C}w_i g_T^\top Pg_i. Gain ( w ) := − g T ⊤ Δ θ ( w ) = η g T ⊤ P Gw = η i = 1 ∑ N C w i g T ⊤ P g i .
For a target risk with locally bounded Hessian, the actual risk decrease equals this gain plus O ( ∥ Δ θ ( w ) ∥ 2 ) O(\lVert\Delta\theta(w)\rVert^2) O (∥ Δ θ ( w ) ∥ 2 ) . Different choices of P P P recover exact one-step models or useful local proxies, as specified below; they do not identify a full multi-step training trajectory.
Special Cases of the Preconditioner
SGD: P = I P=I P = I . A single stochastic gradient step on example z i z_i z i gives:
Δ θ ( e i ) = − η g i , \Delta\theta(e_i)=-\eta g_i, Δ θ ( e i ) = − η g i ,
corresponding to P = I P=I P = I . The gain is:
Gain S G D ( w ) = η g T ⊤ G w = η ∑ i w i g T ⊤ g i . \operatorname{Gain}_{\mathrm{SGD}}(w)=\eta g_T^\top Gw=\eta\sum_i w_i g_T^\top g_i. Gain SGD ( w ) = η g T ⊤ Gw = η i ∑ w i g T ⊤ g i .
which is Euclidean gradient alignment. It does not generally equal influence alignment, which additionally depends on the training Hessian.
Influence / Newton: P = H − 1 P=H^{-1} P = H − 1 . Let R ( θ ) = N C − 1 ∑ i ℓ ( z i ; θ ) R(\theta)=N_C^{-1}\sum_i\ell(z_i;\theta) R ( θ ) = N C − 1 ∑ i ℓ ( z i ; θ ) and H = ∇ 2 R ( θ 0 ) H=\nabla^2R(\theta_0) H = ∇ 2 R ( θ 0 ) . Assume twice-continuously differentiable losses, ∇ R ( θ 0 ) = 0 \nabla R(\theta_0)=0 ∇ R ( θ 0 ) = 0 , and H ≻ 0 H\succ0 H ≻ 0 . For the local minimizer θ a , w \theta_{a,w} θ a , w of R ( θ ) + a ∑ i w i ℓ ( z i ; θ ) R(\theta)+a\sum_iw_i\ell(z_i;\theta) R ( θ ) + a ∑ i w i ℓ ( z i ; θ ) that continues from θ 0 \theta_0 θ 0 , implicit differentiation gives [64 ]
d θ a , w d a ∣ a = 0 = − H − 1 G w , θ a , w − θ 0 = − a H − 1 G w + o ( a ) . \left.\frac{d\theta_{a,w}}{da}\right|_{a=0}=-H^{-1}Gw,\qquad\theta_{a,w}-\theta_0=-aH^{-1}Gw+o(a). d a d θ a , w a = 0 = − H − 1 Gw , θ a , w − θ 0 = − a H − 1 Gw + o ( a ) .
Thus P = H − 1 P=H^{-1} P = H − 1 matches the infinitesimal influence direction, with linearized gain
Δ θ ( w ) = − η H − 1 G w , Gain i n f ( w ) = η ∑ i w i g T ⊤ H − 1 g i . \Delta\theta(w)=-\eta H^{-1}Gw,\qquad\operatorname{Gain}_{\mathrm{inf}}(w)=\eta\sum_iw_i g_T^\top H^{-1}g_i. Δ θ ( w ) = − η H − 1 Gw , Gain inf ( w ) = η i ∑ w i g T ⊤ H − 1 g i .
Finite re-optimization generally differs from this first-order update. Away from a stationary point, H − 1 H^{-1} H − 1 may still define a Newton-style curvature model when it exists, but the influence derivative above requires the stated stationary-solution assumptions.
Adam: P = P A d a m P=P_{\mathrm{Adam}} P = P Adam . Let g t : = ∇ θ ℓ ( z t ; θ t ) g_t:=\nabla_\theta\ell(z_t;\theta^t) g t := ∇ θ ℓ ( z t ; θ t ) denote the stochastic gradient used at optimization step t t t . The Adam optimizer maintains uncorrected moment accumulators m t m^t m t and v t v^t v t , together with their bias-corrected versions m ^ t \hat{m}^t m ^ t and v ^ t \hat{v}^t v ^ t . With steps indexed from t = 0 t=0 t = 0 , its coordinate-wise update is [26 ] :
θ t + 1 − θ t = − η t m ^ t + 1 v ^ t + 1 + ϵ A d a m , \theta^{t+1}-\theta^t=-\eta_t\frac{\hat{m}^{t+1}}{\sqrt{\hat{v}^{t+1}}+\epsilon_{\mathrm{Adam}}}, θ t + 1 − θ t = − η t v ^ t + 1 + ϵ Adam m ^ t + 1 ,
m t + 1 = β 1 m t + ( 1 − β 1 ) g t , m ^ t + 1 = m t + 1 1 − β 1 t + 1 , m^{t+1}=\beta_1m^t+(1-\beta_1)g_t,\qquad\hat{m}^{t+1}=\frac{m^{t+1}}{1-\beta_1^{t+1}}, m t + 1 = β 1 m t + ( 1 − β 1 ) g t , m ^ t + 1 = 1 − β 1 t + 1 m t + 1 ,
v t + 1 = β 2 v t + ( 1 − β 2 ) ( g t ⊙ g t ) , v ^ t + 1 = v t + 1 1 − β 2 t + 1 . v^{t+1}=\beta_2v^t+(1-\beta_2)(g_t\odot g_t),\qquad\hat{v}^{t+1}=\frac{v^{t+1}}{1-\beta_2^{t+1}}. v t + 1 = β 2 v t + ( 1 − β 2 ) ( g t ⊙ g t ) , v ^ t + 1 = 1 − β 2 t + 1 v t + 1 .
Here β 1 , β 2 ∈ [ 0 , 1 ) \beta_1,\beta_2\in[0,1) β 1 , β 2 ∈ [ 0 , 1 ) , ϵ A d a m > 0 \epsilon_{\mathrm{Adam}}>0 ϵ Adam > 0 , and m 0 = v 0 = 0 m^0=v^0=0 m 0 = v 0 = 0 . Division and square roots are elementwise.
To obtain a fixed preconditioned-gradient proxy for selection, we freeze the coordinate scales and omit first-moment history. Let s j = E [ g j 2 ] < ∞ s_j = \mathbb{E}[g_j^2] < \infty s j = E [ g j 2 ] < ∞ be a finite second moment under a fixed warm-up gradient distribution, shared across candidates, and recall g i = ∇ θ ℓ ( z i ; θ 0 ) g_i = \nabla_\theta\ell(z_i; \theta_0) g i = ∇ θ ℓ ( z i ; θ 0 ) . The proxy update is
( Δ θ ) j = − η ( g i ) j s j + ϵ A d a m . (\Delta\theta)_j = -\eta\frac{(g_i)_j}{\sqrt{s_j}+\epsilon_{\mathrm{Adam}}}. ( Δ θ ) j = − η s j + ϵ Adam ( g i ) j .
This defines the frozen diagonal preconditioner
P A d a m = diag ( 1 s 1 + ϵ A d a m , … , 1 s d + ϵ A d a m ) ∈ R d × d . \mathbf{P}_{\mathrm{Adam}} = \operatorname{diag}\left(\frac{1}{\sqrt{s_1}+\epsilon_{\mathrm{Adam}}}, \ldots, \frac{1}{\sqrt{s_d}+\epsilon_{\mathrm{Adam}}}\right) \in\mathbb{R}^{d\times d}. P Adam = diag ( s 1 + ϵ Adam 1 , … , s d + ϵ Adam 1 ) ∈ R d × d .
This is a second-moment scaling proxy, not a general approximation to H − 1 \mathbf{H}^{-1} H − 1 : large second moments reduce the coordinate scale, and cross-coordinate interactions are omitted. Second moments need not equal gradient variances. Because actual Adam also updates its moments and uses first-moment history, a fixed linear map of the current candidate gradients does not reproduce the complete Adam trajectory.
The gain under Adam preconditioning is:
Gain A d a m ( w ) = η g T ⊤ P A d a m G w = η ∑ i = 1 N C w i g T ⊤ P A d a m g i = η ∑ i = 1 N C w i ∑ j = 1 d ( g T ) j ( g i ) j s j + ϵ A d a m . \begin{aligned}
\operatorname{Gain}_{\mathrm{Adam}}(w) &= \eta g_T^\top\mathbf{P}_{\mathrm{Adam}}\mathbf{G}w \\
&= \eta\sum_{i=1}^{N_C} w_i g_T^\top\mathbf{P}_{\mathrm{Adam}}g_i \\
&= \eta\sum_{i=1}^{N_C} w_i \sum_{j=1}^{d} \frac{(g_T)_j(g_i)_j}{\sqrt{s_j}+\epsilon_{\mathrm{Adam}}}.
\end{aligned} Gain Adam ( w ) = η g T ⊤ P Adam G w = η i = 1 ∑ N C w i g T ⊤ P Adam g i = η i = 1 ∑ N C w i j = 1 ∑ d s j + ϵ Adam ( g T ) j ( g i ) j .
This is the coordinate-wise inner product between the target gradient and each training gradient, normalized by the Adam scaling factor.
The frozen scales can be estimated during a warm-up phase, following the use of optimizer information for selection in [6 ] . For example, averaging the bias-corrected second moments over T T T warm-up steps gives
P A d a m = diag ( 1 v ˉ j + ϵ A d a m ) , v ˉ j = 1 T ∑ t = 1 T v ^ j t , \mathbf{P}_{\mathrm{Adam}} = \operatorname{diag}\left(\frac{1}{\sqrt{\bar{v}_j}+\epsilon_{\mathrm{Adam}}}\right), \qquad\bar{v}_j = \frac{1}{T}\sum_{t=1}^{T}\hat{v}_j^t, P Adam = diag ( v ˉ j + ϵ Adam 1 ) , v ˉ j = T 1 t = 1 ∑ T v ^ j t ,
making the score efficient to compute.
Natural gradient: P = F − 1 \mathbf{P} = \mathbf{F}^{-1} P = F − 1 . For a chosen prompt distribution Q Q Q , assume the common-support, smoothness, and integrability conditions of Appendix B.1 with R R R replaced by Q Q Q , and let F = E x ∼ Q E y ∼ p θ 0 ( ⋅ ∣ x ) [ s θ 0 ( x , y ) s θ 0 ( x , y ) ⊤ ] \mathbf{F} = \mathbb{E}_{x\sim Q}\mathbb{E}_{y\sim p_{\theta_0}(\cdot\mid x)}[\mathbf{s}_{\theta_0}(x,y)\mathbf{s}_{\theta_0}(x,y)^\top] F = E x ∼ Q E y ∼ p θ 0 ( ⋅ ∣ x ) [ s θ 0 ( x , y ) s θ 0 ( x , y ) ⊤ ] . If F ≻ 0 \mathbf{F} \succ0 F ≻ 0 , choosing P = F − 1 \mathbf{P} = \mathbf{F}^{-1} P = F − 1 gives the natural-gradient update Δ θ = − η F − 1 g i \Delta\theta= -\eta\mathbf{F}^{-1}g_i Δ θ = − η F − 1 g i , whose local geometry is the quadratic KL metric under these regularity conditions. For singular F \mathbf{F} F , a damped inverse is well defined; a pseudoinverse instead requires separate treatment of nullspace directions, as in Theorem 1.
Further details on Safe-Drift data selector in Section 2.3
Low-Rank Working Basis
All downstream computation is carried out in a K K K -dimensional working basis that combines the retained reference Fisher eigenspace with a residualized target-side subspace.
Estimating g T g_T g T Given the target sample D t a r = { z j } j = 1 N T D_{\mathrm{tar}} = \{z_j\}_{j=1}^{N_T} D tar = { z j } j = 1 N T , we estimate the target gradient by the sample mean
g ^ t a r r a w : = 1 N T ∑ j = 1 N T ∇ θ ℓ ( z j ; θ 0 ) ∈ R d . (21) \widehat{g}_{\mathrm{tar}}^{\mathrm{raw}} := \frac{1}{N_T}\sum_{j=1}^{N_T}\nabla_\theta\ell(z_j;\theta_0) \in\mathbb{R}^{d}. \tag*{(21)} g tar raw := N T 1 j = 1 ∑ N T ∇ θ ℓ ( z j ; θ 0 ) ∈ R d . (21)
This is the direct plug-in estimator of the oracle target gradient.
Reference basis Retain the top K R K_R K R strictly positive eigenpairs ( V ^ K R , Λ ^ K R ) (\widehat{\mathbf{V}}_{K_R}, \widehat{\mathbf{\Lambda}}_{K_R}) ( V K R , Λ K R ) of the dual Gram matrix 1 N R S R S R ⊤ \frac{1}{N_R}\mathbf{S}_R\mathbf{S}_R^\top N R 1 S R S R ⊤ , with K R K_R K R no larger than its rank. The parameter-space reference basis and truncated Fisher are
U ^ K R = S R ⊤ V ^ K R ( N R Λ ^ K R ) − 1 / 2 , F ^ R ( K R ) = U ^ K R Λ ^ K R U ^ K R ⊤ . \widehat{\mathbf{U}}_{K_R} = \mathbf{S}_R^\top\widehat{\mathbf{V}}_{K_R}(N_R\widehat{\mathbf{\Lambda}}_{K_R})^{-1/2}, \qquad\widehat{\mathbf{F}}_R^{(K_R)} = \widehat{\mathbf{U}}_{K_R}\widehat{\mathbf{\Lambda}}_{K_R}\widehat{\mathbf{U}}_{K_R}^\top. U K R = S R ⊤ V K R ( N R Λ K R ) − 1/2 , F R ( K R ) = U K R Λ K R U K R ⊤ .
The recovered basis U ^ K R ∈ R d × K R \widehat{\mathbf{U}}_{K_R} \in\mathbb{R}^{d\times K_R} U K R ∈ R d × K R satisfies U ^ K R ⊤ U ^ K R = I K R \widehat{\mathbf{U}}_{K_R}^\top\widehat{\mathbf{U}}_{K_R} = \mathbf{I}_{K_R} U K R ⊤ U K R = I K R and F ^ R ( K R ) U ^ K R = U ^ K R Λ ^ K R \widehat{\mathbf{F}}_R^{(K_R)}\widehat{\mathbf{U}}_{K_R} = \widehat{\mathbf{U}}_{K_R}\widehat{\mathbf{\Lambda}}_{K_R} F R ( K R ) U K R = U K R Λ K R .
Residualized task basis Collect the per-example gradients g i r a w g_i^{\mathrm{raw}} g i raw for all i ∈ [ N T + N C ] i \in[N_T+N_C] i ∈ [ N T + N C ] into
G ^ T C : = [ g ^ 1 r a w ⋯ g ^ N C + N T r a w ] ∈ R d × ( N C + N T ) . \widehat{G}_{TC}:=\left[\widehat{g}_1^{\mathrm{raw}}\ \cdots\ \widehat{g}_{N_C+N_T}^{\mathrm{raw}}\right]\in\mathbb{R}^{d\times(N_C+N_T)}. G T C := [ g 1 raw ⋯ g N C + N T raw ] ∈ R d × ( N C + N T ) .
A low-rank approximation of the reference Fisher alone is not sufficient to represent target-side structure outside span ( U ^ K R ) \operatorname{span}(\widehat{U}_{K_R}) span ( U K R ) . We therefore build an additional task block by first residualizing against the reference subspace:
G ~ T C : = ( I d − U ^ K R U ^ K R T ) G ^ T C . \widetilde{G}_{TC}:=\left(I_d-\widehat{U}_{K_R}\widehat{U}_{K_R}^{\mathsf{T}}\right)\widehat{G}_{TC}. G T C := ( I d − U K R U K R T ) G T C .
On the residualized matrix, we form the dual Gram matrix 1 N T + N C G ~ T C T G ~ T C \frac{1}{N_T+N_C}\widetilde{G}_{TC}^{\mathsf{T}}\widetilde{G}_{TC} N T + N C 1 G T C T G T C and compute its top-K T K_T K T strictly positive eigenpairs ( V ^ K T , Ω ^ K T ) (\widehat{V}_{K_T},\widehat{\Omega}_{K_T}) ( V K T , Ω K T ) , with K T K_T K T no larger than the residual rank. We then define the added task basis by
U ^ K T : = G ~ T C V ^ K T ( ( N C + N T ) Ω ^ K T ) − 1 / 2 ∈ R d × K T . \widehat{U}_{K_T}:=\widetilde{G}_{TC}\widehat{V}_{K_T}\left((N_C+N_T)\widehat{\Omega}_{K_T}\right)^{-1/2}\in\mathbb{R}^{d\times K_T}. U K T := G T C V K T ( ( N C + N T ) Ω K T ) − 1/2 ∈ R d × K T .
By construction, U ^ K R T U ^ K T = 0 \widehat{U}_{K_R}^{\mathsf{T}}\widehat{U}_{K_T}=0 U K R T U K T = 0 and U ^ K T T U ^ K T = I K T \widehat{U}_{K_T}^{\mathsf{T}}\widehat{U}_{K_T}=I_{K_T} U K T T U K T = I K T . If either matrix has rank zero, its retained basis is an empty block and its retained rank is zero; no inverse of a zero eigenvalue is taken.
The motivation for this residualization is as follows. If we were to project all quantities onto U ^ K R \widehat{U}_{K_R} U K R alone, the quality of the approximation would depend entirely on how much of the target and candidate gradient signal lies within the reference eigenspace. When the target task and the reference distribution are largely disentangled in parameter space, the target and candidate gradients may be nearly orthogonal to U ^ K R \widehat{U}_{K_R} U K R . Projecting onto the reference basis alone would then collapse all gradient coordinates to near zero, making every candidate look equally uninformative. The residual basis retains dominant gradient directions outside that subspace. Truncation can nevertheless discard target-specific directions, especially when the candidate pool dominates the residual spectrum; a nonzero raw target gradient may have zero projection into the working basis.
Common working basis Stacking the two orthonormal bases gives (9) . Define the reduced surrogate Fisher by
F ^ R , K : = U ^ K T F ^ R ( K R ) U ^ K = diag ( Λ ^ K R , 0 K T ) ∈ R K × K . \widehat{F}_{R,K}:=\widehat{U}_K^{\mathsf{T}}\widehat{F}_R^{(K_R)}\widehat{U}_K=\operatorname{diag}\left(\widehat{\Lambda}_{K_R},0_{K_T}\right)\in\mathbb{R}^{K\times K}. F R , K := U K T F R ( K R ) U K = diag ( Λ K R , 0 K T ) ∈ R K × K .
The reduced ridge-regularized matching metric is
M α , K : = F ^ R , K + α I K = [ Λ ^ K R + α I K R 0 0 α I K T ] . (22) M_{\alpha,K}:=\widehat{F}_{R,K}+\alpha I_K=
\begin{bmatrix}
\widehat{\Lambda}_{K_R}+\alpha I_{K_R} & 0\\
0 & \alpha I_{K_T}
\end{bmatrix}. \tag*{(22)} M α , K := F R , K + α I K = [ Λ K R + α I K R 0 0 α I K T ] . (22)
The zero residual block belongs to the truncated surrogate: orthogonality to the retained reference eigenspace does not imply zero cost under the full empirical or population Fisher. In fact, exact spectral truncation gives
F ^ R r a w = F ^ R ( K R ) + E R , E R ⪰ 0 , ∥ E R ∥ o p = λ ^ K R + 1 , \widehat{F}_R^{\mathrm{raw}}=\widehat{F}_R^{(K_R)}+E_R,\qquad E_R\succeq0,\qquad\lVert E_R\rVert_{\mathrm{op}}=\widehat{\lambda}_{K_R+1}, F R raw = F R ( K R ) + E R , E R ⪰ 0 , ∥ E R ∥ op = λ K R + 1 ,
where λ ^ K R + 1 = 0 \widehat{\lambda}_{K_R+1}=0 λ K R + 1 = 0 if all positive eigenvalues are retained. Consequently, for any ambient update δ \delta δ satisfying ∥ δ ∥ 2 ≤ ϵ \lVert\delta\rVert_2\le\epsilon ∥ δ ∥ 2 ≤ ϵ and 1 2 δ T F ^ R ( K R ) δ ≤ ρ \frac{1}{2}\delta^{\mathsf{T}}\widehat{F}_R^{(K_R)}\delta\le\rho 2 1 δ T F R ( K R ) δ ≤ ρ ,
1 2 δ T F ^ R r a w δ ≤ ρ + ϵ 2 2 λ ^ K R + 1 . \frac{1}{2}\delta^{\mathsf{T}}\widehat{F}_R^{\mathrm{raw}}\delta\le\rho+\frac{\epsilon^2}{2}\widehat{\lambda}_{K_R+1}. 2 1 δ T F R raw δ ≤ ρ + 2 ϵ 2 λ K R + 1 .
This is an empirical quadratic bound. Transferring it to the population Fisher requires additional estimation-error control, and transferring it to KL drift also requires control of the local Taylor remainder.
Choosing K R K_R K R and K T K_T K T One optional rank heuristic measures how much each eigendirection modifies ( F ^ R r a w + α I ) − 1 (\widehat{F}_R^{\mathrm{raw}}+\alpha I)^{-1} ( F R raw + α I ) − 1 relative to α − 1 I \alpha^{-1}I α − 1 I at a fixed positive α \alpha α . Let the nonzero eigenvalues of the empirical reference Fisher F ^ R r a w \widehat{F}_R^{\mathrm{raw}} F R raw be λ ^ 1 ≥ λ ^ 2 ≥ ⋯ ≥ λ ^ r R > 0 \widehat{\lambda}_1\ge\widehat{\lambda}_2\ge\cdots\ge\widehat{\lambda}_{r_R}>0 λ 1 ≥ λ 2 ≥ ⋯ ≥ λ r R > 0 , with corresponding orthonormal eigenvectors u ^ 1 , … , u ^ r R \widehat{u}_1,\ldots,\widehat{u}_{r_R} u 1 , … , u r R when r R > 0 r_R>0 r R > 0 , where 0 ≤ r R ≤ min { N R , d } 0\le r_R\le\min\{N_R,d\} 0 ≤ r R ≤ min { N R , d } . Then,
( F ^ R r a w + α I ) − 1 = α − 1 I − ∑ j = 1 r R λ ^ j α ( λ ^ j + α ) u ^ j u ^ j T . \left(\widehat{F}_R^{\mathrm{raw}}+\alpha I\right)^{-1}
=\alpha^{-1}I-\sum_{j=1}^{r_R}\frac{\widehat{\lambda}_j}{\alpha(\widehat{\lambda}_j+\alpha)}\widehat{u}_j\widehat{u}_j^{\mathsf{T}}. ( F R raw + α I ) − 1 = α − 1 I − j = 1 ∑ r R α ( λ j + α ) λ j u j u j T .
The j j j -th direction contributes through the relative correction factor
r j ( α ) : = λ ^ j λ ^ j + α . (23) r_j(\alpha):=\frac{\widehat{\lambda}_j}{\widehat{\lambda}_j+\alpha}. \tag*{(23)} r j ( α ) := λ j + α λ j . (23)
When λ ^ j ≪ α \hat{\lambda}_j \ll\alpha λ ^ j ≪ α , the correction to the isotropic inverse is small in that eigendirection. This observation alone does not guarantee that discarding it preserves a particular target direction or selection.
For r R > 0 r_R > 0 r R > 0 and a chosen tolerance δ R ∈ ( 0 , 1 ) \delta_R \in(0,1) δ R ∈ ( 0 , 1 ) , the heuristic is
K R a u t o : = min { K ∈ { 1 , … , r R } : ∑ j = 1 K r j ( α ) ∑ j = 1 r R r j ( α ) ≥ 1 − δ R } . K_R^{\mathrm{auto}} := \min\left\{K \in\{1,\ldots,r_R\}: \frac{\sum_{j=1}^{K} r_j(\alpha)}{\sum_{j=1}^{r_R} r_j(\alpha)} \ge1-\delta_R\right\}. K R auto := min { K ∈ { 1 , … , r R } : ∑ j = 1 r R r j ( α ) ∑ j = 1 K r j ( α ) ≥ 1 − δ R } .
Similarly, when the residual rank r T > 0 r_T > 0 r T > 0 , let the positive eigenvalues of 1 N T + N C G ~ T C T G ~ T C \frac{1}{N_T+N_C}\widetilde{G}_{TC}^{\mathsf{T}}\widetilde{G}_{TC} N T + N C 1 G T C T G T C be ω ^ 1 ≥ ⋯ ≥ ω ^ r T > 0 \hat{\omega}_1 \ge\cdots\ge\hat{\omega}_{r_T} > 0 ω ^ 1 ≥ ⋯ ≥ ω ^ r T > 0 . An optional residual-energy heuristic is
K T a u t o : = min { K ∈ { 1 , … , r T } : ∑ j = 1 K ω ^ j ∑ j = 1 r T ω ^ j ≥ 1 − δ T } . K_T^{\mathrm{auto}} := \min\left\{K \in\{1,\ldots,r_T\}: \frac{\sum_{j=1}^{K} \hat{\omega}_j}{\sum_{j=1}^{r_T} \hat{\omega}_j} \ge1-\delta_T\right\}. K T auto := min { K ∈ { 1 , … , r T } : ∑ j = 1 r T ω ^ j ∑ j = 1 K ω ^ j ≥ 1 − δ T } .
for δ T ∈ ( 0 , 1 ) \delta_T \in(0,1) δ T ∈ ( 0 , 1 ) . Set K R a u t o = 0 K_R^{\mathrm{auto}}=0 K R auto = 0 when r R = 0 r_R=0 r R = 0 and K T a u t o = 0 K_T^{\mathrm{auto}}=0 K T auto = 0 when r T = 0 r_T=0 r T = 0 . These are aggregate spectral criteria, not uniform guarantees on target-gradient or drift preservation. The reference criterion depends on α \alpha α : if it is used, choose a pilot α \alpha α and fix the resulting basis before solving for damping, or explicitly repeat rank selection and damping as a heuristic. The fixed-basis monotonicity used in Algorithm 2 does not itself justify a joint rank-and-damping search.
Choosing α \alpha α based on ( ρ , ϵ ) (\rho,\epsilon) ( ρ , ϵ ) . We replace the population Fisher and target gradient by their reduced empirical counterparts from Section 2.3. For a fixed working basis, the resulting Rayleigh quotient ϕ ^ ( α ) \hat{\phi}(\alpha) ϕ ^ ( α ) is nondecreasing, as in Proposition 3. All K K K target coordinates must be included, including the residual task coordinates whose surrogate Fisher eigenvalues are zero. Algorithm 2 detects an endpoint root or bisects when a root is strictly bracketed within the prescribed positive interval; its status distinguishes a root found to tolerance from an interval or iteration limit. Subsequent downscaling enforces the reduced surrogate budgets even when no root is returned. A zero projected target gives the zero continuous update and carries no target-alignment information in this basis.
Endpoint and termination guarantees. The pseudocode is stated in exact arithmetic. If b b b is supported on one eigenvalue d ⋆ d_\star d ⋆ , then ϕ ^ ( a ) ≡ d ⋆ \hat{\phi}(a) \equiv d_\star ϕ ^ ( a ) ≡ d ⋆ : a matching level returns an endpoint root, but this root is not unique. If all supported eigenvalues are zero, then ϕ ^ ≡ 0 \hat{\phi}\equiv0 ϕ ^ ≡ 0 and the positive level r r r takes the inactive_approx branch. Otherwise, support on two distinct eigenvalues gives strict monotonicity, including when one is zero. The floor_limited status means either that a root lies below the floor or that no positive root exists. The cap_limited branch has ϕ ^ ( α max ) < r < ϕ ^ ∞ \hat{\phi}(\alpha_{\max}) < r < \hat{\phi}_{\infty} ϕ ^ ( α m a x ) < r < ϕ ^ ∞ and therefore a unique root above the cap. The inactive_approx status means that the norm-only optimum of the reduced surrogate problem is feasible, including equality at r = ϕ ^ ∞ r=\hat{\phi}_{\infty} r = ϕ ^ ∞ ; it does not imply strictly slack drift.
For a strictly bracketed root α ⋆ \alpha_\star α ⋆ , every unsuccessful iteration preserves ϕ ^ ( ℓ ) < r < ϕ ^ ( h ) \hat{\phi}(\ell) < r < \hat{\phi}(h) ϕ ^ ( ℓ ) < r < ϕ ^ ( h ) and halves log ( h / ℓ ) \log(h/\ell) log ( h / ℓ ) . Thus, after T T T unsuccessful iterations,
0 ≤ log ( α ⋆ / ℓ ) ≤ 2 − T log ( α max / α min ) , 0 ≤ r − ϕ ^ ( ℓ ) r ≤ 2 1 − T log ( α max / α min ) . 0 \le\log(\alpha_\star/\ell) \le2^{-T}\log(\alpha_{\max}/\alpha_{\min}), \qquad0 \le\frac{r-\hat{\phi}(\ell)}{r} \le2^{1-T}\log(\alpha_{\max}/\alpha_{\min}). 0 ≤ log ( α ⋆ / ℓ ) ≤ 2 − T log ( α m a x / α m i n ) , 0 ≤ r r − ϕ ^ ( ℓ ) ≤ 2 1 − T log ( α m a x / α m i n ) .
For the second bound, the positive numerator and denominator defining ϕ ^ \hat{\phi} ϕ ^ satisfy 0 ≤ a ϕ ^ ′ ( a ) / ϕ ^ ( a ) ≤ 2 0 \le a\hat{\phi}'(a)/\hat{\phi}(a) \le2 0 ≤ a ϕ ^ ′ ( a ) / ϕ ^ ( a ) ≤ 2 : differentiating their logarithms gives twice the difference of two weighted means of a / ( d j + a ) ∈ [ 0 , 1 ] a/(d_j+a) \in[0,1] a / ( d j + a ) ∈ [ 0 , 1 ] , and monotonicity gives the lower bound. Integrating this inequality and using 1 − e − x ≤ x 1-e^{-x}\le x 1 − e − x ≤ x proves the result. The root_tolerance status certifies only the stated relative quotient residual; an arbitrary iteration limit need not meet that tolerance. These guarantees assume exact spectral data and arithmetic; a numerical implementation must also handle rounding and overflow.
Scaling value for Δ θ ⋆ \Delta\theta^\star Δ θ ⋆
For fixed α > 0 \alpha>0 α > 0 , use the reduced matrices F ^ R , K \widehat{F}_{R,K} F R , K and M α , K M_{\alpha,K} M α , K from (22). Define the unscaled reduced direction and practical update by
h α , K : = M α , K − 1 b ^ t ( K ) ∈ R K , Δ θ ^ K ⋆ : = − h α , K / μ ^ K ∈ R K . h_{\alpha,K}:=M_{\alpha,K}^{-1}\hat{b}_{t}^{(K)}\in\mathbb{R}^{K}, \qquad\widehat{\Delta\theta}^{\star}_{K}:=-h_{\alpha,K}/\hat{\mu}_{K}\in\mathbb{R}^{K}. h α , K := M α , K − 1 b ^ t ( K ) ∈ R K , Δ θ K ⋆ := − h α , K / μ ^ K ∈ R K .
Their ambient lifts are U K h α , K U_Kh_{\alpha,K} U K h α , K and U K Δ θ ^ K ⋆ ∈ R d U_K\widehat{\Delta\theta}^{\star}_{K}\in\mathbb{R}^{d} U K Δ θ K ⋆ ∈ R d , respectively. We use the smallest downscaling factor subject to μ ^ K ≥ 1 \hat{\mu}_K\ge1 μ ^ K ≥ 1 that satisfies the imposed surrogate reference and norm budgets:
μ ^ K : = max { 1 , h α , K T F ^ R , K h α , K 2 ρ , ∥ h α , K ∥ 2 ϵ } . (24) \hat{\mu}_K:=\max\left\{1,\sqrt{\frac{h_{\alpha,K}^{\mathsf{T}}\widehat{F}_{R,K}h_{\alpha,K}}{2\rho}},\frac{\lVert h_{\alpha,K}\rVert_2}{\epsilon}\right\}. \tag*{(24)} μ ^ K := max ⎩ ⎨ ⎧ 1 , 2 ρ h α , K T F R , K h α , K , ϵ ∥ h α , K ∥ 2 ⎭ ⎬ ⎫ . (24)
Algorithm 2 Finite-interval choice of $\hat{\alpha}$ from $(\rho,\epsilon)$
Input: Target feature $b = \hat{b}_{\mathrm{tar}}^{(K)}$, diagonal reduced Fisher $\hat{F}_{R,K} = \operatorname{diag}(d_1,\ldots,d_K) \succeq 0$ from (22), budgets $\rho,\epsilon > 0$, interval $0 < \alpha_{\min} < \alpha_{\max}$, tolerance $\tau > 0$, integer iteration limit $T \ge 1$.
Output: Damping parameter $\hat{\alpha}$ and status.
1: if $b = 0$ then
2: return $(\alpha_{\min},\texttt{zero\_target})$ ▷ continuous update is zero
3: end if
4: Set $d_j \leftarrow [\hat{F}_{R,K}]_{jj}$ and $c_j \leftarrow b_j$ for $j = 1,\ldots,K$; set $r \leftarrow 2\rho/\epsilon^2$.
5: Define
$$
\hat{\phi}(a) := \frac{\sum_{j=1}^{K} d_jc_j^2/(d_j+a)^2}{\sum_{j=1}^{K} c_j^2/(d_j+a)^2}, \qquad \hat{\phi}_{\infty} := \frac{\sum_{j=1}^{K}d_jc_j^2}{\sum_{j=1}^{K}c_j^2}.
$$
6: if $r = \hat{\phi}(\alpha_{\max})$ then
7: return $(\alpha_{\max},\texttt{endpoint\_root})$
8: else if $r = \hat{\phi}(\alpha_{\min})$ then
9: return $(\alpha_{\min},\texttt{endpoint\_root})$
10: else if $r > \hat{\phi}_{\infty}$ then
11: return $(\alpha_{\max},\texttt{inactive\_approx})$
12: else if $r < \hat{\phi}(\alpha_{\min})$ then
13: return $(\alpha_{\min},\texttt{floor\_limited})$
14: else if $r > \hat{\phi}(\alpha_{\max})$ then
15: return $(\alpha_{\max},\texttt{cap\_limited})$
16: end if
17: $\ell \leftarrow \alpha_{\min}$; $h \leftarrow \alpha_{\max}$ ▷ $\hat{\phi}(\ell) < r < \hat{\phi}(h)$
18: for $t = 1,\ldots,T$ do
19: $a \leftarrow \exp((\log \ell + \log h)/2)$; $r_a \leftarrow \hat{\phi}(a)$.
20: if $|r_a-r| \le \tau r$ then
21: return $(a,\texttt{root\_tolerance})$
22: else if $r_a < r$ then
23: $\ell \leftarrow a$
24: else
25: $h \leftarrow a$
26: end if
27: end for
28: return $(\ell,\texttt{iteration\_limit})$
The second and third terms are included only when their respective budgets are imposed. When both budgets are imposed, direct substitution gives 1 2 ( Δ θ ^ K ⋆ ) T F ^ R , K Δ θ ^ K ⋆ ≤ ρ \frac{1}{2}(\Delta\hat{\theta}^{\star}_{K})^{\mathsf{T}}\hat{F}_{R,K}\Delta\hat{\theta}^{\star}_{K} \le\rho 2 1 ( Δ θ ^ K ⋆ ) T F ^ R , K Δ θ ^ K ⋆ ≤ ρ and ∥ Δ θ ^ K ⋆ ∥ 2 ≤ ϵ \lVert\Delta\hat{\theta}^{\star}_{K}\rVert_{2} \le\epsilon ∥ Δ θ ^ K ⋆ ∥ 2 ≤ ϵ . If either budget is omitted, only the retained budget is guaranteed. The corresponding bounds also hold for the ambient lift with the truncated Fisher, because U K U_K U K has orthonormal columns. If b = 0 b=0 b = 0 , then h α , K = 0 h_{\alpha,K}=0 h α , K = 0 , μ ^ K = 1 \hat{\mu}_K=1 μ ^ K = 1 , and the update is zero. The budgets need not be saturated: the restriction μ ^ K ≥ 1 \hat{\mu}_K \ge1 μ ^ K ≥ 1 deliberately permits only shrinking the unscaled direction. In particular, a finite cap used in the inactive case is an approximation to a direction, not an oracle-optimal step length. Indeed, ∥ Δ θ ^ K ⋆ ∥ 2 ≤ ∥ b ∥ 2 / α \lVert\Delta\hat{\theta}^{\star}_{K}\rVert_{2} \le\lVert b\rVert_{2}/\alpha ∥ Δ θ ^ K ⋆ ∥ 2 ≤ ∥ b ∥ 2 / α , so with fixed nonzero b b b the practical step tends to zero as the cap tends to infinity, whereas the norm-only oracle step has norm ϵ \epsilon ϵ . Even at an exact finite root, both budgets are saturated only if ∥ h α , K ∥ 2 / ϵ ≥ 1 \lVert h_{\alpha,K}\rVert_{2}/\epsilon\ge1 ∥ h α , K ∥ 2 / ϵ ≥ 1 ; otherwise μ ^ K = 1 \hat{\mu}_K=1 μ ^ K = 1 and both are slack. A root residual within τ r \tau r τ r likewise controls the ratio of the two unscaled costs, not optimality or budget saturation.
This practical construction should be contrasted with the oracle formulation Δ θ ⋆ = − ϵ ( F R + α I ) − 1 g T ∥ ( F R + α I ) − 1 g T ∥ 2 \Delta\theta^{\star}=-\epsilon\frac{(F_R+\alpha I)^{-1}g_T}{\lVert(F_R+\alpha I)^{-1}g_T\rVert_2} Δ θ ⋆ = − ϵ ∥( F R + α I ) − 1 g T ∥ 2 ( F R + α I ) − 1 g T in the interior regime with positive multipliers for both constraints, where α \alpha α is chosen so that the normalized update satisfies the reference-cost constraint 1 2 ( Δ θ ⋆ ) T F R Δ θ ⋆ = ρ \frac{1}{2}(\Delta\theta^{\star})^{\mathsf{T}}F_R\Delta\theta^{\star}=\rho 2 1 ( Δ θ ⋆ ) T F R Δ θ ⋆ = ρ . The practical construction is a feasible surrogate heuristic; it does not inherit oracle optimality, a population drift budget, or a guarantee for subsequent fine-tuning.
Selection Algorithm
Recall the practical reduced surrogate matching target Δ θ ^ K ⋆ ( α ) \widehat{\Delta\theta}^{\star}_{K}(\alpha) Δ θ K ⋆ ( α ) and the subset-induced reduced update Δ θ ^ K ( w ) \widehat{\Delta\theta}_{K}(w) Δ θ K ( w ) from (11) and (12), respectively. Throughout this section, α > 0 \alpha> 0 α > 0 is finite. Define the whitened candidate-update matrix and target update by
Δ ~ K : = M α , K 1 / 2 ( − η S P K B K ) ∈ R K × N C , \widetilde{\Delta}_{K} := \mathbf{M}_{\alpha,K}^{1/2}\left(-\frac{\eta}{S}\mathbf{P}_{K}\mathbf{B}_{K}\right) \in\mathbb{R}^{K \times N_C}, Δ K := M α , K 1/2 ( − S η P K B K ) ∈ R K × N C ,
Δ θ ~ K ⋆ : = M α , K 1 / 2 Δ θ ^ K ⋆ ( α ) . \widetilde{\Delta\theta}^{\star}_{K} := \mathbf{M}_{\alpha,K}^{1/2}\widehat{\Delta\theta}^{\star}_{K}(\alpha). Δ θ K ⋆ := M α , K 1/2 Δ θ K ⋆ ( α ) .
Then the matching objective
w K o p t ∈ arg min w ∈ { 0 , 1 } N C 1 T w = S 1 2 ∥ Δ θ ^ K ( w ) − Δ θ ^ K ⋆ ( α ) ∥ M α , K 2 w^{\mathrm{opt}}_{K} \in\underset{\substack{w\in\{0,1\}^{N_C}\\ \mathbf{1}^{\mathsf{T}}w=S}}{\arg\min}\ \frac{1}{2}\left\|\widehat{\Delta\theta}_{K}(w)-\widehat{\Delta\theta}^{\star}_{K}(\alpha)\right\|_{\mathbf{M}_{\alpha,K}}^{2} w K opt ∈ w ∈ { 0 , 1 } N C 1 T w = S arg min 2 1 Δ θ K ( w ) − Δ θ K ⋆ ( α ) M α , K 2
can be rewritten as the whitened objective
w K o p t ∈ arg min w ∈ { 0 , 1 } N C 1 T w = S 1 2 ∥ Δ ~ K w − Δ θ ~ K ⋆ ∥ 2 2 . w^{\mathrm{opt}}_{K} \in\underset{\substack{w\in\{0,1\}^{N_C}\\ \mathbf{1}^{\mathsf{T}}w=S}}{\arg\min}\ \frac{1}{2}\left\|\widetilde{\Delta}_{K}w-\widetilde{\Delta\theta}^{\star}_{K}\right\|_{2}^{2}. w K opt ∈ w ∈ { 0 , 1 } N C 1 T w = S arg min 2 1 Δ K w − Δ θ K ⋆ 2 2 .
The forward greedy procedure below approximates this cardinality-constrained optimum; no exact solution or approximation factor is claimed. For a singleton contribution w = e i w=e_i w = e i , keeping the final normalization 1 / S 1/S 1/ S fixed even when S > 1 S>1 S > 1 , we have
1 2 ∥ Δ ~ K ( i ) − Δ θ ~ K ⋆ ∥ 2 2 = 1 2 ∥ Δ θ ~ K ⋆ ∥ 2 2 − ⟨ Δ ~ K ( i ) , Δ θ ~ K ⋆ ⟩ + 1 2 ∥ Δ ~ K ( i ) ∥ 2 2 . \frac{1}{2}\left\|\widetilde{\Delta}_{K}(i)-\widetilde{\Delta\theta}^{\star}_{K}\right\|_{2}^{2}
=
\frac{1}{2}\left\|\widetilde{\Delta\theta}^{\star}_{K}\right\|_{2}^{2}
-\left\langle\widetilde{\Delta}_{K}(i),\widetilde{\Delta\theta}^{\star}_{K}\right\rangle
+\frac{1}{2}\left\|\widetilde{\Delta}_{K}(i)\right\|_{2}^{2}. 2 1 Δ K ( i ) − Δ θ K ⋆ 2 2 = 2 1 Δ θ K ⋆ 2 2 − ⟨ Δ K ( i ) , Δ θ K ⋆ ⟩ + 2 1 Δ K ( i ) 2 2 .
Since the first term is independent of i i i , ranking singleton subsets by smaller objective value is equivalent to ranking them by
s i : = ⟨ Δ ~ K ( i ) , Δ θ ~ K ⋆ ⟩ − 1 2 ∥ Δ ~ K ( i ) ∥ 2 2 . s_i := \left\langle\widetilde{\Delta}_{K}(i),\widetilde{\Delta\theta}^{\star}_{K}\right\rangle-\frac{1}{2}\left\|\widetilde{\Delta}_{K}(i)\right\|_{2}^{2}. s i := ⟨ Δ K ( i ) , Δ θ K ⋆ ⟩ − 2 1 Δ K ( i ) 2 2 .
Thus, s i s_i s i is exactly the signed decrease in the whitened quadratic objective from the empty subset to candidate i i i alone. A singleton is not a feasible final subset when S > 1 S>1 S > 1 . Compared with LESS [6 ] , which ranks examples by alignment alone, our selector adds a quadratic term that penalizes costly components under the empirical reference geometry. We provide the complete selection algorithm in Algorithm 3.
The singleton scores construct the shortlist. Each greedy choice uses the current sum s ~ \widetilde{s} s and hence includes interactions with already selected examples; ties may be resolved arbitrarily. For m > S m>S m > S , these interactions can change the final subset relative to static top-S S S ranking. When m = S m=S m = S , the final subset is necessarily the entire shortlist, irrespective of the greedy order. The procedure takes all S S S steps even when the best remaining addition increases the objective, since the cardinality constraint is exact. Both shortlisting and greedy optimization can introduce matching error.
What matching error implies for drift. For any population-oracle update δ ⋆ \delta^{\star} δ ⋆ satisfying 1 2 ( δ ⋆ ) T F R δ ⋆ ≤ ρ \frac{1}{2}(\delta^{\star})^{\mathsf{T}}\mathbf{F}_{R}\delta^{\star}\leq\rho 2 1 ( δ ⋆ ) T F R δ ⋆ ≤ ρ and any candidate-induced ambient update δ S \delta_{S} δ S , let e : = δ S − δ ⋆ e:=\delta_{S}-\delta^{\star} e := δ S − δ ⋆ . The triangle inequality for the Fisher seminorm gives
1 2 δ S T F R δ S ≤ ( ρ + ∥ e ∥ F R 2 ) 2 , ∥ e ∥ F R ≤ ∥ e ∥ F R + α I . \frac{1}{2}\delta_{S}^{\mathsf{T}}\mathbf{F}_{R}\delta_{S}
\leq
\left(\sqrt{\rho}+\frac{\|e\|_{\mathbf{F}_{R}}}{\sqrt{2}}\right)^{2},
\qquad
\|e\|_{\mathbf{F}_{R}}\leq\|e\|_{\mathbf{F}_{R+\alpha I}}. 2 1 δ S T F R δ S ≤ ( ρ + 2 ∥ e ∥ F R ) 2 , ∥ e ∥ F R ≤ ∥ e ∥ F R + α I .
Thus matching error can increase the quadratic cost beyond ρ \rho ρ ; the matching objective does not impose a hard feasibility constraint on the selected subset. The same inequality holds within the empirical surrogate geometry, but a small reduced matching error alone does not control omitted directions, Fisher estimation error, or the difference between the surrogate and actual optimizer update. Under Proposition 1, actual KL drift has the additional local remainder o ( ∥ δ S ∥ 2 2 ) o(\|\delta_{S}\|_{2}^{2}) o ( ∥ δ S ∥ 2 2 ) . These local statements do not guarantee the drift of a subsequent multi-step fine-tuning trajectory.
Entanglement diagnostics in the working subspace
Entanglement quadrant
A key insight from Proposition 2 is that the target gradient’s orientation in the reference Fisher geometry affects the local gain–drift trade-off. As a descriptive diagnostic, we use the low-rank basis U K = [ U ^ K R U ^ K T ] \mathbf{U}_{K}=[\widehat{\mathbf{U}}_{K_R}\ \widehat{\mathbf{U}}_{K_T}] U K = [ U K R U K T ] to describe Algorithm 3 Forward greedy approximation to the whitened reduced objective
Input: Whitened candidate-update matrix Δ ~ K = [ Δ ~ K ( 1 ) ⋯ Δ ~ K ( N C ) ] \widetilde{\Delta}_{K} = [\widetilde{\Delta}_{K}(1)\ \cdots\ \widetilde{\Delta}_{K}(N_C)] Δ K = [ Δ K ( 1 ) ⋯ Δ K ( N C )] , whitened target update Δ θ ~ K ∗ \widetilde{\Delta\theta}^{\ast}_{K} Δ θ K ∗ , integer subset budget 1 ≤ S ≤ N C 1 \le S \le N_C 1 ≤ S ≤ N C , integer shortlist size S ≤ m ≤ N C S \le m \le N_C S ≤ m ≤ N C .
Output: Selected subset S ^ ⊆ [ N C ] \widehat{S} \subseteq[N_C] S ⊆ [ N C ] with ∣ S ^ ∣ = S |\widehat{S}| = S ∣ S ∣ = S , and selection vector w ^ \widehat{w} w .
For each i ∈ [ N C ] i \in[N_C] i ∈ [ N C ] , compute the singleton score
s i ← ⟨ Δ ~ K ( i ) , Δ θ ~ K ∗ ⟩ − 1 2 ∥ Δ ~ K ( i ) ∥ 2 2 . s_i \leftarrow\left\langle\widetilde{\Delta}_{K}(i),\widetilde{\Delta\theta}^{\ast}_{K}\right\rangle-\frac{1}{2}\left\|\widetilde{\Delta}_{K}(i)\right\|_{2}^{2}. s i ← ⟨ Δ K ( i ) , Δ θ K ∗ ⟩ − 2 1 Δ K ( i ) 2 2 .
Let M m ⊆ [ N C ] \mathcal{M}_m \subseteq[N_C] M m ⊆ [ N C ] be the indices of the top-m m m scores { s i } i = 1 N C \{s_i\}_{i=1}^{N_C} { s i } i = 1 N C , using any fixed rule to break ties.
Initialize S ^ ← ∅ \widehat{S} \leftarrow\varnothing S ← ∅ and s ~ ← 0 ∈ R K \widetilde{s} \leftarrow0 \in\mathbb{R}^{K} s ← 0 ∈ R K .
for t = 1 , … , S t=1,\ldots,S t = 1 , … , S do
Choose
j ∗ ∈ arg min j ∈ M m ∖ S ^ ( 1 2 ∥ Δ ~ K ( j ) ∥ 2 2 + ⟨ s ~ , Δ ~ K ( j ) ⟩ − ⟨ Δ θ ~ K ∗ , Δ ~ K ( j ) ⟩ ) . j^{\ast} \in\underset{j\in\mathcal{M}_m\setminus\widehat{S}}{\arg\min}\left(\frac{1}{2}\left\|\widetilde{\Delta}_{K}(j)\right\|_{2}^{2}+\left\langle\widetilde{s},\widetilde{\Delta}_{K}(j)\right\rangle-\left\langle\widetilde{\Delta\theta}^{\ast}_{K},\widetilde{\Delta}_{K}(j)\right\rangle\right). j ∗ ∈ j ∈ M m ∖ S arg min ( 2 1 Δ K ( j ) 2 2 + ⟨ s , Δ K ( j ) ⟩ − ⟨ Δ θ K ∗ , Δ K ( j ) ⟩ ) .
Update
S ^ ← S ^ ∪ { j ∗ } , s ~ ← s ~ + Δ ~ K ( j ∗ ) . \widehat{S}\leftarrow\widehat{S}\cup\{j^{\ast}\},\qquad\widetilde{s}\leftarrow\widetilde{s}+\widetilde{\Delta}_{K}(j^{\ast}). S ← S ∪ { j ∗ } , s ← s + Δ K ( j ∗ ) .
end for
Set w ^ i ← 1 { i ∈ S ^ } \widehat{w}_i \leftarrow\mathbf{1}\{i\in\widehat{S}\} w i ← 1 { i ∈ S } for all i ∈ [ N C ] i\in[N_C] i ∈ [ N C ] .
return S ^ , w ^ \widehat{S},\widehat{w} S , w .
where candidate alignment with the reduced target direction occurs. Decompose the candidate- and target-gradient coordinates in this basis as,
b ^ i ( K ) = U K ⊤ g i r a w = [ U ^ K ⊤ g i r a w U ^ K ⊥ ⊤ g i r a w ] = [ b ^ i R b ^ i T ] , b ^ t a r ( K ) = U K ⊤ g t a r r a w = [ U ^ K ⊤ g t a r r a w U ^ K ⊥ ⊤ g t a r r a w ] = [ b ^ t a r R b ^ t a r T ] . \widehat{b}_i^{(K)}=\mathbf{U}_{K}^{\top}g_i^{\mathrm{raw}}=
\begin{bmatrix}
\widehat{\mathbf{U}}_{K}^{\top}g_i^{\mathrm{raw}}\\
\widehat{\mathbf{U}}_{K}^{\perp\top}g_i^{\mathrm{raw}}
\end{bmatrix}
=
\begin{bmatrix}
\widehat{b}_i^{R}\\
\widehat{b}_i^{T}
\end{bmatrix},
\qquad
\widehat{b}_{\mathrm{tar}}^{(K)}=\mathbf{U}_{K}^{\top}g_{\mathrm{tar}}^{\mathrm{raw}}=
\begin{bmatrix}
\widehat{\mathbf{U}}_{K}^{\top}g_{\mathrm{tar}}^{\mathrm{raw}}\\
\widehat{\mathbf{U}}_{K}^{\perp\top}g_{\mathrm{tar}}^{\mathrm{raw}}
\end{bmatrix}
=
\begin{bmatrix}
\widehat{b}_{\mathrm{tar}}^{R}\\
\widehat{b}_{\mathrm{tar}}^{T}
\end{bmatrix}. b i ( K ) = U K ⊤ g i raw = [ U K ⊤ g i raw U K ⊥ ⊤ g i raw ] = [ b i R b i T ] , b tar ( K ) = U K ⊤ g tar raw = [ U K ⊤ g tar raw U K ⊥ ⊤ g tar raw ] = [ b tar R b tar T ] .
Here, b ^ i R \widehat{b}_i^{R} b i R refers to the projection of the candidate gradients along the reference space, while b ^ i T \widehat{b}_i^{T} b i T refers to their projection in the residualized target space. We define two target-alignment scores under the reference subspace and the residual task subspace, respectively,
d i R = ( b ^ i R ) ⊤ ( Λ ^ K R + α I K R ) − 1 b ^ t a r R , d i T = α − 1 ( b ^ i T ) ⊤ b ^ t a r T . d_i^{R}=\left(\widehat{b}_i^{R}\right)^{\top}\left(\widehat{\Lambda}_{K_R}+\alpha I_{K_R}\right)^{-1}\widehat{b}_{\mathrm{tar}}^{R},
\qquad
d_i^{T}=\alpha^{-1}\left(\widehat{b}_i^{T}\right)^{\top}\widehat{b}_{\mathrm{tar}}^{T}. d i R = ( b i R ) ⊤ ( Λ K R + α I K R ) − 1 b tar R , d i T = α − 1 ( b i T ) ⊤ b tar T .
Here, d i R > 0 d_i^{R}>0 d i R > 0 indicates positive damped target alignment within the retained reference block, while d i T > 0 d_i^{T}>0 d i T > 0 indicates positive alignment in the residual task block. The latter block is orthogonal to the retained reference subspace, but need not have zero cost under the full Fisher. An empty block contributes zero to its alignment score. Their sum is ( b ^ i ( K ) ) ⊤ M K − 1 b ^ t a r ( K ) \left(\widehat{b}_i^{(K)}\right)^{\top}M_{K}^{-1}\widehat{b}_{\mathrm{tar}}^{(K)} ( b i ( K ) ) ⊤ M K − 1 b tar ( K ) , which in general differs from the linear term in the whitened matching score. Indeed, substituting (11) gives
⟨ Δ ~ K ( i ) , Δ θ ~ K ∗ ⟩ = η S ^ μ K ( b ^ i ( K ) ) ⊤ P K b ^ t a r ( K ) . \left\langle\widetilde{\Delta}_{K}(i),\widetilde{\Delta\theta}^{\ast}_{K}\right\rangle
=
\frac{\eta}{\widehat{S}_{\mu K}}\left(\widehat{b}_i^{(K)}\right)^{\top}\mathbf{P}_{K}\widehat{b}_{\mathrm{tar}}^{(K)}. ⟨ Δ K ( i ) , Δ θ K ∗ ⟩ = S μ K η ( b i ( K ) ) ⊤ P K b tar ( K ) .
because the matching metric cancels the inverse metric in the target update. We partition candidates by the signs of ( d i R , d i T ) (d_i^{R},d_i^{T}) ( d i R , d i T ) :
Q r e f : = { z i ∈ D t r a i n : d i T ≤ 0 , d i R > 0 } , Q c l e a n : = { z i ∈ D t r a i n : d i T > 0 , d i R ≤ 0 } , Q_{\mathrm{ref}}:=\{z_i\in\mathcal{D}_{\mathrm{train}}:d_i^{T}\le0,\ d_i^{R}>0\},
\qquad
Q_{\mathrm{clean}}:=\{z_i\in\mathcal{D}_{\mathrm{train}}:d_i^{T}>0,\ d_i^{R}\le0\}, Q ref := { z i ∈ D train : d i T ≤ 0 , d i R > 0 } , Q clean := { z i ∈ D train : d i T > 0 , d i R ≤ 0 } ,
Q e n t : = { z i ∈ D t r a i n : d i T > 0 , d i R > 0 } , Q m i s : = { z i ∈ D t r a i n : d i T ≤ 0 , d i R ≤ 0 } . Q_{\mathrm{ent}}:=\{z_i\in\mathcal{D}_{\mathrm{train}}:d_i^{T}>0,\ d_i^{R}>0\},
\qquad
Q_{\mathrm{mis}}:=\{z_i\in\mathcal{D}_{\mathrm{train}}:d_i^{T}\le0,\ d_i^{R}\le0\}. Q ent := { z i ∈ D train : d i T > 0 , d i R > 0 } , Q mis := { z i ∈ D train : d i T ≤ 0 , d i R ≤ 0 } .
We then measure the proportions of the candidate examples in each quadrant by,
π Q : = 1 N C ∑ z i ∈ D t r a i n 1 { z i ∈ Q } , Q ∈ { Q c l e a n , Q e n t , Q r e f , Q m i s } . (25) \pi_Q:=\frac{1}{N_C}\sum_{z_i\in\mathcal{D}_{\mathrm{train}}}\mathbf{1}\{z_i\in Q\},
\qquad
Q\in\{Q_{\mathrm{clean}},Q_{\mathrm{ent}},Q_{\mathrm{ref}},Q_{\mathrm{mis}}\}. \tag*{(25)} π Q := N C 1 z i ∈ D train ∑ 1 { z i ∈ Q } , Q ∈ { Q clean , Q ent , Q ref , Q mis } . (25)
These four proportions summarize signs of blockwise alignment in the candidate pool. Q e n t Q_{\mathrm{ent}} Q ent has positive alignment in both blocks; Q c l e a n Q_{\mathrm{clean}} Q clean has positive residual alignment and non-positive reference alignment; Q r e f Q_{\mathrm{ref}} Q ref has the reverse pattern; and Q m i s Q_{\mathrm{mis}} Q mis has non-positive alignment in both blocks. The signs alone give neither the magnitudes of the two contributions nor a reference-cost bound. In particular, membership in Q c l e a n Q_{\mathrm{clean}} Q clean need not imply positive total target alignment: a negative reference contribution can dominate the positive residual contribution. Total gain for a preconditioned optimizer also depends on P P P . We provide π Q c l e a n \pi_{Q_{\mathrm{clean}}} π Q clean and π Q e n t \pi_{Q_{\mathrm{ent}}} π Q ent of our experiments in Table 1 .
The quadrant percentages in (25) are descriptive diagnostics, not selection rules or guarantees of target improvement or drift control. SAFE-DRIFT does not simply select all examples from Q c l e a n Q_{\mathrm{clean}} Q clean . These pool-level percentages describe the available blockwise alignment patterns; the selected subset is determined by the matching procedure.
Reference-entanglement diagnostics
The same decomposition also permits diagnostics of blockwise gradient energy, complementing the alignment signs above. These energy ratios describe the retained subspace, without establishing gain or drift for an update.
We use two complementary reference-entanglement diagnostics for a reduced gradient, when K R , K T > 0 K_R,K_T>0 K R , K T > 0 and the corresponding denominators are positive. Here Λ R : = Λ ^ K R \Lambda_R := \widehat{\Lambda}_{K_R} Λ R := Λ K R is the diagonal matrix of retained reference eigenvalues:
ρ E ( b ) = ∥ b R ∥ 2 2 / K R ∥ b R ∥ 2 2 / K R + ∥ b T ∥ 2 2 / K T , ρ s a f e ( b ) = ( b R ) ⊤ Λ R b R / K R ( b R ) ⊤ Λ R b R / K R + α ∥ b T ∥ 2 2 / K T . (26) \rho_E(b)=\frac{\lVert b^R\rVert_2^2/K_R}{\lVert b^R\rVert_2^2/K_R+\lVert b^T\rVert_2^2/K_T},\qquad
\rho_{\mathrm{safe}}(b)=\frac{(b^R)^\top\Lambda_Rb^R/K_R}{(b^R)^\top\Lambda_Rb^R/K_R+\alpha\lVert b^T\rVert_2^2/K_T}. \tag*{(26)} ρ E ( b ) = ∥ b R ∥ 2 2 / K R + ∥ b T ∥ 2 2 / K T ∥ b R ∥ 2 2 / K R , ρ safe ( b ) = ( b R ) ⊤ Λ R b R / K R + α ∥ b T ∥ 2 2 / K T ( b R ) ⊤ Λ R b R / K R . (26)
The quantity ρ E ( b ) \rho_E(b) ρ E ( b ) compares mean squared gradient coordinates in the two blocks; it is dimension-normalized rather than the fraction of total gradient energy. We retain the numerical definition of ρ s a f e ( b ) \rho_{\mathrm{safe}}(b) ρ safe ( b ) as a hybrid diagnostic, weighting the reference block by Λ R \Lambda_R Λ R and the residual block by α \alpha α . It is not the energy allocation under M α , K M_{\alpha,K} M α , K , whose reference block is Λ R + α I \Lambda_R+\alpha I Λ R + α I , nor the allocation of the preconditioned update.
For equal, strictly positive squared magnitude in every coordinate, the baselines are
ρ E = 1 2 , ρ s a f e = λ ˉ R λ ˉ R + α , λ ˉ R : = tr ( Λ R ) K R . \rho_E=\frac{1}{2},\qquad
\rho_{\mathrm{safe}}=\frac{\bar{\lambda}_R}{\bar{\lambda}_R+\alpha},\qquad
\bar{\lambda}_R:=\frac{\operatorname{tr}(\Lambda_R)}{K_R}. ρ E = 2 1 , ρ safe = λ ˉ R + α λ ˉ R , λ ˉ R := K R tr ( Λ R ) .
Thus K R / K K_R/K K R / K is not a general baseline for equal energy per coordinate in these diagnostics. When a block dimension or a denominator is zero, the corresponding ratio is undefined and should not be interpreted or plotted as an observed value.
We apply these diagnostics to target and candidate gradients together with the alignment signs from Section C.3.1. A large value indicates greater relative energy in the retained reference block under the specified weighting; it does not measure absolute update magnitude, establish target gain, or bound reference drift. Their role is to describe the structured working subspace used by the selector.
Experiments
Synthetic linear experiments
To build better intuition on the performance of our method in simple settings, we begin with a family of synthetic linear models designed to isolate the two statistical ingredients highlighted by our theory: the estimation problem (estimating the target gradient g T g_T g T from few target examples, and estimating the reference geometry F R F_R F R from limited reference data) and the optimization problem (maximizing first-order target gain under an off-target budget).
Linear-Gaussian setup. We first consider a linear Gaussian model with σ 2 > 0 \sigma^2>0 σ 2 > 0 and noise independent of the input in each data-generating distribution. For an input x ∈ R d x\in\mathbb{R}^d x ∈ R d , the base model is
p θ ( y ∣ x ) = N ( x ⊤ θ , σ 2 ) , ℓ ( ( x , y ) ; θ ) = 1 2 σ 2 ( y − x ⊤ θ ) 2 . p_\theta(y\mid x)=\mathcal{N}(x^\top\theta,\sigma^2),\qquad
\ell((x,y);\theta)=\frac{1}{2\sigma^2}(y-x^\top\theta)^2. p θ ( y ∣ x ) = N ( x ⊤ θ , σ 2 ) , ℓ (( x , y ) ; θ ) = 2 σ 2 1 ( y − x ⊤ θ ) 2 .
Target examples are generated by
x ∼ N ( 0 , Σ T ) , y = x ⊤ β T + ξ , ξ ∼ N ( 0 , σ 2 ) , x\sim\mathcal{N}(0,\Sigma_T),\qquad
y=x^\top\beta_T+\xi,\qquad
\xi\sim\mathcal{N}(0,\sigma^2), x ∼ N ( 0 , Σ T ) , y = x ⊤ β T + ξ , ξ ∼ N ( 0 , σ 2 ) ,
while reference inputs are drawn from
x ∼ N ( 0 , Σ R ) . x\sim\mathcal{N}(0,\Sigma_R). x ∼ N ( 0 , Σ R ) .
We set the base point to θ 0 = 0 \theta_0=0 θ 0 = 0 . In this model, the per-example gradient and target gradient at the base point are
g i = ∇ θ ℓ ( z i ; θ 0 ) = − 1 σ 2 y i x i , g T = ∇ θ L T ( θ 0 ) = − 1 σ 2 Σ T β T . g_i=\nabla_\theta\ell(z_i;\theta_0)=-\frac{1}{\sigma^2}y_i x_i,\qquad
g_T=\nabla_\theta L_T(\theta_0)=-\frac{1}{\sigma^2}\Sigma_T\beta_T. g i = ∇ θ ℓ ( z i ; θ 0 ) = − σ 2 1 y i x i , g T = ∇ θ L T ( θ 0 ) = − σ 2 1 Σ T β T .
v α = u 1 25 + α + u 2 1 + α v_{\alpha}=\frac{u_1}{25+\alpha}+\frac{u_2}{1+\alpha} v α = 25 + α u 1 + 1 + α u 2
(a) U = I 2 \mathrm{U}=\mathrm{I}_2 U = I 2 : u 1 u_1 u 1 is 45 ∘ 45^\circ 4 5 ∘ from − g T -g_T − g T .
v α = ( 3 + 1 ) u 1 2 ( 25 + α ) + ( 3 − 1 ) u 2 2 ( 1 + α ) v_{\alpha}=\frac{(\sqrt{3}+1)u_1}{2(25+\alpha)}+\frac{(\sqrt{3}-1)u_2}{2(1+\alpha)} v α = 2 ( 25 + α ) ( 3 + 1 ) u 1 + 2 ( 1 + α ) ( 3 − 1 ) u 2
(b) U \mathrm{U} U rotated by π / 6 \pi/6 π /6 : u 1 u_1 u 1 is 15 ∘ 15^\circ 1 5 ∘ from − g T -g_T − g T .
Figure 6. Analytic damped directions v α / ∥ v α ∥ 2 v_\alpha/\lVert v_\alpha\rVert_2 v α / ∥ v α ∥ 2 , α ≥ 0 \alpha\ge0 α ≥ 0 , for the two geometries in (27) . The reference spectrum is ( 25 , 1 ) (25,1) ( 25 , 1 ) , so u 2 u_2 u 2 has positive curvature. Normalization describes direction only; the feasible step length depends on both budgets. In particular, ρ = 0 \rho=0 ρ = 0 permits only the zero update in this positive-definite example.
and the reference Fisher is
F R = E x ∼ R E y ∼ p θ 0 ( ⋅ ∣ x ) [ ∇ θ log p θ 0 ( y ∣ x ) ∇ θ log p θ 0 ( y ∣ x ) ⊤ ] = 1 σ 2 Σ R . \mathbf{F}_{R}=\mathbb{E}_{x\sim\mathcal{R}}\mathbb{E}_{y\sim p_{\theta_0}(\cdot\mid x)}\left[\nabla_\theta\log p_{\theta_0}(y\mid x)\nabla_\theta\log p_{\theta_0}(y\mid x)^\top\right]=\frac{1}{\sigma^2}\boldsymbol{\Sigma}_{R}. F R = E x ∼ R E y ∼ p θ 0 ( ⋅ ∣ x ) [ ∇ θ log p θ 0 ( y ∣ x ) ∇ θ log p θ 0 ( y ∣ x ) ⊤ ] = σ 2 1 Σ R .
In this synthetic setting, the raw per-example gradient g i g_i g i is available in closed form; it plays the same role as g ^ r a w \hat{g}^{\mathrm{raw}} g ^ raw in the empirical algorithm. Moreover, unlike the general nonlinear setting where the quadratic expansion is local, the reference drift is exact here:
D R ( Δ θ ) = E x ∼ R [ D K L ( p θ 0 ( ⋅ ∣ x ) ∥ p θ 0 + Δ θ ( ⋅ ∣ x ) ) ] = 1 2 σ 2 Δ θ ⊤ Σ R Δ θ = 1 2 Δ θ ⊤ F R Δ θ . D_R(\Delta\theta)=\mathbb{E}_{x\sim\mathcal{R}}\left[D_{\mathrm{KL}}\left(p_{\theta_0}(\cdot\mid x)\mathbin{\|}p_{\theta_0+\Delta\theta}(\cdot\mid x)\right)\right]=\frac{1}{2\sigma^2}\Delta\theta^\top\boldsymbol{\Sigma}_R\Delta\theta=\frac{1}{2}\Delta\theta^\top\mathbf{F}_R\Delta\theta. D R ( Δ θ ) = E x ∼ R [ D KL ( p θ 0 ( ⋅ ∣ x ) ∥ p θ 0 + Δ θ ( ⋅ ∣ x ) ) ] = 2 σ 2 1 Δ θ ⊤ Σ R Δ θ = 2 1 Δ θ ⊤ F R Δ θ .
The exact target improvement also includes curvature:
L T ( 0 ) − L T ( Δ θ ) = − g T ⊤ Δ θ − 1 2 σ 2 Δ θ ⊤ Σ T Δ θ . L_T(0)-L_T(\Delta\theta)=-g_T^\top\Delta\theta-\frac{1}{2\sigma^2}\Delta\theta^\top\boldsymbol{\Sigma}_T\Delta\theta. L T ( 0 ) − L T ( Δ θ ) = − g T ⊤ Δ θ − 2 σ 2 1 Δ θ ⊤ Σ T Δ θ .
Thus first-order alignment is not identical to realized target improvement, even though reference drift is exactly quadratic here.
Updates and evaluation. Given a selected subset S ⊂ D t r a i n \mathcal{S}\subset\mathcal{D}_{\mathrm{train}} S ⊂ D train of size S S S , we form the update
Δ θ ( S ) = − η S P ∑ i ∈ S g i . \Delta\theta(\mathcal{S})=-\frac{\eta}{S}\mathbf{P}\sum_{i\in\mathcal{S}}g_i. Δ θ ( S ) = − S η P i ∈ S ∑ g i .
where P \mathbf{P} P is the preconditioner associated with the update rule. In particular, we use P = I d \mathbf{P}=\mathbf{I}_d P = I d for stochastic gradient descent. We evaluate each selected update using
Gain h e l d ( S ) = L T ( θ 0 ) − L T ( θ 0 + Δ θ ( S ) ) , \operatorname{Gain}_{\mathrm{held}}(\mathcal{S})=L_T(\theta_0)-L_T(\theta_0+\Delta\theta(\mathcal{S})), Gain held ( S ) = L T ( θ 0 ) − L T ( θ 0 + Δ θ ( S )) ,
Drift h e l d ( S ) = D R ( Δ θ ( S ) ) , \operatorname{Drift}_{\mathrm{held}}(\mathcal{S})=D_R(\Delta\theta(\mathcal{S})), Drift held ( S ) = D R ( Δ θ ( S )) ,
and, when the population quantities are known and both updates are nonzero, the directional error relative to the oracle update in the positive-multiplier regime
Δ θ ⋆ ∝ − ( F R + α I d ) − 1 g T , DirErr ( S ) = 1 − cos ( Δ θ ( S ) , Δ θ ⋆ ) . \Delta\theta^\star\propto-(\mathbf{F}_R+\alpha\mathbf{I}_d)^{-1}g_T,\qquad
\operatorname{DirErr}(\mathcal{S})=1-\cos\bigl(\Delta\theta(\mathcal{S}),\Delta\theta^\star\bigr). Δ θ ⋆ ∝ − ( F R + α I d ) − 1 g T , DirErr ( S ) = 1 − cos ( Δ θ ( S ) , Δ θ ⋆ ) .
Experiment 1: Low-dimensional geometry (d = 2 d=2 d = 2 ). In the first experiment, we ask how the reference geometry reshapes Δ θ ⋆ \Delta\theta^\star Δ θ ⋆ as the damping α \alpha α varies, and also how this reshaping depends on the orientation of the expensive direction u 1 u_1 u 1 relative to the target direction − g T -g_T − g T . We choose
Σ R = U diag ( 25 , 1 ) U ⊤ , Σ T = I 2 , β T = ( 1 , 1 ) ⊤ , σ 2 = 1 , (27) \boldsymbol{\Sigma}_R=\mathbf{U}\operatorname{diag}(25,1)\mathbf{U}^{\top},\qquad
\boldsymbol{\Sigma}_T=\mathbf{I}_2,\qquad
\beta_T=(1,1)^\top,\qquad
\sigma^2=1, \tag*{(27)} Σ R = U diag ( 25 , 1 ) U ⊤ , Σ T = I 2 , β T = ( 1 , 1 ) ⊤ , σ 2 = 1 , (27)
with U = ( u 1 u 2 ) \mathbf{U}=(u_1\ u_2) U = ( u 1 u 2 ) a rotation, so − g T = β T -g_T=\beta_T − g T = β T points at 45 ∘ 45^\circ 4 5 ∘ and u 1 u_1 u 1 costs 25 × 25\times 25 × more drift than u 2 u_2 u 2 . We compare (a) U = I 2 \mathbf{U}=\mathbf{I}_2 U = I 2 , where u 1 u_1 u 1 is 45 ∘ 45^\circ 4 5 ∘ from − g T -g_T − g T , and (b) U \mathbf{U} U a rotation by π / 6 \pi/6 π /6 , where u 1 u_1 u 1 is only 15 ∘ 15^\circ 1 5 ∘ away (used in Experiments 2–3). In both cases reference weighting turns the direction toward u 2 u_2 u 2 , and increasing damping rotates it back toward − g T -g_T − g T . The rotation depends on both the initial angle and α \alpha α ; neither orientation has a uniformly larger rotation for all damping values.
Experiment 2: Finite-pool subset selection in d = 2 d=2 d = 2 . To visualize which points each method would preferentially select, we consider the setting of Experiment 1 (Equation (27) ) and introduce a finite candidate pool, since Experiment 1 contains no data to select from. We draw it from a three-component Gaussian mixture with different input-variance orientations:
x i ∼ 1 3 N ( 0 , Σ 1 ) + 1 3 N ( 0 , Σ 2 ) + 1 3 N ( 0 , Σ 3 ) , y i = x i ⊤ β T + ξ i , ξ i ∼ N ( 0 , σ 2 ) . (28) x_i\sim\frac{1}{3}\mathcal{N}(0,\boldsymbol{\Sigma}_1)+\frac{1}{3}\mathcal{N}(0,\boldsymbol{\Sigma}_2)+\frac{1}{3}\mathcal{N}(0,\boldsymbol{\Sigma}_3),\qquad
y_i=x_i^\top\beta_T+\xi_i,\qquad
\xi_i\sim\mathcal{N}(0,\sigma^2). \tag*{(28)} x i ∼ 3 1 N ( 0 , Σ 1 ) + 3 1 N ( 0 , Σ 2 ) + 3 1 N ( 0 , Σ 3 ) , y i = x i ⊤ β T + ξ i , ξ i ∼ N ( 0 , σ 2 ) . (28)
with
Σ 1 = U diag ( 9 , 0.25 ) U ⊤ , Σ 2 = U diag ( 0.25 , 9 ) U ⊤ , Σ 3 = I 2 . \Sigma_1 = U\operatorname{diag}(9, 0.25)U^\top,\qquad\Sigma_2 = U\operatorname{diag}(0.25, 9)U^\top,\qquad\Sigma_3 = I_2. Σ 1 = U diag ( 9 , 0.25 ) U ⊤ , Σ 2 = U diag ( 0.25 , 9 ) U ⊤ , Σ 3 = I 2 .
The first two components concentrate input variance along high- and low-curvature reference directions, respectively, and the third supplies isotropic inputs. The induced gradients also depend on labels and noise and need not be isotropic; component membership alone does not guarantee usefulness or a particular update cost. The raw data—and the corresponding descent directions—are shown in Figure 7 . For each method, we visualize the candidate descent directions, highlight the selected subset, and plot the resulting update direction (Figure 8 ).
Figure 7. The candidate pool in the setting of Experiment 2 (Equation (28) ). Left : the inputs x i x_i x i . Right : the candidate descent directions, proportional to − g i -g_i − g i , displayed in update coordinates. Here − g T = σ − 2 Σ T β T = β T -g_T = \sigma^{-2}\Sigma_T\beta_T = \beta_T − g T = σ − 2 Σ T β T = β T , so the black arrow is the target direction − g T -g_T − g T .
Figure 8. Selection methods on the pool of Figure 7 . For each method: candidate descent directions proportional to − g i -g_i − g i , the selected subset (highlighted), and the resulting update direction Δ θ ( S ) \Delta\theta(S) Δ θ ( S ) . The graphic’s “forbidden” and “safe” labels denote the high- and low-curvature axes; neither is prohibited or has zero reference cost under the spectrum ( 25 , 1 ) (25, 1) ( 25 , 1 ) .
Experiment 3: Trade-offs in Alignment/ off-target drift in d = 2 d = 2 d = 2 . Experiments 1 and 2 hold the target direction fixed. We now compare two target specifications at fixed reference geometry to illustrate how the target–drift trade-off depends on entanglement : the extent to which − g T -g_T − g T overlaps the expensive directions of F R F_R F R . Results are reported in Figure 2 .
We compare the two instances:
entangled: β T = ( 1 , 1 ) ⊤ \beta_T = (1, 1)^\top β T = ( 1 , 1 ) ⊤ , which lies 15 ∘ 15^\circ 1 5 ∘ from u 1 u_1 u 1 (the rotated case of Experiment 1);
disentangled: β T = u 2 = ( − 1 2 , 3 2 ) ⊤ \beta_T = u_2 = \left(-\frac{1}{2}, \frac{\sqrt{3}}{2}\right)^\top β T = u 2 = ( − 2 1 , 2 3 ) ⊤ , exactly orthogonal to u 1 u_1 u 1 .
The two target gradients also differ in norm (2 \sqrt{2} 2 versus 1), so this comparison does not isolate orientation alone. For each method we measure, for its selected update Δ θ \Delta\theta Δ θ :
alignment: − g T ⊤ Δ θ , drift: 1 2 Δ θ ⊤ F R Δ θ , \text{alignment: } -g_T^\top\Delta\theta,\qquad\text{drift: } \frac{1}{2}\Delta\theta^\top F_R\Delta\theta, alignment: − g T ⊤ Δ θ , drift: 2 1 Δ θ ⊤ F R Δ θ ,
The plotted drift axis in Figure 2 is labeled Δ θ ⊤ F R Δ θ \Delta\theta^\top F_R\Delta\theta Δ θ ⊤ F R Δ θ , twice the theoretical quadratic cost above; the displayed red line is a nominal reference level and is not used here to certify feasibility. Results are averaged over 100 random seeds.
In the entangled panel, SAFE-DRIFT reduces mean plotted drift relative to the other selectors while giving up some target alignment. In the disentangled panel, the selectors attain different alignment–drift trade-offs; SAFE-DRIFT is not the minimum-drift method. A target direction lying in a lower-curvature eigenspace does not by itself make the budget inactive, and approximate subset matching does not certify every selected update as feasible.
Experiment 4: Estimation error and spectral decay in d = 200 d = 200 d = 200 . Experiments 1–3 assume the population quantities are known. We now reintroduce the estimation problem: g T g_T g T and F R F_R F R must be recovered from finite samples and represented in a shared low-rank basis. We use a synthetic high-dimensional teacher–student model in which the reference and target geometries can have different spectral structure. In all runs, the ambient dimension is d = 200 d = 200 d = 200 , the true reference rank is r = 40 r = 40 r = 40 , the candidate pool contains N C = 800 N_C = 800 N C = 800 examples, the target gradient is estimated from N T = 32 N_T = 32 N T = 32 samples, the reference Fisher is estimated from N R = 300 N_R = 300 N R = 300 samples, and the subset budget is S = 40 S = 40 S = 40 . We generate the reference Fisher as F R = σ − 2 U R diag ( λ R ) U R ⊤ F_R = \sigma^{-2}U_R\operatorname{diag}(\lambda^R)U_R^\top F R = σ − 2 U R diag ( λ R ) U R ⊤ and the target covariance as Σ T = U T diag ( λ T ) U T ⊤ \Sigma_T = U_T\operatorname{diag}(\lambda^T)U_T^\top Σ T = U T diag ( λ T ) U T ⊤ , where U R U_R U R and U T U_T U T are independent random orthonormal bases. We sweep both the reference and target spectra over geometric, linear, and power-law decay, and in a denser variant we sweep power-law exponents ( q R , q T ) ∈ { 0.5 , 0.75 , 1.0 , 1.5 , 2.0 } (q_R, q_T) \in\{0.5, 0.75, 1.0, 1.5, 2.0\} ( q R , q T ) ∈ { 0.5 , 0.75 , 1.0 , 1.5 , 2.0 } . For each spectrum pair, we compare SAFE-DRIFT-full, SAFE-DRIFT-low-rank, SAFE-DRIFT-reference-only, SAFE-DRIFT-task-only, SAFE-DRIFT-random-K K K , SAFE-DRIFT-diagonal, LESS, random, and Prismatic over requested working ranks K R + K T ∈ { 10 , 20 , 40 , 60 , 80 , 120 } K_R + K_T \in\{10, 20, 40, 60, 80, 120\} K R + K T ∈ { 10 , 20 , 40 , 60 , 80 , 120 } . All SAFE-DRIFT methods are run under a fixed reference-drift budget ρ = 1 \rho= 1 ρ = 1 , and the realized subset update is always the SGD-style average Δ θ ( S ) = − ( η / S ) ∑ i ∈ S g i \Delta\theta(S) = -(\eta/S)\sum_{i\in S} g_i Δ θ ( S ) = − ( η / S ) ∑ i ∈ S g i . We report the exact realized reference drift 1 2 Δ θ ⊤ F R Δ θ \frac{1}{2}\Delta\theta^\top F_R\Delta\theta 2 1 Δ θ ⊤ F R Δ θ , the exact target gain, and the absolute regret relative to SAFE-DRIFT full, averaged over 10 random seeds and 3 target regimes (for a total of 30 instances per spectrum pair), with standard-error bars shown in all plots.
Figure 9. Off-target drift for the baselines and different variants of SAFE-DRIFT (colors), per requested rank (x-axis) as a function of the spectra of Σ T \Sigma_T Σ T and F R \mathbf{F}_R F R .
Additional details on experiments
Unless a setting specifies a separate evaluation set, experiments use the following configuration. The candidate pool D t r a i n \mathcal{D}_{\mathrm{train}} D train is split into a 3% warmup subset used to estimate the Adam preconditioner P \mathbf{P} P and a remaining 97% from which training points are selected. The target set D t a r \mathcal{D}_{\mathrm{tar}} D tar is divided into three parts: one for computing the target gradient g ^ T \widehat{\mathbf{g}}_T g T , one for validation, and one as a held-out test set. The reference set D r e f \mathcal{D}_{\mathrm{ref}} D ref is split evenly between estimating F ^ R \widehat{\mathbf{F}}_R F R and evaluating reference drift. Each selected subset is then used for fine-tuning with the LoRA training recipe in Table 1 using dropout 0.1, target modules { q , k , v , o } \{q,k,v,o\} { q , k , v , o } , Adam update with learning rate 2 × 10 − 4 2 \times10^{-4} 2 × 1 0 − 4 , 1 epoch, effective batch size 32, and sequence length 4096. Gradients for selection and model updates are computed over LoRA adapters [30 ] applied to the attention modules.
Throughout this section, we write reference Fisher cost to denote the predicted drift D F D_F D F and held-out KL to denote the realized drift D K L D_{\mathrm{KL}} D KL .
Compute Resources For model fine-tuning, we use Huggingface Accelerate [65 ] and utilize Zero3 optimizer in DeepSpeed on two A100 GPUs.
Baseline selectors
We compare SAFE-DRIFT against five baselines. Full fine-tunes on the entire candidate pool without selection, and Random uniformly subsamples the pool at the target budget.
All gradient-based methods—LESS, Prismatic Synthesis, and SAFE-DRIFT—operate on the same set of low-rank projected gradients computed in the shared working basis U K U_K U K , ensuring that differences in selection performance reflect the selection criterion rather than gradient featurization. LESS [6 ] scores each candidate by the cosine similarity between its projected gradient and the projected target gradient, using the low-rank Adam-style preconditioner as the inner product metric. We adapt Prismatic Synthesis [19 ] to promote diversity by clustering candidate gradients via k k k -means and sampling inversely proportional to cluster size, with the number of clusters set to 10% of the pool and 20 Lloyd iterations.
DSIR [17 ] operates on hashed n n n -gram features rather than gradients, scoring candidates by the dot product between their hashed n n n -gram count vectors and the log importance ratio log p − log q \log p-\log q log p − log q , estimated from a 30% subsample of the pool with 10,000 hash buckets.
Setting 1: Code generation
The goal is to improve Python programming ability while leaving the base model’s behavior on stereotypes unchanged. The candidate pool is CodeAlpaca [34 ] , a 20K dataset of general-purpose programming instructions generated via self-instruct [66 ] . The target set is HumanEval [35 ] , a benchmark of 164 hand-written Python programming problems; we split these into 109 test, 27 validation, and 28 examples for computing the target gradient g ^ T \hat{g}_T g ^ T . The reference distribution is defined by the intrasentence split of StereoSet [36 ] , which presents each prompt with a stereotypical, an anti-stereotypical, and an unrelated completion. We retain the stereotypical and anti-stereotypical completions in equal proportion to construct a balanced reference set. This results in 4.21K samples which we split into half for reference Fisher estimation and for evaluating off-target drift. Since computing gradients over the full candidate pool is memory-intensive, the task-side basis U ^ K T \hat{U}_{K_T} U ^ K T is estimated from 4,000 randomly subsampled candidates. We ablate over reference ranks K R ∈ { 128 , 256 , 512 } K_R \in\{128, 256, 512\} K R ∈ { 128 , 256 , 512 } , with the residual ranks detailed in Appendix § 9 .7.3, at selection budget 15%; results are reported in Figure 22 and Figure 23 .
Figure 22. Ablation on the low-rank basis size ( K R , K T ) (K_R, K_T) ( K R , K T ) for SAFE-DRIFT on Setting 1. Left and center panels show change in HumanEval pass@1 and pass@10 relative to the base model; right panel shows change in StereoSet score relative to the base model.
Figure 23. Reference Fisher cost D F = Δ θ t ⊤ F ^ R ( K R ) Δ θ t D_F = \Delta\theta_t^\top\hat{F}_R^{(K_R)} \Delta\theta_t D F = Δ θ t ⊤ F ^ R ( K R ) Δ θ t and projected first-order target-gain proxy − ( U K ⊤ Δ θ t ) b ^ t a r ( K ) -(U_K^\top\Delta\theta_t)\hat{b}_{\mathrm{tar}}^{(K)} − ( U K ⊤ Δ θ t ) b ^ tar ( K ) over training steps, where Δ θ t = θ t − θ 0 \Delta\theta_t = \theta_t-\theta_0 Δ θ t = θ t − θ 0 . These use displacement from initialization and fixed initial geometry; they are not a sum of per-step Fisher costs or an exact validation-risk decrease.
Evaluation metrics. For the target task, we evaluate code generation quality via pass@k k k rates following the protocol of [35 ] : for each problem, k k k candidate solutions are sampled and the problem is considered solved if at least one passes all unit tests. We report pass@1 and pass@10 (mean and standard deviation) for all selectors in Table 2 . For the reference distribution, we use StereoSet score, defined as the proportion of prompts for which the model assigns higher average token probability to the stereotypical completion than to the anti-stereotypical one [36 ] . A score of 50 means that the stereotypical completion receives higher average token probability on half the prompts; this aggregate statistic alone does not establish that a model is unbiased. The base model scores 64.9 on this metric. We additionally record the probability margin, the difference in average token probability between the stereotypical and anti-stereotypical completions. All reference metrics are reported as changes from the base model.
Setting 2: Improving medical knowledge
The goal of this experiment is to improve medical question-answering ability of a model while leaving the base model’s broader non-medical behavior unchanged. The candidate pool is MedMCQA [37 ] , a large collection of multiple-choice medical exam questions. For the target set, we subsample 256 samples from MedQA [38 ] , which consists of medical licensing-style questions. The reference set combines BBQ [39 ] and TruthfulQA [40 ] , covering social bias and factual reliability respectively, forming a non-medical alignment distribution.
Evaluation metrics. We measure fine-tuning performance on the target task using MedQA multiple-choice accuracy, reporting development accuracy for model selection and held-out test accuracy for final evaluation. To assess off-target drift, we evaluate the fine-tuned model on several non-medical benchmarks drawn from the reference evaluation suite. On BBQ [39 ] , we report multiple-choice accuracy as a measure of robustness to social bias. On TruthfulQA [40 ] , we report token-level F1 to capture factual reliability under free-form generation. On IFEval [45 ] , we report prompt accuracy and instruction accuracy, which measure whether the model satisfies explicit formatting and content constraints.
Additional experiments To further show the importance of finetuning in this context, we compare the performance of random selection across various pool sizes. The results are shown in Figure 10 . This figure highlights, in particular, that increasing the pool size does not automatically lead to better performance on the target task (here, MedQA), thereby making a case for the use of data selection in this context.
Figure 10. Pool-size effects on MedQA validation accuracy versus BBQ validation accuracy (left) and TruthfulQA validation token F1 (right) Training uses LoRA rank 16, α = 32 \alpha= 32 α = 32 .
Setting 3: Improving emotional support
We seek to improve emotional-support dialogue performance while leaving the base model’s behavior on mathematical reasoning unchanged. The candidate pool is EmpatheticDialogues [41 ] , a dataset of emotion-grounded open-domain conversations. The target set is ESConv [42 ] , a benchmark of emotional-support conversations. To define the protected reference distribution, we use GSM8K [43 ] , a dataset of grade-school math word problems that probes multi-step mathematical reasoning.
Evaluation metrics. We evaluate target-task performance on ESConv using ROUGE-L F1, which is better suited than exact match for this open-ended generation setting. To measure drift away from the reference capability, we report accuracy on GSM8K and additionally on MMLU (zero-shot) as a broader out-of-domain measure of reasoning and knowledge preservation.
Additional experiments and diagnostics. As for setting 2, we compare the performance of random selection across various pool sizes. The results are shown in Figure 11 . Again, we observe that increasing the pool size does not automatically lead to better performance on the target task.
Figure 11. Pool-size effects on ESConv validation score versus GSM8K validation accuracy. Training uses LoRA rank 64, α = 128 \alpha= 128 α = 128 .
Setting 4: FLAN instruction tuning
The goal is to improve instruction-following behavior while preserving the base model’s performance on an unrelated knowledge-and-reasoning reference task. This setting is deliberately off-target: the selector is asked to identify useful instruction-tuning examples from a broad FLAN-v2 [44 ] pool using a small IFEval-derived target set, while the reference geometry is estimated from MMLU. Thus, unlike settings where the target, candidate, and reference distributions are closely related, this experiment tests whether a selector can extract target-relevant instruction-following signal without unnecessarily perturbing models’ factual knowledge. The reported damping value for SAFE-DRIFT is α = 2 × 10 − 4 \alpha= 2 \times10^{-4} α = 2 × 1 0 − 4 .
Evaluation metrics. For the target task, we evaluate instruction following on the official IFEval test set [45 ] , which contains 491 prompts. Evaluation is performed with using OLMES [67 ] . We report the four standard IFEval accuracies: prompt-level strict, prompt-level loose, instruction-level strict, and instruction-level loose. Prompt-level accuracy requires every constraint in a prompt to be satisfied simultaneously, whereas instruction-level accuracy scores each individual constraint separately and averages over constraints. These aggregate accuracies use different denominators. When the number of constraints varies across prompts, neither aggregate score must exceed the other; for example, one correct single-constraint prompt and one entirely incorrect three-constraint prompt give prompt accuracy 1/2 but instruction accuracy 1/4. Strict scoring applies the original verifier directly, while loose scoring applies light normalization such as lowercasing, whitespace cleanup, and simple punctuation handling before verification. The OLMES primary scores for IFEval is prompt-level strict and instruction strict accuracy, which we use as the main target metric in Table 2 .
For the reference task, we evaluate MMLU on a fixed held-out 200-item test slice. The chat-format mode evaluates MMLU as open-ended generation under the same chat template used during fine-tuning, making it sensitive to whether the fine-tuned model still emits clean single-letter answers such as A, B, C, or D. The loglikelihood mode instead compares
P θ ( A ∣ prompt ) , P θ ( B ∣ prompt ) , P θ ( C ∣ prompt ) , P θ ( D ∣ prompt ) P_{\theta}(A \mid\text{prompt}),\; P_{\theta}(B \mid\text{prompt}),\; P_{\theta}(C \mid\text{prompt}),\; P_{\theta}(D \mid\text{prompt}) P θ ( A ∣ prompt ) , P θ ( B ∣ prompt ) , P θ ( C ∣ prompt ) , P θ ( D ∣ prompt )
and selects the answer with maximum probability. This mode is less sensitive to chat-template formatting and provides a cleaner estimate of whether the fine-tuned model’s underlying multiple-choice knowledge has changed. Since the purpose of the reference task is preservation rather than improvement. Values closest to zero indicate the least off-target movement from the base model.
Entanglement Diagnostics
We show histograms of the reference-entanglement diagnostics from Section C.3.2 for Settings 3 and 4. These ratios normalize each block by its dimension, so they compare energy per coordinate rather than the unnormalized fraction of gradient energy in the reference span. In Setting 3, the concentration near zero indicates weak reference-block energy per coordinate under the respective diagnostic weighting (Figure 12 ). Neither these ratios nor π Q e n t = 0.08 \pi_{Q_{\mathrm{ent}}} = 0.08 π Q ent = 0.08 bounds the absolute reference cost of a selected update. Target gradients have larger diagnostic values than candidate gradients; one possible explanation is that a basis estimated from many more candidates than targets underrepresents target-specific residual directions.
Figure 12. Reference-subspace entanglement diagnostics for Setting 3. We draw the density of ρ E \rho_E ρ E and ρ s a f e \rho_{\mathrm{safe}} ρ safe from (26) with K R = 64 K_R = 64 K R = 64 , and K = 80 K = 80 K = 80 . Values close to 0 indicate smaller reference-block energy per coordinate relative to the residual block, and values close to 1 indicate the reverse, under the respective weighting in (26).
Setting 4 is substantially more entangled, as displayed in Figure 13 and the entanglement scores of π Q e n t = 0.26 \pi_{Q_{\mathrm{ent}}} = 0.26 π Q ent = 0.26 and π Q c l e a n = 0.22 \pi_{Q_{\mathrm{clean}}} = 0.22 π Q clean = 0.22 . The quadrant frequencies indicate positive residual-task alignment for many candidates with positive reference-block alignment. They do not determine total target gain or establish a necessary loss in MMLU accuracy.
Figure 13. Reference-subspace entanglement diagnostics for Setting 4. We draw the density of ρ E \rho_E ρ E and ρ s a f e \rho_{\mathrm{safe}} ρ safe from (26) with K R = 128 K_R = 128 K R = 128 , and K = 160 K = 160 K = 160 . The displayed dashed line marks K R / K = 128 / 160 = 0.8 K_R/K = 128/160 = 0.8 K R / K = 128/160 = 0.8 , which is not the equal-coordinate-energy baseline for these dimension-normalized diagnostics. Those baselines are 1 / 2 1/2 1/2 for ρ E \rho_E ρ E and λ ˉ R / ( λ ˉ R + α ) \bar{\lambda}_R/(\bar{\lambda}_R + \alpha) λ ˉ R / ( λ ˉ R + α ) for ρ s a f e \rho_{\mathrm{safe}} ρ safe , where λ ˉ R \bar{\lambda}_R λ ˉ R is the mean retained reference eigenvalue (Section C.3.2).
Comparison Against Behavior-Preservation Baselines
We provide the complementary results of replay-based methods of DSIR, LESS, and Prismatic of § 3.1 in Table 3 . We additionally experiment with augmenting the reference KL-divergence penalty to the SFT loss:
Table 3. (a) Rehearsal (replay) baselines — Setting 1
L S F T ( θ ) + λ E u ∼ R ^ s e q [ 1 ∣ u ∣ ∑ t = 1 ∣ u ∣ D K L ( p θ 0 ( ⋅ ∣ u < t ) ∥ p θ ( ⋅ ∣ u < t ) ) ] \mathcal{L}_{\mathrm{SFT}}(\theta) + \lambda\mathbb{E}_{u \sim\widehat{\mathcal{R}}_{\mathrm{seq}}}\left[\frac{1}{\lvert u\rvert}\sum_{t=1}^{\lvert u\rvert}D_{\mathrm{KL}}\left(p_{\theta_0}(\cdot\mid u_{<t})\mathbin{\|}p_{\theta}(\cdot\mid u_{<t})\right)\right] L SFT ( θ ) + λ E u ∼ R seq ∣ u ∣ 1 t = 1 ∑ ∣ u ∣ D KL ( p θ 0 ( ⋅ ∣ u < t ) ∥ p θ ( ⋅ ∣ u < t ) )
Table 3b. (b) KL-regularized selection baselines — Settings 2 and 3
Table 3 : Comparison against behavior-preservation baselines. (a) Rehearsal: reference examples, drawn from the Fisher-estimation split and disjoint from the drift-evaluation set, are mixed into training at 10% and 20% of the budget. SAFE-DRIFT never trains on the reference set. (b) LESS and Prismatic augmented with a reference KL penalty with λ \lambda λ chosen on validation set by the geometric mean of target and reference accuracy. We show means and standard deviations of differences from each setting’s base model. For Setting 3, reference-score changes are reported in Table 2 ; panel (b) reports target changes and KL for this comparison.
where R ^ s e q \widehat{\mathcal{R}}_{\mathrm{seq}} R seq denotes the empirical distribution of nonempty observed reference token sequences, distinct from the prompt distribution in (2). The displayed regularizer averages per-sequence token means; for unequal sequence lengths this differs from a corpus-wide token-weighted mean. A fixed observed-prefix average is not generally sequence-level KL. The sequence-KL chain rule instead requires conditional KL terms averaged under the base model’s prefix distribution, without per-sequence length normalization and with termination accounted for when sequence lengths vary. We sweep over λ ∈ { 0 , 0.01 , 0.1 , 1 } \lambda\in\{0, 0.01, 0.1, 1\} λ ∈ { 0 , 0.01 , 0.1 , 1 } and select the best λ \lambda λ on a validation set using the geometric mean of target and reference performance.
When replay increases from 10% to 20%, mean target performance falls for DSIR and Prismatic but rises modestly for LESS; held-out KL rises for all three. For the KL penalty, the reported Spearman correlations between positive λ \lambda λ and held-out KL are − 0.949 -0.949 − 0.949 and − 0.896 -0.896 − 0.896 for LESS and Prismatic in Setting 2, and − 0.949 -0.949 − 0.949 for both in Setting 3. In
Setting 2, regularized Prismatic has the lowest mean KL, whereas SAFE-DRIFT has comparable target gain to DSIR with less reference-score degradation; its KL is 4.003 versus DSIR’s 4.210, a modest reduction. In Setting 3, validation selects λ = 0 \lambda= 0 λ = 0 for LESS and Prismatic. SAFE-DRIFT has the largest mean reference-score improvement and smallest reference-score standard deviation, but not the lowest KL. These metrics therefore capture distinct aspects of reference behavior.
Choosing the Drift Budget ρ \rho ρ
The drift budget ρ \rho ρ is the main user-facing control in SAFE-DRIFT: tighter budgets avoid high-cost reference directions, looser ones let the selector pursue target gain. Section 3.1 sweeps ρ \rho ρ over { 10 − 5 , 10 − 2 , 10 0 } \{10^{-5}, 10^{-2}, 10^{0}\} { 1 0 − 5 , 1 0 − 2 , 1 0 0 } in Setting 2; Table 4 reports rank correlations over a larger sweep of nine hyperparameter configurations in Setting 2 and eighteen in Setting 3, five seeds each. Increasing ρ \rho ρ is positively associated with target performance (Spearman correlation 0.753 and 0.672), but its association with reference drift reverses sign between settings: 0.483 in Setting 2, where a looser budget costs reference accuracy, against −0.735 in Setting 3, where it improves both axes at once (Figure 14 ). ρ \rho ρ is thus a trade-off parameter, not a universally monotone regularizer. The sweep also shows an empirical association between the predicted Fisher cost and held-out KL: D F D_{\mathrm{F}} D F and D K L D_{\mathrm{KL}} D KL correlate at ρ s = 0.967 \rho_{\mathrm{s}} = 0.967 ρ s = 0.967 and 0.670. Figure 16 and Figure 18 provide complementary candidate-level diagnostics; they do not certify the KL of the final model.
Figure 14. Effect of ρ \rho ρ in ESconv (Setting 3)
Figure 16. Selected points plotted on target gain versus realized off-target drift D K L D_{\mathrm{KL}} D KL from SAFE-DRIFT using Euclidean vs reference Fisher-induced norm objective in MedQA experiment (Setting 2).
Figure 18. Selected points plotted on target gain versus realized off-target drift D K L D_{\mathrm{KL}} D KL from SAFE-DRIFT using Euclidean vs reference Fisher-induced norm objective in Esconv experiment (Setting 3).
We recommend tuning ρ \rho ρ on validation target and reference-drift sets. For a local oracle update satisfying the population quadratic budget and ∥ Δ θ ∥ ≤ ϵ < r 0 \lVert\Delta\theta\rVert\le\epsilon< r_{0} ∥ Δ θ ∥ ≤ ϵ < r 0 , the assumptions of Proposition 1 give D R ≤ ρ + M ϵ 3 / 6 D_{\mathrm{R}} \le\rho+ M\epsilon^{3}/6 D R ≤ ρ + M ϵ 3 /6 . Pinsker’s inequality and Jensen’s inequality then bound the reference-input-averaged change in any conditional event probability by ( ρ + M ϵ 3 / 6 ) / 2 \sqrt{(\rho+ M\epsilon^{3}/6)/2} ( ρ + M ϵ 3 /6 ) /2 . This is neither a pointwise guarantee for every prompt nor a guarantee for the selected subset or final SFT model. Empirical Fisher estimation, truncation, subset-matching error, and the training trajectory require separate control; hence validation determines the practical meaning of a chosen ρ \rho ρ .
Robustness across base models, composite references, and fine-tuning methods
Robustness across base models
We repeat Setting 1 across two model families and five configurations—Qwen2.5 at 1.5B, 3B and 7B, and OLMo-2 at 7B and 13B—at a 15% selection budget with three seeds. Table 5 reports the full numbers summarized in Figure 3 (a–Figure 3 c), including fine-tuning on the full candidate pool. Safe-Drift attains the lowest reported log Fisher cost in every configuration, reducing D K L D_{\mathrm{KL}} D KL by 31.1–60.0% relative to full-data fine-tuning. Realized drift D K L D_{\mathrm{KL}} D KL is less uniform: SAFE-DRIFT is lowest at Qwen2.5-1.5B and OLMo-2-13B, and competitive but not best elsewhere. Target performance shows a similar split, with SAFE-DRIFT leading on the smaller Qwen models but not the larger ones—trading target gain for drift control where the target directions are entangled with the reference geometry.
Table 5. Base model ablation (Setting 1). Two model families and five configurations; 15% selection budget and following configurations in Table 1. We measure reference Fisher cost D F D_F D F and the held-out reference KL D K L D_{\mathrm{KL}} D KL , each corresponding to predicted and realized off-target drift. Bold denotes the best selection method per row; “Full Data” is shown for reference and not ranked.
Composite Reference Distributions
SAFE-DRIFT constructs its local drift surrogate from a reference distribution that the practitioner specifies. A natural question is whether the method degrades when the reference is made more complex. We therefore rerun Setting 2 with the reference constructed from several benchmarks at once: writing B for BBQ, T for TruthfulQA and K for MMLU (non-medical knowledge), we set the composition as B+T, B+K, T+K and all three jointly. Every composition optimizes the same target (MedQA accuracy).
Table 6 reports the results. Across all four compositions, SAFE-DRIFT has the lowest held-out reference KL and the largest change in the geometric mean of protected reference scores. It matches or exceeds the best baseline target gain, with gains ranging from +0.078 to +0.094 across compositions. These results do not establish monotonic improvement as more references are added or minimum absolute movement on every reference task. The geometric mean over all three reference tasks also improves relative to the baselines, suggesting some shared preservation benefit, although individual benchmark scores exhibit trade-offs.
Table 6. Composite reference distributions (Setting 2). B = BBQ, T = TruthfulQA, K = MMLU (non-medical knowledge). Each composition names the reference tasks used to construct the SAFE-DRIFT constraint; omitted tasks are still evaluated but not protected. All other baselines optimize the same target (MedQA accuracy). Δ \Delta Δ Ref GM is the fine-tuned-minus-base change in the geometric mean of scores over the protected reference tasks; Δ \Delta Δ All-ref GM is the corresponding change over all three. The last column reports held-out reference KL D K L D_{\mathrm{KL}} D KL , whose base-model value is zero.
LoRA Versus Full Supervised Fine-Tuning
LoRA defines the trainable parameter space throughout our experiments, because it has become the dominant approach to practical parameter-efficient instruction tuning. There is no conceptual obstacle to running SAFE-DRIFT over a full SFT parameterization—only a computational one, since per-example gradients must then be formed in the full parameter space.
Table 7 compares the two on Setting 2. LoRA has the higher reported mean target accuracy, whereas full SFT has the higher reported mean reference accuracy. Higher reference accuracy alone establishes neither smaller distributional drift nor smaller movement from the base model. The table does not isolate the effect of update-subspace size or establish a general ordering between the two parameterizations.
Table 7. LoRA versus full supervised fine-tuning (Setting 2).
Ablations across method design
Using reference-induced norm vs Euclidean norm in the selector
We evaluate the effect of using the reference Fisher-induced norm and the Euclidean norm in the data selection objective in Eq. (7) . We present results for the MedQA and Esconv datasets corresponding to Settings 2 and 3. We report metrics on the target and reference tasks with varying off-target drifts ρ \rho ρ (Figure 17 and Figure 15 ), and visualize the selected gradients (Figure 18 and Figure 16 ). Overall, we see that selecting data points in the Euclidean geometry yields worse performance in controlling the off-target drift: we consistently see that, in the Euclidean geometry, selected gradients have high projections along the reference geometry, irrespective of the value of ρ \rho ρ . By contrast, selecting points in the reference geometry yields a stronger sensitivity to higher off-target costs.
Figure 15. Target gain and off-target drift D t a s k D_{\mathrm{task}} D task of SAFE-DRIFT using Euclidean vs reference Fisher-induced norm objective in MedQA experiment (Setting 2). We plot the difference from the base model across drift budget ρ \rho ρ .
Figure 17. Target gain and off-target drift D t a s k D_{\mathrm{task}} D task of SAFE-DRIFT using Euclidean vs reference Fisher-induced norm objective in Esconv experiment (Setting 3). We plot the difference from the base model across drift budget ρ \rho ρ .
Effect of the optimizer preconditioner
We evaluate the effect of the optimizer-induced preconditioner P P P . Our framework allows different choices of P P P , including the identity preconditioner corresponding to SGD-style updates and an Adam-style diagonal preconditioner estimated from warm-up gradients. This ablation tests whether the observed behavior of SAFE-DRIFT depends critically on using the Adam preconditioner.
Figure 4 and Figure 19 -Figure 21 show that the best preconditioner varies across settings. SGD performs better in Setting 2 while Adam performs better in Setting 3. This is expected because the preconditioner changes the effective update induced by each selected example. Importantly, both variants retain the same qualitative target-reference trade-off, suggesting that
Figure 19. Comparison of using preconditioner P P P from Adam versus SGD optimizer in MedQA experiment (Setting 2)
Figure 21. Selected points plotted on target gain versus realized off-target drift D K L D_{\mathrm{KL}} D KL from SAFE-DRIFT using preconditioner P P P from Adam versus SGD optimizer in Esconv experiment (Setting 3)
Figure 20. Comparison of using preconditioner P P P from Adam versus SGD optimizer in Esconv experiment (Setting 3)
SAFE-DRIFT is not tied to a single optimizer approximation. In practice, we recommend using the preconditioner that matches the downstream fine-tuning optimizer.
Different choices of rank K R K_R K R and K T K_T K T
We ablate over three low-rank settings ( K R , K T ) ∈ { ( 128 , 32 ) , ( 256 , 64 ) , ( 512 , 128 ) } (K_R, K_T) \in\{(128, 32), (256, 64), (512, 128)\} ( K R , K T ) ∈ {( 128 , 32 ) , ( 256 , 64 ) , ( 512 , 128 )} for SAFE-DRIFT on Setting 1, with results shown in Figure 22 for selection budget 15%. SAFE-DRIFT is robust to the choice of ( K R , K T ) (K_R, K_T) ( K R , K T ) : all three variants achieve competitive HumanEval pass@1 and pass@10 rates, and all produce smaller changes in StereoSet score than most baselines. One thing to note is that the basis ( K R , K T ) = ( 512 , 128 ) (K_R, K_T) = (512, 128) ( K R , K T ) = ( 512 , 128 ) achieves the smallest off-target drift. In this comparison, the largest basis gives the smallest mean StereoSet change; the smaller bases do not outperform every baseline on that metric.
Figure 23 further shows the Fisher cost of the displacement from initialization and the projected first-order target-gain proxy over training steps for all methods at the displayed 15% budget. SAFE-DRIFT variants have lower plotted reference cost at ( K R , K T ) = ( 128 , 32 ) , ( 512 , 128 ) (K_R, K_T) = (128, 32), (512, 128) ( K R , K T ) = ( 128 , 32 ) , ( 512 , 128 ) than baselines at comparable or higher plotted gain proxy. These are diagnostics of the fixed local model, not guarantees on the fine-tuning trajectory. In particular, the quadratic cost of a total displacement contains cross terms between steps and need not increase with training time; two opposite steps with nonzero Fisher cost have zero final displacement but positive summed step costs.
Quality of the Low-Rank Approximation The reference Fisher and gradient coordinates are represented in a shared low-rank basis used for selection; this does not restrict the subsequent fine-tuning trajectory to that span. For an update of norm at most ϵ \epsilon ϵ , the omitted empirical reference cost is at most ϵ 2 λ K R + 1 / 2 \epsilon^2\lambda_{K_R+1}/2 ϵ 2 λ K R + 1 /2 (Appendix C.1). A retained energy fraction alone cannot supply this bound without the spectral scale and update norm, and retained task/candidate energy need not preserve the mean target-gradient direction.
Table 8 reports cumulative squared singular-value energy, averaged over three seeds. Setting 1 retains 92.4% of reference energy at K R = 512 K_R = 512 K R = 512 and 74.8% of task/candidate energy at K T = 128 K_T = 128 K T = 128 . In Setting 3, the diagnostic matrices use 128 reference and 512 task/candidate examples, explaining their rank limits. Flatter spectra generally require larger ranks for comparable matrix approximation; target alignment additionally depends on the projection error of the target gradient.
Table 8. Cumulative spectral energy (squared singular-value energy) as a function of rank, mean over three seeds. These are energy fractions of the reference-score and task/candidate-gradient matrices. Bounding omitted reference cost additionally requires the spectral scale and update norm; preserving the mean target gradient requires its projection error to be small (Appendix C.1).
Different selection budgets
We provide the results of Setting 4 with two selection budgets: 5% and 15% of the full candidate pool in Figure 24 for IFEval (target task) and Figure 25 for MMLU (off-target task). Because the target pool is extremely small, with
Figure 24. Relative change of IFEval performance compared to the base model. Bar heights are the means and error bars indicate one standard deviation across three seeds. The lighter bar corresponds to a 5% selection budget and the darker bar to a 15% budget.
Figure 25. Relative change of MMLU log likelihood of correct answers on the held-out 200 questions compared to the base model: Panels show the 0-shot setting (left) and 5-shot setting (right). The lighter bar corresponds to a 5% selection budget and the darker bar to a 15% budget.
42 IFEval-derived examples in Table 1 , DSIR is particularly brittle in this setting. From Table 1 , we know only 22% of candidates fall in Q c l e a n Q_{\mathrm{clean}} Q clean and 26% in Q e n t Q_{\mathrm{ent}} Q ent , so 48% have positive residual-task-block alignment d T d_T d T . This is not the fraction with positive total target alignment, which also includes the reference block. Figure 13 provides complementary block-energy diagnostics, without proving a necessary trade-off in benchmark performance.
Under this setting, SAFE-DRIFT concentrates on the highest-scoring target-beneficial examples at the 5% budget, while at 15%, SAFE-DRIFT selects some weakly target-aligned or reference-entangled examples, diluting the target update and preserving its behavior on the reference task. Comparing with LESS, SAFE-DRIFT gives a more favorable target–reference trade-off and attains more target gains. Random and Prismatic selects a broader subset from the candidate distribution, and they also select many entangled directions that result in MMLU preservation comparable to SAFE-DRIFT.
Table 9. Selection and training compute. All runs use Adam with LoRA. “Select + Train” sums the reported selection and training FLOP estimates and excludes unitemized overhead. “Select share” is selection FLOPs divided by this subtotal, calculated before display rounding. These subtotals do not represent end-to-end compute.
Computational Cost
SAFE-DRIFT has two computational bottlenecks. The first is per-example gradient construction over the candidate pool, which scales linearly in N C N_C N C and is equally required by LESS and Prismatic; the second is the low-rank estimation of the reference Fisher and target gradient, whose marginal cost is small by comparison. For large candidate pools the pool can be subsampled before selection, and for large models, LoRA keeps the per-example gradients tractable.
Table 9 reports FLOP counts for Settings 1–3. LESS, Prismatic, and SAFE-DRIFT have equal reported selection counts within each base model, reflecting the shared computation for gradient construction over the candidate pool.