논문 해설
Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence
정확한 정수 산술에서의 결정론적·재현 가능한 추론, 그리고 그 결과로서의 검증 가능한 분산 추론
- 연구 문제 부동소수점 추론은 하드웨어, 컴파일러, 스레드 수에 따라 비트가 달라져 재현과 검증이 어렵습니다.
- 연구 방법 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의 룩업 테이블이 모두 정수 경로에 있습니다. 각 연산은 정수 경로와 부동소수점 참조의 두 메서드 계약을 가지므로, 검증 게이트가 두 결과의 차이와 결정성, SHA-256을 함께 확인할 수 있습니다.

Table 1 :Error of representative operations against the float reference:Mmarks an empirically measured maximum,Da derived representational bound.
원문 · CC 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 위치에서 일치했고, 나머지 세 위치는 근접 동률이었습니다. SAM 2.1은 선택된 마스크가 0/65536 픽셀 차이로 동일했고 IoU는 1.0000이었습니다.
원문은 이 결과가 보편적 보장이 아니라 측정된 예외라는 점을 명시합니다.

Table 2 :Cross-hardware reproducibility (Claim 1) and decision fidelity (Claim 2).
원문 · CC 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 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.
원문 · CC 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 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.
원문 · CC 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바이트의 정수 코드를 가졌고, 세 대의 기기 중 어느 것도 전체 코드를 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 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).
원문 · CC 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 reference. Every memory figure is measured on its node; “resident” is measured RAM, distinct from the assigned expert ranges.
원문 · CC 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 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.
원문 · CC 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
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
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}
}