Manuscript Offprint

arXiv:2610.21347

Emotion Is Not External Knowledge: Internal Attention Signals for Affective State Reasoning

Wenqiu Tang, Zhen Wan, Yihui Wang, Takahiro Komamizu, Ichiro Ide

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large Language Models (LLMs) increasingly operate in multi-turn interactions that require maintaining latent conversational states, not only explicit facts. We study affective state as an implicit state inferred from sparse contextual cues that remain relevant after topic shifts, and ask whether LLMs expose internal attention signals for routing such evidence at inference time. Prior attention interventions rely on head profiles derived from labeled examples across multiple profiling tasks and externally specified target spans, limiting transfer across affective-evidence distributions. We propose Self-targeted Internal Attention Boosting (SIAB), which localizes sparse affective heads across transformer layers in each model via causal localization (in detail activation patching) on synthetic minimal pairs and boosts the content tokens these heads already attend to. Both edited heads and target tokens are derived from the model's own behavior, enabling the same head set to be reused across tasks. We evaluate SIAB on the ECC and GoEmotions benchmarks across three LLMs and multiple prompting settings. Relative to the corresponding settings without SIAB, macro-F1 improves by up to 7.67 points on ECC and 3.28 points on GoEmotions. Combining SIAB with PASTA further raises ECC macro-F1 by 12.51 points over the Gemma 3 zero-shot baseline.

1 Introduction

Conversation is inherently stateful; What a user means at any point depends on what came before. As Large Language Models (LLMs) are increasingly deployed in such multi-turn interaction, successful responses must not only retain explicit factual context but also maintain latent conversational states, such as a user's frustration, uncertainty, or trust (Fazzi et al., 2025, Følstad et al., 2024). Affective state is a challenging case. It is rarely given as an explicit variable. Instead, it must be inferred

Figure

Figure 1: Long dialogues can bury early affective cues, turning affective prediction into a routing problem.

from sparse contextual cues whose relevance can persist across topic shifts. As illustrated in Figure 1, a model may therefore need to use an earlier affective cue when making a later prediction.

Unlike knowledge-intensive failures, where retrieval or tool use can supply a missing fact, affective continuity does not require adding new information. Since the relevant evidence is already in the dialogue, the difficulty is whether the model routes it to the final decision point. Emotion recognition therefore provides a controlled proxy for studying this routing problem at inference time.

Inference-time attention intervention is a natural way to probe this problem, since it reroutes existing contextual evidence during the forward pass, without parameter updates or newly supplied facts. Existing attention intervention methods, however, rely on external control signals. Post-hoc Attention STeering Approach (PASTA) (Zhang et al., 2024a) profiles which heads to edit from labeled in-domain data and steers attention toward externally specified spans. Later variants reduce but do not remove this reliance on external signals. These methods raise two questions. RQ1: Can internal attention signals route affective evidence without external spans? and RQ2: Are internal and external signals redundant or complementary?

We address these questions with Self-targeted Internal Attention Boosting (SIAB), an attention intervention proposed for affective state reasoning. It first localizes a sparse set of emotion-sensitive attention heads in different Transformer layers through causal localization via activation patching. It then uses these heads themselves to select target tokens. At inference time, SIAB adds a scalar bias to the pre-softmax attention logits of the localized heads, boosting the content tokens they already attend to. Both the edited heads and the target tokens thus derive from the model's own behavior.

We evaluate on two Emotion Recognition in Conversation (ERC) settings with complementary distributions of affective evidence. In the Emotion-Cause Conversation benchmark (ECC; He et al., 2025), cues are dispersed across earlier turns and must survive later topic shifts. Meanwhile, in the GoEmotions benchmark (Demszky et al., 2020), a single dense cue must instead be disambiguated among many fine-grained categories. The same head set is reused across both.

Since our goal is not only to improve recognition but to understand the internal signal we exploit, we analyze when and why the localized heads work. The gains come from a sparse set of heads; A few heads are sufficient, and they attend more to affective words than random heads from early, middle, and late layers. Whether SIAB succeeds further depends on logit geometry and on whether the boosted tokens align with the final label decision. Finally, the effects of SIAB and PASTA complement each other depending on their layer-band proximity.

Our contributions are threefold: (i) We propose SIAB, a self-targeted inference-time attention intervention that requires no parameter update or annotated span and composes with prompting and PASTA-style external supervision, (ii) We show consistent gains across models, datasets, and prompting settings, and (iii) We characterize its mechanism and boundary conditions.

References (38)