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 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 of examples at each step and updating parameters on a selected subset of size [4, 5]. Because exhaustive subset evaluation is combinatorially intractable, practical selectors construct greedily; when the selection objective is monotone submodular, greedy construction inherits the classical 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 into nonnegative similarities via anchors the entire objective to the batch’s worst-case outlier diameter . As Figure 1a–Figure 1b illustrates, isolated high-norm gradients inflate , hijack greedy facility slots, and force uniform integer weights 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 sits far above the batch RMS scale . (b) Because Euclidean similarity rewards covering isolated large-norm points, Euclidean-FL spends 28.4% of its greedy slots on outliers at , whereas PRISM cuts outlier slots to 3.7%. (c) Across selection ratios , 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 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, , measuring the squared nonnegative projection of candidate onto the unit ray of representative . The resulting conic facility-location objective is naturally nonnegative, normalized, and monotone submodular without any diameter shift . Assigning each candidate to its best-aligned ray yields closed-form radial projection weights 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 greedy guarantee while replacing the outlier diameter term with total batch energy , 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 be a fine-tuning dataset and the per-example loss of parameters , defining empirical risk . At iteration , we sample a candidate batch with per-example gradients and full-batch mean . Our goal is to select a smaller subset of cardinality and nonnegative weights so that the weighted subset gradient faithfully tracks in a positive-definite metric :
where and . Unlike classical formulations that enforce (Mirzasoleiman et al., 2020; Killamsetty et al., 2021), leaving unconstrained in magnitude allows radial shrinkage of poorly aligned batch regions while retaining a single weighted backward pass over .
Ghost inner products. Materializing explicitly is prohibitive for LLMs. For any linear layer with input activation and backpropagated signal , the parameter gradient is , so the Frobenius inner product factorizes as [7] (Li et al. 2022)
Summing (2) across all trainable linear and LoRA modules yields the exact Gram matrix using only activation and error-signal products, without storing -dimensional per-example gradients.
Why Euclidean facility location struggles. Standard gradient-space facility location converts pairwise distances into similarities with and assigns integer cluster weights (Mirzasoleiman et al., 2020). When gradient norms are heavy-tailed, a single large-norm outlier forces , inflating the gap in the greedy approximation bound and biasing selection toward isolated extremes. Moreover, integer counts force a representative to carry full unit weight even for outliers that point orthogonally or opposite to .
Method: Prism
Figure 2 illustrates the three stages of PRISM, which eliminates both diameter distortion and scale anisotropy while preserving ghost efficiency.
Figure 2. Overview of PRISM. I. Forward activations and backward signals are rescaled by factored second-moment statistics , to form the preconditioned Gram matrix via ghost inner products with zero per-example gradient materialization. II. Pairwise entries induce nonnegative conic ray similarities , defining a monotone submodular objective maximized greedily (or via stochastic greedy). III. Each candidate projects onto its closest ray to yield closed-form radial weights (automatically shrinking orthogonal outliers to ), followed by a single weighted backward pass on .
Factored Preconditioned Ghost Metric
To capture adaptive-optimizer geometry without breaking the rank-1 factorization (2), we equip each trainable matrix (or LoRA factors , ) with a Kronecker-factored diagonal metric built from running row- and column-wise second-moment estimates:
where and are exponential moving averages of row and column gradient squares from prior steps (fixed before is drawn, and updated once per step from the final selected update). Under , the preconditioned inner product factorizes exactly into rescaled ghost activations and signals :
For LoRA adapters, the same factorization applies to and (Appendix § 10.§ 2). Thus, PRISM computes the preconditioned Gram matrix with metric state per layer and zero materialization of per-example parameter gradients.
Conic Facility Location and Radial Weighting
Let denote the preconditioned gradient of candidate , whose squared norm is . For any candidate and potential representative with , let be the unit ray along . The optimal nonnegative radial projection of onto the ray is with , which attains squared reconstruction error
where the conic ray similarity is defined from :
with . Summing (5) over yields the conic representation cost
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 is the total preconditioned batch energy and
is our conic facility-location objective. Crucially, holds automatically without subtracting a worst-case diameter , and measures squared residual energy orthogonal or opposite to the selected rays.
Closed-form radial projection weights. Once of size is selected, each candidate is assigned to its best-aligned representative ray , partitioning into cells . Rather than assigning integer weight , each representative aggregates the exact radial projections of its cell:
Notice two key properties of (9). First, if candidate is a corrupted or high-norm outlier nearly orthogonal or negatively aligned with every selected ray, its contribution , so it exerts virtually zero pull on the update. Second, by the Pythagorean identity on each ray projection,
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 evaluates each greedy step in scalar operations ( total, sub-millisecond for ). For larger candidate pools (), we also support a stochastic-greedy variant (PRISM-SG, Appendix § 10) that samples unselected candidates per step (Mirzasoleiman et al., 2015), cutting selection complexity to while preserving a guarantee. Once and are determined, we compute via one standard backward pass over the selected examples with loss multipliers .
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 in (8) is normalized (), nonnegative, monotone nondecreasing, and submodular. Consequently, greedy maximization returns of size satisfying , where is an optimal size- subset. Moreover, its conic representation cost satisfies
Significance of (10). For standard Euclidean facility location, the additive error term is (Mirzasoleiman et al., 2020), which scales with the single largest pairwise distance in the batch. In contrast, (10) replaces with the total gradient energy , which averages over the batch and prevents one high-norm outlier from dominating the approximation slack.
Proposition 2 (Radial reconstruction bound & outlier damping). Let use the closed-form radial weights (9). Then: (i) the preconditioned gradient-matching error obeys
(ii) if an example satisfies for all (opposing or orthogonal outlier), its
induced radial weight contribution is zero, whereas Euclidean cluster assignment adds to .
Next, we connect directly to nonconvex optimization convergence under preconditioned SGD updates , where satisfies uniform spectral bounds () and is measurable with respect to the history prior to sampling . We adopt standard nonconvex smoothness and unbiased candidate-batch assumptions (Ghadimi and Lan, 2013; Bottou et al., 2018).
Assumption 1 (-smoothness and unbiased batch). The objective is -smooth and bounded below by . At each step , and .
Theorem 1 (Preconditioned nonconvex convergence). Suppose Assumption 1 holds and uses deterministic step sizes and metric bounds . Define and . Then
Corollary 1 (Convergence of PRISM). Under Theorem 1, substituting Proposition 2 into (12) with constant step size (for sufficiently large) yields
Setting sends and recovers the 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 and . 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 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 (, 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 of candidates (); hyperparameters appear in Appendix § 13.
Baselines. We compare against full-batch Regular (), Random (), 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 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-
| Method | Ext. Data | Qwen2.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 ) | No | 5.84 ± 0.41 | 54.2 ± 0.7 | 0.518 ± 0.011 | 74.6 ± 0.6 | — |
| Random (half ) | No | 6.42 ± 0.53 | 51.8 ± 0.9 | 0.489 ± 0.014 | 71.9 ± 0.8 | 0/4 |
| GREATS (Wang et al., [7]) | 5 val. | 4.62 ± 0.18 | 56.4 ± 0.5 | 0.654 ± 0.008 | 76.8 ± 0.5 | 4/4 |
| OPUS (Wang et al., [8]) | 5 proxy | 4.79 ± 0.21 | 56.9 ± 0.6 | 0.584 ± 0.009 | 77.1 ± 0.4 | 4/4 |
| Filter-then-Weight (Wang et al., [10]) | 5 proxy | 4.95 ± 0.24 | 56.1 ± 0.6 | 0.597 ± 0.010 | 76.5 ± 0.5 | 4/4 |
| Euclidean-FL | No | 5.61 ± 0.36 | 55.3 ± 0.6 | 0.602 ± 0.013 | 75.8 ± 0.6 | 4/4 |
| ZeroOrder (CoLM-style) | No | 5.92 ± 0.44 | 54.6 ± 0.8 | 0.579 ± 0.015 | 75.1 ± 0.7 | 3/4 |
| PRISM (ours) | No | 5.14 ± 0.27 | 57.6 ± 0.4 | 0.631 ± 0.009 | 77.9 ± 0.4 | 4/4 |
Table 1. Main results across four LLM fine-tuning configurations (mean ± std over 3 seeds; MMLU averages 2 subjects × 3 seeds, ). Selectors keep of 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 drops BBH by 1.2 points (57.6 → 56.4) and raises relative gradient error from 0.54 to 0.69. Removing factored preconditioning () drops BBH by 1.5 points (56.1) due to MLP scale anisotropy. Reverting conic similarity to diameter-shifted Euclidean similarity () 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 () stays within 0.3 points (57.3).
| Variant | BBH EM (↑) | TyDiQA F1 (↑) | Rel. Err. (↓) |
| PRISM (full) | 57.6 | 0.631 | 0.54 |
| w/o Radial weights () | 56.4 | 0.614 | 0.69 |
| w/o Factored metric () | 56.1 | 0.611 | 0.73 |
| w/o Conic sim. () | 55.8 | 0.608 | 0.78 |
| Euclidean-FL (raw, ) | 55.3 | 0.602 | 0.85 |
| ZeroOrder (ZO geometry) | 54.6 | 0.579 | 0.94 |
| PRISM-SG () | 57.3 | 0.627 | 0.57 |
Table 2. Component ablations on Llama-3.1-8B (BBH) and Mistral-7B (TyDiQA), with relative gradient error .
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 , 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 (PPL − PPL) 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 () correlate with diagonal AdamW at 0.59–0.73, whereas 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 and OOM by ; PRISM runs in 115 ms (10.3× faster) and scales to (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 , while PRISM and PRISM-SG scale to . (b) Step time (, ): PRISM is 13.5% and 10.3% faster than GREATS. (c) GSM8K scaling (1.5B–8B). (d) BBH EM vs. selection ratio .
Scaling and selection ratio. PRISM’s gains hold from 1.5B to 8B on GSM8K (Figure 4c), and beat Regular across on BBH, peaking at (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 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 -dimensional per-example gradients, exact Gram computation still scales quadratically in the candidate pool size and adds memory proportional to batch activations, making stochastic greedy and moderate pool sizes () 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 ; batch ; size ; tolerance ; metric
Compute via (4) and
Set , , for
For do
Sample uniformly with
End
Assign and
Compute
Obtain via one backward pass on
Update and factored metric
Algorithms and Factored Ghost Implementation
Stochastic-Greedy Variant (Prism-SG)
For larger candidate pool sizes (), evaluating all unselected candidates at every greedy step incurs scalar operations. Algorithm 2 accelerates selection by replacing exhaustive greedy scanning with stochastic greedy sampling (Mirzasoleiman et al., 2015). Given an accuracy tolerance , each step samples uniformly at random a subset of size and maximizes the conic marginal gain over . Because is normalized, nonnegative, monotone, and submodular, PRISM-SG reduces selection overhead to while retaining a expected approximation guarantee (Proposition 3).
Factored Ghost Inner Products for LoRA and Linear Modules
Consider a frozen linear backbone matrix augmented with LoRA factors and [2]:
For sequence inputs (or summed over non-pad tokens ), let and . The per-example LoRA gradients are
Under the factored metric and , we rescale the lightweight token activations and backpropagated signals prior to contraction:
Because is separable across row and column indices, the preconditioned Frobenius inner product decomposes identically to (2):
and analogously for . Following Wang et al. [7], contracting first along the low-rank dimension or sequence dimension via batched matrix multiplication avoids materializing any or gradient tensor.
State and complexity accounting. Table 3 compares asymptotic memory and time per step. Whereas naive gradient matching materializes floats, PRISM maintains only metric vectors and an Gram matrix.
| Method | Grad | Mem | Metric | Sel. Time |
| Naive GradMatch | ||||
| Euclidean-FL | ||||
| ZeroOrder (ZO) | ||||
| PRISM | ||||
| PRISM-SG |
Table 3. Per-step memory and complexity (: parameters, : width, : sequence length, : ZO projection dim, : pool, : subset).
Proofs for Section 5
Proof of Proposition 1
Proof. By definition (8), , and since for all , for every . Let and . For each candidate , define (with ). Clearly , proving monotonicity. Moreover, because implies , we have
so is submodular for each (Cornuejols et al., 1977). Since a nonnegative sum of monotone submodular functions is monotone submodular, is normalized, monotone, and submodular. By the classical theorem of Nemhauser et al. [6], greedy maximization under returns satisfying
Using (7), for all nonempty . Substituting for and yields
which establishes (10).
Proof of Proposition 2
Proof. For each candidate , let and define the non-negative radial projection of onto the ray generated by as
Because the cells partition , regrouping the sum over by gives
Therefore, by the triangle inequality and Jensen’s inequality ,
When , and therefore (since ). When , expanding the squared norm yields
because (exact equality as ). Summing over proves , establishing part (i). Part (ii) follows directly from (9): if for all , then , contributing zero to , whereas Euclidean assignment increments 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 with and , then
Proof. By -smoothness of ,
Since , . Writing and taking conditional expectation (with fixed and ):
Applying Cauchy–Schwarz and Young’s inequality gives , while . By Assumption 1,
Substituting these inequalities yields
Using gives and , proving (25).
Proof of Theorem 1. Taking total expectation over Lemma 1 and summing over produces a telescoping sum on the objective differences:
Since , . Dividing both sides by yields (12).
Proof of Corollary 1. By Proposition 2, pointwise for every batch realization. Substituting this bound and constant into (12) gives
Choosing (valid for so that ) equalizes the first two terms to , proving (13).
Additional Theoretical Results
Linear Convergence under the Polyak–Łojasiewicz Condition
Assumption 2 (Preconditioned PL condition). There exists such that for all ,
(Karimi et al., 2016). (Since , the standard Euclidean PL constant implies .)
Theorem 2 (PL convergence of PRISM). Suppose Assumptions 1 and 2 hold, and PRISM runs with constant step size and bounded expected conic cost for all . Then
Proof. Combining Lemma 1 with Assumption 2 and Proposition 2 and taking total expectation gives
Unrolling the linear contraction over steps and summing the geometric series yields the stated bound.
Asymptotic Stationarity under Diminishing Step Sizes
Corollary 2 (Asymptotic stationarity). Under Theorem 1, suppose , , and as . Then
Proof. Immediate by taking in (12) and using the divergence of against finite and .
Stochastic-Greedy Conic Cost Bound
Proposition 3 (Stochastic-greedy conic cost). Let be returned by Algorithm 2 with parameter and let be an optimal size- subset. Then
Proof. Because is normalized, nonnegative, monotone, and submodular (Proposition 1), the stochastic-greedy theorem of Mirzasoleiman et al. (2015) gives . Substituting completes the proof.
Non-Submodularity of Second-Order Validation Surrogates
Proposition 4 (Counterexample to validation-utility submodularity). Consider the second-order Taylor validation-utility surrogate
used in Taylor validation selectors (Wang et al., [7]). There exist a smooth loss, a two-example batch , and a validation point with for which violates submodularity.
Proof. Let at , , , and with . Then , , , and . Since , submodularity on requires . Expanding yields , violating submodularity. Thus, greedy selection over lacks a structural guarantee without additional curvature restrictions (Bauschke and Combettes (2017)).
Detailed Experimental Setup
Datasets and evaluation protocols. For LESS 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 (). For Tulu-2 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 TyDiQA (Clark et al., 2020), we fine-tune Mistral-7B and evaluate macro F1 across the GoldP dev split. For Tulu-2 GSM8K (Cobbe et al., 2021), we fine-tune Qwen2.5-7B and evaluate zero-shot exact-match
| Hyperparameter | Value |
| LoRA rank / alpha | 8 / 16 |
| LoRA target modules | q, k, v, o, gate, up, down |
| Candidate pool / selected | 16 / 8 () |
| Factored metric EMA , | 0.999, |
| Conic stabilizer | |
| Optimizer | AdamW (, wd = 0.0) |
| Learning rate | (MMLU/TyDiQA), (BBH/GSM8K) |
| LR schedule / warmup | Cosine decay / 3% linear warmup |
| Main horizon (steps) | 1,000 (MMLU), 800 (BBH/GSM8K), 300 (TyDiQA/SAMSum) |
| Precision | bfloat16 |
| Seeds | 3 (2 subjects 3 for MMLU) |
| Hardware | 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 , diameter shift , and integer cluster counts (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.
| Method | MMLU PPL () | MMLU Acc (% ) |
| Regular | 5.84 0.41 | 49.8 0.9 |
| Random | 6.42 0.53 | 48.1 1.1 |
| GREATS | 4.62 0.18 | 52.4 0.5 |
| OPUS | 4.79 0.21 | 51.9 0.6 |
| Euclidean-FL | 5.61 0.36 | 50.5 0.7 |
| ZeroOrder | 5.92 0.44 | 49.4 0.8 |
| PRISM | 5.14 0.27 | 51.6 0.5 |
Table 5. Complementary MMLU metrics on Qwen2.5-1.5B (mean std over 2 subjects 3 seeds, ).
| Method | 300 steps (Cold-Start) | 1,000 steps (Extended) | ||||
| R-1 | R-2 | R-L | R-1 | R-2 | R-L | |
| Regular | 0.214 | 0.072 | 0.163 | 0.341 | 0.132 | 0.274 |
| GREATS | 0.172 | 0.054 | 0.131 | 0.369 | 0.149 | 0.298 |
| OPUS | 0.189 | 0.061 | 0.144 | 0.367 | 0.147 | 0.295 |
| Euclidean-FL | 0.131 | 0.039 | 0.098 | 0.358 | 0.141 | 0.288 |
| ZeroOrder | 0.084 | 0.022 | 0.063 | 0.352 | 0.138 | 0.283 |
| PRISM | 0.148 | 0.045 | 0.112 | 0.376 | 0.154 | 0.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
| Configuration | Runs | vs. ZO | vs. Eucl.-FL |
| Qwen2.5-1.5B / MMLU | 6 | 6 / 6 | 6 / 6 |
| Llama-3.1-8B / BBH | 3 | 3 / 3 | 3 / 3 |
| Mistral-7B / TyDiQA | 3 | 3 / 3 | 2 / 3 |
| Qwen2.5-7B / GSM8K | 3 | 3 / 3 | 3 / 3 |
| Qwen3-8B / SAMSum (1k) | 3 | 3 / 3 | 3 / 3 |
| Total | 18 | 18 / 18 | 17 / 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).
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
| Method | 0% | 20% | 40% | |
| Regular | 74.6 | 71.2 | 66.8 | −7.8 |
| Euclidean-FL | 75.8 | 73.1 | 70.4 | −5.4 |
| ZeroOrder | 75.1 | 72.3 | 69.1 | −6.0 |
| GREATS (val.) | 76.8 | 75.4 | 74.4 | −2.4 |
| PRISM | 77.9 | 76.9 | 76.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 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 by representative incurs penalty , 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) scales with the worst outlier pair, inflating the slack; and (ii) integer counts force to absorb full unit mass for misaligned points. Conic projection resolves both by decoupling ray direction from radial amplitude: similarity depends on , 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 BBH or GSM8K), 5 proxy prompts offer noisy coverage of diverse reasoning patterns, whereas PRISM leverages all intra-batch gradients as geometric context and outperforms validation-guided methods. Hybridizing PRISM by including a single validation ray inside is a natural extension when partial supervision exists.
Failure modes and extensions. When is very small () 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]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]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]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]Ilya Loshchilov and Frank Hutter. 2015. Online batch selection for faster training of neural networks. arXiv preprint arXiv:1511.06343.
- [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]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]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]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]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]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]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]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]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]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]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




