Abstract
Pre-trained language models (LMs) such as BERT and GPT-2 are often viewed as black boxes of linguistic knowledge. This research demonstrates that these models are also potent "zero-shot" Open Information Extraction (OIE) systems. By decoding internal attention scores via beam search, the authors show that LMs can outperform supervised state-of-the-art systems on large-scale factual benchmarks without any task-specific training. This work introduces the IELM benchmark, a massive dataset for evaluating factual OIE.
Introduction
Open Information Extraction (OIE) aims to extract structured (subject; relation; object) triples from unstructured text without a pre-defined schema. While Large Language Models (LLMs) are known to store vast amounts of knowledge, traditional evaluation methods like "fill-in-the-blank" probes (e.g., "Bob Dylan was born in [MASK]") are limited. They require the user to provide the relation and fail to test the model's ability to discover multiple complex relations within a single sentence. Furthermore, existing OIE benchmarks are often small and focused on linguistic structure rather than factual accuracy. The IELM framework addresses these gaps by providing a massive new benchmark and a method to transform LMs into OIE systems without fine-tuning.
Methodology: From Attention to Triples
The authors propose a two-step pipeline to transform a standard pre-trained LM into a zero-shot extractor.
1. Argument Extraction
The system first identifies potential entities using a standard off-the-shelf noun phrase (NP) chunker. Every pair of identified NPs is considered a candidate for a relation.
2. Predicate Extraction
The core innovation lies in decoding the LM's internal attention scores. Instead of training a new classification head, the system examines the attention weights between tokens. For a given pair of arguments, beam search is used to find the sequence of tokens between them that maximizes aggregate attention.
The logic is intuitive: if a model "attends" heavily to the words "born in" when processing "Dylan" and "Minnesota," those words likely constitute the relation. This method is adapted for both unidirectional (GPT-2) and bidirectional (BERT) models, allowing for the extraction of relations even when they appear in reverse order.
The IELM Benchmark
The study evaluates performance across four datasets, including two standard linguistic OIE benchmarks (CaRB and Re-OIE2016) and two new factual benchmarks:
- TAC KBP-OIE: Adapted from the TAC Knowledge Base Population task (~27k triples).
- Wikidata-OIE: A massive dataset created via distant supervision, aligning millions of Wikipedia sentences with structured triples from Wikidata, containing over 27 million gold triples.
Key Results and Insights
The experiments reveal that attention mechanisms implicitly build high-quality maps of relational predicates. Key findings include:
- Factual Superiority: Zero-shot LMs outperformed the best supervised OIE systems on factual benchmarks. GPT-2 XL achieved a +2.6% absolute F1 improvement on TAC KBP-OIE and a +3.1% improvement on Wikidata-OIE compared to supervised state-of-the-art methods.
- Scaling Laws: Performance consistently improves with model size. Moving from GPT-2 Small (117M) to GPT-2 XL (1.5B) yields better extraction, suggesting larger models store denser relational webs.
- BERT vs. GPT: BERT generally achieves higher F1 scores due to its bidirectional context, which significantly improves recall by finding "hidden" connections that unidirectional models might miss.
Limitations and Future Work
Despite its success, the system faces several challenges. Approximately 30% of errors stem from the "chunker bottleneck," where the initial NP chunker fails to identify an argument. Additionally, while precision is high, recall remains moderate as attention scores are not always sharp enough to extract exact predicate strings. Future work may involve adding ranking modules or utilizing larger pre-training corpora to further bridge the recall gap.
Summary updated