Skip to the summary
When Calibration Data Become Training Data
Informatics 13(11), 201 19 November 2026 Open access

When Calibration Data Become Training Data

Specialization and Self-Generated Text in Learned Low-Rank Compression of Large Language Models

Every dot is a compressed model

132 language models compressed by 30% or 50%, each calibrated on one of six sources: three model families with three seeds each, and Llama-3.1-8B. Follow the three steps, or let them play.

Loading the records…

Perplexity on WikiText-2 (vertical) and C4 (horizontal) of the compressed models of the extended evaluation, as a multiple of the dense model's (steps 1–2) or of the best calibration source in the same setting (step 3). Log scales. Hover for a model's numbers.

The paper in one minute

Calibration data used to be a statistic. Now they are training data.

Large language models can be shrunk by replacing each weight matrix with the product of two thin ones. Which directions to drop is decided by a small calibration set: a few hundred windows of text passed through the model. When the compressed model is then trained to imitate the original on those windows, as in learned subspace projections (LSP), the calibration set stops being a sample from which to estimate statistics and becomes the data the model is fitted on. It is still chosen by convention.

This study compresses OPT-1.3B, Llama-3.2-1B and Qwen3-1.7B by 30% and 50% with LSP, calibrated on six sources at a matched budget, over three seeds, and repeats the comparison on Llama-3.1-8B, with a second learned compressor and on an instruction-tuned model. It does not propose a new compression method; it measures what the choice of calibration data does.

Abstract

Low-rank compression shrinks large language models by factorizing their weights, guided by a small calibration set. When the factorization is learned by distillation, as in learned subspace projections (LSP), the calibration set becomes training data, yet is still chosen by convention. We compressed OPT-1.3B, Llama-3.2-1B, and Qwen3-1.7B by 30% and 50% with LSP, calibrated on six sources at a matched budget (WikiText-2, C4, SlimPajama, Alpaca, and two kinds of self-generated text) over three seeds, and repeated the comparison on Llama-3.1-8B and with a second compressor. Training removed most of the up to 600-fold perplexity differences between untrained models but turned them into specialization: each source best preserved its own text, and WikiText-2, the customary choice, gave the least general models. Zero-shot accuracy slightly favored instruction data, through content rather than template. Self-generated documents gave the most uniformly faithful Llama models without external data, whereas exact samples of the model, whose expected training objective is the sequence-level divergence, failed on Qwen3-1.7B. The initialization’s domain survived training, and compressed Llama models collapsed without their calibration beginning-of-sequence token. With every source, compression lost most instruction following and multi-step reasoning. These results indicate that calibration sources should be reported with every perplexity.

Background

Why a compressor specializes

Pretrained weight matrices are not low-rank, but the activations they act on are. A low-rank compressor therefore needs to know which directions of each layer's input the model actually uses, and it learns this from the calibration windows. A training-free method such as SVD-LLM sees those windows only through their second-order statistics, and reports that their size, seed and source change its results by at most 3%.

A learned method fits them. In LSP the compressed model is optimized to agree with the dense model on the calibration windows and nowhere else, so which data to fit becomes a modeling decision. Feature selection has long known the consequence: a selection fitted to one distribution preserves what that distribution exercises. The toy below shows the mechanism in three dimensions.

A toy: compressing three-dimensional activations to a plane

Two synthetic domains produce flat clouds of activations in different planes. Compressing to rank two removes the one direction along which the calibration data vary least.

For an identity layer, the best orthogonal projector and the whitened truncation both remove the direction of least calibration variance. Synthetic data: an illustration of the mechanism, not a result of the paper.

Real models are not three-dimensional, and LSP does more than keep the directions of largest variance: it trains the projectors against the dense model's output distribution. The question is whether the same specialization survives that training, and at what cost. In practice the choice is made by convention: WikiText-2 for perplexity tables, and Alpaca or C4 for zero-shot accuracy. The pretraining corpus of an open-weight model is rarely released, and domain data may be proprietary or licensed for research only.

Method

Learned subspace projections

