INT8 Quantization Kernels Show Unexpected Divergence in LLMs
Key takeaways
- Different INT8 GPU kernels can produce divergent results in LLM inference despite identical inputs.
- The divergence stems from scale application and output rounding, not the core integer dot product.
- These small, layer-level differences accumulate to cause complete end-to-end sequence divergence.
- Reproducibility in quantized LLM inference requires careful attention to kernel implementations and rounding behaviors.
Who benefits
Summary
A study reveals that different INT8 linear kernels (CUTLASS vs. Triton) used in LLM inference, even with identical inputs, produce bit-different outputs, leading to complete sequence divergence. The discrepancy is localized to scale application and output rounding after exact integer dot products.
Why it matters
For professionals deploying or developing quantized LLMs, this research highlights a critical, often overlooked, source of non-determinism and reproducibility issues. Understanding these kernel-level discrepancies is crucial for ensuring consistent model behavior and debugging inference pipelines.
How to implement this in your domain
- 1Implement kernel conformance checks: Develop or utilize tools to verify bitwise agreement between different INT8 kernels in your inference stack.
- 2Standardize inference environments: Ensure consistent kernel usage across development, testing, and production environments to minimize unexpected divergence.
- 3Investigate rounding strategies: Analyze the impact of different scaling and rounding implementations in your chosen inference frameworks.
- 4Evaluate reproducibility: Conduct thorough end-to-end reproducibility tests for quantized LLMs, especially when changing hardware or software versions.
- 5Consider FP8 alternatives: If bitwise exactness is paramount, evaluate FP8 GEMM, noting its different divergence signature.
Original post by Teng-Ruei Chen
"arXiv:2608.13756v1 Announce Type: new Abstract: Two GPU kernels implementing the same scaled INT8 GEMM interface are usually treated as interchangeable. We test that assumption: holding the checkpoint, prompts, hardware, inference engine, decoding, and quantization configuration…"
View on XOriginally posted by Teng-Ruei Chen on X · view source
Want to go deeper?
Turn these trends into skills with Learnijoy's hands-on AI & tech courses.
Explore coursesMore in AI Engineering & DevTools
Zapier vs. Tray: Enterprise Automation Platform Comparison for 2026
This post compares Zapier and Tray.io, evaluating which platform is better suited for enterprise automation needs by balancing power and ease of use. It argues that the best tools scale for complex requirements while remaining intuitive for all users.
Stochastic Weight Averaging Boosts Data Augmentation Performance
This research shows that Stochastic Weight Averaging (SWA) significantly enhances the equivariance boost from data augmentation in deep neural networks, especially in the infinite-width limit. It offers a cost-effective alternative to training large ensembles for improved symmetry.
Imposter: Self-Supervised Learning for Physical Coherence in Scientific Data
Imposter is a new self-supervised learning method that trains encoders to detect physically inconsistent feature swaps between entities, enabling models to learn cross-feature physical dependencies. It improves representations for land-surface modeling and complements existing SSL objectives.