Lune

ACL2026Top-tier venue

Uncovering Sentiment Analysis Circuit in Large Language Model

Shichen Li, Zhouyang Wang, Zhongqing Wang, Peifeng Li

2026Year

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. To understand this behavior, we leverage Sparse Autoencoders (SAEs) to extract interpretable features from LLM activations and apply 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. 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.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 67c40690-7f72-4bfa-bde2-dd3ca02b7bd9

Builds on17

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines