betaFeedback

WorksComputer Science

PRISM: Validation-Free Online Batch Selection for LLM Fine-Tuning via Preconditioned Conic Ghost Matching

Abstract

Online batch selection lowers the cost of fine-tuning large language models (LLMs) by replacing each candidate batch with a smaller informative subset. Existing selectors typically depend on a held-out validation or proxy set, or else rely on Euclidean facility-location objectives over unpreconditioned gradients whose diameter-shifted similarities are distorted by heavy-tailed gradient norms and cross-layer anisotropy. We introduce PRISM (Preconditioned Ray-Isotropic Submodular Matching), a validation-free online batch selector that aligns candidate gradients in a factored second-moment metric and casts subset construction as conic facility location over positive ray projections. Computing the required pairwise geometry through factored preconditioned ghost inner products avoids materializing per-example parameter gradients, while the conic objective remains normalized, nonnegative, and monotone submodular—guaranteeing a (1−1/e)(1-1/e) greedy approximation whose additive error scales with total batch gradient energy rather than the worst-case outlier diameter. Assigning each candidate to its best-aligned selected ray induces closed-form radial projection weights that automatically shrink orthogonal or noisy examples toward zero. We derive a nonconvex convergence bound showing that optimization error is governed directly by the conic representation cost. Across four LLM fine-tuning configurations spanning 1.5B to 8B parameters, PRISM outperforms full-batch training, Euclidean facility location, and zeroth-order selectors, and rivals or surpasses validation-guided baselines without held-out data.

Introduction

Fine-tuning large language models (LLMs) on instruction-following and reasoning mixtures is compute-intensive, and examples within a candidate batch vary sharply in informativeness and gradient quality [1, 2, 3]. Online batch selection addresses this by scoring a candidate pool BtB_t of bb examples at each step and updating parameters on a selected subset StS_t of size k<bk < b [4, 5]. Because exhaustive subset evaluation is combinatorially intractable, practical selectors construct StS_t greedily; when the selection objective is monotone submodular, greedy construction inherits the classical (1−1/e)(1 - 1/e) approximation guarantee [6], whereas non-submodular heuristics carry no structural certification.

Recent LLM selectors fall into two main families. Validation-guided methods such as GREATS [7], OPUS [8], BLADE [9], and Filter-then-Weight [10] score candidates via alignment with a held-out validation or proxy set, leveraging ghost inner products or optimizer-aware projections. While effective when a clean, task-matched validation set is known beforehand, such supervision is unavailable in continual, multi-task, or open-ended instruction tuning [11, 12], and Taylor-expanded validation surrogates need not be submodular. Validation-free methods eliminate external data by summarizing the batch’s own geometry—either via utility-diversity scores [3, 13] or gradient-matching coresets such as CoLM [14], GRACE [15], and Euclidean facility location (Mirzasoleiman et al., 2020; Killamsetty et al., 2021).

However, standard Euclidean facility location over raw gradients suffers from two structural weaknesses in LLM fine-tuning. First, LLM gradients exhibit heavy-tailed norms across sequence lengths and noisy responses (Zhang et al., 2020; Yu et al., 2026), and transformer layers exhibit strong scale anisotropy (Kim et al., 2026; Fan et al., 2026). Converting Euclidean distances dij=∥gi−gj∥2d_{ij} = \lVert g_i - g_j \rVert_2 into nonnegative similarities via sij=mt−dijs_{ij} = m_t - d_{ij} anchors the entire objective to the batch’s worst-case outlier diameter mt=max⁡i,jdijm_t = \max_{i,j} d_{ij}. As Figure 1a–Figure 1b illustrates, isolated high-norm gradients inflate mtm_t, hijack greedy facility slots, and force uniform integer weights γj=∣Cj∣\gamma_j = |C_j| onto misaligned neighbors. Second, evaluating raw Euclidean distances ignores the diagonal curvature geometry of adaptive optimizers such as AdamW ((Loshchilov and Hutter, 2019; Ding et al., 2026)).

Figure 1. Heavy-tailed norms distort Euclidean facility location, while conic matching suppresses outliers. (a) Per-example gradient norms on Tulu-2 (Llama-3.1-8B) exhibit a heavy tail: the worst-case Euclidean diameter mtm_t sits far above the batch RMS scale Et/b\sqrt{E_t/b}. (b) Because Euclidean similarity mt−∥gi−gj∥m_t - \|g_i-g_j\| rewards covering isolated large-norm points, Euclidean-FL spends 28.4% of its greedy slots on outliers at ρ=1/2\rho=1/2, whereas PRISM cuts outlier slots to 3.7%. (c) Across selection ratios ρ\rho, PRISM achieves the lowest normalized gradient reconstruction error.

We propose PRISM (Preconditioned Ray-Isotropic Submodular Matching), a validation-free online batch selector built around two coupled geometric ideas. First, instead of Euclidean balls in raw parameter space, PRISM operates in a factored preconditioned metric MtM_t using row- and column-scaled ghost inner products, faithfully capturing AdamW’s layerwise curvature without materializing per-example gradients. Second, PRISM replaces diameter-shifted Euclidean distances with conic (ray) similarity, sijcone=[max⁡(0,⟨g~i,g^j⟩M)]2s_{ij}^{\mathrm{cone}} = [\max(0,\langle\tilde{g}_i,\hat{g}_j\rangle_M)]^2, measuring the squared nonnegative projection of candidate ii onto the unit ray g^j\hat{g}_j of representative jj. The resulting conic facility-location objective is naturally nonnegative, normalized, and monotone submodular without any diameter shift mtm_t. Assigning each candidate to its best-aligned ray yields closed-form radial projection weights γt,j=∑i∈Cjmax⁡(0,⟨g~i,g^j⟩M)/∥g~j∥M2\gamma_{t,j} = \sum_{i\in C_j}\max(0,\langle\tilde{g}_i,\hat{g}_j\rangle_M)/\|\tilde{g}_j\|_M^2 that preserve directional signal while automatically assigning zero weight to orthogonal or noisy outliers (Figure 1c).

We summarize our contributions as follows:

  • Conic ghost matching. We formulate validation-free online batch selection as conic facility location over factored preconditioned ghost inner products with closed-form radial weights (§4).

  • Tighter combinatorial and optimization theory. We prove that PRISM keeps the (1−1/e)(1 - 1/e) greedy guarantee while replacing the outlier diameter term bmt/ebm_t/e with total batch energy Et/eE_t/e, and derive nonconvex and PL convergence bounds governed by conic cost (§5, Appendix C).

  • Empirical gains and mechanism evidence. Across four LLM fine-tuning tasks (1.5B–8B), PRISM outperforms full-batch training, Euclidean facility location, and zeroth-order selection, rivals validation-guided baselines without held-out data, and rejects injected label noise (§6).

Related Work

Online batch selection for LLMs. Early online selectors prioritize high-loss or large-gradient examples ([4, 5]). Subsequent reference-based methods score candidates against an auxiliary model trained on held-out data ((Mindermann et al., 2022; Evans et al., 2024)), culminating in bi-level and adaptive reference selectors such as BLADE ([9]). For LLM training, GREATs ([7]) approximates one-step validation-loss reduction via ghost inner products, while OPUS ([8]), Filter-then-Weight ([10]), and Gaussian-process online selection ([8]) incor-

porate optimizer preconditioning or proxy alignment. Recent work also investigates on-policy attribution [9], learning-zone selection in RL post-training (Cui et al., 2026), and implicit alignment effects of online filtering (Zeng et al., 2026). Unlike these validation- or proxy-directed selectors, PRISM requires no held-out data and operates purely on intra-batch conic gradient geometry.

Gradient coresets and submodular selection. Offline and epoch-level gradient coresets such as CRAIG (Mirzasoleiman et al., 2020), GRAD-MATCH (Killamsetty et al., 2021), TAG-COS (Zhang et al., 2025), and InfoMax (Tan et al., 2025) match the full training gradient via facility location, orthogonal matching pursuit, or quadratic information maximization, while newer 2025–2026 pruning pipelines explore iterative distillation, semantic manifolds, and dual-budget hidden-state routing (Lin et al., 2025; Hu et al., 2025; Nikdan et al., 2025; Sun et al., 2026; Qin et al., 2026). At the per-batch LLM level, CoLM [14] applies mini-batch coresets over source-clustered zeroth-order gradient estimates, GRACE [15] maintains dynamic gradient coresets, SLAP [13] uses stratified Hessian-approximated pruning, and UDS [3] scores logits nuclear norm alongside embedding diversity. PRISM shares the validation-free coreset ethos but replaces Euclidean distance matching and zeroth-order sketches with exact factored-metric conic facility location and radial projection weights.

Preconditioned geometry and gradient noise. Ghost gradient computations scale per-example inner products to large transformers [7] (Li et al. 2022), enabling in-run attribution (Wang et al., 2025; Ding et al., 2026) and scalable attribution libraries (Liu et al., 2026). At the same time, recent studies show that raw gradient inner products are skewed by layer norm anisotropy, heavy-tailed noise, and optimizer dynamics (Zhang et al., 2020; Kim et al., 2026; Fan et al., 2026; Yu et al., 2026), and that gradient signal-to-noise structure governs instruction-tuning quality (Yuan et al., 2026; Han and Huang, 2026; Necula et al., 2026). PRISM bridges these findings by embedding a Kronecker-factored second-moment metric directly inside ghost inner products and using conic projection to separate coherent directional signal from norm outliers.

Preliminaries and Problem Formulation

Online batch selection. Let D={zi}i=1n\mathcal{D} = \{z_i\}_{i=1}^{n} be a fine-tuning dataset and ℓ(w,z)\ell(w,z) the per-example loss of parameters w∈Rpw \in\mathbb{R}^{p}, defining empirical risk f(w)=1n∑z∈Dℓ(w,z)f(w) = \frac{1}{n}\sum_{z\in\mathcal{D}}\ell(w,z). At iteration tt, we sample a candidate batch Bt={z1,…,zb}⊆D\mathcal{B}_t = \{z_1,\ldots,z_b\} \subseteq\mathcal{D} with per-example gradients gt,i=∇wℓ(wt,zi)g_{t,i} = \nabla_w\ell(w_t,z_i) and full-batch mean gt=1b∑i=1bgt,ig_t = \frac{1}{b}\sum_{i=1}^{b}g_{t,i}. Our goal is to select a smaller subset St⊆Bt\mathcal{S}_t \subseteq\mathcal{B}_t of cardinality ∣St∣=k<b|\mathcal{S}_t| = k < b and nonnegative weights {γt,j}j∈St\{\gamma_{t,j}\}_{j\in\mathcal{S}_t} so that the weighted subset gradient g^t=1b∑j∈Stγt,jgt,j\hat{g}_t = \frac{1}{b}\sum_{j\in\mathcal{S}_t}\gamma_{t,j}g_{t,j} faithfully tracks gtg_t in a positive-definite metric Mt≻0M_t \succ0:

min⁡S⊆Bt, ∣S∣=kγj≥0∥gt−1b∑j∈Sγjgt,j∥Mt2(1)\min_{\mathcal{S}\subseteq\mathcal{B}_t,\ |\mathcal{S}|=k \atop\gamma_j\geq0} \left\|g_t-\frac{1}{b}\sum_{j\in\mathcal{S}}\gamma_j g_{t,j}\right\|_{M_t}^{2} \tag*{(1)}

