# Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence

厳密な整数演算による決定論的で再現可能な推論、およびその帰結としての検証可能な分散推論

Sayed Amir Karim · arXiv · 2026年11月10日

- **課題** 浮動小数点数による推論は、ハードウェア、コンパイラ、スレッド数によってビットが変わるため、再現と検証が難しいです。
- **手法** tritifyは実行経路を整数演算に置き換え、各演算に浮動小数点数の参照を用意して出力のビットを検証します。
- **結果** 整数経路は、CPU命令セット間およびCPUとGPU間で同じSHA-256を再現します。GLM-4.5-Airは、複数の機器に分けて実行しても単一ホストの参照と同じビットを出力しました。

## 浮動小数点数推論の再現性の問題

既存の最適化された浮動小数点数推論では、同じモデルでもハードウェア、コンパイラ、スレッド数によって異なるビットが出力されることがあります。IEEE-754の加算は結合法則が成り立たないため、総和の順序が変わると下位ビットが変わります。数学関数ライブラリも、丸め方がそれぞれ異なります。本論文は、参照BLASのような方法で再現可能な浮動小数点数を実現できるものの、コストがかかり、デフォルトではないと指摘しています。そのうえで、実行経路そのものを整数演算に置き換える方向を扱います。

## 整数の順伝播と検証用の参照構造

tritifyは実行時の順伝播をforward\_intの経路で行い、浮動小数点数はオフラインの重み量子化と検証用のforward\_refにだけ残します。重みは、b=12トリットの平衡3進格子により一度だけ量子化されます。レベル数はLW=(3^12−1)/2=265,720です。活性値は、キャリブレーションデータを使わず、実行時にテンソルごとの最大値で動的に量子化されます。行列積の累算、再量子化、残差加算、RMSNormの逆RMS、GELUとsoftmaxのexpのルックアップテーブルは、すべて整数経路にあります。各演算は整数経路と浮動小数点数参照の2つのメソッドの契約を持つため、検証ゲートは2つの結果の差、決定性、SHA-256をあわせて確認できます。

