ClawLoop:通过Harness原生训练循环实现自我改进的智能体

·

研究论文 · 2026/10/14

针对基于通用执行环境(harness)的LLM智能体缺乏自我改进训练流程的问题,提出ClawLoop框架。该框架无需外部教师模型且对先验依赖极小,通过任务合成、训练、诊断与反馈三个阶段构成自我维持循环:任务合成利用两种互补构建方式生成多样化训练任务,并施加基于诊断的条件化难度增长及无智能体与有智能体两种任务验证;训练通过SFT和/或RL更新智能体;诊断与反馈分析智能体 rollout 行为,生成能力分析报告,作为下一轮任务合成的反馈。以Qwen3.6-27B作为循环模型,在SkillsBench、Claw-Eval-Live和ClawGym-Bench上取得一致提升;迭代优化的任务进一步迁移至更小规模的Qwen3.5-4B和9B模型,在所有基准上均有增益,验证了数据质量独立于循环模型。

该工作为基于通用执行环境的智能体提供了一种不依赖外部教师模型的自我改进训练范式,并通过多基准实验和跨模型迁移验证了其有效性与数据质量,对智能体后训练研究具有参考价值。

The rapid advancement of Large Language Models (LLMs) has driven their deployment toward general-purpose harness environments, where LLM-based agents operate in sandbox workspaces and interact directly with file systems and shells. While numerous post-training pipelines exist for tool-use agents, their counterparts for harness-based agents remain scarce and are predominantly one-shot and teacher-dependent: a stronger external model synthesizes tasks and collects trajectories, the target agent is trained once, and evaluation results are consumed by human researchers rather than fed back into the loop. Such pipelines are inherently bounded by the capability of the external model and the scope of human prior, leaving no room for self-improvement. To address these limitations, we propose ClawLoop, a framework that enables self-improving without any external teacher model and with minimal prior dependencies. ClawLoop composes three phases into a self-sustaining cycle: Task Synthesis, which generates a diverse pool of training tasks via two complementary construction routines, applies diagnosis-conditioned difficulty growth followed by both agent-free and agent-based task validation; Training, which updates the agent via SFT and/or RL; and Diagnosis and Feedback, which analyzes the agent's rollout behaviors to produce a capability analysis report that will be used as feedback for task synthesis in the next iteration. Using Qwen3.6-27B as the loop model, ClawLoop yields consistent improvements on SkillsBench, Claw-Eval-Live, and ClawGym-Bench. The iteratively refined tasks are further transferred to smaller-scale Qwen3.5-4B and 9B models with gains across all benchmarks, validating data quality independently of the loop model.

阅读原文

参与讨论