where ∥u∥M2=uTMu\|u\|_{M}^{2}=u^{\mathsf{T}}Mu and ⟨u,v⟩M=uTMv\langle u,v\rangle_M=u^{\mathsf{T}}Mv. Unlike classical formulations that enforce ∑j∈Sγj=b\sum_{j\in\mathcal{S}}\gamma_j=b (Mirzasoleiman et al., 2020; Killamsetty et al., 2021), leaving γj\gamma_j unconstrained in magnitude allows radial shrinkage of poorly aligned batch regions while retaining a single weighted backward pass over St\mathcal{S}_t.

Ghost inner products. Materializing Gt∈Rb×pG_t\in\mathbb{R}^{b\times p} explicitly is prohibitive for LLMs. For any linear layer y=Wxy=W x with input activation xi∈Rdinx_i\in\mathbb{R}^{d_{\mathrm{in}}} and backpropagated signal θi=∇yiℓi∈Rdout\theta_i=\nabla_{y_i}\ell_i\in\mathbb{R}^{d_{\mathrm{out}}}, the parameter gradient is ∇Wℓi=θixiT\nabla_W\ell_i=\theta_i x_i^{\mathsf{T}}, so the Frobenius inner product factorizes as [7] (Li et al. 2022)

⟨∇Wℓi,∇Wℓj⟩F=⟨θi,θj⟩⟨xi,xj⟩.(2)\langle\nabla_W\ell_i,\nabla_W\ell_j\rangle_F=\langle\theta_i,\theta_j\rangle\langle x_i,x_j\rangle. \tag*{(2)}

Summing (2) across all trainable linear and LoRA modules yields the exact b×bb\times b Gram matrix KtK_t using only O(b2)O(b^2) activation and error-signal products, without storing pp-dimensional per-example gradients.

Why Euclidean facility location struggles. Standard gradient-space facility location converts pairwise distances dij=∥gt,i−gt,j∥2d_{ij}=\|g_{t,i}-g_{t,j}\|_2 into similarities sij=mt−dijs_{ij}=m_t-d_{ij} with mt=max⁡u,v∈[b]duvm_t=\max_{u,v\in[b]}d_{uv} and assigns integer cluster weights γj=∣Cj∣\gamma_j=|C_j| (Mirzasoleiman et al., 2020). When gradient norms are heavy-tailed, a single large-norm outlier forces mt≫median⁡i∥gt,i∥m_t\gg\operatorname{median}_i\|g_{t,i}\|, inflating the (1/e)bmt(1/e)b m_t gap in the greedy approximation bound and biasing selection toward isolated extremes. Moreover, integer counts γj=∣Cj∣\gamma_j=|C_j| force a representative gjg_j to carry full unit weight even for outliers that point orthogonally or opposite to gjg_j.

Method: Prism

Figure 2 illustrates the three stages of PRISM, which eliminates both diameter distortion and scale anisotropy while preserving O(b2)O(b^2) ghost efficiency.

Figure 2. Overview of PRISM. I. Forward activations xix_i and backward signals θi\theta_i are rescaled by factored second-moment statistics Dx1/2D_x^{1/2}, Dθ1/2D_\theta^{1/2} to form the preconditioned b×bb \times b Gram matrix KtK_t via ghost inner products with zero per-example gradient materialization. II. Pairwise entries induce nonnegative conic ray similarities sijcones_{ij}^{\mathrm{cone}}, defining a monotone submodular objective FtconeF_t^{\mathrm{cone}} maximized greedily (or via stochastic greedy). III. Each candidate projects onto its closest ray to yield closed-form radial weights γt,j\gamma_{t,j} (automatically shrinking orthogonal outliers to αi=0\alpha_i=0), followed by a single weighted backward pass on StS_t.

Factored Preconditioned Ghost Metric

To capture adaptive-optimizer geometry without breaking the rank-1 factorization (2), we equip each trainable matrix W(ℓ)∈Rdout×dinW^{(\ell)} \in\mathbb{R}^{d_{\mathrm{out}} \times d_{\mathrm{in}}} (or LoRA factors A(ℓ)A^{(\ell)}, B(ℓ)B^{(\ell)}) with a Kronecker-factored diagonal metric Mt(ℓ)=Dθ,t(ℓ)⊗Dx,t(ℓ)M_t^{(\ell)} = D_{\theta,t}^{(\ell)} \otimes D_{x,t}^{(\ell)} built from running row- and column-wise second-moment estimates:

(Dθ,t(ℓ))r=(v^θ,t−1,r(ℓ)+ϵ)−1,(Dx,t(ℓ))c=(v^x,t−1,c(ℓ)+ϵ)−1,(3)\left(D_{\theta,t}^{(\ell)}\right)_r = \left(\sqrt{\hat{v}_{\theta,t-1,r}^{(\ell)}}+\epsilon\right)^{-1}, \qquad \left(D_{x,t}^{(\ell)}\right)_c = \left(\sqrt{\hat{v}_{x,t-1,c}^{(\ell)}}+\epsilon\right)^{-1}, \tag*{(3)}

where v^θ,t−1(ℓ)\hat{v}_{\theta,t-1}^{(\ell)} and v^x,t−1(ℓ)\hat{v}_{x,t-1}^{(\ell)} are exponential moving averages of row and column gradient squares from prior steps (fixed before Bt\mathcal{B}_t is drawn, and updated once per step from the final selected update). Under Mt=⨁ℓMt(ℓ)M_t = \bigoplus_\ell M_t^{(\ell)}, the preconditioned inner product factorizes exactly into rescaled ghost activations x~i(ℓ)=(Dx,t(ℓ))1/2xi(ℓ)\tilde{x}_i^{(\ell)} = \left(D_{x,t}^{(\ell)}\right)^{1/2}x_i^{(\ell)} and signals θ~i(ℓ)=(Dθ,t(ℓ))1/2θi(ℓ)\tilde{\theta}_i^{(\ell)} = \left(D_{\theta,t}^{(\ell)}\right)^{1/2}\theta_i^{(\ell)}:

(Kt)ij=⟨gt,i,gt,j⟩M=∑ℓ⟨θ~i(ℓ),θ~j(ℓ)⟩⟨x~i(ℓ),x~j(ℓ)⟩.(4)(K_t)_{ij} = \langle g_{t,i},g_{t,j}\rangle_M = \sum_\ell\left\langle\tilde{\theta}_i^{(\ell)},\tilde{\theta}_j^{(\ell)}\right\rangle\left\langle\tilde{x}_i^{(\ell)},\tilde{x}_j^{(\ell)}\right\rangle. \tag*{(4)}

For LoRA adapters, the same factorization applies to A(ℓ)A^{(\ell)} and B(ℓ)B^{(\ell)} (Appendix § 10.§ 2). Thus, PRISM computes the preconditioned Gram matrix Kt∈Rb×bK_t \in\mathbb{R}^{b \times b} with O(din+dout)O(d_{\mathrm{in}} + d_{\mathrm{out}}) metric state per layer and zero materialization of per-example parameter gradients.

Conic Facility Location and Radial Weighting

Let g~t,i=Mt1/2gt,i\tilde{g}_{t,i}=M_t^{1/2}g_{t,i} denote the preconditioned gradient of candidate ii, whose squared norm is (Kt)ii(K_t)_{ii}. For any candidate j∈[b]j \in[b] and potential representative i∈[b]i \in[b] with (Kt)jj>0(K_t)_{jj}>0, let g^t,j=g~t,j/(Kt)jj\hat{g}_{t,j}=\tilde{g}_{t,j}/\sqrt{(K_t)_{jj}} be the unit ray along g~t,j\tilde{g}_{t,j}. The optimal nonnegative radial projection of g~t,i\tilde{g}_{t,i} onto the ray {αg^t,j:α≥0}\{\alpha\hat{g}_{t,j}:\alpha\ge0\} is pij=αijg~t,jp_{ij}=\alpha_{ij}\tilde{g}_{t,j} with αij=max⁡(0,(Kt)ij)/(Kt)jj\alpha_{ij}=\max(0,(K_t)_{ij})/(K_t)_{jj}, which attains squared reconstruction error

min⁡α≥0∥g~t,i−αg^t,j∥22=(Kt)ii−st,ijcone,(5)\min_{\alpha\ge0}\left\|\tilde{g}_{t,i}-\alpha\hat{g}_{t,j}\right\|_2^2=(K_t)_{ii}-s_{t,ij}^{\mathrm{cone}}, \tag*{(5)}

where the conic ray similarity is defined from KtK_t:

st,ijcone:=[max⁡(0,(Kt)ij)]2(Kt)jj+δ=(Kt)iicos⁡+2(g~t,i,g~t,j),(6)s_{t,ij}^{\mathrm{cone}}:=\frac{\left[\max(0,(K_t)_{ij})\right]^2}{(K_t)_{jj}+\delta} =(K_t)_{ii}\cos_+^2(\tilde{g}_{t,i},\tilde{g}_{t,j}), \tag*{(6)}

with δ=10−12\delta=10^{-12}. Summing (5) over i∈[b]i\in[b] yields the conic representation cost

ctcone(S):=∑i=1bmin⁡j∈S[(Kt)ii−st,ijcone]=Et−Ftcone(S).(7)\begin{aligned} c_t^{\mathrm{cone}}(S):=\sum_{i=1}^{b}\min_{j\in S}\left[(K_t)_{ii}-s_{t,ij}^{\mathrm{cone}}\right] \\ &=E_t-F_t^{\mathrm{cone}}(S). \tag*{(7)} \end{aligned}
Algorithm 1: PRISM: Preconditioned Conic Ghost Selection
Input: parameters $w_t$; batch $B_t = \{z_i\}_{i=1}^b$; size $k$; metric $M_t$
Compute $(K_t)_{ij}$ via {xref}`(4)` with zero gradient materialization
$s^{\mathrm{cone}}_{t,ij} \leftarrow [\max(0,(K_t)_{ij})]^2/((K_t)_{jj}+\delta)$;
$S \leftarrow \emptyset$; $u_i \leftarrow 0$
for $r=1,\ldots,k$ do
$j^\star \leftarrow \arg\max_{j\in[b]\setminus S}\sum_{i=1}^b\max(0,s^{\mathrm{cone}}_{t,ij}-u_i)$
$S \leftarrow S\cup\{j^\star\}$;
$u_i\leftarrow\max(u_i,s^{\mathrm{cone}}_{t,ij^\star})\ \forall i\in[b]$
end
$\sigma(i)\leftarrow\arg\max_{j\in S}s^{\mathrm{cone}}_{t,ij}$;
$\gamma_{t,j}\leftarrow\sum_{i:\sigma(i)=j}\frac{\max(0,(K_t)_{ij})}{(K_t)_{jj}+\delta}$
$\hat g_t\leftarrow\nabla_w\left[\frac{1}{b}\sum_{j\in S}\gamma_{t,j}\ell(w_t,z_j)\right]$ via one backward pass on $S$
Update $w_{t+1}$ with $\hat g_t$ and update factored metric $M_{t+1}$

where Et:=∑i=1b(Kt)iiE_t := \sum_{i=1}^b (K_t)_{ii} is the total preconditioned batch energy and

Ftcone(S):=∑i=1bmax⁡j∈Sst,ijcone,Ftcone(∅):=0,(8)F_t^{\mathrm{cone}}(S):=\sum_{i=1}^b\max_{j\in S}s_{t,ij}^{\mathrm{cone}},\qquad F_t^{\mathrm{cone}}(\emptyset):=0, \tag*{(8)}

is our conic facility-location objective. Crucially, st,ijcone≥0s_{t,ij}^{\mathrm{cone}}\ge0 holds automatically without subtracting a worst-case diameter mtm_t, and ctconec_t^{\mathrm{cone}} measures squared residual energy orthogonal or opposite to the selected rays.

