mlsanityData to 14 Oct 2026

Exploiting LLM Quantization

arXiv 2405.18137 ↗First posted 28 May 2024cs.LG cs.AI cs.CRcited by 65

Not on the map. Why?

Abstract (arXiv)

Quantization leverages lower-precision weights to reduce the memory usage of large language models (LLMs) and is a key technique for enabling their deployment on commodity hardware. While LLM quantization's impact on utility has been extensively explored, this work for the first time studies its adverse effects from a security perspective. We reveal that widely used quantization methods can be exploited to produce a harmful quantized LLM, even though the full-precision counterpart appears benign, potentially tricking users into deploying the malicious quantized model. We demonstrate this threat using a three-staged attack framework: (i) first, we obtain a malicious LLM through fine-tuning on an adversarial task; (ii) next, we quantize the malicious model and calculate constraints that characterize all full-precision models that map to the same quantized model; (iii) finally, using projected gradient descent, we tune out the poisoned behavior from the full-precision model while ensuring that its weights satisfy the constraints computed in step (ii). This procedure results in an LLM that exhibits benign behavior in full precision but when quantized, it follows the adversarial behavior injected in step (i). We experimentally demonstrate the feasibility and severity of such an attack across three diverse scenarios: vulnerable code generation, content injection, and over-refusal attack. In practice, the adversary could host the resulting full-precision model on an LLM community hub such as Hugging Face, exposing millions of users to the threat of deploying its malicious quantized version on their devices.

Key facts. Cited by 65 papers in the map (data through 14 Oct 2026). Builds on 34 of its 47 references that are in the map. First posted on arXiv 28 May 2024.

Builds on

34 of 47 references.

References · 34

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2023GPT-4 Technical Reportcited by 18,396
  4. 2022Training language models to follow instructions with human feedbackcited by 15,971
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  7. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  8. 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
  9. 2021Program Synthesis with Large Language Modelscited by 3,637
  10. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  11. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  12. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
22 more
  1. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
  2. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
  3. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
  4. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
  5. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  6. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
  7. 2023Instruction Tuning with GPT-4cited by 686
  8. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
  9. 2023Is ChatGPT a General-Purpose Natural Language Processing Task Solver?cited by 488
  10. 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 461
  11. 2023SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compressioncited by 367
  12. 2023Poisoning Web-Scale Training Datasets is Practicalcited by 290
  13. 2024Extreme Compression of Large Language Models via Additive Quantizationcited by 232
  14. 2024Foundational Challenges in Assuring Alignment and Safety of Large Language Modelscited by 199
  15. 2024GEAR: An Efficient KV Cache Compression Recipe for Near-Lossless Generative Inference of LLMcited by 158
  16. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 155
  17. 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 131
  18. 2023On the Exploitability of Instruction Tuningcited by 116
  19. 2024Instruction Tuning for Secure Code Generationcited by 68
  20. 2021Quantization Backdoors to Deep Learning Commercial Frameworkscited by 29
  21. 2021Qu-ANTI-zation: Exploiting Quantization Artifacts for Achieving Adversarial Outcomescited by 19
  22. 2021Stealthy Backdoors as Compression Artifactscited by 18

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 5; 2025: 30; 2026: 30.

65 papers.

Sort:

By area:

  1. 2024Catastrophic Failure of LLM Unlearning via Quantizationcited by 81
  2. 2025QeRL: Beyond Efficiency -- Quantization-enhanced Reinforcement Learning for LLMscited by 16
  3. 2024Optimal Query Allocation in Extractive QA with LLMs: A Learning-to-Defer Framework with Theoretical Guaranteescited by 15
  4. 2025A Survey on Inference Engines for Large Language Models: Perspectives on Optimization and Efficiencycited by 12
  5. 2025Position: The Real Barrier to LLM Agent Usability is Agentic ROIcited by 12
  6. 2025Low-bit Model Quantization for Deep Neural Networks: A Surveycited by 11
  7. 2025Rethinking Predictive Modeling for LLM Routing: When Simple kNN Beats Complex Learned Routerscited by 11
  8. 2025MixAT: Combining Continuous and Discrete Adversarial Training for LLMscited by 11
  9. 2025Unraveling Spatio-Temporal Foundation Models via the Pipeline Lens: A Comprehensive Reviewcited by 10
  10. 2024Large Language Model Supply Chain: Open Problems From the Security Perspectivecited by 9
  11. 2025Quantized but Deceptive? A Multi-Dimensional Truthfulness Evaluation of Quantized LLMscited by 9
  12. 2025Activation Approximations Can Incur Safety Vulnerabilities Even in Aligned LLMs: Comprehensive Analysis and Defensecited by 7
