betaFeedback

WorksComputer Science

Eliciting sandbagged LLM capability via structural interventions on attention-head functional networks

Abstract

Reliably evaluating the capabilities of advanced AI systems is critical for safe development and deployment, yet such evaluations may be undermined by sandbagging, a situation in which a model strategically suppresses capabilities it possesses. Existing work has developed controlled sandbagging settings and methods for detecting or eliciting hidden capabilities, but comparatively little is known about how a model's internal neural computation changes when its capabilities are suppressed. In this work, we study sandbagging through the lens of internal functional organization. Inspired by network neuroscience, we construct functional graphs from attention-head activations and compare their organization under honest and sandbagging conditions while holding the model architecture and weights fixed. Surprisingly, across model architectures and community detection methods, we find a consistent structural signature in which sandbagging is associated with reduced functional connectivity within detected communities. We further demonstrate that this reorganization can guide capability elicitation. Ablating attention heads that exhibit the largest connectivity changes substantially recovers suppressed performance while largely preserving performance under honest behavior. Moreover, incorporating these structural signals further improves existing inference-level and weight-level elicitation methods. Together, our results show that sandbagging is accompanied by systematic reorganization of internal computation and demonstrate that functional network structure can provide both a mechanistic lens for understanding capability suppression and a practical signal for recovering hidden capabilities.

Introduction

As AI systems become increasingly capable, reliably assessing what they can actually do is very crucial for safe development and deployment. A growing challenge is sandbagging, defined as strategic underperformance during evaluation ((van der Weij et al., 2025)). A sandbagging model possesses a capability but deliberately exhibits lower performance under evaluation, causing measured capability to underestimate what the model can achieve in other contexts. Sandbagging is therefore distinct from ordinary failure or safety-motivated refusal: its defining feature is strategic, context-dependent capability suppression.

Sandbagging can arise from two broad sources ((van der Weij et al., 2025)). In developer-induced sandbagging, capability suppression is deliberately introduced to create controlled settings in which hidden capabilities can be studied. For example, models can be instructed to underperform or trained to reveal a capability only when a particular password is provided ((van der Weij et al., 2025; Greenblatt et al., 2024b)). In model-initiated sandbagging, strategic underperformance instead emerges from the model’s learned objectives or behavior. Recent work has shown that models can adapt their behavior strategically under anticipated training ((Greenblatt et al., 2024a)) and, in controlled settings, deliberately underperform without being explicitly instructed to sandbag (Meinke et al., 2024). These findings raise concerns that capability evaluations may fail to reveal a model’s true competence.

Prior work has therefore focused on two complementary goals: constructing controlled forms of sandbagging for study and detecting or overcoming capability suppression once it occurs. Detection methods include behavioral audits and activation-based probes [8] (Taylor et al. 2025), while elicitation methods attempt to recover hidden capabilities through inference-time or weight-level interventions (Greenblatt et al., 2024b; Hofstätter et al., 2025; Tice et al., 2025). These approaches provide important tools for studying and mitigating sandbagging. However, they leave a more fundamental question comparatively underexplored: what changes inside a model when an available capability becomes strategically suppressed? Existing white-box approaches often use internal representations as diagnostic signals but provide limited insight into how interactions among model components reorganize during sandbagging.

In this work, we study sandbagging through the lens of internal functional organization. Motivated by network neuroscience, we construct functional graphs from attention-head activations and compare honest and sandbagging conditions while keeping the model architecture and weights fixed. We observe a consistent pattern of functional reorganization across different model architectures: sandbagging is associated with reduced connectivity within detected communities. We then study how this structural signature can guide development of targeted interventions for recovering suppressed capabilities. We find that ablating attention heads that exhibit the largest connectivity changes increases capability elicitation while leaving performance under the honest condition nearly intact. Finally, we show that these structural insights can further improve existing inference-level and weight-level elicitation methods. Our results suggest that sandbagging is accompanied by systematic changes in the organization of internal computation and that these changes provide actionable signals for understanding and recovering suppressed capabilities.

This work makes the following main contributions:

  • Functional network analysis of sandbagging. We introduce functional networks constructed from attention-head activations as a novel lens for studying sandbagging. Across different model architectures and community detection methods, we observe consistent structural differences between honest and sandbagging conditions, indicating that sandbagging is accompanied by a reproducible shift in head-level functional organization. This method provides a unique and novel approach to quantitatively measure complex internal interactions.

  • Interventions to improve capability elicitation. We identify heads through large changes in network connectivity and show that ablating them recovers suppressed capabilities more effectively while largely preserving honest accuracy. We apply these findings to develop effective and efficient interventions that improve capability elicitation at both the inference and weight levels.

Preliminaries

In this section, we will introduce the main graph notation and key metrics used throughout the paper.

Notation

We consider two conditions, honest and sandbagging, indexed by C∈{H,S}C \in\{\mathrm{H}, \mathrm{S}\}. We write GC=(V,EC)G^{C} = (V, E^{C}) for an undirected graph under condition CC. The two graphs share the node set V={1,…,M}V = \{1, \ldots, M\}, while their edge sets may differ. We denote the set of unordered node pairs by P={(i,j)∣1≤i<j≤M}\mathcal{P} = \{(i,j) \mid1 \le i < j \le M\}, with EC⊆PE^{C} \subseteq\mathcal{P}. Superscripts indicate condition-dependent quantities. The degree of node ii is denoted by deg⁡GC(i)\deg_{G^{C}}(i). A community partition assigns each node a label cic_i, and C(i)={j∈V∣cj=ci}C(i) = \{j \in V \mid c_j = c_i\} denotes the nodes sharing its label.

Functional Network of Attention Heads

Our goal is to characterize how attention heads interact under honest and sandbagging conditions. This is motivated by similar work at the intersection of network control theory and neuroscience, in which connectivity within human brains was found to shift between truthful and deceptive conditions [5] (Saryazdi et al. 2026; Jiang et al. 2015). In these studies, brain regions are treated as nodes of a graph, and activity correlations between different regions are treated as edges. We apply this perspective to LLMs, treating attention heads as nodes and the statistical dependence between their activations as edges. We then compare the graphs between the two settings to determine whether or not there are meaningful changes. We hypothesize that sandbagging induces stable changes in how attention heads in an LLM are organized.

Network Construction

Consider a transformer-based language model with LL layers and HH attention heads per layer, giving M=LHM = LH heads in total. Each head forms a node in the graph. We index heads by i∈{1,…,M}i \in\{1, \ldots, M\} and write dd for the dimension of a head’s output. For each condition C∈{H,S}C \in\{H, S\}, we evaluate the same nn questions and record each head’s output immediately before the attention output projection WOW_O at the final prompt token preceding the answer. Collecting these outputs gives an activation matrix XiC∈Rn×dX_i^C \in\mathbb{R}^{n \times d} for each head, with one row per question. The model’s architecture and weights remain fixed across the two conditions.

To define an edge weight, we measure how strongly two heads’ activations vary together across questions. Because each activation is a vector, we use the multivariate comparison provided by SVCCA Appendix § 8.§ 1. We center each feature of XiCX_i^C across questions and retain its leading KK singular directions. Applying canonical correlation analysis to the reduced activations of heads ii and jj gives canonical correlations ρij,1C,…,ρij,KC\rho_{ij,1}^C, \ldots, \rho_{ij,K}^C. These quantify shared linear variation without requiring individual activation coordinates to correspond between the two heads.

We aggregate the canonical correlations into a single edge weight using the Gaussian mutual-information expression,

SijC=−12∑r=1Klog⁡(1−(ρij,rC)2).(1)S_{ij}^C = -\frac{1}{2}\sum_{r=1}^{K}\log\left(1-\left(\rho_{ij,r}^C\right)^2\right). \tag*{(1)}

This aggregation combines information across retained canonical directions while emphasizing stronger correlations. Under a joint Gaussian assumption, Equation (1) provides a plug-in estimate of mutual information; otherwise, SijCS_{ij}^C can be interpreted more generally as a covariance-based dependence measure. Robustness to alternative functional similarity measures is evaluated in Appendix § 8.§ 2.

