The Illusion of Equivalency: Statistical Characterization of Quantization Effects in LLMs
Summary
This study systematically analyzes post-training quantization (PTQ) effects on Large Language Models' (LLMs) internal structure and behavioral consistency, challenging the sole reliance on accuracy and perplexity. Researchers introduced "correctness agreement," a decision-level metric, and examined quantization as a structural operator on attention weights. Evaluating Llama-3.2-3B, Vicuna-7B-v1.5, Mistral-7B-v0.1, and Llama-3.1-8B across 8-bit to 2-bit legacy and K-quantization schemes, the findings reveal significant behavioral divergence under moderate quantization, even when aggregate task performance appears stable. Specifically, Query (Q) and Key (K) projections are consistently more sensitive than Value (V) and Output (O) projections. The analysis identifies Q4_K as the upper bound for safe quantization, Q3_K as the onset of degradation, and Q2_K as a breakdown point, highlighting a critical disconnect between conventional metrics and true behavioral preservation.
Key takeaway
For machine learning engineers deploying quantized LLMs, relying solely on perplexity or accuracy metrics is insufficient and risks deploying models with unpredictable behavioral shifts. You should integrate "correctness agreement" into your evaluation pipeline to ensure decision-level consistency with the base model. Prioritize quantization schemes at Q4_K or higher, and consider allocating higher precision to Query and Key attention layers, as they are most sensitive to compression. This approach mitigates hidden behavioral degradation in resource-constrained deployments.
Key insights
Quantization significantly alters LLM internal structure and decision behavior, often undetected by standard accuracy or perplexity.
Principles
- Standard performance metrics (accuracy, perplexity) do not fully capture behavioral consistency in quantized LLMs.
- Query (Q) and Key (K) attention projections are inherently more sensitive to quantization than Value (V) and Output (O).
- Behavioral agreement with base models degrades significantly even under moderate quantization.
Method
Quantify structural deviation in attention weights using statistical moments and divergence metrics, then link these changes to decision-level consistency via "correctness agreement."
In practice
- Integrate "correctness agreement" into LLM quantization evaluation workflows.
- Consider adaptive quantization strategies that allocate higher precision to Q and K layers.
- Limit post-training quantization to Q4_K or higher to maintain behavioral fidelity.
Topics
- Post-Training Quantization
- Large Language Models
- Attention Mechanisms
- Behavioral Evaluation
- Correctness Agreement
- llama.cpp
Code references
Best for: Research Scientist, NLP Engineer, AI Scientist, Machine Learning Engineer, AI Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.AI updates on arXiv.org.