Abstract

How do you make a large network cheap enough to answer millions of requests, and what does each shortcut cost? Distillation trains a small student model to imitate a large teacher; in Hinton, Vinyals and Dean’s 2015 speech experiment (their Table 1) one distilled model recovered most of a ten-model ensemble’s gain. Quantisation stores weights in fewer bits: GPTQ brought OPT-175B to 4 bits with WikiText2 perplexity moving from 8.34 to 8.37 (its Table 5), and BitNet b1.58 trains ternary weights from scratch. Serving techniques change how the answer is computed: FlashAttention reorganises exact attention around GPU memory, PagedAttention cuts cache memory lost to reservation and fragmentation, and speculative decoding verifies a small model’s drafts with the large one, preserving the target’s distribution under exact verification and matching settings. Distillation and aggressive quantisation change the model, and their losses can hide in capabilities that perplexity and averaged benchmarks miss. Distillation run against someone else’s API without permission is a form of model extraction. In 2026 Anthropic, OpenAI, Google and three US agencies described (see “The 2026 disclosures”) industrial-scale campaigns against frontier models, several aimed at hidden reasoning, and the defences being deployed carry their own costs.

Why a token costs what it costs

A language model of the kind described in the reader on large language models and the transformer produces text one token at a time. For a dense model with full attention, each new token requires a pass through the network that reads every weight matrix, plus attention over the stored keys and values of earlier tokens. Two quantities therefore weigh heavily on the cost of an answer: the bytes the weights occupy, and the bytes of per-token state (the key-value cache) that must be kept and read.

A worked example. Take a dense model with 70 billion parameters. The table counts weight storage only, ignoring activations, the cache and runtime overhead.

Storage per weightBytes for the weightsWeight storage alone fits on
16-bit floating point70 × 10⁹ × 2 = 140 GBtwo 80 GB accelerators
8-bit integer70 GBone 80 GB accelerator, tightly
4-bit integer, plus one 16-bit scale per 128 weights70 × 10⁹ × (4 + 16/128) / 8 ≈ 36 GBone 48 GB card
1.58 bits (ternary), ideal codingabout 14 GBa large consumer GPU

The last row is an ideal coding budget before metadata, other tensors and implementation overhead. BitNet’s authors measured their ternary models with a 2-bit kernel, which at 2 bits per weight would give 17.5 GB, and they keep embeddings in full precision.1

At small batch sizes, generating a token means streaming the weights from high-bandwidth memory into the compute units. The FlashAttention paper gives one NVIDIA A100’s high-bandwidth memory as 1.5 to 2.0 TB/s.2 As an illustrative floor, assume an effective 2 TB/s for reading the weights: 140 GB then takes 70 milliseconds per token and 36 GB about 18 milliseconds. Real systems differ in both directions. Splitting the model across devices with tensor parallelism aggregates their bandwidth, while communication between devices, cache reads and other overhead add time. The floor still shows why so much of the field is about moving fewer bytes. GPTQ’s authors say of their own method that it “obtains speedups from reduced memory movement, and does not lead to computational reductions”.3

Serving many users at once changes the balance. Batching lets one read of the weights serve many requests, which amortises the weight traffic, but each request brings its own key-value cache, and the cache becomes a scarce resource. The methods below attack different terms in this budget:

  • Distillation reduces the number of parameters by training a smaller network to behave like a larger one.
  • Pruning removes parameters from a trained network.
  • Quantisation keeps the parameters but stores each in fewer bits.
  • Serving techniques leave the model’s weights alone and change how attention is computed, how the cache is stored and how many network passes each token needs.

The training side of the budget is covered in the reader on scaling laws and compute. A related trick, activating only part of the network per token, is covered in the reader on mixture-of-experts.

Distillation: learning from a teacher’s uncertainty

Soft targets and temperature

A classifier ends in a softmax: it turns a vector of scores (logits) z into probabilities p_i = exp(z_i / T) / Σ_j exp(z_j / T), where T is a temperature normally set to 1. Training on labelled data uses only the correct class. Geoffrey Hinton, Oriol Vinyals and Jeff Dean at Google argued in March 2015 that a trained model’s wrong answers carry information the label does not.4 Their example: for an MNIST digit, “one version of a 2 may be given a probability of 10−6 of being a 3 and 10−9 of being a 7 whereas for another version it may be the other way around”. That pattern says which twos look like threes, but at T = 1 those probabilities are so close to zero that they barely affect the student’s loss.4

Raising the temperature softens the distribution so the small probabilities matter. Take four logits, 9, 4, 1 and −1:

Temperaturep(class 1)p(class 2)p(class 3)p(class 4)
T = 10.9930.00670.0003under 0.0001
T = 20.9030.0740.0170.006
T = 40.6650.1910.0900.055
T = 100.4130.2500.1850.152

At T = 1 the student learns little beyond “class 1”. At T = 4 it learns that class 2 is a much more plausible confusion than class 4. Hinton and colleagues train the student at the same high temperature as the teacher, on these “soft targets”, usually combined with ordinary cross-entropy on the true labels; after training the student runs at T = 1.4 Using an approximation that holds when the temperature is large relative to the logits, they show the soft-target gradients scale as 1/T², and multiply that term by T² to compensate. In the high-temperature limit, with both logit vectors zero-meaned separately for each example, distillation becomes minimising the squared difference between student and teacher logits, which is what Rich Caruana and collaborators had done in earlier model-compression work.4

What the 2015 paper showed

The experiments were small by today’s standards and the effects large. On MNIST, a large regularised network made 67 test errors and a smaller two-layer network trained normally made 146. The same small network trained to match the large one’s soft targets at T = 20 made 74, even though the transfer set lacked the translated images the large network had been trained on.4 When the student was cut to 30 units per layer, temperatures between 2.5 and 4 worked best.4

On a production speech recogniser, a baseline acoustic model reached 58.9% frame accuracy and 10.9% word error rate; an ensemble of ten such models reached 61.1% and 10.7%; a single model distilled from the ensemble reached 60.8% and 10.7%.4 In a second experiment the speech model was trained on 3% of the data. With hard labels it overfitted and peaked at 44.5% test frame accuracy; with soft targets from a model trained on the full set, it reached 57.0% without early stopping.4

That data-efficiency result matters later in this reader. In Hinton’s experiment, a teacher’s outputs on a small transfer set carried enough of what the teacher had learned for a student to approach full-data performance on that task (Table 5).4 Whoever can collect a capable model’s outputs has, in this sense, part of its training value.

From BERT to language models

DistilBERT (Victor Sanh, Lysandre Debut, Julien Chaumond and Thomas Wolf at Hugging Face, October 2019) applied distillation during pre-training rather than only for a single task.5 The student halved BERT’s layers, kept its hidden size, and was initialised by “taking one layer out of two” from the teacher. Its loss combined the soft-target distillation loss, the usual masked-language-model loss, and a cosine loss aligning the student’s hidden states with the teacher’s. The result had 66 million parameters against BERT-base’s 110 million and took 410 seconds rather than 668 for a CPU pass over one benchmark.5 The headline “97%” is DistilBERT’s macro-score on the GLUE development sets relative to BERT’s (Table 1). On IMDb sentiment it was 0.64 points behind BERT (92.82 against 93.46), and on SQuAD 2.7 F1 points behind (85.8 against 88.5).5 In the ablation, removing both the distillation and cosine terms cost 2.96 points of GLUE macro-score, and initialising the student randomly instead of from the teacher cost 3.69.5 The arXiv comment on the paper records a February 2020 revision to “fix bug in evaluation metrics”, with the argument unchanged.5

Generative models complicate the loss. A classifier’s student matches one distribution per input; a language model’s student must match a distribution over every next token of sequences it will generate itself. Yuxian Gu, Li Dong, Furu Wei and Minlie Huang argued in MiniLLM (June 2023, ICLR 2024) that the standard forward Kullback-Leibler objective pushes a small student to spread probability over everything the teacher might say. They replaced it with reverse KL, which they say helps “prevent the student model from overestimating the low-probability regions of the teacher distribution”, and trained on the student’s own samples.6 Such objectives need the teacher’s probabilities. Many practical LLM distillations instead fine-tune the student on text the teacher generated, which is the form available to anyone whose access returns only text; some commercial APIs have also exposed log-probabilities.7

Distilling reasoning

