IEEE-754 Bragg Spectrometer
Subtracting runner-up logprobs from top-1 cancels the softmax partition constant
(gi = lp0 − lpi = z0 − zi), directly exposing
the floating-point mantissa lattice of an endpoint's lm_head from a single max_tokens=1
reply—and recovering hidden temperature scaling (T = 0.7300) blindly in one call.
1/64) vs. Azure (BF16 1/8)T = 0.7300 (C = 1.000)lm_head / TPU softcap stacks isolatedHow to read the diffraction plot: The Bragg coherence
C(f) = (1/m) Σ cos(2π·f·gi) equals +1.00 whenever every logit gap is an exact
integer multiple of 1/f. Honest BF16 hosts spike to +1.00 at f = 8 or
f = 16 at both T = 1.0 and T = 0.73. If a provider divides logits by
T = 0.73 before log_softmax, the amber T = 0.73 diffraction peak shifts
left to f = 0.73 × fbase (5.84 or 11.68), revealing the exact
temperature from one single response.
Bonus — Breaking Softmax Shift-Invariance (recovering raw z0):
In exact real math, log_softmax(z + c) = log_softmax(z) hides the absolute logit scale
z0. In IEEE-754 BF16/FP16, however, the ULP step halves at every power-of-2
boundary (z = 32, 16, 8). Walking down top-20 gaps locates the exact cliff where denominators
double—recovering raw z0 ≈ 35.94 [35.75, 36.125] on closed-source
openai/gpt-4o-mini (BF16 1/4 → 1/8 across z=32),
z0 ≈ 37.24 [36.97, 37.52] on OpenAI 1P gpt-4o (FP16 1/32 → 1/64
across z=32), and matching z0 ≈ 21.0–21.2 independently on both NVIDIA BF16
and Cerebras FP16 for Qwen3.8. Try it on any endpoint with
python tools/logit_xray.py --model openai/gpt-4o --provider openai.
All 50 X-Rayed Endpoints (Click any row to inspect)
| Model & Endpoint | Detected Lattice | C(8) | C(16) | C(64) | C(128) | Blind T from T=0.73 |
|---|
Control Study: gpt-4o-mini & 14-Host DeepSeek Atlas
Does Azure always differ from OpenAI 1P on Bragg lattice and sampler order? To test whether the
openai/gpt-4o triple split (OpenAI FP16 + top_p-before-temp vs. Azure
BF16 + temp-before-top_p + RMSE = 1.415) is cloud-wide or
deployment-specific, we ran the exact same three probes on openai/gpt-4o-mini plus a 14-host
deepseek/deepseek-v4.1-flash-1017 fleet atlas
(experiments/gpt4o_mini_and_fleet_crystallography.py):
openai/gpt-4o-minimatches across BOTH clouds: Both OpenAI 1P and Azure runBF16_1/8(C(8) = +0.957vs.+0.951,C(16) = +1.000), both applytop_pbeforetemperature(24/24collapsed on OpenAI,p = 1e-6;24/24on Azure,p = 2e-6), and paired logit gaps align tightly (R² = 0.9944,RMSE = 0.337—4.2× tighter thangpt-4o). This rules out a generic "Azure always runs different samplers" hypothesis and proves thegpt-4otriple split is a per-deployment runtime/checkpoint divergence.- 14-host DeepSeek V4.1 Flash atlas (incl. hardware GPU TEE): Every third-party logprob host tested
(11/11:
near-aiTEE,google-vertex/global,cloudflare,together,nebius/fp4,wafer/mxfp4,ambient/fp4,parasail/fp8,novita/fp8,modal,digitalocean) emits a pure BF16lm_headlattice (C(16) ≥ 0.99, even when weights are FP4/MXFP4), exposes unshifted top-1 logits (z₀ = 37.1–43.3via power-of-2 ULP cliffs), and appliestemperaturebeforetop_p(11/11, matching DeepSeek 1P)—leaving OpenAI (gpt-4o1P,gpt-4o-mini) and Cerebras as distinctivetop_p-first stacks.
experiments/logit_crystallography.py,
experiments/gpt4o_mini_and_fleet_crystallography.py, and
experiments/build_crystallography_page.py
(raw JSON).
See Case studies for full methodology.