TL;DR
Large Language Models (LLMs) are great at relation extraction, but they often "hallucinate" — they incorrectly identify relationships that don't exist. This paper introduces DEPTH, a framework that simplifies sentences using dependency parsing and refines predictions hierarchically to drastically reduce these hallucinations, leading to more reliable knowledge extraction.
What Problem Does This Paper Address?
Building structured knowledge graphs from text is crucial for many applications. Relation extraction (RE) is a key part of this, identifying semantic relationships between entities (e.g., "Apple" is headquartered in "Cupertino"). While LLMs have shown promise, they often struggle with a critical aspect: knowing when no relation exists between entities. This is particularly true for complex sentences. The paper highlights that a leading LLM incorrectly identified a relation in 96.9% of "NO-RELATION" cases on the SciERC dataset. These "hallucinated" relations introduce noise into knowledge graphs, undermining their trustworthiness for enterprise-level applications. Existing methods often focus on classifying existing relations but don't adequately address the problem of reliably detecting the absence of a relation.
Methods
DEPTH tackles this problem with a two-pronged approach:
- Dependency-Aware Sentence Simplification (Grounding Module):
- Dependency Parsing: The core idea is that the shortest dependency path (SDP) between two entities in a sentence often contains the most crucial information for determining their relationship. The system first parses the sentence to build a dependency tree.
- SDP Extraction & Simplification: It then extracts the SDP and uses it to simplify the original sentence, keeping only the essential parts relevant to the entity pair and their potential relation. This "distills" the sentence, removing syntactic noise and irrelevant details.
- Causality-Guided RLHF: To train the LLM for this task, they employ Reinforcement Learning from Human Feedback (RLHF). Crucially, they introduce a causality-driven reward model. This model is designed to prevent "reward hacking" (where the LLM learns spurious correlations) by explicitly disentangling reward-relevant signals from irrelevant ones, leading to more robust learning.
- Two-Tiered Hierarchical Refinement (Refinement Module):
- Aggregation: After the Grounding module makes initial predictions for all entity pairs in a sentence, the Refinement module aggregates these local predictions.
- Global Validation: It then prompts the LLM to re-evaluate these predictions using global semantic constraints (like transitivity or mutual exclusivity) and the full sentence's dependency structure. This allows the model to correct omissions, resolve inconsistencies, and catch errors that might have slipped through the local prediction stage.
Datasets
The paper evaluates DEPTH on a diverse set of benchmarks to demonstrate its generalizability:
- News Domain: TACRED, TACREV, Re-TACRED, NYT11
- Scientific Domain: SciERC, FOBIE
- Biomedical Domain: DDI
- General Domain: SemEval
They also mention using these datasets to construct preference datasets for training the reward model.
Key Insights and Ideas
- The "Saying No" Problem is Critical: The paper strongly emphasizes that for reliable knowledge extraction, an LLM's ability to correctly identify no relation is as important, if not more so, than identifying existing ones. Hallucinations here are particularly damaging.
- Syntax Matters (Even for LLMs): By leveraging dependency parsing and the shortest dependency path, DEPTH shows that explicit structural information can significantly help LLMs cut through syntactic complexity and focus on relevant semantics, reducing noise.
- Causality for Robust RLHF: The introduction of a causality-driven reward model is a key innovation. It moves beyond simply rewarding correct outputs to ensuring the LLM learns why an output is correct, making it less susceptible to gaming the system.
- Hierarchy for Robustness: The two-tiered approach (local grounding followed by global refinement) is powerful. It allows for initial predictions and then a "self-correction" step that leverages broader context, catching errors that might be missed in isolation.
Key Results
- Drastic Hallucination Reduction: DEPTH achieves an average hallucination rate (HR) of 7.9% across eight benchmarks, a significant improvement over existing LLM-based baselines (which average around 18.4% or higher). On SciERC, it reduced HR from 96.9% to 7.1%.
- Improved Overall Performance: DEPTH achieves an average improvement of 9.3% in micro-F1 score over state-of-the-art LLM-based baselines.
- Effective with Lightweight LLMs: The framework shows strong performance even with smaller LLM backbones (e.g., a 3B model achieving an HR of 12.9%), demonstrating its efficiency.
- Robust Reward Model: The causality-driven reward model achieves an average accuracy of 98.9% in pairwise comparisons, indicating its robustness against spurious correlations.
Limitations and Future Work
- RLHF Computational Overhead: While effective, RLHF training (reward model training and PPO fine-tuning) is computationally more expensive than zero-shot or ICL methods. The paper notes training times and suggests parameter-efficient fine-tuning (PEFT) techniques like LoRA as a way to mitigate this.
- Document-Level Extraction: The current DEPTH focuses on sentence-level extraction. Extending it to document-level RE, which involves identifying entities across multiple sentences and resolving coreferences, is a significant future challenge.
- Open-Set Relation Discovery: The framework is designed for closed-set RE (predefined relation types). Future work could explore extending DEPTH to discover novel relation types in open-set settings.
- Dependency Parser Errors: While DEPTH is designed to tolerate parser errors, they can still impact performance. The paper notes that the two-tiered design helps mitigate this, with the Refinement module able to recover from some errors.
Summary updated