DeepSeek’s R1 paper (January 2025) gave a clear public demonstration that reasoning behaviour can transfer through generated text.8 The team fine-tuned six open-source models, from Qwen2.5-Math-1.5B to Llama-3.3-70B-Instruct, on about 800,000 samples curated with R1: about 600,000 reasoning samples and about 200,000 others, using supervised fine-tuning only.8 The distilled Qwen-32B scored 72.6% pass@1 on AIME 2024 and 94.3% on MATH-500. The same 32B base trained with DeepSeek’s large-scale reinforcement learning recipe for over 10,000 steps reached 47.0% and 91.6% (Table 6).8 The authors concluded that “distilling more powerful models into smaller ones yields excellent results, whereas smaller models relying on the large-scale RL mentioned in this paper require enormous computational power and may not even achieve the performance of distillation.”8 The comparison is between one supervised recipe and one RL recipe; it does not isolate reasoning traces from final answers or compare total pipeline costs. The reader on reasoning models and chain of thought places this in the history of reasoning training.

What distillation does not transfer

Two results limit the optimism.

Arnav Gudibande and colleagues at Berkeley (May 2023) fine-tuned models from 1.5 to 13 billion parameters on between 0.3 million and 150 million tokens of ChatGPT output.9 Crowd workers rated about 70% of the imitation models’ outputs as equal to or better than ChatGPT’s. Targeted benchmarks told a different story: the imitations closed “little to none of the gap from the base LM to ChatGPT on tasks that are not heavily supported in the imitation data”, and more imitation data began to hurt factual knowledge on Natural Questions.9 The authors concluded that, with the methods they tested, the gap “can only be bridged using an unwieldy amount of imitation data or by using more capable base LMs”.9

DeepSeek’s setting differs on exactly those axes: strong base models and a transfer set concentrated on the capability being transferred. The two studies are consistent with a tendency rather than a rule. In the settings tested, imitation transferred most where the transfer data was concentrated and the student’s base model was strong.

The second result concerns transfer nobody intended. Alex Cloud, Minh Le and colleagues (July 2025) had a teacher with a trait, such as a preference for owls or misalignment, generate data consisting only of number sequences; a student fine-tuned on those numbers acquired the trait, even after filtering out references to it.10 The effect also appeared with code and reasoning traces; in their experiments it did not appear when teacher and student had different base models.10 The reader on fine-tuning and LoRA discusses the accompanying theorem and its narrow assumptions. In these experiments, distillation carried behaviour that filtering of the visible data did not remove.

Pruning and the lottery ticket

Pruning deletes weights. Song Han, Huizi Mao and William Dally’s Deep Compression (October 2015, ICLR 2016) combined three steps: prune small-magnitude connections and retrain, cluster the remaining weights so each is stored as an index into a shared codebook (8 bits for convolutional layers and 5 bits for fully connected layers in their AlexNet and VGG-16 results), then Huffman-code the result.11 Pruning reduced the number of connections by 9 to 13 times; storage for AlexNet fell from 240 MB to 6.9 MB and for VGG-16 from 552 MB to 11.3 MB, which the authors reported as no loss of ImageNet accuracy.11 Their stated goal was to fit the model in on-chip SRAM rather than off-chip DRAM, the same memory-hierarchy argument that drives FlashAttention seven years later.

Jonathan Frankle and Michael Carbin’s Lottery Ticket Hypothesis (March 2018, ICLR 2019) asked why networks that can be pruned heavily need to be trained large in the first place.12 They found that iterative magnitude pruning uncovers subnetworks which, reset to their original initial weights and trained alone, match the full network’s accuracy; on MNIST and CIFAR-10 these “winning tickets” were often under 10 to 20% of the original size.12 The claim is contested in scope. A year later Frankle, Dziugaite, Roy and Carbin reported that the procedure “fails on deeper networks”. Rewinding weights to a point early in training (0.1% to 7% of the way through, across the architectures they tested) rather than to initialisation recovered such subnetworks; their example is an 80% sparse ResNet-50 on ImageNet found by rewinding to epoch 6 of 90.13

Pruning large language models has its own cost. Lu Yin and colleagues (September 2023, ICML 2024) reported that removing small-magnitude pre-trained weights causes a performance drop that grows monotonically with task difficulty, and that the loss on difficult tasks was not recovered by further training in their experiments.14

Quantisation: fewer bits per number

The arithmetic of a quantiser

A quantiser maps real numbers to a small set of integers and back. Benoit Jacob and colleagues at Google (December 2017) used the affine mapping r = S(q − Z): a real value r is represented by an integer q, a real scale S (in the units of r per integer step) and an integer zero-point Z chosen so that real zero is exactly representable.15

A worked example. Suppose a block of weights ranges from −0.8 to +1.2 and is stored as unsigned 8-bit integers, 0 to 255. Then S = (1.2 − (−0.8)) / 255 ≈ 0.00784 and Z = round(0.8 / 0.00784) = 102. The weight r = 0.5 becomes q = round(0.5 / 0.00784) + 102 = 166, which decodes to 0.00784 × (166 − 102) ≈ 0.502, an error of 0.002. At 4 bits there are only 16 levels, S = 2.0 / 15 ≈ 0.133, and for values inside the representable range the rounding error is at most half a step, about 0.067; values outside the range are clipped and can err by more. One large weight stretches the range and coarsens the step for every other weight in the block, which is why many schemes quantise small groups of weights with their own scale; GPTQ’s groups of 128 are one example.3

Integer-only inference

Jacob and colleagues ran the whole forward pass in integers: 8-bit weights and activations, 32-bit integer accumulators and a fixed-point multiplier to rescale outputs, so that convolutional networks could run on “commonly available integer-only hardware”.15 They also trained with simulated quantisation, rounding weights and activations in the forward pass during training so the network learned to tolerate the error.15 The distinction persists: post-training quantisation rounds a finished model, while quantisation-aware training includes the rounding in training. Most of the language-model quantisation below is post-training.

Outliers at scale

Tim Dettmers, Mike Lewis, Younes Belkada and Luke Zettlemoyer (August 2022) found that some hidden-state features in large transformers reach magnitudes up to 20 times those elsewhere.16 They first appear in about 25% of layers; at around 6.7 billion parameters “a phase shift occurs”, after which every layer and 75% of sequence positions are affected. At that scale 150,000 outliers occur per sequence, concentrated in just six feature dimensions, and setting those dimensions to zero degraded perplexity by 600 to 1,000%.16 In their comparisons, the 8-bit baselines they tested lost accuracy once these outliers emerged. LLM.int8() keeps the outlier dimensions in 16-bit and multiplies the rest, more than 99.9% of values, in 8-bit, halving the memory needed for inference without measured degradation on models up to 175B.16 Speed depended on the workload: their Appendix D reports 8-bit matrix multiplication speed-ups only for large model dimensions, and end-to-end BLOOM-176B inference “slightly slower but close” to 16-bit.16

SmoothQuant (Guangxuan Xiao, Song Han and colleagues, November 2022, ICML 2023) took another route. Weights are easier to quantise than activations, so it divides each activation channel by a factor s and multiplies the matching weight row by the same factor, Y = (X diag(s)⁻¹)(diag(s) W), a mathematically equivalent rewrite that moves the difficulty from activations into weights.17 That allows 8-bit weights and 8-bit activations in the matrix multiplications, with up to 1.56 times speed-up and halved memory reported at negligible accuracy loss.17

Post-training quantisation for language models: GPTQ and AWQ

Round-to-nearest, the simplest quantiser, treats each weight independently. Elias Frantar, Saleh Ashkboos, Torsten Hoefler and Dan Alistarh’s GPTQ (October 2022, ICLR 2023) instead chooses, layer by layer, quantised weights that best reproduce the layer’s outputs on sample inputs.3 Its Section 3 traces the method to Optimal Brain Quantization, which generalises the 1993 Optimal Brain Surgeon pruning framework: quantise one weight, then adjust the not-yet-quantised weights to compensate. The compensation uses the inverse Hessian of the layer’s squared reconstruction error, H = 2XXᵀ for layer inputs X, not the Hessian of the full model’s loss.3 The engineering made this feasible at scale: quantising columns in a fixed order so the inverse Hessian is shared across rows, batching updates 128 columns at a time, and using a Cholesky factorisation for numerical stability. Calibration used 128 random 2,048-token segments of web text, and a 175-billion-parameter model took about four GPU hours on one A100.3

The OPT results (WikiText2 perplexity, lower is better) come from GPTQ’s Tables 3 and 5:3