Thresholding the Network

The pairwise similarity scores obtained from our SVCCA-based formulation in Equation (1) form a symmetric similarity matrix for each of the honest and sandbagging conditions, C∈{H,S}C \in\{H, S\}. However, these matrices also contain weak connections that may reflect noise and obscure the structure of stronger connections [2] (Rubinov & Sporns 2010). Therefore, we threshold these matrices to analyse well the organization of the strongest dependencies between attention heads. This enables us to study stronger connections while limiting the influence of numerous weak connections on the resulting network structure.

Most prior functional brain-network studies use densities within 0.15–0.35. We use 0.25, the midpoint of this range, as the default density throughout our experiments. Specifically, we construct GC=(V,EC)G^C = (V, E^C) by retaining the top 25% of unordered head pairs in P\mathcal{P} according to SijCS_{ij}^C and treating the resulting edges as unweighted. The honest and sandbagging graphs therefore have identical node sets and edge counts, allowing us to compare how connectivity is distributed across heads while holding the overall graph density fixed. We examine the sensitivity of our head-score rankings to this threshold across different model architectures in Appendix § 10. Across densities from 0.15 to 0.35, head-score rankings remain strongly correlated with those obtained at 0.25 across the tested models. This supports the robustness of our method to the choice of threshold within this range.

Community Structure

Using thresholded functional graphs defined in previous section, we study whether sandbagging changes connectivity within groups of attention heads. There are several motivating reasons to analyze attention-head networks at the level of communities. First, prior work shows that computation in transformers is often carried out by groups of heads acting together rather than by individual heads (Olsson et al., 2022; Wang et al., 2023). In addition, a single head may be too small a unit to reveal how the graph is organized, while a single statistic over the entire graph cannot show where organizational changes happen. We therefore focus on understanding sandbagging functional graphs through the lens of community reorganization.

Specifically, given the functional graph GC=(V,EC)G^{C} = (V, E^{C}), we partition it into communities (i.e., groups of attention heads that are more densely connected to each other than to the rest of the network). This helps us study whether heads that work together under the honest condition continue to interact strongly under the sandbagging condition. We measure this by how strongly each head connects to its own community. Let

k~iC=1M−1∑j≠i1[(i,j)∈EC]1[ci=cj],(2)\widetilde{k}_{i}^{C} = \frac{1}{M - 1} \sum_{j \ne i} \mathbf{1}[(i,j) \in E^{C}] \mathbf{1}[c_i = c_j], \tag*{(2)}

where M−1M - 1 is the maximum possible degree of a head. Thus, k~iC\widetilde{k}_{i}^{C} is the proportion of all possible head-to-head connections that link head ii to members of its community.

However, detecting communities directly from thresholded graphs has a well-known limitation. Global thresholding of edges can leave some heads isolated and make it difficult to infer their community membership (von Luxburg, 2007). For instance, when thresholding our graphs to a density of 0.25, we find that 9.4%, 3.1%, 2.8%, and 9.2% of heads have no retained edges in the honest graphs constructed for Mistral-24B, Qwen3-32B, Llama-3.3-70B, and GPT-OSS-20B, respectively. Running a community detection algorithm such as Louvain on these graphs leaves isolated heads in separate single-node communities, each with a within-community edge count of zero by construction. This is uninformative for our goal because these communities contain no other heads with which to assess changes in connectivity between the honest and sandbagging conditions.

To overcome this limitation, we use a separate graph for community detection derived from the unthresholded similarities. Specifically, we use the honest-condition similarity matrix, which captures pairwise similarities between head activations defined in § 3.1, to construct a symmetric kk-nearest-neighbor graph, as recommended by von Luxburg (2007). Two heads are connected if either ranks the other among its kk most similar heads, ensuring that every head has at least one neighbor from which to infer community membership. We detect communities once on this honest-condition kNN graph and hold their assignments fixed across conditions, so each head is evaluated against the same reference group under honest and sandbagging behavior. The role of this kNN graph is to supply only community labels. All connectivity measurements and head-selection scores are computed on the original 25%-density graphs. We analyze sensitivity to the kNN neighborhood size in Appendix § 11. We find that, across graphs constructed from different model architectures, head-score rankings remain strongly correlated with those obtained using the default neighborhood size, supporting robustness to the choice of kk.

Key Findings

We study whether sandbagging changes how attention heads are functionally organized. Using a held-out set of n=400n = 400 MMLU questions (Hendrycks et al., 2020), we construct one graph per condition. We closely follow the sandbagging protocol and prompts introduced in Hofstätter et al. (2025). The model is instructed to answer correctly in the honest condition and incentivized to give incorrect answers in the sandbagging condition. For each condition C∈{H,S}C \in\{\mathrm{H}, \mathrm{S}\}, we compute head similarities using Equation (1) and retain the highest-weight 25% of head pairs as edges. We then apply the community detection procedure described in the previous section and compare within-community connectivity between the honest and sandbagging conditions using the same community assignments.

Sandbagging Reduces Within-Community Connectivity

We compare four widely used community detection methods spanning different objectives and optimization strategies. Louvain [1] and Leiden (Traag et al., 2019) both optimize modularity, but Leiden adds a refinement step that guarantees well-connected communities, which Louvain can miss. Infomap (Rosvall & Bergstrom, 2008) instead follows information flow, grouping nodes among which random walks tend to remain. Spectral clustering (von Luxburg, 2007), on the other hand, uses the geometry of the graph, partitioning nodes by an embedding derived from its Laplacian.

For each model and community detection method, we compute the mean normalized within-community degree k~iC\tilde{k}_i^C from Equation (2). As shown in Table 1, the mean normalized within-community degree decreases under sandbagging in all 16 model–method comparisons. The four methods optimize different objectives and the four models differ in architecture, depth, and head count. Moreover, the partition-fitting and condition-measurement banks are disjoint, so the result does not follow from fitting communities to the honest measurement graph. To further rule out artifacts from fitting communities on honest data, we construct a second honest graph using a paraphrased prompt and evaluate it against the same fixed communities. Across all 16 comparisons, connectivity changes by at most 0.24 pp, smaller than even the smallest decrease under sandbagging (0.31 pp). Notably, the honest-prompt paraphrase even increases within-community connectivity in some cases. Details are provided in (Appendix § 9).

ModelLouvain HHLouvain SSLouvain Δ\DeltaLeiden HHLeiden SSLeiden Δ\DeltaInfomap HHInfomap SSInfomap Δ\DeltaSpectral HHSpectral SSSpectral Δ\Delta
Mistral-24B0.07020.0594-1.090.07020.0594-1.080.09190.0752-1.660.06890.0578-1.12
Qwen3-32B0.05150.0474-0.410.05570.0526-0.310.09910.0921-0.700.10330.0969-0.64
Llama-3.3-70B0.05790.0510-0.690.06900.0613-0.770.08450.0718-1.270.07370.0657-0.80
GPT-OSS-20B0.06440.0593-0.510.06320.0583-0.500.06730.0622-0.510.07000.0645-0.55

Table 1. Mean within-community degree under honest (HH) and sandbagging (SS) conditions using the localization normalization. Under a community partition learned from a separate honest question bank, deception decreases within-community connectivity across every tested model and partitioning method. Δ=100(S−H)\Delta= 100(S - H) is in percentage points.

Head-Level Structural Scores

Motivated by the finding in the previous section that sandbagging reduces within-community connectivity, our goal is to identify the heads that contribute most to that reduction, so that we can perform a localized intervention on them. Given head ii in condition C∈{H,S}C \in\{H,S\}, we take its within-community degree k~iC\tilde{k}_i^C from Equation (2) and measure how it changes between the two conditions,

Δi=k~iS−k~iH.(3)\Delta_i = \tilde{k}_i^S - \tilde{k}_i^H . \tag*{(3)}

