mlsanityData to 14 Oct 2026

Executing as You Generate: Hiding Execution Latency in LLM Code Interpreters

arXiv 2604.00491 ↗First posted 1 Apr 2026cs.PL cs.AI cs.SEcited by 2

Not on the map. Why?

Abstract (arXiv)

Current LLM systems are increasingly equipped with a code interpreter that executes generated code to obtain results. This works serially: the model first generates the complete code, then an interpreter executes it. This sequential workflow leaves the executor idle during generation and the generator idle during execution, resulting in unnecessary end-to-end latency. Our key observation is that an LLM, unlike a human developer, emits code tokens left to right and does not backtrack over what it has already written. This makes it possible to start executing a piece of code while later tokens are still being generated. We formalize this parallel execution paradigm, modeling it as a three-stage pipeline of generation, detection, and execution, and derive closed-form latency bounds that characterize its speedup potential and operating regimes. We then present EAGER, a concrete implementation featuring AST-based chunking, dynamic batching with gated execution, and early error interruption. We evaluate EAGER across four benchmarks, seven LLMs, and three execution environments. The overlap mechanism hides almost all execution behind generation, reducing the non-overlapped portion of execution time by up to 99.8% and cutting end-to-end latency by up to 37.3% on error-free runs.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 20 of its 30 references that are in the map. First posted on arXiv 1 Apr 2026.

Builds on

20 of 30 references.

References · 20

  1. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
  2. 2023Teaching Large Language Models to Self-Debugcited by 988
  3. 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
  4. 2022PAL: Program-aided Language Modelscited by 652
  5. 2024Executable Code Actions Elicit Better LLM Agentscited by 564
  6. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
  7. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 239
  8. 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 238
  9. 2024Data Interpreter: An LLM Agent For Data Sciencecited by 225
  10. 2026MiMo-V2-Flash Technical Reportcited by 191
  11. 2024InfiAgent-DABench: Evaluating Agents on Data Analysis Taskscited by 140
  12. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
8 more
  1. 2024DSBench: How Far Are Data Science Agents from Becoming Data Science Experts?cited by 125
  2. 2022Natural Language to Code Translation with Executioncited by 124
  3. 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 123
  4. 2022Natural Language to Code Generation in Interactive Data Science Notebookscited by 87
  5. 2024CYCLE: Learning to Self-Refine the Code Generationcited by 42
  6. 2024Drawing Pandas: A Benchmark for LLMs in Generating Plotting Codecited by 23
  7. 2024Multi-Programming Language Sandbox for LLMscited by 10
  8. 2025Execution Guided Line-by-Line Code Generationcited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.