Closed-form radial projection weights. Once StS_t of size kk is selected, each candidate i∈[b]i\in[b] is assigned to its best-aligned representative ray σSt(i)∈arg⁡max⁡j∈Stst,ijcone\sigma_{S_t}(i)\in\arg\max_{j\in S_t}s_{t,ij}^{\mathrm{cone}}, partitioning [b][b] into cells Cj={i∈[b]:σSt(i)=j}C_j=\{i\in[b]:\sigma_{S_t}(i)=j\}. Rather than assigning integer weight ∣Cj∣\lvert C_j\rvert, each representative aggregates the exact radial projections of its cell:

γt,j:=∑i∈Cjmax⁡(0,(Kt)ij)(Kt)jj+δ≥0.(9)\gamma_{t,j}:=\sum_{i\in C_j}\frac{\max(0,(K_t)_{ij})}{(K_t)_{jj}+\delta}\ge0. \tag*{(9)}

Notice two key properties of (9). First, if candidate ii is a corrupted or high-norm outlier nearly orthogonal or negatively aligned with every selected ray, its contribution αi,σ(i)≈0\alpha_{i,\sigma(i)}\approx0, so it exerts virtually zero pull on the update. Second, by the Pythagorean identity on each ray projection,

1b∑j∈Stγt,jg~t,j=1b∑i=1bpi,σ(i),\frac{1}{b}\sum_{j\in S_t}\gamma_{t,j}\tilde g_{t,j} = \frac{1}{b}\sum_{i=1}^b p_{i,\sigma(i)},

giving an exact upper bound on (1) (Proposition 2).

Implementation and Stochastic-Greedy Acceleration

Algorithm 1 summarizes one step of PRISM. Maintaining the running coverage vector ui=max⁡j∈Sst,ijconeu_i=\max_{j\in S}s_{t,ij}^{\mathrm{cone}} evaluates each greedy step in O(b2)O(b^2) scalar operations (O(kb2)O(kb^2) total, sub-millisecond for b≤64b\le64). For larger candidate pools (b≥64b\ge64), we also support a stochastic-greedy variant (PRISM-SG, Appendix § 10) that samples q=⌈(b/k)log⁡(1/ε)⌉q=\lceil(b/k)\log(1/\varepsilon)\rceil unselected candidates per step (Mirzasoleiman et al., 2015), cutting selection complexity to O(b2log⁡(1/ε))O(b^2\log(1/\varepsilon)) while preserving a (1−1/e−ε)(1-1/e-\varepsilon) guarantee. Once StS_t and {γt,j}\{\gamma_{t,j}\} are determined, we compute g^t\hat g_t via one standard backward pass over the kk selected examples with loss multipliers γt,j/b\gamma_{t,j}/b.

Theoretical Analysis

We now establish the combinatorial and optimization guarantees of PRISM; complete proofs and auxiliary results appear in Appendices § 11 and § 12.

Proposition 1 (Monotone submodularity & energy-relative bound). The conic facility-location objective Ftcone(S)F_t^{\mathrm{cone}}(S) in (8) is normalized (Ftcone(∅)=0F_t^{\mathrm{cone}}(\emptyset)=0), nonnegative, monotone nondecreasing, and submodular. Consequently, greedy maximization returns SGS_G of size kk satisfying Ftcone(SG)≥(1−1/e)Ftcone(S⋆)F_t^{\mathrm{cone}}(S_G)\ge(1-1/e)F_t^{\mathrm{cone}}(S^\star), where S⋆S^\star is an optimal size-kk subset. Moreover, its conic representation cost satisfies

ctcone(SG)≤1eEt+(1−1e)ctcone(S⋆).(10)c_t^{\mathrm{cone}}(S_G)\le\frac{1}{e}E_t+\left(1-\frac{1}{e}\right)c_t^{\mathrm{cone}}(S^\star). \tag*{(10)}

Significance of (10). For standard Euclidean facility location, the additive error term is (1/e)b mt(1/e)b\,m_t (Mirzasoleiman et al., 2020), which scales with the single largest pairwise distance mt=max⁡i,j∥gi−gj∥m_t=\max_{i,j}\lVert g_i-g_j\rVert in the batch. In contrast, (10) replaces b mtb\,m_t with the total gradient energy Et=∑i=1b∥gt,i∥Mt2E_t=\sum_{i=1}^b\lVert g_t,i\rVert_{M_t}^2, which averages over the batch and prevents one high-norm outlier from dominating the approximation slack.

Proposition 2 (Radial reconstruction bound & outlier damping). Let g^t=1b∑j∈Stγt,jg~t,j\hat g_t=\frac{1}{b}\sum_{j\in S_t}\gamma_{t,j}\tilde g_{t,j} use the closed-form radial weights (9). Then: (i) the preconditioned gradient-matching error obeys

∥gt−g^t∥M2≤1bctcone(St)=:ρt2;(11)\lVert g_t-\hat g_t\rVert_M^2\le\frac{1}{b}c_t^{\mathrm{cone}}(S_t)=:\rho_t^2; \tag*{(11)}

(ii) if an example ziz_i satisfies ⟨gt,i,gt,j⟩M≤0\langle g_{t,i},g_{t,j}\rangle_M\le0 for all j∈Stj\in S_t (opposing or orthogonal outlier), its

induced radial weight contribution is zero, whereas Euclidean cluster assignment adds +1+1 to ∣Cσ(i)∣\lvert C_{\sigma(i)}\rvert.

Next, we connect ρt2\rho_t^2 directly to nonconvex optimization convergence under preconditioned SGD updates wt+1=wt−ηtMtg^tw_{t+1}=w_t-\eta_tM_t\hat{g}_t, where MtM_t satisfies uniform spectral bounds μMI⪯Mt⪯LMI\mu_M I\preceq M_t\preceq L_M I (0<μM≤LM0<\mu_M\le L_M) and is measurable with respect to the history Ft\mathcal{F}_t prior to sampling BtB_t. We adopt standard nonconvex smoothness and unbiased candidate-batch assumptions (Ghadimi and Lan, 2013; Bottou et al., 2018).

Assumption 1 (LL-smoothness and unbiased batch). The objective ff is LL-smooth and bounded below by f⋆f^\star. At each step tt, Et[gt]=∇f(wt)\mathbb{E}_t[g_t]=\nabla f(w_t) and Et[∥gt−∇f(wt)∥Mt2]≤σM2/b\mathbb{E}_t[\lVert g_t-\nabla f(w_t)\rVert_{M_t}^2]\le\sigma_M^2/b.

Theorem 1 (Preconditioned nonconvex convergence). Suppose Assumption 1 holds and wt+1=wt−ηtMtg^tw_{t+1}=w_t-\eta_tM_t\hat{g}_t uses deterministic step sizes 0<ηt≤1/(4LLM)0<\eta_t\le1/(4LL_M) and metric bounds μMI⪯Mt⪯LMI\mu_M I\preceq M_t\preceq L_M I. Define Δf:=f(w0)−f⋆\Delta_f:=f(w_0)-f^\star and et:=g^t−gte_t:=\hat{g}_t-g_t. Then

∑t=0T−1ηtE∥∇f(wt)∥Mt2∑t=0T−1ηt≤2Δf∑t=0T−1ηt+2LLMσM2∑t=0T−1ηt2b∑t=0T−1ηt+52∑t=0T−1ηtE∥et∥Mt2∑t=0T−1ηt.(12)\frac{\sum_{t=0}^{T-1}\eta_t\mathbb{E}\lVert\nabla f(w_t)\rVert_{M_t}^2}{\sum_{t=0}^{T-1}\eta_t} \le \frac{2\Delta_f}{\sum_{t=0}^{T-1}\eta_t} +\frac{2LL_M\sigma_M^2\sum_{t=0}^{T-1}\eta_t^2}{b\sum_{t=0}^{T-1}\eta_t} +\frac{5}{2}\frac{\sum_{t=0}^{T-1}\eta_t\mathbb{E}\lVert e_t\rVert_{M_t}^2}{\sum_{t=0}^{T-1}\eta_t}. \tag*{(12)}

Corollary 1 (Convergence of PRISM). Under Theorem 1, substituting Proposition 2 into (12) with constant step size ηt=η=Δfb/(LLMσM2T)\eta_t=\eta=\sqrt{\Delta_f b/(LL_M\sigma_M^2T)} (for TT sufficiently large) yields

1T∑t=0T−1E∥∇f(wt)∥Mt2≤4ΔfLLMσM2bT+52δT2,\frac{1}{T}\sum_{t=0}^{T-1}\mathbb{E}\lVert\nabla f(w_t)\rVert_{M_t}^2 \le 4\sqrt{\frac{\Delta_fLL_M\sigma_M^2}{bT}}+\frac{5}{2}\delta_T^2,
δT2:=1bT∑t=0T−1E[ctcone(St)].(13)\delta_T^2:=\frac{1}{bT}\sum_{t=0}^{T-1}\mathbb{E}\left[c_t^{\mathrm{cone}}(S_t)\right]. \tag*{(13)}

Setting St=BtS_t=B_t sends ctcone(St)→0c_t^{\mathrm{cone}}(S_t)\to0 and recovers the O(1/bT)O(1/\sqrt{bT}) mini-batch preconditioned SGD rate (Ghadimi and Lan, 2013). Under an additional Polyak–Łojasiewicz condition (Karimi et al., 2016), Appendix § 12.§ 1 proves linear contraction to a neighborhood governed by σM2/b\sigma_M^2/b and δT2\delta_T^2. By contrast, Appendix § 12.§ 4 shows via an explicit counterexample that Taylor-approximated validation surrogates used in validation-guided selectors are not submodular in general, leaving their greedy construction without a (1−1/e)(1-1/e) certificate.

Experiments

We evaluate four questions: (1) Can validation-free conic ghost matching rival or beat validation-directed selectors and full-batch training? (2) Do conic ray similarity, radial weights, factored pre-conditioning, and exact ghost geometry each contribute gains? (3) Is PRISM computationally practical across scales? (4) When can selection initially lag full-batch training?

Experimental Setup

Configurations and tasks. We evaluate four LoRA fine-tuning setups (r=8,α=16r=8,\alpha=16, all linear modules) (Hu et al., [2]; Zou et al., [3]; Tang et al., [15]): (1) Qwen2.5-1.5B (Qwen et al., 2024) on LESS (Xia et al., 2024) → **MMLU PPL/Acc (Hendrycks et al., 2021) (1,000 steps); (2) Llama-3.1-8B (Grattafiori et al., 2024) on Tulu-2 (Ivison et al., 2023) → BBH EM (Suzgun et al., 2023) (800 steps); (3) Mistral-7B (Jiang et al., 2023) on LESS → TyDiQA F1 (Clark et al., 2020) (300 steps); and (4) Qwen2.5-7B (Qwen et al., 2024) on Tulu-2 → GSM8K Acc (Cobbe et al., 2021) (800 steps). We also test a cold-start setup on Qwen3-8B-Base (Yang et al., 2025) over SAMSum (Gliwa et al., 2019) (300 vs. 1,000 steps). Selectors keep k=8k=8 of b=16b=16 candidates (ρ=0.5\rho=0.5); hyperparameters appear in Appendix § 13.