Consider a linear layer \(\mathbf{y} = \mathbf{W}\mathbf{x} + \mathbf{b}\). To remove \(k\) directions from its input, LSP applies the orthogonal projector \(\mathbf{P} = \mathbf{I} - \mathbf{U}\mathbf{U}^\top\), where \(\mathbf{U} = \operatorname{qf}(\mathbf{V})\) is the orthonormal factor of a trainable matrix \(\mathbf{V}\) with \(k\) columns. The projected layer has rank at most \(d_\text{in} - k\) and merges exactly into two thin factors:

\[ \mathbf{W}\mathbf{P} = (\mathbf{W}\mathbf{U}_\perp)\,\mathbf{U}_\perp^\top = \mathbf{B}\mathbf{A}, \qquad \mathbf{B}\in\mathbb{R}^{d_\text{out}\times r},\; \mathbf{A}\in\mathbb{R}^{r\times d_\text{in}},\; r = d_\text{in}-k. \]

Layers that read the same activation (the query, key and value projections; the gate and up projections) share one projector. After training the projectors merge into the factors, and the deployed model contains no operation specific to LSP: it is an ordinary dense model with smaller matrices.

How much a factorization stores

Matrices drawn to scale for two layers of Llama-3.2-1B.

The rank depends only on the shapes, so every calibration source compresses every unit to the same rank: the comparison isolates where the data act. A unit stays dense when its factors would store more weights than its matrices.

The projectors start from the whitened truncation of SVD-LLM, computed from the Gram matrix of each layer's input on the calibration windows. They are then trained jointly, with every pretrained weight frozen, to minimize the token-averaged divergence of the compressed model \(q\) from the dense model \(p\) on calibration windows \(\mathbf{x} = (x_1, \dots, x_T)\) drawn from the calibration distribution \(\mathcal{D}\):

\[ \mathcal{L} \;=\; \mathbb{E}_{\mathbf{x}\sim\mathcal{D}}\; \frac{1}{T}\sum_{t=1}^{T} \mathrm{KL}\big(p(\cdot\mid x_{\le t}) \,\big\|\, q(\cdot\mid x_{\le t})\big). \]

The calibration set therefore enters at three points:

Where the calibration data enter LSP Calibration windows feed three stages: Gram matrices for the whitened initialization, training windows for the KL objective, and validation windows for early stopping. The trained projectors merge into low-rank factors. Calibration data 512 windows × 2,048 tokens + 32 validation windows 1 Gram matrices of each layer's input → whitened initialization of the projectors 2 Training windows → minimize KL to the dense model, 8 epochs 3 Validation windows → keep the epoch with the lowest KL Trained projectors Merged factors B·A

A training-free method uses only the first. Learned methods use all three, which is why the data matter more to them. Rank allocation follows the uniform rule of LSP and does not depend on the data, except in one control.

Implementation. No implementation of LSP was released; the paper reimplements it in PyTorch. The reimplementation reproduces the published trained results within 6% at the ratios studied, but not the untrained initialization at high ratios. The difference is traced to which side of the square attention-output projections is projected (Appendix B of the paper); it does not change the ranking of calibration sources.

Experimental design

Six calibration sources, one budget

Every source supplies 512 training windows of 2,048 tokens, about one million tokens, plus 32 validation windows. Windows are built identically for every corpus: documents in random order, separated by the end-of-sequence (EOS) token and cut into windows that start with the beginning-of-sequence (BOS) token, for the models that have one.

The sources differ in content and in how their text fills a window. The figure shows the first training windows of the seed-0 runs.

What a calibration window looks like

Each bar is one real 2,048-token training window. Gaps are document boundaries; triangles are BOS tokens.

Alpaca packs about twenty short examples per window, WikiText-2 one long article. Llama-3.2-1B's own samples contain BOS tokens the model wrote itself (7.8 per window on average). The matched-segment control gives every source 16 segments of 127 tokens after a single BOS, so that only the content differs.

Each compressed model is evaluated by perplexity on WikiText-2, C4 and the seven SlimPajama domains; by its divergence from the dense model on held-out text of every source and of six domains chosen independently of the sources; by zero-shot accuracy on seven tasks; and, for one seed, by open-ended generation, long contexts, passkey retrieval, generative tasks and instruction following. The three-seed repetition records every evaluation item, so differences come with paired-bootstrap intervals.

