Abstract
Zero-shot relation triplet extraction (ZeroRTE) is a challenging task where models must extract facts from text involving relations not encountered during training. We present TAG (Two-Agent Game), a novel framework that employs an iterative "attempt-criticize-rectify" cycle between two agents: a Generator and an Extractor. By simulating a deliberation process, TAG enables models to learn fine-grained semantic boundaries for unseen relations. Experimental results across multiple benchmarks demonstrate that TAG achieves a 6%–16% F1 score improvement over existing state-of-the-art methods while remaining significantly more efficient than large-scale language models during inference.
Introduction
Relation Triplet Extraction (RTE) is fundamental to knowledge graph construction, involving the identification of subject-relation-object triplets (e.g., (Adele, performer, Hello)) within unstructured text. In real-world scenarios, models often encounter "zero-shot" conditions where the target relations were not present in the training set.
Existing ZeroRTE approaches typically rely on providing relation descriptions in prompts. However, these methods often fail to distinguish between semantically similar relations, such as "located in" versus "contains." This "superficial" understanding limits the model's ability to handle complex, fine-grained semantic nuances.
Methodology: The Two-Agent Game (TAG)
To address these limitations, we propose the TAG framework, which treats ZeroRTE as a collaborative game between two specialized agents:
- The Generator (G): Synthesizes training examples (sentences and triplets) for unseen relations.
- The Extractor (E): Extracts triplets from text and serves as a critic for the Generator.
The interaction follows a three-step iterative process:
- Attempting: The Generator produces a synthetic dataset for the target unseen relations.
- Criticizing: The Extractor evaluates the quality of the generated data by calculating the log-likelihood of the triplets given the sentences. This score distinguishes high-quality "matches" from "hallucinations."
- Rectifying: Both agents are optimized using Reinforcement Learning (Policy Gradient). The matching scores serve as rewards, guiding the Generator to produce more realistic data and the Extractor to better recognize the specific nuances of the new relations.
Importantly, the Generator is only used during the training/adaptation phase. During inference, only the Extractor is deployed, ensuring no additional computational overhead compared to standard models.
Experimental Evaluation
TAG was evaluated on three major benchmarks: FewRel, Wiki-ZSL, and TACRED, using varying numbers of unseen relations ($m = 5, 10, 15$). The framework proved to be model-agnostic, showing improvements when applied to ALBERT, BART, and LLMs like GPT-3.5 and LLaMa-7b.
Results and Discussion
The TAG framework consistently outperformed baselines across all datasets. On the FewRel dataset ($m=5$), TAG achieved F1 score gains between 6% and 16%.
Key findings include:
- Efficiency: A BART-based TAG model was 78% faster than GPT-3.5 using In-Context Learning, while delivering superior performance.
- Robustness of RL: Reinforcement Learning proved superior to standard Maximum Likelihood Estimation (MLE) by allowing the model to prioritize high-quality synthetic samples over noisy ones.
- Semantic Precision: The "criticizing" step effectively forces the model to develop sharper decision boundaries for similar relations.
Limitations and Future Work
While effective, TAG faces challenges with commercial LLM APIs that do not provide the log-likelihood values required for the Criticizing step. Additionally, the model occasionally struggles with entity directionality (e.g., swapping head and tail entities). Future research will explore replacing probability-based rewards with natural language "textual feedback" to further enhance the deliberation process.
Summary updated