mlsanityData to 14 Oct 2026

AgentBrew: Offline Tool-Use Agent Learning from Raw Real-World Trajectories

arXiv 2609.05837 ↗First posted 5 Sep 2026cs.AIcited by 2

On the map: LLM agents and tool use → Tool learning and function calling

Abstract (arXiv)

LLM-based agents are increasingly deployed in real-world applications through tool-use APIs, yet training them for specific environments remains fundamentally difficult: real-world applications provide no pre-defined tasks or verifiers, no faithful simulators, and limited budget for large-scale environment interaction. In this paper, we propose AgentBrew, an offline training framework that learns effective tool-use policies from a single batch of raw interaction trajectories, without task verifiers or iterative on-policy rollouts. The agent first explores the target environment to collect a raw trajectory corpus without quality filtering. To extract training signal from this noisy corpus, retrospective task inference reconstructs an aligned instruction for each trajectory based on its actual outcome, and PMI-Based credit assignment decomposes the trajectory's total information about the inferred instruction into additive per-action credits via pointwise mutual information (PMI). These credits weight the policy training objective, amplifying informative actions while suppressing ineffective ones. On three real-world MCP applications (GitHub, Notion, PostgreSQL), AgentBrew improves Qwen3-32B by +8.7 Acc / +9.7 Score on average, surpassing Qwen3-235B (+2.3 / +4.4) and outperforming rejection sampling (+5.9 / +10.3). These results demonstrate that fine-grained offline learning can recover useful supervision from raw trajectories that filtering-based approaches would discard. The code is available at https://github.com/alphatogo/AgentBrew

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 44 of its 49 references that are in the map. First posted on arXiv 5 Sep 2026.

Builds on

44 of 49 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025TOUCAN: Synthesizing 1.5M Tool-Agentic Data from Real-World MCP Environments1 Oct
  2. 2025MCP-Universe: Benchmarking Large Language Models with Real-World Model Context Protocol Servers20 Aug
  3. 2024StableToolBench: Towards Stable Large-Scale Benchmarking on Tool Learning of Large Language Models12 Mar
  4. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
  5. 2023Toolformer: Language Models Can Teach Themselves to Use Tools9 Feb

Other references · 39

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  2. 2025Qwen3 Technical Reportcited by 8,820
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  5. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
  6. 2017Hindsight Experience Replaycited by 1,136
  7. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  8. 2023Reinforced Self-Training (ReST) for Language Modelingcited by 500
  9. 2025Group-in-Group Policy Optimization for LLM Agent Trainingcited by 497
  10. 2024AndroidWorld: A Dynamic Benchmarking Environment for Autonomous Agentscited by 468
  11. 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 427
  12. 2024WorkArena: How Capable Are Web Agents at Solving Common Knowledge Work Tasks?cited by 363
27 more
  1. 2024KTO: Model Alignment as Prospect Theoretic Optimizationcited by 264
  2. 2024WebRL: Training LLM Web Agents via Self-Evolving Online Curriculum Reinforcement Learningcited by 256
  3. 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 232
  4. 2024DigiRL: Training In-The-Wild Device-Control Agents with Autonomous Reinforcement Learningcited by 214
  5. 2025APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplaycited by 167
  6. 2024OS-Genesis: Automating GUI Agent Trajectory Construction via Reverse Task Synthesiscited by 163
  7. 2024AgentTrek: Agent Trajectory Synthesis via Guiding Replay with Web Tutorialscited by 130
  8. 2024xLAM: A Family of Large Action Models to Empower AI Agent Systemscited by 111
  9. 2025Learn-by-interact: A Data-Centric Framework for Self-Adaptive Agents in Realistic Environmentscited by 95
  10. 2023RecurrentGPT: Interactive Generation of (Arbitrarily) Long Textcited by 84
  11. 2025AgentPRM: Process Reward Models for LLM Agents via Step-Wise Promise and Progresscited by 77
  12. 2026Agent World Model: Infinity Synthetic Environments for Agentic Reinforcement Learningcited by 66
  13. 2024Direct Multi-Turn Preference Optimization for Language Agentscited by 64
  14. 2025Simulating Environments with Reasoning Models for Agent Trainingcited by 57
  15. 2024Offline Reinforcement Learning for LLM Multi-Step Reasoningcited by 54
  16. 2026Agent-World: Scaling Real-World Environment Synthesis for Evolving General Agent Intelligencecited by 54
  17. 2026Hierarchy-of-Groups Policy Optimization for Long-Horizon Agentic Taskscited by 49
  18. 2025Agentic Reinforcement Learning with Implicit Step Rewardscited by 47
  19. 2025MCPMark: A Benchmark for Stress-Testing Realistic and Comprehensive MCP Usecited by 39
  20. 2024Relative Preference Optimization: Enhancing LLM Alignment through Contrasting Responses across Identical and Diverse Promptscited by 36
  21. 2026ScaleEnv: Scaling Environment Synthesis from Scratch for Generalist Interactive Tool-Use Agent Trainingcited by 32
  22. 2025Digi-Q: Learning Q-Value Functions for Training Device-Control Agentscited by 20
  23. 2026AgentHER: Hindsight Experience Replay for LLM Agent Trajectory Relabelingcited by 13
  24. 2026InfoPO: Information-Driven Policy Optimization for User-Centric Agentscited by 12
  25. 2026ASTRA: Automated Synthesis of agentic Trajectories and Reinforcement Arenascited by 8
  26. 2025Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMscited by 7
  27. 2026Spinning Straw into Gold: Relabeling LLM Agent Trajectories in Hindsight for Successful Demonstrationscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026UniToolCall: Unifying Tool-Use Representation, Data, and Evaluation for LLM Agents
  2. 2026AgentTune: A Unified Training Lifecycle for Tool-Using LLM Agents
  3. 2026OpaqueToolsBench: Learning Nuances of Tool Behavior Through Interaction
  4. 2026State2State: Environment-Derived Mid-Training for LLM Agents
  5. 2025Generalizable End-to-End Tool-Use RL with Synthetic CodeGym
  6. 2024Learning to Use Tools via Cooperative and Interactive Agents
  7. 2026Teaching LLMs to Learn Tool Trialing and Execution through Environment Interaction
  8. 2026Learning to Rewrite Tool Descriptions for Reliable LLM-Agent Tool Use