FCKT: Fine-Grained Cross-Task Knowledge Transfer with Semantic Contrastive Learning for Targeted Sentiment Analysis

Wei Chen, Zhao Zhang, Meng Yuan, Kepeng Xu, Fuzhen Zhuang · OpenReview

Abstract

In this paper, we address the task of targeted sentiment analysis (TSA), which involves two sub-tasks: identifying specific aspects from reviews and determining their corresponding sentiments. Aspect extraction forms the foundation for sentiment prediction, highlighting the critical dependency between these two tasks for effective cross-task knowledge transfer. While most existing studies adopt a multi-task learning paradigm to align task-specific features in the latent space, they predominantly rely on coarse-grained knowledge transfer. Such approaches lack fine-grained control over aspect-sentiment relationships, often assuming uniform sentiment polarity within related aspects. This oversimplification neglects contextual cues that differentiate sentiments, leading to negative transfer. To overcome these limitations, we propose FCKT, a fine-grained cross-task knowledge transfer framework tailored for TSA. By explicitly incorporating aspect-level information into sentiment prediction, FCKT achieves fine-grained knowledge transfer, effectively mitigating negative transfer and enhancing task performance. Experiments on three datasets, including comparisons with various baselines and large language models (LLMs), demonstrate the effectiveness of FCKT.

Introduction

Targeted Sentiment Analysis (TSA) is a dual challenge requiring models to pinpoint specific "aspects" (e.g., "battery life") and assign a sentiment to each. A significant flaw in current multi-task learning approaches is Coarse-Grained Negative Transfer. Many models assume that related aspects in a sentence share the same sentiment. For instance, in the sentence "The lens and autofocus are impressive, except for the low-light capability," a coarse-grained model might incorrectly label all three as positive because they are "camera-related."

Comparison between coarse-grained transfer (which assumes uniform sentiment) and the proposed fine-grained transfer mechanism.

As illustrated in Figure 1, this oversimplification ignores contrastive linguistic cues like "except," leading to significant errors. Furthermore, TSA models often suffer from error propagation, where a failure to identify the exact aspect boundary inevitably compromises the subsequent sentiment prediction.

Methodology: The FCKT Framework

To mitigate these issues, we introduce the FCKT framework, designed for surgical, fine-grained interaction between aspect extraction and sentiment prediction.

The overall architecture of FCKT, showcasing the Aspect Extraction (AE) and Sentiment Prediction (SP) modules integrated via fine-grained knowledge modeling.

Token-Level Semantic Contrastive Learning

To refine aspect boundary detection, FCKT employs token-level contrastive learning. The model treats the start and end tokens of the same aspect as "positive pairs" (pulling them together in the latent space) and tokens from unrelated aspects as "negative pairs." This forces the model to capture the subtle contextual cues that define an aspect's boundaries.

Fine-Grained Knowledge Transfer

Instead of passing a simple "hard" aspect label to the sentiment classifier, FCKT transfers a probability distribution of predicted boundaries. This allows sentiment information to "backpropagate," helping the model improve its aspect identification based on sentiment cues. To prevent the sentiment classifier from becoming overly dependent on noisy predictions, an Alternating Learning Strategy is used, balancing ground-truth labels with predicted transfer knowledge using a ratio ($\zeta$).

Aspect-Wise Sentence Splitting

During training, sentences with multiple aspects are split into separate samples, each focusing on a single aspect. This reduces interference and allows the model to learn cleaner, more specific aspect-sentiment mappings.

Experiments and Results

FCKT was evaluated on three public benchmarks: Laptop (SemEval 2014), Restaurant (SemEval 2014-2016), and Tweets (Mitchell et al., 2013).

Key Performance Metrics

FCKT achieved state-of-the-art (SOTA) performance across all datasets, outperforming the previous SOTA (AIFI) by an average of 1.38% in F1 score:

  • Laptop: 0.7144 F1
  • Restaurant: 0.8153 F1
  • Tweets: 0.6225 F1

Notably, FCKT outperformed GPT-4 (using Few-Shot and Chain-of-Thought prompting), demonstrating that specialized, fine-tuned models still hold a significant edge over general-purpose Large Language Models for niche, resource-constrained tasks.

Conclusion and Future Work

The FCKT framework demonstrates that aspect extraction and sentiment prediction are deeply interdependent. By allowing sentiment signals to influence aspect detection and isolating representations for each aspect, the model becomes robust to complex sentence structures. While FCKT shows high precision, future work will address its slightly lower recall by refining the heuristic extraction methods used to filter semantically irrational aspects.

Summary updated

BibTeX
@inproceedings{chen2025fckt,
  author = {Wei Chen and Zhao Zhang and Meng Yuan and Kepeng Xu and Fuzhen Zhuang},
  title = {{FCKT: Fine-Grained Cross-Task Knowledge Transfer with Semantic Contrastive Learning for Targeted Sentiment Analysis}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/304},
}
Figure