# Beyond atol and rtol: Sound Test Oracles for Low-Precision GPU Kernels

DevFeed: [Beyond atol and rtol: Sound Test Oracles for Low-Precision GPU Kernels](<https://devfeed.tech/articles/beyond-atol-and-rtol-sound-test-oracles-for-low-precision-gpu-kernels-107388.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.38983>)

Author: Xinyi Shi

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [test](<https://devfeed.tech/topics/test.md>), [quantization](<https://devfeed.tech/topics/quantization.md>)

Tags: [absolute](<https://devfeed.tech/tags/absolute.md>), [acceptance](<https://devfeed.tech/tags/acceptance.md>), [alarm](<https://devfeed.tech/tags/alarm.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [block](<https://devfeed.tech/tags/block.md>), [calculus](<https://devfeed.tech/tags/calculus.md>), [certificates](<https://devfeed.tech/tags/certificates.md>), [conditional](<https://devfeed.tech/tags/conditional.md>), [cs-ms](<https://devfeed.tech/tags/cs-ms.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [domain](<https://devfeed.tech/tags/domain.md>), [effective](<https://devfeed.tech/tags/effective.md>), [element](<https://devfeed.tech/tags/element.md>), [error](<https://devfeed.tech/tags/error.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [kernels](<https://devfeed.tech/tags/kernels.md>), [oracles](<https://devfeed.tech/tags/oracles.md>), [precision](<https://devfeed.tech/tags/precision.md>), [sound](<https://devfeed.tech/tags/sound.md>), [test](<https://devfeed.tech/tags/test.md>)

## AI overview

numoracle derives per-element acceptance regions from precision-annotated reference programs, tracking shared rounding errors, product provenance, block-scaled quantizers and calibrated math-library errors. A rounding-interval check catches faulty stores that symmetric bounds may accept. Its soundness depends on explicit rounding, hardware, domain and implementation assumptions; fixed-input mode drops the zero-mean rounding assumption. Across 13 Triton operators on two GPU generations, the main campaigns report no false alarms in 33,960 correct-kernel and behavior-preserving runs per GPU. Under input shift, tuned tolerances flag up to 30% of correct runs, while numoracle reports none in those campaigns; incomplete finite-range certificates still limit some reference checks. On an RTX PRO 6000, it kills 116 of 124 effective mutants, versus 59-83 for four fixed baselines. In evaluated Liger groups, tolerance settings constrained to at most 1% false alarms kill at most 31 of 53 main mutants, compared with 50 for numoracle.

## Source excerpt

arXiv:2610.38983v1 Announce Type: cross Abstract: Low-precision GPU kernels are commonly tested against a reference using hand-picked absolute and relative tolerances. Legitimate numerical error varies with the input, format and precision plan, so a fixed tolerance trades false alarms for missed faults. We present numoracle, which derives per-element acceptance regions from precision-annotated reference programs. Its calculus tracks shared rounding errors, provenance-ordered products, block-scaled quantizers and calibrated math-library errors. A rounding-interval check detects faulty stores that symmetric bounds can admit. Soundness is conditional on explicit rounding, hardware, domain and implementation assumptions; a fixed-input mode removes the zero-mean rounding assumption. We evaluate 13 Triton operators from Liger-Kernel, Unsloth and vLLM on two GPU generations. The main campaigns produce no false alarm on 33,960 correct-kernel and behavior-preserving-variant runs per GPU. Under input shift, the GPU campaigns record no false alarm while tuned tolerances flag up to 30% of correct runs; final-version reference checks identify inputs without complete finite-range certificates. On the RTX PRO 6000, numoracle kills 116 of 124 effective mutants, versus 59-83 for four fixed baselines. Among 400 tuned tolerance configurations, requiring at most 1% false alarms in every evaluated Liger input group permits at most 31 of 53 main-mutant kills, versus numoracle's 50. Historical replays expose accuracy faults in eight change pairs without rejecting their matched corrected controls; a ninth change concerns rounding parity.