BAGEL: Bootstrapping Agents by Guiding Exploration with Language
Shikhar Murty, Christopher D. Manning, Peter Shaw, Mandar Joshi, Kenton Lee
Abstract
Following natural language instructions by executing actions in digital environments (e.g. web-browsers and REST APIs) is a challenging task for language model (LM) agents. Unfortunately, LM agents often fail to generalize to new environments without human demonstrations. This work presents BAGEL, a method for bootstrapping LM agents without human supervision. BAGEL converts a seed set of randomly explored trajectories or synthetic instructions, into demonstrations, via round-trips between two noisy LM components: an LM labeler which converts a trajectory into a synthetic instruction, and a zero-shot LM agent which maps the synthetic instruction into a refined trajectory. By performing these round-trips iteratively, BAGEL quickly converts the initial distribution of trajectories towards those that are well-described by natural language. We use BAGEL demonstrations to adapt a zero shot LM agent at test time via in-context learning over retrieved demonstrations, and find improvements of over 2-13% absolute on ToolQA and MiniWob++, with up to 13x reduction in execution failures.
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.
21 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
- Self-Challenging Language Model Agents cites Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agents
- Synatra: Turning Indirect Knowledge into Direct Demonstrations for Digital Agents at Scale cites Language Models can Solve Computer Tasks
- Synatra: Turning Indirect Knowledge into Direct Demonstrations for Digital Agents at Scale cites Multimodal Web Navigation with Instruction-Finetuned Foundation Models
- Agent Learning via Early Experience cites Self-Challenging Language Model Agents
- Agent Learning via Early Experience cites Multimodal Web Navigation with Instruction-Finetuned Foundation Models
- Guiding Pretraining in Reinforcement Learning with Large Language Models cites Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agents
- AdaPlanner: Adaptive Planning from Feedback with Language Models cites Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agents
- SEAgent: Self-Evolving Computer Use Agent with Autonomous Learning from Experience cites OS-Genesis: Automating GUI Agent Trajectory Construction via Reverse Task Synthesis
- Language Models can Solve Computer Tasks cites Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agents
- Multimodal Web Navigation with Instruction-Finetuned Foundation Models cites Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agents
- Multimodal Web Navigation with Instruction-Finetuned Foundation Models cites AdaPlanner: Adaptive Planning from Feedback with Language Models
- Multimodal Web Navigation with Instruction-Finetuned Foundation Models cites Language Models can Solve Computer Tasks
Cited by top-tier papers21
- OS-Genesis: Automating GUI Agent Trajectory Construction via Reverse Task SynthesisQiushi Sun, Kanzhi Cheng, Zichen Ding, Chuanyang Jin et al.ACL 2025 · 114 citations
- Agent Learning via Early ExperienceKai Zhang, Xiangchao Chen, Bo Liu, Tianci Xue et al.ICML 2026 · 59 citations
- SEAgent: Self-Evolving Computer Use Agent with Autonomous Learning from ExperienceZEYI SUN, Ziyu Liu, Yuhang Zang, Yuhang Cao et al.ICML 2026 · 58 citations
- Self-Challenging Language Model AgentsYifei Zhou, Sergey Levine, Jason E. Weston, Xian Li et al.NeurIPS 2025 · 52 citations
- Synatra: Turning Indirect Knowledge into Direct Demonstrations for Digital Agents at ScaleTianyue Ou, Frank F. Xu, Aman Madaan, Jiarui Liu et al.NeurIPS 2024 · 45 citations
Builds on13
- Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied AgentsWenlong Huang, Pieter Abbeel, Deepak Pathak, Igor MordatchICML 2022 · 1,539 citations
- Language Models can Solve Computer TasksGeunwoo Kim, Pierre Baldi, Stephen McAleerNeurIPS 2023 · 539 citations
- Guiding Pretraining in Reinforcement Learning with Large Language ModelsYuqing Du, Olivia Watkins, Zihan Wang, Cédric Colas et al.ICML 2023 · 257 citations
- AdaPlanner: Adaptive Planning from Feedback with Language ModelsHaotian Sun, Yuchen Zhuang, Lingkai Kong, Bo Dai et al.NeurIPS 2023 · 257 citations
- Multimodal Web Navigation with Instruction-Finetuned Foundation ModelsHiroki Furuta, Kuang-Huei Lee, Ofir Nachum, Yutaka Matsuo et al.ICLR 2024 · 160 citations
Related papers
- A Zero-Shot Language Agent for Computer Control with Structured ReflectionTao Li, Gang Li, Zhiwei Deng, Bryan Wang et al.EMNLP Findings 2023 · 6 citations
- AdaptAgent: Adapting Multimodal Web Agents with Few-Shot Learning from Human DemonstrationsGaurav Verma, Rachneet Kaur, Nishan Srishankar, Zhen Zeng et al.ACL 2025 · 19 citations
- Learning API Functionality from In-Context Demonstrations for Tool-based AgentsBhrij Patel, Ashish Jagmohan, Aditya VempatyEMNLP Findings 2025 · 1 citation
- Learn-by-interact: A Data-Centric Framework For Self-Adaptive Agents in Realistic EnvironmentsHongjin Su, Ruoxi Sun, Jinsung Yoon, Pengcheng Yin et al.ICLR 2025
- Self-ICL: Zero-Shot In-Context Learning with Self-Generated DemonstrationsWei-Lin Chen, Cheng-Kuang Wu, Yun-Nung Chen, Hsin-Hsi ChenEMNLP 2023 · 8 citations
