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

确保失败安全:一个用于开放网络数据收集的受约束、可验证的智能体框架

Making Failure Safe: A Constrained, Verifiable Agent Framework for Open-Web Data Collection

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)

Bo Chen

AI总结:

提出一个受约束、可验证的智能体框架,通过将LLM输出从自由形式代码转换为类型化JSON收集器配置,结合六类型收集器分类、模板和效用函数约束、静态Airflow DAG执行、基于规则的质量检查和结构化反馈纠正,实现了零执行阶段LLM令牌消耗和最低平均挂钟时间。

摘要:

LLM和智能体可以从自然语言需求生成网络爬虫,但由于依赖错误、选择器损坏、模式不匹配和异构页面结构,直接生成仍然不可靠。我们提出一个受约束、可验证的智能体框架,将LLM输出从自由形式代码转换为类型化JSON收集器配置,结合六类型收集器分类、模板和效用函数约束、静态Airflow DAG执行、基于规则的质量检查和结构化反馈纠正。在138个任务上的实验表明,该分类支持基于描述的需求类型化,同时确认稳定实例化需要完成超出初始描述的源、字段和执行约束。在80个独立源验证的任务上,该框架以零执行阶段LLM令牌消耗和最低平均挂钟时间运行,用适中的一次性质量换取了适用于重复计划收集的可重用、确定性和可验证的执行路径。这些结果将该框架定位为重复开放网络数据收集的可重用、低成本且可验证的执行路径。

英文摘要:

LLMs and agents can generate web scrapers from natural-language requirements, but direct generation remains unreliable because of dependency errors, broken selectors, schema mismatches, and heterogeneous page structures. We propose a constrained, verifiable agent framework that shifts LLM output from free-form code to typed JSON collector configurations, combining a six-type collector taxonomy, template and utility-function constraints, static Airflow DAG execution, rule-based quality checking, and structured feedback correction. Experiments on 138 tasks show that the taxonomy supports description-based requirement typing, while confirming that stable instantiation requires completing source, field, and execution constraints beyond the initial description. On 80 independently source-verified tasks, the framework runs with zero execution-stage LLM tokens and the lowest average wall-clock time, trading moderate one-shot quality for a reusable, deterministic, and verifiable execution path suited to repeated scheduled collection. These results position the framework as a reusable, low-cost, and verifiable execution path for repeated open-web data collection.

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

↑