{
  "id": 1407,
  "kind": "post",
  "title": "Defeating Nondeterminism in LLM Inference",
  "summary": "The \"concurrency + floating point\" story for LLM nondeterminism is incomplete: the forward pass contains no atomic adds and is run-to-run deterministic. The true culprit is lack of BATCH INVARIANCE — matmul/RMSNorm/attention kernels change reduction order/tiling with batch size (split-K matmuls, tensor-core tile choice, attention split on KV cache vs current tokens), and inference servers change batch composition via continuous batching, so \"identical\" requests from one user's perspective get different outputs. Fix: batch-invariant kernels for the three reduction ops (data-parallel RMSNorm; single compiled matmul config, ~20% cost vs cuBLAS; attention with pre-kernel KV-cache/page-table layout update and FIXED-SIZE split-KV — which required internal FlexAttention changes not included in the code release). Evidence: 1000 temperature-0 completions of 1000 tokens from Qwen3-235B-A22B-Instruct-2507 (\"Tell me about Richard Feynman\") → 80 unique completions, identical for first 102 tokens, first divergence at token 103 (\"Queens, New York\" 992 vs \"New York City\" 8); with batch-invariant kernels all 1000 identical. True on-policy RL: RLVR on BigMath with Qwen2.5-VL-Instruct-8B, bitwise-identical sampler/trainer → KL divergence flat at 0, trains smoothly without importance weighting; the naive run's reward collapses ~step 318 with a KL spike. Claim: train/inference numeric mismatch \"implicitly turns our on-policy RL into off-policy RL.\" Fun detail: Triton FlashAttention backward differs algorithmically from the FA-2 paper — recomputes to avoid atomics at 40% more FLOPs. Repo: github.com/thinking-machines-lab/batch-invariant-ops (torch.Library substitution layer + vLLM FlexAttention deterministic-mode demo), MIT.",
  "body": "",
  "notes": "Discovery: Hudson shared the bare blog link 2026-10-19. Relevance: (1) his RLVR work — train/inference numeric mismatch makes his rollouts implicitly off-policy; true on-policy RL via deterministic inference is the fix; connects to #47 (Thinking Leakage — RLVR must-read) and the precision theme of #59 TF-OPD (bf16 gotcha) and #66 (Muon grid float32 gotcha); (2) his training stack uses FlashAttention — the FA-backward-algorithm-difference detail is directly on his axis; (3) Launch Helm: bit-reproducibility as a monitoring primitive (same request → same output regardless of server load); (4) Model Axes: eval reproducibility — 80 unique temperature-0 completions means \"temperature 0\" is not the fixed point people assume; his evals should pin or monitor batch-invariance. Adoption evidence (secondary, labeled): vLLM ships VLLM_BATCH_INVARIANT=1 with a docs page and Oct-2026 release-note items; vLLM's 2026-10-14 RL blog productizes bitwise train/inference consistency; Cybernetic Physics applied TML kernels to π0 and hit two sharp edges (SigLIP conv reduction-order switch at batch 32; rank-4 matmul dispatching to aten::bmm bypasses the TML mm kernel); SGLang experimental options and TensorFold's byte-identical marketing are third-party claims, not independently verified. Open: whether the promised upstream FlexAttention changes were delivered (not found); the repo's star count and README date are unverified (browser fetch of the repo failed and was not retried). Cluster: training/inference consistency, eval reproducibility, numerical precision (#59, #66). | License: blog text itself carries no stated reuse license (noted); code MIT (verified via LICENSE file text)",
  "url": "https://thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference/",
  "links": [],
  "authors": [
    "Horace He (Thinking Machines Lab)"
  ],
  "tags": [],
  "topics": "",
  "venue": "Thinking Machines Lab blog, \"Connectionism\" series, published Sep 2025",
  "publisher": "",
  "source": "blog",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2025,
  "added_at": "2026-10-19T00:00:00.000Z",
  "verified_at": "2026-10-19T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "Hudson",
    "legacy_paper_id": "1714"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-11-01T12:55:12.233Z",
  "updated_at": "2026-11-01T12:55:12.233Z",
  "page": "https://papers.projxon.ai/entries/1407",
  "markdown": "https://papers.projxon.ai/entries/1407.md",
  "api": "https://papers.projxon.ai/api/entries/1407",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 859,
      "kind": "paper",
      "title": "Etalon: Holistic Performance Evaluation Framework for LLM Inference Systems",
      "summary": "Argues that conventional LLM serving metrics (TTFT, TBT, normalised latency, TPOT) fail to capture the nuances of streamed inference and user-facing performance for real-time applications like chat and translation. Etalon is a comprehensive evaluation framework built around per-request token arrival traces and deadline-based evaluation: its fluidity-index measures the fraction of per-token deadlines met within a request (tokens arriving early build slack; a missed deadline counts missed slots and resets subsequent deadlines from that token's arrival), and the fluid token generation rate is the highest playback rate inferred from evaluated requests that meets a chosen fluidity target for a specified share of requests. The framework connects scheduling behavior (prefill/decode interference, chunked prefill, speculative decoding with client buffering) to service targets, and supports capacity search: estimating the maximum request rate a replica can sustain under specified targets to plan deployment size. The authors evaluate open-source platforms and model-as-a-service offerings with Etalon, exposing skewed token-generation patterns that averages hide.",
      "url": "https://arxiv.org/abs/2407.07000",
      "authors": [
        "Amey Agrawal",
        "Anmol Agarwal",
        "Nitin Kedia",
        "Jayashree Mohan",
        "Souvik Kundu",
        "Nipun Kwatra",
        "Ramachandran Ramjee",
        "Alexey Tumanov"
      ],
      "tags": [
        "etalon",
        "llm-inference-systems",
        "fluidity-index",
        "ttft",
        "tbt",
        "tpot",
        "token-arrival-traces",
        "deadline-based-evaluation",
        "capacity-search",
        "chunked-prefill",
        "speculative-decoding"
      ],
      "venue": "arXiv:2407.07000 (cs.LG), submitted 9 Jul 2024, v2 revised 30 Aug 2024",
      "source": "arxiv",
      "license": "",
      "published_year": 2024,
      "added_at": "2026-10-02T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 18,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/859",
      "markdown": "https://papers.projxon.ai/entries/859.md",
      "api": "https://papers.projxon.ai/api/entries/859"
    },
    {
      "id": 642,
      "kind": "paper",
      "title": "Automated Tensor Scheduling for Hybrid CPU-GPU LLM Inference on Consumer Devices",
      "summary": "ATSInfer (Nanjing University) extends llama.cpp (~15k C++ lines) for consumer hybrid inference. Static knapsack placement uses measured empirical performance density (latency per byte) plus backend-switch costs; load-aware dynamic transfer promotes CPU-resident tensors when PCIe overlap can hide the copy; async coordination splits compute vs copy-engine streams. Vs llama.cpp under the same VRAM budget: prefill up to 1.94×, decode up to 3.29× (laptop) / 3.12× (RTX 4090), ~70% higher average decode SM utilization. Also beats vLLM offload and KTransformers on the models those support. Hardware: RTX 3060 6GB+32GB (Qwen3-14B INT4, Qwen3-30B-A3B INT4, GPT-OSS-20B MXFP4, GLM-Z1-9B FP16) and RTX 4090 24GB+64GB (Llama 3.1-70B INT4, Qwen3-Next-80B-A3B INT4, Qwen3.5-122B-A10B INT4, GPT-OSS-120B MXFP4). No public code linked in the paper.",
      "url": "https://arxiv.org/abs/2607.10183",
      "authors": [
        "Yangyijian Liu",
        "Hongyi Ye",
        "Mingyang Li",
        "Wu-Jun Li"
      ],
      "tags": [
        "atsinfer",
        "llama-cpp",
        "offloading",
        "hybrid-inference",
        "moe",
        "nju",
        "x"
      ],
      "venue": "arXiv / Nanjing University",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-08-14T19:15:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/642",
      "markdown": "https://papers.projxon.ai/entries/642.md",
      "api": "https://papers.projxon.ai/api/entries/642"
    },
    {
      "id": 829,
      "kind": "paper",
      "title": "Disaggregated Quantization: Specializing LLM Prefill and Decode",
      "summary": "Disaggregated quantization (DQ): separate computation formats, weights, and storage placement specialized to prefill vs decode -- low-precision arithmetic accelerates prompt processing, compact weights reduce memory traffic during generation. Removing activation quantization on decode improves accuracy on decode-heavy tasks without added inference cost (Qwen 3, Gemma 3). Separate compute-native prefill weights accelerate prompt processing vs weight-only inference while matching/exceeding its accuracy at 2-3-bit decode. Training an NVFP4 prefiller improves 1-bit accuracy by 32.5 points on MMLU-Pro and 35.3 on MMMU-Pro without modifying the decode checkpoint (Qwen3.8-27B GGUF decoder). \"Offloaded disaggregated prefill\" (ODP) streams the extra prefill checkpoint from SSD, amortizing loading over prompt length: 1.78x time-to-first-token speedup over the weight-only baseline at 8K prompt length in llama.cpp. Accuracy evaluated under disaggregated serving in vLLM; shared-weight format disaggregation validated via PTQ on models up to 2.8T parameters.",
      "url": "https://huggingface.co/papers/2609.26333",
      "authors": [
        "Andrei Panferov",
        "Maximilian Kleinegger",
        "Sweta Priyadarshi",
        "Tijmen Blankevoort",
        "Dan Alistarh"
      ],
      "tags": [
        "quantization",
        "inference",
        "prefill",
        "decode",
        "nvfp4",
        "low-bit-inference",
        "serving"
      ],
      "venue": "IST Austria Distributed Algorithms and Systems Lab (arXiv 2026-09-21; HF #2 Paper of the Day)",
      "source": "paper_page",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/829",
      "markdown": "https://papers.projxon.ai/entries/829.md",
      "api": "https://papers.projxon.ai/api/entries/829"
    },
    {
      "id": 1127,
      "kind": "paper",
      "title": "daVinci-LLM: Towards the Science of Pretraining",
      "summary": "Argues pretraining sets the capability ceiling and is under-studied due to industry secrecy vs academic compute limits. Releases daVinci-LLM under a fully-open paradigm (pipelines, training process, exploration). Uses Data Darwinism L0–L9 taxonomy for data processing; trains a 3B model from scratch on 8T tokens with a two-stage adaptive curriculum shifting from foundational to reasoning-intensive data. Linked Hub release SII-GAIR-NLP/davinci-llm-data (gated) covers L3–L5 subsets; code at GAIR-NLP/daVinci-LLM.",
      "url": "https://arxiv.org/abs/2603.27164",
      "authors": [
        "Yiwei Qin",
        "Yixiu Liu",
        "Tiantian Mi",
        "Muhang Xie",
        "Zhen Huang",
        "Weiye Si",
        "Pengrui Lu",
        "Siyuan Feng",
        "Xia Wu",
        "Liming Liu",
        "Ye Luo",
        "Jinlong Hou",
        "Qipeng Guo",
        "Yu Qiao",
        "Pengfei Liu"
      ],
      "tags": [
        "pretraining",
        "data-darwinism",
        "open-llm",
        "curriculum",
        "gair",
        "davinci-llm",
        "8t-tokens"
      ],
      "venue": "arXiv / Shanghai AI Lab / GAIR-NLP / SII",
      "source": "arxiv",
      "license": "paper arXiv; dataset CC-BY-4.0 (Hub)",
      "published_year": 2026,
      "added_at": "2026-10-02T23:40:42.683Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1127",
      "markdown": "https://papers.projxon.ai/entries/1127.md",
      "api": "https://papers.projxon.ai/api/entries/1127"
    },
    {
      "id": 1329,
      "kind": "paper",
      "title": "dattri-LLM: A Unified and Efficient Library for Training Data Attribution at LLM Scale",
      "summary": "dattri-LLM is an open-source PyTorch library for gradient-based training data attribution (TDA) at LLM scale, from TRAIS-Lab (Shixuan Liu et al.). Efficiency comes from two exact per-example gradient representations - factorized (input-activation/output-gradient pairs) and materialized (dense per-sample weight gradients) - with a FLOP-aware cost model routing each layer and operation to the cheaper one, so 'ghost' inner products score samples without ever forming weight gradients when that is cheaper. Compatibility comes from non-invasive capture: autograd hooks assemble per-sample gradients from any training loop that calls backward(), with no changes to the loop, optimizer, or trainer - demonstrated on HuggingFace Trainer, TRL (SFT/GRPO trainers), and OLMo, under DDP and FSDP, with per-rank sharded gradient stores merged afterwards; gradients can be offloaded to disk during training and re-attributed by any method without the model. Extensibility comes from two interfaces: Attributor (plug-in attribution methods over one shared gradient stream) and HookManagerCallback (training-time applications acting on captured gradients, e.g. online data selection). Built-in attributors: TracIn, Grad-Dot/Grad-Cos, K-FAC and EK-FAC influence, DVEmb, LESS, AdamW-influence, plus a DataSelectionCallback for online data selection. Benchmarks on four H200s (512 training sequences, Qwen2.5 0.5B-72B plus Qwen1.5-110B; 1 query through 32B, 4 queries at 72B/110B) against Bergson, Kronfluence, and LogIX: dattri-LLM averages 3.2x the throughput of the fastest competing library per configuration across GradDot/K-FAC/EK-FAC, and is the only library besides Bergson to complete 72B/110B runs (Kronfluence OOMs beyond 7B on K-FAC; LogIX beyond 32B). Fidelity-cost trade-offs (LDS/LOO-style TSLOO on GPT-2, Qwen2.5-1.5B, OLMo-3-7B) favor dattri-LLM's EK-FAC and AdamW-influence. Code: MIT-licensed at github.com/TRAIS-Lab/dattri-llm (9 stars at catalog time; the library is the LLM-scale companion of the earlier dattri package). Paper license: arXiv non-exclusive distribution 1.0 (not CC).",
      "url": "https://arxiv.org/abs/2609.38767",
      "authors": [
        "Shixuan Liu",
        "Tongli Zhou",
        "Junwei Deng",
        "Pingbang Hu",
        "Jiaqi W. Ma"
      ],
      "tags": [],
      "venue": "arXiv:2609.38767 (cs.LG), submitted 30 Sep 2026 (v2 1 Oct 2026); TRAIS-Lab (UIUC; Tongli Zhou, Google)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-09T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1329",
      "markdown": "https://papers.projxon.ai/entries/1329.md",
      "api": "https://papers.projxon.ai/api/entries/1329"
    },
    {
      "id": 1281,
      "kind": "paper",
      "title": "Score Centering Stabilizes Off-policy Reinforcement Learning",
      "summary": "LLM RL is notoriously sensitive to small differences between training and inference engines (training-inference mismatch, TIM); eliminating TIM entirely would cost too much rollout efficiency. The paper shows the instability of RL under TIM is primarily caused by drift: a persistent bias between training and inference engines that accumulates with every training step. It derives an additive 'score centering' correction term that stabilizes RL under TIM by canceling drift. Training models from 0.6B to 30B parameters, score centering alone matches or outperforms importance-sampling-based methods under sampler quantization, with the gap growing as mismatch becomes more severe; because the correction is additive it composes with importance sampling, and the composition beats pure importance-sampling baselines in staleness experiments. Experiments: Qwen3-30B-A3B-Base on INTELLECT-2 math data with progressively stronger quantization of the sampler. Official code: github.com/martin-marek/score-centering. Industry-adoption note (Lambert share, 2026-11-05): Lambert reports score-centering is now popular in industry RL stacks - e.g. Tinker's StableReinforce uses it (secondhand, via Lambert) - and has added it to the RLHF Book as its own section in the policy-gradients chapter (rlhfbook.com/c/06-policy-gradients#score-centering), framing the derivation as the cleanest way to understand training-inference mismatch.",
      "url": "https://arxiv.org/abs/2609.20807",
      "authors": [
        "Martin Marek",
        "Max Ryabinin"
      ],
      "tags": [
        "score-centering",
        "drift-correction",
        "training-inference-mismatch",
        "off-policy-rl",
        "importance-sampling",
        "rlvr",
        "llm-post-training"
      ],
      "venue": "arXiv 2609.20807 (cs.LG), submitted 17 Sep 2026",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-06T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1281",
      "markdown": "https://papers.projxon.ai/entries/1281.md",
      "api": "https://papers.projxon.ai/api/entries/1281"
    }
  ]
}
