Manuscript Offprint
arXiv:2610.21347Emotion Is Not External Knowledge: Internal Attention Signals for Affective State Reasoning
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 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.
Mechanistic interpretability provides tools for discovering internal structures that mediate model behavior. Activation patching (Wang et al., 2023, Goldowsky-Dill et al., 2023) has been used to localize concrete circuit components, such as name-mover and S-inhibition heads, through clean-corrupted activation contrasts, while direct logit attribution (Belrose et al., 2023) links intermediate contributions to final-token logits. These tools fit our goal of identifying internal signals for affective-evidence routing. Rather than specifying emotion-bearing spans externally, we localize the attention heads that internally route affective contrast.
Emotion recognition in conversation naturally probes affective state across dialogue turns, yet existing mechanistic work operates at a coarser granularity. It studies sentiment directions (Tigges et al., 2024), mid-layer multi-head self-attention units (Tak et al., 2025), or residual-stream circuits for emotion generation (Wang et al., 2025), leaving head-level recognition unaddressed. Other work improves accuracy through retrieval, speaker modeling, or curriculum learning (Lei et al., 2023, Xue et al., 2024, Fu et al., 2025, Li et al., 2026), but treats the model as a black box and ignores its internal attention signal.
3 Method
We introduce SIAB, an inference-time attention intervention with two components: Head-set construction via Activation Patching and heads refinement introduced in §3.1 and §3.2, respectively, and Self-targeted pre-softmax logit boosting introduced in §3.3. Both components derive their control signal from the model's own internal behavior. Figure 2 gives an overview.
We frame emotion prediction as generative label scoring. Given an input context X and a candidate

