Abstract
Schema induction builds a graph representation explaining how events unfold in a scenario. Existing approaches have been based on information retrieval (IR) and information extraction (IE), often with limited human curation. We demonstrate a human-in-the-loop schema induction system powered by GPT-3. We first describe the different modules of our system, including prompting to generate schematic elements, manual edit of those elements, and conversion of those into a schema graph. By qualitatively comparing our system to previous ones, we show that our system not only transfers to new domains more easily than previous approaches, but also reduces efforts of human curation thanks to our interactive interface.
Introduction
In Natural Language Understanding (NLU), an event schema serves as an abstract map of a complex situation. For instance, a "Cyber Attack" schema might include nodes like "gain access," "exfiltrate data," and "modify logs," connected by temporal (sequential) and hierarchical (sub-event) relationships.
Historically, creating these schemas has been a significant bottleneck. Fully manual creation is slow and prone to inconsistency, while fully automated systems—relying on Information Retrieval (IR) and Information Extraction (IE) from massive news corpora—often struggle with noise and logical consistency. This paper introduces a collaborative pipeline where GPT-3 performs the heavy lifting of content generation while a human expert acts as the editor, ensuring logical coherence and domain accuracy.
System Methodology
The proposed system utilizes a four-stage pipeline powered by GPT-3 and an interactive web interface:
- Step Generation: Given a scenario (e.g., "disease outbreak"), the system uses zero-shot prompting to ask the LLM for a list of typical sub-events.
- Node Extraction: The system converts verbose sentences into structured
{subject, verb, object}tuples. This is achieved through either a standard Semantic Role Labeling (SRL) model or few-shot prompting with GPT-3. - Graph Construction: The system asks the LLM to predict relationships between pairs of nodes (e.g., "Does Event A happen before Event B?"). The results are visualized as a graph that the user can manually prune, edit, or expand.
- Node Grounding: To ensure interoperability, nodes are "grounded" to the XPO ontology, a large-scale event ontology built on Wikidata. The system suggests matches based on semantic embeddings, which the human then confirms.
Key Insights
LLMs as Knowledge Bases
A core finding of this research is that LLMs already contain the "scripts" for most human activities within their training data. They do not need to be specifically trained on what happens during a corporate merger; they simply need to be prompted to retrieve that information in a structured format. This allows for immense domain agility, as the system can pivot to new, niche domains instantly without requiring thousands of domain-specific documents.
The Structural Reasoning Gap
While GPT-3 is excellent at listing events, it is significantly less reliable at determining the relationships between them. This "structural reasoning gap" justifies the human-in-the-loop approach: the AI provides the raw material, but the human provides the logical framework. This collaborative method effectively solves the "blank page" problem, allowing curators to work much faster by editing a draft rather than starting from scratch.
Evaluation and Results
The system was evaluated across five diverse scenarios: Evacuation (EVC), Food Ordering (FOD), Job Hunting (JOB), Medical Treatment (MED), and Corporate Mergers (MRG).
- Accuracy: Initial step generation and node extraction were highly accurate, often achieving near-100% acceptance by human curators.
- Curation Effort: The graph construction phase required the most intervention. For example, in the "Corporate Merger" scenario, humans made 16 edits to the edges, highlighting the limitations of current LLM temporal reasoning.
- Efficiency: Users reported that completing a full schema took between 10 and 15 minutes, significantly faster than previous machine-assisted methods.
Limitations and Future Work
The authors identify several areas for improvement. GPT-3 exhibits a Western-centric bias (e.g., assuming "Miranda Rights" are part of every arrest). Additionally, the current node extraction process sometimes loses important context, such as location or specific conditions. Future work will focus on creating more informative node representations and implementing real-time feedback loops where human edits are used to fine-tune the model's performance dynamically.
Summary updated