HExA (分层实验智能体):无需训练的上下文自改进框架
阅读原文· arxiv.orgHExA是一种无需训练的上下文自改进框架,通过迭代设计并优化相关实验,从经验中学习可复用的技能组合库,并整合实验证据来回答问题或执行动作。在物理环境工具调用基准Interphyre上,Claude Sonnet 4.6原始成功率仅2%,使用HExA后升至77%。HExA同样提升开源权重模型表现,并超越ReAct和Reflexion等基线。仅通过迁移从较简单关卡学到的技能(不进行主动实验),即可达到44%成功率,证明技能的可复用性。框架兼容任何黑盒模型,无需外部监督或离线数据。
Large language models (LLMs) are increasingly used to take actions in the real world and support human decision-making, yet most agents rely on parametric knowledge, fixed post-training data, retrieval, or search. This paradigm breaks down in novel domains and for sophisticated queries that cannot be answered from prior knowledge alone. Knowing the laws of physics, for instance, does not by itself enable LLMs to answer queries or complete long-horizon tasks in a complex physical system. To address this, we introduce Hierarchical Experimentalist Agents (HExA), an in-context self-improvement framework to learn from active experimentation. HExA iteratively designs and refines query-relevant experiments, learns a reusable library of composable skills from experience, and integrates experimental evidence to answer queries or take actions. HExA is training-free, compatible with any black-box model, and does not require external supervision, oracles, or offline data. To evaluate active experimentation, we introduce Interphyre, a tool-calling benchmark built on the PHYRE 2D procedural physics environment, where agents propose interventions and test hypotheses through simulation APIs. Experiments show that current LLM agents struggle in these settings, especially on the hardest levels of Interphyre. Claude Sonnet 4.6 achieves only 2% success, while HExA improves the same model to up to 77% success. HExA also improves open-weight models and outperforms agentic baselines such as ReAct and Reflexion. Moreover, using only skills learned from easier levels and transferred without active experimentation, HExA achieves 44% success, demonstrating the reusability and generalization of its learned skills. Overall, HExA shows that learning through active experimentation can help agents discover useful knowledge, acquire reusable skills, and make efficient progress on novel long-horizon tasks.