Extracting Events Like Code: A Multi-Agent Programming Framework for Zero-Shot Event Extraction
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
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.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 15 of its 22 references that are in the map. First posted on arXiv 17 Nov 2025.
Builds on
15 of 22 references.
References · 15
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Multi-Agent Collaboration: Harnessing the Power of Intelligent LLM Agentscited by 333
- 2023ChatIE: Zero-Shot Information Extraction via Chatting with ChatGPTcited by 250
- 2023Large Language Models for Generative Information Extraction: A Surveycited by 185
- 2023Large Language Models as Analogical Reasonerscited by 107
- 2023Exploring the Feasibility of ChatGPT for Event Extractioncited by 76
- 2022Code4Struct: Code Generation for Few-Shot Event Structure Predictioncited by 70
- 2019Meta-Learning with Dynamic-Memory-Based Prototypical Network for Few-Shot Event Detectioncited by 54
- 2023Retrieval-Augmented Code Generation for Universal Information Extractioncited by 40
- 2025Instruction-Tuning LLMs for Event Extraction with Annotation Guidelinescited by 18
- 2024Debate as Optimization: Adaptive Conformal Prediction and Diverse Retrieval for Event Extractioncited by 10
- 2024Unleashing the Power of Large Language Models in Zero-shot Relation Extraction via Self-Promptingcited by 10
3 more
- 2024Improving Event Definition Following For Zero-Shot Event Detectioncited by 7
- 2024Decompose, Enrich, and Extract! Schema-aware Event Extraction using LLMscited by 6
- 2025Bridging Generative and Discriminative Learning: Few-Shot Relation Extraction via Two-Stage Knowledge-Guided Pre-trainingcited by 3
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Learning to Generate and Extract: A Multi-Agent Collaboration Framework For Zero-shot Document-level Event Arguments Extraction
- 2025Event Extraction in Large Language Model
- 2025Reflective Agreement: Combining Self-Mixture of Agents with a Sequence Tagger for Robust Event Extraction
- 2025MapCoder-Lite: Distilling Multi-Agent Coding into a Single Small LLM
- 2026ESAA: Event Sourcing for Autonomous Agents in LLM-Based Software Engineering
- 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generation
- 2025AgentCompass: Towards Reliable Evaluation of Agentic Workflows in Production
- 2026ESAA-Conversational: An Event-Sourced Memory Layer for Continuity, Handoff, and Curation Across Heterogeneous LLM Coding Agents