38 more
  1. 2025The Larger the Merrier? Efficient Large AI Model Inference in Wireless Edge Networkscited by 7
  2. 2025Your Compiler is Backdooring Your Model: Understanding and Exploiting Compilation Inconsistency Vulnerabilities in Deep Learning Compilerscited by 7
  3. 2025Fewer Weights, More Problems: A Practical Attack on LLM Pruningcited by 7
  4. 2024Direct Quantized Training of Language Models with Stochastic Roundingcited by 6
  5. 2026LoopQ: Quantization for Looped Language Modelscited by 6
  6. 2025Strategyproof Reinforcement Learning from Human Feedbackcited by 5
  7. 2025Watch your steps: Dormant Adversarial Behaviors that Activate upon LLM Finetuningcited by 5
  8. 2025Scalable Parameter and Memory Efficient Pretraining for LLM: Recent Algorithmic Advances and Benchmarkingcited by 5
  9. 2025DBellQuant: Breaking the Bell with Double-Bell Transformation for LLMs Post Training Binarizationcited by 4
  10. 2026ZipMoE: Efficient On-Device MoE Serving via Lossless Compression and Cache-Affinity Schedulingcited by 4
  11. 2026Hair-Trigger Alignment: Black-Box Evaluation Cannot Guarantee Post-Update Alignmentcited by 4
  12. 2026FreeAct: Freeing Activations for LLM Quantizationcited by 4
  13. 2025LegalEval-Q: A New Benchmark for The Quality Evaluation of LLM-Generated Legal Textcited by 3
  14. 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generationcited by 3
  15. 2025CompLeak: Deep Learning Model Compression Exacerbates Privacy Leakagecited by 3
  16. 2026Why Does the LLM Stop Computing: An Empirical Study of User-Reported Failures in Open-Source LLMscited by 3
  17. 2026Rethinking Token Reduction for Large Vision-Language Modelscited by 3
  18. 2025Q-resafe: Assessing Safety Risks and Quantization-aware Safety Patching for Quantized Large Language Modelscited by 2
  19. 2026Quantamination: Dynamic Quantization Leaks Your Data Across the Batchcited by 2
  20. 2026Benchmarking Trustworthiness of SLMs: Pre-trained vs. Compressedcited by 2
  21. 2026Broken on Arrival: Silently Defective LLM Artifacts in Public Model Registries and How to Catch Themcited by 2
  22. 2025LiteLMGuard: Seamless and Lightweight On-Device Prompt Filtering for Safeguarding Small Language Models against Quantization-induced Risks and Vulnerabilitiescited by 1
  23. 2025Tuning without Peeking: Provable Generalization Bounds and Robust LLM Post-Trainingcited by 1
  24. 2025AttestLLM: Efficient Attestation Framework for Billion-scale On-device LLMscited by 1
  25. 2025From Quarter to All: Accelerating Speculative LLM Decoding via Floating-Point Exponent Remapping and Parameter Sharingcited by 1
  26. 2026Theory of Minimal Weight Perturbations in Deep Networks and its Applications for Low-Rank Activated Backdoor Attackscited by 1
  27. 2026Trusted Weights, Treacherous Optimizations? Optimization-Triggered Backdoor Attacks on LLMscited by 1
  28. 2026Security in the Fine-Tuning Lifecycle of Large Language Models: Threats, Defenses,Evaluation, and Future Directionscited by 1
  29. 2026Quality Is Not a Safety Proxy Under Quantizationcited by 1
  30. 2026Which Decisions Low-Bit Quantization Breaks, and How to Predict Themcited by 1
  31. 2024Efficient Learning Content Retrieval with Knowledge Injectioncited by 0
  32. 2025Optimization Problem Solving Can Transition to Evolutionary Agentic Workflowscited by 0
  33. 2025The Case for Instance-Optimized LLMs in OLAP Databasescited by 0
  34. 2025Surveying the Operational Cybersecurity and Supply Chain Threat Landscape when Developing and Deploying AI Systemscited by 0
  35. 2025Embedding Poisoning: Bypassing Safety Alignment via Embedding Semantic Shiftcited by 0
  36. 2025Fair-GPTQ: Bias-Aware Quantization for Large Language Modelscited by 0
  37. 2025Validity Is What You Needcited by 0
  38. 2026Agentic Federated Learning: The Future of Distributed Training Orchestrationcited by 0

50 most cited of 65 All 65 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2024Fine-Tuning, Quantization, and LLMs: Navigating Unintended Outcomes
  2. 2026Adversarial Contrastive Learning for LLM Quantization Attacks
  3. 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Models
  4. 2024Recent Advances in Attack and Defense Approaches of Large Language Models
  5. 2026QuantGuard: Learnable Rounding for Repairing Quantization-Conditioned Backdoors in LLMs
  6. 2025AdversariaLLM: A Unified and Modular Toolbox for LLM Robustness Research
  7. 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attacks
  8. 2025Paper Summary Attack: Jailbreaking LLMs through LLM Safety Papers