Manuscript Offprint

arXiv:2609.01081

StateSwap: Probing Support-Elimination Hidden States in Multiple-Choice Questions

Chao Gao, Haijiang Liu, Qiyuan Li, Caicai Guo, Frank van Harmelen, Jinguang Gu

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

Abstract

Large language models often answer the same multiple-choice question inconsistently when it is posed under support-oriented and elimination-oriented framings. We investigate whether these discrepancies arise from different internal representations induced by the two framings. We introduce a dual-framing protocol with minimally varied prompts that use either support- or elimination-oriented framing while keeping the evaluation target fixed. To probe the internal computation, we append an untrained special token, [STATE], and treat its residual-stream activation as an intervention interface. Across both models, the two framings induce separable [STATE] activations concentrated in intermediate layers. Swapping these activations between paired prompts systematically changes predictions and improves cross-framing agreement, providing intervention-based evidence that the activations are behaviorally relevant. Beyond instance-level substitution, mean-difference steering directions derived from the dual-framing contrast exhibit more bounded layer-wise responses than matched contrastive activation addition directions under the evaluated protocol. Code is available at https://github.com/Cha0Ga0/SWAPSTATE

Figure

Figure 1: Overview of StateSwap. StateSwap swaps [STATE] activations between paired SUP and ELIM prompts while keeping the textual input fixed. The figure shows an idealized agreement-increasing outcome for illustration only; substitution may improve, reduce, or leave unchanged accuracy and agreement. We interpret systematic prediction changes, including but not limited to improvements, as evidence of behavioral relevance under intervention.

1 Introduction

Recent work has shown that the process-of-elimination (PoE) strategy, widely used by humans for solving multiple-choice questions (MCQs), can improve the performance of large language models (LLMs) (Ma and Du, 2023). This approach is motivated by the fact that support-oriented (SUP) prompts (“which option is correct?”) and elimination-oriented (ELIM) prompts (“which options are incorrect?”) are logically tied to the same answer key. For example, some studies first prompt the model to identify and eliminate incorrect options before deriving the final answer (Zhu et al.,

2025; Fu et al., 2025; Wang et al., 2026; Zhao and Zhang, 2025). However, empirical studies also report that elimination-style prompting can instead impair accuracy (Balepur et al., 2024). At first glance, this appears contradictory: if SUP and ELIM prompts encode the same task objective and semantic content for decision-making, they should not lead to different predictions. This motivates the following question: do the two framings induce distinguishable internal representations?

Inspired by recent mechanistic studies (Heimersheim and Nanda, 2024; Zhang et al., 2025; Lu et al., 2025), we investigate prompt framing under controlled inference settings, using deterministic decoding and paired prompt evaluation to isolate representation-level effects from decoding variability. We test whether framing-dependent behavioral differences are accompanied by distinguishable activation patterns in the model's hidden-state space. Separability identifies a representational correlate of prompt framing, and activation substitution evaluates its behavioral relevance.

Based on this perspective, we investigate how SUP and ELIM prompts shape the internal representations of the model, and whether targeted activation substitution can provide intervention-based evidence on the role of these representations. Specifically, we use a newly registered, untrained special token with no pretrained lexical semantics, [STATE], to analyze the geometry of the hidden states elicited by the two framings and assess their representational distinguishability. We then introduce activation-level interventions that replace selected internal states while keeping the textual input fixed, allowing us to examine how changes in the induced representation affect the model's output distribution over answer indices. Comparisons with dual-prompt ensemble baselines distinguish activation substitution from simple answer aggregation. Finally, we test whether the intervention remains effective when [STATE] is moved away from its canonical final position.

The main contributions of this work are three-fold:

  1. We identify distinguishable [STATE] representations induced by SUP and ELIM prompts that encode the same underlying decision problem.

  2. We show that substituting framing-sensitive [STATE] activations changes model predictions and is associated with higher accuracy and cross-framing agreement in the evaluated settings.

  3. We find that mean-difference steering directions derived from the two-framing prompt contrast exhibit lower layer-wise variability than matched contrastive activation addition directions under the evaluated protocol.

