AgentFly: Extensible and Scalable Reinforcement Learning for LM Agents
On the map: LLM agents and tool use → Reinforcement learning for LLM agents
Abstract (arXiv)
Methods to build LLM agents have evolved from prompt engineering and supervised finetuning to agentic reinforcement learning (agentic RL). However, agentic RL remains bottlenecked by its surrounding systems: agents must interact with heterogeneous environments, such as sandboxes, model services, and external APIs. Their allocation, reuse, and lifecycle dominate rollout cost and cap the scale at which training becomes practical. In this work, we present AgentFly, an agentic RL framework built with a unified resource layer that treats each of these environments as a distinct, typed resource scheduled through one engine, with per-tool acquisition for multi-turn reuse, asynchronous backpressure, and rollout versus global-scoped lifecycles. AgentFly adopts a four-layer design: (I) agent layer that abstracts the agent, tool, and reward concepts, decomposing agentic RL into defining agents, tools, and reward functions; (II) rollout layer that composes these into agent loops and computes rewards; (III) context layer that organizes rollouts, injects contextual information, and arranges resources; and (IV) a low-level resource layer that performs resource management. We provide a suite of prebuilt tools and environments, demonstrate successful agent training across multiple tasks and models, and report the first controlled cross-framework throughput comparison against agentic RL frameworks.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use. Builds on 19 of its 24 references that are in the map. First posted on arXiv 20 Jul 2025.
Builds on
19 of 24 references.
Closest ancestors · 2
Same direction, newest first
- 2025Group-in-Group Policy Optimization for LLM Agent Training16 May
- 2025RAGEN: Understanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement Learning24 Apr
Other references · 17
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,444
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,205
5 more
- 2025SimpleRL-Zoo: Investigating and Taming Zero Reinforcement Learning for Open Base Models in the Wildcited by 511
- 2023Cognitive Architectures for Language Agentscited by 429
- 2023AgentTuning: Enabling Generalized Agent Abilities for LLMscited by 338
- 2022ScienceWorld: Is your Agent Smarter than a 5th Grader?cited by 327
- 2024ToolGen: Unified Tool Retrieval and Calling via Generationcited by 74
Built on by
Citing papers per year: 2025: 4; 2026: 4.
8 papers.
- 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Surveycited by 205
- 2026Agent World Model: Infinity Synthetic Environments for Agentic Reinforcement Learningcited by 66
- 2026Hierarchy-of-Groups Policy Optimization for Long-Horizon Agentic Taskscited by 49
- 2025MTIR-SQL: Multi-turn Tool-Integrated Reasoning Reinforcement Learning for Text-to-SQLcited by 10
- 2026Training and Benchmarking Code Generation for Physics-Inspired Animationscited by 3
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agentscited by 2
- 2025MolAct: An Agentic RL Framework for Molecular Editing and Property Optimizationcited by 2
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environmentscited by 1
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environments20 Aug 2026
- 2026Hierarchy-of-Groups Policy Optimization for Long-Horizon Agentic Tasks26 Feb 2026
- 2026Training and Benchmarking Code Generation for Physics-Inspired Animations11 Feb 2026
- 2026Agent World Model: Infinity Synthetic Environments for Agentic Reinforcement Learning10 Feb 2026
- 2025MolAct: An Agentic RL Framework for Molecular Editing and Property Optimization23 Dec 2025
- 2025MTIR-SQL: Multi-turn Tool-Integrated Reasoning Reinforcement Learning for Text-to-SQL29 Oct 2025
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agents20 Oct 2025
- 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Survey2 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2025Agent-R1: A Unified and Modular Framework for Agentic Reinforcement Learning
- 2025AgentRL: Scaling Agentic Reinforcement Learning with a Multi-Turn, Multi-Task Framework
- 2026Rethinking Agentic Reinforcement Learning In Large Language Models
- 2026AgentJet: A Distributed Swarm Training Framework for Agentic Reinforcement Learning
- 2025ML-Agent: Reinforcing LLM Agents for Autonomous Machine Learning Engineering
- 2024Survey on Large Language Model-Enhanced Reinforcement Learning: Concept, Taxonomy, and Methods
- 2025PARL: Prompt-based Agents for Reinforcement Learning
- 2025AgentGym-RL: Training LLM Agents for Long-Horizon Decision Making through Multi-Turn Reinforcement Learning