INT8 Quantization Kernels Show Unexpected Divergence in LLMs

Teng-Ruei Chen· August 17, 2026 View original

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

AI DevelopmentCloud ComputingHigh-Performance ComputingAutonomous Systems

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.

This research uncovers a significant issue in the deployment of INT8-quantized Large Language Models (LLMs), specifically concerning the interchangeability of GPU kernels. Despite the common assumption that different kernels implementing the same scaled INT8 General Matrix Multiply (GEMM) interface should yield identical results, experiments show otherwise. When swapping only the INT8 linear kernel within vLLM (between CUTLASS and Triton), no end-to-end sequence agreement was found, even with fixed checkpoints, prompts, and hardware. The study pinpoints the source of this divergence. While the core INT32 dot product remains exact and order-independent, the differences emerge during the subsequent scale application and output rounding steps. Under power-of-two scales, bit-identical outputs were observed, but with real checkpoint scales, minor differences (at most one bfloat16 spacing) appeared. This indicates that the exact integer arithmetic is not the problem, but rather how floating-point scaling and rounding are handled post-accumulation. The researchers propose a conformance procedure to check kernel interchangeability and highlight that these subtle differences, though small at the layer level, accumulate to cause complete divergence in generated sequences. This has critical implications for reproducibility and reliability in quantized LLM inference.

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

  1. 1Implement kernel conformance checks: Develop or utilize tools to verify bitwise agreement between different INT8 kernels in your inference stack.
  2. 2Standardize inference environments: Ensure consistent kernel usage across development, testing, and production environments to minimize unexpected divergence.
  3. 3Investigate rounding strategies: Analyze the impact of different scaling and rounding implementations in your chosen inference frameworks.
  4. 4Evaluate reproducibility: Conduct thorough end-to-end reproducibility tests for quantized LLMs, especially when changing hardware or software versions.
  5. 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 X

Originally 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 courses