References (52)

  • Xi Chen, Aske Plaat, and Niki van Stein. 2025. How does chain of thought think? mechanistic interpretability of chain-of-thought reasoning with sparse autoencoding. arXiv preprint arXiv:2507.22928. (opens arXiv in a new tab)
  • Chatglm: A family of large language models from glm-130b to glm-4 all tools (opens arXiv in a new tab)
  • Stefan Heimersheim and Neel Nanda. 2024. How to use and interpret activation patching. arXiv preprint arXiv:2404.15255. (opens arXiv in a new tab)
  • Prefix-Tuning: Optimizing Continuous Prompts for Generation
  • Wenquan Lu, Yuechuan Yang, Kyle Lee, Yanshu Li, and Enqi Liu. 2025. Latent chain-of-thought? decoding the depth-recurrent transformer. arXiv preprint arXiv:2507.02199. (opens arXiv in a new tab)
  • Self-Consistency Improves Chain of Thought Reasoning in Language Models
  • Qwen2.5 Technical Report
  • Yifan Zhang, Wenyu Du, Dongming Jin, Jie Fu, and Zhi Jin. 2025. Finite state automata inside transformers with chain-of-thought: A mechanistic study on state tracking. arXiv preprint arXiv:2502.20129. (opens arXiv in a new tab)
  • Zhenhao Zhu, Bulou Liu, Qingyao Ai, and Yiqun Liu. 2025. Option-id based elimination for multiple choice questions. arXiv preprint arXiv:2501.15175. (opens arXiv in a new tab)
  • Representation Engineering: A Top-Down Approach to AI Transparency
  • Standard Transformer notation follows Section 3.1; arguments $(I,q)$ are omitted when they are clear from context
  • We ensure this by token-level alignment of the instruction segment
  • For a scalarization $\phi: \mathbb{R}^w \to \mathbb{R}$, define paired differences for each question $i$:
  • This threshold is not tuned for downstream performance
  • A separate set of 50 examples from the training split is used only to localize the candidate intervention window; these examples do not enter the reported test evaluation
  • It consists of 1,015 multiple-choice questions covering clinical knowledge and diagnostic reasoning
  • The selected subsets span formal logic, mathematics, law, philosophy, medicine, and social sciences
  • Right padding is applied with a maximum of 64 padding tokens
  • Inference is performed using torch_dtype=float16, with key-value caching enabled to ensure consistent decoding behavior across runs
  • Question: [QUESTION]
  • First, reason in detail, then find Correct choices
  • First, reason in detail, then find Incorrect choices
  • This protocol separates prompt-template variation from decoding randomness, since all runs use greedy decoding
  • Correct options: [
  • We parse each field into a set $S \subseteq \mathcal{O}$ by extracting all uppercase letters in $\mathcal{O}$ from the field, ignoring punctuation and separators (e.g., commas, Chinese enumeration marks)
  • For each question, correctness is determined solely based on the Correct options field in the normalized output, as described above
  • For example, if the SUP output is Correct: $[1, 0, 0, 0]$ and the ELIM output is also Correct: $[1, 0, 0, 0]$, the question is counted as overlapping; whereas if the two outputs differ (e.g., $[1, 0, 0, 0]$ vs. $[0, 1, 0, 0]$), it is not
  • To account for potential length mismatches, we apply a length-aware scaling factor:
  • BERTScore measures token-level semantic similarity using contextualized embeddings and is sensitive to both content preservation and phrasing changes
  • They are therefore intended to measure the sensitivity of the generation to perturbations applied to the [STATE] representation, rather than absolute output quality
  • Importantly, higher scores do not necessarily indicate better performance: values close to 1 suggest that the perturbation has little effect on the output, whereas lower scores indicate that modifying the internal state leads to substantial changes in the generated content
  • We define the eliminated-incorrect
  • We report the proportions of right- and left-shifted instances under each framing and their macro-average across SUP and ELIM. A higher right-shift frequency indicates stronger incorrect-option elimination
  • We use a linear vote of the form $vote = SUP + \alpha \cdot ELIM$ and search over $\alpha$ for 30 trials, reporting the best achievable accuracy for each ensemble
  • ><tr><td>Method</td><td>Qwen-2.5-7B Acc.</td><td>GLM-4-9B Acc.</td></tr><tr><td colspan=
  • Compared with the Base setting, the Sub variant achieves consistent or improved performance across most MMLU categories
  • We pair $y_i$ with a deterministic incorrect letter $\widetilde{y}_i$, chosen as the first letter in $\{A, B, C, D\}$ that differs from $y_i$
  • >Qwen-2.5-7B</td><td>MMLU</td><td>7.25%</td><td>> 7.17%</td></tr><tr><td>MedQA</td><td>11.31%</td><td>> 9.29%</td></tr><tr><td rowspan=
  • We evaluate all 1,015 MedQA-CH test questions with Qwen-2.5-7B and GLM-4-9B
  • The respective dual-framing and CAA means are 59.03 vs. 37.16, 69.67 vs. 48.85, and 68.15 vs. 60.35 for GLM. They are 71.21 vs. 52.26, 81.61 vs. 75.97, and 74.77 vs. 62.90 for Qwen
  • At each layer, PCA is applied independently to pooled representations from both framings, and the first three principal components are visualized
  • mean cosine distance is similar for 11–20 and 13–15 (both ≈ 0.108), but 11–20 achieves the smallest cosine dispersion and lightest cosine tails (IQR=0.066, p90=0.257), while maintaining substantial KL shifts (mean=1.487) and a lighter KL tail compared to 3–5/25–28 (p90 6.253 vs. 6.832)
  • it avoids large and heavy-tailed geometric perturbations (cosine) while still inducing meaningful distributional changes (KL) without the heaviest tails observed at the layer-range extremes
  • For each model, we use the same paired Sup/Elim construction, compute Cohen’s $d$ over residual-stream features at the [STATE] position, and apply the same sliding-window procedure over feature dimensions
  • layers 11–20 for Qwen-2.5-7B and layers 21–40 for GLM-4-9B
  • For each model, the heatmaps report label-free Cohen's d and the corresponding label-informed variant
  • We generate 500 bootstrap resamples and recompute the layer-wise separability profile for each resample
  • The bootstrap results show that localization to this region is consistent across resamples, although the exact layer rankings differ between the two diagnostics
  • >Label-free separability</td><td colspan=
  • Substitution content and the layer window are held fixed in the interface comparison
  • For all three configurations, we apply the same framing-conditioned substitution over the same layer window $W$
  • For each condition, we compute length-aware cosine similarity (LAC) and BERTScore-F1 between the baseline output and the output under intervention, and report the median, interquartile range (IQR), and upper quantiles (P90/P95)