Cross-domain Aspect-based Sentiment Analysis based on Multi-layer Prompt Injection and Pseudo-label Filtering

Authors

  • Bingyu Zhou School of Information Science and Engineering, Dalian Polytechnic University, Dalian, Liaoning, 116034, China

DOI:

https://doi.org/10.54097/9vem0965

Keywords:

Aspect-based Sentiment Analysis, Cross-domain Transfer, Prompt Learning, Pseudo-label Filtering, Large Language Model Data Augmentation

Abstract

Cross-domain aspect-based sentiment analysis (ABSA) suffers from domain distribution shift, scarce target-domain annotations, and weak transfer of aspect-level semantics. To address the limitations of existing methods in fine-grained semantic modeling, domain information fusion, and generated-data quality control, this paper proposes PP-LMAG, a cross-domain ABSA method that combines multi-layer prompt injection with pseudo-label filtering. PP-LMAG uses a T5 encoder as the backbone and injects global domain prompts, domain-attention prompts, and residual-aware prompts into different Transformer layers to enhance multi-level domain awareness. It further generates target-domain pseudo labels with a large language model and filters high-confidence samples through relaxed consistency matching before joint training with source-domain labeled data. Experiments on 10 cross-domain transfer directions constructed from public ABSA datasets such as SemEval and Hu&Liu show that PP-LMAG achieves the best Pair F1 in all transfer directions and improves the average Pair F1 by 16.40 percentage points over the strongest baseline. The results demonstrate the effectiveness of combining multi-layer prompt injection and pseudo-label filtering for cross-domain ABSA.

Downloads

Download data is not yet available.

References

[1] Zhang, W., Li, X., Deng, Y., Bing, L., & Lam, W. (2023). A survey on aspect-based sentiment analysis: Tasks, methods, and challenges. IEEE Transactions on Knowledge and Data Engineering, 35(11), 11019–11038. DOI: 10.1109/TKDE.2022.3159572. DOI: https://doi.org/10.1109/TKDE.2022.3230975

[2] Wilson, G., & Cook, D. J. (2020). A survey of unsupervised deep domain adaptation. ACM Transactions on Intelligent Systems and Technology, 11(5), 1–46. DOI: 10.1145/3400066. DOI: https://doi.org/10.1145/3400066

[3] Li, Z., Li, X., Wei, Y., Zhang, Y., & Wang, H. (2019). Transferable end-to-end aspect-based sentiment analysis with selective adversarial learning. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP 2019) (pp. 4590–4600). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/D19-1466

[4] Gong, C., Yu, J., & Xia, R. (2020). Unified feature and instance based domain adaptation for aspect-based sentiment analysis. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP 2020) (pp. 7035–7045). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/2020.emnlp-main.572

[5] Yu, J., Zhao, Q., & Xia, R. (2023). Cross-domain data augmentation with domain-adaptive language modeling for aspect-based sentiment analysis. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (ACL 2023) (pp. 1456–1470). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/2023.acl-long.81

[6] Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL-HLT 2019) (pp. 4171–4186). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/N19-1423

[7] Liu, P., Yuan, W., Fu, J., Jiang, Z., Hayashi, H., & Neubig, G. (2023). Pre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing. ACM Computing Surveys, 55(9), 1–35. DOI: 10.1145/3560815. DOI: https://doi.org/10.1145/3560815

[8] Liu, X., Ji, K., Fu, Y., & Lin, Z. (2022). P-tuning: Prompt tuning can be comparable to fine-tuning across scales and tasks. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (ACL 2022, Short Papers) (pp. 61–68). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/2022.acl-short.8

[9] Lester, B., Al-Rfou, R., & Constant, N. (2021). The power of scale for parameter-efficient prompt tuning. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (EMNLP 2021) (pp. 3045–3059). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/2021.emnlp-main.243

[10] Razdaibiedina, A., Mao, Y., Khabsa, M., Awadallah, A. H., & Amershi, S. (2023). Residual prompt tuning: Improving prompt tuning with residual reparameterization. In Findings of the Association for Computational Linguistics: ACL 2023 (pp. 6740–6757). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/2023.findings-acl.421

[11] Yan, H., Dai, J., Ji, T., Qiu, X., & Zhang, Z. (2021). A unified generative framework for aspect-based sentiment analysis. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics (ACL 2021) (pp. 2416–2429). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/2021.acl-long.188

[12] Yu, J., Gong, C., & Xia, R. (2021). Cross-domain review generation for aspect-based sentiment analysis. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021 (pp. 4767–4777). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/2021.findings-acl.421

[13] Deng, Y., Zhang, W., Pan, S. J., & Lam, W. (2023). Bidirectional generative framework for cross-domain aspect-based sentiment analysis. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (ACL 2023) (pp. 12272–12285). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/2023.acl-long.686

[14] Dai, H., Liu, Z., Liao, W., Huang, X., Wu, Z., & Liu, X. (2023). AugGPT: Leveraging ChatGPT for text data augmentation [EB/OL]. arXiv:2302.13007. https://arxiv.org/abs/2302.13007.

