cs.CLSep 22, 2026

TomasuLLM: Out-of-Order Speculative Execution for LLM Agents

Authors: Jiangnan Yu, Ceyu Xu, Mengming Li, Shiyu Huang, Yiran Xia, Jian Weng, Hui Xue, Haohui Mai, 

Organizations: HKUST Hong Kong, Hong Kong · Nanjing University Nanjing, China · King Abdullah University of Science and Technology Thuwal, Saudi Arabia · Zhejiang Lab Hangzhou, China

Abstract

Long-running tools can dominate coding-agent latency: compilers, test suites, and repository commands take seconds to minutes while the agent idles. This observation stall presents the same tension that drove out-of-order processors -- asequential interface hides work that can be predicted and started early, but a speculative result may become visible only after it and every earlier step have been validated. We present TomasuLLM, a runtime that executes agent tool calls out of trajectory order while preserving task-execution correctness. It drafts future actions, runs them in isolated copy-on-write sandboxes, traces their dependencies and effects, and commits results in trajectory order only after validation against committed state. Across three benchmarks spanning sub-second to minutes-long tool calls, TomasuLLM improves the reported benchmark means and scales with tool latency: 1.31x on 100 SWE-bench Verified tasks, 1.35x on 28 Terminal-Bench 2.0 tasks, and 1.27x matched progress on 18 SWE-Marathon sessions. Across 4,010 audited commit-validation records, it produces zero false accepts.

Figures & tables

Appendix figures & tables12 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Speculative Macro Commit for Faster Tool-Using Agents

    Sep 3, 2026Zeyu Liu, Souvik Kundu, Peter A. BeerelTool-Augmented Language Model AgentsLLM Agent Workflow Optimization

  2. Parallelizing Tool Execution and LLM Generation for Low-Latency Agent Serving

    Mar 19, 2026Yifan Sui, Han Zhao, Rui Ma +6LLM Agent ServingLLM Tool Use

  3. PeakBench: Benchmarking Resource-Aware Tool Invocation in LLM Agents

    Aug 25, 2026Zhi-Kai Chen, Xu-Xiang Zhong, Song-Yan Li +2Tool-Using AgentsLLM Agent Evaluation