Baselines. We compare against full-batch Regular (b=16b=16), Random (k=8k=8), validation/proxy-guided GREATS [7], OPUS [8], and Filter-then-Weight [10] (5 held-out target examples), validation-free Euclidean-FL (diameter-shifted Euclidean FL over unpreconditioned ghost gradients with ∣Cj∣|C_j| weights), and ZeroOrder (CoLM-style sketches [14] with conic selection). UDS [3], SLAP [13], and BLADE [9] appear in Appendix § 14.

Main Results: Validation-Free Selection

Table 1 reports downstream results. Without validation or proxy data, PRISM achieves the strongest validation-free score across all four configurations and beats Regular on 4/4 tasks while updating on half of each batch. On Llama-3.1-8B (BBH) and Qwen2.5-7B (GSM8K), PRISM attains the highest overall accuracy (57.6% and 77.9%), surpass-

MethodExt. DataQwen2.5-1.5B MMLU PPL (↓)Llama-3.1-8B BBH EM (↑)Mistral-7B TyDiQA F1 (↑)Qwen2.5-7B GSM8K Acc (↑)Win vs. Reg.
Regular (full bb)No5.84 ± 0.4154.2 ± 0.70.518 ± 0.01174.6 ± 0.6—
Random (half kk)No6.42 ± 0.5351.8 ± 0.90.489 ± 0.01471.9 ± 0.80/4
GREATS (Wang et al., [7])5 val.4.62 ± 0.1856.4 ± 0.50.654 ± 0.00876.8 ± 0.54/4
OPUS (Wang et al., [8])5 proxy4.79 ± 0.2156.9 ± 0.60.584 ± 0.00977.1 ± 0.44/4
Filter-then-Weight (Wang et al., [10])5 proxy4.95 ± 0.2456.1 ± 0.60.597 ± 0.01076.5 ± 0.54/4
Euclidean-FLNo5.61 ± 0.3655.3 ± 0.60.602 ± 0.01375.8 ± 0.64/4
ZeroOrder (CoLM-style)No5.92 ± 0.4454.6 ± 0.80.579 ± 0.01575.1 ± 0.73/4
PRISM (ours)No5.14 ± 0.2757.6 ± 0.40.631 ± 0.00977.9 ± 0.44/4

Table 1. Main results across four LLM fine-tuning configurations (mean ± std over 3 seeds; MMLU averages 2 subjects × 3 seeds, n=6n=6). Selectors keep k=8k=8 of b=16b=16 candidates; Regular trains on all 16. Best per column in bold. Without held-out validation data, PRISM beats all validation-free baselines on every task and leads overall on BBH and GSM8K.

ing OPUS (56.9%, 77.1%) and GREATS (56.4%, 76.8%). On Mistral-7B (TyDiQA), PRISM reaches 0.631 F1, ahead of OPUS (0.584), Filter-then-Weight (0.597), and Euclidean-FL (0.602), trailing GREATS (0.654) by 0.023. On Qwen2.5-1.5B (MMLU), where GREATS and OPUS observe held-out MMLU examples, PRISM cuts perplexity from 5.84 (Regular) and 5.61 (Euclidean-FL) to 5.14. Complementary accuracy and per-seed breakdowns appear in Appendix § 14.

Why Conic Geometry and Preconditioning Matter

Table 2 isolates each component. Replacing radial weights (9) with integer counts ∣Cj∣|C_j| drops BBH by 1.2 points (57.6 → 56.4) and raises relative gradient error from 0.54 to 0.69. Removing factored preconditioning (M=IM=I) drops BBH by 1.5 points (56.1) due to MLP scale anisotropy. Reverting conic similarity to diameter-shifted Euclidean similarity (mt−dijm_t-d_{ij}) loses 1.8 points (55.8) via outlier diameter inflation (Figure 1a). Combining all three regressions into Euclidean-FL drops 2.3 points (55.3), and ZeroOrder drops 3.0 points (54.6). Finally, PRISM-SG (ε=0.1\varepsilon=0.1) stays within 0.3 points (57.3).

VariantBBH EM (↑)TyDiQA F1 (↑)Rel. Err. (↓)
PRISM (full)57.60.6310.54
w/o Radial weights (∣Cj∣|C_j|)56.40.6140.69
w/o Factored metric (M=IM=I)56.10.6110.73
w/o Conic sim. (mt−dijm_t-d_{ij})55.80.6080.78
Euclidean-FL (raw, ∣Cj∣|C_j|)55.30.6020.85
ZeroOrder (ZO geometry)54.60.5790.94
PRISM-SG (ε=0.1\varepsilon=0.1)57.30.6270.57

Table 2. Component ablations on Llama-3.1-8B (BBH) and Mistral-7B (TyDiQA), with relative gradient error ∥gt−gt∥M/∥gt∥M\lVert g_t-g_t\lVert_M/\lVert g_t\rVert_M.

Mechanism Analysis

Noise rejection via radial projection. Corrupting 20% of LESS (Mistral-7B) targets, Figure 3a shows Euclidean-FL picks corrupted items at 24.8% (above the 20% base rate) as outlier norms inflate mtm_t, whereas PRISM cuts them to 4.1%—under half of GREATS (8.9%) and OPUS (10.4%)—via (9).

Figure 3. Mechanism analysis of PRISM. (a) Under 20% corrupted responses on LESS/Mistral-7B, Euclidean-FL over-selects corrupted points (24.8%), whereas PRISM suppresses them to 4.1% via zeroed radial projections. (b) Paired test perplexity gap (PPLZO_{\mathrm{ZO}} − PPLPRISM_{\mathrm{PRISM}}) across 6 subject–seed runs on Qwen2.5-1.5B/MMLU: exact conic geometry outperforms ZeroOrder in 29/30 nonzero checkpoints. (c) Rank correlation of ghost Gram entries against exact Adam-preconditioned inner products across transformer modules.

Exact ghost geometry vs. zeroth-order. Figure 3b shows PRISM beats ZeroOrder in 29/30 nonzero checkpoints on Qwen2.5-1.5B (MMLU) and 10/10 on Mistral-7B TyDiQA (Appendix § 14), confirming Corollary 1.

Metric fidelity. On Llama-3.1-8B (Figure 3c), raw ghost inner products (M=IM=I) correlate with diagonal AdamW at 0.59–0.73, whereas Dθ⊗DxD_{\theta} \otimes D_x reaches 0.92–0.96.

Efficiency, Scaling, and Cold-Start Boundary

Computational efficiency. On Qwen2.5-3B (A100, Figure 4a), naive gradients take 1,190 ms at b=24b=24 and OOM by b=32b=32; PRISM runs in 115 ms (10.3× faster) and scales to b=64b=64 (414 ms; 298 ms with PRISM-SG). End-to-end (Figure 4b), PRISM runs in 0.83 s vs. 0.52 s Regular on Qwen2.5-1.5B and 1.92 s vs. 1.28 s on Llama-3.1-8B, beating GREATS by 13.5% and 10.3%.

Figure 4. Efficiency, scaling, and budget sensitivity. (a) Scoring + selection time on Qwen2.5-3B (A100): naive gradients OOM past b=24b=24, while PRISM and PRISM-SG scale to b=64b=64. (b) Step time (b=16b=16, k=8k=8): PRISM is 13.5% and 10.3% faster than GREATS. (c) GSM8K scaling (1.5B–8B). (d) BBH EM vs. selection ratio ρ=k/b\rho=k/b.

Scaling and selection ratio. PRISM’s gains hold from 1.5B to 8B on GSM8K (Figure 4c), and beat Regular across ρ∈[0.25,0.75]\rho\in[0.25, 0.75] on BBH, peaking at ρ=0.50\rho=0.50 (Figure 4d).

Cold-start boundary case. Fine-tuning raw Qwen3-8B-Base on SAMSum with an unseen chat template for 300 steps, Regular (0.214 ROUGE1) leads OPUS (0.189), GREATS (0.172), PRISM (0.148), Euclidean-FL (0.131), and ZeroOrder (0.084), as early format acquisition favors raw volume. By 1,000 steps (Figure 5c), PRISM reaches 0.376, ahead of GREATS (0.369), OPUS (0.367), and Regular (0.341).

Figure 5. Extended-horizon trajectories. (a) Extending Qwen2.5-1.5B / MMLU from 1,000 to 3,000 steps preserves the method ordering while Regular begins overfitting. (b) Extending Mistral-7B / TyDiQA to 3,000 steps narrows early gaps as optimization saturates, with PRISM remaining the top validation-free selector. (c) Extending Qwen3-8B-Base / SAMSum from 300 to 1,000 steps resolves the cold-start deficit: PRISM overtakes Regular around step 700 and finishes highest at 0.376 ROUGE-1.

Conclusion

We introduced PRISM, a validation-free online batch selector using conic facility location over factored preconditioned ghost inner products. Replacing diameter-shifted Euclidean distances with nonnegative ray similarities avoids outlier inflation while preserving the (1−1/e)(1-1/e) submodular guarantee, and closed-form radial weights damp noisy examples. Nonconvex and PL bounds link optimization error directly to conic cost. Across four LLM fine-tuning tasks (1.5B–8B), PRISM outperforms full-batch training, Euclidean-FL, and zeroth-order selection, rivals validation-guided baselines without held-out data, and rejects label noise.

Limitations

PRISM matches the geometry of the current candidate batch, so when the target evaluation distribution differs sharply from the training pool and a reliable target validation set is available, validation-guided selectors can exploit information absent from the batch. Our convergence theorem assumes smooth objectives, fixed-horizon or diminishing step sizes under preconditioned SGD, and bounded metric eigenvalues, whereas our experiments use AdamW; extending the analysis directly to stateful adaptive momentum dynamics remains open. In addition, although factored ghost inner products avoid storing pp-dimensional per-example gradients, exact b×bb \times b Gram computation still scales quadratically in the candidate pool size bb and adds memory proportional to batch activations, making stochastic greedy and moderate pool sizes (b≤64b \le64) preferable on single-GPU setups. Finally, in extreme cold-start regimes where a base model must rapidly acquire a novel output template within a few hundred steps, warming up on full batches before enabling selection is advantageous.

Ethics Statement

PRISM alters only which training examples enter each parameter update and uses public instruction-tuning and reasoning benchmarks under their original licenses. No human subjects or private user data are involved. Like other online batch selectors, down-weighting gradients that diverge from the batch majority is beneficial for filtering mislabeled or noisy examples, but could also under-weight rare yet legitimate minority phenomena (such as underrepresented languages or dialects in multi-source pools) if deployed without per-source stratification; practitioners applying PRISM to sensitive or heterogeneous corpora should monitor per-source retention rates.

References

Algorithm 2: PRISM-SG: Stochastic-Greedy Conic Selection

Input: parameters wtw_t; batch Bt={zi}i=1bB_t = \{z_i\}_{i=1}^{b}; size kk; tolerance ϵ∈(0,1)\epsilon\in(0,1); metric MtM_t

Compute (Kt)ij(K_t)_{ij} via (4) and st,ijcone←[max⁡(0,(Kt)ij)]2(Kt)jj+δs^{\mathrm{cone}}_{t,ij} \leftarrow\frac{[\max(0,(K_t)_{ij})]^2}{(K_t)_{jj}+\delta}

Set q←⌈(b/k)log⁡(1/ϵ)⌉q \leftarrow\lceil(b/k)\log(1/\epsilon)\rceil, S←∅S \leftarrow\emptyset, ui←0u_i \leftarrow0 for i∈[b]i \in[b]

For r=1,…,kr=1,\ldots,k do

Sample Rr⊆[b]∖SR_r \subseteq[b]\setminus S uniformly with ∣Rr∣=min⁡{q,b−∣S∣}|R_r|=\min\{q,b-|S|\}

