arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.08013cs.AI
收藏

基于选择性观察的结构化行动信用学习CLI代理

Learning CLI Agents with Structured Action Credit under Selective Observation

Fudan University(复旦大学);Shanghai Innovation Institute(上海创新研究院);Shanghai Jiao Tong University(上海交通大学)

Haoyang Su, Ying Wen

AI总结:

本文研究了CLI代理在选择性观察和行动信用分配中的瓶颈,提出σ-Reveal和A³方法,构建ShellOps数据集以评估CLI任务学习。

摘要:

命令行界面(CLI)代理正在成为一种实用的agent-计算机交互范式,用于演变文件系统、可执行命令行程序和在线执行反馈。最近的工作使用强化学习(RL)从可验证的任务反馈中学习这些交互能力,但很少有方法利用CLI行动的原生结构化属性作为学习信号。除了这一未充分利用的行动结构外,CLI学习还耦合了两种对编码代理而言的瓶颈。首先,代理必须在大规模代码库中从部分观察中识别任务相关证据。其次,稀疏终端奖励必须分配给塑造长多轮轨迹的动作。我们通过shell驱动的信息提取和文件编辑任务研究这些瓶颈。对于选择性观察,我们引入σ-Reveal,一种推理时间机制,为同一CLI选择token预算的上下文。对于信用分配,我们提出行动优势分配(A³),一种原生代理RL方法,保留了标准代理RL的算法复杂性。A³从episode级相对反馈、基于抽象语法树(AST)的动作子链残差和tree级轨迹边际构建turn级优势。为进一步评估此问题设置,我们构建ShellOps,一个覆盖CLI任务的可验证数据集套件。

英文摘要:

Command line interface (CLI) agents are emerging as a practical paradigm for agent-computer interaction over evolving filesystems, executable command line programs, and online execution feedback. Recent work has used reinforcement learning (RL) to learn these interaction abilities from verifiable task feedback, yet few methods exploit the native structured attributes of CLI actions as learning signals. Beyond this underused action structure, CLI learning also couples two bottlenecks for coding agents. First, the agent must identify task-relevant evidence in a large codebase from partial observations. Second, sparse terminal rewards must be assigned to the actions that shape a long multi-turn trajectory. We study these bottlenecks through shell-driven information extraction and file editing tasks. For selective observation, we introduce $σ$-Reveal, an inference-time mechanism that selects token-budgeted context for the same CLI. For credit assignment, we propose Action Advantage Assignment ($\mathrm{A}^3$), a native agentic RL method that preserves the algorithmic complexity of standard agentic RL. $\mathrm{A}^3$ constructs turn-level advantages from episode-level relative feedback, abstract syntax tree (AST) based action sub-chain residuals, and tree-level trajectory margins. To further evaluate this problem setting, we construct ShellOps, a verifiable dataset suite covering CLI tasks in repository environments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