mlsanityData to 24 Nov 2026

God Does Not Play Dice: Enforcing Batch Invariance in Agentic Kernel Generation

arXiv 2610.36623 ↗Submitted 27 Oct 2026cs.AI cs.LG cs.SEcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Large language model (LLM) serving systems dynamically batch user requests for GPU execution, so the same request may be processed alongside different requests across runs. If the GPU kernels lack batch invariance (BI), this changing batch context can alter the numerical output for an unchanged input, undermining reproducibility. Existing kernel generation agents focus on correctness and efficiency but overlook BI. We find 19 confirmed BI violations among 83 batch-applicable released artifacts. To address this limitation, we propose tool, which combines contract-guided static dependency analysis with dynamic validation of bitwise consistency across batch contexts. tool is designed as a plug-in component for general kernel agents, allowing their original optimization capabilities to be reused while adding BI enforcement. We integrate it as successive acceptance gates in the optimization loop, rejecting structurally risky or dynamically non-invariant candidates before performance benchmarking and returning feedback to the agent. Experiments across three agent frameworks under baseline and BI-aware generation on real world LLM serving tasks show that tool improves the BI pass rate from 67.6% to 91.9% while retaining 91.8% of the baseline geometric mean speedup. These results demonstrate that tool can be incorporated into kernel optimization by agents as an additional reliability objective alongside correctness and speed.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 35 of its 48 references that are in the map. Submitted 27 Oct 2026.

Builds on

35 of 48 references.

Closest ancestors · 6

Same direction, newest first

  1. 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Language30 Aug
  2. 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariants16 Apr
  3. 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidance30 Mar
  4. 2026Towards Automated Kernel Generation in the Era of LLMs22 Jan
  5. 2025STARK: Strategic Team of Agents for Refining Kernels19 Oct
  6. 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization9 Sep

Other references · 29

  1. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
  2. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 279
  3. 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 161
  4. 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 96
  5. 2025Understanding and Mitigating Numerical Sources of Nondeterminism in LLM Inferencecited by 74
  6. 2026FlashInfer-Bench: Building the Virtuous Cycle for AI-driven LLM Systemscited by 35
  7. 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Modelcited by 30
  8. 2026LLM-42: Enabling Determinism in LLM Inference with Verified Speculationcited by 27
  9. 2025Deterministic Inference across Tensor Parallel Sizes That Eliminates Training-Inference Mismatchcited by 26
  10. 2025QiMeng-Kernel: Macro-Thinking Micro-Coding Paradigm for LLM-Based High-Performance GPU Kernel Generationcited by 21
  11. 2026Diagnosing Training Inference Mismatch in LLM Reinforcement Learning via a Zero-Mismatch Referencecited by 18
  12. 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 17
17 more
  1. 2025SwizzlePerf: Hardware-Aware LLMs for GPU Kernel Performance Optimizationcited by 14
  2. 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolutioncited by 12
  3. 2023DyCL: Dynamic Neural Network Compilation Via Program Rewriting and Graph Optimizationcited by 11
  4. 2025Your Compiler is Backdooring Your Model: Understanding and Exploiting Compilation Inconsistency Vulnerabilities in Deep Learning Compilerscited by 9
  5. 2026Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimizationcited by 8
  6. 2026Hidden Reliability Risks in Large Language Models: Systematic Identification of Precision-Induced Output Disagreementscited by 7
  7. 2026Bit-Exact AI Inference Verification Without Performance Tradeoffscited by 7
  8. 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimizationcited by 5
  9. 2026KernelArc: A Multi-Agent Framework for GPU Kernel Optimizationcited by 5
  10. 2026Hardware-Triggered Backdoorscited by 3
  11. 2026KForge: LLM-Driven Cross-Platform Kernel Generation for AI Acceleratorscited by 3
  12. 2026FloatDoor: Platform-Triggered Backdoors in LLMscited by 3
  13. 2022An efficient and flexible inference system for serving heterogeneous ensembles of deep neural networkscited by 2
  14. 2026SpecGen: Accelerating Agentic Kernel Optimization with Speculative Generationcited by 2
  15. 2026(A)iSpy: Parasitic Trojans for Machine Learning Infrastructurecited by 2
  16. 2026LEAP: Lean Environment-Feedback via Adaptive Pruning for Code RL in GPU Kernel Generationcited by 1
  17. 2026KernelZero: Co-Evolving Proposer and Coder for Continuously Improved GPU Kernel Generationcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026KernelGenBench: Can LLMs and Agents Write Efficient Kernels Across Operator Sources and Hardware Platforms?
  2. 2026EGG: An Expert-Guided Agent Framework for Kernel Generation
  3. 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimization
  4. 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
  5. 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware
  6. 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimization
  7. 2026FastKernels: Benchmarking GPU Kernel Generation in Production
  8. 2026MKEvolve: A Modular Multi-Agent Framework for Kernel Code Generation