View a PDF of the paper titled Beyond Accuracy: Prefix-Invariant Realizations of Low-Precision Fast Matrix Multiplication, by Shuxiao Xie and 5 other authors
Abstract:Fast matrix multiplication saves multiplications through exact cancellation, but rounding sums that mix token rows can leave contributions from later tokens in earlier language model outputs. This threatens prefix invariance, which likelihood scoring and batched inference rely on: an output must depend only on its allowed prefix. On Qwen2.5-14B-Instruct, two fast FP8 realizations repaired to near-bf16 accuracy, and the existing fast kernel FalconGEMM, change answers when only text outside the allowed prefix is replaced: on 4.17–10.00% of OpenBookQA items scored by likelihood and 39.6–51.8% of NQ-open questions answered in a batch. Accuracy thus does not certify prefix invariance, and the stability criteria we analyze cannot tell realizations apart: across all 512 sign variants of two-level Strassen the criteria stay constant while teacher-forced perplexities span a 772.4$\times$ range on the same model. We therefore construct certified realizations of two-level Strassen on bounded integer codes that quantize token rows independently, then mix and cancel exactly before rescaling, using 49 block multiplications instead of 64. Our certificate guarantees bitwise equality to a prescribed row-local classical int8 operator at the same quantization specification, so every certified realization inherits its prefix invariance. Certification thus turns realization choice into a pure cost decision: which certified realization runs can no longer change any output. With optimized kernels, certified realizations run faster than classical int8 on an NVIDIA H20, and in the SGLang serving engine they raise throughput over its FP8 path by 1.2–5.6% on four models.
Submission history
From: Shuxiao Xie [view email]
[v1]
Wed, 30 Sep 2026 14:20:37 UTC (288 KB)
[v2]
Tue, 24 Nov 2026 09:06:42 UTC (309 KB)
