Self-Challenging Language Model Agents
Yifei Zhou, Sergey Levine, Jason E. Weston, Xian Li, Sainbayar Sukhbaatar
Abstract
Large language models are quickly becoming the foundation for intelligent agents that are capable of using tools. However, training such agents is challenging because it requires human creation and annotation of a diverse set of tasks, tools, and evaluation criteria. In this paper, we propose the Self-Challenging framework for training an agent on high-quality tasks that are generated by itself. The agent first plays the role of challenger and generates a task after interacting with the given tools. The tasks take the form of a novel general class of problems termed Code-as-Task, which are defined by an instruction, a verification function and solution and failure cases which serve as tests, allowing to filter only for highquality tasks. The agent then takes an executor role and trains on those tasks with reinforcement learning using the evaluation feedback as a reward. Evaluation on two existing multi-turn tool-use agent benchmarks, M 3 ToolEval and TauBench, shows the Self-Challenging framework achieves over a two-fold improvement in Llama-3.1-8B-Instruct, despite using only self-generated training data.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
11 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Your Agent May Misevolve: Emergent Risks in Self-evolving LLM Agents cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Your Agent May Misevolve: Emergent Risks in Self-evolving LLM Agents cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
- Agent Learning via Early Experience cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Self-Rewarding Language Models cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Scaling Agent Learning via Experience Synthesis cites Agent Learning via Early Experience
- Scaling Agent Learning via Experience Synthesis cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Scaling Agent Learning via Experience Synthesis cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
- SPELL: Self-Play Reinforcement Learning for Evolving Long-Context Language Models cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- SPELL: Self-Play Reinforcement Learning for Evolving Long-Context Language Models cites Self-Rewarding Language Models
Cited by top-tier papers11
- R-Zero: Self-Evolving Reasoning LLM from Zero DataChengsong Huang, Wenhao Yu, Xiaoyang Wang, Hongming Zhang et al.ICLR 2026 · 220 citations
- Your Agent May Misevolve: Emergent Risks in Self-evolving LLM AgentsShuai Shao, Qihan Ren, Dongrui Liu, Chen Qian et al.ICLR 2026 · 60 citations
- Agent Learning via Early ExperienceKai Zhang, Xiangchao Chen, Bo Liu, Tianci Xue et al.ICML 2026 · 59 citations
- Scaling Agent Learning via Experience SynthesisZhaorun Chen, Zhuokai Zhao, Kai Zhang, Bo Liu et al.ICLR 2026 · 37 citations
- SPELL: Self-Play Reinforcement Learning for Evolving Long-Context Language ModelsZiyi Yang, Weizhou Shen, Chenliang Li, Ruijun Chen et al.ICLR 2026 · 27 citations
Builds on26
- Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning et al.NeurIPS 2023 · 10,924 citations
- Toolformer: Language Models Can Teach Themselves to Use ToolsTimo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu et al.NeurIPS 2023 · 5,989 citations
- SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao et al.ICLR 2024 · 2,082 citations
- Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied AgentsWenlong Huang, Pieter Abbeel, Deepak Pathak, Igor MordatchICML 2022 · 1,539 citations
- Self-Rewarding Language ModelsWeizhe Yuan, Richard Yuanzhe Pang, Kyunghyun Cho, Xian Li et al.ICML 2024 · 569 citations
Related papers
- CodeContests+: High-Quality Test Case Generation for Competitive ProgrammingZihan Wang, Siyao Liu, Yang Sun, Ming Ding et al.EMNLP Findings 2025 · 7 citations
- Generalizable End-to-End Tool-Use RL with Synthetic CodeGymWeihua Du, Hailei Gong, Zhan Ling, Kang Liu et al.ICLR 2026 · 13 citations
- LAM SIMULATOR: Advancing Data Generation for Large Action Model Training via Online Exploration and Trajectory FeedbackThai Quoc Hoang, Kung-Hsiang Huang, Shirley Kokane, Jianguo Zhang et al.ACL Findings 2025 · 1 citation
- RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement LearningJonas Gehring, Kunhao Zheng, Jade Copet, Vegard Mella et al.ICML 2025
- Tool-Star: Empowering Multi-Tool Collaborative Web Agent via Reinforcement LearningGuanting Dong, Yifei Chen, Xiaoxi Li, Jiajie Jin et al.SIGIR 2026 · 1 citation
