AI RESEARCH
Kernel Contracts: A Specification Language for ML Kernel Correctness Across Heterogeneous Silicon
arXiv CS.LG
•
ArXi:2604.22032v1 Announce Type: new Every ML kernel ships with an implicit contract about what it computes. People rarely write the contract down. When two kernels disagree -- when a matmul on AMD produces a different gradient than the same matmul on NVIDIA, when a fused attention kernel silently downcasts an accumulator, when an out-of-bounds access returns zero on one stack and garbage on another -- there is no formal artifact to arbitrate the dispute. Recent empirical work has measured the gap across silicon platforms, but none of it specifies the contract being violated.