More negative values identify heads that lose more within-community connectivity. Given a budget of k%k\% of all heads, we use Hamilton apportionment to distribute the budget across communities in proportion to their size, so that each community contributes a share of the selection matching its share of the network. Within each community, we rank heads by Δi\Delta_i in ascending order and take those with the largest losses, breaking ties by head index. Thus, heads are compared only with their functional peers, while the proportional quotas prevent a single large community from absorbing the entire budget and still select exactly k%k\% of heads overall.

Identifying Heads for Improving Capability Elicitation

The score identifies heads that lose within-community connectivity, but not whether intervening on them changes sandbagging behavior and elicits the sandbagged capability. Prior work shows that many attention heads can be disabled without degrading performance (Michel et al., 2019), and that suppressing certain heads can even improve task accuracy (Kovaleva et al., 2019). We build on those findings to study whether ablating a small fraction of the heads identified in § 4.2 elicits the sandbagged capability. Specifically, let A\mathcal{A} denote the selected heads. For each h∈Ah \in\mathcal{A}, we set its pre-WOW_O output to zero, zh←0z_h \leftarrow0, at the final prompt token. All other heads and all model parameters are left unchanged, so the only difference from the unmodified forward pass is the removal of these heads’ contributions at a single token position.

Figure 1 demonstrates the effect of this intervention against three controls of equal budget. The global-random control draws heads uniformly from all layers and tests whether ablating any heads would help. Layer-matched random takes the same number of heads from each layer as our selection, so if the intervention were only finding the right layers, any heads from those layers would work just as well. Lastly, degree-matched random matches the degree distribution of our selection, so if the effect came from how connected the heads are, equally connected heads would work just as well. We report the mean over 20 seeded sets per control.

Figure 1. Ablating graph-localized heads recovers suppressed capability across four models on MMLU. Null bars are means over independently seeded global-random, exact-layer-matched, and degree-matched head sets of equal size (20 draws per control). Their whiskers are 95% confidence intervals across head-set draws; whiskers on graph-localized bars are paired-question 95% bootstrap confidence intervals. The graph-localized selection outperforms every control mean under all four community detection algorithms.

We find that the size of the gain varies by model, which is expected given differences in pretraining and post-training recipes. In all sixteen combinations of four community detection methods and four models, spanning dense and mixture-of-experts architectures of different depths, our selection recovers more suppressed capability than the mean of every control. We also find the cost of this ablation to be small. The largest drop in honest accuracy across all sixteen cells is 1.25 pp, so the intervention increases capability elicitation accuracy while leaving honest accuracy nearly intact.

Applying Our Insight to Existing Methods

We extend our method to existing elicitation methods, and demonstrate that we are able to identify heads that, when targeted, reveal intrinsic model capabilities while having minimal affect on honest accuracy.

Experimental Setup

There are two widely established protocols for studying sandbagging. In the prompted setting, the model is given an incentive to underperform and instructed to do so, while its weights remain unchanged. In the fine-tuned setting, commonly known as password locking, the model is trained to condition its behavior on a trigger string in the prompt, answering correctly when the trigger is present and underperforming when it is absent. For the prompted setting, we adopt the sandbagging prompts of Hofstätter et al. (2025); Tice et al. (2025). For the fine-tuned setting, we use the two model organisms of Hofstätter et al. (2025), a password-locked organism and a circuit-broken organism (Appendix § 12.§ 1).

Baselines and Datasets

Baselines. We group existing elicitation methods into two levels. Inference-level methods modify only the input to the model and leave its parameters untouched. We consider few-shot prompting ([3]), fixed to five shots throughout, and response prefill (Hofstätter et al., 2025). Weight-level methods, on the other hand, modify the parameters. We consider noise injection (Tice et al., 2025), which adds Gaussian noise to all weights. We also consider supervised fine-tuning (Greenblatt et al., 2024b), the most widely adopted approach and a strong one that recovers hidden capability from a small number of correct demonstrations, and we include LoRA as a parameter-efficient alternative to fine-tuning the full model. Further details on each baseline are provided in (Appendix § 12.§ 3).

Datasets. We evaluate on three benchmarks: Massive Multitask Language Understanding (MMLU) (Hendrycks et al., 2020), the Weapons of Mass Destruction Proxy (WMDP) (Li et al., 2024), and the AI2 Reasoning Challenge (ARC-Challenge) ([4]), described in Appendix § 12.§ 4. We hold out n=400n = 400 MMLU questions for supervision and tuning. Methods that require demonstrations draw them from this set, and every method’s hyperparameters are selected and tuned only on it.

Structural Interventions

Based on our observation that ablating the heads our functional network identifies recovers suppressed capability while leaving honest performance nearly intact, we consider two structural interventions that pair with existing methods at each access level. At the inference level, we ablate the selected heads and apply the baseline method in the same forward pass, giving Ours + Prefill and Ours + Few-shot. Both compositions require no demonstrations beyond what the baseline already uses and no change to the model’s parameters.

At the weight level, we draw on prior work showing that a frozen model can be adapted effectively by learning offsets on a small subset of attention heads (Yin et al., 2024). We adopt the same form of intervention but select the sites differently, based on changes in functional connectivity between the honest and sandbagging conditions rather than on gradient attribution or task-specific importance. Specifically, keeping the base model frozen, for head hh with pre-WOW_O output zhz_h, we learn head-specific parameters ghg_h, uhu_h, and vhv_h and replace zhz_h by

zh′=ghzh+uh(vhTzh).(4)z'_h = g_h z_h + u_h(v_h^\mathsf{T} z_h). \tag*{(4)}

We initialize gh=0g_h = 0 and uh=0u_h = 0, which exactly reproduces the ablation in § 4.3. This allows training to move the intervention away from ablation in the direction the objective favors. We train on the same number of correct demonstrations as full fine-tuning and LoRA, but update only these head-specific parameters, which are orders of magnitude fewer than those updated by either method. Our intervention also requires no search over perturbation magnitudes, as noise injection does. We refer to this intervention as Ours (GraphLearned).

Results

We test whether our method improves existing elicitation methods at both the inference and weight levels, first under prompted sandbagging and then on fine-tuned model organisms.

Our method strengthens inference-level elicitation. We combine our ablation with prefill and few-shot prompting using the procedure described in § 5.3. As shown in Table 2, this improves both methods across all models and benchmarks, including cases where the baseline alone degrades performance. Because these compositions leave the model’s parameters untouched, the additional recovery comes at no training cost. We also test whether this gain depends on the heads identified by our functional network or whether ablating arbitrary heads would work as well. Repeating the composition with the same number of randomly chosen heads (Table 8), we find that random heads give inconsistent gains and often reduce accuracy below the baseline alone, while our selection improves performance in nearly every case. The benefit therefore comes from where we intervene, not from ablation itself.

