Uncovering Sentiment Analysis Circuit in Large Language Model

Shichen Li, Zhouyang Wang, Zhongqing Wang, Peifeng Li


Abstract
Large Language Models (LLMs) can perform sentiment analysis via natural language instructions, yet their predictions are highly sensitive to prompt phrasing. Prior work has shown that sentiment is encoded linearly in LLM representations, but the model’s ability to utilize this information remains surprisingly fragile to prompt variations. We leverage Sparse Autoencoders (SAEs) and circuit-level analysis to uncover causal mechanisms underlying sentiment prediction. We identify a sentiment analysis circuit and find that prompt sensitivity may stem from task activation failure. The model encodes the sentiment feature consistently, but different prompts trigger varying degrees of circuit activation. Based on this insight, we propose a simple inference-time intervention method that amplifies circuit features to compensate for insufficient activation. Experiments across diverse datasets, templates, and languages show consistent improvements, offering an interpretable and training-free alternative to manual prompt engineering.
Anthology ID:
2026.acl-long.928
Volume:
Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Venue:
ACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
20269–20289
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.acl-long.928/
DOI:
Bibkey:
Cite (ACL):
Shichen Li, Zhouyang Wang, Zhongqing Wang, and Peifeng Li. 2026. Uncovering Sentiment Analysis Circuit in Large Language Model. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 20269–20289, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
Uncovering Sentiment Analysis Circuit in Large Language Model (Li et al., ACL 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.acl-long.928.pdf
Checklist:
 2026.acl-long.928.checklist.pdf