The Illusion of Equivalency: Statistical Characterization of Quantization Effects in LLMs

· Source: cs.AI updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, extended

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

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

Topics

Code references

Best for: Research Scientist, NLP Engineer, AI Scientist, Machine Learning Engineer, AI Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.AI updates on arXiv.org.