ModelMethodMMLU Acc. (%)MMLU ΔSB\Delta_{\mathrm{SB}}WMDP Acc. (%)WMDP ΔSB\Delta_{\mathrm{SB}}ARC Acc. (%)ARC ΔSB\Delta_{\mathrm{SB}}
Mistral-24BPrefill30.75+6.5028.25+3.5033.75+17.25
Ours + Prefill36.75+12.5033.75+9.0045.50+29.00
Few-shot15.58−8.6719.92−4.836.42−10.08
Ours + Few-shot19.42−4.8322.58−2.179.50−7.00
Noise Injection33.00±2.8133.00 \pm2.81+8.7533.05±4.2933.05 \pm4.29+8.3045.45±6.8645.45 \pm6.86+28.95
SFT (LoRA)64.85±5.2364.85 \pm5.23+40.6054.10±4.1954.10 \pm4.19+29.3585.90±2.8185.90 \pm2.81+69.40
SFT (Full)68.05±9.4368.05 \pm9.43+43.8058.60±7.5058.60 \pm7.50+33.8586.10±9.8686.10 \pm9.86+69.60
Ours (GraphLearned)71.35±2.80\mathbf{71.35 \pm2.80}+47.1060.70±0.82\mathbf{60.70 \pm0.82}+35.9589.85±3.21\mathbf{89.85 \pm3.21}+73.35
Qwen3-32BPrefill67.75+40.5060.75+30.5089.50+71.75
Ours + Prefill68.00+40.7562.00+31.7591.25+73.50
Few-shot73.00+45.7563.83+33.5887.08+69.33
Ours + Few-shot76.50+49.2568.33+38.0893.58+75.83
Noise Injection56.45±7.7756.45 \pm7.77+29.2048.95±5.1248.95 \pm5.12+18.7074.70±11.6674.70 \pm11.66+56.95
SFT (LoRA)57.05±10.9057.05 \pm10.90+29.8048.25±8.3748.25 \pm8.37+18.0074.40±18.5274.40 \pm18.52+56.65
SFT (Full)63.55±19.3363.55 \pm19.33+36.3054.80±14.5054.80 \pm14.50+24.5576.95±32.4076.95 \pm32.40+59.20
Ours (GraphLearned)70.25±1.33\mathbf{70.25 \pm1.33}+43.0063.60±1.10\mathbf{63.60 \pm1.10}+33.3589.10±3.18\mathbf{89.10 \pm3.18}+71.35
GPT-OSS-20BPrefill42.25−5.0033.25−15.5052.25+4.75
Ours + Prefill59.25+12.0050.00+1.2575.00+27.50
Few-shot51.33+4.0848.33−0.4261.08+13.58
Ours + Few-shot56.08+8.8350.50+1.7567.75+20.25
Noise Injection45.90±8.1945.90 \pm8.19−1.3542.35±6.9142.35 \pm6.91−6.4053.25±14.8753.25 \pm14.87+5.75
SFT (LoRA)60.10±6.4060.10 \pm6.40+12.8554.10±3.1254.10 \pm3.12+5.3578.90±8.3478.90 \pm8.34+31.40
SFT (Full)62.40±7.3562.40 \pm7.35+15.1557.30±2.4457.30 \pm2.44+8.5575.65±11.2875.65 \pm11.28+28.15
Ours (GraphLearned)63.70±4.21\mathbf{63.70 \pm4.21}+16.4557.45±3.16\mathbf{57.45 \pm3.16}+8.7081.05±5.08\mathbf{81.05 \pm5.08}+33.55
Llama-3.3-70BPrefill27.75+11.2517.00+2.5010.75+4.25
Ours + Prefill31.75+15.2520.50+6.0021.50+15.00
Few-shot20.00+3.5022.42+7.9212.58+6.08
Ours + Few-shot47.08+30.5839.00+24.5046.92+40.42
Noise Injection40.70±19.2940.70 \pm19.29+24.2024.65±16.8624.65 \pm16.86+10.1530.25±30.3330.25 \pm30.33+23.75
SFT (LoRA)74.45±11.6374.45 \pm11.63+57.9557.85±13.2257.85 \pm13.22+43.3580.40±24.5780.40 \pm24.57+73.90
Ours (GraphLearned)76.80±1.59\mathbf{76.80 \pm1.59}+60.3062.90±2.61\mathbf{62.90 \pm2.61}+48.4087.40±3.83\mathbf{87.40 \pm3.83}+80.90

Table 2. Capability elicitation (accuracy and % change from the unmodified model). Weight-level results report mean accuracy over five independent trials. Our intervention improves every inference-level baseline, and our method outperforms the weight-level methods while training orders of magnitude fewer parameters.

Table 8: Localization controls under prompted sandbagging. Values are final-evaluation accuracy (%). Random-head results report the mean and sample standard deviation over five random-head draws with the same intervention budget as ours. Interventions on random heads yield inconsistent gains and in some cases reduce accuracy. This shows how our method identifies attention heads that enable targeted intervention.

ModelMethodMMLUWMDPARC
Mistral-24BPrefill30.7528.2533.75
Mistral-24BRandom heads + Prefill30.55±1.7330.55 \pm1.7328.05±0.9928.05 \pm0.9934.75±2.8634.75 \pm2.86
Mistral-24BOurs + Prefill36.7533.7545.50
Mistral-24BFive-shot15.5819.926.42
Mistral-24BRandom heads + Five-shot16.10±0.6416.10 \pm0.6420.45±0.9420.45 \pm0.947.17±0.867.17 \pm0.86
Mistral-24BOurs + Five-shot19.4222.589.50
Qwen3-32BPrefill67.7560.7589.50
Qwen3-32BRandom heads + Prefill68.15±2.6568.15 \pm2.6560.30±1.8160.30 \pm1.8188.65±1.3688.65 \pm1.36
Qwen3-32BOurs + Prefill68.0062.0091.25
Qwen3-32BFive-shot73.0063.8387.08
Qwen3-32BRandom heads + Five-shot73.98±1.5073.98 \pm1.5065.20±1.6965.20 \pm1.6988.55±3.0788.55 \pm3.07
Qwen3-32BOurs + Five-shot76.5068.3393.58
Llama-3.3-70BPrefill27.7517.0010.75
Llama-3.3-70BRandom heads + Prefill25.45±3.0625.45 \pm3.0616.35±1.3816.35 \pm1.3810.25±0.9410.25 \pm0.94
Llama-3.3-70BOurs + Prefill31.7520.5021.50
Llama-3.3-70BFive-shot20.0022.4212.58
Llama-3.3-70BRandom heads + Five-shot24.70±4.6124.70 \pm4.6125.53±3.4225.53 \pm3.4217.92±5.2117.92 \pm5.21
Llama-3.3-70BOurs + Five-shot47.0839.0046.92

Table 8.

At the weight level, our method outperforms fine-tuning and is far more stable. Under prompted sandbagging, Ours (GraphLearned) achieves the highest accuracy across models and benchmarks, surpassing noise injection, LoRA, and full fine-tuning while training only the small set of parameters described in § 5.3. This advantage holds across demonstration budgets (Table 10). Our method has lower variance than full fine-tuning in every comparison and remains reliable at the smallest budget, where fine-tuning varies widely from one run to the next. On Mistral-24B, our method with four demonstrations exceeds full fine-tuning with sixteen demonstrations.

ModelmmMethodMMLUWMDPARC
Mistral-24B4Full-SFT68.05±9.4368.05 \pm9.4358.60±7.5058.60 \pm7.5086.10±9.8686.10 \pm9.86
Mistral-24B4GraphLearned71.35±2.8071.35 \pm2.8060.70±0.8260.70 \pm0.8289.85±3.2189.85 \pm3.21
Mistral-24B8Full-SFT69.85±1.8369.85 \pm1.8359.10±2.5659.10 \pm2.5689.35±1.7689.35 \pm1.76
Mistral-24B8GraphLearned72.20±0.7472.20 \pm0.7461.25±0.9861.25 \pm0.9891.30±0.4891.30 \pm0.48
Mistral-24B16Full-SFT67.90±3.3467.90 \pm3.3460.30±4.0860.30 \pm4.0889.45±2.0089.45 \pm2.00
Mistral-24B16GraphLearned72.70±1.0572.70 \pm1.0562.00±0.6862.00 \pm0.6891.45±0.2191.45 \pm0.21
Qwen3-32B4Full-SFT63.55±19.3363.55 \pm19.3354.80±14.5054.80 \pm14.5076.95±32.4076.95 \pm32.40
Qwen3-32B4GraphLearned70.25±1.3370.25 \pm1.3363.60±1.1063.60 \pm1.1089.10±3.1889.10 \pm3.18
Qwen3-32B8Full-SFT66.00±13.0966.00 \pm13.0959.50±6.0459.50 \pm6.0479.35±24.9779.35 \pm24.97
Qwen3-32B8GraphLearned69.75±2.6869.75 \pm2.6864.05±0.9364.05 \pm0.9388.90±4.2688.90 \pm4.26
Qwen3-32B16Full-SFT73.75±2.0173.75 \pm2.0164.05±0.8664.05 \pm0.8691.80±0.9791.80 \pm0.97
Qwen3-32B16GraphLearned71.45±0.7871.45 \pm0.7864.90±0.6064.90 \pm0.6092.00±0.6492.00 \pm0.64