[15] Whitehouse, C., Choudhury, M., & Aji, A. F. (2023). LLM-powered data augmentation for enhanced cross-lingual performance. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (EMNLP 2023) (pp. 671–686). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/2023.emnlp-main.44

[16] Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140), 1–67.

[17] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., & Polosukhin, I. (2017). Attention is all you need. In Advances in Neural Information Processing Systems 30 (NeurIPS 2017) (pp. 5998–6008). Curran Associates.

[18] Ramponi, A., & Plank, B. (2020). Neural unsupervised domain adaptation in NLP—A survey. In Proceedings of the 28th International Conference on Computational Linguistics (COLING 2020) (pp. 6838–6855). International Committee on Computational Linguistics. DOI: https://doi.org/10.18653/v1/2020.coling-main.603

[19] Du, J., Grave, E., Gunel, B., Chaudhary, V., Celebi, F., Stoyanov, V., & Conneau, A. (2021). Self-training improves pre-training for natural language understanding. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL 2021) (pp. 5408–5418). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/2021.naacl-main.426

[20] Lee, D. H. (2013). Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks. In ICML 2013 Workshop on Challenges in Representation Learning.

[21] Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, T., Henighan, T., Child, R., Ramesh, A., Ziegler, D., Wu, J., Winter, C., Hesse, C., Chen, M., Sigler, E., Litwin, M., Gray, S., Chess, B., Clark, J., Berner, C., McCandlish, S., Radford, A., Sutskever, I., & Amodei, D. (2020). Language models are few-shot learners. In Advances in Neural Information Processing Systems 33 (NeurIPS 2020) (pp. 1877–1901). Curran Associates.

[22] Pontiki, M., Galanis, D., Pavlopoulos, J., Papageorgiou, H., Androutsopoulos, I., & Manandhar, S. (2014). SemEval-2014 Task 4: Aspect based sentiment analysis. In Proceedings of the 8th International Workshop on Semantic Evaluation (SemEval 2014) (pp. 27–35). Association for Computational Linguistics. DOI: https://doi.org/10.3115/v1/S14-2004

[23] Toprak, C., Jakob, N., & Gurevych, I. (2010). Sentence and expression level annotation of opinions in user-generated discourse. In Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics (ACL 2010) (pp. 575–584). Association for Computational Linguistics.

[24] Hu, M., & Liu, B. (2004). Mining and summarizing customer reviews. In Proceedings of the 10th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD 2004) (pp. 168–177). ACM. DOI: https://doi.org/10.1145/1014052.1014073

[25] Wang, W., & Pan, S. J. (2018). Recursive neural structural correspondence network for cross-domain aspect and opinion co-extraction. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL 2018) (pp. 2171–2181). Association for Computational Linguistics. DOI: https://doi.org/10.18653/v1/P18-1202

[26] Ganin, Y., Ustinova, E., Ajakan, H., Germain, P., Larochelle, H., Laviolette, F., Marchand, M., & Lempitsky, V. (2016). Domain-adversarial training of neural networks. Journal of Machine Learning Research, 17(59), 1–35.

[27] Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., & Sutskever, I. (2019). Language models are unsupervised multitask learners [R]. OpenAI Technical Report.

[28] Chen, X., & Wan, X. (2022). A simple information-based approach to unsupervised domain-adaptive aspect-based sentiment analysis [EB/OL]. arXiv:2201.12549. https://arxiv.org/abs/2201.12549.

[29] Liu, T., Feng, A., & Gao, Z. J. (2025). Cross-domain aspect-based sentiment analysis based on late prompt and instance adaptation. Software Guide, 24(1), 29–34. DOI: 10.11907/rjdk.232287. (in Chinese)

[30] Shen, C., Wei, W., Wang, D., Li, Y., & Zhang, M. (2025). Zero-shot cross-domain aspect-based sentiment analysis via domain-contextualized chain-of-thought reasoning. In Findings of the Association for Computational Linguistics: EMNLP 2025 (pp. 4558–4573). Association for Computational Linguistics. DOI: 10.18653/v1/2025.findings-emnlp.245. DOI: https://doi.org/10.18653/v1/2025.findings-emnlp.245

[31] Wei, J., Wang, X., Schuurmans, D., Bosma, I., Ichter, B., Xia, F., Chi, E., Le, Q., & Zhou, D. (2022). Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems 35 (NeurIPS 2022) (pp. 24824–24837). Curran Associates. DOI: https://doi.org/10.52202/068431-1800

Downloads

Published

29-11-2026

Issue

Section

Articles

How to Cite

Zhou, B. (2026). Cross-domain Aspect-based Sentiment Analysis based on Multi-layer Prompt Injection and Pseudo-label Filtering. Frontiers in Computing and Intelligent Systems, 19(1), 48-55. https://doi.org/10.54097/9vem0965