Power-of-Two Quantization Enables Deterministic LLM Inference

Teng-Ruei Chen· September 2, 2026 View original

Key takeaways

  • Standard tolerance-based conformance tests for quantized kernels are insufficient for detecting subtle inference faults.
  • Requantizing LLM weight scales to power-of-two values enables bitwise deterministic inference across GPU kernels.
  • This method yields byte-identical token sequences with minimal impact on model perplexity.
  • Deterministic inference is critical for debugging, auditing, and reliable production deployment of LLMs.

Who benefits

AI EngineeringCloud ComputingHigh-Performance ComputingAutomotive

Summary

Researchers found that standard tolerance-based conformance suites for quantized GPU kernels are often blind to subtle faults in LLM inference. They demonstrate that requantizing weight scales to the nearest power of two enables bitwise identical outputs across different GPU kernels (CUTLASS and Triton) and byte-identical token sequences for LLMs, with minimal impact on perplexity.

A new study investigates the challenges of achieving deterministic inference in large language models, particularly when using quantized GPU kernels. The research highlights that current tolerance-based conformance testing methods are often insufficient to detect subtle errors in quantized General Matrix Multiply (GEMM) operations, which can lead to non-deterministic outputs. The core finding is that by adjusting every weight scale in the quantization process to its nearest power of two, bitwise identical results can be achieved across different GPU kernel implementations, specifically CUTLASS and Triton. This intervention resulted in byte-identical generated token sequences for various LLM sizes (1.7B, 8B, 14B), a significant step towards reliable and reproducible inference. Crucially, this power-of-two requantization had only a minor impact on model perplexity, with observed changes within a small percentage range. The study also clarified that previously reported large perplexity increases from this intervention were due to a weight-scale mismatch, not the power-of-two constraint itself, demonstrating the practical viability of this approach for deterministic LLM deployment.

Why it matters

Achieving deterministic and reproducible LLM inference is crucial for debugging, auditing, and ensuring consistent model behavior in production. This research offers a practical method for engineers to ensure bitwise identical outputs across different hardware and software configurations, which is vital for reliable AI systems.

How to implement this in your domain

  1. 1Implement power-of-two requantization for weight scales in INT8 quantization pipelines for LLMs.
  2. 2Update conformance testing suites to include checks beyond simple tolerance, focusing on exactness preconditions and operand sharing.
  3. 3Evaluate the perplexity impact of power-of-two requantization on specific LLM architectures and tasks to ensure acceptable performance trade-offs.
  4. 4Collaborate with hardware vendors and kernel developers to integrate deterministic quantization practices into their libraries.

Original post by Teng-Ruei Chen

"arXiv:2609.00363v1 Announce Type: new Abstract: Conformance suites for quantized GEMM kernels ask whether two implementations agree within a tolerance. We measure what such a suite can detect. Injecting nine faults into a reference INT8 pipeline over 8,232 layer--fault--regime ce…"

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