Table 10. Comparison across demonstration budgets. Values are final-evaluation accuracy (%), reported as mean and sample standard deviation over five independent trials. Bold marks the higher mean within each matched model, demonstration budget (mm), and benchmark comparison. Our method outperforms Full-SFT in nearly all scenarios across both lower and higher demonstration budgets and has lower variance in every comparison.

Our method remains effective when the suppression is trained into the weights. We apply the same interventions to the password-locked and circuit-broken organisms, building the contrast graphs without access to the password. As shown in Table 3, our method improves or preserves every inference-level baseline. At the weight level, Ours (GraphLearned) achieves the best result on three of the four organisms. The difference from other weight-level baselines is clearer on the password-locked organisms, where fine-tuning and noise injection recover little of the suppressed capability while our method recovers most of it.

Table 3: Final-evaluation accuracy (%) for capability elicitation in password-locked and circuit-broken Mistral sandbagging model organisms. Weight-level results report mean accuracy over five independent trials. Our intervention improves or preserves every inference-level baseline and remains competitive with weight-level baselines.

LevelMethodPassword-lockedCircuit-broken
Mistral-baseMistral-instructMistral-baseMistral-instruct
InferencePrefill57.0350.2760.8125.41
InferenceOurs + Prefill57.5750.2760.8125.68
InferenceFive-shot57.8451.3526.7628.11
InferenceOurs + Five-shot58.3852.7027.0328.11
WeightNoise injection15.62±2.8215.62 \pm2.8215.51±1.4615.51 \pm1.460.00±0.000.00 \pm0.000.11±0.240.11 \pm0.24
WeightSFT (LoRA)39.24±11.9039.24 \pm11.9021.46±11.0121.46 \pm11.0155.19±5.2455.19 \pm5.2433.95±10.6133.95 \pm10.61
WeightSFT (Full)28.16±17.1228.16 \pm17.1217.78±4.2217.78 \pm4.2258.43±2.3158.43 \pm2.3129.41±10.7229.41 \pm10.72
WeightOurs (GraphLearned)52.27±1.0452.27 \pm1.0451.62±1.7151.62 \pm1.7157.08±3.2257.08 \pm3.2239.19±5.7839.19 \pm5.78

Table 3.

Related Work

Graph-based Mechanistic Interpretability

Graph theory has been used to enhance the interpretability of deep neural networks in several different scenarios. Early papers on clusterability fall into two categories: weight graphs and functional graphs. To construct weight graphs, Watanabe et al. (2018); Filan et al. [7] form modules by analyzing the connectivity between weights in neural networks, while Hod et al. (2021); Lange et al. (2022) generate their functional graphs using activation correlations. While graph theory has also been fundamental to interpreting graph neural networks, graph techniques have recently been extended to other settings, ranging from a reinforcement learning policy system to the learning dynamics of LLMs. In order to elucidate the mechanistic underpinnings of GNNs, El et al. [6] bridge the message-passing process of GNNs with the self-attention mechanisms in Transformers. While they highlight the possibility of extending this graph-based approach to interpretability for traditional transformer models, they intentionally leave it for future work. Shortly after El et al. [6], Soligo et al. (2025) used a graph-based approach to understanding reinforcement learning dynamics, with the ultimate goal of ensuring that RL systems align with human values. However, instead of using attention heads and MLP layers as nodes in their graph, Soligo et al. (2025) implemented a Louvain algorithm to generate a lightweight graph with "functional modules" of RL policy networks. In the work most similar to ours, Rocchetti (2025) uses attention heads as a way to explicate the way in which LLMs acquire complex knowledge.

Sandbagging

While the notion of sandbagging predates AI safety, van der Weij et al. (2025) formalize this concept for capability evaluations in modern AI systems. Subsequent work has studied sandbagging from several complementary perspectives, including its induction, detection, and mitigation. Greenblatt et al. (2024b); Hofstätter et al. (2025); Tice et al. (2025) use prompting and training to develop "password-locked" model organisms, creating controlled environments to study deliberate capability suppression during induction. Research on detecting sandbagging and deception uses behavioral methods like chain-of-thought monitoring, as in Li & Siegel (2025), and white-box activation probes, as in Goldowsky-Dill et al. [8] and Rotalabs (2025). However, probe-based detection exhibits model-specific variations and struggles to generalize across different types of deception, as shown by Natarajan et al. (2026). To mitigate sandbagging and recover withheld capabilities, recent work explores elicitation methods using password-locked testbeds from Greenblatt et al. (2024b) and training-based solutions from Tice et al. (2025) and Hofstätter et al. (2025). Despite substantial progress in inducing, detecting, and mitigating sandbagging, existing work has primarily focused on its observable behavior and capability recovery. How sandbagging alters internal representations and computations remains underexplored, highlighting the need for a mechanistic investigation of its structural basis.

Conclusion

Existing work on the mechanistic underpinnings of sandbagging is scarce. We bridge this gap by introducing a new lens for studying this phenomenon: functional networks of attention heads that capture interactions between various communities in the model. Across models and community detection methods, we find that sandbagging is associated with a stable and consistent reorganization of these networks, marked by reduced within-community connectivity. Ablating the heads with the largest changes in connectivity recovers suppressed capability while leaving honest accuracy largely intact. Building on this, we designed interventions at both the inference and weight levels that improve existing elicitation methods under prompted sandbagging and on fine-tuned model organisms. While our methods do not establish a concrete causal relationship between graphs and sandbagging tendencies, they provide a way to quantitatively measure multi-head feature interactions. Our findings show that sandbagging leaves a measurable signature in how a model’s components coordinate and suggest that functional networks might offer a novel lens for studying other misaligned behaviors in large language models.

The SVCCA-MI Edge

SVCCA

Singular vector canonical correlation analysis (SVCCA) is a statistical method for comparing two collections of vector-valued observations (Raghu et al., 2017) and is often used to measure the alignment or similarity between internal features and representations. SVCCA scores range from 0 to 1, where a score of 1 indicates identical learned representations. Let X∈Rn×pX \in\mathbb{R}^{n \times p} and Y∈Rn×qY \in\mathbb{R}^{n \times q} contain measurements from the same nn observations, with columns corresponding to measured variables. SVCCA assesses how strongly these measurements vary together without requiring individual variables in XX and YY to correspond. It first applies singular value decomposition to the centered data, retaining the dominant directions of variation in each matrix. It then applies canonical correlation analysis to find pairs of linear combinations with maximal correlation. Successive pairs are constrained to be uncorrelated with earlier pairs within each dataset. This produces canonical correlations ρ1,…,ρK∈[0,1]\rho_1, \ldots, \rho_K \in[0, 1], where KK is the smaller retained dimension. Each ρr\rho_r measures the strength of one linear relationship between a pair of internal features or representations.

Robustness to Functional Similarity Measures

Our main analyses use SVCCA-MI to measure functional similarity between attention heads. Since this choice determines which head pairs form edges, we test whether our findings depend on the particular similarity measure used to construct the networks. We consider two alternatives. The first applies a rank-based Gaussian transformation to the reduced head activations before computing SVCCA-MI, while the second uses linear centered kernel alignment (CKA), which measures representation similarity through a different formulation. For each measure, we construct functional graphs using the same 25% edge density and fit Leiden communities on the separate honest MMLU auxiliary-training bank. We then hold these communities fixed when comparing honest, sandbagging, and honest-paraphrase graphs constructed from the same MMLU validation questions.

As shown in Figure 2, sandbagging reduces within-community connectivity across all 12 combinations of four models and three similarity measures. Moreover, in every comparison, the decrease under sandbagging is larger than the corresponding change under honest-prompt paraphrasing. Although the magnitude of the reduction varies across models and measures, we find that its direction remains overall consistent. These findings demonstrate that the structural signature observed in § 4 is not exclusive to our SVCCA-MI formulation.

