NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

\mathcalS²IT: Stepwise Syntax Integration Tuning for Large Language Models in Aspect Sentiment Quad Prediction

Bingfeng Chen, Chenjie Qiu, Yifeng Xie, Boyan Xu, Ruichu Cai, Zhifeng HaoNAACL 2025

Abstract

Aspect Sentiment Quad Prediction (ASQP) is a complex sentiment analysis task requiring the extraction of four-part tuples: aspect term, aspect category, opinion term, and sentiment polarity. While Large Language Models (LLMs) demonstrate strong semantic understanding, they often lack the explicit structural guidance needed to correctly link these elements in complex sentences. We present $\mathcal{S}^2IT$ (Stepwise Syntax Integration Tuning), a framework that treats syntax as a language-to-language problem. By serializing dependency trees into natural language and injecting this knowledge through a stepwise process—global extraction followed by local classification—$\mathcal{S}^2IT$ significantly enhances the structural reasoning of decoder-only LLMs. Our approach achieves state-of-the-art results on standard benchmarks, demonstrating the efficacy of explicit syntactic injection for fine-grained sentiment analysis.

1. Introduction

Aspect Sentiment Quad Prediction (ASQP) represents the most granular level of sentiment analysis. Unlike traditional sentiment classification, ASQP requires a model to identify the specific aspect being discussed (e.g., "sushi"), its broader category (e.g., "Food Quality"), the opinion expressed (e.g., "great"), and the resulting sentiment polarity (e.g., "Positive").

Overview of the $\mathcal{S}^2IT$ framework compared to previous ASQP methods, highlighting the integration of global and local syntax.

Modern Large Language Models (LLMs) often struggle with the "structural glue" required to accurately pair these elements, particularly in sentences with multiple, conflicting aspects. Previous research utilized Graph Neural Networks (GNNs) to handle syntax, but these are difficult to integrate into modern decoder-only architectures like Llama or Qwen. $\mathcal{S}^2IT$ addresses this by translating dependency trees into natural language prompts, providing the model with a roadmap of word relationships without requiring architectural changes.

2. Methodology

$\mathcal{S}^2IT$ decomposes the quad prediction task into three distinct stages to avoid the "coupling problem," where a model becomes overwhelmed by predicting all four elements simultaneously.

The three-stage pipeline of $\mathcal{S}^2IT$: Global Syntax-guided Extraction, Local Syntax-guided Classification, and Fine-grained Structural Tuning.

2.1 Global Syntax-guided Extraction

In the first stage, the model focuses on identifying (aspect, opinion) pairs. To assist this, the sentence's dependency tree is serialized into text (e.g., "ambience modify nice") and appended to the prompt. This provides a "bird's-eye view" of the sentence's global structure, helping the model identify which words are syntactically linked across the entire input.

2.2 Local Syntax-guided Classification

Once pairs are extracted, the model classifies them into categories and sentiment polarities. In this stage, "local subgraphs" are used—descriptions of words only one hop away from the candidate pair in the dependency tree. This provides high-resolution, localized context that helps the model distinguish between similar aspects.

2.3 Fine-grained Structural Tuning

To ensure the LLM internalizes the syntactic structure rather than merely mimicking the input, the framework includes auxiliary tasks during training:

  • Element Link Prediction: Determining if word A is directly connected to word B.
  • Node Classification: Identifying the specific role of a word within the syntactic framework.

Training is performed using Low-Rank Adaptation (LoRA), allowing for efficient fine-tuning of models like Qwen2.5 and Llama3.

3. Experimental Results

3.1 Datasets and Setup

The framework was evaluated on two standard ASQP benchmarks: the Restaurant Dataset (2,286 sentences) and the Laptop Dataset (4,076 sentences). These datasets are characterized by complex, multi-aspect sentences that test a model's ability to resolve structural ambiguity.

3.2 Performance and Insights

$\mathcal{S}^2IT$ achieved state-of-the-art (SOTA) performance across both benchmarks. On the Restaurant dataset, the $\mathcal{S}^2IT$-7B model (based on Qwen2.5) achieved an F1 score of 66.1, a significant improvement over the base model's 63.6. Scaling to a 32B parameter model further pushed the F1 score to 67.37.

A key finding was that LLMs perform better when syntactic information is presented as natural language (e.g., "sushi is connected to great") rather than symbolic notation. This alignment with the LLM's pre-training data allows the model to leverage its existing linguistic reasoning for structural tasks. Ablation studies confirmed that removing syntactic information led to a performance drop of 1.3% to 3.1% in F1 score, validating the importance of structural injection.

4. Conclusion

$\mathcal{S}^2IT$ demonstrates that explicit syntactic guidance, when framed as a natural language task, significantly improves the performance of LLMs in complex information extraction tasks like ASQP. By breaking the task into logical steps and providing both global and local structural context, the framework mitigates common issues like multi-aspect confusion. Future work will explore more diverse auxiliary structural tasks and more efficient serialization methods to further deepen the model's syntactic reasoning capabilities.

Summary updated

BibTeX
@inproceedings{chen2025mathcals,
  author = {Bingfeng Chen and Chenjie Qiu and Yifeng Xie and Boyan Xu and Ruichu Cai and Zhifeng Hao},
  title = {{\textbackslash\{\}mathcalS²IT: Stepwise Syntax Integration Tuning for Large Language Models in Aspect Sentiment Quad Prediction}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=SqfQUj593o},
}
Figure