Figure 2: Overview of the proposed Self-targeted Internal Attention Boosting (SIAB). Causal localization via activation patching selects sparse emotion-sensitive heads (4–20 of hundreds). SIAB adds a pre-softmax bias to the content tokens these heads already attend to at final query positions —without training, parameter update, or external span.
label set Y, we score each label using its answer-position verbalizer logit, rather than training a task-specific classification head.
3.1 Head Selection via Activation Patching
Activation patching localizes the attention heads in different Transformer layers that causally affect the original prediction using prompt pairs that differ only in the feature driving that prediction. In our case, the difference in affective state is driven by the affective cues, so we build clean–corrupted pairs , e.g., received a delicious cake. I feel" and received a rotten cake. I feel" (Appendix A shows the detail of pairs construction). Two properties make these pairs suitable for causal attribution. First, every prompt ends with I feel, so the model is induced to predict an emotion word at the final position, where we read off the effect. Second, the two prompts share the same syntactic structure and differ only in the affective cue, so any difference in the final-position emotion prediction can be attributed to that cue.
We run the model on as a baseline. Then, for one head h at a time, we replace only that head's final-token output with the output it produced on the and complete the forward pass. Everything else stays at its corrupted value. If h encodes the cue, restoring its clean output pulls the emotion prediction back toward the clean answer. Otherwise, the model's prediction should remain close to the corrupted-run baseline. We quantify this as the normalized logit-difference recovery formulated as:
Here, and are the top-ranked final-position emotion words on and , respectively, and denotes the patched run described above. Thus when the swap fully restores the clean prediction and when it has no effect, following Belrose et al. (2023) and Tigges et al. (2023). We apply the test to every head independently and retain those with , and their union forms the candidate set .
3.2 Label-free Refinement on Dialogues
Having obtained the candidate heads , we do not directly treat all of them as suitable intervention targets. A head may obtain a high patching score through generic mechanisms, such as positional tracking or induction-like copying (Olsson et al., 2022), rather than by routing affective cues. In natural dialogues, affective evidence is usually carried by lexical content. We therefore use a lightweight content-token filter that removes punctuation, special tokens, pronouns, interrogatives, and prepositions, while retaining negators and intensifiers. We then refine the candidates on dialogues by measuring their attention and value mass on content-word positions before the emotion prediction, using value mass because attention alone does not determine the information written to the residual stream (Kobayashi et al., 2020).
For this refinement stage, we use 200 dialogues sampled from the DailyDialog dataset (Li et al., 2017). For each dialogue, we append a probe question, e.g., “What is the emotion of the last utterance?”, and inspect each candidate head immediately before the model generates the answer. Although this dataset provides emotion annotations, we use only the dialogue text during this stage and do not access any gold emotion label.
For an arbitrary token position , let be the attention from query position to on head , and let be the L2 norm of the corresponding value contribution. Because dialogue turns have different lengths, we normalize both quantities within the conversational turn as:
(2)
where turn(u) denotes all token positions in the same conversational turn as u, including both content and non-content tokens. Thus, and measure the fraction of a head's attention and value mass within that turn assigned to u.
Let denote the content-word positions in turn . The candidate score is defined as:
where and are computed by summing the turn-normalized masses over and then averaging over turns , query positions , and refinement dialogues. This yields the fraction of each head's turn-level mass assigned to substantive dialogue content. The final head set is the top-K heads by . Per-model values of and the resulting head indices are reported in Appendix B.
3.3 Attention Logit Boosting
Crucially, the intervened tokens are not externally annotated, but selected from each chosen head's own attention distribution at the final query positions. At inference time, for each , let denote the top-r fraction of content-word tokens ranked by attention score . We add a scalar bias to the pre-softmax attention logits of these tokens as:
The attention distribution is then computed by applying softmax to the modified logits .
The head set H is fixed once and reused across both datasets without re-localization. Also the bias magnitude is calibrated per model and then held fixed across both datasets. Hyperparameter values and the calibration protocol are reported in Appendix C.
4 Experimental Evaluation
4.1 Datasets
We evaluate on two benchmarks that stress different cue regimes. ECC (He et al., 2025) labels multi-turn dialogues (max. 831 tokens) with 10 fine-grained emotion classes, where affective evidence can appear early and must remain available across many turns. GoEmotions (Demszky et al., 2020) labels short Reddit comments (max. 52 tokens) with 27 multi-label emotion categories plus a Neutral class, where cues are local and information-dense but must be separated among many fine-grained labels. We exclude samples labeled solely as Neutral, since they contain no non-neutral affective cue for cue-targeting heads to act on. For multi-label samples, we retain the non-Neutral labels. This leaves 3,821 test examples for evaluation. Neutral results are reported in Appendix D.
4.2 Evaluation Metrics
We report macro-F1 and Accuracy. For the ECC benchmark, we take the argmax over 10 labels. For the GoEmotions benchmark, we follow the multi-label setting of Demszky et al. (2020). The temperature T and threshold t are tuned on the GoEmotions dev split (The specific hyperparameter values are provided in Appendix C). and Top-1 accuracy counts the argmax label as correct if it belongs to the gold label set.
We additionally quantify finite-sample uncertainty using paired bootstrap resampling ( ). Full pointwise 95% percentile confidence intervals and implementation details are reported in Appendix G.
4.3 Models
We evaluate three open, small-to-mid-sized instruction-tuned LLMs from different model families: Gemma3-4B (Gemma Team, 2025), Qwen3-4B (Yang et al., 2025), and LLaMA3-8B (Grattafiori et al., 2024).
4.4 Baselines and Prompting Settings
We compare the proposed SIAB against three baselines. The first is prompting: Zero-Shot (ZS) and fixed few-shot prompting (Templates are introduced in Appendix F).
The second is PASTA-style (Zhang et al., 2024a) performance-profiled head selection, for which we
https://www.reddit.com/ (Accessed: Mar. 19, 2026)
Table 1: Results of two different metrics on the ECC (He et al., 2025) and GoEmotions (Demszky et al., 2020) benchmarks. ZS / Mid / High denote zero- / few-shot prompts (15/27 for GoEmotions, 5/10 for ECC). PASTA-{ECC,GoE} use heads selected on the named dataset, PASTA-∩ keeps the shared top heads from these two profiles. Rand. is layer-matched random. Scores are ×100, Δ is vs. ZS, best per model in bold.
| Model | Config | ECC benchmark | GoEmotions benchmark | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Acc. | Macro-F1 | Macro-F1 | Top-1 | ||||||
| Gemma3(Gemma Team, 2025) | ZS | 50.29 | 52.26 | — | — | 27.17 | 34.37 | — | — |
| ZS+SIAB | 59.62 | 59.93 | +9.32 | +7.67 | 30.45 | 38.15 | +3.28 | +3.78 | |
| Mid | 56.48 | 55.51 | +6.19 | +3.25 | 30.55 | 33.45 | +3.38 | -0.92 | |
| Mid+SIAB | 59.90 | 60.15 | +9.61 | +7.89 | 32.65 | 36.68 | +5.47 | +2.30 | |
| High | 60.66 | 58.27 | +10.37 | +6.01 | 28.72 | 32.24 | +1.55 | -2.14 | |
| High+SIAB | 63.69 | 62.52 | +13.40 | +10.27 | 31.49 | 36.19 | +4.32 | +1.82 | |
| PASTA-ECC | 59.43 | 60.37 | +9.14 | +8.11 | 26.86 | 32.89 | -0.31 | -1.48 | |
| PASTA-GoE | 52.11 | 52.99 | +1.82 | +0.73 | 31.81 | 34.37 | +4.64 | +0.00 | |
| PASTA-∩ | 59.12 | 60.02 | +8.83 | +7.76 | 29.19 | 34.65 | +2.02 | +0.28 | |
| PASTA+SIAB | 64.13 | 64.77 | +13.84 | +12.51 | 33.75 | 38.01 | +6.58 | +3.64 | |
| Random | 41.89±3.70 | 45.60±4.10 | -8.40 | -6.66 | 26.01±1.80 | 32.13±2.90 | -1.16 | -2.24 | |
| Qwen3(Yang et al., 2025) | ZS | 52.73 | 55.25 | — | — | 35.51 | 39.94 | — | — |
| ZS+SIAB | 56.03 | 58.04 | +3.30 | +2.79 | 37.77 | 41.31 | +2.26 | +1.37 | |
| Mid | 55.63 | 58.02 | +2.90 | +2.78 | 35.56 | 40.38 | +0.05 | +0.44 | |
| Mid+SIAB | 57.71 | 59.91 | +4.99 | +4.66 | 38.31 | 42.69 | +2.79 | +2.75 | |
| High | 58.71 | 60.67 | +5.98 | +5.42 | 35.99 | 43.25 | +0.48 | +3.31 | |
| High+SIAB | 60.36 | 61.88 | +7.63 | +6.63 | 38.23 | 44.26 | +2.71 | +4.32 | |
| PASTA-ECC | 59.65 | 59.85 | +6.92 | +4.60 | 35.20 | 40.28 | -0.31 | +0.34 | |
| PASTA-GoE | 52.82 | 55.14 | +0.09 | -0.11 | 35.63 | 39.17 | +0.12 | -0.77 | |
| PASTA-∩ | 57.65 | 59.11 | +4.92 | +3.86 | 35.99 | 39.80 | +0.48 | -0.14 | |
| PASTA+SIAB | 62.76 | 63.09 | +10.03 | +7.84 | 37.97 | 41.61 | +2.46 | +1.67 | |
| Random | 52.39±2.30 | 55.27±0.70 | -0.34 | +0.02 | 34.64±0.80 | 39.75±1.00 | -0.87 | -0.19 | |
| LLaMA3(Grattafiori et al., 2024) | ZS | 59.27 | 60.28 | — | — | 30.39 | 33.24 | — | — |
| ZS+SIAB | 61.80 | 63.23 | +2.53 | +2.95 | 33.64 | 38.02 | +3.25 | +4.78 | |
| Mid | 62.24 | 62.86 | +2.96 | +2.58 | 29.16 | 34.28 | -1.23 | +1.04 | |
| Mid+SIAB | 64.21 | 64.52 | +4.94 | +4.25 | 29.81 | 36.44 | -0.58 | +3.20 | |
| High | 64.97 | 64.81 | +5.70 | +4.53 | 26.57 | 32.53 | -3.82 | -0.72 | |
| High+SIAB | 66.22 | 66.13 | +6.95 | +5.85 | 27.55 | 35.85 | -2.84 | +2.61 | |
| PASTA-ECC | 65.28 | 63.35 | +6.01 | +3.07 | 23.20 | 26.31 | -7.19 | -6.93 | |
| PASTA-GoE | 62.09 | 61.74 | +2.82 | +1.46 | 32.14 | 31.51 | +1.75 | -1.73 | |
| PASTA-∩ | 63.28 | 60.82 | +4.01 | +0.54 | 30.86 | 33.18 | +0.47 | -0.06 | |
| PASTA+SIAB | 65.48 | 63.55 | +6.21 | +3.27 | 36.17 | 37.73 | +5.78 | +4.49 | |
| Random | 52.84±5.00 | 56.24±4.10 | -6.43 | -4.04 | 28.52±2.80 | 30.59±3.20 | -1.87 | -2.65 | |
report three variants: PASTA-ECC and PASTA-GOE are profiled on labeled ECC and GoEmotions dev-data, respectively, probing in-domain effectiveness and cross-dataset transfer, PASTA-∩ keeps only the heads shared by both profiles, testing whether a shared profile improves generality. We also report PASTA+SIAB to test complementarity with in-domain PASTA. PASTA's head count and variants are also tuned to their optimal values.
The third is, Layer-Matched Random, which tests whether the effect is only layer-specific or due to within-layer redundancy. In either case, random same-layer heads should work as well (Voita et al., 2019, Michel et al., 2019). We sample 20 random subsets of non-selected heads from the same layers, matching our head-set size, and tune on the same dev set.
4.5 Results
Table 1 reports results on two datasets. The reported changes in macro-F1 and full accuracy ( ) are computed relative to the ZS baseline.
SIAB generalized across models, datasets, and prompts. Across all 18 model–prompt–dataset settings, the proposed SIAB improved over the corresponding prompting baseline using the same head set, with gains up to +10.27 macro-F1 on the ECC benchmark and +5.47 on the GoEmotions benchmark. The effect is not limited to ZS, but under 10-shot ECC, SIAB still added +1.21 to
+4.25 macro-F1 across models. On GoEmotions, it also reduced harmful few-shot effects. It turned the Gemma3 model’s Mid / High Top-1 drops into gains and weakened the LLaMA3 model’s Macro-F1 drops, while flipping its High-setting Top-1 change from negative to positive.
PASTA was strong in-domain but transferred poorly. In-domain PASTA profiles were competitive with, and often stronger than, ZS+SIAB. However, this strength was task-specific. Applying PASTA-ECC heads to GoEmotions dropped LLaMA3 by -7.19 macro-F1, and transfer in the reverse direction was similarly unstable. PASTA-∩ also lost in-domain performance without recovering cross-task gains. In contrast, SIAB uses the same causally selected head set across both datasets and gave positive in all 18 settings. Thus, PASTA reached a stronger in-domain peak when its profiling task matches the test task, whereas SIAB was weaker but more stable across tasks, motivating their composition.
The two signals composed additively in five of six (model, dataset) configurations. Across five configurations, PASTA+SIAB recovered 79–116% of the naive sum of the two individual ZS gains, and yielded the best macro-F1 on 4 of them, indicating the two signals operate largely orthogonally. The single exception, LLaMA3 on ECC, recovered only 54%. We attribute this to layer-band disjointness between the PASTA-profiled and SIAB head sets and quantify the relationship in §5.4.
Effect of head selection: Evidence from Random. Across all models, datasets, and metrics, ZS+SIAB outperformed the mean score of 20 layer-matched random head subsets. Since Random uses the same layers, head-set size, and tuning protocol, this argues against a simple accumulation of layer-level effects. It also shows that same-layer heads are not interchangeable for this intervention, but the gain depends on the specific heads selected by SIAB.
5 Mechanistic Analysis
To analyze when and why the intervention succeeded, we partition test samples into four groups based on the joint behavior of ZS and the proposed SIAB predictions: POS: ZS incorrect, SIAB correct, NEG: ZS correct, SIAB incorrect, EASY: both ZS and SIAB correct, and HARD: both ZS and SIAB incorrect.
5.1 Sparsity of the Affective Head Set
To test whether our selected head set is sufficiently sparse, we vary K and select the top-K heads according to the ranking determined during refinement in §3.2. Figure 3 shows the same trend across all models and datasets, that F1 rose quickly with a few heads, saturated near a small , and dropped as more heads were added. This suggests that affective signal is concentrated in a small head set, while lower-ranked heads mostly add noise. Since the same appears on both the ECC and GoEmotions benchmarks for each model, the sparsity seems more model-dependent than dataset-specific.
5.2 Selected Heads Attend More to Emotion Words
We test whether selected heads disproportionately attend to emotion words.
Setup. For each dialogue turn that contains at least one word from the NRC Emotion Lexicon (Mohammad and Turney, 2013), let denote the content-word tokens in the turn, and let denote the subset of tokens matched by the NRC. For a head , let be the top-30% tokens in ranked by the attention that head assigns to them at the prediction position. We then compute a concentration ratio defined as:
The numerator is the emotion-word fraction among the head’s top-attended tokens, while the denominator is the emotion-word fraction in the whole turn. Thus, indicates that head h attends to emotion words more than expected from their base rate in that turn. We compare selected heads with random non-selected heads sampled from early, middle, and late layer bands (40 heads per band).
Internal signal was head-specific, but not layer-driven. The selected heads had the highest emotion-word ratios for all three models as shown in Table 2. Among random heads, middle and late layer bands generally showed higher ratios than early layers, consistent with prior work showing stronger affective or sentiment signals in mid-to-late layers (Tak et al., 2025, Tigges et al., 2024). Moreover, the selected heads span early, middle, and late layer regions, yet outperformed random