MethodBitsOPT-175B perplexityOPT-66B perplexity
FP16 baseline168.349.34
Round-to-nearest410.54110
GPTQ48.379.55
Round-to-nearest37,3006,100
GPTQ38.6814.16
GPTQ, groups of 12838.45not in Table 5

GPTQ at 4 bits is near the baseline on this perplexity benchmark at the largest scale. Naive rounding at 3 bits destroys the model. The 66B column shows that results vary between models of one family. With its own kernels, GPTQ’s 3-bit OPT-175B took about 63 GB with the embeddings and output layer kept in FP16, so it fit on one 80 GB A100. At batch size 1, generating 128-token sequences, average per-token latency was 71 milliseconds on one A100 against 230 milliseconds for FP16 on five (Table 6).3

AWQ (Ji Lin, Jiaming Tang, Song Han and colleagues, June 2023, MLSys 2024 best paper) observed that “protecting only 1% salient weights can greatly reduce quantization error”, and that the salient channels are identified from activation magnitudes rather than weight magnitudes.18 Rather than keep those channels in higher precision, AWQ scales them up before quantising so they lose less to rounding. Because it uses no backpropagation or reconstruction, the authors argue it “generalizes to different domains and modalities without overfitting the calibration set”.18

QLoRA’s 4-bit NormalFloat format, designed for normally distributed weights, made it practical to fine-tune through a frozen 4-bit base; its details are in the reader on fine-tuning and LoRA.19

How many bits?

If a fixed memory budget can hold a 30B model at 8 bits or a 60B model at 4 bits, which is better? Dettmers and Zettlemoyer ran more than 35,000 experiments on the BLOOM, OPT, NeoX/Pythia and GPT-2 families, from 19 million to 176 billion parameters, measuring zero-shot accuracy against total model bits. They concluded that “4-bit precision is almost universally optimal for total model bits and zero-shot accuracy”; in their tests the only changes that improved the trade-off were smaller quantisation blocks and the choice of number format.20

That rule of thumb has been questioned. Tanishq Kumar and colleagues (November 2024) fitted “precision-aware” scaling laws and found that “the degradation introduced by post-training quantization increases as models are trained on more data, eventually making additional pretraining data actively harmful” for a model that will be quantised afterwards.21 Their fits stop at 1.7B parameters and 26B tokens, so whether the trend holds for frontier models is untested.21 Separately, Wei Huang and colleagues evaluated ten post-training quantisation and LoRA fine-tuning methods on LLaMA 3, which was trained on over 15 trillion tokens, and found “non-negligible degradation”, most severe at ultra-low bit widths.22 Their study does not isolate training-token count as the cause.

A further caution concerns measurement. GPTQ’s headline results are perplexity on generic text.3 A perplexity figure on its own does not show whether a specific capability, language or task survived. The reader on evaluating AI benchmarks explains why an average over a test set can hide a capability lost on a subset.

Training at 1.58 bits

Post-training quantisation degrades quickly below 4 bits in GPTQ’s round-to-nearest comparisons; training with very low precision from the start is a different approach.3 Shuming Ma, Hongyu Wang, Furu Wei and colleagues at Microsoft Research introduced BitNet b1.58 in February 2024.1 The weights of its linear layers are −1, 0 or +1 (log₂3 ≈ 1.58 bits): each weight matrix is divided by its mean absolute value and rounded to the nearest of the three values, activations are 8-bit, and embeddings stay in full precision. The model is “trained from scratch” this way, with the quantisation in the loop.1 Inner products with ternary weights need almost no multiplications before scaling, though other operations still do.

Against LLaMA-architecture baselines the authors reproduced and trained on the same 100 billion tokens, the 3B BitNet b1.58 reached perplexity 9.91 against 10.04, used 2.22 GB of GPU memory against 7.89 GB, and had 1.87 against 5.07 milliseconds latency, measured with a 2-bit kernel.1 At 700M and 1.3B it was slightly worse; the claim of parity begins at 3B.1 At 70B the paper reports cost only: decoding latency 4.1 times lower, and on two 80 GB A100s a maximum batch size 11 times larger giving 8.9 times the throughput. The 71.4-times energy saving for matrix arithmetic is an estimate from per-operation energy figures for 7 nm chips.1 The arXiv comment labels the paper “Work in progress”.

The obvious objection was scale: 100 billion training tokens is small, and baselines trained by the authors may be weak. The April 2025 follow-up, BitNet b1.58 2B4T, trained a 2-billion-parameter model on 4 trillion tokens and reported performance “on par with leading open-weight, full-precision LLMs of similar size”, with weights released.23 Accuracy results in these two papers stop at a few billion parameters.

Serving: attention kernels, caches and speculation

FlashAttention: exact attention, fewer memory trips

Self-attention over a full sequence of N tokens forms an N × N matrix of scores, applies a softmax across each row, and multiplies by the values. The standard implementation writes that matrix to high-bandwidth memory and reads it back. Tri Dao, Daniel Fu, Stefano Ermon, Atri Rudra and Christopher Ré (May 2022) pointed out that on an A100 the on-chip SRAM (192 KB on each of 108 streaming multiprocessors) runs at an estimated 19 TB/s, roughly ten times the high-bandwidth memory.2

FlashAttention computes the same result in tiles. It loads blocks of queries, keys and values into SRAM, computes partial softmaxes, and combines them using running maxima and normalisers so that the full N × N matrix is never written out. For the backward pass it stores only the normalisation statistics and recomputes attention on chip, doing more arithmetic in exchange for fewer memory accesses.2 For head dimension d and SRAM size M with d ≤ M ≤ Nd, the authors show the algorithm needs Θ(N²d²/M) high-bandwidth memory accesses against Θ(Nd + N²) for standard attention, and prove that no exact attention algorithm can use o(N²d²/M) accesses for all M in the range [d, Nd], in their I/O model.2 In Figure 1’s GPT-2 benchmark the attention computation ran 7.6 times faster.2 FlashAttention-2 (July 2023) repartitioned the work for about twice the speed again, reaching 50 to 73% of the A100’s theoretical peak against 25 to 40% for the first version.24 These figures concern attention over whole sequences, as in training and prompt processing; decoding a single new token is a different workload.

Nothing is approximated. FlashAttention computes exact attention, though changing the order of floating-point operations can change results in the last bits.

The key-value cache and PagedAttention

During generation the model stores the key and value vectors of past tokens in every layer, so each new token attends over them without recomputing. Woosuk Kwon and colleagues at Berkeley (September 2023, SOSP 2023) gave the arithmetic for OPT-13B: 2 (key and value) × 5,120 (hidden size) × 40 (layers) × 2 bytes, which they round to 800 KB per token, and up to 1.6 GB for one 2,048-token request (strictly 800 KiB and about 1.68 GB).25 On a 40 GB A100 serving that model, about 65% of memory held the weights and about 30% the cache.25

The cache grows with each token and its final length is unknown, so earlier systems reserved a contiguous chunk for each request’s maximum length. Kwon and colleagues measured that “only 20.4% - 38.2% of the KV cache memory is used to store the actual token states in the existing systems”; the rest was lost to reservations and fragmentation.25 PagedAttention applies the operating system’s answer. The cache is divided into fixed-size blocks, each request has a block table mapping logical blocks to physical ones, and blocks are allocated on demand and need not be contiguous. Separately, requests that share a prefix, such as several samples from one prompt or the beams of a beam search, can share physical blocks with copy-on-write; the authors report up to 55% memory saving for beam search.25 vLLM, the serving engine built on it, improved throughput by two to four times over FasterTransformer and Orca at the same latency on their workloads.25

Architectures also shrink the cache at the source. Grouped-query attention (Joshua Ainslie and colleagues at Google, May 2023) lets several query heads share one key-value head, with quality “close to multi-head attention” at speed comparable to a single shared head.26 For a hypothetical 80-layer model with 128-dimensional heads, the cache for an 8,192-token context at 16 bits is about 21 GB with 64 key-value heads and about 2.7 GB with 8. The cache can be quantised too, but its errors behave differently from weight errors: KIVI (Zirui Liu and colleagues, February 2024, ICML 2024) found that keys are best quantised per channel and values per token. It quantises older cache entries at 2 bits while keeping a residual of recent entries in full precision, and its authors report that this residual mattered on GSM8K; they report almost the same quality on the Llama, Falcon and Mistral models and benchmarks they evaluated.27

Sharing cached prefixes across requests raises tenancy questions. Chenchen Gu and colleagues at Stanford (February 2025, ICML 2025) did not examine any particular engine’s internals; they measured API response times and detected prompt-cache sharing across users at seven providers, including OpenAI, a potential channel for learning about other users’ prompts.28