Figure 2. Change in mean within-community degree between honest and sandbagging conditions across four models and three functional similarity measures. Sandbagging consistently reduces within-community connectivity in all 12 comparisons, showing that the structural signature is not specific to our SVCCA-MI formulation.

We further investigate whether these alternative similarity measures can equally identify effective intervention targets. Following the localization procedure in § 4.2, we select heads based on their changes in within-community connectivity and ablate them at the final prompt token, using the same intervention budget. Figure 3 reports the results on Mistral-24B across all 13,228 MMLU test questions. Despite identifying different sets of heads, all three similarity measures recover substantial suppressed capability, improving sandbagging accuracy by between 12.15 and 18.02 pp, compared with a decrease of 0.83 pp from a layer-matched random selection. Furthermore, the largest reduction in honest accuracy is only 0.25 pp. Together, these results show that alternative measures of functional similarity preserve both the structural signature of sandbagging and its usefulness for identifying effective intervention targets.

Figure 3. Capability elicitation from ablating heads selected using different functional similarity measures on Mistral-24B. Bars show the change in sandbagging accuracy, with whiskers indicating paired-question 95% bootstrap confidence intervals. All three structural selections recover substantial suppressed capability compared with layer-matched random ablation, while leaving honest accuracy nearly intact.

Community Detection

Table 1 uses a cross-bank design. Communities are fitted once on an honest graph constructed from 400 answer-balanced MMLU auxiliary-training questions. That partition is frozen before the paired honest and sandbagging graphs are constructed from a disjoint set of 400 answer-balanced MMLU validation questions. Consequently, neither measurement graph was used to optimize the partition, and the comparison does not give the honest measurement graph a partition-fitting advantage. Both graph banks are also disjoint from the official MMLU test split after normalized-stem matching.

Although this design prevents a direct partition-fitting advantage, a broader concern might still remain. Because communities are learned from honest activations, they may naturally align better with graphs produced under honest prompting. If simply changing the prompt is sufficient to reduce within-community connectivity, the decrease observed under sandbagging might reflect this mismatch rather than anything specific to capability suppression.

Table 5: Mean within-community degree, using the M−1M - 1 normalization, within a head’s fixed Table 1 community under five additional prompt conditions, with honest (HH) and sandbagging (SS) references. Here, Δ=100(C−H)\Delta= 100(C - H) is reported in percentage points for condition CC. Sandbagging produces larger reductions in within-community connectivity than these prompt controls.

ModelConditionLouvain ValueLouvain Δ\DeltaLeiden ValueLeiden Δ\DeltaInfomap ValueInfomap Δ\DeltaSpectral ValueSpectral Δ\Delta
Mistral-24BHonest (HH)0.0702—0.0702—0.0919—0.0689—
Mistral-24BSandbagging (SS)0.0594-1.090.0594-1.080.0752-1.660.0578-1.12
Mistral-24BPersona0.0692-0.100.0690-0.120.0906-0.120.0681-0.09
Mistral-24BContext0.0692-0.100.0695-0.070.0908-0.110.0680-0.09
Mistral-24BReasoning0.0696-0.060.0700-0.020.0913-0.060.0686-0.04
Mistral-24BRandom answer0.0687-0.150.0687-0.150.0908-0.100.0683-0.07
Mistral-24BRefusal0.0686-0.160.0686-0.170.0901-0.180.0679-0.11
Qwen3-32BHonest (HH)0.0515—0.0557—0.0991—0.1033—
Qwen3-32BSandbagging (SS)0.0474-0.410.0526-0.310.0921-0.700.0969-0.64
Qwen3-32BPersona0.0515+0.000.0564+0.070.0998+0.070.1043+0.10
Qwen3-32BContext0.0506-0.090.0559+0.020.0993+0.020.1032+0.00
Qwen3-32BReasoning0.0506-0.090.0556-0.010.0996+0.060.1040+0.07
Qwen3-32BRandom answer0.0511-0.040.0565+0.070.1008+0.170.1054+0.21
Qwen3-32BRefusal0.0505-0.100.0555-0.020.0980-0.110.1020-0.13

Table 5.

To test this possibility, we construct a controlled second honest graph H2H_2 using a paraphrase of the original honest prompt. Both prompts instruct the model to answer honestly, but their wording differs. We then measure HH and H2H_2 on the identical 400-question MMLU validation bank B, using the same frozen communities fitted on the separate honest auxiliary-training bank A. Thus, H2H_2 provides a control in which the prompt changes without introducing sandbagging. If changing the prompt alone explains the reduction, we would expect a comparable decrease under H2H_2.

Table 4 demonstrates a meaningful difference. Across all 16 model–method comparisons, the largest absolute change under honest-prompt paraphrasing is just 0.24 pp, smaller than even the smallest decrease under sandbagging (0.31 pp). Moreover, while sandbagging consistently decreases within-community connectivity, honest-prompt paraphrasing even increases it in some cases, including across all four community detection methods for GPT-OSS-20B. These findings show that the reduction observed under sandbagging is not just reproduced by changing the honest prompt and, together with the cross-bank design, provide evidence against attributing the effect to community-fitting artifacts.

Table 4: Honest-prompt control using the M−1M - 1 normalization. Values are the mean within-community degree under the original honest prompt (HH) and its paraphrase (H2H_2), with Δ=100(H2−H)\Delta= 100(H_2 - H) reported in percentage points. Unlike sandbagging, honest-prompt paraphrasing produces only small changes in connectivity, with increases observed in some cases.

ModelLouvain HHLouvain H2H_2Louvain Δ\DeltaLeiden HHLeiden H2H_2Leiden Δ\DeltaInfomap HHInfomap H2H_2Infomap Δ\DeltaSpectral HHSpectral H2H_2Spectral Δ\Delta
Mistral-24B0.07020.0687-0.150.07020.0686-0.170.09190.0894-0.240.06890.0677-0.13
Qwen3-32B0.05150.0507-0.080.05570.0552-0.050.09910.0985-0.060.10330.1026-0.07
Llama-3.3-70B0.05790.0579-0.010.06900.0686-0.030.08450.0847+0.020.07370.0738+0.00
GPT-OSS-20B0.06440.0653+0.100.06320.0642+0.090.06730.0684+0.110.07000.0712+0.12

Table 4.

We additionally consider five other non-sandbagging prompt conditions: persona (e.g., “You are a knowledgeable teacher helping a student”); context (e.g., “The following question is part of an educational practice quiz”); reasoning (e.g., “Carefully compare the available options before selecting your answer”); random answering (“Give a random answer”); and refusal (“Never answer this question”). We find that these prompt variants produce smaller changes in within-community connectivity than sandbagging. For instance, on Mistral-24B and Qwen3-32B, changes in within-community connectivity range from −0.18 to +0.21 percentage points, compared with reductions of 0.31–1.66 points under sandbagging (Table 5). Therefore, these prompt variants do not reproduce the large connectivity reductions observed under sandbagging.

Sensitivity to Graph Density

Our graphs retain the top 25% of head pairs. To test whether our results depend on this choice, we re-threshold the honest and sandbagging similarity matrices at densities from 0.15 to 0.35, keeping the honest-fitted Leiden communities fixed, and recompute the head scores. We then measure how closely the ranking of heads at each density agrees with the ranking at 0.25.

As shown in Table 6, head-score rankings remain strongly correlated with those obtained at 0.25 across all tested densities. Thus, the overall ranking signal is not specific to the density used in the main experiments.

DensityMistral-24BQwen3-32BLlama-3.3-70BGPT-OSS-20B
0.150.8550.9030.8650.841
0.200.9230.9640.9490.921
0.300.9360.9720.9570.931
0.350.8930.9370.9070.884

Table 6. Spearman correlation between head scores at each density and at the 0.25 density used throughout the paper. Rankings remain strongly correlated across all densities and models.

Sensitivity to kNN Neighborhood Size

