Abstract
Information Extraction (IE) is a fundamental task in Natural Language Processing, yet Large Language Models (LLMs) frequently encounter difficulties with complex sentences, often missing entities or hallucinating relations. This paper introduces an adaptive reinforcement learning framework designed to optimize the extraction process. By decoupling planning from execution, the system uses a BERT-based Decision Module to determine the most effective sequence for extracting information. Experimental results demonstrate that this approach significantly enhances the performance of various LLMs, achieving F1 score improvements of up to 236% on challenging datasets without the need for model fine-tuning.
Introduction
Turning unstructured text into structured data, such as (Subject, Relation, Object) triples, is essential for building knowledge graphs and enabling advanced data analysis. While state-of-the-art LLMs like GPT-4 and Mistral show promise, they are often brittle when processing long sentences with overlapping entities or multiple relations. A primary cause of this instability is the sensitivity of LLMs to the order in which information is requested. Most existing IE methods rely on a fixed extraction order, which fails to account for the unique linguistic structure of individual sentences and can lead to significant drops in recall or precision.
Methodology: A Decoupled Two-Stage Approach
To address these limitations, the researchers developed a two-stage framework that separates the high-level planning of extraction from the actual execution. This decoupling ensures that the extraction process is guided by a strategic plan tailored to each specific sentence.
- Classification Stage: The LLM first identifies the relevant relations or event types within the input text (e.g., identifying that a sentence contains a "Person-Place of Birth" relation).
- Adaptive Sequential Extraction: Instead of a "one-shot" extraction, the system extracts arguments sequentially. The sequence is determined dynamically by a specialized Decision Module.
The Decision Module
The core of the system is the Decision Module, a BERT-based model trained using Double Deep Q-Learning (DDQN). In this reinforcement learning setup, the LLM serves as the Environment. It provides a "state" consisting of the original sentence and the content extracted so far. The Decision Module then selects an "action"—the next role to extract—based on predicted Q-values.
To train this agent effectively, the authors implemented a hybrid reward system. Training an RL agent for text is notoriously difficult because exact matches are too strict. The researchers designed a reward module where an LLM-based "judge" evaluates semantic correctness, while Jaccard similarity measures token-level precision. This allows the BERT model to learn which extraction step will yield the highest expected reward, effectively becoming a specialized "planner" for the LLM.
Key Insights: The Importance of Order
A central finding of this research is that extraction order is a hidden variable that significantly impacts accuracy. For instance, identifying a "Subject" before an "Object" might be optimal for one sentence, while the reverse is better for another. By delegating this planning task to a small, efficient BERT model, the system can guide much larger LLMs through complex reasoning paths. This "small model leading big model" architecture proves that logic and performance can be improved through intelligent workflow management rather than simply increasing parameter counts.
Experimental Results
The framework was evaluated on eight diverse datasets, including HacRED, SKE21, DuIE, and DuEE in Chinese, and NYT and ACE05 in English. These datasets represent a mix of news and Wikipedia articles, often containing complex cases with multiple overlapping relations where standard LLM prompting typically fails.
As shown in the performance table, the "Ordered-RL" method consistently outperformed standard prompting (ChatIE) and fixed-order baselines. The results were particularly striking for open-source models:
- Mistral-v0.3 saw a staggering +236.27% F1 score increase on the DuEE event extraction dataset.
- Qwen-1.5 experienced substantial gains, including a +134.88% improvement on the NYT10 dataset.
- Complexity Handling: In settings with high density (sentences with 4+ triples), the RL-based planning consistently outperformed random or fixed orders, proving that adaptive planning is essential for high-density information.
Conclusion and Future Work
The adaptive reinforcement learning approach offers a robust solution for complex information extraction. By decoupling planning from execution, it mitigates the "low recall" and hallucination issues common in LLMs. While the current system depends on the accuracy of the initial classification stage and involves higher computational costs due to multi-step extraction, it paves the way for more sophisticated "planner-extractor" architectures. Future research will explore end-to-end reinforcement learning that combines classification and extraction, as well as the application of this methodology to broader complex reasoning tasks.
Summary updated