A small, well-chosen slice of an instruction dataset often trains a better model than the whole thing. Methods that pick that slice by comparing training-example gradients to target-task gradients now beat full-data training with 5% of the data. These methods share a quiet assumption: the right data does not depend on how much the model is allowed to change. The model is usually adapted with low-rank adaptation (LoRA), which freezes the pretrained weights and learns a small update that, in each layer, can only move along $r$ directions. A rank-2 adapter and a rank-64 adapter can absorb very different amounts of information. Yet current selectors pick one subset at one rank and hand it to every adapter. We propose that data quality is partly a property of the pair (example, adapter capacity): an example is useful to a rank-$r$ adapter only to the extent that its gradient lies in the few weight directions that adapter can actually reach.
We turn that hypothesis into a selector that scores examples by their alignment with the top-$r$ singular directions of the target task's weight gradient, layer by layer. It runs directly on the frozen base model, with no LoRA warmup run. Because the top-$r$ directions are nested, a single scoring pass yields a ranking for every rank up to a maximum. The study then asks two questions. Does the best subset, and the best subset size, change with adapter rank? Can this rank-matched, warmup-free selector match a warmup-based selector rerun separately at each target rank? Either answer is informative. A yes means the data-quality and parameter-efficiency literatures have been solving a coupled problem as if it were two separate ones. A no means selected subsets can safely be reused across ranks, which nobody has yet checked.
Where this sits
The closest work is a short line of gradient-based selectors built on LoRA. DataInf supplies part of the rationale. It shows that closed-form influence estimates are accurate in the LoRA regime because their error grows with the square of trainable parameters per layer, but it attributes influence after the fact rather than selecting training data. LESS selects data for a target task. It warms up a LoRA adapter, projects LoRA gradients to 8192 dimensions, and ranks candidates by cosine similarity, scaled by Adam's per-parameter second moments, to a few target examples. GIST shows that this per-parameter scaling ignores the coupling between LoRA's two factor matrices, and replaces it with an SVD-derived task subspace. That subspace is strikingly small: a rank of 9 explains 95% of TyDiQA gradient variance. Both methods fix the adapter rank at 8 or 16 during warmup, and both require the warmup. GIST lists "rank invariance unchecked" and the warmup dependency as open problems.
The warmup has a mechanical cause that our design removes. Under standard LoRA initialization one factor is zero, so the gradient with respect to the other factor is exactly zero at step 0. The remaining gradient is only a random projection of the true weight gradient. LoRA-parameter gradients are degenerate before training, so some warmup is unavoidable if one insists on scoring in LoRA-parameter space. We score in weight-update space instead, where the gradient is well defined from the start.
Two adapter papers motivate the rank question. LoRA-DA derives a data-aware adapter initialization from Fisher and gradient statistics and finds its gains largest at ranks 1 and 2. That suggests low-rank adapters are most sensitive to which directions the data emphasizes, but LoRA-DA treats the training set as fixed. NormAL LoRA shows that different layers need different ranks, so "capacity" is a per-layer quantity, and our score is defined per layer for that reason.
The broader curation literature frames the stakes rather than supplying the method. LIMA gets competitive alignment from 1,000 examples. AlpaGasus beats full Alpaca with 9k LLM-graded examples, but its grader removed 88% of the coding data. That is a warning that scores computed without reference to the target model or task can quietly drop whole categories.
Core Claim
Fix a layer $l$ with frozen weight $W_l$. Let $G_l$ be the gradient of the target-validation loss with respect to $W_l$, computed on the base model. Let $U_l^{(r)}, V_l^{(r)}$ be its top-$r$ left and right singular vectors. For a candidate example $i$, write its per-layer weight gradient as $g_{il} = \sum_t \delta_t x_t^\top$, where $x_t$ is the layer input at token $t$ and $\delta_t$ is the backpropagated output gradient. We compress it into a small $r \times r$ core:
$$C_{il}^{(r)} = \sum_t \big(U_l^{(r)\top}\delta_t\big)\big(V_l^{(r)\top}x_t\big)^\top .$$
This core is computed from per-token vectors without ever forming $g_{il}$. The rank-$r$ score of example $i$ is the cosine similarity between its stacked cores across layers and the stacked target cores $U_l^{(r)\top} G_l V_l^{(r)}$.
The score is meant to keep only the part of an example's update that a rank-$r$ adapter can represent in the directions the target task cares about. The principal-subspace view supports this. A rank-$r$ update captures at most the top-$r$ singular components of the accumulated gradient. An example whose gradient mass sits in components $r{+}1$ and beyond is therefore mostly wasted, or acts as noise, for that adapter. Because the singular vectors are nested, the cores for every $r \le r_{\max}$ are leading sub-blocks of the $r_{\max}$ cores. One pass over the pool therefore gives rankings for all ranks.
The claim has two parts. The first is that selected subsets, and the best subset fraction, depend measurably on adapter rank. We predict a small, concentrated subset at low rank and a larger, more diverse one at high rank. The second is that rank-matched, warmup-free scoring recovers most of the benefit of rerunning a warmup-based selector at each rank, at lower cost.
Research Program
The first component is a measurement study that needs no new method. We run GIST separately at warmup ranks $\{1, 2, 4, 8, 16, 64\}$ on the shared ~270k instruction pool (FLAN V2, CoT, Dolly, Open Assistant 1). We record how much the top-5% sets overlap across ranks. We then fill a full transfer matrix: select at rank $r_s$, train a fresh adapter at rank $r_t$, and evaluate on MMLU, TyDiQA and BBH. If the diagonal of this matrix is not reliably better than the off-diagonal cells, rank dependence is false. The rest of the project then reduces to the warmup-free question, and we will report it that way.
The second component is the rank-matched selector described above. We store cores at $r_{\max}=16$ on the query and value projections. The rank-64 condition requires a second, on-the-fly pass, whose cost we will report. Storage is a real cost. A rough estimate is several gigabytes for the pool, more than GIST's 217 MB but far below LESS's 75 GB, and we will report it exactly.
The third component traces the quality-quantity curve as a function of rank. For each rank we train on subset fractions of 1, 2, 5, 10, 25 and 100%, and locate the fraction where accuracy peaks. We then test whether that peak moves upward with rank, as the capacity argument predicts.
The fourth component is a small joint experiment. We initialize the adapter with LoRA-DA statistics computed from the selected subset. This tests whether choosing the data and choosing the starting directions are redundant, since both target the same top singular directions, or whether their benefits add.
Experiments use Llama-2-7B, Llama3.2-3B and Qwen2.5-1.5B, the models used by LESS and GIST. That keeps every comparison on published ground.
Baselines
The naive reference points are full-pool LoRA training and random subsets. We will tune the random subset's fraction separately at each rank, so that any gain we report cannot be explained by subset size alone. For calibration, LESS reports BBH of 38.9 for a 5% random subset versus 41.5 for its 5% selection on Llama-2-7B.
LESS itself is the established gradient selector, run with its published warmup and 8192-dimensional projection.
The strongest competitor is GIST. It reports an average improvement of +4.5 points over the base Llama3.2-3B, against +3.3 for LESS. We found no per-benchmark GIST result on Lacuna, so we will rerun it. We run GIST in two forms. In the first, the data is selected at rank 8 and reused at every target rank, which is current practice. In the second, the warmup and selection are rerun at each target rank, which is the strong form. Our method must beat or tie the strong form. All methods share the same pool, the same 5% budget (plus the fraction sweep), the same final-training recipe per rank, and the same number of hyperparameter trials. We charge each method for its selection compute and storage, including the warmup GPU hours; LESS reports about 48 A100 hours for this pool.
Beating GIST means one of two outcomes over three seeds. Either we exceed the rank-8-transferred form of GIST at ranks 1–2 and 64 by more than the seed spread, while tying the strong form at lower total cost. Or we beat the strong form outright.
Three ablations isolate the key ingredient. The first is a rank-agnostic version that scores with full-gradient cosine, with no top-$r$ truncation. The second is our score computed after a GIST-style warmup, to separate the "no warmup" effect from the "rank matched" effect. The third drops the per-layer structure by flattening all layers into one subspace, the way GIST does.
Why not just…?
Why not just rerun GIST at each target rank? This is the real threat, and it doubles as our strongest baseline. A one-epoch warmup per rank is affordable, so if per-rank GIST wins, the method contribution shrinks to a cost saving. The measurement study would still stand, because nobody has shown whether per-rank rerunning is even necessary. The transfer matrix and the head-to-head against strong-form GIST settle this question directly.
Why not just tune the size of a random subset per rank? If rank dependence is purely about how much data to use, not which data, then a tuned random fraction captures it. Our size-tuned random baseline tests exactly this. We also measure the overlap between top-ranked sets at different ranks: low overlap combined with diagonal-dominant transfer would show that the composition of the subset matters, not just its size.
Why not just raise the rank instead of selecting data? More capacity might absorb mixed data harmlessly. But GIST finds that 5% beats 100% even at rank 8–16, which suggests the full pool causes negative transfer rather than overflowing the adapter's capacity. Our fraction sweep at rank 64 tests whether that advantage persists at high rank.
Why not use the base model's gradients in LoRA space, or text-similarity retrieval? LESS reports that selection degrades without warmup, which may be partly a problem of instruction format rather than the degenerate LoRA gradient. If our warmup-free score also degrades, the cause is format. We would then add a format-only warmup on a few hundred examples and report it as a necessary cost. LESS's comparison with BM25 retrieval, which pulled dictionary entries for Bengali TyDiQA, argues against text-only retrieval, so we include BM25 only as a cheap reference.
Decisive Checks
The project rests on three checks. The first is whether the GIST transfer matrix favors its diagonal on BBH and TyDiQA at ranks 1, 2 and 64. If it does not, we drop the rank-dependence claim. The second is whether the peak subset fraction increases with rank. The third is whether warmup-free rank-matched scoring ties strong-form GIST while using less total selection compute. A secondary check is whether LoRA-DA initialization on the selected data adds to selection or overlaps with it.
References
- DataInf: Efficiently Estimating Data Influence in LoRA-tuned LLMs and Diffusion Models
- LESS: Selecting Influential Data for Targeted Instruction Tuning
- GIST: Targeted Data Selection for Instruction Tuning via Coupled Optimization Geometry
- LoRA-DA: Data-Aware Initialization for Low-Rank Adaptation via Asymptotic Analysis
- NormAL LoRA: What is the perfect size?
- LIMA: Less Is More for Alignment
- AlpaGasus: Training a Better Alpaca with Fewer Data