arXiv:2511.13118cs.CLcs.AI2025-11AAAI被引 3

用编程思维解决零样本事件抽取难题,让大模型像写代码一样精准提取事件。

Extracting Events Like Code: A Multi-Agent Programming Framework for Zero-Shot Event Extraction

  • 将事件抽取拆解为检索、规划、编码、验证四步,由专用智能体协作完成。
  • 在五个领域六种模型上均超越现有零样本基线,实现结构完整且符合模板的输出。
  • 适合需要高精度事件抽取的科研与工业场景,尤其擅长跨领域泛化。

零样本事件抽取(ZSEE)对大语言模型(LLMs)仍是重大挑战,因需复杂推理与领域知识。直接提示常导致触发词误判、论元缺失或模式违规。为此,我们提出Agent-Event-Coder(AEC)——一种多智能体框架,将事件抽取类比软件工程,作为结构化、迭代的代码生成过程。AEC将任务分解为检索、规划、编码和验证四个子任务,分别由专设的LLM智能体处理。事件模式以可执行的类定义表示,使验证智能体能进行确定性校验并提供精确反馈。该编程式方法通过迭代优化实现系统性消歧与模式强制。实验在五个不同领域及六种大型模型上验证,AEC始终优于现有零样本基线,展现将事件抽取视为代码生成的强大能力。代码与数据已公开于 https://github.com/UESTC-GQJ/Agent-Event-Coder。

原文摘要 · Abstract (English)

Zero-shot event extraction (ZSEE) remains a significant challenge for large language models (LLMs) due to the need for complex reasoning and domain-specific understanding. Direct prompting often yields incomplete or structurally invalid outputs--such as misclassified triggers, missing arguments, and schema violations. To address these limitations, we present Agent-Event-Coder (AEC), a novel multi-agent framework that treats event extraction like software engineering: as a structured, iterative code-generation process. AEC decomposes ZSEE into specialized subtasks--retrieval, planning, coding, and verification--each handled by a dedicated LLM agent. Event schemas are represented as executable class definitions, enabling deterministic validation and precise feedback via a verification agent. This programming-inspired approach allows for systematic disambiguation and schema enforcement through iterative refinement. By leveraging collaborative agent workflows, AEC enables LLMs to produce precise, complete, and schema-consistent extractions in zero-shot settings. Experiments across five diverse domains and six LLMs demonstrate that AEC consistently outperforms prior zero-shot baselines, showcasing the power of treating event extraction like code generation. The code and data are released on https://github.com/UESTC-GQJ/Agent-Event-Coder.

事件抽取多智能体零样本代码生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。