Theory

Text written by the model itself

The dense model can supply its own calibration data. For the distillation objective of LSP this is more than a substitute for real text. Write \(P_T\) and \(Q_T\) for the distributions that the dense and the compressed model assign to whole sequences. By the chain rule of the Kullback–Leibler divergence,

\[ \mathrm{KL}(P_T \,\|\, Q_T) \;=\; \sum_{t=1}^{T} \mathbb{E}_{x_{\le t}\sim P}\; \mathrm{KL}\big(p(\cdot\mid x_{\le t}) \,\big\|\, q(\cdot\mid x_{\le t})\big). \]
Proposition 1

If the calibration windows are drawn from the dense model by ancestral sampling at temperature one, the expected training objective equals the sequence-level divergence per token, \(\mathbb{E}_{\mathbf{x}\sim P}\,\mathcal{L} = \mathrm{KL}(P_T\,\|\,Q_T)/T\). For windows drawn from any other distribution, the objective weighs the same per-context divergences by that distribution's contexts instead.

The sequence-level divergence is the natural target when the compressed model will replace the dense one for generation. The paper uses the identity to show which divergence each source optimizes, not as a theoretical contribution. You can check it on a model small enough to enumerate:

Which contexts the objective looks at

A toy language model over three tokens, sequences of length three. Hover a context for its numbers.

Only exact samples at temperature one weigh each context as often as the dense model visits it; colder samples concentrate on likely continuations, hotter ones on noisy ones. The expected objective then equals the sequence-level divergence divided by the length. Toy numbers, computed in your browser.

Two caveats come with the principle. The proposition is about the population objective: in practice the windows form a pool reused over several epochs, and the projectors are fitted to the pool. And long samples of small models drift. The entropy of Llama-3.2-1B's predictions on its own samples grows from 2.6 nats over the first 128 positions to 5.7 over the last 128; Qwen3-1.7B drifts from 3.2 to 4.7 as its text degenerates into high-entropy strings. OPT-1.3B does not drift. Self-generated documents, restarted from a fresh start token at least every 512 tokens, avoid the drift.

Entropy along the calibration windows

The dense model's next-token entropy, averaged over 32 validation windows of each source in buckets of 128 positions.

For the drifting models, the exact objective of Proposition 1 spends much of its weight on contexts far from natural text. Samples were chosen to be representative and inoffensive; the full pools are regenerated from the public weights by the released scripts.

Temperature one is also the right temperature in practice: sampling the exact sequences of Llama-3.2-1B at 0.7 or 1.3 instead more than doubles the WikiText-2 and C4 perplexities of the model compressed by 50% (WikiText-2: 123 and 120 against 53.2).

Results

What the calibration data change

The main grid compresses three models at two ratios with six sources, with one run each; it is repeated with three seeds and an extended evaluation. All figures below are drawn from the run records; switch models and ratios to see each result in every setting the paper reports.

4.1–4.2Training turns a lottery into specialization

Before training, the whitened initialization depends heavily on the calibration source: at −30% its perplexity varies across sources by a factor of 2.7 to 7.3 on OPT-1.3B, 18 to 108 on Llama-3.2-1B and 4 to 32 on Qwen3-1.7B. The oblique truncation of SVD-LLM depends less on the source, but in the same way, and far more than the 3% SVD-LLM reports for an older model at a lower ratio.

Perplexity before and after training

Hollow: the untrained whitened initialization. Filled: after training. Optional bar: the oblique truncation of SVD-LLM with the same ranks.

Training lowers perplexity by one to two orders of magnitude and shrinks the spread across sources, but the ranking becomes domain-specific: every model reaches its lowest WikiText-2 perplexity with WikiText-2 calibration and its lowest C4 perplexity with C4 calibration, at both ratios and in each of three seeds.

TakeawayA WikiText-2 perplexity measured after WikiText-2 calibration, the most common number in the low-rank compression literature, measures fit to the calibration domain as much as compression quality.

4.3Each source preserves its own text