![Table 1: Error of representative operations against the float reference:Mmarks an empirically measured maximum,Da derived representational bound](https://refivu.com/papers/bbc05d6a-b90f-48ab-8b5d-837eb7a6793f/figures/figure-ac05e73b2dda1184d43f5ce818a7f811.png?thumb=512)

**Table 1** :Error of representative operations against the float reference:Mmarks an empirically measured maximum,Da derived representational bound.

[出典](https://arxiv.org/abs/2611.13730v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sayed Amir Karim · Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

## 再現性と判定の忠実度の検証

再現性の主張は、固定された入力に対して整数経路がCPU命令セット間およびCPUとGPU間で同じビットを出力するかどうかで確かめられます。Qwen2.5-0.5Bのseq 512条件では、Apple M3 MaxのARM/NEONとAMD EPYC 9454Pのx86-64/AVX-512が、同じロジットのSHA-256を出力しました。判定の忠実度の主張は、同じ実験でテンソル全体のビット一致とは区別して測定されます。512トークンの合成プローブでは、整数argmaxは参照と509/512の位置で一致し、残りの3か所は僅差の同点でした。SAM 2.1では、選ばれたマスクは0/65536ピクセルの差で同一で、IoUは1.0000でした。

論文では、この結果は普遍的な保証ではなく、測定された例外であると明記されています。

![Table 2: Cross-hardware reproducibility (Claim 1) and decision fidelity (Claim 2)](https://refivu.com/papers/bbc05d6a-b90f-48ab-8b5d-837eb7a6793f/figures/figure-fbca8086b27decb2ff591313abec344a.png?thumb=512)

**Table 2** :Cross-hardware reproducibility (Claim 1) and decision fidelity (Claim 2).

[出典](https://arxiv.org/abs/2611.13730v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sayed Amir Karim · Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。

## 層の深さに応じた忠実度

OLMoE-1B-7Bは16層すべて、GLM-4.5-Airは前半の16層について、層ごとに残差ストリームの位置別コサインをfp32参照と比較しました。GLM-4.5-Airの前半16層の中央値は0.9996717、最小値は0.9873843です。著者らは、この結果を系統的な発散ではなく僅差の同点と解釈しています。GLMの16層以降の曲線は外挿であり、全深度での浮動小数点数の忠実度は測定していないと明記されています。

![Table 4: Per-layer fidelity of the integer path against the fp32 reference, measured after every layer; no fidelity cliff. Both sides run at each model’s owntr…](https://refivu.com/papers/bbc05d6a-b90f-48ab-8b5d-837eb7a6793f/figures/figure-63120711c3c37e22a31d2b741dd82cb8.png?thumb=512)

**Table 4** :Per-layer fidelity of the integer path against the fp32 reference, measured after every layer; no fidelity cliff. Both sides run at each model’s owntransformers-configured ε — OLMoE-1B-7B at1e−5 (the engine’s family default was aligned to this shipped value; see text) and GLM-4.5-Air at its stated 1e−5— so each column is decision fidelity to thatshippedcheckpoint, unmodified.

[出典](https://arxiv.org/abs/2611.13730v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sayed Amir Karim · Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。

![Figure 1: Fidelity does not cliff with depth. Per-layer residual cosine to the fp32 reference, both sides at the checkpoint’s ownε (zoomed axis). Solid: the pe…](https://refivu.com/papers/bbc05d6a-b90f-48ab-8b5d-837eb7a6793f/figures/figure-d9cee3e2e8ce1d95f4175674991f08a0.png?thumb=512)

**Figure 1** :Fidelity does not cliff with depth. Per-layer residual cosine to the fp32 reference, both sides at the checkpoint’s ownε (zoomed axis). Solid: the per-positionmedian, near1 .0throughout. Dashed/shaded: the singleworstprobe position, dipping to≈ 0.996(OLMoE) and ≈ 0.99(GLM) at the deepest layers and no further — a bounded spread, not a collapse.

[出典](https://arxiv.org/abs/2611.13730v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sayed Amir Karim · Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。

## 位置の独立性と分散実行

Claim 3は、出力が演算を実行する位置に依存しないという主張です。整数演算は連結の順序が変わっても同じ結果になるため、層の範囲や専門家を複数の機器に分けても、結合結果は単一機器の出力と一致します。活性値と専門家の出力だけがネットワークを通過し、専門家の重みは各ワーカーにとどまります。GLM-4.5-Airの整数コードは427,409,005,056バイトでした。3台の機器のどれも、コード全体をRAMに収められませんでしたが、単一ホストのストリーミング参照と同じSHA-256 564f495c...を、46層すべてで再現しました。この分散実行は往復通信を追加するため、速度向上とは解釈しません。

![Figure 4: The distributed seam (schematic). The coordinator routes each token locally and sends its activationto the worker holding each selected expert, which…](https://refivu.com/papers/bbc05d6a-b90f-48ab-8b5d-837eb7a6793f/figures/figure-498b2f9669b32a9dc80b81518ce51332.png?thumb=512)

**Figure 4** :The distributed seam (schematic). The coordinator routes each token locally and sends its activationto the worker holding each selected expert, which returns the expert’soutput vector; expert weightsstay resident and never cross the wire (so per-token traffic is kilobytes). The split shown (3local, 3+2remote) is an example — the real placement is the oracle’s. Recombination is placement-independent, so the output carries one SHA-256, identical on every node (Claim 3).

[出典](https://arxiv.org/abs/2611.13730v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sayed Amir Karim · Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence · 論文の図を引用 · 元のPDFの11ページ目から図の部分を抽出しています。

![Table 5: The flagship run (GLM-4.5-Air, 46 layers,427GB of codes) across a fleet none of which can hold its full codes in RAM, against a single-host streamed r…](https://refivu.com/papers/bbc05d6a-b90f-48ab-8b5d-837eb7a6793f/figures/figure-20eed60b149d95b25809b7f88c87804d.png?thumb=512)

**Table 5** :The flagship run (GLM-4.5-Air, 46 layers,427GB of codes) across a fleet none of which can hold its full codes in RAM, against a single-host streamed reference. Every memory figure is measured on its node; “resident” is measured RAM, distinct from the assigned expert ranges.

[出典](https://arxiv.org/abs/2611.13730v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sayed Amir Karim · Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence · 論文の図を引用 · 元のPDFの12ページ目から図の部分を抽出しています。

![Figure 6: No single node holds the model. Measured RAM of each machine versus GLM-4.5-Air’s427 GB of codes (dashed). Every node is left of the line, yet the tw…](https://refivu.com/papers/bbc05d6a-b90f-48ab-8b5d-837eb7a6793f/figures/figure-cb30284eba7886b22870f41d065171d4.png?thumb=512)

**Figure 6** :No single node holds the model. Measured RAM of each machine versus GLM-4.5-Air’s427 GB of codes (dashed). Every node is left of the line, yet the two workers together (576GB) exceed the 399GB of routed codes they hold — so the fleet runs a model no single node can hold in RAM at once (the single-host reference runs thesamemodel by streaming). Labels anonymized as in the text.

[出典](https://arxiv.org/abs/2611.13730v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sayed Amir Karim · Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence · 論文の図を引用 · 元のPDFの13ページ目から図の部分を抽出しています。

## 適用範囲と限界

整数経路は、一般的なCPUやGPUで最適化された浮動小数点数推論より高速ではなく、分散実行はネットワーク遅延を追加します。論文では、分散の利点を速度ではなく、単一機器の容量を超えるモデルの実行、検証可能性、局所性として説明しています。ビットの一致は検証可能性をもたらしますが、機密性はもたらしません。層を実行するサーバーは活性値を見ることができます。動的なテンソルごとの量子化のため、バッチ構成やプリフィルとデコードの分割が変わると、整数経路はスケジュール不変ではありません。Qwen2.5-0.5Bでこの影響を測定したところ、すべてのargmax判定は保たれましたが、整数経路の値そのものは変わることがあります。

GPUバックエンドのビット一致は、Apple M3 Metalの3進GEMMでのみ報告されており、モデル全体ではまだ報告されていません。

## 論文情報

- **著者**: Sayed Amir Karim
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月10日
- **登録日**: 2026年11月11日
- **更新日**: 2026年11月10日
- **バージョン**: v1
- **arXiv**: 2611.13730
- **DOI**: 10.5281/zenodo.23986737
- **カテゴリ**: cs.LG · cs.DC · cs.SE
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.13730v1) · [PDF ↗](https://arxiv.org/pdf/2611.13730v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

Optimized floating-point inference is not reproducible across environments: the same model on different hardware, compilers or thread counts can produce different bits. We present tritify, an open-source runtime that executes the forward pass of real models -- decoder-only language models, Mixture-of-Experts decoders, and the Segment Anything 2.1 image/video stack -- with the entire run-time path in exact integer arithmetic; floating point is confined to offline quantization and the float reference used for verification. We make three separate claims and verify each. (1) Cross-hardware reproducibility: the integer path produces bit-identical output run to run, across CPU instruction-set architectures, and across CPU/GPU, carried by a reproducing SHA-256 of the output. (2) Decision fidelity: the integer path reproduces the float reference's decision on the models and inputs tested, with the numeric exceptions measured; per-layer fidelity through sixteen layers of OLMoE-1B-7B and of a 106-billion-parameter MoE shows no fidelity cliff. (3) Location independence: a model's computation can be split across instruction sets, CPU and GPU, and networked machines with zero effect on the output bits. GLM-4.5-Air (106,852,251,264 parameters, 427 GB of integer codes) generated its answer across three machines, none of which can hold its integer codes in RAM, bit-identically to a single-host reference. The consequence is verifiable distributed inference: an untrusted server or a fleet of devices runs the model while an open scalar oracle re-derives the exact bytes; a guarantee against a dishonest server is future work. We do not claim a per-device speed-up, bit-equality of floating-valued intermediates, or confidentiality. Code: https://github.com/pelloran-inc/tritify

## この論文を引用

Sayed Amir Karim (2026). Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence. arXiv:2611.13730v1. https://doi.org/10.5281/zenodo.23986737

**BibTeX**

```
@article{karim2026deterministic,
  title = {{Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence}},
  author = {Sayed Amir Karim},
  year = {2026},
  eprint = {2611.13730},
  archivePrefix = {arXiv},
  doi = {10.5281/zenodo.23986737},
  url = {https://arxiv.org/abs/2611.13730v1}
}
```

## この論文の用語

- [IoU](https://refivu.com/ja/terms/49f3d09602a9-iou)
- [RMSNorm](https://refivu.com/ja/terms/9b1cafd281f0-rmsnorm)
- [LRU](https://refivu.com/ja/terms/9a6377134f9b-lru)
- [Mixture-of-Experts](https://refivu.com/ja/terms/2e4496944f4c-mixture-of-experts)
- [argmax](https://refivu.com/ja/terms/fda9644f7b7b-argmax)

## ほかの論文解説

- [Exploiting Feature-invariant Scaling Laws for Efficient A/B Experimentation in Recommendation Systems](https://refivu.com/ja/papers/6e38f1ed-f74b-4d73-bc72-ca40a3366223-exploiting-feature-invariant-scaling-laws-for-efficient-a.md)
- [A Functional Preservation Score for Auditing Connectome Operations: Compression, Alignment, Transport, and Local-Rule Writing](https://refivu.com/ja/papers/544d626f-a968-4489-9915-c3d496900508-a-functional-preservation-score-for-auditing-connectome.md)
- [Neural Network-Assisted CLEAN for Efficient Multipath Parameter Estimation in MIMO Systems](https://refivu.com/ja/papers/0fbbe1e4-2958-4131-93ca-ea691503ff76-neural-network-assisted-clean-for-efficient-multipath.md)
- [Bursts That Outlast Themselves: Persistent Degradation in Prefix-Cached Agent Serving](https://refivu.com/ja/papers/f586e747-0f45-4182-ad11-8ba2e00193e6-bursts-that-outlast-themselves-persistent-degradation-in.md)
- [Adaptive Quantization Preserves Fast Rates for TD Learning over Rate-Limited Channels](https://refivu.com/ja/papers/d58bc294-7861-4c11-8973-582df8ea5981-adaptive-quantization-preserves-fast-rates-for-td-learning.md)
- [Co-Creating Neurorehabilitation Technology Alongside Lived Experience Experts: A Participatory Design Workshop](https://refivu.com/ja/papers/0a386ea8-786a-4657-b53d-1fee416936d8-co-creating-neurorehabilitation-technology-alongside-lived.md)
- [How Post-Training Influences Verbalized Algorithmic Computation in Language Models](https://refivu.com/ja/papers/c2f0c796-ac4e-4e6c-bad7-290457e1c07c-how-post-training-influences-verbalized-algorithmic.md)
- [Agent Benchmarks Stop Ranking Before They Run Out of Tasks](https://refivu.com/ja/papers/42042bb7-8dd7-415d-a486-d8889c934fed-agent-benchmarks-stop-ranking-before-they-run-out.md)
- [Metamorphic testing of learned AC optimal power flow surrogates reveals representation dependence](https://refivu.com/ja/papers/fa665462-dba3-45c9-a6d2-bbeac44186f3-metamorphic-testing-of-learned-ac-optimal-power-flow.md)
- [Are Dense Rewards Worth Their Tokens in GRPO?](https://refivu.com/ja/papers/abf8fc47-48da-4cd4-a432-583d9b836d54-are-dense-rewards-worth-their-tokens-in-grpo.md)
- [Camera equalisation of an 11.5x drop in environmental illuminance: four imitation-learning policies on an SO-101 arm](https://refivu.com/ja/papers/624f585a-f042-4009-bd10-76b400c0a03d-camera-equalisation-of-an-11-5x-drop-in.md)
- [LLM Validation Makes Minimal-Pair Benchmarks Easier for Language Models](https://refivu.com/ja/papers/d7e37f88-3f35-44f7-8d2c-e1eec70fd2e2-llm-validation-makes-minimal-pair-benchmarks-easier-for.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/bbc05d6a-b90f-48ab-8b5d-837eb7a6793f-deterministic-reproducible-inference-in-exact-integer)