j⋆←arg⁡max⁡j∈Rr∑i=1bmax⁡(0,st,ijcone−ui)j^\star\leftarrow\arg\max_{j\in R_r}\sum_{i=1}^{b}\max(0,s^{\mathrm{cone}}_{t,ij}-u_i)

S←S∪{j⋆}S \leftarrow S\cup\{j^\star\}

ui←max⁡(ui,st,ij⋆cone) ∀i∈[b]u_i \leftarrow\max(u_i,s^{\mathrm{cone}}_{t,ij^\star})\ \forall i\in[b]

End

Assign σ(i)←arg⁡max⁡j∈Sst,ijcone\sigma(i)\leftarrow\arg\max_{j\in S}s^{\mathrm{cone}}_{t,ij} and Cj←{i:σ(i)=j}C_j\leftarrow\{i:\sigma(i)=j\}

Compute γt,j←∑i∈Cjmax⁡(0,(Kt)ij)(Kt)jj+δ\gamma_{t,j}\leftarrow\sum_{i\in C_j}\frac{\max(0,(K_t)_{ij})}{(K_t)_{jj}+\delta}

Obtain g^t=∇w[1b∑j∈Sγt,jℓ(wt,zj)]\hat{g}_t=\nabla_w\left[\frac{1}{b}\sum_{j\in S}\gamma_{t,j}\ell(w_t,z_j)\right] via one backward pass on SS

Update wt+1w_{t+1} and factored metric Mt+1M_{t+1}

Algorithms and Factored Ghost Implementation

Stochastic-Greedy Variant (Prism-SG)

For larger candidate pool sizes (b≥64b \ge64), evaluating all b−∣S∣b-|S| unselected candidates at every greedy step incurs O(kb2)O(kb^2) scalar operations. Algorithm 2 accelerates selection by replacing exhaustive greedy scanning with stochastic greedy sampling (Mirzasoleiman et al., 2015). Given an accuracy tolerance ϵ∈(0,1)\epsilon\in(0,1), each step samples uniformly at random a subset Rr⊆[b]∖SR_r \subseteq[b]\setminus S of size q=⌈(b/k)log⁡(1/ϵ)⌉q=\lceil(b/k)\log(1/\epsilon)\rceil and maximizes the conic marginal gain over RrR_r. Because FtconeF_t^{\mathrm{cone}} is normalized, nonnegative, monotone, and submodular, PRISM-SG reduces selection overhead to O(b2log⁡(1/ϵ))O(b^2\log(1/\epsilon)) while retaining a (1−1/e−ϵ)(1-1/e-\epsilon) expected approximation guarantee (Proposition 3).

Factored Ghost Inner Products for LoRA and Linear Modules

Consider a frozen linear backbone matrix W0∈Rdout×dinW_0\in\mathbb{R}^{d_{\mathrm{out}}\times d_{\mathrm{in}}} augmented with LoRA factors A∈Rr×dinA\in\mathbb{R}^{r\times d_{\mathrm{in}}} and B∈Rdout×rB\in\mathbb{R}^{d_{\mathrm{out}}\times r} [2]:

yi=W0xi+αrBAxi,hi=Axi∈Rr.(14)y_i=W_0x_i+\frac{\alpha}{r}BAx_i,\qquad h_i=Ax_i\in\mathbb{R}^{r}. \tag*{(14)}

For sequence inputs xi∈RLi×dinx_i\in\mathbb{R}^{L_i\times d_{\mathrm{in}}} (or summed over non-pad tokens m∈[Li]m\in[L_i]), let θi,m=∇yi,mℓi∈Rdout\theta_{i,m}=\nabla_{y_{i,m}}\ell_i\in\mathbb{R}^{d_{\mathrm{out}}} and ψi,m=αrB⊤θi,m∈Rr\psi_{i,m}=\frac{\alpha}{r}B^\top\theta_{i,m}\in\mathbb{R}^{r}. The per-example LoRA gradients are

∇Aℓi=∑m=1Liψi,mxi,m⊤,∇Bℓi=αr∑m=1Liθi,mhi,m⊤.(15)\nabla_A\ell_i=\sum_{m=1}^{L_i}\psi_{i,m}x_{i,m}^{\top},\qquad\nabla_B\ell_i=\frac{\alpha}{r}\sum_{m=1}^{L_i}\theta_{i,m}h_{i,m}^{\top}. \tag*{(15)}

Under the factored metric MA=Dψ⊗DxM_A=D_\psi\otimes D_x and MB=Dθ⊗DhM_B=D_\theta\otimes D_h, we rescale the lightweight token activations and backpropagated signals prior to contraction:

x~i,m=Dx1/2xi,m,ψ~i,m=Dψ1/2ψi,m,\widetilde{x}_{i,m}=D_x^{1/2}x_{i,m},\qquad\widetilde{\psi}_{i,m}=D_\psi^{1/2}\psi_{i,m},
θ~i,m=Dθ1/2θi,m,h~i,m=Dh1/2hi,m.(16)\widetilde{\theta}_{i,m}=D_\theta^{1/2}\theta_{i,m},\qquad\widetilde{h}_{i,m}=D_h^{1/2}h_{i,m}. \tag*{(16)}

Because (Dψ⊗Dx)(D_\psi\otimes D_x) is separable across row and column indices, the preconditioned Frobenius inner product decomposes identically to (2):