Speculative decoding

Generation is sequential: token k + 1 depends on token k. But scoring a short proposed continuation in parallel takes the large model about as long as sampling one token.29 Yaniv Leviathan, Matan Kalman and Yossi Matias at Google (November 2022, ICML 2023) and, independently, Charlie Chen and colleagues at DeepMind (February 2023) used this asymmetry.3029

A small draft model proposes γ tokens. The large target model scores all of them in one parallel pass. Each draft token x, sampled from the draft distribution q, is accepted if q(x) ≤ p(x) under the target distribution p, and otherwise accepted with probability p(x)/q(x). At the first rejection, a replacement is sampled from the normalised residual max(0, p − q) and the rest of the draft is discarded; if every draft token is accepted, the target’s pass yields one further token for free.30 With exact verification and the same sampling settings, this modified rejection sampling makes the output distributed as if the target model had sampled it alone. That is equality of distributions, not token-for-token reproduction of a particular run. Leviathan and colleagues report “identical outputs” in their experiments;30 Chen and colleagues state the guarantee holds “within hardware numerics”.29

Speed depends on the acceptance rate α, the expected probability that a draft token is accepted, which equals the expected overlap Σ min(p, q) of the two distributions. Assuming acceptances are independent and identically distributed across positions, an approximation the correctness proof does not need, the expected number of tokens per target pass is (1 − α^(γ+1)) / (1 − α).30 With α = 0.8 and γ = 4 that is 3.36; with α = 0.6 it is 2.31. Real speed-ups are lower because the draft’s own passes cost time, and they vary with workload. With an 11B T5 target and a 77M draft, Leviathan and colleagues measured 2.6 times faster translation at temperature 1 and 3.4 times at temperature 0; Chen and colleagues reported 2 to 2.5 times on the 70B Chinchilla.3029

Later work changed how drafts are made. Medusa (Tianle Cai, Tri Dao and colleagues, January 2024) adds extra prediction heads to the target model itself, with no standalone draft model, and verifies a tree of candidates at once; in its Table 2, Medusa-1, trained on a frozen backbone, gave 2.18 times speed-up on Vicuna-7B on MT-Bench. Its exactness depends on the setting: Section 2.3.1 distinguishes greedy decoding from a “typical acceptance” scheme for positive temperature, which accepts plausible candidates rather than verifying exactly and so need not preserve the target distribution; a Medusa-2 variant also fine-tunes the backbone.31 EAGLE (Yuhui Li and colleagues, January 2024) uses a draft model built from a trained feature-prediction head plus reused components of the target, drafting at the level of second-to-top-layer features, and reports 2.7 to 3.5 times latency speed-up on LLaMA2-Chat 70B while “maintaining the distribution of the generated text”.32 “Speculative” and “lossless” are not synonyms; the configuration matters.

A draft that imitates the target closely has a high α, so drafts are natural candidates for distillation from the target; Medusa offers a self-distillation recipe for when no training data is available.31

Which trade-offs are real

The methods divide by what they change.

MethodWhat it changesEffect on outputsWhere the cost or loss shows
FlashAttentionOrder of exact computationSame mathematical result; floating-point differences possible2Speed and memory for full-sequence attention
PagedAttentionMemory layout and sharing of the cacheSame computation25Capacity and throughput; shared prefixes raise tenancy questions28
Speculative decoding, exact verificationNumber of target passes per tokenSame output distribution under matching settings30Latency gain depends on acceptance rate and workload
8-bit weights (LLM.int8(), SmoothQuant)PrecisionChangedSmall on the benchmarks reported1617
4-bit post-training (GPTQ, AWQ)PrecisionChangedNear-baseline perplexity at 175B; more loss on some smaller models3
3-bit GPTQPrecisionChangedOPT-175B 8.68 (8.45 with groups of 128) against 8.34; OPT-66B 14.16 against 9.34; round-to-nearest collapses3
Magnitude pruningNumber of weightsChangedSize; losses growing with task difficulty in one LLM study1114
Ternary training (BitNet b1.58)The model itselfA different modelParity reported at 2B to 3B against the authors’ baselines123
DistillationThe model itselfA different modelWeakest on capabilities the transfer data covers least, in the tested settings9

The first three rows change cost without retraining the model; deployments still need numerical and behavioural regression checks suited to the change, because implementations, sampling settings and floating-point order can differ. Everything below them changes the model, and the evidence that the loss falls on something unimportant is mostly perplexity and averaged benchmarks. A deployment that depends on a particular capability, language or safety behaviour should measure it directly on the compressed model.

Distillation as an attack

Authorised distillation assumes the student’s trainer may use the teacher. Without that permission, related procedures become model extraction, which covers several distinct goals: recovering weights or architectural details, as in Carlini’s attack below; building a copy that agrees with the original on chosen inputs, as in Tramèr’s; and training a model to imitate another’s behaviour from its outputs, which is what the 2026 campaigns describe and what the library’s idea map tracks as model distillation attacks. MITRE ATLAS release v2026.10 (28 October 2026) added case studies on distillation campaigns targeting Google AI services and on the joint US advisory, and updated its case study on campaigns targeting Anthropic’s Claude.33 The reader on MITRE ATLAS covers the framework.

From prediction APIs to production language models

Florian Tramèr, Fan Zhang, Ari Juels, Michael Reiter and Thomas Ristenpart (September 2016, USENIX Security) showed extraction against commercial machine-learning services.34 For model classes whose API returned confidence scores, such as logistic regression, those scores exposed enough to reconstruct the model. Against Amazon Machine Learning they extracted a logistic regression model on a digits dataset with 650 queries; against BigML, a decision tree on a credit dataset with 1,150 queries; each copy was 100% equivalent on their tests (Table 1).34 Omitting confidence scores did not prevent extraction for the model classes they studied, but required up to 100 times more queries.34

Kalpesh Krishna and colleagues (October 2019, ICLR 2020) studied text-only imitation of BERT-based task models. Where victim and attacker fine-tuned the same public pre-trained model, the attacker needed no real training data, and for “a query budget of a few hundred dollars” the copy performed only slightly worse than the victim on the tasks tested.35 The two countermeasures they studied, membership classification and API watermarking, worked against naive attackers and failed against more sophisticated ones.35

Nicholas Carlini and thirteen co-authors (March 2024, ICML 2024) showed that production language-model APIs exposing log-probabilities or a logit-bias parameter leaked architectural facts: the model’s hidden dimension and its final projection layer, up to symmetries.7 They extracted the whole projection matrix of OpenAI’s Ada and Babbage models for under $20 each, confirming hidden dimensions of 1,024 and 2,048; for gpt-3.5-turbo-instruct they recovered the hidden dimension for about $200 and estimated about $2,000 for the full matrix (Table 1).7 The authors obtained OpenAI’s approval before extracting parameters and deleted them afterwards; after disclosure both Google’s and OpenAI’s APIs “implemented defenses to prevent our attack or make it more expensive”.7 The attack recovers one layer, not a usable model. Its importance is that API parameters chosen for developer convenience became disclosure channels.

Large-scale distillation of a frontier model does not try to recover weights. It collects large volumes of responses and, where possible, reasoning traces, and fine-tunes another model on them, as DeepSeek did with its own R1. The barriers are access, volume and detection.

The 2026 disclosures

Six primary documents describe the campaigns. All come from parties with interests in the outcome; attributions cannot be checked from outside, the figures are the publishers’ own, and the units differ (prompts, requests, exchanges, accounts, users, estimated tokens). The advisory and the company reports overlap in subject but are not independent verification of one another’s counts.

Google, 12 February 2026. Google Threat Intelligence Group reported a rise in “model extraction attempts or ‘distillation attacks’” against Gemini, from “researchers and private sector companies globally”, while noting it had seen no direct attacks on frontier models by tracked state-backed groups in 2025.36 One campaign of over 100,000 prompts tried to coerce Gemini into writing out its normally summarised reasoning. Google described “real-time proactive defenses that can degrade student model performance”.36