The divergence from the dense model on held-out text of every source makes the specialization plain. On the held-out set of each real corpus, the divergence is lowest when calibrating on that corpus, for every model and ratio, with one near-tie. Over the three seeds, with 128 held-out windows per set, the matching source has the lowest divergence in 86 of 90 comparisons; the four exceptions are ties between SlimPajama and self-generated documents on SlimPajama text, on Llama-3.2-1B. Away from the diagonal, narrow sources are costly.

The specialization matrix

Divergence KL(p‖q) of each compressed model from the dense model, in nats per token, on held-out text of each source. Rows: calibration source. A stronger shade is farther from the best source for that column.

The “Self” column holds exact samples of the dense model, so it estimates the sequence-level divergence of Proposition 1. Switch to three seeds to add six domains chosen independently of every source: human-written instructions, grade-school math, biomedical abstracts, Python, eight other languages and 19th-century books.

Which source is the most uniformly faithful depends on what it is measured on, which is why the panel lets you weigh the sets. Over the five held-out sets, self-generated documents have the lowest geometric-mean relative divergence in all six settings (tied with C4 on OPT-1.3B at −50%), and they stay the most common winner when the sets are weighted at random. Without the held-out samples of the dense model, which favor self-generated calibration, they remain the most uniform only on Llama-3.2-1B; C4 is more uniform on OPT-1.3B and SlimPajama on Qwen3-1.7B. On the six independent domains they are the best source for every domain on Llama-3.2-1B and within 16% of the best on Qwen3-1.7B, while SlimPajama is clearly the most uniform on OPT-1.3B. On Llama-3.1-8B they are the most uniform by all three summaries.

A matched-budget mixture of SlimPajama and self-generated documents, 256 windows each, combines the two. It is the most uniform of the seven calibrations on the four real held-out sets in five of the six settings and tied in the sixth, and it is never more than 11% less uniform than the best calibration, in any setting or summary.

Half SlimPajama, half self-generated documents

Uniform fidelity of the two components and of their mixture, against the other four sources (open circles). 1× is the best of the seven calibrations on every set.

Seed 0 of the extended evaluation. The mixture's perplexities are within 6% of the better component on every corpus, at an accuracy within one point of both.

4.3Where specialization costs most

Code and multilingual Wikipedia suffer most from narrow English calibration. At −30%, WikiText-2 calibration multiplies the code perplexity of Llama-3.2-1B by 144 relative to the dense model, and Alpaca multiplies its multilingual Wikipedia perplexity by 97, while SlimPajama and self-generated documents keep every domain within a factor of 7. Calibrating on a single domain takes the specialization further, and pays for it everywhere else.

Perplexity on the seven SlimPajama domains, relative to the dense model

One logarithmic color scale shared by every panel: the stronger the blue, the farther from the dense model.

Switch the rows to single domains: calibrating Llama-3.2-1B (−50%) on the GitHub subset alone brings its code perplexity from 3.56 to 1.60 times that of the dense model, but leaves web, book and Wikipedia text at 9 to 49 times. Related domains benefit together: code calibration also gives the lowest StackExchange perplexity.

4.2, 4.9Zero-shot accuracy favors instruction data, a little

Accuracy varies much less across sources than perplexity: by 1.7 to 3.5 points on OPT-1.3B and Llama-3.2-1B and 5.0 to 5.4 on Qwen3-1.7B, leaving aside Qwen3's failed exact self-samples at −30%. Without BoolQ, Alpaca is the most accurate source on every model and ratio, though its perplexities are among the worst, and WikiText-2 gives the lowest accuracy of the real sources. BoolQ needs care: most compressed models score below its majority-class rate of 62.2%, the accuracy of always answering yes, so differences on it reflect shifts in answer bias more than reading comprehension.

Mean zero-shot accuracy by calibration source

Mean of three seeds (bar: ± one standard deviation), extended evaluation. Choose the score: six tasks without BoolQ, all seven, or BoolQ alone.

Alpaca's lead without BoolQ is significant in five of the six settings of the three small models. It comes from what the examples say, not from the template: the same examples without the template, or their responses alone, are as accurate.

4.4Where the data act: initialization and windows

