arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.09686cs.ARcs.AIcs.MScs.NAcs.PFmath.NA
收藏

84种数值格式的位精确一致性向量目录:FP8、BF16、MXFP4和微缩放格式的厂商中立参考

Golden Ruler: A Numeric Format Catalog with Bit-Exact Conformance Vectors for FP8, BF16, MXFP4, and Microscaling Formats

Trinity S 3 AI

Dmitrii Vasilev

AI总结:

针对机器学习硬件中数值格式激增问题,本文构建了涵盖13个家族84种格式的目录,提供6个位精确一致性包和IEEE P3109映射,作为厂商中立的参考基准。

摘要:

机器学习硬件中数值格式的激增——FP8(E4M3和E5M2)、BF16、MXFP4、微缩放块格式以及数十种研究变体——已经超过了厂商中立、位精确参考材料的可用性。工程师在跨加速器移植模型时遇到难以诊断的静默分歧,而缺乏共享的标尺。本文描述了一个涵盖13个家族84种数值格式的目录,一套包含GF16、MXFP4元素、BF16、FP8 E4M3、FP8 E5M2和E8M0块规模的6个位精确一致性包,以及一个IEEE P3109 v3.2.0交叉映射,将每个包映射到其对应的标准轨道配置格式。每个包是一个自包含的JSON文档,带有SHA-256指纹、共享行模式和一个锚向量,该向量编码3.0——恒等式phi^2 + 1/phi^2 = 3——作为跨包完整性检查。这些包已针对ml_dtypes 0.5.4(Google/JAX)进行交叉验证;任何差异都被明确记录,并解释为规范允许的解释差距,而非隐藏。这项工作被框架为注册表填充:它不提出新格式、不做模型精度声明,也不声称优于任何供应商的实现。所有工件均在开放许可下公开获取于https://github.com/gHashTag/t27。

英文摘要:

Numeric format proliferation in machine learning hardware -- FP8 (E4M3 and E5M2), BF16, MXFP4, microscaling block formats, and dozens of research variants -- has outpaced the availability of vendor-neutral, bit-exact reference material. Engineers porting models across accelerators encounter silent divergences that are difficult to diagnose without a shared ruler. This paper describes a catalog of 109 numeric formats spanning 12 clusters (83 at v2; the count is a catalog invariant, not a fixed number), a suite of six bit-exact conformance packs covering GF16, MXFP4 element, BF16, FP8 E4M3, FP8 E5M2, and E8M0 block scale, and an IEEE P3109 v3.2.0 cross-walk that maps each pack to its corresponding standards-track configured format. Each pack is a self-contained JSON document with a SHA-256 fingerprint, a shared row schema, and an anchor vector that encodes 3.0 -- the identity phi^2 + 1/phi^2 = 3 -- as a cross-pack sanity check. Packs are cross-validated against ml_dtypes 0.5.4 (Google/JAX); any divergence is documented explicitly and interpreted as a spec-permitted interpretation gap rather than hidden. The work is framed as registry filling: it does not propose new formats, make model-accuracy claims, or assert superiority over any vendor's implementation. All artifacts are publicly available at https://github.com/gHashTag/t27 under an open license.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