PreprintCited by 1AI-based Problem Solving and PlanningRobot Manipulation and LearningReinforcement Learning in Robotics

LLM-Driven Corrective Robot Operation Code Generation with Static Text-Based Simulation

Open access
Wang, Wenhao, Rong, Yi, Li, Yanyan, Jiao, Long, Yuan, Jiawei·2025·arXiv

Abstract

Recent advances in Large language models (LLMs) have demonstrated their promising capabilities of generating robot operation code to enable LLM-driven robots. To enhance the reliability of operation code generated by LLMs, corrective designs with feedback from the observation of executing code have been increasingly adopted in existing research. However, the code execution in these designs relies on either a physical experiment or a customized simulation environment, which limits their deployment due to the high configuration effort of the environment and the potential long execution time. In this paper, we explore the possibility of directly leveraging LLM to enable static simulation of robot operation code, and then leverage it to design a new reliable LLM-driven corrective robot operation code generation framework. Our framework configures the LLM as a static simulator with enhanced capabilities that reliably simulate robot code execution by interpreting actions, reasoning over state transitions, analyzing execution outcomes, and generating semantic observations that accurately capture trajectory dynamics. To validate the performance of our framework, we performed experiments on various operation tasks for different robots, including UAVs and small ground vehicles. The experiment results not only demonstrated the high accuracy of our static text-based simulation but also the reliable code generation of our LLM-driven corrective framework, which achieves a comparable performance with state-of-the-art research while does not rely on dynamic code execution using physical experiments or simulators.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

DataCite · 10.48550/arxiv.2512.02002

Cites

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • As a grounding interface, code translates high-level intent from LLMs into embodiment-respecting commands through primitive skill calls, synthesized Python control policies, and structured behavior-tree programs.

    “As a grounding interface, it translates high-level intent from LLMs into embodiment-respecting commands through primitive skill calls [9, 110, 111, 112], synthesized Python control policies [10, 33, 124, 117, 118], and structured behavior-tree programs [34].”

    From Code as Agent Harness (2026) · cites this paper as [117]

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

No references could be resolved yet.