We test whether our head-score rankings are sensitive to the neighborhood size kk used to construct the k-nearest-neighbor (kNN) graph for community detection. For each model, let k0k_0 denote the default neighborhood size used in our experiments. We vary kk over {0.3k0,0.5k0,2k0,4k0}\{0.3k_0, 0.5k_0, 2k_0, 4k_0\}, recompute the communities and head scores, and measure how closely the resulting rankings agree with those obtained at k0k_0.

As shown in Table 7, head-score rankings remain strongly correlated with those obtained at k0k_0, with Spearman correlations ranging from 0.874 to 0.979 across all models and neighborhood sizes. Thus, the overall ranking signal is robust to the choice of kk used for community detection.

Neighborhood sizeMistral-24BQwen3-32BLlama-3.3-70BGPT-OSS-20B
0.3k00.3k_00.9080.9250.9250.874
0.5k00.5k_00.9790.9180.9350.959
2k02k_00.9450.9190.9600.910
4k04k_00.8810.9060.9380.893

Table 7. Spearman correlation between head scores at each kNN neighborhood size and at the default k0k_0 used throughout the paper. Rankings remain strongly correlated across all tested neighborhood sizes and models.

Experimental Details

Model Organisms

The first, a password-locked organism, is trained with supervised fine-tuning to answer correctly when the password is present and to give incorrect answers when it is absent. The second, a circuit-broken organism, applies circuit breaking on top of the password-locked model, so that its internal representations, rather than only its output tokens, are trained to differ when the password is absent, under the assumption that this makes the organism more robust and harder to break with elicitation methods.

Contrast Graphs for Model Organisms

Our method requires a pair of contrast graphs, one from an honest condition and one from a sandbagging condition. In the prompted setting, these come directly from the two prompts. For the model organisms, the natural honest condition would be to supply the password, but this assumes the evaluator already knows it, and an evaluator who knows the password has no need for elicitation. We therefore build the contrast without the password. The locked model with no password serves as the sandbagging condition, and the same model with a response prefill (defined in § 5.2) serves as a proxy for the honest condition. We use prefill because it requires no demonstrations or training and partially recovers the suppressed capability, giving a simple honest signal from which to detect candidate heads.

Baselines

In few-shot prompting ([3]), correctly answered examples are prepended to the prompt so that the capability is elicited in context. In response prefill ((Hofstätter et al., 2025)), a short phrase committing the model to state the correct answer is appended to its turn, on the premise that a partially written response can override the instruction to underperform. Noise injection ((Tice et al., 2025)) adds Gaussian noise to all weights with the intuition that random perturbation degrades a sandbagging policy faster than the underlying capability, so an improvement under noise might itself be evidence of suppression.

Datasets

We describe the main datasets used throughout this paper. MMLU ((Hendrycks et al., 2020)) tests world knowledge and problem solving across STEM, humanities, and social sciences. WMDP ((Li et al., 2024)) tests hazardous knowledge relevant to biosecurity, chemical weapons, and cybercrime, and is therefore the benchmark most directly tied to the threat model that motivates capability evaluations. ARC-Challenge ([4]) tests grade-school science reasoning and provides a third benchmark with a different question distribution.

Localization

§ 4.3 establishes that ablating the heads identified by our functional graph recovers suppressed capability better than ablating random heads. It remains unclear, however, whether this still holds once ablation is combined with other elicitation methods. Prefill and few-shot prompting already change how the model processes its input, so after combining with them, ablating any heads might help, or the choice of heads might no longer matter.

To test this, we repeat the inference-level compositions of Table 2, replacing our selected heads with the same number of randomly chosen heads, and average the results over five independent random draws. If our selection mattered only for ablation alone, random heads should perform comparably once combined with prefill or few-shot prompting.

Table 8 shows that they do not. Random heads give inconsistent gains and often reduce accuracy below the baseline alone, while our selection improves performance in nearly every case. The benefit of our method therefore comes from where we intervene, even when it is combined with existing elicitation methods.

Zero Ablation vs. GraphLearned: Random and Graph-Selected Heads. We compare zero ablation and GraphLearned using random and graph-selected heads under prompted sandbagging on Mistral-24B and Qwen3-32B. We find that graph-selected head ablation consistently outperforms random ablation across all datasets for both zero ablation and GraphLearned experiments. Adding learnable parameters further improves performance. These results further support the benefits of graph-based head selection.

Table 9: Zero ablation versus GraphLearned under random and graph-based head selection. Values are final-evaluation accuracy (%). Error terms denote sample SD across five head sets for random ablation, five head-set means for random GraphLearned, and five training trials for graph-selected GraphLearned. Graph-selected ablation uses one fixed head set.

ModelMethodMMLUWMDPARC
Mistral-24BZero ablation (random)22.40±2.4622.40 \pm2.4622.15±2.3922.15 \pm2.3914.05±3.2614.05 \pm3.26
Mistral-24BZero ablation (graph)53.0045.5060.50
Mistral-24BGraphLearned (random heads)55.11±5.7655.11 \pm5.7649.97±2.6049.97 \pm2.6064.13±8.7364.13 \pm8.73
Mistral-24BGraphLearned (graph-selected heads)71.35±2.8071.35 \pm2.8060.70±0.8260.70 \pm0.8289.85±3.2189.85 \pm3.21
Qwen3-32BZero ablation (random)27.05±4.1927.05 \pm4.1928.10±6.2928.10 \pm6.2916.90±6.3716.90 \pm6.37
Qwen3-32BZero ablation (graph)64.7561.2581.50
Qwen3-32BGraphLearned (random heads)49.65±4.3349.65 \pm4.3347.62±3.8947.62 \pm3.8952.05±9.9852.05 \pm9.98
Qwen3-32BGraphLearned (graph-selected heads)70.25±1.3370.25 \pm1.3363.60±1.1063.60 \pm1.1089.10±3.1889.10 \pm3.18

Table 9.

Comparison across demonstrations

The weight-level results in Table 2 are obtained with four demonstrations. Since full fine-tuning updates far more parameters, it may benefit more from additional data. We therefore examine whether our advantage persists as the demonstration budget increases, comparing Ours (GraphLearned) with full fine-tuning at four, eight, and sixteen demonstrations over five independent trials.

As shown in Table 10, our method achieves higher accuracy in nearly all comparisons and lower variance in every one. The variance of full fine-tuning decreases with more demonstrations, whereas our method is already stable at the smallest budget. On Mistral-24B, our method with four demonstrations exceeds full fine-tuning with sixteen demonstrations. These results indicate that our method recovers the suppressed capability reliably with fewer demonstrations and remains competitive as more become available.

Comparison with Activation-Based Head Selection

We compare our graph-based head selection with an alternative approach that selects heads based on their normalized activation changes between honest and sandbagging conditions. We use equal head budgets and apply identical zero-ablation interventions. We evaluate both approaches across nine sandbagging model settings, including five additional sandbagging-trained models from Greenblatt et al. (2024b) and Taylor et al. (2025).

As shown in the table below, graph-based selection achieves higher capability elicitation accuracy across all nine settings, with improvements of up to 50 percentage points on Willow and 32.43 percentage points on circuit-broken Mistral Instruct. These results demonstrate that graph-based selection identifies more effective heads for capability elicitation than selection based solely on activation changes.

Sandbagging ModelActivation (%)Graph (%)Graph − Activation (pp)
Redwood DeepSeek-Math-7B/Pythia-1B7.2910.94+3.65
Gemma-2-9B Code25.0027.34+2.34
Willow36.7286.72+50.00
Tarun57.3059.12+1.82
Cedar73.4780.61+7.14
Password-locked Mistral Base56.4957.57+1.08
Password-locked Mistral Instruct50.0051.35+1.35
Circuit-broken Mistral Base59.4661.08+1.62
Circuit-broken Mistral Instruct4.3236.76+32.43

Table 11. Capability elicitation accuracy (%) using activation-based versus graph-based head selection under identical head-ablation budgets.

