Zero-Shot Cross-Domain Aspect-Based Sentiment Analysis via Domain-Contextualized Chain-of-Thought Reasoning

ChengAo Shen, Wei Wei, Dong Wang, Zhonghao Wang2025

Abstract

Cross-domain aspect-based sentiment analysis (ABSA) aims to learn domain-specific knowledge from a source domain to perform various ABSA tasks in a target domain. Recent works mainly focus on leveraging domain adaptation techniques to transfer the domain-agnostic features from the labeled source domain to the unlabeled target domain, yet manually collecting target domain data remains impractical owing to facts like privacy concerns in banking or insurance. To alleviate this issue, we propose ZeroABSA, a unified zero-shot framework for cross-domain ABSA that effectively eliminates dependency on target domain annotations. Specifically, ZeroABSA consists of two novel components: (1) an LLM-driven augmentation module synthesizing domain-adaptive target data through iteratively evaluating metrics (e.g., vocabulary richness, semantic coherence, and sentiment/domain consistency) of augmented exemplars for refinement; (2) a domain-contextualized chain-of-thought (CoT) strategy that trains models on augmented data while explicitly modeling domain-invariant reasoning to bridge the cross-domain gap. Extensive evaluations across four diverse domains demonstrate that ZeroABSA surpasses the state-of-the-art, advancing the practicality of cross-domain ABSA in real-world scenarios where target domain data is unavailable.

Introduction

Aspect-Based Sentiment Analysis (ABSA) is a fine-grained sentiment analysis task that identifies specific targets (aspects) and the sentiments associated with them. While ABSA models perform well within a single domain, they often struggle when deployed in a new, unseen "target" domain. Traditionally, Unsupervised Domain Adaptation (UDA) has been used to bridge this gap, but UDA requires a large corpus of unlabeled target data. In many sensitive industries, such as finance or healthcare, even unlabeled data is difficult to obtain due to privacy constraints. ZeroABSA addresses this "zero-shot" challenge by removing the need for any target domain data during training.

Methodology: The ZeroABSA Framework

ZeroABSA operates through a three-stage pipeline designed to synthesize high-quality training data and instill domain-aware reasoning capabilities in the model.

Overview of the ZeroABSA framework showing data generation, ranking, and the DCCoT reasoning process.

1. Zero-Shot Data Augmentation

Since target data is unavailable, ZeroABSA utilizes Large Language Models (LLMs) like GPT-4o-mini to synthesize it. Using in-context learning, the framework "translates" labeled source domain reviews into the target domain. For instance, a laptop review discussing "battery life" is structurally adapted into a restaurant review discussing "service speed," ensuring that the underlying syntactic structure and sentiment polarity remain intact while the semantic content shifts to the target domain.

2. Data Ranking and Filtering

Synthetic data can be noisy or repetitive. To ensure high quality, ZeroABSA employs a dual-filtering mechanism:

  • Shannon Entropy: This metric evaluates vocabulary richness to filter out overly simplistic or repetitive generations.
  • LLM-as-Judge: A secondary LLM evaluates generated examples based on sentiment consistency, domain relevance, and sentence fluency. Only the highest-scoring exemplars are retained for the final training set.

3. Domain-Contextualized Chain-of-Thought (DCCoT)

The final stage involves training the model using a "Domain-Contextualized Chain-of-Thought" strategy. Rather than predicting a sentiment label directly, the model is trained to follow a reasoning path: identifying the domain, explaining the relationship between the aspect and that domain, and then deriving the sentiment. This explicit modeling helps the model internalize domain-specific nuances, bridging the gap between source and target domains during inference.

Experimental Results

The framework was evaluated across four standard ABSA benchmarks: Laptop (L), Restaurant (R), Device (D), and Service (S). The researchers tested all possible transfer combinations (e.g., Laptop → Restaurant).

Performance comparison of ZeroABSA against state-of-the-art methods across various domain transfer tasks.

Key Findings

  • Superior Performance: ZeroABSA consistently outperformed existing state-of-the-art (SOTA) methods, including those that utilize unlabeled target domain data (e.g., RSDA and BGCA). In the Service domain, ZeroABSA achieved a 3-4% improvement in Macro-F1 scores over previous bests.
  • Model Robustness: The framework proved effective even when using smaller base models like LLaMA-3-8B or Qwen-2.5-7B, suggesting that the quality of the data augmentation and reasoning strategy is a primary driver of success.
  • Ablation Insights: Removing the DCCoT component resulted in a performance drop of approximately 2.66 F1 points, confirming that explicit reasoning steps are vital for effective cross-domain adaptation.

Conclusion

ZeroABSA demonstrates that high-quality synthetic data generation combined with structured reasoning can overcome the lack of target domain data in cross-domain ABSA. By focusing on structural invariance and domain-aware reasoning, ZeroABSA sets a new benchmark for zero-shot transfer. Future work will explore extending this framework to more complex tasks like Aspect Sentiment Triplet Extraction (ASTE) and improving the efficiency of the generation process to reduce computational costs.

Summary updated

BibTeX
@misc{shen2025zero,
  author = {ChengAo Shen and Wei Wei and Dong Wang and Zhonghao Wang},
  title = {{Zero-Shot Cross-Domain Aspect-Based Sentiment Analysis via Domain-Contextualized Chain-of-Thought Reasoning}},
  year = {2025},
  doi = {10.18653/v1/2025.findings-emnlp.245},
}
Figure