⟨∇Aℓi,∇Aℓj⟩MA=∑m=1Li∑m′=1Lj⟨ψ~i,m,ψ~j,m′⟩⟨x~i,m,x~j,m′⟩,(17)\langle\nabla_A\ell_i,\nabla_A\ell_j\rangle_{M_A} =\sum_{m=1}^{L_i}\sum_{m'=1}^{L_j}\langle\widetilde{\psi}_{i,m},\widetilde{\psi}_{j,m'}\rangle\langle\widetilde{x}_{i,m},\widetilde{x}_{j,m'}\rangle, \tag*{(17)}

and analogously for ∇Bℓi\nabla_B\ell_i. Following Wang et al. [7], contracting first along the low-rank dimension rr or sequence dimension via batched matrix multiplication avoids materializing any dout×dind_{\mathrm{out}}\times d_{\mathrm{in}} or r×dinr\times d_{\mathrm{in}} gradient tensor.

State and complexity accounting. Table 3 compares asymptotic memory and time per step. Whereas naive gradient matching materializes O(bp)O(bp) floats, PRISM maintains only O(∑ℓ(din,ℓ+dout,ℓ))O(\sum_\ell(d_{\mathrm{in},\ell}+d_{\mathrm{out},\ell})) metric vectors and an O(b2)O(b^2) Gram matrix.

MethodGradMemMetricSel. Time
Naive GradMatchO(bp)O(bp)O(1)O(1)O(kbp)O(kbp)
Euclidean-FLO(bLd)O(bLd)O(1)O(1)O(b2d+kb2)O(b^2d+kb^2)
ZeroOrder (ZO)O(b)O(b)O(1)O(1)O(bdp+kb2)O(bd_p+kb^2)
PRISMO(bLd)O(bLd)O(∑ℓdℓ)O(\sum_\ell d_\ell)O(b2d+kb2)O(b^2d+kb^2)
PRISM-SGO(bLd)O(bLd)O(∑ℓdℓ)O(\sum_\ell d_\ell)O(b2d+b2log⁡(1/ϵ))O(b^2d+b^2\log(1/\epsilon))

Table 3. Per-step memory and complexity (pp: parameters, dd: width, LL: sequence length, dpd_p: ZO projection dim, bb: pool, kk: subset).

Proofs for Section 5

Proof of Proposition 1

Proof. By definition (8), Ftcone(∅)=0F_t^{\mathrm{cone}}(\emptyset)=0, and since st,ijcone≥0s^{\mathrm{cone}}_{t,ij}\ge0 for all i,j∈[b]i,j\in[b], Ftcone(S)≥0F_t^{\mathrm{cone}}(S)\ge0 for every S⊆BtS\subseteq B_t. Let S⊆T⊆BtS\subseteq T\subseteq B_t and zu∈Bt∖Tz_u\in B_t\setminus T. For each candidate i∈[b]i\in[b], define fi(S):=max⁡j∈Sst,ijconef_i(S):=\max_{j\in S}s^{\mathrm{cone}}_{t,ij} (with fi(∅)=0f_i(\emptyset)=0). Clearly fi(S∪{zu})−fi(S)=max⁡(0,st,iucone−fi(S))≥0f_i(S\cup\{z_u\})-f_i(S)=\max(0,s^{\mathrm{cone}}_{t,iu}-f_i(S))\ge0, proving monotonicity. Moreover, because S⊆TS\subseteq T implies fi(S)≤fi(T)f_i(S)\le f_i(T), we have

max⁡(0,st,iucone−fi(S))≥max⁡(0,st,iucone−fi(T)),(18)\max(0,s^{\mathrm{cone}}_{t,iu}-f_i(S))\ge\max(0,s^{\mathrm{cone}}_{t,iu}-f_i(T)), \tag*{(18)}

so fif_i is submodular for each ii (Cornuejols et al., 1977). Since a nonnegative sum of monotone submodular functions is monotone submodular, Ftcone(S)=∑i=1bfi(S)F_t^{\mathrm{cone}}(S)=\sum_{i=1}^{b}f_i(S) is normalized, monotone, and submodular. By the classical theorem of Nemhauser et al. [6], greedy maximization under ∣S∣≤k|S|\le k returns SGS_G satisfying

Ftcone(SG)≥(1−1e)Ftcone(S⋆).(19)F_t^{\mathrm{cone}}(S_G)\ge\left(1-\frac{1}{e}\right)F_t^{\mathrm{cone}}(S^\star). \tag*{(19)}

Using (7), ctcone(S)=Et−Ftcone(S)c_t^{\mathrm{cone}}(S)=E_t-F_t^{\mathrm{cone}}(S) for all nonempty S⊆BtS\subseteq\mathcal{B}_t. Substituting Ftcone(S)=Et−ctcone(S)F_t^{\mathrm{cone}}(S)=E_t-c_t^{\mathrm{cone}}(S) for SGS_G and S⋆S^\star yields

Et−ctcone(SG)≥(1−1e)(Et−ctcone(S⋆))E_t-c_t^{\mathrm{cone}}(S_G)\ge\left(1-\frac{1}{e}\right)(E_t-c_t^{\mathrm{cone}}(S^\star))
⟹ctcone(SG)≤1eEt+(1−1e)ctcone(S⋆).(20)\Longrightarrow c_t^{\mathrm{cone}}(S_G)\le\frac{1}{e}E_t+\left(1-\frac{1}{e}\right)c_t^{\mathrm{cone}}(S^\star). \tag*{(20)}

which establishes (10).

Proof of Proposition 2

Proof. For each candidate i∈[b]i\in[b], let σ(i)=σSt(i)∈arg⁡max⁡j∈Stst,ijcone\sigma(i)=\sigma_{S_t}(i)\in\arg\max_{j\in S_t}s^{\mathrm{cone}}_{t,ij} and define the non-negative radial projection of g~t,i=Mt1/2gt,i\tilde{g}_{t,i}=M_t^{1/2}g_{t,i} onto the ray generated by g~t,σ(i)\tilde{g}_{t,\sigma(i)} as

pi:=αig~t,σ(i),αi:=max⁡(0,(Kt)i,σ(i))(Kt)σ(i),σ(i)+δ.(21)p_i:=\alpha_i\tilde{g}_{t,\sigma(i)},\qquad\alpha_i:=\frac{\max(0,(K_t)_{i,\sigma(i)})}{(K_t)_{\sigma(i),\sigma(i)}+\delta}. \tag*{(21)}

Because the cells {Cj:j∈St}\{C_j:j\in S_t\} partition [b][b], regrouping the sum over i∈[b]i\in[b] by j∈Stj\in S_t gives

1b∑i=1bpi=1b∑j∈St(∑i∈Cjαi)g~t,j=1b∑j∈Stγt,jg~t,j=Mt1/2g^t.(22)\frac{1}{b}\sum_{i=1}^{b}p_i=\frac{1}{b}\sum_{j\in S_t}\left(\sum_{i\in C_j}\alpha_i\right)\tilde{g}_{t,j} =\frac{1}{b}\sum_{j\in S_t}\gamma_{t,j}\tilde{g}_{t,j}=M_t^{1/2}\hat{g}_t. \tag*{(22)}

Therefore, by the triangle inequality and Jensen’s inequality ((1b∑i=1bai)2≤1b∑i=1bai2)\left(\left(\frac{1}{b}\sum_{i=1}^{b}a_i\right)^2\le\frac{1}{b}\sum_{i=1}^{b}a_i^2\right),

∥gt−g^t∥Mt2=∥1b∑i=1b(g~t,i−pi)∥22≤(1b∑i=1b∥g~t,i−pi∥2)2≤1b∑i=1b∥g~t,i−pi∥22.(23)\|g_t-\hat{g}_t\|_{M_t}^{2} =\left\|\frac{1}{b}\sum_{i=1}^{b}(\tilde{g}_{t,i}-p_i)\right\|_{2}^{2} \le\left(\frac{1}{b}\sum_{i=1}^{b}\|\tilde{g}_{t,i}-p_i\|_2\right)^2 \le\frac{1}{b}\sum_{i=1}^{b}\|\tilde{g}_{t,i}-p_i\|_2^2. \tag*{(23)}

When (Kt)i,σ(i)≤0(K_t)_{i,\sigma(i)}\le0, pi=0p_i=0 and therefore ∥g~t,i−pi∥22=(Kt)ii−st,i,σ(i)cone\|\tilde{g}_{t,i}-p_i\|_2^2=(K_t)_{ii}-s^{\mathrm{cone}}_{t,i,\sigma(i)} (since st,i,σ(i)cone=0s^{\mathrm{cone}}_{t,i,\sigma(i)}=0). When (Kt)i,σ(i)>0(K_t)_{i,\sigma(i)}>0, expanding the squared norm yields

∥g~t,i−pi∥22=(Kt)ii−2αi(Kt)i,σ(i)+αi2(Kt)σ(i),σ(i)≤(Kt)ii−(Kt)i,σ(i)2(Kt)σ(i),σ(i)+δ=(Kt)ii−st,i,σ(i)cone,(24)\begin{aligned} \|\tilde{g}_{t,i}-p_i\|_2^2 &=(K_t)_{ii}-2\alpha_i(K_t)_{i,\sigma(i)}+\alpha_i^2(K_t)_{\sigma(i),\sigma(i)}\\ &\le(K_t)_{ii}-\frac{(K_t)_{i,\sigma(i)}^2}{(K_t)_{\sigma(i),\sigma(i)}+\delta}\\ &=(K_t)_{ii}-s^{\mathrm{cone}}_{t,i,\sigma(i)}, \tag*{(24)} \end{aligned}

because (Kt)σ(i),σ(i)≤(Kt)σ(i),σ(i)+δ(K_t)_{\sigma(i),\sigma(i)}\le(K_t)_{\sigma(i),\sigma(i)}+\delta (exact equality as δ→0+\delta\to0^+). Summing over i∈[b]i\in[b] proves ∥gt−g^t∥Mt2≤1bctcone(St)\|g_t-\hat{g}_t\|_{M_t}^2\le\frac{1}{b}c_t^{\mathrm{cone}}(S_t), establishing part (i). Part (ii) follows directly from (9): if ⟨gt,i,gt,j⟩M=(Kt)ij≤0\langle g_{t,i},g_{t,j}\rangle_M=(K_t)_{ij}\le0 for all j∈Stj\in S_t, then αi=0\alpha_i=0, contributing zero to γt,σ(i)\gamma_{t,\sigma(i)}, whereas Euclidean assignment increments ∣Cσ(i)∣|C_{\sigma(i)}| by 1.

Proof of Theorem 1 and Corollary 1

We first prove a preconditioned one-step descent lemma analogous to Ghadimi and Lan (2013) and Bottou et al. (2018).

Lemma 1 (Preconditioned one-step descent). Under Assumption 1, if wt+1=wt−ηtMtg^tw_{t+1}=w_t-\eta_tM_t\hat{g}_t with μMI⪯Mt⪯LMI\mu_M I\preceq M_t\preceq L_M I and 0<ηt≤1/(4LLM)0<\eta_t\le1/(4LL_M), then

Et[f(wt+1)]≤f(wt)−ηt2∥∇f(wt)∥Mt2+LLMηt2σM2b+5ηt4Et[∥et∥Mt2].(25)\mathbb{E}_t[f(w_{t+1})]\le f(w_t)-\frac{\eta_t}{2}\|\nabla f(w_t)\|_{M_t}^{2}+\frac{LL_M\eta_t^2\sigma_M^2}{b}+\frac{5\eta_t}{4}\mathbb{E}_t[\|e_t\|_{M_t}^{2}]. \tag*{(25)}

Proof. By LL-smoothness of ff,

f(wt+1)≤f(wt)−ηt⟨∇f(wt),Mtg^t⟩+Lηt22∥Mtg^t∥22.(26)f(w_{t+1})\le f(w_t)-\eta_t\langle\nabla f(w_t),M_t\hat{g}_t\rangle+\frac{L\eta_t^2}{2}\|M_t\hat{g}_t\|_2^2. \tag*{(26)}

Since Mt⪯LMIM_t\preceq L_M I, ∥Mtg^t∥22=g^t⊤Mt2g^t≤LM∥g^t∥Mt2\|M_t\hat{g}_t\|_2^2=\hat{g}_t^\top M_t^2\hat{g}_t\le L_M\|\hat{g}_t\|_{M_t}^2. Writing g^t=gt+et\hat{g}_t=g_t+e_t and taking conditional expectation Et[⋅]\mathbb{E}_t[\cdot] (with wt,Mtw_t,M_t fixed and Et[gt]=∇f(wt)\mathbb{E}_t[g_t]=\nabla f(w_t)):

Et[f(wt+1)]≤f(wt)−ηt∥∇f(wt)∥Mt2−ηtEt[⟨∇f(wt),et⟩Mt]+LLMηt22Et[∥gt+et∥Mt2].(27)\mathbb{E}_t[f(w_{t+1})]\le f(w_t)-\eta_t\|\nabla f(w_t)\|_{M_t}^{2}-\eta_t\mathbb{E}_t[\langle\nabla f(w_t),e_t\rangle_{M_t}] +\frac{LL_M\eta_t^2}{2}\mathbb{E}_t[\|g_t+e_t\|_{M_t}^{2}]. \tag*{(27)}

Applying Cauchy–Schwarz and Young’s inequality gives −⟨∇f(wt),et⟩Mt≤14∥∇f(wt)∥Mt2+∥et∥Mt2-\langle\nabla f(w_t),e_t\rangle_{M_t}\le\frac{1}{4}\|\nabla f(w_t)\|_{M_t}^{2}+\|e_t\|_{M_t}^{2}, while ∥gt+et∥Mt2≤2∥gt∥Mt2+2∥et∥Mt2\|g_t+e_t\|_{M_t}^{2}\le2\|g_t\|_{M_t}^{2}+2\|e_t\|_{M_t}^{2}. By Assumption 1,

Et∥gt∥Mt2=∥∇f(wt)∥Mt2+Et∥gt−∇f(wt)∥Mt2≤∥∇f(wt)∥Mt2+σM2b.\mathbb{E}_t\lVert g_t\rVert_{M_t}^2 = \lVert\nabla f(w_t)\rVert_{M_t}^2 + \mathbb{E}_t\lVert g_t-\nabla f(w_t)\rVert_{M_t}^2 \le\lVert\nabla f(w_t)\rVert_{M_t}^2+\frac{\sigma_M^2}{b}.

Substituting these inequalities yields

Et[f(wt+1)]≤f(wt)−(3ηt4−LLMηt2)∥∇f(wt)∥Mt2+LLMηt2σM2b+(ηt+LLMηt2)Et∥et∥Mt2.(28)\begin{aligned} \mathbb{E}_t[f(w_{t+1})] \le{}& f(w_t) -\left(\frac{3\eta_t}{4}-LL_M\eta_t^2\right)\lVert\nabla f(w_t)\rVert_{M_t}^2\\ &+\frac{LL_M\eta_t^2\sigma_M^2}{b} +\left(\eta_t+LL_M\eta_t^2\right)\mathbb{E}_t\lVert e_t\rVert_{M_t}^2. \tag*{(28)} \end{aligned}

Using ηt≤1/(4LLM)\eta_t\le1/(4LL_M) gives 3ηt4−LLMηt2≥ηt2\frac{3\eta_t}{4}-LL_M\eta_t^2\ge\frac{\eta_t}{2} and ηt+LLMηt2≤5ηt4\eta_t+LL_M\eta_t^2\le\frac{5\eta_t}{4}, proving (25).

Proof of Theorem 1. Taking total expectation over Lemma 1 and summing over t=0,…,T−1t=0,\ldots,T-1 produces a telescoping sum on the objective differences:

12∑t=0T−1ηtE∥∇f(wt)∥Mt2≤f(w0)−E[f(wT)]+LLMσM2b∑t=0T−1ηt2+54∑t=0T−1ηtE∥et∥Mt2.(29)\frac{1}{2}\sum_{t=0}^{T-1}\eta_t\mathbb{E}\lVert\nabla f(w_t)\rVert_{M_t}^2 \le f(w_0)-\mathbb{E}[f(w_T)] +\frac{LL_M\sigma_M^2}{b}\sum_{t=0}^{T-1}\eta_t^2 +\frac{5}{4}\sum_{t=0}^{T-1}\eta_t\mathbb{E}\lVert e_t\rVert_{M_t}^2. \tag*{(29)}

Since f(wT)≥f⋆f(w_T)\ge f^\star, f(w0)−E[f(wT)]≤Δff(w_0)-\mathbb{E}[f(w_T)]\le\Delta_f. Dividing both sides by 12∑t=0T−1ηt\frac{1}{2}\sum_{t=0}^{T-1}\eta_t yields (12).

Proof of Corollary 1. By Proposition 2, ∥et∥Mt2=∥g^t−gt∥M2≤ccone(St)/b\lVert e_t\rVert_{M_t}^2=\lVert\hat{g}_t-g_t\rVert_M^2\le c^{\mathrm{cone}}(S_t)/b pointwise for every batch realization. Substituting this bound and constant ηt=η\eta_t=\eta into (12) gives

1T∑t=0T−1E∥∇f(wt)∥Mt2≤2ΔfηT+2LLMησM2b+52δT2.(30)\frac{1}{T}\sum_{t=0}^{T-1}\mathbb{E}\lVert\nabla f(w_t)\rVert_{M_t}^2 \le\frac{2\Delta_f}{\eta T}+\frac{2LL_M\eta\sigma_M^2}{b}+\frac{5}{2}\delta_T^2. \tag*{(30)}

Choosing η=Δfb/(LLMσM2T)\eta=\sqrt{\Delta_f b/(LL_M\sigma_M^2T)} (valid for T≥16LLMΔfb/σM2T\ge16LL_M\Delta_f b/\sigma_M^2 so that η≤1/(4LLM)\eta\le1/(4LL_M)) equalizes the first two terms to 4ΔfLLMσM2/(bT)4\sqrt{\Delta_fLL_M\sigma_M^2/(bT)}, proving (13).

Additional Theoretical Results

Linear Convergence under the Polyak–Łojasiewicz Condition

Assumption 2 (Preconditioned PL condition). There exists μ>0\mu>0 such that for all w∈Rpw\in\mathbb{R}^p,

∥∇f(w)∥Mt2≥2μ(f(w)−f⋆)\lVert\nabla f(w)\rVert_{M_t}^2\ge2\mu(f(w)-f^\star)

(Karimi et al., 2016). (Since Mt⪰μMIM_t\succeq\mu_M I, the standard Euclidean PL constant μeuc\mu_{\mathrm{euc}} implies μ≥μMμeuc\mu\ge\mu_M\mu_{\mathrm{euc}}.)

Theorem 2 (PL convergence of PRISM). Suppose Assumptions 1 and 2 hold, and PRISM runs with constant step size 0<η≤min⁡{1/(4LLM),1/μ}0<\eta\le\min\{1/(4LL_M),1/\mu\} and bounded expected conic cost 1bE[ctcone(St)]≤δ2\frac{1}{b}\mathbb{E}[c_t^{\mathrm{cone}}(S_t)]\le\delta^2 for all tt. Then

E[f(wT)−f⋆]≤(1−μη)TΔf+(1−(1−μη)T)(LLMησM2μb+5δ24μ).(31)\mathbb{E}[f(w_T)-f^\star]\le(1-\mu\eta)^T\Delta_f+\left(1-(1-\mu\eta)^T\right)\left(\frac{LL_M\eta\sigma_M^2}{\mu b}+\frac{5\delta^2}{4\mu}\right). \tag*{(31)}

Proof. Combining Lemma 1 with Assumption 2 (−η2∥∇f(wt)∥Mt2≤−μη(f(wt)−f⋆))\left(-\frac{\eta}{2}\lVert\nabla f(w_t)\rVert_{M_t}^2\le-\mu\eta(f(w_t)-f^\star)\right) and Proposition 2 (Et∥et∥Mt2≤1bEt[ctcone(St)])\left(\mathbb{E}_t\lVert e_t\rVert_{M_t}^2\le\frac{1}{b}\mathbb{E}_t[c_t^{\mathrm{cone}}(S_t)]\right) and taking total expectation gives

E[f(wt+1)−f⋆]≤(1−μη)E[f(wt)−f⋆]+LLMη2σM2b+5η4δ2.(32)\mathbb{E}[f(w_{t+1})-f^\star]\le(1-\mu\eta)\mathbb{E}[f(w_t)-f^\star]+\frac{LL_M\eta^2\sigma_M^2}{b}+\frac{5\eta}{4}\delta^2. \tag*{(32)}

Unrolling the linear contraction q=1−μη∈[0,1)q=1-\mu\eta\in[0,1) over TT steps and summing the geometric series ∑r=0T−1qr=(1−qT)/(μη)\sum_{r=0}^{T-1}q^r=(1-q^T)/(\mu\eta) yields the stated bound.

Asymptotic Stationarity under Diminishing Step Sizes

Corollary 2 (Asymptotic stationarity). Under Theorem 1, suppose ∑t=0∞ηt=∞\sum_{t=0}^{\infty}\eta_t=\infty, ∑t=0∞ηt2<∞\sum_{t=0}^{\infty}\eta_t^2<\infty, and ∑t=0T−1ηtE[ctcone(St)/b]/∑t=0T−1ηt→0\sum_{t=0}^{T-1}\eta_t\mathbb{E}[c_t^{\mathrm{cone}}(S_t)/b]/\sum_{t=0}^{T-1}\eta_t\to0 as T→∞T\to\infty. Then

∑t=0T−1ηtE∥∇f(wt)∥Mt2∑t=0T−1ηt→0.(33)\frac{\sum_{t=0}^{T-1}\eta_t\mathbb{E}\lVert\nabla f(w_t)\rVert_{M_t}^2}{\sum_{t=0}^{T-1}\eta_t}\to0. \tag*{(33)}

Proof. Immediate by taking T→∞T\to\infty in (12) and using the divergence of ∑tηt\sum_t\eta_t against finite Δf\Delta_f and ∑tηt2\sum_t\eta_t^2.

Stochastic-Greedy Conic Cost Bound

Proposition 3 (Stochastic-greedy conic cost). Let SSGS_{\mathrm{SG}} be returned by Algorithm 2 with parameter ε∈(0,1)\varepsilon\in(0,1) and let S⋆S^\star be an optimal size-kk subset. Then

ESG[ctcone(SSG)]≤(1e+ε)Et[ctcone(St)]+(1−1e−ε)ctcone(S⋆).(34)\mathbb{E}_{\mathrm{SG}}[c_t^{\mathrm{cone}}(S_{\mathrm{SG}})] \le\left(\frac{1}{e}+\varepsilon\right)\mathbb{E}_t\left[c_t^{\mathrm{cone}}(S_t)\right] +\left(1-\frac{1}{e}-\varepsilon\right)c_t^{\mathrm{cone}}(S^\star). \tag*{(34)}

Proof. Because FtconeF^{\mathrm{cone}}_t is normalized, nonnegative, monotone, and submodular (Proposition 1), the stochastic-greedy theorem of Mirzasoleiman et al. (2015) gives ESG⁡[Ftcone(SSG)]≥(1−1/e−ϵ)Ftcone(S⋆)\operatorname{ESG}[F^{\mathrm{cone}}_t(S_{\mathrm{SG}})] \ge(1-1/e-\epsilon)F^{\mathrm{cone}}_t(S^\star). Substituting Ftcone(S)=Et−U~tcone(S)F^{\mathrm{cone}}_t(S)=E_t-\widetilde{U}^{\mathrm{cone}}_t(S) completes the proof. □\square

Non-Submodularity of Second-Order Validation Surrogates

Proposition 4 (Counterexample to validation-utility submodularity). Consider the second-order Taylor validation-utility surrogate

U~t(S)=ηt⟨gtval,∑j∈Sgt,j⟩−ηt22(∑j∈Sgt,j)⊤Htval(∑j∈Sgt,j)\widetilde{U}_t(S)=\eta_t\left\langle g_t^{\mathrm{val}},\sum_{j\in S}g_{t,j}\right\rangle-\frac{\eta_t^2}{2}\left(\sum_{j\in S}g_{t,j}\right)^\top H_t^{\mathrm{val}}\left(\sum_{j\in S}g_{t,j}\right)

used in Taylor validation selectors (Wang et al., [7]). There exist a smooth loss, a two-example batch {z1,z2}\{z_1,z_2\}, and a validation point zvalz_{\mathrm{val}} with Htval=hI≻0H_t^{\mathrm{val}}=hI\succ0 for which U~t\widetilde{U}_t violates submodularity.

Proof. Let w∈Rw\in\mathbb{R} at wt=0w_t=0, ℓ(w,z1)=12(w+1)2\ell(w,z_1)=\frac{1}{2}(w+1)^2, ℓ(w,z2)=12(w−1)2\ell(w,z_2)=\frac{1}{2}(w-1)^2, and ℓ(w,zval)=h2w2\ell(w,z_{\mathrm{val}})=\frac{h}{2}w^2 with h>0h>0. Then g1=1g_1=1, g2=−1g_2=-1, gval=0g^{\mathrm{val}}=0, and Hval=h>0H^{\mathrm{val}}=h>0. Since U~t(∅)=0\widetilde{U}_t(\varnothing)=0, submodularity on {z1,z2}\{z_1,z_2\} requires U~t({z1})+U~t({z2})≥U~t({z1,z2})\widetilde{U}_t(\{z_1\})+\widetilde{U}_t(\{z_2\})\ge\widetilde{U}_t(\{z_1,z_2\}). Expanding yields U~t({z1})+U~t({z2})−U~t({z1,z2})=ηt2g1Hvalg2=−ηt2h<0\widetilde{U}_t(\{z_1\})+\widetilde{U}_t(\{z_2\})-\widetilde{U}_t(\{z_1,z_2\})=\eta_t^2g_1H^{\mathrm{val}}g_2=-\eta_t^2h<0, violating submodularity. Thus, greedy selection over U~t\widetilde{U}_t lacks a structural (1−1/e)(1-1/e) guarantee without additional curvature restrictions (Bauschke and Combettes (2017)). □\square

Detailed Experimental Setup

Datasets and evaluation protocols. For LESS →\to MMLU (Xia et al., 2024; Hendrycks et al., 2021), we fine-tune Qwen2.5-1.5B on the LESS mixed instruction pool and evaluate answer perplexity and zero-shot accuracy on two held-out MMLU subjects (sociology and us_foreign_policy) across 3 seeds (n=6n=6). For Tulu-2 →\to BBH (Ivison et al., 2023; Suzgun et al., 2023), we fine-tune Llama-3.1-8B on Tulu-2 SFT and evaluate 3-shot chain-of-thought exact match on all 27 BBH subtasks. For LESS →\to TyDiQA (Clark et al., 2020), we fine-tune Mistral-7B and evaluate macro F1 across the GoldP dev split. For Tulu-2 →\to GSM8K (Cobbe et al., 2021), we fine-tune Qwen2.5-7B and evaluate zero-shot exact-match

HyperparameterValue
LoRA rank rr / alpha α\alpha8 / 16
LoRA target modulesq, k, v, o, gate, up, down
Candidate pool bb / selected kk16 / 8 (ρ=0.5\rho=0.5)
Factored metric EMA β2\beta_2, ϵ\epsilon0.999, 10−810^{-8}
Conic stabilizer δ\delta10−1210^{-12}
OptimizerAdamW (β1=0.9\beta_1=0.9, wd = 0.0)
Learning rate2×10−52\times10^{-5} (MMLU/TyDiQA), 5×10−55\times10^{-5} (BBH/GSM8K)
LR schedule / warmupCosine decay / 3% linear warmup
Main horizon (steps)1,000 (MMLU), 800 (BBH/GSM8K), 300 (TyDiQA/SAMSum)
Precisionbfloat16
Seeds3 (2 subjects ×\times 3 for MMLU)
Hardware4×4\times NVIDIA A100 80GB

Table 4. Default training and PRISM hyperparameters across configurations.

accuracy on the GSM8K test split (1,319 problems). For the cold-start boundary study, we fine-tune raw Qwen3-8B-Base (Yang et al., 2025) on SAMSum (Gliwa et al., 2019) using ChatML formatting and report ROUGE-1/2/L.

Baseline configurations. GREATS (Wang et al., [7]), OPUS (Wang et al., [8]), and Filter-then-Weight (Wang et al., [10]) all receive 5 clean held-out validation/proxy examples drawn from the target task’s validation split; OPUS and Filter-then-Weight use our exact LoRA ghost inner products for controlled parity. Euclidean-FL uses unpreconditioned ghost distances dij=∥gi−gj∥2d_{ij}=\lVert g_i-g_j\rVert_2, diameter shift sij=mt−dijs_{ij}=m_t-d_{ij}, and integer cluster counts ∣Cj∣\lvert C_j\rvert (Mirzasoleiman et al., 2020). ZeroOrder replaces the ghost Gram matrix with a 2-point Rademacher zeroth-order gradient sketch matching Nguyen et al. [14] while keeping our conic facility-location rule fixed.

Supplementary Experimental Results

Complementary Metrics

Table 5 reports MMLU classification accuracy alongside the answer perplexity in Table 1, and Table 6 reports ROUGE-1/2/L on Qwen3-8B-Base / SAMSum at both the 300-step cold-start horizon and the 1,000-step extended horizon.

MethodMMLU PPL (↓\downarrow)MMLU Acc (% ↑\uparrow)
Regular5.84 ±\pm 0.4149.8 ±\pm 0.9
Random6.42 ±\pm 0.5348.1 ±\pm 1.1
GREATS4.62 ±\pm 0.1852.4 ±\pm 0.5
OPUS4.79 ±\pm 0.2151.9 ±\pm 0.6
Euclidean-FL5.61 ±\pm 0.3650.5 ±\pm 0.7
ZeroOrder5.92 ±\pm 0.4449.4 ±\pm 0.8
PRISM5.14 ±\pm 0.2751.6 ±\pm 0.5

Table 5. Complementary MMLU metrics on Qwen2.5-1.5B (mean ±\pm std over 2 subjects ×\times 3 seeds, n=6n=6).

Method300 steps (Cold-Start)1,000 steps (Extended)
R-1R-2R-LR-1R-2R-L
Regular0.2140.0720.1630.3410.1320.274
GREATS0.1720.0540.1310.3690.1490.298
OPUS0.1890.0610.1440.3670.1470.295
Euclidean-FL0.1310.0390.0980.3580.1410.288
ZeroOrder0.0840.0220.0630.3520.1380.283
PRISM0.1480.0450.1120.3760.1540.304

Table 6. SAMSum ROUGE-1/2/L on Qwen3-8B-Base at 300 steps (unseen template cold-start) vs. 1,000 steps.

Run-Level Consistency and Additional Baselines

Table 7 summarizes matched-run win counts across all 15 main evaluation runs (6 MMLU + 3 BBH + 3 TyDiQA + 3 GSM8K), plus the 3 extended

ConfigurationRunsvs. ZOvs. Eucl.-FL
Qwen2.5-1.5B / MMLU66 / 66 / 6
Llama-3.1-8B / BBH33 / 33 / 3
Mistral-7B / TyDiQA33 / 32 / 3
Qwen2.5-7B / GSM8K33 / 33 / 3
Qwen3-8B / SAMSum (1k)33 / 33 / 3
Total1818 / 1817 / 18

Table 7. Matched seed-level win rates of PRISM over ZeroOrder and Euclidean-FL.

SAMSum runs (18 total). PRISM outperforms ZeroOrder in 18/18 runs and Euclidean-FL in 17/18 runs. Table 8 compares PRISM against four additional 2025–2026 validation-free and bi-level baselines—CoLM (Nguyen et al., [14]), UDS (Zou et al., [3]), SLAP (Zou et al., [13]), and BLADE (Wang et al., [9])—on Llama-3.1-8B (BBH) and Qwen2.5-7B (GSM8K).

MethodExt.BBH EM (↑\uparrow)GSM8K Acc (↑\uparrow)
CoLM (Nguyen et al., [14])No55.4 ±\pm 0.676.0 ±\pm 0.5
UDS (Zou et al., [3])No56.3 ±\pm 0.576.7 ±\pm 0.4
SLAP (Zou et al., [13])No56.6 ±\pm 0.577.0 ±\pm 0.5
BLADE (Wang et al., [9])Ref.57.1 ±\pm 0.477.4 ±\pm 0.4
PRISMNo57.6 ±\pm 0.477.9 ±\pm 0.4

Table 8. Comparison against recent 2025–2026 baselines on Llama-3.1-8B (BBH) and Qwen2.5-7B (GSM8K).

Heavy-Tailed Label-Noise Stress Test

Table 9 evaluates performance when 0%, 20%, or 40% of training responses in Tulu-2 are replaced with responses from unrelated prompts

Method0%20%40%Δ0→40\Delta_{0\to40}
Regular74.671.266.8−7.8
Euclidean-FL75.873.170.4−5.4
ZeroOrder75.172.369.1−6.0
GREATS (val.)76.875.474.4−2.4
PRISM77.976.976.0−1.9

Table 9. GSM8K accuracy (%) on Qwen2.5-7B under injected response corruption (0%, 20%, 40%).

(Qwen2.5-7B, GSM8K). Because corrupted examples induce misaligned gradients, Euclidean-FL degrades sharply (−5.4 points at 40% noise), whereas PRISM drops only −1.9 points and beats clean-validation GREATS by +1.6 points at 40% noise.

Extended-Horizon Robustness Checks

Figure 5 extends training horizons threefold on MMLU (3,000 steps), TyDiQA (3,000 steps), and SAMSum (1,000 steps). On MMLU, Regular begins to overfit past step 1,500 (5.84 →\to 6.68 PPL), while PRISM stabilizes at 4.90 PPL. On TyDiQA, all methods converge toward 0.70–0.73 F1, with PRISM (0.723) closely tracking GREATS (0.728). On SAMSum, the 300-step cold-start advantage of Regular completely disappears past step 700 as PRISM finishes at 0.376 vs. 0.341.

Extended Discussion

Why conic geometry outperforms Euclidean distance in LLM batches. In Euclidean facility location, covering a candidate ziz_i by representative zjz_j incurs penalty ∥gi−gj∥M\lVert g_i-g_j\rVert_M, which treats radial magnitude discrepancies and angular misalignment identically. When gradient norms vary by an order of magnitude across sequence lengths or corrupted samples ((Zhang et al., 2020; Yu et al., 2026)), two effects harm Euclidean selection: (i) mt=max⁡u,vduvm_t = \max_{u,v} d_{uv} scales with the worst outlier pair, inflating the (1/e)bmt(1/e)bm_t slack; and (ii) integer counts ∣Cj∣|C_j| force zjz_j to absorb full unit mass for misaligned points. Conic projection resolves both by decoupling ray direction from radial amplitude: similarity depends on cos⁡+2(g^i,g^j)\cos^2_{+}(\hat{g}_i,\hat{g}_j), and residual error obeys Pythagoras on the positive cone.

Validation-free vs. validation-guided selection. When a clean, representative target validation set is available and small enough to reflect the evaluation distribution (e.g., MMLU subject validation or TyDiQA dev prompts), GREATS and OPUS can steer training directly toward that target. However, in general instruction tuning (Tulu-2 →\to BBH or GSM8K), 5 proxy prompts offer noisy coverage of diverse reasoning patterns, whereas PRISM leverages all bb intra-batch gradients as geometric context and outperforms validation-guided methods. Hybridizing PRISM by including a single validation ray inside StS_t is a natural extension when partial supervision exists.

Failure modes and extensions. When bb is very small (b≤8b \le8) or all candidates are nearly orthogonal (early cold-start on an unseen chat format), radial projections shrink most batch energy and slow initial format adaptation; a brief 50–100 step full-batch warmup eliminates this effect. Beyond LoRA SFT, factored preconditioned ghost inner products and conic facility location extend directly to continual fine-tuning, preference optimization, and RL post-training (Cui et al., 2026; Zeng et al., 2026).

References

  1. [1]Alon Albalak, Yanai Elazar, Sang Michael Xie, Shayne Longpre, Nathan Lambert, Xinyi Wang, Niklas Muennighoff, Bairu Hou, Lianming Pan, Haewon Jeong, Colin Raffel, Shiyu Chang, Tatsunori Hashimoto, and William Yang Wang. 2024. A survey on data selection for language models. Transactions on Machine Learning Research.arxiv.org/abs/2402.16827
  2. [2]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuhuai Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.arxiv.org/abs/2106.09685
  3. [3]Heming Zou, Yixiu Mao, Yun Qu, Qi Wang, and Xiangyang Ji. 2025. Utility-diversity aware online batch selection for LLM supervised fine-tuning. arXiv preprint arXiv:2510.16882.arxiv.org/abs/2510.16882
  4. [4]Ilya Loshchilov and Frank Hutter. 2015. Online batch selection for faster training of neural networks. arXiv preprint arXiv:1511.06343.
  5. [5]Angelos Katharopoulos and François Fleuret. 2018. Not all samples are created equal: Deep learning with importance sampling. In Proceedings of the 35th International Conference on Machine Learning, pages 2525–2534. PMLR.arxiv.org/abs/1803.00942
  6. [6]George L. Nemhauser, Laurence A. Wolsey, and Marshall L. Fisher. 1978. An analysis of approximations for maximizing submodular set functions—I. Mathematical Programming, 14(1):265–294.DOI
  7. [7]Jiachen T. Wang, Tong Wu, Dawn Song, Prateek Mittal, and Ruoxi Jia. 2024. GREATS: Online selection of high-quality data for LLM training in every iteration. In Advances in Neural Information Processing Systems, volume 37, pages 131197–131223.DOI
  8. [8]Shaobo Wang, Xuan Ouyang, Tianyi Xu, Yuzheng Hu, Jialin Liu, Guo Chen, Tianyu Zhang, Junhao Zheng, Kexin Yang, Xingzhang Ren, Dayiheng Liu, and Linfeng Zhang. 2026a. OPUS: Towards efficient and principled data selection in large language model pre-training in every iteration. arXiv preprint arXiv:2602.05400.arxiv.org/abs/2602.05400
  9. [9]Jiaxing Wang, Deping Xiang, Jin Xu, Zirui Liu, Zicheng Zhang, Guoqiang Gong, Jun Fang, Chao Liu, Pengzhang Liu, Tongxuan Liu, Ke Zhang, and Qixia Jiang. 2026b. BLADE: Scalable bi-level adaptive data selection for LLM training. arXiv preprint arXiv:2606.18650.arxiv.org/abs/2606.18650
  10. [10]Fangxin Wang, Peyman Baghershahi, Langzhou He, Henry Peng Zou, Sourav Medya, and Philip S. Yu. 2026c. Filter-then-weight: Online data selection and reweighting for LLM fine-tuning. arXiv preprint arXiv:2604.00001.arxiv.org/abs/2604.00001
  11. [11]Ru Peng, Heming Zou, Haobo Wang, Yawen Zeng, Zenan Huang, and Junbo Zhao. 2024. Energy-based automated model evaluation. In International Conference on Learning Representations.arxiv.org/abs/2401.12689
  12. [12]Wei Zhang, Lin Tang, Ming Zhao, and Yuxuan Wang. 2026. Co-adaptive multi-task LoRA: Transfer-aware, label-free control of domain participation. arXiv preprint arXiv:2607.03522.arxiv.org/abs/2607.03522
  13. [13]Run Zou, Jianhang Ding, Yifan Ding, Wen Wu, Hao Chen, and Jershu Guo. 2026. SLaP: Stratified loss-based pruning for on-policy data-efficient instruction tuning. arXiv preprint arXiv:2605.23969.arxiv.org/abs/2605.23969
  14. [14]Dang Nguyen, Wenhan Yang, Rathul Anand, Yu Yang, and Baharan Mirzasoleiman. 2025. Mini-batch core-sets for memory-efficient language model training on data mixtures. In The Thirteenth International Conference on Learning Representations.
  15. [15]Tianhao Tang, Haoyang Li, and Lei Chen. 2026. GRACE: A dynamic coreset selection framework for large language model optimization. arXiv preprint arXiv:2604.11810.arxiv.org/abs/2604.11810

Paper details

vlnc:W_fwhtkzv4
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 4

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents