LLMs Underperform Graph-Based Parsers on Supervised Relation Extraction for Complex Graphs
Organizations: University of Bologna · Dalhousie University
Abstract
Relation extraction represents a fundamental component in the process of creating knowledge graphs, among other applications. Large language models (LLMs) have been adopted as a promising tool for relation extraction, both in supervised and in-context learning settings. However, in this work we show that their performance still lags behind much smaller architectures when the linguistic graph underlying a text has great complexity. To demonstrate this, we evaluate four LLMs against a graph-based parser on six relation extraction datasets with sentence graphs of varying sizes and complexities. Our results show that the graph-based parser increasingly outperforms the LLMs, as the number of relations in the input documents increases. This makes the much lighter graph-based parser a superior choice in the presence of complex linguistic graphs.
Figures & tables
| Dataset | Min | Mean ( ) | Max | Avg. chars. | |
|---|---|---|---|---|---|
| CoNLL04 | 1 | 1.42 | 11 | 98.54 % | 158.10 |
| ADE | 1 | 1.59 | 21 | 97.77 % | 135.33 |
| SciERC | 1 | 2.38 | 17 | 93.49 % | 159.44 |
| enEWT | 5 | 17.83 | 158 | 25.03 % | 91.77 |
| SciDTB | 5 | 23.41 | 100 | 2.50 % | 150.50 |
| ERFGC | 4 | 49.19 | 167 | 3.33 % | 603.90 |
| Prompt | #ICL | Steps | CoNLL04 | ADE | SciERC | enEWT | SciDTB | ERFGC |
|---|---|---|---|---|---|---|---|---|
| Mistral-7B-Instruct-v0.3 (5 seeds) | ||||||||
| NoDesc | 0 | 0.115 0.000 | 0.047 0.000 | 0.021 0.000 | 0.006 0.000 | 0.001 0.000 | 0.002 0.000 | |
| NoDesc | 1 | 0.123 0.009 | 0.281 0.031 | 0.039 0.005 | 0.026 0.000 | 0.032 0.001 | 0.056 0.013 | |
| NoDesc | 0 | 1 ep. | 0.597 0.011 | 0.776 0.016 | 0.320 0.005 | 0.784 0.000 | 0.793 0.003 | 0.248 0.017 |
| NoDesc | 1 | 1 ep. | 0.613 0.011 | 0.775 0.007 | 0.346 0.005 | 0.805 0.001 | 0.830 0.001 | 0.331 0.013 |
| Qwen3-14B-Base (4 seeds) | ||||||||
| CoNLL04 | ADE | SciERC | enEWT | SciDTB | ERFGC | |
|---|---|---|---|---|---|---|
| Qwen3-14B-Base | -0.143 | -0.152 | 0.171 | -0.270 | -0.185 | -0.639 |
| Graph-based parser | 0.012 0.024 | -0.046 | 0.067 | -0.043 | -0.195 | -0.206 |
| Model | Mean | Max |
|---|---|---|
| Mistral-7B-Instruct-v0.3 | 0.006 | 0.031 |
| Qwen3-14B-Base | 0.008 | 0.031 |
| Qwen3-32B | 0.012 | 0.039 |
| Dataset (Train / Dev / Test) |
|---|
| ADE (2,563 / 854 / 300) Gurulingappa et al. (2012) |
| Entities: disease, drug |
| Relations: adverseEffect |
| CoNLL04 (922 / 231 / 288) Roth and Yih (2004) |
| Entities: organization, person, location |
| Relations: kill, locatedIn, workFor, orgBasedIn, liveIn |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| CoNLL04 | ADE | SciERC | enEWT | SciDTB | ERFGC | ||
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0.617 | 0.567 | 0.172 | 0.692 | 0.785 | 0.630 |
| 1 | 0.618 | 0.589 | 0.183 | 0.715 | 0.820 | 0.640 | |
| 2 | 0.562 | 0.575 | 0.145 | 0.686 | 0.813 | 0.631 | |
| 3 | 0.536 | 0.521 | 0.056 | 0.641 | 0.789 | 0.633 | |
| 1 | 0 | 0.649 | 0.678 | 0.317 | 0.850 | 0.903 | 0.695 |
| 1 | 0.658 | 0.705 | 0.323 | 0.850 | 0.902 | 0.697 |
Relation Extraction
Relation extraction identifies and classifies relationships between entities or events in text and multimodal data.
See all 82 papers