Accuracy / Top-1 (%)
Macro F1 (%)
Paper baseline K
Figure 3: Performance vs. boosted head count on the ECC (He et al., 2025) and GoEmotions (Demszky et al., 2020) benchmarks. Blue denotes macro-F1, and orange denotes accuracy for ECC and Top-1 accuracy for GoEmotions. Dashed lines mark the used in the main experiments, showing small- saturation across datasets for each model.
Table 2: Emotion-word ratio for selected and random heads. Larger values indicate a higher emotion-word share turn average.
| Head set | Gemma3 (K=4) | Qwen3 (K=10) | LLaMA3 (K=20) |
|---|---|---|---|
| Selected | 1.575 | 1.370 | 1.384 |
| Random Late | 1.373 | 1.064 | 1.195 |
| Random Middle | 1.346 | 1.157 | 1.228 |
| Random Early | 1.224 | 1.083 | 1.092 |
Table 3: Mean label_gap per on GoEmotion samples.
| Group | Gemma3 | Qwen3 | LLaMA3 |
|---|---|---|---|
| POS | +9.77 | +2.85 | +0.79 |
| NEG | -7.57 | -2.12 | -0.83 |
| HARD | +2.53 | +1.14 | +0.45 |
heads within each region. This suggests that the higher emotion-word ratio is a property of the selected heads themselves, not merely a consequence of their layer positions. Appendix E provides qualitative examples.
5.3 What Makes a Sample Rescuable?
The proposed SIAB changes the prediction only when its induced logit movement is both large enough and pointed in the useful direction. We first describe the observed movement across POS, NEG, and HARD samples, and then analyze two factors behind it: Baseline logit gap and Alignment of selected heads with the gold label.
Table 4: Zero-Shot (ZS) margin and label-gap statistics by sample group, and rescue rates by label-gap range. In (a), share is calculated over all test samples, and in (b), it is calculated over the POS+HARD subset.
(a) ZS margin = and ZS label_gap = by group.
| Group | Share [%] | ZS margin | ZS label_gap |
|---|---|---|---|
| POS | 12.9 | 9.4 | -9.8 |
| NEG | 3.1 | 8.7 | 0.0 |
| EASY | 42.7 | 20.5 | 0.0 |
| HARD | 41.3 | 16.8 | -20.2 |
(b) Rescue rate of POS+HARD samples stratified by ZS label_gap.
| Range | Share [%] | Rescue rate |
|---|---|---|
| [-5, 0] (Shallow) | 10.2 | 66.9% |
| [-10, -5] (Mid) | 12.3 | 47.9% |
| [-100,-10] (Deep) | 77.5 | 14.4% |
SIAB induced different logit movements across groups. We measure the intervention effect by
Table 5: Selected-head attention mass on emotion tokens. POS shows stronger label-directional bias.
| Group | |||
|---|---|---|---|
| POS | 0.767 ± 0.284 | 0.140 ± 0.233 | +0.627 |
| NEG | 0.661 ± 0.335 | — | — |
| EASY | 0.726 ± 0.325 | — | — |
| HARD | 0.656 ± 0.345 | 0.195 ± 0.285 | +0.461 |
. For an example with gold label , candidate label set , and label-logit vector , we define label_gap , where indexes candidate emotion labels. The gap is 0 when the gold label is already Top-1 and negative otherwise, and positive values mean that SIAB moves the gold label closer to Top-1. As reported in Table 3, POS shifted strongly upward and NEG strongly downward. Meanwhile, HARD also shifted upward, but by a much smaller margin.
Large baseline logit gaps limited rescue. The weaker HARD movement is partly explained by its baseline logit geometry. Table 4 (a) shows that POS and NEG had small Top-1 vs. Top-2 margins on the Gemma3 model (9.4 and 8.7), while HARD had a much larger margin (16.8) and a deeper gold-label gap (-20.2). Stratifying POS+HARD samples by ZS label_gap further confirms this pattern as shown in Table 4 (b): Rescue was frequent in the shallow range but dropped sharply once the gold label was more than 10 logit points behind Top-1. HARD mostly lay in this deep-gap regime, where SIAB could move the gold label but rarely enough to change the prediction.
Direction was set by head alignment. Selected heads differed across groups in how strongly they attended to gold-label versus wrong-label emotion tokens before intervention. Using the NRC EmoLex categories, we compute the fraction of selected-head attention mass on emotion tokens matching the gold label ( ) versus the wrong Top-1 ( ). As shown in Table 5, . POS exhibited stronger directional bias than HARD (0.767 vs. 0.656) and a lower wrong-aligned fraction (0.140 vs. 0.195). On HARD, the intervention thus amplifies a noisier signal, which can partially explain HARD's resistance to rescue.
Can more HARD samples be rescued? We probe this in two ways: by scaling by a factor of 2 and by suppressing sink-token attention in selected heads (Table 6). First, setting to rescued only 4.5% of HARD samples on Gemma3, and the effect saturated beyond . LLaMA3 and Qwen3 showed essentially no gain (0.1% and 0.4%, respectively). Thus, increasing alone is insufficient. Second, suppressing attention to sink tokens in selected heads generally performed better than increasing , but the gains remained modest despite the large share of attention attracted by sink tokens. The largest gain on HARD samples was 5.5% for LLaMA3, while Qwen3 showed only a small gain.
Table 6: Rescue rate on HARD samples under two intervention strategies.
| Model | Sink mass | Sink suppression | |
|---|---|---|---|
| Gemma3 | ~25% | 4.5% | 4.2% |
| Qwen3 | ~40% | 0.4% | 1.4% |
| LLaMA3 | ~60% | 0.1% | 5.5% |
5.4 Layer-band Proximity in SIAB–PASTA Additivity
The Results section identified the LLaMA3 model on the ECC benchmark as the single non-additive outlier. Here we test whether this outlier was caused by layer disjointness between the two head sets.
Quantifying additivity. For each PASTA head set, we compare the actual Combo gain to the sum of the two individual gains as:
where . A value of 100% means the two interventions are exactly additive; <100% indicates redundancy or interference between the two head sets and >100% indicates super-additivity.
Layer-disjointness hypothesis. We hypothesize that PASTA and the proposed SIAB compose additively only when the two head sets occupy overlapping or adjacent Transformer layers, and breaks down when the two sets sit too many layers apart for their signals to combine. LLaMA3 on ECC was the natural witness. Its scan-selected PASTA Top-10 lay entirely on , and Combo provided essentially nothing on top of PASTA alone. To probe the causal direction, we (i) re-select LLaMA3's PASTA heads to mid-late layers and check whether additivity recovers, and (ii) artificially reproduce the disjoint pattern in two models where Combo otherwise works by hand-selecting their PASTA-positive heads at near-SIAB vs. early layer bands.
Table 7: Layer-band manipulation on the ECC (He et al., 2025) benchmark. Near / Far denote PASTA (Zhang et al., 2024a) heads at small / large mean layer distance to the proposed SIAB's heads, respectively. Boldface values mark the high-additivity configuration per model. Configuration used in the main results (Table 1).
| Model | PASTA dist. to SIAB | Additivity (Acc / F1) | |
|---|---|---|---|
| Gemma3 | Near () | 95.8% / | 96.6% |
| Gemma3 | Far () | 79.4% / | 81.5% |
| Qwen3 | Near () | 118.5% / | 112.7% |
| Qwen3 | Far () | 70.0% / | 70.4% |
| LLaMA3 | Near () | 89.0% / | 108.0% |
| LLaMA3 | Far () | 72.7% / | 54.3% |
Manipulating PASTA's layer band recovered and broke additivity. Table 7 reports additivity per manipulation, and the pattern was consistent across all three models. Additivity was high when PASTA and SIAB occupied nearby layers and collapsed when they were forced apart. Re-selecting LLaMA3's natively early-stacked PASTA heads () to mid-late layers () lifted F1 additivity above (). Conversely, forcing the otherwise-additive Gemma3 and Qwen3 models' PASTA heads into early layers dropped additivity from and (Near) to and (Far). The recovery and breakdown both track the layer gap rather than the model, confirming that the layer band is the limiting factor.
6 Conclusion
Affective state in dialogue depends on contextual cues that are already present but easily lost at prediction time. We showed that the proposed SIAB could route this evidence through internal model signals, without relying on externally marked spans or task-specific training. A fixed causally localized head set transferred across two contrasting attentional demands, whereas PASTA-style external profiles were competitive in-domain but transferred poorly. Their additive gains further suggested that internal and external signals capture complementary aspects of affective evidence. Future work should move from a fixed global intervention to sample-adaptive control, where intervention strength and target tokens vary with each example's uncertainty and attention pattern, and test whether the same interface extends to other latent conversational states such as uncertainty, trust, or intent.
Limitations
Model scale. We evaluated three open instruction-tuned LLMs spanning 4–8B parameters from distinct families (Gemma3, Qwen3, and LLaMA3). Whether the internal signal continues to generalize at much larger scales (e.g., 70B+) is an open question. Exhaustive activation patching at such scales is computationally prohibitive in our setting.
Language coverage. Both benchmarks (ECC and GoEmotions) were in English. Whether the recovered head set transfers across languages, or whether language-specific recognition circuits would emerge under multilingual evaluation, is untested.
Dataset breadth. The two benchmarks were selected to span complementary attentional demands (long-context dialogue integration vs. wide-label distribution shift over short inputs), and we reuse the same head set across them without re-derivation. Generalization to non-emotion classification tasks is left to future work.
Boundary on HARD samples. A subset of test samples (HARD) remained unrescued even under stronger interventions. As analyzed in §5.3, Both scaling and suppressing attention sink were insufficient. Whether these samples can be rescued by a more selective, sample-adaptive intervention is left to future work.
References
Nora Belrose, Zach Furman, Logan Smith, Danny Halawi, Igor Ostrovsky, et al. March 2023. Eliciting Latent Predictions from Transformers with the Tuned Lens. Computing Research Repository, arXiv Preprint, arXiv:2303.08112.
Dorottya Demszky, Dana Movshovitz-Attias, Jeongwoo Ko, Alan Cowen, Gaurav Nemade, et al. July 2020. GoEmotions: A Dataset of Fine-grained Emotions. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4040–4054, Online.
Paul Ekman. 1992. An Argument for Basic Emotions. Cognition & Emotion, 6(3–4):169–200.
Gino Franco Fazzi, Julie Skoven Hinge, Stefan Heinrich, and Paolo Burelli. April 2025. Don't Get Too Excited —Eliciting Emotions in LLMs. In Proceedings of the Extended Abstracts of the CHI Conference on Human Factors in Computing Systems, pages 200:1–200:9, Yokohama, Kanagawa, Japan.
Asbjørn Følstad, Effie L.-C. Law, and Nena van As. November 2024. Conversational Breakdown in a Customer Service Chatbot: Impact of Task Order and Criticality on User Trust and Emotion. ACM Transactions on Computer-Human Interaction, 31(5):1–52.
Yumeng Fu, Junjie Wu, Zhongjie Wang, Meishan Zhang, Lili Shan, et al. January 2025. LaERC-S: Improving LLM-based Emotion Recognition in Conversation with Speaker Characteristics. In Proceedings of the 31st International Conference on Computational Linguistics, pages 6748–6761, Abu Dhabi, UAE.
Gemma Team. March 2025. Gemma 3 Technical Report. Computing Research Repository, arXiv Preprint, arXiv:2503.19786.
Nicholas Goldowsky-Dill, Chris MacLeod, Lucas Sato, and Aryaman Arora. April 2023. Localizing Model Behavior with Path Patching. Computing Research Repository, arXiv Preprint, arXiv:2304.05969.
Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, et al. July 2024. The Llama 3 Herd of Models. Computing Research Repository, arXiv Preprint, arXiv:2407.21783.
Yuanyuan He, Yongsen Pan, Wei Li, Jiali You, Jiawen Deng, et al. November 2025. ECC: An Emotion-cause Conversation Dataset for Empathy Response. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 6000–6017, Suzhou, Jiangsu, China.
Goro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, and Kentaro Inui. November 2020. Attention is Not Only a Weight: Analyzing Transformers with Vector Norms. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, pages 7057–7075, Online.
Shanglin Lei, Guanting Dong, Xiaoping Wang, Keheng Wang, Runqi Qiao, et al. September 2023. InstructERC: Reforming Emotion Recognition in Conversation with Multi-task Retrieval-augmented Large Language Models. Computing Research Repository, arXiv Preprint, arXiv:2309.11911.
Kenneth Li, Oam Patel, Fernanda Viégas, Hanspeter Pfister, and Martin Wattenberg. 2023. Inference-time Intervention: Eliciting Truthful Answers from a Language Model. Advances in Neural Information Processing Systems, 36:41451–41530.
Xinran Li, Yu Liu, Jiaqi Qiao, and Xiujuan Xu. March 2026. Do LLMs Feel? Teaching Emotion Recognition with Prompts, Retrieval, and Curriculum Learning. In Proceedings of the 40th AAAI Conference on Artificial Intelligence, pages 31778–31786, Singapore.
Yanran Li, Hui Su, Xiaoyu Shen, Wenjie Li, Ziqiang Cao, and Shuzi Niu. November 2017. DailyDialog: A Manually Labelled Multi-turn Dialogue Dataset. Proceedings of the 8th International Joint Conference
on Natural Language Processing (Volume 1: Long Papers), pages 986–995, Taipei, Taiwan.
Paul Michel, Omer Levy, and Graham Neubig. 2019. Are Sixteen Heads Really Better than One? Advances in Neural Information Processing Systems, 32:14014–14024.
Mistral AI. 2025. Mistral-small-3.2-24b-instruct-2506. https://huggingface.co/mistralai/Mistral-Small-3.2-24B-Instruct-2506. Hugging Face model card, accessed 2026-09-19.
Saif M. Mohammad and Peter D. Turney. 2013. Crowdsourcing a Word–Emotion Association Lexicon. Computational Intelligence, 29(3):436–465.
Catherine Olsson, Nelson Elhage, Neel Nanda, Nicholas Joseph, Nova DasSarma, et al. 2022. In-context Learning and Induction Heads. Computing Research Repository, arXiv Preprint, arXiv:2209.11895.
Nina Rimsky, Nick Gabrieli, Julian Schulz, Meg Tong, Evan Hubinger, et al. August 2024. Steering Llama 2 via Contrastive Activation Addition. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15504–15522, Bangkok, Thailand.
Ala N. Tak, Amin Banayeeanzade, Anahita Bolourani, Mina Kian, Robin Jia, et al. July 2025. Mechanistic Interpretability of Emotion Inference in Large Language Models. Findings of the Association for Computational Linguistics: ACL 2025, pages 13090–13120, Vienna, Austria.
Curt Tigges, Oskar J. Hollinsworth, Atticus Geiger, and Neel Nanda. November 2024. Language Models Linearly Represent Sentiment. In Proceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP, pages 58–87, Miami, FL, USA.
Curt Tigges, Oskar John Hollinsworth, Atticus Geiger, and Neel Nanda. October 2023. Linear Representations of Sentiment in Large Language Models. Computing Research Repository, arXiv Preprint, arXiv:2310.15154.
Alexander Matt Turner, Lisa Thiergart, Gavin Leech, David Udell, Juan J. Vazquez, Ulisse Mini, and Monte MacDiarmid. August 2024. Steering Language Models with Activation Engineering. Computing Research Repository, arXiv Preprint, arXiv:2308.10248,.
Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. July 2019. Analyzing Multi-Head Self-attention: Specialized Heads do the Heavy Lifting, the Rest can be Pruned. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5797–5808, Florence, Tuscany, Italy.
Chenxi Wang, Yixuan Zhang, Ruiji Yu, Yufei Zheng, Lang Gao, et al. October 2025. Do LLMs "Feel"? Emotion Circuits Discovery and Control. Computing Research Repository, arXiv Preprint, arXiv:2510.11328.
Kevin Ro Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris, and Jacob Steinhardt. 2023. Interpretability in the Wild: A Circuit for Indirect Object Identification in GPT-2 Small. In Proceedings of the 11th International Conference on Learning Representations, 21 pages.
Jieying Xue, Minh-Phuong Nguyen, Blake Matheny, and Le-Minh Nguyen. 2024. BiosERC: Integrating Biography Speakers Supported by LLMs for ERC Tasks. In Proceedings of the 33rd International Conference on Artificial Neural Networks, Part V, pages 277–292, Lugano, Switzerland.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, et al. May 2025. Qwen3 Technical Report. Computing Research Repository, arXiv Preprint, arXiv:2505.09388.
Zhongzhi Yu, Zheng Wang, Yonggan Fu, Huihong Shi, Khalid Shaikh, et al. 2024. Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibration. In Proceedings of the 41st International Conference on Machine Learning, pages 57659–57677, Vienna, Austria.
Qingru Zhang, Chandan Singh, Liyuan Liu, Xiaodong Liu, Bin Yu, et al. 2024a. Tell Your Model Where to Attend: Post-hoc Attention Steering for LLMs. In Proceedings of the 12th International Conference on Learning Representations, 20 pages.
Qingru Zhang, Xiaodong Yu, Chandan Singh, Xiaodong Liu, Liyuan Liu, et al. 2024b. Model Tells Itself Where to Attend: Faithfulness Meets Automatic Attention Steering. Computing Research Repository, arXiv Preprint, arXiv:2409.10790.
Andy Zou, Long Phan, Sarah Chen, James Campbell, Phillip Guo, et al. October 2023. Representation Engineering: A Top-down Approach to AI Transparency. Computing Research Repository, arXiv Preprint, arXiv:2310.01405.
A Pair Construction for Causal Patching
Following the minimal-pair design of Wang et al. (2023), each pair shares syntactic skeleton and token length and differs only in affective content.
Coverage. The set spans the six basic emotions of Ekman (1992): Anger, Disgust, Fear, Happiness, Sadness, and Surprise, 100 pairs each (600 total), covering both valences and arousal levels to avoid a polarity confound. Example (Anger): clean “During class, you blamed me for the result, and I feel very” (Target angry) vs. corrupted “. . . you praised me. . .” (Target happy). Within each category, pairs further vary the syntactic locus of the cue —verb, predicate-adjective, prenominal-adjective, or purpose-clause replacement— and distribute it across multiple content words, so the discovered head set is not tied to a single syntactic position.
Verification. We constructed these datasets from approximately 25 templates authored by human annotators. Each template contains several replaceable slots, including names, times, locations, objects, and an emotion-bearing word or phrase. The emotion-bearing slots are shown in bold in the full template list. Example templates include:
• “[time PP], [Name] [verb-past] me in front of [audience NP], which makes me feel”
• “I received a [adj] [noun] from [person NP], and I feel”
• “The [adj] [noun] appeared [time/place PP], which makes me feel”
• “The results of my [noun] came back [adj] [time PP], and I feel”
• “[Name] stayed up all night to [VP], and I feel”
Mistral-Small-3.2-24B-Instruct-2506 (Mistral AI, 2025), which is distinct from all downstream models evaluated in this work, instantiated these templates with concrete names, times, locations, objects, and emotion-bearing expressions.
Generalization beyond localization categories. Only 4 of 10 labels in the ECC benchmark and 6 of 27 labels in the GoEmotions benchmark overlap with the pair-set categories. The rest are unseen during localization. Strong performance on these unseen labels as shown in §4.5, indicates that the head set generalizes beyond the specific cues used to identify it.
B Implementation Details for Refinement and Intervention
Table 8 summarizes the complete set of hyperparameters used by the proposed SIAB, listing the role, value, and how each is set. The per-model final head set H and the calibrated intervention strength are reported in Table 9.
Table 8: Hyperparameter inventory. The first six are fixed per model across all (dataset, shot) configurations, while the last one is recalibrated as noted.
| Hyperparameter | Role | Value | How set |
|---|---|---|---|
| Direct-effect threshold | 0.05 | (Wang et al., 2023) | |
| Attention-vs.-value weight in | 0.5 | Equal-weighting | |
| K | Heads in | 4, 10, 20 | saturation, Fig. 3 |
| Boost-applied query positions | 4 | ECC dev | |
| r | Top fraction of attended content tokens | 0.3 | A priori |
| Pre-softmax bias magnitude | Tab 9 | Per model | |
| (k,t) | GoEmotions multi-label top-k + threshold | Tab 10 | Per (model, shot), baseline only |
Table 9: Final head set per model, with intervention strength . Both and are fixed per model and reused across the two datasets. All indices are 0-based. HuggingFace identifiers: google/gemma-3-4b-it, Qwen/Qwen3-4B-Instruct-2507, meta-llama/Llama-3.1-8B-Instruct.
| Model | Selected (layer, head) indices |
|---|---|
| Gemma3(K=4, β=6) | (24,4), (17,2), (22,6), (17,0) |
| Qwen3(K=10, β=9) | (22,5), (18,30), (23,10), (20,9), (29,3), (26,27), (29,0), (7,3), (25,9), (24,15) |
| LLaMA3(K=20, β=10) | (18,0), (16,10), (19,9), (16,26), (21,26), (6,20), (22,1), (13,10), (15,26), (21,24), (15,14), (19,11), (14,24), (15,20), (20,9), (13,12), (17,28), (24,21), (28,25), (17,20) |
Non-content token filter and heads detail. A token is excluded from , averaging and from the intervention pool if it falls into any of (i) punctuation, (ii) English personal pronouns, (iii) interrogatives (what, who, when, where, why, how, which), (iv) prepositions, or (v) model-specific special tokens (BOS / EOS and chat-template markers). Negation and intensifiers (not, very, no, ...) are retained as content tokens.
C Hyperparameters and Calibration
This section describes how the calibration sets are constructed and how each hyperparameter is tuned or frozen. The multi-label decoding parameters used for each (model, shot) configuration for the GoEmotions benchmark are listed in Table 10.
Calibration sets. For the ECC benchmark, 200 dialogues sampled from the official dev split form the calibration set, while the evaluation uses the full ECC test split. For the GoEmotions benchmark, 200 dev samples form the calibration set, while the evaluation uses the full GoEmotions test split, excluding Neutral-only samples. The per-model is calibrated once on the ECC dev set and reused unchanged on GoEmotions. No hyperparameter is tuned on test data.
Table 10: Multi-label decoding parameters per (model, shot) pair for the GoEmotions benchmark: Temperature, inclusion threshold. Tuned on GoEmotions dev under baseline and frozen for +SIAB, so reported reflects intervention effect, not recalibration.
| Shots | Qwen3 | LLaMA3 | Gemma3 |
|---|---|---|---|
| 0 | (5, 0.10) | (3, 0.10) | (6, 0.05) |
| 5 | (3, 0.20) | (3, 0.10) | (7, 0.05) |
| 10 | (2, 0.20) | (3, 0.10) | (10, 0.05) |
| 15 | (7, 0.08) | (3, 0.10) | (3, 0.03) |
| 27 | (3, 0.15) | (2, 0.15) | (7, 0.05) |
Hyperparameter inventory. The structural hyperparameters ( , , K, and r) are calibrated once on the ECC dev set and frozen across all (model, dataset, shot) configurations. The bias magnitude is likewise calibrated once per model on the ECC dev set and held fixed across both datasets. tokens around the answer position, r=0.3 of content-word tokens, K=4, 10, 20 for the Gemma3, Qwen3, and LLaMA3 models, respectively, set at each model's saturation point on the ECC dev sweep (Figure 3), , 9, 10 for Gemma3, Qwen3, and LLaMA3, respectively. The GoEmotions multi-label decoding uses a Top-T cap and inclusion threshold t, tuned on the GoEmotions dev set under the baseline and frozen for +SIAB, per-(model, shot) values are shown in Table 10.
D Results on Neutral-only GoEmotions Samples
We exclude samples labeled solely as Neutral, since they lack explicit emotion cues. Multi-label samples retain their non-Neutral labels. On

