From Syntax to Semantics: Evaluating the Impact of Linguistic Structures on LLM-Based Information Extraction

Anushka Swarup, Avanti Bhandarkar, Ronald S. Wilson, Tian Pan, Damon L. Woodard2025

Abstract

Large Language Models (LLMs) have brought significant breakthroughs across all areas of Natural Language Processing (NLP), including Information Extraction (IE). However, knowledge gaps remain regarding their effectiveness in extracting entity-relation triplets, i.e. Joint Relation Extraction (JRE). JRE has been a key operation in creating knowledge bases that can be used to enhance Retrieval Augmented Generation (RAG) systems. Prior work highlights low-quality triplets generated by LLMs. Thus, this work investigates the impact of incorporating linguistic structures, such as constituency and dependency trees and semantic role labeling, to enhance the quality of the extracted triplets. The findings suggest that incorporating specific structural information enhances the uniqueness and topical relevance of the triplets, particularly in scenarios where multiple relationships are present.

Introduction

Information Extraction (IE) serves as the foundation for modern knowledge bases and GraphRAG (Retrieval-Augmented Generation) systems. The primary objective is to transform unstructured text into structured "triplets"—formal representations of entities and their relationships (e.g., [Einstein, born in, Ulm]).

Despite their general-purpose reasoning capabilities, LLMs face a significant "knowledge gap" in Joint Relation Extraction. They frequently suffer from high redundancy—extracting the same relationship multiple times using slightly different phrasing—or low topical similarity, where the extracted facts are peripheral to the sentence's core meaning. Furthermore, evaluating these open-ended models is challenging; traditional exact-match metrics often fail to recognize correct extractions that differ stylistically from ground-truth labels.

Methodology: The StructLLM Pipeline

To address these challenges, the researchers developed StructLLM, a pipeline that augments raw text inputs with explicit linguistic "scaffolding" within the prompt.

The StructLLM pipeline augmenting LLM prompts with linguistic structures.

The pipeline incorporates three distinct structural representations:

  1. Constituency Trees (CT): These capture the hierarchical syntactic structure of the sentence.
  2. Dependency Trees (DT): These map grammatical connections between words, clarifying relationships between distant tokens.
  3. Semantic Role Labeling (SRL): This identifies "who did what to whom" (agents and patients), aligning closely with the target triplet format.

The study evaluated five LLMs (OpenChat, Llama-3.1, Mistral-Nemo, Gemma-2, and GPT-4o) across three benchmarks: NYT10, TACRED, and CrossRE. Performance was measured using "soft metrics" from the GenRES benchmark:

  • Uniqueness Score (US): Measures the diversity and lack of redundancy in extracted triplets.
  • Topical Similarity (TS): Assesses how well triplets reflect the sentence's central topic.
  • Completeness Score (CS): Quantifies the overlap with ground-truth information.

Key Results and Insights

The experimental results demonstrate that providing structural hints significantly alters LLM behavior in information extraction tasks.

Performance metrics (US, TS, CS) across different LLMs and linguistic augmentations.

Structure as a Noise Filter

A primary finding was that Dependency Trees (DT) significantly reduced redundancy. By providing a formal map of word links, DTs help LLMs avoid hallucinating multiple variations of the same underlying relationship. This effect was most pronounced in complex sentences containing multiple overlapping relationships.

SRL as a Semantic Bridge

Semantic Role Labeling (SRL) emerged as the most effective tool for boosting topical relevance (TS). Because SRL outputs are inherently structured as Argument-Verb-Argument sets, they provide a natural template that grounds the LLM in the sentence's primary semantic context.

The Completeness Paradox

An interesting observation was the "Completeness Paradox": as models improved in uniqueness and relevance, their Completeness (CS) scores often declined. This suggests a limitation in current benchmarks rather than model failure. Rigid ground-truth labels often demand specific phrasing; structural guidance encourages LLMs to generate more generalized, yet factually accurate, predictions that traditional metrics may penalize.

Scaling and Model Efficiency

While high-parameter models like GPT-4o showed marginal gains, smaller models (7B-12B parameters) like OpenChat-3.5 experienced substantial performance improvements. This indicates that explicit linguistic structures can effectively "subsidize" the reasoning capabilities of smaller, more efficient models, making them more viable for production IE tasks.

Conclusion

While incorporating linguistic structures offers clear benefits, several hurdles remain for real-world deployment. Error propagation from imperfect parsers (e.g., Stanza or AllenNLP) can mislead the LLM, and the increased token count from trees and labels adds inference overhead.

Future work will focus on "tree pruning" techniques to provide only the most critical structural information, optimizing for both performance and token efficiency. Ultimately, this research highlights the need for more flexible benchmarks that can better evaluate the nuanced, semantically rich extractions enabled by combining syntax with large-scale language modeling.

Summary updated

BibTeX
@misc{swarup2025from,
  author = {Anushka Swarup and Avanti Bhandarkar and Ronald S. Wilson and Tian Pan and Damon L. Woodard},
  title = {{From Syntax to Semantics: Evaluating the Impact of Linguistic Structures on LLM-Based Information Extraction}},
  year = {2025},
  doi = {10.18653/v1/2025.xllm-1.5},
}
Figure