Research works printed but not linked: 34

  1. J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al., "Gpt-4 technical report," arXiv preprint arXiv:2303.08774, 2023. · arXiv
  2. G. Team, R. Anil, S. Borgeaud, J.-B. Alayrac, J. Yu, R. Soricut, J. Schalkwyk, A. M. Dai, A. Hauth, K. Millican, et al., "Gemini: a family of highly capable multimodal models," arXiv preprint arXiv:2312.11805, 2023. · arXiv
  3. A. Liu, B. Feng, B. Xue, B. Wang, B. Wu, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, et al., "Deepseek-v3 technical report," arXiv preprint arXiv:2412.19437, 2024. · arXiv
  4. A. Tagliabue, K. Kondo, T. Zhao, M. Peterson, C. T. Tewari, and J. P. How, "Real: Resilience and adaptation using large language models on autonomous aerial robots," in 2024 IEEE 63rd Conference on Decision and Control (CDC). IEEE, 2024, pp. 1539-1546.
  5. M. Mohanan and A. Salgoankar, "A survey of robotic motion planning in dynamic environments," Robotics and Autonomous Systems, vol. 100, pp. 171-185, 2018.
  6. B. Yu, H. Kasaei, and M. Cao, "L3mvn: Leveraging large language models for visual target navigation," in 2023 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2023, pp. 3554- 3560.
  7. S. H. Vemprala, R. Bonatti, A. Bucker, and A. Kapoor, "Chatgpt for robotics: Design principles and model abilities," IEEE Access, vol. 12, pp. 55 682-55 696, 2024.
  8. G. Chen, X. Yu, N. Ling, and L. Zhong, "Typefly: Flying drones with large language model," arXiv preprint arXiv:2312.14950, 2023. · arXiv
  9. J. Liang, W. Huang, F. Xia, P. Xu, K. Hausman, B. Ichter, P. Florence, and A. Zeng, "Code as policies: Language model programs for embodied control," in 2023 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2023, pp. 9493-9500.
  10. W. Wang, Y. Li, L. Jiao, and J. Yuan, "Gsce: a prompt framework with enhanced reasoning for reliable llm-driven drone control," in 2025 International Conference on Unmanned Aircraft Systems (ICUAS), 2025, pp. 441-448.
  11. Y. Chen, J. Arkin, C. Dawson, Y. Zhang, N. Roy, and C. Fan, "Autotamp: Autoregressive task and motion planning with llms as translators and checkers," in 2024 IEEE International Conference on Robotics and Automation (ICRA), 2024, pp. 6695-6702.
  12. L. Sun, D. K. Jha, C. Hori, S. Jain, R. Corcodel, X. Zhu, M. Tomizuka, and D. Romeres, "Interactive planning using large language models for partially observable robotic tasks," in 2024 IEEE International Conference on Robotics and Automation (ICRA), 2024, pp. 14 054- 14 061.
  13. W. Wang, Y. Li, L. Jiao, and J. Yuan, "Large language model-driven closed-loop uav operation with semantic observations," arXiv preprint arXiv:2507.01930, 2025. · arXiv
  14. S. Shah, D. Dey, C. Lovett, and A. Kapoor, "Airsim: High-fidelity visual and physical simulation for autonomous vehicles," in Field and Service Robotics: Results of the 11th International Conference. Springer, 2018, pp. 621-635.
  15. L. Meier, D. Honegger, and M. Pollefeys, "Px4: A node-based mul- tithreaded open source robotics framework for deeply embedded plat- forms," in 2015 IEEE international conference on robotics and automa- tion (ICRA). IEEE, 2015, pp. 6235-6240.
  16. F. Joublin, A. Ceravola, P. Smirnov, F. Ocker, J. Deigmoeller, A. Belar- dinelli, C. Wang, S. Hasler, D. Tanneberg, and M. Gienger, "Copal: Corrective planning of robot actions with large language models," in 2024 IEEE International Conference on Robotics and Automation (ICRA), 2024, pp. 8664-8670.
  17. S. S. Raman, V. Cohen, I. Idrees, E. Rosen, R. Mooney, S. Tellex, and D. Paulius, "Cape: Corrective actions from precondition errors using large language models," in 2024 IEEE International Conference on Robotics and Automation (ICRA), 2024, pp. 14 070-14 077.
  18. A. Curtis, N. Kumar, J. Cao, T. Lozano-Pérez, and L. P. Kaelbling, "Trust the PRoc3s: Solving long-horizon robotics problems with LLMs and constraint satisfaction," in 8th Annual Conference on Robot Learning, 2024.
  19. Z. Hu, J. J. Li, A. Guha, and J. Biswas, "Robo-instruct: Simulator- augmented instruction alignment for finetuning code llms," arXiv preprint arXiv:2405.20179, 2024. · arXiv
  20. C. Gao, X. Lan, N. Li, Y. Yuan, J. Ding, Z. Zhou, F. Xu, and Y. Li, "Large language models empowered agent-based modeling and simulation: A survey and perspectives," Humanities and Social Sciences Communications, vol. 11, no. 1, pp. 1-24, 2024.
  21. C. Yang, X. Wang, J. Jiang, Q. Zhang, and X. Huang, "Evaluating world models with llm for decision making," arXiv preprint arXiv:2411.08794, 2024. · arXiv
  22. J. Wang, B. Li, X. Wang, F. Li, Y. Wu, J. Chen, and X. Yi, "Besimulator: A large language model powered text-based behavior simulator," arXiv preprint arXiv:2409.15865, 2024. · arXiv
  23. R. Wang, G. Todd, Z. Xiao, X. Yuan, M.-A. Côté, P. Clark, and P. Jansen, "Can language models serve as text-based world simulators?" arXiv preprint arXiv:2406.06485, 2024. · arXiv
  24. G. Marvin, N. Hellen, D. Jjingo, and J. Nakatumba-Nabende, "Prompt engineering in large language models," in International conference on data intelligence and cognitive informatics. Springer, 2023, pp. 387- 402.
  25. M. G. Arenas, T. Xiao, S. Singh, V. Jain, A. Ren, Q. Vuong, J. Varley, A. Herzog, I. Leal, S. Kirmani, M. Prats, D. Sadigh, V. Sindhwani, K. Rao, J. Liang, and A. Zeng, "How to prompt your robot: A promptbook for manipulation skills with code as policies," in 2024 IEEE International Conference on Robotics and Automation (ICRA), 2024, pp. 4340-4348.
  26. B. Y. Lin, A. Ravichander, X. Lu, N. Dziri, M. Sclar, K. Chandu, C. Bha- gavatula, and Y. Choi, "The unlocking spell on base llms: Rethinking alignment via in-context learning," arXiv preprint arXiv:2312.01552, 2023. · arXiv
  27. T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al., "Language mod- els are few-shot learners," Advances in neural information processing systems, vol. 33, pp. 1877-1901, 2020.
  28. J. Wei, X. Wang, D. Schuurmans, M. Bosma, F. Xia, E. Chi, Q. V. Le, D. Zhou, et al., "Chain-of-thought prompting elicits reasoning in large language models," Advances in neural information processing systems, vol. 35, pp. 24 824-24 837, 2022.
  29. Z. Zhou, J. Song, K. Yao, Z. Shu, and L. Ma, "Isr-llm: Iterative self- refined large language model for long-horizon sequential task planning," in 2024 IEEE International Conference on Robotics and Automation (ICRA), 2024, pp. 2081-2088.
  30. N. Koenig and A. Howard, "Design and use paradigms for gazebo, an open-source multi-robot simulator," in 2004 IEEE/RSJ international conference on intelligent robots and systems (IROS)(IEEE Cat. No. 04CH37566), vol. 3. Ieee, 2004, pp. 2149-2154.
  31. B. Atil, A. Chittams, L. Fu, F. Ture, L. Xu, and B. Baldwin, "Llm stability: A detailed analysis with some surprises," arXiv preprint arXiv:2408.04667, 2024. · arXiv
  32. S. Ouyang, J. M. Zhang, M. Harman, and M. Wang, "An empirical study of the non-determinism of chatgpt in code generation," ACM Transactions on Software Engineering and Methodology, vol. 34, no. 2, pp. 1-28, 2025.
  33. A. Keluskar, A. Bhattacharjee, and H. Liu, "Do llms understand ambi- guity in text? a case study in open-world question answering," in 2024 IEEE International Conference on Big Data (BigData). IEEE, 2024, pp. 7485-7490.
  34. M. Quigley, K. Conley, B. Gerkey, J. Faust, T. Foote, J. Leibs, R. Wheeler, A. Y. Ng, et al., "Ros: an open-source robot operating system," in ICRA workshop on open source software, vol. 3, no. 3.2. Kobe, 2009, p. 5.

Cited by

Sorted by citations

Authors
Wang, W., Rong, Y., Li, Y., Jiao, L., & Yuan, J.
Affiliations
California State University System (US)
Venue
arXiv
Publisher
arXiv
Published
2025
Pages
13716-13723
ISSN
1050-4729 (ISSN-L)
OpenAlex
W4416969204
Cited by
0
References
0
FWCI
0.00
Type
conference paper
Language
en
Open access
Locations
  • Proceedings - IEEE International Conference on Robotics and Automation/Proceedings (publishedVersion)
  • arXiv (Cornell University) (submittedVersion, cc-by-nc-sa)
  • arXiv (Cornell University)
Funders
National Science Foundation (2318711, 2318710)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › AI-based Problem Solving and Planning
  • Physical Sciences › Engineering › Control and Systems Engineering › Robot Manipulation and Learning
  • Physical Sciences › Computer Science › Artificial Intelligence › Reinforcement Learning in Robotics
Keywords
large language models, static simulation, execution feedback, trajectory dynamics, UAV control, code reliability

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review