TL;DR
While Large Language Models (LLMs) are often celebrated as jack-of-all-trades NLP engines, a new study demonstrates that they significantly underperform traditional, specialized architectures on Relation Extraction (RE) tasks involving complex linguistic graphs. When documents contain dense networks of relations, a lightweight 124M-parameter graph-based parser comfortably beats fine-tuned LLMs up to 70B parameters in size, while requiring a fraction of the computational footprint.
What Problem Does This Paper Address?
Relation Extraction (RE)—the task of extracting structured [head, relation, dependent] triplets from unstructured text—is a foundational step in building knowledge graphs. Recently, the NLP community has shifted toward using generative LLMs for RE via in-context learning or parameter-efficient fine-tuning.
However, the authors identify a critical gap in current literature: no direct comparison has been made between LLMs and traditional supervised graph-based parsers, particularly regarding how graph complexity (the number of overlapping or interconnected relations within a text) impacts performance. This paper investigates whether massive generative models can truly replace smaller, structurally biased parsers when the underlying linguistic graph gets messy.
Methods
The authors set up a rigorous head-to-head supervised comparison:
- The Graph-Based Parser: A highly efficient architecture totaling 124M parameters. It utilizes a frozen BERT backbone (110M parameters) topped with a fine-tuned biaffine attention parser (14M parameters) based on Dozat and Manning (2017). During inference, it employs the Chu-Liu/Edmonds' Maximum Spanning Tree (MST) algorithm to ensure the extracted relations form well-formed, valid tree structures.
- The LLMs: Four state-of-the-art models ranging from 7B to 70B parameters: Mistral-7B-Instruct-v0.3, Qwen3-14B-Base, Qwen3-32B, and Llama-3.3-70B-Instruct. These models were fine-tuned using LoRA, specifically targeting the key, query, and value weights of their attention layers.
To evaluate the LLMs thoroughly, the researchers experimented with multiple prompting strategies, including providing explicit entity/relation descriptions (Desc), omitting descriptions (NoDesc), and even using a completely uninformative random UUID code to strip away instruction bias and evaluate raw prompt completion.
Datasets
The models were trained and evaluated across six distinct datasets that vary widely in graph size and density:
- Simple Graphs (Low Complexity): CoNLL04 (news), ADE (medical adverse drug effects), and SciERC (scientific abstracts). In these datasets, the vast majority of samples contain 5 or fewer relations.
- Complex Graphs (High Complexity): enEWT (English Web Treebank dependency parsing), SciDTB (discourse relations), and ERFGC (culinary recipe flow graphs). These feature dense networks, with ERFGC averaging nearly 50 relations per document.
Key Insights and Ideas
- The Complexity Threshold: LLMs perform exceptionally well—often beating the graph parser—when a text contains only a handful of isolated relations. However, as soon as a document's underlying graph averages more than ~18 edges, the graph-based parser decisively takes the lead.
- Attention Dilution via Formatting: Why do LLMs struggle with complex graphs? The authors hypothesize that because LLMs must generate structured text (like JSON) autoregressively, they spend significant attention budget on syntactic boilerplate. This "formatting noise" increases the distance between tokens relevant to actual relation prediction, diluting the causal attention mechanism. The graph parser, by contrast, scores all token pairs directly in a single matrix operation.
- Instruction Tuning Can Hinder Structure Tasks: Surprisingly, the base model (Qwen3-14B-Base) using a completely uninformative
UUIDprompt achieved the best average performance among the LLMs. This suggests that the conversational instruction-tuning applied to "Instruct" models might introduce chatbot biases that conflict with pure, structured data extraction tasks.
Key Results
- Simple Graphs: On the low-complexity ADE dataset, Qwen3-14B-Base achieved the highest Micro-$F_1$ score of 0.836, outperforming the graph parser's 0.697.
- Complex Graphs: On the highly intricate ERFGC dataset, the 124M graph-based parser achieved a Micro-$F_1$ of 0.713. It soundly beat the 70B Llama-3.3-70B-Instruct (0.606) and Qwen3-32B (0.581).
- Computational Efficiency: The graph-based parser required only about 10 minutes to train on standard GPUs (NVIDIA P100/V100) and extracts the entire graph in a single forward pass. Fine-tuning and running inference on the LLMs took up to 18 hours on high-end hardware (NVIDIA L40/H100) due to the thousands of autoregressive tokens needed to output large graphs.
Limitations and Future Work
The authors note a few limitations in their current work:
- The evaluation only considers a single family of graph-based parsers (biaffine attention with MST decoding). Exploring a wider variety of graph neural networks (GNNs) could yield deeper comparisons.
- The study focuses heavily on quantitative metrics; a deeper qualitative or attention-level analysis is required to definitively prove the "attention dilution" hypothesis.
Moving forward, the researchers plan to investigate training paradigms that reduce text formatting overhead for LLMs, such as prompt compression techniques, to see if generative models can be rescued for complex graph extraction.
Summary updated