Introduction
Knowledge Graph Construction (KGC), which includes extracting relational triples and complex events from unstructured text, is traditionally a data-intensive process. In low-resource settings, Pre-trained Language Models (PLMs) often struggle with the "semantic gap"—the difficulty of mapping natural language to rigid structural schemas—and a lack of contextual analogy. This paper proposes RAP (Reference As Prompt), a retrieval-augmented framework that provides models with an in-context "cheat sheet" of similar examples and schema rules to overcome these challenges.
Methodology
RAP is a model-agnostic framework designed to enhance data efficiency by dynamically retrieving relevant training examples and their corresponding structural schemas. The framework operates in four main stages:
- Schema-aware Reference Store Construction: A database is created mapping text instances to symbolic schema graphs. To expand this store without manual labeling, the authors employ dictionary-based weak supervision on open-domain text.
- Retrieval-based Reference Integration: For any new input sentence, a sparse retriever (BM25) identifies the top-$k$ most similar text instances from the reference store.
- Prompt Construction: The retrieved text and their associated schema sub-graphs (definitions, triggers, and argument structures) are formatted into a rich prompt.
- Plug-and-Play Inference: This prompt is prepended to the input sentence, allowing RAP to be integrated with various KGC architectures, including both generation-based and classification-based models.
Experimental Results
The authors evaluated RAP on four benchmarks: ACE05-E and CASIE for Event Extraction (EE), and NYT and WebNLG for Relation Triple Extraction (RTE). The experiments focused on ultra-low-resource splits (1% to 10% of training data).
Key findings include:
- Significant Performance Gains: On the ACE05-E 1% split, RAP boosted Trigger Classification F1 from 55.4 to 59.3.
- Revitalizing Classification Models: Traditional classification models often fail in low-resource settings. On the WebNLG 1% split, the PRGC baseline scored 0.00 F1, but jumped to 12.69 F1 when augmented with RAP.
- Analogy vs. Augmentation: Results indicate that using retrieved instances as in-context prompts is superior to standard data augmentation, which can introduce harmful noise during training.
Discussion: The Retrieval "Goldilocks" Zone
A critical insight from the ablation studies is the sensitivity of the model to the number of retrieved references. While references provide necessary context, an excess can lead to "negative knowledge fusion," where noise degrades performance.
As illustrated above, simpler tasks like trigger classification achieve optimal results with only 1-2 references. In contrast, more complex tasks like argument classification require a larger context, peaking at approximately 8 references.
Conclusion
RAP demonstrates that providing PLMs with structural blueprints and analogical examples via prompts significantly improves performance in data-scarce Knowledge Graph Construction. By bridging the semantic gap and providing explicit schema definitions, RAP makes both generative and classification models viable for low-resource extraction. Future work will investigate the inclusion of more complex symbolic knowledge, such as logical axioms, into the prompting framework.
Summary updated