EnCompass: Enhancing Agent Programming with Search Over Program Execution Paths
Zhening Li, Armando Solar-Lezama, Yisong Yue, Stephan Zheng
摘要
We introduce a new approach to agent programming, the development of LLMbased agents. Current approaches to agent programming often entangle two aspects of agent design: the core workflow logic and the inference-time strategy (e.g., tree search). We introduce probabilistic angelic nondeterminism (PAN), a programming model that disentangles these two concerns, allowing the programmer to describe the agent workflow and independently experiment with different inference-time strategies by simply changing a few inputs. We provide an implementation of PAN in Python as the ENCOMPASS framework, which uses a Python decorator to compile agent workflow programs into a search space. We present three case studies that demonstrate how the framework lets the programmer quickly improve the reliability of an agent and easily switch between different inference-time strategies, all with little additional coding.
branchpoint(**branchpoint_params)
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Tree of Thoughts: Deliberate Problem Solving with Large Language Models 引用了 Self-Refine: Iterative Refinement with Self-Feedback
- WebArena: A Realistic Web Environment for Building Autonomous Agents 引用了 Tree of Thoughts: Deliberate Problem Solving with Large Language Models
- SWE-bench: Can Language Models Resolve Real-world Github Issues? 引用了 WebArena: A Realistic Web Environment for Building Autonomous Agents
- Reflexion: language agents with verbal reinforcement learning 引用了 Self-Refine: Iterative Refinement with Self-Feedback
- PPDL: LLM-Based Flows as Probabilistic Programs 引用了 Tree of Thoughts: Deliberate Problem Solving with Large Language Models
- PPDL: LLM-Based Flows as Probabilistic Programs 引用了 Self-Refine: Iterative Refinement with Self-Feedback
- PPDL: LLM-Based Flows as Probabilistic Programs 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
引用它的顶会 Paper1
它引用的 Paper20
- Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan 等NeurIPS 2023 · 5,828 次引用
- Tree of Thoughts: Deliberate Problem Solving with Large Language ModelsShunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran 等NeurIPS 2023 · 5,068 次引用
- Self-Refine: Iterative Refinement with Self-FeedbackAman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan 等NeurIPS 2023 · 4,972 次引用
- SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao 等ICLR 2024 · 2,082 次引用
- WebArena: A Realistic Web Environment for Building Autonomous AgentsShuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou 等ICLR 2024 · 1,197 次引用
相关 Paper
- Probabilistic Programming Bots in Intuitive Physics Game PlayFahad Alhasoun, Sarah AlnegheimishAAAI 2021 · 1 次引用
- Online and Interactive Bayesian Inference DebuggingNathanael Nussbaumer, Markus Böck, Jürgen CitoICSE 2026
- A Programmatic and Semantic Approach to Explaining and Debugging Neural Network Based Object DetectorsEdward Kim, Divya Gopinath, Corina S. Pasareanu, Sanjit A. SeshiaCVPR 2020
- Orpheus: Engineering Multiagent Systems via Communicating AgentsMatteo Baldoni, Samuel H. Christie V., Munindar P. Singh, Amit K. ChopraAAAI 2025 · 9 次引用
- LogicHunter: Testing LLM Agent Frameworks with an Agentic OracleMinghui Long, Yanjie Zhao, Haoyu WangISSTA 2026