Anthropic, 23 February 2026. Anthropic named three Chinese laboratories, DeepSeek, Moonshot and MiniMax, as having generated “over 16 million exchanges with Claude through approximately 24,000 fraudulent accounts”.37 It gave over 150,000 exchanges for DeepSeek, over 3.4 million for Moonshot and over 13 million for MiniMax, and said attribution rested on “IP address correlation, request metadata, infrastructure indicators”, and in some cases on corroboration from industry partners.37 DeepSeek’s prompts, it said, asked Claude to reconstruct the reasoning behind completed responses, used Claude as a grader for reinforcement learning, and generated “censorship-safe alternatives” to politically sensitive questions.37 When Anthropic released a new model during MiniMax’s campaign, MiniMax redirected “nearly half their traffic” to it within 24 hours.37 Access came through resellers running what Anthropic called “hydra cluster” networks, one of which managed more than 20,000 fraudulent accounts at once.37

NSA, CISA and FBI, 8 September 2026. Joint advisory AA26-251A stated that China-based companies “extracted billions of tokens across millions of exchanges/requests from U.S. frontier AI models, including variants of Claude, GPT, Gemini, and Grok, since at least late 2024”, naming DeepSeek, Moonshot AI, Alibaba, MiniMax, StepFun and Z.AI, and assessed this as “likely with Chinese government awareness”.38 It described distillation as “the core—not merely a supplement” of those companies’ development strategy, and called DeepSeek’s “publicly quoted training costs of $5.6M” misleading because they exclude “the true cost of the data acquired through extensive malicious distillation”.38 The figure comes from the DeepSeek-V3 technical report, which estimated $5.576 million for “the official training of DeepSeek-V3”, made up of pre-training, context-length extension and post-training GPU hours at an assumed rental price of $2 per H800 GPU hour (Table 1), and stated that this excludes “prior research and ablation experiments”.39 The advisory lists detection indicators, including round-the-clock usage without idle periods, new subscriptions immediately at maximum usage and anomalous subscription-to-API ratios, and maps mitigations to MITRE ATLAS.38

Anthropic, 10 September 2026. This is the larger disclosure that press coverage reported second-hand. It is the “Illicit distillation and scaled abuse” chapter of Anthropic’s threat intelligence report Detecting and countering misuse of AI: September 2026, covering December 2025 to August 2026; the report’s PDF is dated 10 September 2026.40 It reports campaigns by seven labs based in China. It attributes to Alibaba “the largest distillation attack we have ever measured”, over 151 million exchanges between May and July 2026, peaking at nearly 3 million a day from more than 3,500 fraudulent accounts, and separately states that the harvested transcripts were used in training Alibaba’s Qwen models.40 The report gives no checkpoint-level chronology linking the counted window to particular releases. It attributes over 23 million exchanges to Moonshot between May and July, over 12.1 million to DeepSeek over 14 days in July, over 3.4 million to Zhipu (Z.ai) over 17 days in June and July, and over 400,000 to Xiaomi over 20 days in March and April.40 SenseTime is described as buying harvested Claude transcripts from third-party vendors, and MiniMax as running a proxy service through an undisclosed shell company.40

OpenAI, 30 September 2026. OpenAI described a campaign from 1 July “designed to extract protected reasoning”, with spikes on 24 and 25 July of 16,000 requests from over 4,000 users, related activity across more than 15,000 users, and full disruption by 28 July.41 It attributed “a core cluster of the activity to individuals associated with Moonshot AI”, and its footnote says the figures “describe attempted, not necessarily successful, extractions”.41

Anthropic, 12 October 2026. A follow-up on defences estimated that new methods had “reduced the amount of data harvested by distillers by around 90 to 99%”.42

Patterns the reports describe

The documents describe four patterns. They are reported for particular actors and need not occur together.

  • Access through resellers. Anthropic does not sell access in China, and US labs restrict access by region; the September report and the advisory both describe proxy resellers called “transfer stations”.4038 Anthropic says these services create accounts with false identities, fake or stolen credit cards and stolen API keys.40 The advisory describes traffic spread across native APIs, cloud providers and aggregators to avoid single-point detection.38
  • Volume and repetition. Anthropic describes templated prompts concentrated on narrow capabilities (agentic coding, tool use, reasoning), arriving tens of thousands of times across hundreds of coordinated accounts.37
  • Targeting hidden reasoning. Google, Anthropic and OpenAI each describe attempts to obtain reasoning that their products summarise or withhold.364041 Anthropic and OpenAI both report that protected reasoning artefacts issued in one context could be misused in another, and both say they have closed those pathways; OpenAI says independent researchers reported related cross-model and conversation-compaction weaknesses.4041
  • Relaying other people’s traffic. The September report states that DeepSeek, Xiaomi and Moonshot “fed conversations between their own models and users into Claude” and trained on the responses; Moonshot and DeepSeek, it says, served Claude’s answers to customers who thought they were using Kimi or DeepSeek, while Xiaomi replayed saved sessions.40 In one ten-day window Moonshot relayed almost 300,000 customer requests; Anthropic says Moonshot used a proxy network of 5,380 fraudulent accounts.40 It says the relayed traffic included internal code, live credentials and surveillance data, and that many exchanges came from users of third-party routing services “commonly used by users in the United States and Europe”, containing names, email addresses and company data of hundreds of end users.40

The last pattern, if Anthropic’s account is accurate, turns model theft into a data-protection incident for third parties who had no part in it.

How much does illicit distillation buy?

The studies answer different questions, and comparing their designs shows where they agree.

StudyTeacher accessStudent starting pointTransfer dataEvaluation
Gudibande et al.9ChatGPT outputs1.5B to 13B open modelsBroad and task-matched imitation, up to 150M tokensCrowd ratings and benchmarks such as Natural Questions
DeepSeek-R18Own model, full tracesOpen models up to 70B~800,000 samples, mostly reasoningMathematics, science and coding benchmarks
Anthropic, October 202642Own model, full or summarised tracesA pre-trained Claude modelOpus 4.8 transcriptsSWE-bench Verified only

Gudibande found broad imitation closing little of the capability gap; DeepSeek found concentrated reasoning data beating one RL recipe; Anthropic reports a pre-trained model reaching 80.4% on SWE-bench Verified when trained on full transcripts and 71.8% on summarised ones.42 Strong students and concentrated transfer data are plausible conditions for successful transfer, but the campaigns’ student checkpoints and training effects are not public. The September report claims distillation delivered “significant uplift” with fewer exchanges than the campaigns harvested, and that a distilled model “can help achieve dangerous capabilities” even from exchanges containing little about those subjects; it publishes no data for either claim.40 The advisory’s statement that distillation is the “core” of the named companies’ strategy is an assessment.38

The sources’ interests should be stated plainly. Anthropic’s February post argues that the campaigns “reinforce the rationale for export controls”, a policy it supports, and that rapid progress by these labs is “incorrectly taken as evidence that export controls are ineffective”.37 That does not make its telemetry wrong, but the step from “they distilled” to “their progress depends in significant part on distillation” goes beyond any published figure. The accused companies’ responses are not in these documents. OpenAI explicitly qualifies its counts as attempts, and Google describes extraction “attempts”.4136

Two narrower points have better support. First, reasoning extraction is not specific to one vendor: Anthropic, OpenAI and Google each report attempts against their own products, and OpenAI states the manipulation “is not a vulnerability unique to OpenAI’s models”.414036 Second, Anthropic states that its safeguards “do not transfer when our models are distilled by an unauthorized lab”.40 That is a publisher assessment rather than a published measurement. It is consistent with how distillation works, since a transfer set built from answers a teacher gave contains few examples of what it refused. Anthropic also reports that Zhipu abandoned an attempt to distil cyber capabilities from Anthropic’s Fable model after safeguards degraded the attack, and that its own testing found GLM-5.3’s safeguards “can easily be bypassed”.42 The reader on AI alignment explains why refusal behaviour is a trained property.

Defences and what they cost

Withholding the richest signal. Providers changed their APIs after Carlini’s disclosure, and Anthropic and Google summarise reasoning before showing it.74236 Anthropic’s experiment above puts the effect of summaries at 8.6 SWE-bench points for the student; summaries reduce the value of collected data without removing it.42 Developers also see less of what the model did, which matters for debugging and for the monitoring discussed in the reasoning reader.

Binding reasoning to its context. OpenAI “closed a pathway that allowed someone who already possessed another user’s encrypted reasoning to replay it” and added checks to detect and hold streamed output that might expose reasoning.41 With Claude Fable 5.1 and Claude Opus 5.5, Anthropic introduced “preserved thinking”, which stops API accounts created on or after 31 August 2026 from editing Claude’s prior context, and prevented those models’ reasoning from being read by earlier models; with Claude Sonnet 5.5 it made reasoning transcripts accessible only to the organisation whose request produced them.42 Anthropic reports that preserved thinking has required some developers to update their integrations.42 OpenAI warns that “systems that support portable or replayable reasoning artifacts may face related risks.”41 This resembles a familiar authorisation bug class: an opaque token honoured somewhere it should not be.

