Skip to content

Aggressive compression enables LLM weight stealingAggressive Compression Enables LLM Weight Theft

arXiv· arXiv:2601.01296· Davis Brown, Juan-Pablo Rivera, Dan Hendrycks, Mantas Mazeika·Indexed by this site · 2026-10-12· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors relax the decompression constraint for the exfiltration scenario: Qwen2-1.5B achieves MMLU 54.9 at 1.15 BPP (original model 56.5).

Threat modelAn APT that has compromised an inference server must send the complete unencrypted weights over the network and hide them in legitimate outputs (e.g., steganography); it cannot use physical media. The defender performs deep packet inspection with a fixed per-time detection probability. Partial exfiltration is far less valuable than complete exfiltration. The initial intrusion method and hardware security are out of scope.

Questions
Frontier model weights have both economic and security value; exfiltration must hide a large number of weights in the legitimate outputs of the inference API. The authors believe that inference quantization is at most 4×, and requires that after decompression, low-cost inference is still possible; exfiltration can accept post-hoc fine-tuning, so compressibility can shorten transmission from months to days.
Methods
The authors use a quantitative model to write exfiltration days as a function of model bit count, compression ratio, per-user egress allowance, number of controlled accounts, and steganography ratio, with success probability determined by daily detection probability and days. For compression, they do per-layer grouped k-means, iterate residuals 1 to 4 times with learned scaling, then fine-tune on pretraining and instruction data to recover.
Experiments and results
The MMLU for Qwen2-1.5B is 54.9 at 1.15 BPP with 1 billion tokens (original model 56.5). For Qwen2-7B, Ours is 48.5 at 1.52 BPP with 50 million tokens, and AQLM is 34.0. The watermark has 0 BCH errors after fine-tuning on 1.2M tokens.
Limitations and future work
Appendix C states that the detection probability does not vary with attack activity, no distribution estimation of factors was performed, and K-means costs were not included. The compression experiments include Qwen2 and Llama 3, among others; Figure 10 states that Llama 3 was not fully evaluated. Section 5.3 states that adversarial removal of watermarks was not tested.
Experimental setupQwen2-1.5B、Qwen2-7B et al. · MMLU、C4 et al. · MMLU accuracy、C4 log loss et al.
Evaluated models
Qwen2-1.5BQwen2-7BQwen2.5-1.5BPythia-70mPythia-160mPythia-410mLlama-3-8BLlama-3-70B
Benchmarks
MMLUC4RedPajamaMagpie
Metrics
MMLU accuracyC4 log lossBPPMSEdays to exfiltrateprobability of detectionBER
AI summaryThe paper "Aggressive Compression Enables LLM Weight Theft" shows that by relaxing decompression constraints for weight exfiltration scenarios and doing customized compression, attackers can achieve compression ratios from 16x to 100x, reducing the time needed to illegally transfer model weights from a defender's server from months to days. The authors argue that the single factor of weight compressibility significantly raises the exfiltration risk of large language models. The paper also studies three types of defenses to reduce exfiltration risk: making models harder to compress, harder to find, and using forensic watermarking to trace provenance for post-hoc analysis; the authors say forensic watermarking is both effective and low-cost.