The calibration data act at two stages, the Gram statistics of the initialization and the training windows, and crossing them separates the two. Both matter, and the domain of the initialization survives training. The removed subspaces show why: training moves them very little. The overlap between the subspace a unit removes before and after training averages 0.996 to 0.997 for every model and ratio, while subspaces initialized from different sources overlap only 0.85 to 0.90 and do not come closer during training, even over a schedule three times as long.

Statistics from one source, windows from another

Swap the source of the initialization statistics, or look at how far training rotates the removed subspaces.

Training WikiText-2 windows from SlimPajama statistics lowers the C4 perplexity from 102 to 76.2 and the SlimPajama perplexity from 262 to 71.3, while WikiText-2 perplexity rises only from 22.8 to 25.5. Broad statistics with domain windows keep most of the domain fit at a much smaller cost elsewhere.

4.5More distinct windows keep helping

At a fixed budget of 512 steps, more distinct calibration windows improve both C4 and self-generated documents, up to 4,096 windows each seen once. Calibration budgets that suffice for training-free methods do not saturate learned ones. The learning curves show what repetition does: with 64 windows the projectors fit the windows they see far more closely than other text of the same source, a gap that closes at 4,096.

Distinct calibration windows at a fixed number of steps

Llama-3.2-1B compressed by 50%, C4 against self-generated documents.

More distinct windows also means fewer passes over each, so this design cannot separate diversity from less repetition. The validation divergence levels off without rising: repetition does not overfit in the usual sense, but limits how well the fit transfers. With only 64 windows, self-generated documents already give a lower SlimPajama perplexity than C4 with 4,096.

4.6When the model's own samples fail

Exact self-samples are the one source that fails, and on one model. On Qwen3-1.7B the compressed model calibrated on its own long samples is a poor model of real text in every seed, with a severity that varies from run to run, although every run matches the dense model on held-out samples about as well as self-generated documents do. The objective of Proposition 1 is met, but it leaves the behavior on real text loosely constrained.

Exact samples against independent documents

Every seed's C4 perplexity, and the variants of self-generated text that locate the failure.

Neither the length of the samples nor their composition explains the failure: documents work at every length limit from 128 to 2,048 tokens, and they contain as much Chinese, Japanese and code as the exact samples. What differs is the text that follows a document boundary inside a sample, in the order of the C4 perplexities. The same continuation does not harm Llama-3.2-1B, so the controls locate the failure without explaining why it affects one model.

5.5The first token

For the Llama models the format of the calibration windows matters as much as their content. Every compressed Llama model collapses on inputs that do not start with the BOS token, whatever its calibration source; the dense models are insensitive to the difference. A compressed model served without its BOS token, as in batched or streaming inference that splits a document, would be unusable, although every standard benchmark, which adds BOS, would rate it normally.

Remove the first token

WikiText-2 perplexity of Llama-3.2-1B compressed by 50%, on windows that start with BOS and on windows that do not.

Calibrating on windows without any BOS removes the collapse (68.1 against 68.5) at a small cost on BOS-prefixed inputs. Attention concentrates on the first token, which acts as an attention sink; a plausible reading is that the compressed model keeps the pathway it was calibrated on and loses the others. OPT-1.3B, whose BOS doubles as the document separator, is unaffected, and Qwen3 has no BOS token.

4.4–4.10What survives the controls

A comparison of sources could be confounded by how the data are presented and optimized rather than by what they say. The paper tests each alternative explanation in turn. The specialization survives all of them; each line below is recomputed from the records.

Controls are single runs on the settings named in the paper; three seeds resolve the perplexity comparisons and most, but not all, accuracy comparisons.

4.10A larger model behaves the same way

Llama-3.1-8B compressed with all six sources, three seeds at −30% and one at −50%, shows the same pattern with wider gaps. Before training the sources differ up to 594-fold at −50%; after training WikiText-2 calibration gives the lowest WikiText-2 perplexity and C4 the lowest C4 perplexity, narrow sources pay elsewhere (WikiText-2 calibration leaves code at 220 times the dense perplexity at −30%), and self-generated documents are again the most uniformly faithful source.

Llama-3.1-8B by calibration source

Bold: the best source for the measure.

