mlsanityData to 14 Oct 2026

Generalizable End-to-End Tool-Use RL with Synthetic CodeGym

arXiv 2509.17325 ↗First posted 22 Sep 2025cs.LG cs.AI cs.CLcited by 17

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

Abstract (arXiv)

Tool-augmented large language models (LLMs), hereafter LLM agents, leverage external tools to solve diverse tasks and interface with the real world. However, current training practices largely rely on supervised fine-tuning (SFT) over static trajectories or reinforcement learning (RL) on narrow tasks, which generalize poorly beyond development settings and lead to brittleness with new tools and unseen workflows. Because code execution reflects many structural patterns of real-world workflows, we use coding problems as a structured substrate to build tool-use agent training environments with diverse task configurations. To this end, we introduce CodeGym, a scalable framework that synthesizes diverse, verifiable, and controllable multi-turn tool-use environments for agent RL, enabling LLM agents to explore and master various workflows actively. CodeGym converts static coding problems into interactive environments by extracting atomic functions or logic into callable tools, yielding verifiable tasks that span various tool-execution workflows. Models of varying sizes and chain-of-thought configurations trained in CodeGym exhibit consistent out-of-distribution generalizability; for example, Qwen2.5-32B-Instruct achieves an absolute accuracy gain of 8.7 points on the OOD benchmark τ-Bench. These results highlight CodeGym as a step toward scalable general-purpose RL environments for training tool-use behaviors that align with real-world agent workflows.

Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 56 of its 64 references that are in the map. First posted on arXiv 22 Sep 2025.

Builds on

56 of 64 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
  2. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  3. 2024Executable Code Actions Elicit Better LLM Agents1 Feb

Other references · 53

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  4. 2025Qwen3 Technical Reportcited by 8,820
  5. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  6. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  7. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
  8. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
  9. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
  10. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  11. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
  12. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
38 more
  1. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
  2. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,402
  3. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
  4. 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,205
  5. 2024Large Language Model based Multi-Agents: A Survey of Progress and Challengescited by 769
  6. 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 672
  7. 2022PAL: Program-aided Language Modelscited by 652
  8. 2023ChemCrow: Augmenting large-language models with chemistry toolscited by 631
  9. 2025τ2-Bench: Evaluating Conversational Agents in a Dual-Control Environmentcited by 627
  10. 2024Understanding the planning of LLM agents: A surveycited by 421
  11. 2025ReTool: Reinforcement Learning for Strategic Tool Use in LLMscited by 392
  12. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
  13. 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 356
  14. 2018Quantifying Generalization in Reinforcement Learningcited by 352
  15. 2022ScienceWorld: Is your Agent Smarter than a 5th Grader?cited by 327
  16. 2018TextWorld: A Learning Environment for Text-based Gamescited by 310
  17. 2025DeepResearcher: Scaling Deep Research via Reinforcement Learning in Real-world Environmentscited by 286
  18. 2018BabyAI: A Platform to Study the Sample Efficiency of Grounded Language Learningcited by 244
  19. 2025WebSailor: Navigating Super-human Reasoning for Web Agentcited by 229
  20. 2024Tool Learning with Large Language Models: A Surveycited by 223
  21. 2025ZebraLogic: On the Scaling Limits of LLMs for Logical Reasoningcited by 201
  22. 2025BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agentcited by 200
  23. 2024APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasetscited by 198
  24. 2022TALM: Tool Augmented Language Modelscited by 197
  25. 2019Interactive Fiction Games: A Colossal Adventurecited by 168
  26. 2025APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplaycited by 167
  27. 2025Skywork Open Reasoner 1 Technical Reportcited by 165
  28. 2025Seed1.5-Thinking: Advancing Superb Reasoning Models with Reinforcement Learningcited by 161
  29. 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 123
  30. 2024AgentGym: Evolving Large Language Model-based Agents across Diverse Environmentscited by 120
  31. 2025KodCode: A Diverse, Challenging, and Verifiable Synthetic Dataset for Codingcited by 119
  32. 2025Agentic Reasoning and Tool Integration for LLMs via Reinforcement Learningcited by 110
  33. 2025Agentic Reasoning: A Streamlined Framework for Enhancing LLM Reasoning with Agentic Toolscited by 106
  34. 2024Agent-FLAN: Designing Data and Methods of Effective Agent Tuning for Large Language Modelscited by 100
  35. 2025VerlTool: Towards Holistic Agentic Reinforcement Learning with Tool Usecited by 96
  36. 2023T-Eval: Evaluating the Tool Utilization Capability of Large Language Models Step by Stepcited by 93
  37. 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generationcited by 83
  38. 2024SciAgent: Tool-augmented Language Models for Scientific Reasoningcited by 70

50 most cited of 53 All 53 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 12.

17 papers.

Sort:

By area:

  1. 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Managementcited by 51
  2. 2025Incentivizing Agentic Reasoning in LLM Judges via Tool-Integrated Reinforcement Learningcited by 17
  3. 2025Scaling Agentic Reinforcement Learning for Tool-Integrated Reasoning in VLMscited by 17
  4. 2025AutoForge: Automated Environment Synthesis for Agentic Reinforcement Learningcited by 17
  5. 2026GradAlign: Gradient-Aligned Data Selection for LLM Reinforcement Learningcited by 12
  6. 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Applicationcited by 8
  7. 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RLcited by 3
  8. 2026What Makes Good Agentic Data? An ACE Lens on Data Generation for LLM Agentscited by 3
  9. 2026Teaching Thinking Models to Reason with Tools: A Full-Pipeline Recipe for Tool-Integrated Reasoningcited by 2
  10. 2026ToolAnchor: Anchoring Counterfactual Context to Boost Agentic Tool-use Capabilitycited by 1
  11. 2025Adaptive Tool Generation with Models as Tools and Reinforcement Learningcited by 0
  12. 2026TIER: Trajectory-Invariant Execution Rewards for Multi-Step Tool Compositioncited by 0
5 more
  1. 2026Toolcompass: Guiding Tool Trialing, Not Suppressing Itcited by 0
  2. 2026Dyad: Extending Large Language Models with Native Typed Decision-Makingcited by 0
  3. 2026DeLoop: Repeated Actions as Self-Supervision for Long-Horizon Agentscited by 0
  4. 2026AdCoEvo: A Co-Evolving Multi-Agent Advertising Delivery Systemcited by 0
  5. 2026One Task, Many Interfaces: Simple Cross-Interface Consistency Training Improves LLM Agent Robustnesscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026CodeMidas: Scaling Agentic Coding RL Environments from Code Itself
  2. 2026SkillGym: Internalizing Human Skills into LLMs for Real-World Problem Solving
  3. 2025Tool-R1: Sample-Efficient Reinforcement Learning for Agentic Tool Use
  4. 2024Learning to Use Tools via Cooperative and Interactive Agents
  5. 2025A Self-Improving Coding Agent
  6. 2026On Effectiveness and Efficiency of Agentic Tool-calling and RL Training
  7. 2026Tool-R0: Self-Evolving LLM Agents for Tool-Learning from Zero Data
  8. 2025SEW: Self-Evolving Agentic Workflows for Automated Code Generation