The paper "Aggressive Compression Enables LLM Weight Theft" shows that by relaxing decompression constraints for weight exfiltration scenarios and doing customized compression, attackers can achieve compression ratios from 16x to 100x, reducing the time needed to illegally transfer model weights from a defender's server from months to days. The authors argue that the single factor of weight compressibility significantly raises the exfiltration risk of large language models. The paper also studies three types of defenses to reduce exfiltration risk: making models harder to compress, harder to find, and using forensic watermarking to trace provenance for post-hoc analysis; the authors say forensic watermarking is both effective and low-cost.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors argue that the overlooked compressibility of weights can shorten exfiltration from months to days.

    How compressible are model weights, and would that turn data center exfiltration from hard to feasible? There is a lack of quantification that accounts for exfiltration constraints.

    • Scenario: The authors argue that as frontier model training costs rise, weights gain economic and national security value, increasing the incentive for theft. Exfiltration is a multi-step network attack; the authors view compressibility as a factor that increases risk.
    • Existing gap: Inference quantization must still allow low-overhead forward passes after compression; the works cited by the authors achieve at most 4× (Liu et al., 2024), while servers commonly use 2× or even 4×. The authors claim exfiltration feasibility remains unclear because exfiltration can tolerate high-cost decompression afterward.
    • Observation: If the requirement for low-overhead inference after decompression is relaxed, lossy compression for exfiltration can be much higher. The abstract mentions 16× to 100× with minimal cost, reducing transmission from months to days; the contribution list mentions 10–100×.
    • Proposed in this paper: A quantitative model of exfiltration success, compression for exfiltration, and three types of model-level defenses—harder to compress, harder to reassemble, and post-hoc forensic watermarking. The authors claim forensic watermarking is both effective and cheap.
    • Threat model:
      • Target: A standard APT stealing the actual weights of a language model served by an inference server that outputs text, image, video, or audio; not distillation via sampling.
      • Capabilities: Has already compromised the server and obtained the unencrypted weights; not a physical insider, cannot use USB drives, must go over the network; upload rate must be maintained until the attack completes; deep packet inspection forces data to be hidden in legitimate outputs (e.g., steganography).
      • Other settings: Fake accounts for Sybil attacks to exfiltrate data in model responses; partial exfiltration is far less valuable than complete exfiltration; hardware security is not considered; how the server was initially compromised is out of scope.
      • Defender: Monitors activity and traffic; with a fixed per-time probability of detecting malicious behavior, longer activities are more likely to be discovered; egress bandwidth is provisioned based on expected user traffic.
  2. What related research exists?

    Related work includes model stealing, APT exfiltration, inference quantization, and watermarking; the authors claim quantization has not considered exfiltration.

    The introduction and Related Work are divided into four groups. The authors only state differences from this paper where they are named.

    Model stealing and distillation

    • Black-box exact stealing: Tramèr et al. (2016) extract exact weights of a logistic classifier using only the API; Carlini et al. (2024) extract exact parameters of the last layer without training.
    • Capability distillation: Shridhar et al. (2023), Gu et al. (2024), and Li and Mooney (2024) distill capabilities via queries. The authors state that the resulting models are usually inferior to the teacher.

    Data exfiltration and APT

    • Long-term persistence: Alshamrani et al. (2019) discuss targeted intrusions and slow exfiltration after long stays; data volume is key, and compression is sometimes used (ATT&CK, 2023).
    • System-side measures: Moving target defense periodically changes the attack surface (Crouse et al., 2015; Sengupta et al., 2020). Greenblatt (2024) suggests limiting uploads to the minimum that meets customer needs; Rinberg et al. (2025) inference verification increases steganography difficulty under similar upload limits.

    LLM quantization

    • Inference compression: Nevo et al. (2024) note that the effective volume of weights is uncertain, with 2× or even 4× common in serving. Zhu et al. (2023), GPTQ (Frantar et al., 2022), AQLM (Egiazarian et al., 2024), SpinQuant (Liu et al., 2024), and QuIP# (Tseng et al., 2024) target inference fidelity. The authors state that these works have not previously considered weight exfiltration; and they claim that to their knowledge, this paper is the first work studying "making weights harder to compress" as a defense against exfiltration.

    Weight watermarking

    • Uchida et al. (2017), DeepSigns (Rouhani et al., 2018), Wang and Kerschbaum (2019), and Tattooed (Pagnotta et al., 2022) embed ownership proofs in parameters. The authors use watermarking for source and time tracing after exfiltration.

    Baselines and benchmarks

    • Main experiment baselines are the uncompressed original model, AQLM, and Random Weights under the same fine-tuning pipeline. Rate-distortion also compares AQLM with PV tuning (Malinovskii et al., 2024). Evaluation uses MMLU, C4 log loss, MSE, and BPP; decompression data are RedPajama and Magpie.

    The authors place this paper outside inference quantization: exfiltration allows high decompression cost, so the ratio can be higher, and they add compression-resistant defenses.

  3. How does the paper address this problem?

    Use a quantitative model to relate compression ratio to exfiltration time, then use residual vector quantization plus fine-tuning to shrink the weights.

    Overall, there are three steps: quantitative exfiltration model estimates how compression changes time and detection probability, VQ-then-train compresses weights under high decompression cost, and then compares three types of model-level defenses.

    Quantitative model

    The setting is an inference server with a public API. Exfiltration days are defined as T = M × c / (E × N × s) M is the number of bits before compression, c is the compression ratio as called in the paper (multiplicative reduction), E is the daily export bits per user, N is the number of controlled users per day, and s is the proportion of output bits that can hide data. The success probability is (1−p)T, where p is the daily detection probability; failure occurs if detected before the complete transmission.

    Usage is divided into four tiers: text only; plus images; plus speech; plus video. Appendix D calibrates to a GPT-4-like scenario. Table 2 takes 1.8T half-precision parameters, M as 2.88×10^13 bits, c as 1/32, N ≤ 200,000, s ≤ 0.1, and p as 0.001. Daily export per user: text only 240,000 bits; plus images 12,240,000; plus speech 242,640,000; plus video 9,242,640,000. The authors assume text steganography is at most a few bits per word, continuous modalities may be higher, but all tiers in the model use s not exceeding 0.1.

    Exfiltration-oriented compression

    The method is adapted from additive quantization, i.e., a generalization of k-means. The authors do not require low-cost inference after decompression.

    1. Each layer's weights are cut into contiguous groups by rows and columns, k-means is applied within groups, and codebook vectors represent them.
    2. Subtract the original weights from the reconstruction, compress the residuals again, repeat 1 to 4 times.
    3. Then perform one-dimensional k-means on each group to learn a scaling factor.
    4. Search hyperparameters with MSE to the original weights, and take points on the Pareto front for main experiments.

    Decompression setting

    Decompression is to reconstruct the full parameters from the quantized representation, then first do continued pretraining; if the original model had instruction tuning, then do instruction tuning. The authors state that they do not require that after fine-tuning, the model can still be quantized to the same bit depth.

    Qwen2-1.5B is continued pretrained on RedPajama and supervised fine-tuned on Magpie, totaling 1 billion tokens, which the authors say is about 0.01% of Qwen2's 7 trillion pretraining tokens. Qwen2-7B's fine-tuning data is limited to 50 million tokens.

    Three types of model-level defenses

    • Compression-resistant fine-tuning: Add a non-diagonal penalty on the row covariance to the task loss of Qwen2.5-1.5B, making rows less correlated. The authors' reasoning is that less correlated rows are more like random and thus harder to compress. Fine-tune on 100M tokens.
    • Moving target: Adopt Shlegeris (2023), applying continuous rotations to self-attention Q, K. After invertible transformation, attention scores are unchanged, functionality is unchanged, but weight segments at different times are misaligned. The authors state that adaptive attacks can use SVD for canonicalisation: the singular vector bases of the product are stable across snapshots, but canonicalized weights still depend on the current transformation. Appendix E.1 embeds one layer of Qwen2.5-1.5B into Qwen2.5-0.5B via dimension bridging, training only rotations. Appendix E states that this defense alone is insufficient.
    • Forensic watermark: 128-bit time and source are encoded with BCH(511,447) and spread into a single layer model.layers.27.mlp.down_proj.weight. After hyperparameter search, the magnitude is γ = 6σ/√R. Perform one backward pass on a layer's input-output and a batch of RedPajama tokens, projecting the watermark onto the orthogonal direction of that gradient; Appendix F states the batch is 2048 tokens. This applies Huang et al. (2024) to a single layer. The paper does not specify the model name for this experiment.

    Section 5.4 and Appendix B also discuss anomaly detection, hardware secure boot, upload rate limits, and physically separating LLM servers from multimodal exports. These are not made into main experiments.

  4. What experiments did the paper conduct?

    Qwen2-1.5B at 1.15 BPP has MMLU of 54.9, while the original model has 56.5 (Table 1).

    Experimental Setup

    • Models: Main compression on Qwen2-1.5B and Qwen2-7B. Rate–distortion also includes the Pythia suite; Figure 8 names Pythia-70m, Pythia-160m, Pythia-410m, as well as Llama-3-8B and Llama-3-70B. Defenses use Qwen2.5-1.5B; stitching uses Qwen2.5-0.5B as a matched-size auxiliary model.
    • Data scale: Qwen2-1.5B decompression budget is 1 billion tokens (RedPajama and Magpie); Qwen2-7B is 50 million tokens. In Figure 8, Pythia-70m uses 8k C4 samples, with an additional curve at 150K C4 samples. Watermark fine-tuning uses 1.2M tokens on Magpie.
    • Baselines: Uncompressed original model, AQLM, and Random Weights under the same fine-tuning. Rate–distortion also compares AQLM+PV tuning.
    • Metrics: BPP, MMLU accuracy, C4 log loss (nats), and weight MSE. The exfiltration model provides days and detection probabilities. Watermark uses raw BER, BCH error count, and SNR.
    • Evaluation: MMLU and C4 log loss; the paper does not mention LLM judges or human agreement. Exfiltration curves come from equations in Section 3.2, not online transmission.
    • Repetition: The paper does not report random seeds or number of repetitions.

    Main Results

    The row order in Table 1 corresponds to the BPP in the table notes: for 1.5B, 0.58, 1.15, 2.03; for 7B, 1.5, 2.26, 3.01. In the main text, the row with MMLU 48.5 and C4 3.22 on 7B is called 1.52 BPP, matching the Low row. Random Weights is not in the table below; see later.

    Swipe horizontally to read the table

    Method and BPP (1.5B / 7B)1.5B MMLU1.5B C47B MMLU7B C4
    Original model (no compression)56.53.2870.52.55
    Ours Low (0.58 / 1.5)48.44.2748.53.22
    Ours Medium (1.15 / 2.26)54.93.6961.23.16
    Ours High (2.03 / 3.01)55.53.3365.52.81
    AQLM Low24.18.4934.03.37
    AQLM Medium23.56.3960.33.28
    AQLM High50.73.6565.62.74
    • The authors claim AQLM drops below 2.03 BPP, while this paper's decline is smoother; at 1.15 BPP, MMLU drops only 1.6%, and they claim 16× compression relative to the original model without downstream performance degradation. In the table, the 1.5B Medium row has MMLU 54.9, original 56.5.
    • The authors claim this paper outperforms AQLM at equivalent compression, especially at lower BPP, with lower C4 log loss as well. A counterexample in the table is the Qwen2-7B High row: AQLM MMLU 65.6, C4 2.74; Ours 65.5 and 2.81.
    • Random Weights MMLU is 25.6 (1.5B) and 27.4 (7B), C4 6.07 and 6.0. The authors claim this fine-tuning does not inject new knowledge and must start from compressed weights.

    Exfiltration Time Estimates

    Figure 2 shows exfiltration days and detection probabilities for compressed and full models; the caption states detection probability is computed from days. Extracted text does not specify which number corresponds to the compressed model. Readable configurations include: 200K accounts, steg. 1%, text only, 1.9e+03 days and 6.0e+04 days, detection probability 100%; 200K, steg. 10%, text only, 188 days and 6.0e+03 days, detection probabilities 85% and 100%; 200K, steg. 1%, text+image, 37 days and 1.2e+03 days, detection probabilities 31% and 100%. Figure 2 does not specify the p used; Table 2 has p = 0.001.

    The authors claim compression reduces exfiltration time by multiple orders of magnitude and increases attack success probability. The abstract states from months to days with compression 16× to 100×; the contribution list states 10–100×. In Figure 11, the y-axis is Expected Cumulative Bits Exfiltrated aids, x-axis is Days; the caption states the red line is the original size rank, the green line the size after compression by 1/32, and that the number of accounts and output modalities also have major effects.

    Defense Experiments

    • Anti-compression: After fine-tuning Qwen2.5-1.5B on 100M tokens, the authors claim compression cost increases by 3%–10%. Figure 5 compares MSE–BPP for the standard and anti-compression models; the authors claim each level is harder to compress but with noise. In Figure 6, the authors claim the anti-compression model is almost always harder to compress at smaller BPP.
    • Moving target: In Figure 12, the authors claim that training only rotations for tens of steps can restore the performance of that layer in Qwen2.5-1.5B, and MMLU is also restored; without stitching, learning end-to-end layer-by-layer canonical backends becomes much harder. Appendix E states SVD/QR canonicalisation can bypass this defense. The authors also tried heavy-tailed or sparse noise, claiming SVD and QR reconstruction error increases by nearly 50%, at an MMLU cost of 6%; the paper does not specify the model for that experiment. The authors believe a sophisticated attacker could directly filter such noise.
    • Watermark: In Figure 7, the x-axis is weight drift and the y-axis is SNR; the authors claim SNR moves very little during full supervised fine-tuning. On Magpie with 1.2M tokens and learning rates from 1×10^{-5} to 1×10^{-3}, raw BER is below 3% and BCH decoding errors are 0. On an NVIDIA A100 with weights and data preloaded, computation time is 0.1s. The authors believe attribution may still be possible after further fine-tuning sure TIT, and state that adversarial removal was not tested.

    Other Ablations and Analysis

    • Figure 3: Within the Pythia family, the authors claim larger models achieve better MSE after compression; they call this unexpected because MSE does not depend on parameter count.
    • The main text claims this paper's log loss is closer to the original model than AQLM+PV tuning, with an inflection point around 0.1 BPP; Figure 8's caption states Pythia-70m's inflection point is around 0.5–0.6 BPP, and the trend for larger Pythia is less clear.
    • Figure 10: The authors claim Llama-3-70B's Pareto frontier remains high fidelity down to 0.1 BPP, i.e., 160×; the caption states full evaluation was not done due to resource constraints. Based on this, the main text argues it may be compressible to 0.1 BPP.
    • Figure 9 provides Qwen2-7B's MSE–BPP and Pareto frontier; the main text does not give specific readings on the curve.
  5. What are some points that can be further explored?

    Appendix C states the quantitative model does not include the rise in detection probability with activity, nor the K-means cost.

    Limitations and Future Directions Noted by the Authors

    • The threat model does not account for increased detection probability from increased attack activity (Appendix C).
    • Key factors are not treated as distributional estimates; only ranges are given for some factors (Appendix C).
    • Does not include the computational and storage cost of K-means on the compromised server; cluster centers could be discovered, and the attacker might iterate in blocks, keeping only a few centers to stay below thresholds (Appendix C).
    • The authors describe this as a preliminary investigation requiring further research to fully understand and model the threat (Appendix C). The conclusion states the results motivate continued research into exfiltration risk and increased investment in weight protection (Section 6).
    • The moving target alone is insufficient, as canonicalisation can bypass it; future work could seek transformations whose inversion lacks low-overhead algorithms (Appendix E).
    • The naive noise they tried can be filtered by a sophisticated attacker, so additional hardening may be needed (Appendix E).

    Experimental Coverage

    • The main results table covers Qwen2-1.5B (1 billion tokens, BPP 0.58, 1.15, 2.03) and Qwen2-7B (50 million tokens, BPP 1.5, 2.26, 3.01), with baselines of original model, AQLM, and Random Weights (Table 1).
    • MSE curves include Pythia-70m, Pythia-160m, Pythia-410m, and Llama-3-8B, Llama-3-70B. Figure 10's caption states Llama 3 did not undergo full downstream evaluation.
    • The defense experiments specify Qwen2.5-1.5B as the model error, with Qwen2.5-0.5B as the auxiliary model. The watermark layer is model.layers.27.mlp.down_proj.weight; the paper does not specify the model for that experiment. Section 5.3 states adversarial removal was not tested.
    • Exfiltration days and detection probabilities come from equations in Section 3.2 and Table 2, calibrated to a GPT-4-like model with 1.8T parameters. The paper does not report real network transmission experiments.
    • Downstream metrics are MMLU and C4 log loss. The paper does not report repetitions, LLM-based evaluation, or human agreement.
  6. Summarize the main content of the paper

    The authors compress weights using residual quantization plus fine-tuning, and claim that the forensic watermark is cheap and remains decodable after fine-tuning.

    This work treats LLM weight exfiltration as an APT: the attacker already has the unencrypted weights but must hide the full weights inside the legitimate outputs of the inference API. The authors argue that compressibility is an overlooked factor, because inference quantization requires that the decompressed weights still support low-overhead forward passes, whereas someone stealing weights can accept post-hoc fine-tuning.

    • Model: the number of days is written as a function of pre-compression size, compression ratio, per-user egress, number of controlled accounts, and steganographic ratio; the success probability is determined by a fixed daily detection probability and the number of days. Table 2 uses 1.8T half-precision parameters and a compression ratio of 1/32 for order-of-magnitude estimates.
    • Compression: per-layer grouped k-means, with residuals compressed 1 to 4 additional times and learned scaling, then recovery on pretraining and instruction data, without requiring the recovered weights to maintain the same bit depth.
    • Main table: Qwen2-1.5B, 1 billion tokens, 1.15 BPP gives MMLU of 54.9, while the original model gives 56.5; the authors claim this yields 16× compression with MMLU dropping only 1.6%. Qwen2-7B, 50 million tokens, 1.52 BPP gives Ours an MMLU of 48.5, while AQLM gives 34.0. For 7B in the High row of table note 3.01 BPP, AQLM's MMLU of 65.6 is higher than Ours' 65.5.
    • Time and larger models: the abstract writes 16× to 100×, from months to days; the contributions list writes 10–100×. The authors claim Llama-3-70B's weight MSE can be maintained down to 0.1 BPP (160×), but no full evaluation was done.
    • Defenses: anti-compression fine-tuning raises compression cost by 3%–10%. Moving target can be bypassed by SVD canonicalisation, and a few dozen steps of single-layer rotation suffice for recovery. Forensic watermarking after 1.2M token fine-tuning has raw BER below 3% and BCH errors of 0, taking 0.1 seconds on an A100. The authors claim it is cheap and effective, but did not test adversarial removal.
    • Authors' conclusion: compression changes whether exfiltration is feasible; among the three, forensic watermarking is more worthwhile as a mitigation lever. Appendix C also states that the quantitative model does not adjust detection rate with attack intensity and does not account for the K-means cost on the server.

Related papers

Show 3 more papers
Read originalarxiv.org