Classifiers and account enforcement. Anthropic runs a two-stage classifier against extraction attempts and reports a false-positive rate below 0.1%, extracted reasoning tokens 10 to 100 times lower than before, and bans “often in less than two hours” after a campaign starts; it adds that it has “yet to see a highly sophisticated and persistent attempt to circumvent them”.42 Since 24 September 2026 it has resumed charging for requests that safeguards block before Claude responds, in areas including distillation where it estimates false positives below 0.1%.42 It gives no count of legitimate requests blocked, so the burden on legitimate customers cannot be quantified from the published material. Its February report describes strengthened verification for educational, security-research and startup accounts, the pathways it says were most often exploited; added friction for legitimate applicants in those categories is an inference.37

Degrading what the distiller receives. The joint advisory recommends that providers “subtly alter responses for suspected malicious distillation attempts”, for example by “reducing reasoning depth, presenting correct information with different reasoning”, or routing to a “downgraded” model, without telling the suspected distiller, while informing safety researchers and third-party evaluators.38 Google describes defences “that can degrade student model performance”.36 The research version is antidistillation sampling (Yash Savani, Zico Kolter and colleagues at Carnegie Mellon, April 2025, NeurIPS 2025), which perturbs the teacher’s next-token distribution in a direction chosen to hurt a proxy student. In their MMLU example a teacher at 72% accuracy yields a student at up to 52%; raising temperature costs the teacher 4 points and leaves the student at 52%, while antidistillation sampling at the same cost brings the student down to as low as 40%.43 The advisory does not measure any effect on legitimate users. If an implementation of its recommendation misclassified a legitimate request, that customer would receive a degraded answer without being told; this risk is separate from the integration work and blocked-request charges Anthropic reports for its own measures.3842 An organisation buying model access can reasonably ask its provider whether it does this.

Contract. OpenAI’s Terms of Use for individuals prohibit using output “to develop models that compete with OpenAI” and “programmatically” extracting output; business and API customers may be governed by separate agreements.44 Anthropic’s commercial terms prohibit accessing the services “to build a competing product or service, including to train competing AI models”, except as expressly approved by Anthropic.45 The published disclosures describe terms violations as grounds for banning accounts.37

Compression as an attack surface

Quantisation can trigger hidden behaviour. Kazuki Egashira, Mark Vero, Robin Staab, Jingxuan He and Martin Vechev at ETH Zurich (May 2024) showed that a model can be built to behave well in full precision and badly once a user quantises it with common local schemes (LLM.int8(), NF4 and FP4).46 In their attacked StarCoder-3b, the full-precision model wrote secure code 82.6% of the time and its LLM.int8() version 2.8% of the time (Table 1); they also demonstrated content injection and over-refusal.46 A model can therefore pass an evaluation in full precision and misbehave after conversion on the user’s machine. In one Phi-2 setting, adding Gaussian noise to the weights before quantising narrowed the security gap; at other noise levels a gap remained or utility suffered (Table 6).46 The artefact that was evaluated is not the artefact that runs if a conversion step sits between them.

Compressed models may lose behaviours nobody measured. Of the compression papers cited here, only Egashira’s examines refusals, and there as an attack target. Where a safety property was never evaluated, nothing in these papers shows that it survives compression.

Distilled models can inherit more than intended. In Cloud and colleagues’ experiments, a student sharing the teacher’s base model acquired traits from data that did not visibly contain them.10 Anthropic says frontier labs routinely distil their own models; teachers’ undesirable traits are a risk to test for in the students.3710

What practitioners should do differently

At a lab or model provider

  • Review every output channel for what it discloses. Log-probabilities and logit bias disclosed architecture, replayable reasoning artefacts disclosed hidden reasoning, and shared prompt caches produced a measurable timing signal.74128 Assess new API features for what an adversary with millions of queries could reconstruct.
  • Bind reasoning artefacts to account, session and model, and test replay. This belongs in authorisation testing as well as model red-teaming.4041
  • Detect across accounts. Pools of accounts absorb per-account bans: “When one account is banned, a new one takes its place.”37 The published indicators are cross-account: shared templates, synchronised timing, shared payment methods, accounts that start at maximum usage and run without idle periods.3738 The advisory recommends sharing indicators across providers and cloud platforms.38
  • Plan for misclassified customers. If you alter responses for suspected distillers, decide in advance how a wrongly flagged customer finds out and is made whole, since the advisory recommends not informing the target.38
  • Evaluate compressed models on safety behaviour as well as capability. Distilled and quantised variants you ship should pass the same refusal and misuse evaluations as the original.

At an enterprise deploying models

  • Know what your router does. The September report describes routing services whose traffic was relayed to another lab and retained.40 Contract for where prompts go and who retains them, and prefer direct provider contracts for sensitive work.
  • Keep secrets out of prompts. Live credentials appear in two of the relayed-traffic cases Anthropic describes.40
  • Evaluate the artefact you run. If you quantise a model, evaluate the quantised version; a checkpoint with verified provenance can still carry Egashira’s attack.46
  • Test the capability you depend on. A 4-bit model with near-baseline perplexity can still be worse at your task. Run a task-specific evaluation, including any refusals you rely on, on the compressed model.2122
  • Regression-test serving changes, and review cache tenancy. FlashAttention, paged caches and exactly verified speculative decoding change cost rather than weights, and their equivalence properties hold under the papers’ assumptions. Run numerical and behavioural regression checks, with capability coverage and cache-isolation checks set by the particular deployment and change; shared prompt caches carry the separate tenancy risk Gu measured.2253028
  • Check provenance of open models. Given the advisory’s allegations, a capable open-weight model may have been trained partly on another lab’s outputs.38 That bears on legal exposure and on how much safety behaviour to assume.

Key papers, annotated

A reading path, with what each source establishes and where to look.

Distillation. Hinton, Vinyals and Dean (March 2015), Sections 2 to 4 and Tables 1 and 5: temperature, the T² correction and data efficiency.4 Sanh et al., DistilBERT (October 2019), Tables 1 to 4: pre-training distillation and its ablations.5 Gu et al., MiniLLM (June 2023): reverse-KL, on-policy distillation of generative models.6 DeepSeek-R1 (January 2025), Sections 2.4 and 4.1: SFT-only reasoning distillation compared with one RL recipe. US agencies allege DeepSeek also distilled other labs’ models; the paper does not discuss this.838 Gudibande et al. (May 2023), Figure 1: why human raters overrate imitation models.9 Cloud et al. (July 2025): trait transfer through unrelated data between models sharing a base.10

Pruning. Han, Mao and Dally (October 2015): pruning, weight sharing and Huffman coding, 35 to 49 times smaller.11 Frankle and Carbin (March 2018) with the 2019 follow-up: winning tickets in small networks, and rewinding for deeper ones.1213 Yin et al. (September 2023): pruning losses that grow with task difficulty in LLMs.14

Quantisation. Jacob et al. (December 2017), Section 2: affine integer inference and quantisation-aware training.15 Dettmers et al., LLM.int8() (August 2022), Section 1 and Appendix D: emergent outliers and mixed precision.16 Xiao et al., SmoothQuant (November 2022): equivalent rescaling for 8-bit activations.17 Frantar et al., GPTQ (October 2022), Sections 3 to 5: second-order post-training quantisation.3 Lin et al., AWQ (June 2023): activation-aware scaling.18 Dettmers and Zettlemoyer (December 2022): bits versus parameters at fixed memory.20 Kumar et al. (November 2024): precision-aware scaling laws, validated up to 1.7B parameters and 26B tokens.21 Huang et al. (April 2024): measured quantisation losses in LLaMA 3, without isolating training volume as the cause.22 Ma et al. (February 2024, April 2025): ternary training at up to a few billion parameters.123 Liu et al., KIVI (February 2024): key-value cache quantisation.27 Egashira et al. (May 2024), Tables 1 and 6: quantisation as an attack trigger.46

Serving. Dao et al. (May 2022) and Dao (July 2023): IO-aware exact attention.224 Kwon et al. (September 2023), Sections 3, 4 and 6: paged key-value caches and vLLM.25 Ainslie et al. (May 2023): grouped-query attention.26 Leviathan et al. (November 2022) and Chen et al. (February 2023): speculative decoding with distribution-preserving verification.3029 Cai et al., Medusa (January 2024): prediction heads on the target model, with guarantees that depend on the acceptance scheme.31 Li et al., EAGLE (January 2024): a feature-level draft model reusing target components.32

Extraction and distillation attacks. Tramèr et al. (September 2016), Table 1: extraction from prediction APIs.34 Krishna et al. (October 2019): imitation of BERT-based task APIs.35 Carlini et al. (March 2024), Table 1: architectural disclosure from production LLM APIs.7 Gu et al. (February 2025): prompt-cache timing.28 Savani et al. (April 2025), Section 1: antidistillation sampling; its robustness against an adaptive distiller is not established.43 The six 2026 disclosures and the MITRE ATLAS v2026.10 release: the primary record of the campaigns, valuable for technique detail, with unaudited attributions and figures.36373840414233

Conclusion

Making a model cheap to run comes down largely to moving fewer bytes, and the methods differ in what they risk. FlashAttention, paged key-value caches and exactly verified speculative decoding change how an answer is computed without retraining the model; their equivalence properties hold under stated assumptions, and deployments still need regression and isolation checks suited to the change (see the serving sections). Quantisation to 8 bits, and for the largest models tested 4 bits, stayed near baseline on the benchmarks its papers report, such as GPTQ’s 8.37 against 8.34 perplexity on OPT-175B; those benchmarks are coarse, results below 4 bits vary by model, Kumar’s scaling laws (fitted up to 1.7B parameters) predict larger losses for models trained on more data, and Huang measured losses in LLaMA 3.32122 Ternary training matched its authors’ baselines at a few billion parameters, and the published results go no further.123 In the settings studied, distillation transferred most where the transfer data was concentrated and the student was strong, and DeepSeek’s R1 results showed how much a concentrated set of reasoning samples can carry.89

For this reader’s security focus, that last property matters most. A capable model’s outputs, and especially its reasoning, are training data for whoever collects them. The 2026 disclosures describe collection at a scale of well over a hundred million exchanges, through reseller networks, replayed reasoning artefacts and, by Anthropic’s account, other companies’ relayed user traffic.4037 Several publishers describe similar techniques; the attributions, counts and claims of capability gained remain their own, unaudited. Anthropic reports that its own defences required some developers to update integrations and can block and charge for a small share of benign requests; silent degradation, as the advisory recommends, would give degraded answers to any legitimate user it misclassified.4238 For those deploying models, a compressed model is a different artefact from the one that was evaluated, and an API’s outputs can become another party’s training data.