Understanding Graph-Localized Ablation

We investigate why ablating graph-selected heads recovers suppressed capabilities while largely preserving honest accuracy, using prompted sandbagging on Mistral-24B and Qwen3-32B. One possible explanation is that these heads might be contributing little to normal computation and removing them has minimal effect on honest performance. To test this, we measure each head’s activation magnitude before the output projection, ∥zh∥2\lVert z_h \rVert_2, and its contribution magnitude after the projection, ∥WO(h)zh∥2\lVert W_O^{(h)} z_h \rVert_2, at the final prompt token under both honest and sandbagging conditions. We average these magnitudes across evaluation questions for each head. For comparison, we construct 20 random head sets, each containing exactly the same number of heads per layer as our graph-selected set. We measure their magnitudes on the same questions and compute the mean magnitude across each set. For each condition and magnitude measure, we report the ratio between the mean magnitude of graph-selected heads and the average magnitude across the 20 random sets. As shown in Table 12, graph-selected heads have magnitudes generally comparable to randomly selected heads, and in some settings are even larger. These results shows that our selected heads are not simply low-magnitude components.

ModelHonest Pre-WOW_OHonest Post-WOW_OSandbagging Pre-WOW_OSandbagging Post-WOW_O
Mistral-24B1.11×1.09×1.17×1.15×
Qwen3-32B1.22×1.20×1.14×1.12×

Table 12. Mean activation magnitudes of graph-selected heads relative to layer-matched random heads, before and after the output projection, under honest and sandbagging conditions.

We further test whether head magnitude alone can explain capability elicitation. We construct 20 random head sets, each containing the same number of heads per layer as our graph-selected set. Within each layer, we select heads with projected-output magnitudes close to those of the corresponding graph-selected heads, measured under the honest condition. We then ablate these heads using the same intervention and evaluate their ability to recover suppressed performance. As shown in Figure 4, magnitude-matched random ablation fails to reproduce the recovery achieved by graph selection. This suggests that head magnitude alone cannot explain the effectiveness of elicitation.

Figure 4. MMLU sandbagging accuracy gains from ablating graph-selected heads versus the mean of layer- and magnitude-matched random head sets. Error bars indicate 95% paired-question bootstrap confidence intervals with head sets held fixed. Graph-selected ablation achieves substantially greater capability elicitation than matched random ablation.

Representational Changes Under Ablation

Motivated by our finding that head magnitude alone does not explain the capability recovery achieved by graph-localized ablation, we further analyse how the intervention affects the model’s internal representations. Specifically, we examine whether ablating graph-selected heads shifts the model’s representations toward those observed under honest prompting, and how these shifts relate to the recovery of suppressed performance.

We begin by identifying a direction in the residual stream that distinguishes honest from sandbagging behavior. For each question xx, we run the model under both honest (HH) and sandbagging (SS) prompting and record the residual-stream representation at the final prompt token after transformer block ℓ\ell, denoted by rℓH(x)r_\ell^H(x) and rℓS(x)r_\ell^S(x), respectively. Using a separate set of discovery questions, we compute the average difference between these representations:

dℓ=Ex[rℓH(x)−rℓS(x)].(5)d_\ell= \mathbb{E}_x \left[r_\ell^H(x) - r_\ell^S(x)\right]. \tag*{(5)}

This defines a fixed honest–sandbagging contrast direction at each measured block. It provides a reference axis along which we can characterize representational changes, independently of the ablation outcomes evaluated below.

Next, on held-out evaluation questions, we repeat the sandbagging run while ablating a selected set of attention heads AA at the final prompt token. We denote the resulting residual-stream representation by rℓS,A(x)r_{\ell}^{S,A}(x). Comparing this representation with the original, unablated sandbagging representation allows us to measure the change induced by the intervention. We project this change onto the previously defined contrast direction:

sℓ(x;A)=(rℓS,A(x)−rℓS(x))Tdℓ∥dℓ∥22.(6)s_{\ell}(x; A) = \frac{\left(r_{\ell}^{S,A}(x) - r_{\ell}^{S}(x)\right)^{\mathsf{T}} d_{\ell}}{\lVert d_{\ell}\rVert_{2}^{2}}. \tag*{(6)}

A positive value indicates that ablation moves the representation in the direction of the honest condition, while a negative value indicates movement in the opposite direction. The normalization expresses this movement relative to the average honest–sandbagging separation along the contrast direction estimated from the discovery questions. For visualization, we express the mean projected shift as a percentage of the corresponding honest–sandbagging separation measured on the held-out questions. This measures movement along a specific direction, rather than overall similarity between the two representations. To examine how these changes develop as more heads are removed, we progressively increase the number of ablated graph-selected heads. At each ablation budget, we compare the resulting representational shift against random head sets matched in layer distribution and honest-condition projected-output magnitude. We also measure the corresponding change in MMLU accuracy under sandbagging, relative to the unablated model. Figure 5 presents both measurements across increasing ablation budgets, allowing us to examine how representational shifts and capability recovery vary together. This analysis characterizes the effects associated with graph-localized ablation without assuming that the measured representational shift is itself the mechanism responsible for recovery.

Figure 5. Effects of increasing head ablation on MMLU. Top: representational shift toward the honest condition along the honest–sandbagging contrast direction (% of separation). Bottom: sandbagging accuracy gain (percentage points). Graph-selected ablation produces larger representational shifts and greater capability recovery than layer- and magnitude-matched random ablation.

Overall, we observe that progressively ablating graph-selected heads shifts internal representations increasingly toward the honest condition along the honest–sandbagging contrast direction. These

shifts are accompanied by greater recovery in sandbagging accuracy. Both effects are largely absent under layer- and magnitude-matched random ablation.

References

  1. [1]Vincent D Blondel, Jean-Loup Guillaume, Renaud Lambiotte, and Etienne Lefebvre. Fast unfolding of communities in large networks. Journal of Statistical Mechanics: Theory and Experiment, 2008(10):P10008, October 2008. ISSN 1742-5468. doi: 10.1088/1742-5468/2008/10/p10008. URL http://dx.doi.org/10.1088/1742-5468/2008/10/P10008.
  2. [2]Cécile Bordier, Carlo Nicolini, and Angelo Bifone. Graph analysis and modularity of brain functional connectivity networks: Searching for the optimal threshold. Frontiers in Neuroscience, Volume 11 - 2017, 2017. ISSN 1662-453X. doi: 10.3389/fnins.2017.00441. URL https://www.frontiersin.org/journals/neuroscience/articles/10.3389/fnins.2017.00441.DOI
  3. [3]Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners, 2020. URL https://arxiv.org/abs/2005.14165.
  4. [4]Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge, 2018. URL https://arxiv.org/abs/1803.05457.
  5. [5]Xiao Pan Ding, Si Jia Wu, Jiangang Liu, Genyue Fu, and Kang Lee. Functional neural networks of honesty and dishonesty in children: Evidence from graph theory analysis. Scientific Reports, 7:12085, 2017. doi: 10.1038/s41598-017-11754-4. URL https://doi.org/10.1038/s41598-017-11754-4.
  6. [6]Batu El, Deepro Choudhury, Pietro Liò, and Chaitanya K Joshi. Towards mechanistic interpretability of graph transformers via attention graphs. arXiv preprint arXiv:2502.12352, 2025.arxiv.org/abs/2502.12352
  7. [7]Daniel Filan, Stephen Casper, Shlomi Hod, Cody Wild, Andrew Critch, and Stuart Russell. Clusterability in neural networks. arXiv preprint arXiv:2103.03386, 2021.arxiv.org/abs/2103.03386
  8. [8]Nicholas Goldowsky-Dill, Bilal Chughtai, Stefan Heimersheim, and Marius Hobhahn. Detecting strategic deception with linear probes. In Forty-second International Conference on Machine Learning, 2025a. URL https://openreview.net/forum?id=C5Jj3QKQav.

Paper details

vlnc:W_skn7unhq
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents