Calibrated Tolerances Boost Tensor Kernel Bug Detection
Summary
This research proposes a method to calibrate mixed-precision tolerances for tensor kernel correctness tests by mining element-wise error distributions from cloud GPU runs. This approach significantly tightens tolerances compared to hand-picked values, leading to a substantial increase in bug detection recall for LLM-style buggy variants.
Why it matters
Tighter and more accurate correctness testing for tensor kernels is essential for the reliability and performance of AI hardware and software, particularly in the context of large language models and mixed-precision computing. This method can significantly improve bug detection.
How to implement this in your domain
- 1Automate the mining of element-wise error distributions from GPU test runs for all critical tensor kernels.
- 2Develop a system to dynamically calibrate absolute and relative tolerances based on observed correct implementation behavior.
- 3Integrate these calibrated tolerances into your continuous integration/continuous deployment (CI/CD) pipelines for tensor kernel testing.
- 4Retest existing tensor kernel implementations with the new, tighter tolerances to uncover previously missed bugs.
Who benefits
Key takeaways
- Hand-picked tolerances for tensor kernel tests are often too loose, missing bugs.
- Empirically calibrating tolerances based on error distributions significantly tightens them.
- Tighter tolerances lead to a substantial increase in bug detection recall for LLM-style variants.
- Operator-aware calibration is crucial for robust mixed-precision tensor kernel correctness testing.
Original post by Dipankar Sarkar
"arXiv:2607.16228v1 Announce Type: new Abstract: Most tensor-kernel correctness tests go through a fixed-shape all close-style check with hand-picked absolute and relative tolerances. The thresholds are copied across the corpus and rarely revisited. We mine the element-wise error…"
View on XOriginally posted by Dipankar Sarkar 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

Claude Prompting Tips: Simplify for Better Fable Performance
New insights suggest that Claude, particularly Fable, performs better with simpler prompts, avoiding excessive examples or negative constraints. Claude Code's system prompt was recently reduced by 80%, indicating a shift towards more concise instructions.
Interview Reveals Claude Code Team Insights, Claude Tag's Impact
An interview with Cat Wu and Thariq from the Claude Code team is now available, featuring discussions on Claude Code, Fable, coding agent security, and tool design. Notably, Claude Tag, which integrates Claude Code via Slack, is reported to handle 65% of product engineering pull requests for the team.
PROWL AI Agents Explore Minecraft, Self-Correcting Failures
OdysseyML's PROWL system trains AI agents for Minecraft exploration, utilizing a world model to detect and rectify failures. This approach creates a dynamic learning curriculum, ensuring sustained performance and direct issue resolution within the game environment.