Footnotes

  1. Shuming Ma, Hongyu Wang, Lingxiao Ma, Lei Wang, Wenhui Wang, Shaohan Huang, Li Dong, Ruiping Wang, Jilong Xue and Furu Wei, “The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bits”, arXiv:2402.17764, 27 February 2024. Sections 1 to 3, Tables 1 to 3. https://arxiv.org/abs/2402.17764 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
  2. Tri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra and Christopher Ré, “FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness”, arXiv:2205.14135, first posted 27 May 2022, revised 23 June 2022. Sections 1 to 3, Figure 1. https://arxiv.org/abs/2205.14135 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  3. Elias Frantar, Saleh Ashkboos, Torsten Hoefler and Dan Alistarh, “GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers”, arXiv:2210.17323, first posted 31 October 2022, revised 22 March 2023; ICLR 2023. Sections 3 to 5, Tables 3, 5 and 6, and the limitations in Section 6. https://arxiv.org/abs/2210.17323 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13
  4. Geoffrey Hinton, Oriol Vinyals and Jeff Dean, “Distilling the Knowledge in a Neural Network”, arXiv:1503.02531, 9 March 2015; NIPS 2014 Deep Learning Workshop. Sections 2 to 4 and 6, Tables 1 and 5. https://arxiv.org/abs/1503.02531 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
  5. Victor Sanh, Lysandre Debut, Julien Chaumond and Thomas Wolf, “DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter”, arXiv:1910.01108, first posted 2 October 2019, revised 1 March 2020; 5th Workshop on Energy Efficient Machine Learning and Cognitive Computing, NeurIPS 2019. Sections 3 and 4, Tables 1 to 4. https://arxiv.org/abs/1910.01108 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  6. Yuxian Gu, Li Dong, Furu Wei and Minlie Huang, “MiniLLM: On-Policy Distillation of Large Language Models”, arXiv:2306.08543, first posted 14 June 2023, revised 31 January 2026; ICLR 2024. Abstract. https://arxiv.org/abs/2306.08543 (opens in a new tab) ↩1 ↩2
  7. Nicholas Carlini, Daniel Paleka, Krishnamurthy Dj Dvijotham, Thomas Steinke, Jonathan Hayase, A. Feder Cooper, Katherine Lee, Matthew Jagielski, Milad Nasr, Arthur Conmy, Itay Yona, Eric Wallace, David Rolnick and Florian Tramèr, “Stealing Part of a Production Language Model”, arXiv:2403.06634, first posted 11 March 2024, revised 9 July 2024; ICML 2024. Sections 1, 4 and 5. https://arxiv.org/abs/2403.06634 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
  8. DeepSeek-AI, “DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning”, arXiv:2501.12948, version 1 of 22 January 2025, Sections 2.4, 3.2 and 4.1, Tables 5 and 6. https://arxiv.org/abs/2501.12948v1 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
  9. Arnav Gudibande, Eric Wallace, Charlie Snell, Xinyang Geng, Hao Liu, Pieter Abbeel, Sergey Levine and Dawn Song, “The False Promise of Imitating Proprietary LLMs”, arXiv:2305.15717, 25 May 2023. Abstract and Figure 1. https://arxiv.org/abs/2305.15717 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
  10. Alex Cloud, Minh Le, James Chua, Jan Betley, Anna Sztyber-Betley, Jacob Hilton, Samuel Marks and Owain Evans, “Subliminal Learning: Language models transmit behavioral traits via hidden signals in data”, arXiv:2507.14805, 20 July 2025. Abstract. https://arxiv.org/abs/2507.14805 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  11. Song Han, Huizi Mao and William J. Dally, “Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding”, arXiv:1510.00149, first posted 1 October 2015, revised 15 February 2016; ICLR 2016. Abstract. https://arxiv.org/abs/1510.00149 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  12. Jonathan Frankle and Michael Carbin, “The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks”, arXiv:1803.03635, first posted 9 March 2018, revised 4 March 2019; ICLR 2019. Abstract. https://arxiv.org/abs/1803.03635 (opens in a new tab) ↩1 ↩2 ↩3
  13. Jonathan Frankle, Gintare Karolina Dziugaite, Daniel M. Roy and Michael Carbin, “Stabilizing the Lottery Ticket Hypothesis”, arXiv:1903.01611, first posted 5 March 2019, revised 20 July 2020. Abstract. https://arxiv.org/abs/1903.01611 (opens in a new tab) ↩1 ↩2
  14. Lu Yin, Ajay Jaiswal, Shiwei Liu, Souvik Kundu and Zhangyang Wang, “Junk DNA Hypothesis: Pruning Small Pre-Trained Weights Irreversibly and Monotonically Impairs ‘Difficult’ Downstream Tasks in LLMs”, arXiv:2310.02277, first posted 29 September 2023, revised 30 April 2026; ICML 2024. Abstract. https://arxiv.org/abs/2310.02277 (opens in a new tab) ↩1 ↩2 ↩3
  15. Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam and Dmitry Kalenichenko, “Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference”, arXiv:1712.05877, 15 December 2017. Sections 1 and 2, Figure 1. https://arxiv.org/abs/1712.05877 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  16. Tim Dettmers, Mike Lewis, Younes Belkada and Luke Zettlemoyer, “LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale”, arXiv:2208.07339, first posted 15 August 2022, revised 10 November 2022; NeurIPS 2022. Abstract, Section 1, Appendix D. https://arxiv.org/abs/2208.07339 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  17. Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth and Song Han, “SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models”, arXiv:2211.10438, first posted 18 November 2022, revised 29 March 2024; ICML 2023. Abstract. https://arxiv.org/abs/2211.10438 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  18. Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan and Song Han, “AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration”, arXiv:2306.00978, first posted 1 June 2023, revised 25 April 2026; MLSys 2024. Abstract. https://arxiv.org/abs/2306.00978 (opens in a new tab) ↩1 ↩2 ↩3
  19. Tim Dettmers, Artidoro Pagnoni, Ari Holtzman and Luke Zettlemoyer, “QLoRA: Efficient Finetuning of Quantized LLMs”, arXiv:2305.14314, 23 May 2023. Abstract. https://arxiv.org/abs/2305.14314 (opens in a new tab) ↩
  20. Tim Dettmers and Luke Zettlemoyer, “The case for 4-bit precision: k-bit Inference Scaling Laws”, arXiv:2212.09720, first posted 19 December 2022, revised 28 February 2023. Abstract. https://arxiv.org/abs/2212.09720 (opens in a new tab) ↩1 ↩2
  21. Tanishq Kumar, Zachary Ankner, Benjamin F. Spector, Blake Bordelon, Niklas Muennighoff, Mansheej Paul, Cengiz Pehlevan, Christopher Ré and Aditi Raghunathan, “Scaling Laws for Precision”, arXiv:2411.04330, first posted 7 November 2024, revised 30 November 2024. Abstract. https://arxiv.org/abs/2411.04330 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  22. Wei Huang, Xingyu Zheng, Xudong Ma, Haotong Qin, Chengtao Lv, Hong Chen, Jie Luo, Xiaojuan Qi, Xianglong Liu and Michele Magno, “An empirical study of LLaMA3 quantization: from LLMs to MLLMs”, arXiv:2404.14047, first posted 22 April 2024, revised 13 January 2025. Abstract. https://arxiv.org/abs/2404.14047 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  23. Shuming Ma, Hongyu Wang, Shaohan Huang, Xingxing Zhang, Ying Hu, Ting Song, Yan Xia and Furu Wei, “BitNet b1.58 2B4T Technical Report”, arXiv:2504.12285, first posted 16 April 2025, revised 25 April 2025. Abstract. https://arxiv.org/abs/2504.12285 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  24. Tri Dao, “FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning”, arXiv:2307.08691, 17 July 2023. Abstract. https://arxiv.org/abs/2307.08691 (opens in a new tab) ↩1 ↩2
  25. Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang and Ion Stoica, “Efficient Memory Management for Large Language Model Serving with PagedAttention”, arXiv:2309.06180, 12 September 2023; SOSP 2023. Sections 1, 3 and 4. https://arxiv.org/abs/2309.06180 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  26. Joshua Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebrón and Sumit Sanghai, “GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints”, arXiv:2305.13245, first posted 22 May 2023, revised 23 December 2023; EMNLP 2023. Abstract. https://arxiv.org/abs/2305.13245 (opens in a new tab) ↩1 ↩2
  27. Zirui Liu, Jiayi Yuan, Hongye Jin, Shaochen Zhong, Zhaozhuo Xu, Vladimir Braverman, Beidi Chen and Xia Hu, “KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache”, arXiv:2402.02750, first posted 5 February 2024, revised 25 July 2024; ICML 2024. Abstract. https://arxiv.org/abs/2402.02750 (opens in a new tab) ↩1 ↩2
  28. Chenchen Gu, Xiang Lisa Li, Rohith Kuditipudi, Percy Liang and Tatsunori Hashimoto, “Auditing Prompt Caching in Language Model APIs”, arXiv:2502.07776, first posted 11 February 2025, revised 13 July 2025; ICML 2025. Abstract. https://arxiv.org/abs/2502.07776 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  29. Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre and John Jumper, “Accelerating Large Language Model Decoding with Speculative Sampling”, arXiv:2302.01318, 2 February 2023. Abstract. https://arxiv.org/abs/2302.01318 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  30. Yaniv Leviathan, Matan Kalman and Yossi Matias, “Fast Inference from Transformers via Speculative Decoding”, arXiv:2211.17192, first posted 30 November 2022, revised 18 May 2023; ICML 2023. Sections 2 to 4. https://arxiv.org/abs/2211.17192 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  31. Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D. Lee, Deming Chen and Tri Dao, “Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads”, arXiv:2401.10774, first posted 19 January 2024, revised 14 June 2024. Abstract. https://arxiv.org/abs/2401.10774 (opens in a new tab) ↩1 ↩2 ↩3
  32. Yuhui Li, Fangyun Wei, Chao Zhang and Hongyang Zhang, “EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty”, arXiv:2401.15077, first posted 26 January 2024, revised 4 March 2025. Abstract. https://arxiv.org/abs/2401.15077 (opens in a new tab) ↩1 ↩2
  33. MITRE ATLAS, “Release v2026.10”, mitre-atlas/atlas-data on GitHub, 28 October 2026, release notes “Added new case studies” and “Updated existing case studies”. https://github.com/mitre-atlas/atlas-data/releases/tag/v2026.10 (opens in a new tab) ↩1 ↩2
  34. Florian Tramèr, Fan Zhang, Ari Juels, Michael K. Reiter and Thomas Ristenpart, “Stealing Machine Learning Models via Prediction APIs”, arXiv:1609.02943, first posted 9 September 2016, revised 3 October 2016; USENIX Security 2016. Section 1, Table 1. https://arxiv.org/abs/1609.02943 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  35. Kalpesh Krishna, Gaurav Singh Tomar, Ankur P. Parikh, Nicolas Papernot and Mohit Iyyer, “Thieves on Sesame Street! Model Extraction of BERT-based APIs”, arXiv:1910.12366, first posted 27 October 2019, revised 12 October 2020; ICLR 2020. Abstract. https://arxiv.org/abs/1910.12366 (opens in a new tab) ↩1 ↩2 ↩3
  36. Google Threat Intelligence Group, “GTIG AI Threat Tracker: Distillation, Experimentation, and (Continued) Integration of AI for Adversarial Use”, Google Cloud Blog, 12 February 2026, section “Direct Model Risks: Disrupting Model Extraction Attacks”. https://cloud.google.com/blog/topics/threat-intelligence/distillation-experimentation-integration-ai-adversarial-use (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  37. Anthropic, “Detecting and preventing distillation attacks”, 23 February 2026. https://www.anthropic.com/news/detecting-and-preventing-distillation-attacks (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14
  38. NSA, CISA and FBI, “China-Based Artificial Intelligence Companies Conducting Industrial-Scale Distillation Campaigns Against U.S. AI Companies”, joint cybersecurity advisory AA26-251A, 8 September 2026, accessed 26 November 2026. https://www.cisa.gov/news-events/cybersecurity-advisories/aa26-251a (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15
  39. DeepSeek-AI, “DeepSeek-V3 Technical Report”, arXiv:2412.19437, first posted 27 December 2024, revised 18 February 2025, Section 1 (training cost estimate). https://arxiv.org/abs/2412.19437 (opens in a new tab) ↩
  40. Anthropic Threat Intelligence, “Detecting and countering misuse of AI: September 2026”, 10 September 2026, chapter “Illicit distillation and scaled abuse” (cases GTG-16001, 16002, 16003, 16005, 16006, 16008 and 16012). The date is from the report PDF linked on the page, which is dated September 10, 2026, and from Anthropic’s 12 October 2026 post, which lists the report as published 10 September 2026. https://www.anthropic.com/threat-intelligence-report-september-2026 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18 ↩19
  41. OpenAI, “Disrupting a coordinated model-distillation campaign”, 30 September 2026. https://openai.com/index/disrupting-a-coordinated-model-distillation-campaign/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
  42. Anthropic, “Strengthening our defenses against distillation attacks”, 12 October 2026. https://www.anthropic.com/news/distillation-defenses (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13
  43. Yash Savani, Asher Trockman, Zhili Feng, Yixuan Even Xu, Avi Schwarzschild, Alexander Robey, Marc Finzi and J. Zico Kolter, “Antidistillation Sampling”, arXiv:2504.13146, first posted 17 April 2025, revised 26 October 2025; NeurIPS 2025. Section 1, Figure 1. https://arxiv.org/abs/2504.13146 (opens in a new tab) ↩1 ↩2
  44. OpenAI, “Terms of Use” (terms for individual use of OpenAI services), effective 1 January 2026, section “What you cannot do”, accessed 26 November 2026. https://openai.com/policies/row-terms-of-use/ (opens in a new tab) ↩
  45. Anthropic, “Commercial Terms of Service”, effective 17 June 2025, section D.4 “Use Restrictions”, accessed 26 November 2026. https://www.anthropic.com/legal/commercial-terms (opens in a new tab) ↩
  46. Kazuki Egashira, Mark Vero, Robin Staab, Jingxuan He and Martin Vechev, “Exploiting LLM Quantization”, arXiv:2405.18137, first posted 28 May 2024, revised 4 November 2024. Sections 1, 3 and 4, Tables 1, 2 and 6. https://arxiv.org/abs/2405.18137 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5