Figure 4: Per-head attention on an ECC (He et al., 2025) example rescued by the proposed SIAB (GT happy, ZS → proud X, ZS+SIAB → happy ✓). Each row: Attention from the final-4 query band on a single head, globally normalized, cell value = attention ×100, restricted to the head's top-30% content tokens (the boost set ). Bold red tokens are NRC EmoLex (Mohammad and Turney, 2013) emotion words. Top: Four Gemma3 (Gemma Team, 2025) selected heads (L24H4, L17H2, L22H6, L17H0). Bottom: Depth-stratified random non-selected heads (L25H1, L20H0, L15H4, L5H3).
the excluded Neutral-only subset (1,606 test samples), the proposed SIAB improved Neutral recall by +1.08 to +1.93 percentage points across the three models (Gemma3: 9.10 → 10.54, Qwen3: 10.05 → 11.13, and LLaMA3: 8.93 → 10.86), indicating that content-token amplification does not inflate emotion predictions on neutral inputs.
E Qualitative Attention Visualization
Figure 4 visualizes per-head attention on an ECC benchmark example, contrasting the four selected heads (Top) from the Gemma3 model with four depth-stratified random non-selected heads (Bottom).
F Prompt
Zero-shot. Inputs of the ECC benchmark are rendered as a multi-turn chat (user / assistant alternation along dialogue turns, assistant role assigned to the target speaker) via tokenizer.apply_chat_template. A final user message asks for the emotion of the last utterance with the 10-class label list. The inputs of the GoEmotions benchmark use a single user message containing the sentence and the 27-class label list. System message is the default “You are a helpful assistant” for both. The ECC final-turn instruction is:
What emotion is expressed in the last utterance?
Answer with one word: happy, excited, sad, proud, frustrated, angry, relaxed, afraid, confident, or guilty.
Few-shot. Demonstrations follow an utterance / cues / reasoning / emotion chain-of-thought format, with one demonstration per emotion class (10 for ECC and 27 for GoEmotions). Demonstrations are prepended to the ZS prompt and held fixed across methods within each (dataset, shot) setting. One ECC demonstration is shown below as a template:
Utterance: "I can't believe I finally got the promotion after all these years!"
Cues: "can't believe", "finally", "got the promotion"
-> excitement from achieving a long-awaited goal
Emotion: excited
G Bootstrap
We use paired bootstrap resampling to quantify uncertainty arising from the finite evaluation sets. For each contrast, we draw samples with replacement from the corresponding test set and recompute each metric for both methods using identical resampled example indices. Model outputs, decoding settings, and hyperparameters remain fixed across replicates. For the GoEmotions benchmark, the temperature T and threshold t are
Table 11: Pointwise paired-bootstrap 95% percentile Confidence Intervals (CI) on the GoEmotions (Demszky et al., 2020) benchmark (, values are ). The proposed SIAB comparisons are prompt-matched, whereas PASTA-family rows are compared with Zero-Shot (ZS).
(a) Gemma3 (Gemma Team, 2025)
| Comparison | Top-1[95% CI] | F1[95% CI] |
|---|---|---|
| ZS ZS+SIAB | +3.78[+2.93, +4.73]+3.23 | +3.28[+2.16, +4.42]+2.10 |
| Mid Mid+SIAB | [+2.31, +4.18]+3.95 | [+0.94, +3.19]+2.77 |
| High High+SIAB | [+3.03, +4.89]-1.48 | [+1.65, +3.86]-0.31 |
| PASTA-ECC vs. ZS | [-2.53, -0.53]+0.00 | [-1.30, +0.79]+4.64 |
| PASTA-GoE vs. ZS | [-0.93, +1.11]+0.28 | [+3.46, +5.67]+2.02 |
| PASTA- vs. ZS | [-0.72, +1.35]+3.64 | [+0.96, +3.22]+6.58 |
| PASTA+SIAB vs. ZS | [+2.70, +4.77] | [+5.57, +7.76] |
(b) Qwen3 (Yang et al., 2025)
| Comparison | Top-1[95% CI] | F1[95% CI] |
|---|---|---|
| ZS ZS+SIAB | +1.37[+0.48, +2.27]+2.31 | +2.26[+1.10, +3.63]+2.75 |
| Mid Mid+SIAB | [+1.48, +3.26]+1.01 | [+1.41, +4.06]+2.24 |
| High High+SIAB | [+0.12, +1.88]+0.34 | [+0.93, +3.67]-0.31 |
| PASTA-ECC vs. ZS | [-0.61, +1.32]-0.77 | [-1.59, +0.96]+0.12 |
| PASTA-GoE vs. ZS | [-1.57, +0.18]-0.14 | [-1.33, +1.61]+0.48 |
| PASTA- vs. ZS | [-0.97, +0.76]+1.67 | [-0.90, +1.86]+2.46 |
| PASTA+SIAB vs. ZS | [+0.82, +2.69] | [+1.01, +3.75] |
(c) LLaMA3 (Grattafiori et al., 2024)
| Comparison | Top-1[95% CI] | F1[95% CI] |
|---|---|---|
| ZS ZS+SIAB | +4.78[+3.67, +5.83]+2.16 | +3.25[+2.15, +4.31]+0.65 |
| Mid Mid+SIAB | [+1.07, +3.23]+3.32 | [+0.03, +1.29]+0.98 |
| High High+SIAB | [+2.20, +4.37]-6.93 | [+0.06, +1.87]-7.19 |
| PASTA-ECC vs. ZS | [-8.13, -5.80]-1.73 | [-8.31, -6.08]+1.75 |
| PASTA-GoE vs. ZS | [-2.77, -0.70]-0.06 | [+0.75, +2.83]+0.47 |
| PASTA- vs. ZS | [-1.09, +1.14]+4.49 | [-0.41, +1.44]+5.78 |
| PASTA+SIAB vs. ZS | [+3.45, +5.60] | [+4.67, +6.88] |
tuned on the development set under the corresponding baseline and then frozen for its +SIAB counterpart. We report the 2.5th and 97.5th percentiles of each paired-difference distribution as a point-wise 95% confidence interval. SIAB comparisons are prompt-matched, whereas the PASTA-family variants are compared with ZS.
Table 11 reports the GoEmotions results, and Table 12 reports the ECC results. Across the two tables, all 18 prompt-matched the proposed SIAB settings yielded positive differences on both reported metrics. Equivalently, all 36 metric-level
Table 12: Pointwise paired-bootstrap 95% percentile Confidence Intervals (CI) on the ECC (He et al., 2025) benchmark (, values are ). The proposed SIAB comparisons are prompt-matched, whereas PASTA-family rows are compared with Zero-Shot (ZS).
(a) Gemma3 (Gemma Team, 2025)
| Comparison | Top-1[95% CI] | F1[95% CI] |
|---|---|---|
| ZS ZS+SIAB | +9.32[+7.84,+10.61]+3.42 | +7.67[+6.33, +8.98]+4.64 |
| Mid Mid+SIAB | [+2.01, +4.79]+3.03 | [+3.27, +5.91]+4.25 |
| High High+SIAB | [+1.71, +4.48]+9.14 | [+2.83, +5.54]+8.11 |
| PASTA-ECC vs. ZS | [+7.80,+10.60]+1.82 | [+6.82, +9.37]+0.73 |
| PASTA-GoE vs. ZS | [+0.32, +3.14]+8.83 | [-0.73, +2.29]+7.76 |
| PASTA- vs. ZS | [+7.43,+10.23]+13.84 | [+6.37, +9.21]+12.51 |
| PASTA+SIAB vs. ZS | [+12.18,+15.31] | [+11.23,+13.84] |
(b) Qwen3 (Yang et al., 2025)
| Comparison | Top-1[95% CI] | F1[95% CI] |
|---|---|---|
| ZS ZS+SIAB | +3.30[+2.10, +4.46]+2.08 | +2.79[+1.66, +3.90]+1.89 |
| Mid Mid+SIAB | [+0.94, +3.20]+1.65 | [+0.78, +2.98]+1.21 |
| High High+SIAB | [+0.54, +2.82]+6.92 | [+0.07, +2.34]+4.60 |
| PASTA-ECC vs. ZS | [+5.72, +8.25]+0.09 | [+3.46, +5.76]-0.11 |
| PASTA-GoE vs. ZS | [-1.00, +1.21]+4.92 | [-1.25, +0.99]+3.86 |
| PASTA- vs. ZS | [+3.74, +6.14]+10.03 | [+2.62, +4.97]+7.84 |
| PASTA+SIAB vs. ZS | [+8.78,+11.25] | [+6.75, +9.09] |
(c) LLaMA3 (Grattafiori et al., 2024)
| Comparison | Top-1[95% CI] | F1[95% CI] |
|---|---|---|
| ZS ZS+SIAB | +2.53[+1.52, +3.66]+1.97 | +2.95[+1.94, +3.91]+1.66 |
| Mid Mid+SIAB | [+0.90, +3.08]+1.25 | [+0.63, +2.71]+1.32 |
| High High+SIAB | [+0.19, +2.32]+6.01 | [+0.33, +2.28]+3.07 |
| PASTA-ECC vs. ZS | [+4.99, +7.22]+2.82 | [+2.11, +4.14]+1.46 |
| PASTA-GoE vs. ZS | [+1.78, +3.99]+4.01 | [+0.32, +2.45]+0.54 |
| PASTA- vs. ZS | [+2.96, +5.03]+6.21 | [-0.52, +1.64]+3.27 |
| PASTA+SIAB vs. ZS | [+5.18, +7.40] | [+2.17, +4.24] |
confidence intervals excluded zero. All 12 metric-level PASTA+SIAB-versus-ZS intervals were also strictly positive. The smallest positive lower bounds occurred under few-shot prompting, including the LLaMA3 model's Mid / High on GoEmotions macro-F1 and the Qwen3 model's High on ECC macro-F1, but remained above zero. In contrast, several stand-alone PASTA intervals included zero, indicating less consistent gains. The largest degradations occurred when ECC-profiled PASTA heads were transferred to GoEmotions, particularly for the LLaMA3 model, although LLaMA3's in-domain PASTA-GoE configuration also decreased the Top-1 accuracy. Overall, the paired-bootstrap results supported the consistency of SIAB across models, datasets, prompting regimes, and evaluation metrics.