[Paper Review] LLM with Relation Classifier for Document-Level Relation Extraction
This paper proposes LMRC, a two-stage framework that uses a pre-trained classifier to filter non-relational entity pairs before feeding only relation-potential pairs to a large language model (LLM) for relation classification. By reducing attention dispersion on irrelevant entity pairs, LMRC significantly improves LLM-based document-level relation extraction, achieving state-of-the-art performance among LLM-based methods and competitive results with traditional models on DocRED and Re-DocRED benchmarks.
Large language models (LLMs) have created a new paradigm for natural language processing. Despite their advancement, LLM-based methods still lag behind traditional approaches in document-level relation extraction (DocRE), a critical task for understanding complex entity relations within long context. This paper investigates the causes of this performance gap, identifying the dispersion of attention by LLMs due to entity pairs without relations as a key factor. We then introduce a novel classifier-LLM approach to DocRE. Particularly, the proposed approach begins with a classifier designed to select entity pair candidates that exhibit potential relations and then feed them to LLM for final relation classification. This method ensures that the LLM's attention is directed at relation-expressing entity pairs instead of those without relations during inference. Experiments on DocRE benchmarks reveal that our method significantly outperforms recent LLM-based DocRE models and narrows the performance gap with state-of-the-art BERT-based models.
Motivation & Objective
- To investigate why LLM-based methods underperform in document-level relation extraction (DocRE) compared to traditional models.
- To identify the root cause of performance degradation in LLM-based DocRE, particularly the imbalance in the candidate entity pair space.
- To propose a novel two-stage framework, LMRC, that improves LLM efficiency and accuracy by pre-filtering irrelevant entity pairs.
- To validate the effectiveness of LMRC across diverse LLMs, including LLaMA2, GPT-3.5-turbo, and GPT-4-turbo, on standard DocRE benchmarks.
Proposed method
- A pre-classifier is trained to identify and filter out non-relational (NA) entity pairs from the full candidate space, significantly reducing the number of pairs presented to the LLM.
- The classifier uses attention mechanisms to capture long-range dependencies and contextual cues for effective candidate selection.
- Only the filtered, high-potential entity pairs are fed into the LLM for final relation classification, ensuring focused attention on relevant relations.
- The LLM is prompted using a 3-shot in-context learning format with examples from the DocRED dataset to improve zero-shot generalization.
- For out-of-domain relations, a semantic similarity alignment with SBERT is applied using a cosine similarity threshold θ to discard low-confidence mappings.
- The framework is evaluated using a two-stage pipeline: Relation Candidate Proposal (RCP) followed by Relation Classification (RC), with fine-tuning applied to LLaMA2-13B-Chat.

Experimental results
Research questions
- RQ1Why do LLM-based methods underperform on document-level relation extraction compared to traditional models?
- RQ2How does the imbalance in the candidate entity pair space affect LLM attention and performance in DocRE?
- RQ3Can a pre-classifier improve the efficiency and accuracy of LLM-based DocRE by filtering out non-relational entity pairs?
- RQ4How does the LMRC framework perform across different LLM architectures, including GPT-4-turbo and fine-tuned LLaMA2?
- RQ5To what extent does threshold-based semantic alignment of out-of-domain relations improve final F1 scores?
Key findings
- The LMRC framework achieves an F1 score of 58.16 on the DocRED dev set when using fine-tuned LLaMA2-13B-Chat, significantly outperforming direct prompting with GPT-4-turbo (34.84 F1).
- The method reduces attention dispersion by filtering out 90%+ of non-relational entity pairs, as evidenced by the high ratio of NA pairs in the original candidate space.
- Using a threshold θ = 0.55 for semantic similarity alignment maximizes F1 performance, with minimal impact from threshold variation due to low out-of-domain relation frequency.
- The LMRC approach improves F1 scores by over 20 points on GPT-3.5-turbo-16k and over 30 points on GPT-4-turbo when compared to direct prompting.
- Fine-tuned LLaMA2-13B-Chat with LMRC achieves 65.88 F1 on intra-sentence relations and 52.66 on inter-sentence relations, demonstrating robustness across relation types.
- The method achieves competitive performance with leading traditional DocRE models, establishing a new benchmark for LLM-based DocRE.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.