Alpaca leads in accuracy, by 0.6 points over C4 at −30% (within the noise) and 2.1 points at −50% (significant). The exact self-samples, which failed on Qwen3-1.7B, work here as on Llama-3.2-1B but give the least accurate models.

4.11, 5.4Fidelity is not utility

The comparisons rank calibration sources for a given compressor, ratio and budget; they do not show that any compressed model can replace its dense model. Beyond perplexity and multiple choice, compression costs more, and the calibration source matters as much. Abilities that the calibration windows do not exercise can disappear: after Alpaca calibration, the compressed Llama-3.2-1B no longer retrieves a passkey from its context. Given more tokens, it continues the prompt with generic text, “the key to the door”, instead of copying the key.

What compression keeps, and what it saves

Each row places the dense model (black diamond) and the six compressed models of one capability.

Generative tasks that need several reasoning steps or recalled facts do not survive compression whatever the source: Qwen3-1.7B solves 70.1% of GSM8K problems, and at most 4.7% after compression by 30%. The merged models save 24 to 46% of parameter memory but, as two consecutive matrix products in eager PyTorch, decode 8 to 15% more slowly at batch size one.

Discussion

Choosing calibration data

Two consequences follow for reporting. A perplexity measured on the corpus the model was calibrated on overstates its quality elsewhere, so the calibration source should accompany every reported perplexity, and comparisons between methods should hold it fixed. And no single number summarizes a compressed model: perplexity rewards the matching domain, zero-shot accuracy rewards instruction data, and the two disagree on which source is best. Measuring the divergence from the dense model on several held-out sources exposes the trade-off directly and needs no labels.

Which calibration data should I use?

The paper's recommendations as three questions. Each answer links to its evidence.

Limitations. The main experiments compress models of 1.2 to 1.7 billion parameters, with a check on an 8-billion-parameter model; larger models were out of reach of one GPU. All corpora are English and the zero-shot benchmarks are multiple-choice; behavior is evaluated with one seed and one ratio, and instruction following on one 1.2-billion-parameter model. One learned method is studied in depth and checked against a second on two models at one ratio. The controls are single runs. The role of the first token is supported by the density of BOS tokens and by an intervention on the calibration format, not by an analysis of attention circuits.

Open science

Reproduce every number

The code repository holds the reimplementation of LSP, the definition of every job behind the paper, the records of all runs, and the scripts that turn the records into every table and figure of the paper and the statistics its text quotes. Rebuilding them needs only a CPU.

459
runs, each with its configuration, metrics, training log and environment
≈325
GPU-hours on A100, H100 and H200 GPUs
1 min
to rebuild every table and figure from the records, on a CPU
0
numbers typed by hand: tests check the results byte for byte against the records
# the environment pinned by uv.lock, then the CPU tests
git clone https://github.com/calibrank/calibrank.git
cd calibrank
make setup
# records/ -> results/: run tables, the paper's tables and figures, quoted numbers
make results
make check

Every chart on this page is drawn from the same records, and the build checks 122 of its numbers against the paper's printed tables. Browse the runs themselves below; each name links to its record.

All runs

The main grid (32 held-out windows per source) and the extended evaluation (three seeds, 128 windows, six independent domains, per-item records).

Citation

Cite this work

Pham, V.T. When Calibration Data Become Training Data: Specialization and Self-Generated Text in Learned Low-Rank Compression of Large Language Models. Informatics 2026, 13, 201. https://doi.org/10.3390/informatics13110201

@article{pham2026calibration,
  author         = {Pham, Van Tien},
  title          = {When Calibration Data Become Training Data: Specialization and
                    Self-Generated Text in Learned Low-Rank Compression of Large
                    Language Models},
  journal        = {Informatics},
  volume         = {13},
  year           = {2026},
  number         = {11},
  article-number = {201},
  url            = {https://www.mdpi.com/2227-9709/13/11/201},
  issn           = {2227-9709},
  doi            = {10.3390/informatics13110201}
}

The compression method studied is learned subspace projections: M. Bini, A. Christensen, S. Alaniz, J. Goldfeder, O. Winther, Y. LeCun, R. Shwartz-Ziv and Z. Akata, Learning Functional Subspaces for Neural Network Compression, arXiv:2609.40127, 2026, reimplemented in the code repository.