跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2609.39816 · v2

Beyond Accuracy: Prefix-Invariant Realizations of Low-Precision Fast Matrix Multiplication

首次提交 2026-09-30 22:20
版本更新 2026-11-24 17:06
雷达观测 2026-11-25 11:18
arXiv ↗PDF ↗

摘要

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.

作者备注:32 pages, 4 figures. Added FalconGEMM and batched-generation tests, optimized int8 kernels, SGLang serving benchmarks, and matched FP8 quality comparisons

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

本站首次收录为 v2,暂无更早版本可对照。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v2 · 2026-11-24 17:06 · 最新观测版本

Beyond Accuracy: Prefix-Invariant Realizations of Low-Precision Fast Matrix Multiplication

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.

查看此版本解读 →查看此版本原文 ↗