paper-with-me

Papers

Executable Code Actions Elicit Better LLM Agents

2024-02-01 · Xingyao Wang, Yangyi Chen, Lifan Yuan, Yizhe Zhang, Yunzhu Li, Hao Peng, Heng Ji

Large Language Model (LLM) agents, capable of performing a broad range of actions, such as invoking tools and controlling robots, show great potential in tackling real-world challenges. LLM agents are typically prompted to produce actions by generating JSON or text in a pre-defined format, which is usually limited by constrained action space (e.g., the scope of pre-defined tools) and restricted flexibility (e.g., inability to compose multiple tools). This work proposes to use executable Python code to consolidate LLM agents' actions into a unified action space (CodeAct). Integrated with a Python interpreter, CodeAct can execute code actions and dynamically revise prior actions or emit new actions upon new observations through multi-turn interactions. Our extensive analysis of 17 LLMs on API-Bank and a newly curated benchmark shows that CodeAct outperforms widely used alternatives (up to 20% higher success rate). The encouraging performance of CodeAct motivates us to build an open-source LLM agent that interacts with environments by executing interpretable code and collaborates with users using natural language. To this end, we collect an instruction-tuning dataset CodeActInstruct that consists of 7k multi-turn interactions using CodeAct. We show that it can be used with existing data to improve models in agent-oriented tasks without compromising their general capability. CodeActAgent, finetuned from Llama2 and Mistral, is integrated with Python interpreter and uniquely tailored to perform sophisticated tasks (e.g., model training) using existing libraries and autonomously self-debug.

📄 PDF Abstract BibTeX arXiv:2402.01030

Code (2)

epfllm/megatron-llm 공식 구현 pytorch
xingyaoww/code-act 공식 구현

Tasks

Language ModellingLarge Language Model

Similar Papers 제목 키워드 기반

Self-Evolving Software Agents

2026-04-29 · Marco Robol, Paolo Giorgini arxiv

Autonomous agents can adapt their behaviour to changing environments, but remain bound to requirements, goals, and capabilities fixed at design time, preventing genuine software evolution. This paper introduces self-evol…

YIELD: A Large-Scale Dataset and Evaluation Framework for Information Elicitation Agents

2026-04-13 · Victor De Lima, Grace Hui Yang arxiv

Most conversational agents (CAs) are designed to satisfy user needs through user-driven interactions. However, many real-world settings, such as academic interviewing, judicial proceedings, and journalistic investigation…

RICE-PO: Turning Retrieval Interactions into Credit Signals for Reasoning Agents

2026-05-25 · Mingchen Li, Hansi Zeng, Zhuo Qian, Jiatan Huang 외 arxiv

Retrieval is increasingly moving from one-shot matching toward interactive reasoning, where language agents iteratively inspect evidence, reformulate queries, and search again. Training such agents raises a credit-assign…

MetaPS: Adaptive Programmatic Strategy Selection for Market Agents

2026-06-21 · Jiaxiang Chen, Aotian Luo, Zhouyi Zheng, Weiyi Huang 외 arxiv

No single market strategy always wins: momentum, mean reversion, risk control,and event-driven rules can each succeed or fail as market conditions change.Rather than asking large language models to directly generate mark…

Evaluating Generative Agents with Actions Grounded in Socially Distributed Task Environments using Incognita

2026-07-03 · Dan C. Hsu, Luke Lu arxiv

Effective agency in social environments depends on when an agent seeks knowledge, when it acts, and whether its actions are justified by acquired information. Existing grounded benchmarks provide executable actions, pers…