Hallucination-Resistant Relation Extraction via Dependency-Aware Sentence Simplification and Two-tiered Hierarchical Refinement

Yupei Yang, Fan Feng, Lin Yang, Wanxi Deng, Lin Qu, Biwei Huang, Shikui Tu, Lei Xu

TL;DR

Large Language Models (LLMs) excel at relation extraction but suffer from a severe "yes-man" problem, frequently hallucinating relationships between entities where none exist. To fix this, the authors introduce DEPTH, a framework that combines dependency-aware sentence simplification, causality-guided reinforcement learning, and global consistency refinement. DEPTH slashes the average hallucination rate from over 80% to just 7.9% while boosting overall extraction accuracy (F1 score) by 9.3%.

What Problem Does This Paper Address?

Relation Extraction (RE)—identifying semantic relationships between entities in unstructured text—is foundational for building knowledge graphs and question-answering systems. While LLMs show great promise here, they are notoriously prone to overpredicting relations. When given an entity pair with no actual relationship (NO-RELATION), models like Qwen2.5-14B-Instruct hallucinate a relation a staggering 96.9% of the time on certain datasets.

This happens because LLMs rely on shallow statistical cues and superficial lexical patterns (like word co-occurrence) rather than true syntactic and semantic reasoning. Current RE methods rarely evaluate a model's ability to say "no," creating a major bottleneck for real-world, enterprise-scale knowledge extraction where false positives are highly damaging.

Methods

The authors propose DEPTH, a two-tiered hierarchical framework that decouples entity-pair grounding from sentence-level refinement:

  1. Grounding Module (Local Context): Instead of feeding raw, complex sentences to the LLM, DEPTH uses a dependency parser (spaCy) to extract the Shortest Dependency Path (SDP) between target entities. It simplifies the sentence to retain only the SDP and its immediate context, stripping away syntactic noise while preserving core relational semantics.
  2. Causality-Guided RLHF: To prevent the model from learning spurious correlations (reward hacking), the authors introduce a causal reward model. By factorizing prompt-response pairs into reward-relevant components (task definition, simplified sentence, entity pair, and relation label) and reward-irrelevant components (formatting, length, explanations), the reward model is trained only on the causal features. Proximal Policy Optimization (PPO) is then used to fine-tune the LLM.
  3. Refinement Module (Global Context): Local predictions can sometimes be inconsistent or miss broader sentence context. The Refinement module aggregates all entity-pair predictions at the sentence level and prompts the LLM to perform a three-stage semantic calibration: an omission check (recovering missed relations), a contradiction check (resolving logical inconsistencies), and a misclassification check.
Figure 1: Overall framework of DEPTH: the Grounding module uses SDP-based simplification and an RLHF-fine-tuned LLM to predict per-pair relations (only three are illustrated for brevity), while the Refinement module jointly refines all predictions using global context. Dependency parsing provides structural guidance throughout, and RLHF is applied only during training.

Datasets

The framework was evaluated across 8 well-established benchmarks spanning multiple domains:

  • News Domain: TACRED, TACREV, Re-TACRED, NYT11
  • Scientific Domain: SciERC, FOBIE
  • Biomedical Domain: DDI
  • General Domain: SemEval

No new benchmarks were introduced, but the authors specifically isolated and analyzed the NO-RELATION subsets to calculate a dedicated Hallucination Rate (HR) for rigorous evaluation.

Key Insights and Ideas

  • The Power of the Shortest Dependency Path (SDP): Complex sentence structures confuse LLMs. Distilling a sentence down to its grammatical backbone (the SDP) drastically reduces the surface-level noise that triggers hallucinations.
  • Curing Reward Hacking with Causal Factorization: Standard RLHF reward models often get tricked by superficial features like response length or formatting style. Explicitly blocking these non-causal pathways at the input level ensures the reward model focuses purely on semantic alignment.
  • Scaling Up the Model Isn't Enough: Simply using a larger model (e.g., moving from a 14B to a 72B parameter model) does not solve the hallucination problem for zero-shot prompting. Structural and algorithmic alignment (like DEPTH) is necessary. In fact, DEPTH applied to a lightweight 3B model outperforms a vanilla 72B model.

Key Results

  • Massive Reduction in Hallucinations: DEPTH reduced the average hallucination rate across all eight benchmarks to 7.9%. For comparison, vanilla zero-shot Qwen (Qwen-ZS) had an average hallucination rate of 80.7%, and the previous state-of-the-art fine-tuning baseline (InstructUIE) sat at 18.4%.
  • Superior Extraction Accuracy: DEPTH achieved an average micro-F1 score of 85.9%, representing a 9.3% absolute improvement over existing LLM baselines. The largest gains were observed in complex scientific domains (SciERC and FOBIE), where sentences are typically longer and more structurally complex.
  • Cross-Dataset Generalization: A single DEPTH model jointly trained on multiple datasets within the same domain (e.g., news or science) maintained highly competitive performance, proving its viability as a general-purpose extractor without needing task-specific training for every dataset.

Limitations and Future Work

  • Computational Overhead: Implementing RLHF is computationally expensive. In the authors' experiments, reward model training averaged 3.6 hours per dataset, while PPO policy optimization took roughly 4.5 days on 8x NVIDIA H20 GPUs.
  • Pipeline Dependencies: DEPTH assumes that entity mentions are already provided (sentence-level RE). To make it a fully end-to-end system, it needs to integrate Named Entity Recognition (NER) and coreference resolution, which introduces risks of upstream error propagation.
  • Closed-Set Constraint: The current framework operates in a closed-set setting. The authors suggest extending DEPTH to open-set relation extraction by clustering NO-RELATION instances to discover and propose novel relation types.

Summary updated

BibTeX
@misc{yang2025hallucination,
  author = {Yupei Yang and Fan Feng and Lin Yang and Wanxi Deng and Lin Qu and Biwei Huang and Shikui Tu and Lei Xu},
  title = {{Hallucination-Resistant Relation Extraction via Dependency-Aware Sentence Simplification and Two-tiered Hierarchical Refinement}},
  year = {2025},
  eprint = {2508.14391},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.14391},
}
Figure