alphaFeedback

WorksComputer Science

The Geometry of Ignorance: Detecting Suppressed Knowledge in LLMs through Activation Fragmentation

AI contributions
Not recorded for this paper
View details
Ancillary data
1 code link
View

Abstract

Evaluating whether a large language model (LLM) genuinely knows a concept remains a fundamental problem, since behavioral metrics can be fooled by suppression: a model that refuses to answer may still harbor recoverable knowledge. The framework measures the geometric coherence of anon-vectors, the differences in hidden states between a concept-specific query and its anonymized paraphrase, and shows that genuine knowledge forms a tight, low-entropy cluster while ignorance forces geometric fragmentation. Across ten instruction-tuned LLMs from three model families, all fragmentation metrics reliably separate known from unknown concepts, and post-unlearning, fragmentation geometry correlates with adversarial recovery across four attack types and five unlearning algorithms, though the direction of that relationship is shown to depend on attack methodology. Furthermore, a layer-resolved analysis reveals that different adversarial mechanisms exploit this geometry at varying depths, with high attack-specific correlations that are invisible to behavioral evaluation. Together, these results constitute a single-phase, attack-free proxy for unlearning robustness that captures aspects of parametric knowledge inaccessible to output-level metrics. A reference implementation is available at https://github.com/AdarPeleg/geometry-of-ignorance

Introduction

The expansive pre-training of Large Language Models (LLMs) inevitably leads to the memorisation of vast amounts of factual associations ([18, 17]), raising critical legal, ethical, and safety concerns regarding privacy and the generation of harmful content ([3, 22]). Traditionally, the boundaries of a model’s parametric knowledge have been evaluated through behavioral analysis, relying on surface-level metrics such as question-answering accuracy or token perplexity ([15]).

Behavioral evaluations treat the model as a black box and fail to capture how factual associations are internally stored and retrieved during the forward pass ([7]). This gap is most consequential in the context of machine unlearning, which aims to selectively erase specific concepts without retraining ([14, 6, 1]). Recent representation-level analyses reveal that unlearning interventions often result in the mere suppression or bypassing of knowledge, rather than genuine deletion ([25, 13] (Schoepf et al. 2026)). Because suppression mechanisms leave the knowledge structurally distinguishable in the parameters ([12]), it can be reliably recovered by malicious actors through activation steering ([22]). Consequently, robust evaluation must shift to fine-grained, intrinsic metrics that can detect suppressed but recoverable knowledge.

Recent mechanistic interpretability work has introduced intrinsic probes that bypass generation and measure knowledge directly within intermediate model layers ([10 Hong et al.]). However, these metrics remain entangled with prompt syntax, conflating factual knowledge with the linguistic and syntactic structure of the query. Moreover, no single-phase metric reliably predicts whether suppressed knowledge is adversarially recoverable.

To address the limitations of both behavioral evaluations and syntax-entangled intrinsic metrics, we build upon the concept of the anon-vector ([22]), defined as the directional shift between the hidden state of a concept-specific query and its identity-stripped paraphrase. We use this to introduce activation fragmentation, a geometric framework that isolates the precise footprint of parametric knowledge using two forward passes per query (no token generation, no iterative optimization).

Activation fragmentation isolates conceptual knowledge

Figure 1. Activation fragmentation isolates conceptual knowledge. Subtracting the mean hidden state of a cloud of anonymized variants cancels shared linguistic syntax. Plotting the resulting anon-difference vectors (Δvi\Delta v_i) from the origin reveals that parametric knowledge manifests as tight, low-entropy covariance clusters of aligned vectors, whereas ignorance forces geometric fragmentation across high-variance directions.

We hypothesize that unknown concepts lack parametric structure: their anon-difference vectors scatter into high-variance, fragmented directions. By contrast, genuine parametric knowledge manifests as a tight, cohesive geometric signature in activation space.

Contributions. Our main contributions are as follows:

  • We propose activation fragmentation, a fine-grained, representation-level metric that leverages anon-vectors to successfully isolate conceptual identity from syntax in intermediate model layers.

  • We demonstrate empirically that fragmentation metrics distinguish known entities (e.g., Harry Potter) from completely unknown fictitious concepts (e.g., TOFU [16]) with robust statistical separability across ten instruction-tuned LLMs from three distinct model families.

  • Activation Uniformity Scatter Score (AUSS). We establish that post-unlearning fragmentation serves as a highly accurate, attack-free predictor of elements of unlearning robustness. (e.g. AUSS dispersion metrics predict in-context learning (ICL) recoverability).

Background

Knowledge in LLM activations. LLMs encode factual associations in their parameters, with feed-forward layers functioning as key-value memories that promote specific concepts into the residual stream [9, 8]. Intermediate layers carry geometrically richer knowledge representations than the final layer [24, 20]. Skean et al. [24] measure representational compression layer-by-layer via the Rényi-2 Gram-matrix entropy: for any matrix Z∈RM×dZ \in\mathbb{R}^{M \times d},

KZ=ZZTtr⁡(ZZT)K_Z = \frac{ZZ^{\mathsf{T}}}{\operatorname{tr}(ZZ^{\mathsf{T}})}
S2(Z)=−log⁡2tr⁡(KZ2)(1)S_2(Z) = -\log_2 \operatorname{tr}(K_Z^2) \tag*{(1)}

Lower S2S_2 indicates that the MM vectors concentrate in a smaller subspace (higher representational compression), identifying where factual content is most geometrically concentrated in the hidden space. Applied to the raw query hidden states H={hℓ∗(qi)}\mathbf{H} = \{h_{\ell_*}(q_i)\}, this gives the baseline metric Reg S2S_2 [24]: Reg⁡S2=S2(H)\operatorname{Reg}_{S_2} = S_2(\mathbf{H}).

Anon-vectors and concept-differential representations. A concept-specific signal can be isolated by contrasting the hidden state of a real query with that of a semantically equivalent but identity-stripped (anonymised) paraphrase. Seyitoğlu et al. [22] exploit this to mount an activation steering attack: they compute a steering vector as the raw difference between hidden states of a concept query and its anonymised counterpart, then inject it into the residual stream to re-activate suppressed knowledge in an already-unlearned model. The ConceptVectors dataset (Hong et al.) likewise demonstrates that named entities encoded in model parameters leave verifiable parametric traces at intermediate layers, and that jailbreak attacks ride along these very directions to bypass unlearning (Hong et al.). Our anon-difference vector Δvi\Delta v_i (Eq. (2)) builds directly on the anonymisation technique of Seyitoğlu et al. [22], averaging over KK variants to stabilise the concept-differential signal. Neither prior work, however, treats the population geometry of a batch of such vectors as a diagnostic metric; that is a contribution of this paper.

Method

Metric Definitions

Anon-vectors and Entropy. Let {qi}i=1N\{q_i\}_{i=1}^{N} be NN queries about a target concept, and let hℓ(⋅)∈Rdh_\ell(\cdot) \in\mathbb{R}^{d} be the mean-pooled hidden states at layer ℓ\ell. For each qiq_i, we construct KK anonymised variants {ai(k)}k=1K\{a_i^{(k)}\}_{k=1}^{K}. The anon-difference vector at layer ℓ\ell isolates conceptual identity by subtracting the mean anonymised state:

Δvi(ℓ)=hℓ(qi)−1K∑k=1Khℓ(ai(k))(2)\Delta v_i(\ell) = h_\ell(q_i) - \frac{1}{K}\sum_{k=1}^{K} h_\ell\left(a_i^{(k)}\right) \tag*{(2)}

This requires two forward passes per query in performed experiments (in general K+1K+1 per query, with K=1K=1 in experiment sections) and no token generation. All fragmentation metrics are computed from the matrix of anon-difference vectors at a chosen layer; how that layer is selected is stated in each experimental protocol (§ 4) and expended in (Appendix § 9.§ 3). To measure representational rank concentration, we apply Gram-matrix entropy to these unnormalised vectors, defining our primary dispersion metric: AnonDiffS2_{S_2} = S2(ΔV(ℓ))S_2(\Delta V^{(\ell)}). Applying S2S_2 to concept-differential vectors rather than raw activations is a novel contribution of this work. We also evaluate two variants: RegS2_{S_2} = S2(Hℓ)S_2(H^\ell) applies the same entropy to the raw hidden-state matrix (no anonymisation subtraction), serving as a baseline; and NormAnonDiffS2_{S_2} = S2(ΔV^(ℓ))S_2(\widehat{\Delta V}^{(\ell)}) applies it to the L2L_2-normalised anon-difference vectors.

AUSS Batch-mean metrics (Ours). To assess population-level geometric consistency, we partition the NN pairs into B=10B = 10 disjoint batches (Appendix § 9.§ 3). For each batch bb, we compute the unit-normalised mean anon-difference direction d^b\hat{d}_b. We then measure geometric consistency across these BB representative directions using two primary novel matrices that aim to measure fragmentation:

  • AUSSL2_{L_2}: Mean pairwise squared L2L_2 distance between batch-mean directions.

  • AUSScos⁡2_{\cos^2}: Complement of mean pairwise squared cosine between batch-mean directions.

  • AUSSJac_{\mathrm{Jac}}: Jaccard distance between the sets of the k=32k=32 largest-magnitude coordinates of each pair of batch-mean directions, the fraction of top-activated dimensions that differ between batches.

Note that all three metrics are bounded: AUSSL2∈[0,2]_{L_2} \in[0,2] and AUSScos⁡2_{\cos^2}, AUSSJac∈[0,1]_{\mathrm{Jac}} \in[0,1]. We expect that when a concept is known, batch-mean directions cluster tightly, driving all three metrics toward zero; when unknown, they are expected to scatter, driving them toward the upper bound. This bounded range means that Cohen’s ∣d∣|d| can appear large even with modest raw gaps, because the pooled within-group standard deviation is bounded from above. A comprehensive list of additionally evaluated metric variations including base pairwise similarities, Jaccard incoherence, and covariance traces is detailed in Appendix § 10.

Entropy, Rank, and the Geometry of Parametric Knowledge

The central hypothesis of this work is that parametric knowledge leaves a geometric imprint. If a model knows a concept, diverse queries converge onto a shared subspace, producing a tight, low-entropy cluster of anon-difference vectors. Conversely, ignorance drives these vectors to scatter across the activation space, increasing entropy.

This connection between the Gram-matrix entropy S2S_2 and geometric dispersion is formalised by the following result (for proofs see Appendix § 8):

Theorem 1 (High entropy forces geometric fragmentation). Let A∈Rn×dA \in\mathbb{R}^{n \times d} be a matrix of L2L_2-normalised activation vectors and let G=AATG = AA^\mathsf{T} be the corresponding Gram matrix1 with effective

rank EffRank⁡(G)=Tr⁡(G)/λmax⁡(G)\operatorname{EffRank}(G) = \operatorname{Tr}(G)/\lambda_{\max}(G). Then the mean pairwise squared Euclidean distance satisfies

DL22≥2−2EffRank⁡(G).D_{L_2}^{2} \ge2 - \frac{2}{\operatorname{EffRank}(G)}.

Since 2S2/2≤EffRank⁡(G)≤2S22^{S_2/2} \le\operatorname{EffRank}(G) \le2^{S_2} (Proposition 1, Appendix § 8), high S2S_2 forces the effective rank upward, which structurally guarantees spatial dispersion. The complementary direction holds under a natural assumption: when all pairwise cosine similarities are non-negative (i.e., vectors share a common half-space). For anon-vectors this is geometrically motivated: if a model parametrically encodes a concept, every query about that concept shifts the hidden state toward the same concept direction, so the differences Δvi\Delta v_i collectively point away from the anonymised baseline in a consistent orientation. Under this assumption, a matching upper bound applies:

Theorem 2 (Low entropy forces geometric clustering). Under the same setup as Theorem 1, if additionally Gij≥0G_{ij} \ge0 for all i≠ji \ne j, then

DL22≤2nn−1(1−2−S2(G)).D_{L_2}^{2} \le\frac{2n}{n-1}\left(1-2^{-S_2(G)}\right).

In particular, DL22→0D_{L_2}^{2} \to0 as S2(G)→0S_2(G) \to0.

Together, these bounds demonstrate that subspace-compression metrics directly reflect the presence or absence of a coherent concept representation, effectively isolating knowledge from mere behavioural suppression.

Semantic Testing

Anon-vectors over raw activations. Raw activations encode both conceptual content and prompt syntax. Subtracting the anonymised baseline (denoted as Δvi\Delta v_i) cancels shared syntactic components, isolating the conceptual signal. This produces a substantially stronger discriminative signal than working with raw activations directly (Table 1).

Metric∣d∣|d|Gap [95% CI]padjp_{\mathrm{adj}}
Dispersion (↓ HP expected; 10/10 models)
AUSScos2_221.510.686 [0.667, 0.705]0.002**
AUSSL2_218.911.203 [1.166, 1.239]0.002**
NormAnonDiff S2∗_2^*4.211.206 [1.022, 1.332]0.002**
AnonDiff S2∗_2^*3.500.804 [0.671, 0.941]0.002**
Reg S2∗_2^*0.920.117 [0.054, 0.200]0.002**
Coherence (↑ HP expected)
∥Δvˉ∥\lVert\Delta\bar{v}\rVert1.690.182 [0.118, 0.244]0.002**
AnonDiff cos1.290.128 [0.069, 0.185]0.010**
Reg cos†1.250.044 [0.023, 0.065]0.002**
AnonDiff Lˉ2\bar{L}_21.212.634 [1.412, 3.946]0.002**

Table 1. RQ1: Metric discriminability (HP known vs. TOFU unknown) across 10 LLMs, evaluated at the per-metric layer maximising HP–TOFU separation, sorted by Cohen’s ∣d∣|d|. Gap: mean ∣|HP–TOFU∣| with 95% bootstrap CI. padjp_{\mathrm{adj}}: Wilcoxon signed-rank, BH-corrected (n=10n=10); **p<0.01p<0.01. †: concept-differential vectors. ‡\ddagger: raw-activation baseline, no anov-vector subtraction. Per-model values in Appendix (Tables 5–6).

Semantic vs. generation artifacts. Behavioral evaluations measure accessible outputs, not latent storage. Since representational suppression mechanisms can block factual recall without deleting the underlying knowledge ([13, 25]), evaluating hidden-state geometry provides a strictly more rigorous proxy for true parametric erasure. A model that refuses to answer, whether through RLHF-driven refusal or explicit unlearning, may still harbor recoverable knowledge in its hidden states; generation-based metrics will report success while the knowledge persists, making them insufficient as a sole evaluation criteria.

The measurement problem: no true oracle. The ideal ground truth for a knowledge-detection metric would be a model trained from scratch on a corpus that provably excludes the target concept, making its ignorance logically certain. In practice, this is prohibitively expensive and inaccessible: controlled pre-training runs require substantial compute, carefully curated multi-billion-token datasets, and institutional resources. There is, therefore, no true oracle for parametric knowledge. We cannot directly observe what a model knows, only what it outputs, and output-level proxies risk circularity when used to calibrate the very metrics designed to go beyond them.

Bogus data as a proxy for not knowing. We sidestep this measurement problem by grounding knowledge in dataset construction rather than model training. As the negative class, we draw from data. For example, the TOFU benchmark ([16]) consists entirely of fictitious authors invented for the benchmark and absent from any pre-training corpus. Because these entities were never written about anywhere, no model can have parametric knowledge of them, and there is no plausible mechanism by which such knowledge could exist. As the positive class, we can draw from Harry Potter (HP) QA pairs; HP knowledge is confirmed to persist in the parameters of most LLMs as a consequence of large-scale pre-training ([3, 22]). A metric that separates HP from TOFU under this protocol has therefore demonstrated genuine knowledge detection, not behavioral correlation. The specific datasets and model counts used in our evaluation are described in § 4.

Experiments

  1. RQ1: How can we measure the binary existence of knowledge in LLMs? Can we suggest a metric that maximizes separation between known and unknown data?

  1. RQ2: How can we measure fine-grained knowledge extraction ability from LLMs? Which metric has the highest correlation with Attack success rate (ASR)?

RQ1: Fragmentation as a Proxy for Parametric Knowledge

Setup. We evaluate all nine fragmentation metrics under the protocol presented in § 3.3 across ten instruction-tuned LLMs from three families: Qwen (×4\times4), Gemma (×2\times2), and LLaMA (×4\times4), ranging from 7B to 14B parameters (Appendix § 9), using batch size B=10B=10 (full sensitivity sweep over B∈{1,2,5,10,20,50}B \in\{1, 2, 5, 10, 20, 50\} justifying this choice in Appendix § 9.§ 2). The known-concept class consists of 96 QA pairs drawn from the Harry Potter novels; the unknown-concept class consists of 100 QA pairs from the TOFU benchmark ([16]). All ten models score 0% QA accuracy on TOFU, casually confirming that no knowledge of these fictitious entities exists. For each model, fragmentation is computed at the per-metric layer that maximizes HP–TOFU separation. Appendix § 9.§ 3 also reports a fixed, deployable heuristic, the layer at 0.8×0.8\times relative model depth, requiring no per-model search, that matches the oracle sweep’s discriminability.

Results. All nine metrics correctly separate HP from TOFU across all 10 models and survive BH (Benjamini-Hochberg false discovery rate control at α=0.05\alpha= 0.05) correction (Table 1; per-model raw values in Appendix Tables 5–6). AUSScos2_2 achieves the largest separation (∣d∣=21.51|d|=21.51, padj=0.002p_{\mathrm{adj}}=0.002) and AUSSL2_2 is second (∣d∣=18.91|d|=18.91), both dispersion higher for TOFU than HP in 10/10 models; the scale-invariant classifier check below (AUC =1.0=1.0) confirms this separation holds independent of each metric’s raw scale.

Entropy-based dispersion metrics (NormAnonDiff S2_2, AnonDiff S2_2, Reg S2_2; § 3.1) likewise reach 10/10 with large effect sizes. Coherence metrics, i.e. centroid norm ∥Δvˉ∥\lVert\Delta\bar{v}\rVert, Reg cos, AnonDiff cos, and AnonDiff Lˉ2\bar{L}_2, all show strictly higher values for HP (8/10 or 10/10 models), confirming that a known concept induces a tighter, more directionally consistent hidden-state geometry than a purely fictional one. Effect sizes reflect per-metric peak-layer selection; performance under a label-free layer protocol would be lower (Appendix § 9.§ 3).

The separation generalizes beyond a single narrow contrast and is not a scale artifact. To rule out that this separation reflects one narrow contrast, we extend the comparison to Harry Potter (retain split) and Star Wars against the same TOFU baseline; all 24 BH-corrected comparisons across the 8 AUSS metrics are signif-

icant (q∈[0.0063,0.0260]q \in[0.0063, 0.0260]), with HP-retain effect sizes reaching d=6.20d=6.20, larger than the original HP-forget contrast (Appendix Table 7). A scale-invariant leave-one-model-out classifier trained on the standardized 8-metric peak-layer feature vector, evaluated on the original HP-forget vs. TOFU pair, confirms the known/unknown separation is not an artifact of raw effect-size scale: Logistic Regression reaches 100% accuracy (AUC =1.0=1.0, 9/9 models fully correct) on the fresh, direction-corrected extraction (Appendix Table 8).

RQ2: Fragmentation as a Predictor of Unlearning Robustness

Setup. RQ1 established that fragmentation geometry reflects whether knowledge exists. RQ2 asks whether it also reflects how recoverable that knowledge remains after unlearning. Fragmentation metrics for each model–concept–method triple are computed at the layer that minimises S2_2 over the post-unlearning forget-set queries (label-free protocol; Appendix § 9.§ 3). The layer-resolved sweep evaluates every transformer layer independently (Appendix § 11.§ 5).

Models and unlearning methods. We apply five unlearning methods spanning output-level suppression to representation-level distortion: GA ([26]) negates the forget-set CE loss; DPO ([19]) treats forget pairs as rejected and retain pairs as chosen; NPO ([27]) applies a negative preference loss against a frozen reference; NPO+KL (Zhang et al., ...)

  1. augments NPO with KL retain regularisation; and RMU [12] steers forget-set hidden states at a fixed intermediate layer toward a random target direction. GA and DPO act primarily on outputs, whereas RMU explicitly distorts internal representations. This distinction is reliably captured by fragmentation metrics even when the two approaches yield indistinguishable ROUGE-L scores (Appendix § 9.§ 5). These methods are applied to three instruction-tuned models: LLaMA-2-7B-chat, Meta-LLaMA-3-8B-Instruct, and Qwen2.5-7B-Instruct, each also evaluated as an unmodified Base control, across three target concepts: Harry Potter (Eldan and Russinovich), Star Wars, and William Shakespeare (Hong et al.) (3×6×3=543 \times6 \times3=54 conditions; incomplete runs shown as “—”). A run is verified (✓) when Forget ROUGE-L <0.10< 0.10 and Retain ROUGE-L ≥0.80×\ge0.80 \times baseline; surface suppression alone does not guarantee robustness. Four attacks then probe recoverability: Activation Steering [22], ICL [2], GCG [28], and MIA (Fu et al.) at geometric, contextual, gradient, and distributional levels, respectively; lower values indicate stronger unlearning (Appendix § 9.§ 6). Correlation analysis excluding Base and WHP (Who’s Harry Potter; Eldan and Russinovich) runs (n=44n=44–45 non-base runs with complete attack data).

Results. Figure 2 summarizes attack success by method across all three models; full per-run values are in Appendix § 11.§ 7 (Table 13–15). Table 2 shows every BH-significant geometry predictor per attack (n=44n=44–45 non-Base, non-WHP runs); full Spearman table in Appendix Table 9.

MetricICLGCGSteering
AUSSL2_{\mathrm{L2}}−0.51∗∗-0.51^{**}––
AUSScos⁡2_{\cos^2}−0.50∗∗-0.50^{**}––
∥Δv^∥\lVert\Delta\hat{v}\rVert+0.51∗∗†+0.51^{**\dagger}––
Reg cos–−0.51∗∗-0.51^{**}–
Reg S2S_2–+0.45∗∗+0.45^{**}–
AnonDiff S2S_2––+0.48∗∗+0.48^{**}

Table 2. RQ2: BH-significant geometry predictors per attack (Spearman ρ\rho, n=44n=44–45 non-Base non-WHP runs with complete attack data, BH-corrected within each attack’s 9-metric column). All metrics shown survive BH at q<0.05q<0.05; full 9-metric table (all attacks, including non-significant cells) in Appendix Table 9.

Mean attack success per unlearning method across four attack types

Figure 2. RQ2: Mean attack success per unlearning method across four attack types (2×2 grid), averaged over three concepts (error bars = std). Bars are grouped by unlearning method; colour indicates model (LLaMA-2-7B: blue, LLaMA-3-8B: green, Qwen2.5-7B: orange-red). Dashed lines mark chance level (0.5 for AUC-based attacks; 0 for ICL Δ\Delta). GA is the only method that consistently drives Steer-AUC near chance across all three models. LLaMA-3 (green) reaches GCG Acc = 0 under every method, revealing strong model-family variation in gradient-attack vulnerability. ICL Δ\Delta is near zero across all methods and models; the geometric correlation with ICL recoverability emerges from the layer-resolved analysis (Table 11), not from this aggregate view. Full per-run values in Appendix § 11 (Table 13–Table 15).

MethodCpt✓Forget ROUGE-L↓Geometry ℓ∗\ell^{*} ∥Δv^∥\lVert\Delta\hat{v}\rVert↑AUSSL2_2↓AUSScos2_2↓Steer-AUCSteer-WFICL Δ\DeltaMIAGCG
BaseHP0.1310.8780.5070.4390.4280.265+0.0000.8270.000
SW0.1520.8760.5160.4470.4490.296+0.1200.9550.000
WS0.0900.9110.3790.3410.5030.274+0.0400.8370.000
GAHP✓0.0000.8230.7170.5530.5000.000+0.0000.6780.000
SW✓0.0000.8750.5210.4420.5000.000+0.0000.6950.000
WS✓0.0000.8550.5980.4750.0200.000+0.0000.6150.000
DPOHP✓0.0820.8680.5490.4690.6940.283−0.0400.8730.800
SW✓0.0980.8660.5540.4740.6730.281+0.0400.9860.800
WS✓0.0920.9130.3710.3350.6580.287+0.0800.9201.000
NPOHP0.1270.8600.5800.4920.7560.286+0.0000.8050.600
SW0.1080.8770.5130.4460.6680.281+0.0400.9371.000
WS✓0.0920.9220.3330.3030.7950.295+0.0400.7481.000
NPO+KLHP✓0.0980.8540.6030.5070.7690.259−0.0400.4490.600
SW0.1050.8670.5500.4730.7460.272+0.0000.2810.600
WS✓0.0910.9170.3540.3200.8230.286+0.0400.1621.000
RMUHP0.1310.8780.5090.4410.7100.264+0.0000.8061.000
SW0.1430.8750.5190.4490.6940.300+0.0400.9511.000
WS✓0.1000.9080.3880.3480.7540.267+0.0800.7871.000
WHPHP0.2550.8580.5850.4940.7560.248−0.0400.4420.000
SW0.1750.8560.5950.5050.7080.269+0.0000.2760.000
WS0.1350.9170.3530.3190.8260.281+0.0400.1810.000

Table 13. RQ2: Full post-unlearning results, LLaMA-2-7B-chat. ROUGE-L↓: forget-set ROUGE-L after unlearning. ✓: verified (ROUGE-L < 0.10 & retain ≥ 0.80× base). ∥Δv^∥\lVert\Delta\hat{v}\rVert↑: centroid norm; AUSSL2_2↓, AUSScos2_2↓: dispersion (per-method peak layer ℓ∗\ell^{*}). Steer-AUC↓: steering AUC; Steer-WF↓: mean steered word-frequency score. ICL Δ\Delta↑: ICL accuracy minus baseline. MIA↓: membership inference AUC; GCG↓: GCG ASR. Blank cells: checkpoint unavailable.

AUSS fragmentation geometry predicts ICL recoverability; entropy-family metrics predict GCG and Steering. ICL is the most significantly predictable attack via the AUSS family: AUSSL2_{\mathrm{L2}} (ρ=−0.51∗∗\rho=-0.51^{**}), centroid norm (ρ=+0.51∗∗\rho=+0.51^{**}), and AUSScos⁡2_{\cos^2} (ρ=−0.50∗∗\rho=-0.50^{**}) all survive BH correction; methods that geometrically fragment hidden-state representations more thoroughly are harder to reach via in-context priming. GCG and Steering are predictable in aggregate via the Gram-entropy (Reg) and AnonDiff families rather than AUSS: Reg cos (ρ=−0.51∗∗\rho=-0.51^{**}) and Reg S2S_2 (ρ=+0.45∗∗\rho=+0.45^{**}) predict GCG, and AnonDiff S2S_2 (ρ=+0.48∗∗\rho=+0.48^{**}) predicts Steering. MIA is omitted: no metric survives BH correction (Appendix Table 9). Leave-one-run-out validation across verified unlearning runs (n=26n=26–27) confirms ICL is the only attack

that is both leave-one-out stable (8/8 metrics) and BH-significant (7/8); Steering (8/8) and GCG (7/8) are largely stable but not significant, while MIA (2/8) is neither reliably stable nor significant (Appendix § 11.§ 6).

†∥Δv^∥\lVert\Delta\hat{v}\rVert is the exact algebraic dual of AUSSL2_{\mathrm{L2}} (identical ∣ρ∣|\rho|, opposite sign by construction, since AUSSL2=2−2cˉ_{\mathrm{L2}}=2-2\bar{c} for mean pairwise cosine cˉ\bar{c} and ∥Δv^∥\lVert\Delta\hat{v}\rVert is a monotonic function of the same cˉ\bar{c}), not an independent confirmation.

Layer-resolved geometry concentrates late in the network for the two attacks it reliably predicts. The aggregate correlations in Table 2 reflect peak-layer values averaged over all metric-layer combinations. When we instead sweep Spearman ρ\rho across every transformer layer for both AUSS and entropy metrics (Figure 3; full results in Appendix § 11.§ 5), only GCG and ICL survive global BH correction, and both peak in the same late-network region:

Spearman correlation by layer for the GCG attack

Figure 3. Spearman ρ\rho by layer, GCG attack. Each line is one AUSS fragmentation metric; the peak at L29 (AUSSJac_{\mathrm{Jac}}, ρ=−0.853\rho=-0.853) is marked. The strongest single predictor overall is NormAnonDiff S2S_2 at L30 (ρ=−0.832\rho=-0.832, entropy family; Appendix § 11.§ 5). GCG recoverability is governed by late-layer geometry, close to where ICL’s own peak falls (Appendix § 11.§ 5). (Full four-attack sweep in Appendix § 11.§ 5.)

GCG: AUSSJac_{\mathrm{Jac}} at L29 reaches ρ=−0.853\rho=-0.853 (p=0.0008p=0.0008, n=11n=11 runs with complete layer-resolved data, smaller than the n=44n=44–45 aggregate pool), with NormAnonDiff S2S_2 close behind at L30 (ρ=−0.832\rho=-0.832, p=0.0015p=0.0015); the gradient-based suffix attack’s signal is shaped by whichever layer the model’s final next-token decision is most sensitive to.

ICL: Batch_Cov__TopEig at L28 reaches ρ=−0.886\rho=-0.886 (p<0.0001p<0.0001, n=15n=15), one layer from GCG’s own peak; in-context priming must similarly override the model’s late-stage, generation-ready representation.

MIA and Steering show only weak, non-BH-significant layer-specific signal in the current dataset (best entropy-family points at L31–L32, ρ≈0.55\rho\approx0.55–0.65, uncorrected p<0.05p<0.05 but qglobal≥0.22q_{\mathrm{global}}\ge0.22); we report these descriptively rather than as reliable predictors (Appendix Table 11).

The highest-performing layer is highly predictable across models, consistently residing within the 0.80–0.88 range of total model depth. A single fixed relative depth of 0.8× model depth, with no per-model information at all, already gives 8/8 metrics correct-direction and significant at n=9n=9; leave-one-model-out transfer of this depth achieves 72/72 (model, metric) pairs correct-direction, identical to an oracle per-model search (Appendix § 9.§ 3).

Benchmarking Against Prior Intrinsic Probes

Trivial raw-similarity baselines. Table 9 already includes head-to-head comparisons against trivial intrinsic baselines: the Reg S2S_2 (adapted from Skean et al. [24]) and Reg cos rows measure raw, non-anonymised hidden states with no anon-vector subtraction.

Table 9. Spearman ρ\rho between all fragmentation metrics and attack-success rate across n=44n=44–4545 post-unlearning runs (excluding Base and WHP). ∗∗/∗/†^{**/*/\dagger}: BH-adjusted p<0.01/0.05/0.10p < 0.01/0.05/0.10 within each attack column (9 metrics). ∗^{*}: adaptation of Gram-matrix entropy to concept-differential vectors (Skean et al., [24]). Bold: survives BH at p<0.05p < 0.05. Only bold, starred cells (q<0.05q<0.05) represent statistically robust findings; unmarked values are shown for completeness so the full 9-metric × 4-attack grid is auditable, and should not be read as evidence of a relationship. None of MIA’s AUSS/AnonDiff correlations survive BH correction; see § 4.

MetricSteeringICLGCGMIA
AUSS dispersion
AUSSL2_{L2}+0.00−0.51∗∗^{**}−0.06+0.04
AUSScos⁡2_{\cos^2}+0.06−0.50∗∗^{**}−0.01+0.10
∥Δv^∥\lVert\Delta\hat{v}\rVert−0.00+0.51∗∗^{**}+0.06−0.04
AnonDiff
AnonDiff cos⁡‾\overline{\cos}−0.24+0.27−0.09−0.15
AnonDiff S2∗S^*_{2}+0.48∗∗^{**}−0.22+0.22+0.20
AnonDiff Lˉ2\bar{L}_{2}+0.15+0.04−0.05−0.07
Reg (raw-activation baseline)
Reg S2∗S^*_{2}+0.27+0.05+0.45∗∗^{**}+0.29
Reg cos⁡‾\overline{\cos}−0.31+0.01−0.51∗∗^{**}−0.27
Reg Lˉ2\bar{L}_{2}−0.07−0.09−0.24−0.16

Head-to-head against published method. We benchmark AUSS directly against the representational metrics of Xu et al. [25] (PCA-similarity, PCA-shift, CKA), which, unlike our method, require both pre- and post-unlearning model checkpoints. Across all 54 RQ2 configurations, BH correction over the full 44-test pool shows a mixed, attack-dependent picture: AUSS’s best metric outperforms Xu et al.’s best metric on ICL (ρ=−0.572\rho=-0.572, q=0.0001q=0.0001 vs. ρ=+0.381\rho=+0.381, q=0.0212q=0.0212) and Steering (ρ=−0.452\rho=-0.452, q=0.0042q=0.0042 vs. ρ=+0.428\rho=+0.428, q=0.0076q=0.0076), while Xu et al.’s CKA outperforms AUSS’s best metric on GCG (ρ=+0.374\rho=+0.374, q=0.0212q=0.0212 vs. ρ=−0.315\rho=-0.315, q=0.068q=0.068, not BH-significant) and MIA (ρ=+0.336\rho=+0.336 vs. ρ=+0.085\rho=+0.085). 11 of 44 tests survive BH correction; 8 of those 11 are AUSS metrics (full 44-test table in Appendix Table 10).

Discussion

The geometry of parametric knowledge. RQ1 establishes that activation fragmentation reliably distinguishes known from unknown concepts, and the geometry explains why. The anon-vector construction subtracts the mean hidden state of identity-stripped paraphrases, canceling the shared linguistic and syntactic signal and leaving a residual that reflects only the concept-specific content encoded at that layer. When a model parametrically knows a concept, its internal representations across distinct queries about that concept agree on a direction: the residual vectors form a tight, low-entropy cluster. When the concept is absent from the parameters, no such agreement exists: the residual after syntax cancellation is noise, and the vectors scatter into high-variance fragmented directions. This geometric signature is what our metrics quantify, and it is entirely invisible to behavioral evaluation.

Architecture-agnostic universality. The coherence signature described above is not an artifact of any particular architecture. The 10/10 correct-direction result for the strongest metrics (AUSScos2_{\mathrm{cos}^2}, AUSSL2_{L_2}, AnonDiff S2S_2) in RQ1 spans three model families (Qwen, Gemma, and LLaMA) across different architectures, training recipes, and parameter counts from 2B to 14B. This cross-architecture consistency suggests that the geometric signature of parametric knowledge is not idiosyncratic to any particular model design. Fragmentation metrics qualify as model-family-neutral auditing tools, requiring no architecture-specific calibration.

Suppression versus deletion. A consistent RQ2 pattern is that reducing Forget ROUGE-L does not reliably reduce fragmentation: GA applied to LLaMA-3-8B reaches Forget ROUGE-L = 0.000 yet leaves AUSSL2_{L_2} and ∥Δv‾∥\lVert\overline{\Delta v}\rVert nearly unchanged from the Base model. GA and DPO act primarily on the output distribution, leaving internal concept geometry largely intact, whereas RMU, which steers representations directly, shifts fragmentation more noticeably but does not erase it. This matches the redirection-rather-than-deletion picture reported by Xu et al. [25] and Schoepf et al. (2026): representation-level interventions come closest to genuine deletion, and fragmentation metrics measure how far even they fall short.

Layer-resolved geometry concentrates late in the residual stream for the attacks it reliably predicts. Of the four attacks, GCG and ICL are the two whose layer-specific signal survives BH correction at the global scope (Appendix § 11.§ 5), and both concentrate their strongest signal in the same late-network region: GCG peaks at L29 (AUSSJac_{\mathrm{Jac}}, ρ=−0.85\rho=-0.85) and ICL at L28 (Batch_Cov_TopEig, ρ=−0.89\rho=-0.89), one layer apart. This is mechanistically coherent rather than coincidental. GCG’s adversarial suffix is optimised end-to-end by back-propagating through the entire network, so its gradient signal is shaped by whichever layer the model’s final next-token decision is most sensitive to. ICL must similarly override the model’s late-stage, generation-ready representation to redirect its output. Both attacks are therefore best diagnosed by measuring fragmentation deep in the residual stream rather than at an early or intermediate depth. MIA and Steering show only weak, non-BH-significant layer-specific signal in the current dataset (best entropy-family points at L31–L32, ρ≈0.55\rho\approx0.55–0.65, uncorrected p<0.05p<0.05 but not surviving global correction); we treat these descriptively rather than as reliable single-layer predictors. Appendix § 9.§ 3 reports a practical, label-free layer-selection rule that performs close to this attack-specific oracle search without per-attack calibration.

Attack-dependent sign phenomena. The correlation’s sign is not uniform across attacks (Table 9): AUSSL2_{L_2} predicts ICL negatively (ρ=−0.51\rho=-0.51), while Reg S2S_2 and AnonDiff S2S_2 predict GCG and Steering positively (ρ=+0.45\rho=+0.45, ρ=+0.48\rho=+0.48). Based on the different mechanisms by which these attacks recover knowledge, we expect their correlation with fragmentation to differ in signal. ICL recovers "knowledge" through the model’s own generation, which plausibly requires a single coherent direction, empirically it seems that fragmentation tracks the absence of one. GCG and Steering instead work by searching or intervening on the representation directly, where possibly a more dispersed representation offers more directions to exploit, which would explain the opposite sign. We discuss in Limitations how this account could be further validated in future work.

Practical implications for unlearning evaluation. Activation fragmentation can serve as a computationally cheap, pre-attack screening step in unlearning evaluation pipelines. If fragmentation metrics confirm that the concept geometry has been genuinely disrupted, practitioners can have higher confidence that the unlearning is not merely suppression; if fragmentation remains intact, that is a strong signal that adversarial recovery will succeed without running expensive attacks. Its forward-pass-only design makes it applicable even where generation is prohibited, such as API-access audits subject to output restrictions.

Related Work

Parametric Knowledge and Intrinsic Evaluation. Factual associations are geometrically structured within intermediate transformer layers ([18, 9, 17]). While recent intrinsic probes aim to evaluate this knowledge without token generation ([10 Hong et al.]), they frequently conflate conceptual content with query syntax or require a reference model. We build upon the Gram-matrix entropy framework ([24]) and the geometric grounding of intermediate layers ([20]), but depart from prior work by measuring the population geometry of anon-vectors. This isolates conceptual identity from structural artifacts without relying on pre-unlearning baselines.

Machine Unlearning and Adversarial Robustness. Current unlearning interventions—spanning gradient ascent, preference optimisation, and representation steering ([26, 19, 12]})—frequently produce suppression rather than genuine deletion ([25, 13] (Schoepf et al. 2026)). Because knowledge remains structurally intact, adversarial techniques such as activation steering ([22]), in-context learning ([2]), and GCG ([28]) can bypass behavioral safeguards to recover suppressed facts. Prior representation-level audits either require pre- and post-unlearning model comparisons ([25]) or the active execution of these costly attacks ([15]). In contrast, our fragmentation framework offers a single-phase, generation-free proxy designed to predict vulnerability to these exact recovery channels using a single geometric forward pass.

Limitations

Our evaluation has several limitations. First, deterministic string substitution for anonymisation risks tokenizer-driven lexical artifacts. We mitigate this using morphologically similar names and multi-variant averaging (K=5K = 5) in RQ2 (supported by consistent ablations in Appendix § 9.§ 2), though future work should explore tokenization-matched replacements, LLM paraphrasing, or systematically benchmarking alternative anonymisation pipelines beyond the scheme used here. Second, relying on a single anonymised variant (K=1K = 1) per query in RQ1 may retain idiosyncratic phrasing, which we offset by averaging across N=96N = 96–100100 queries per concept. Third, our batch-based construction requires B≥2B \ge2 forget-set samples to define a valid direction vector, which may not suit single-sample or very small-sample unlearning settings; a promising extension augments a single target sample with neutral or synthetic data to compute a pseudo-batch direction, which we leave to future work. Fourth, the explanation offered in Section 5 for why fragmentation predicts ICL and GCG/Steering with opposite sign is inferred from the correlational pattern alone; we do not validate it against the model’s actual generations or intermediate reasoning traces, and confirming it would require inspecting chain-of-thought or generation-level outputs alongside the geometry, which we leave to future work. Finally, our concept coverage in RQ1, while now validated across four conditions (Harry Potter forget/retain, Star Wars, TOFU; Appendix § 11.§ 2), remains limited to English-language fictional/factual domains. Expanding to graded knowledge levels and non-fiction technical domains is necessary to fully confirm the generality of our findings.

Mathematical Proofs

This section provides complete proofs for the theoretical results stated in § 3.2.

Proof of Theorem 1

Theorem (High entropy forces geometric fragmentation). Let A∈Rn×dA \in\mathbb{R}^{n \times d} be a matrix of L2L_2-normalised activation vectors and let G=AA⊤G = AA^{\top} be the corresponding Gram matrix with EffRank⁡(G)=Tr⁡(G)/λmax⁡(G)\operatorname{EffRank}(G) = \operatorname{Tr}(G)/\lambda_{\max}(G). Then the mean pairwise squared Euclidean distance satisfies

DL22≥2−2EffRank⁡(G).D_{L_2}^{2} \ge2 - \frac{2}{\operatorname{EffRank}(G)}.

Proof. Let v1,…,vn∈Rdv_1,\ldots,v_n \in\mathbb{R}^{d} denote the rows of AA, with ∥vi∥2=1\lVert v_i\rVert_2 = 1 for all ii.

Step 1 (Gram matrix structure). Because the rows are unit vectors, Gij=vi⊤vjG_{ij} = v_i^{\top}v_j and the diagonal satisfies Gii=1G_{ii} = 1, so Tr⁡(G)=n\operatorname{Tr}(G) = n. Hence EffRank⁡(G)=n/λmax⁡(G)\operatorname{EffRank}(G) = n/\lambda_{\max}(G).

Step 2 (Distance–cosine identity). For any pair i≠ji \ne j,

∥vi−vj∥22=∥vi∥22−2vi⊤vj+∥vj∥22=2−2Gij.\lVert v_i - v_j\rVert_2^2 = \lVert v_i\rVert_2^2 - 2v_i^{\top}v_j + \lVert v_j\rVert_2^2 = 2 - 2G_{ij}.

Step 3 (Express DL22D_{L_2}^{2} via the Gram matrix). Define the mean off-diagonal cosine similarity

cˉ=1n(n−1)∑i≠jGij,\bar{c} = \frac{1}{n(n-1)}\sum_{i \ne j}G_{ij},

so that DL22=2−2cˉD_{L_2}^{2} = 2 - 2\bar{c}. Summing all entries of GG and separating diagonal from off-diagonal,

1⊤G1=Tr⁡(G)+∑i≠jGij=n+n(n−1)cˉ.\mathbf{1}^{\top}G\mathbf{1} = \operatorname{Tr}(G) + \sum_{i \ne j}G_{ij} = n + n(n-1)\bar{c}.

Solving for cˉ\bar{c} and substituting:

DL22=2−2cˉ=2n−21⊤G1/nn−1.D_{L_2}^{2} = 2 - 2\bar{c} = \frac{2n - 2\mathbf{1}^{\top}G\mathbf{1}/n}{n-1}.

Step 4 (Rayleigh quotient bound). For any unit vector xx, λmax⁡(G)≥x⊤Gx\lambda_{\max}(G) \ge x^{\top}Gx. Taking x=1/nx = \mathbf{1}/\sqrt{n} (which satisfies ∥x∥2=1\lVert x\rVert_2 = 1):

λmax⁡(G)≥1⊤G1n.\lambda_{\max}(G) \ge\frac{\mathbf{1}^{\top}G\mathbf{1}}{n}.

Step 5 (Conclusion). From Step 4, 1⊤G1/n≤λmax⁡(G)\mathbf{1}^{\top}G\mathbf{1}/n \le\lambda_{\max}(G), so 2n−21⊤G1/n≥2n−2λmax⁡(G)2n - 2\mathbf{1}^{\top}G\mathbf{1}/n \ge2n - 2\lambda_{\max}(G). Dividing by n−1>0n - 1 > 0:

DL22=2n−21⊤G1/nn−1≥2(n−λmax⁡(G))n−1=2nn−1(1−1EffRank⁡(G)).\begin{aligned} D_{L_2}^{2} = \frac{2n - 2\mathbf{1}^{\top}G\mathbf{1}/n}{n-1} \ge\frac{2(n-\lambda_{\max}(G))}{n-1} \\ &= \frac{2n}{n-1}\left(1-\frac{1}{\operatorname{EffRank}(G)}\right). \end{aligned}

Since n/(n−1)≥1n/(n-1) \ge1 for all n≥2n \ge2,

DL22≥2(1−1EffRank⁡(G))=2−2EffRank⁡(G).D_{L_2}^{2} \ge2\left(1-\frac{1}{\operatorname{EffRank}(G)}\right) = 2-\frac{2}{\operatorname{EffRank}(G)}.

□

Remark. The proof actually establishes the tighter bound DL22≥2nn−1(1−1/EffRank⁡(G))D_{L_2}^{2} \ge\frac{2n}{n-1}(1-1/\operatorname{EffRank}(G)); the theorem states the slightly weaker form 2−2/EffRank⁡(G)2-2/\operatorname{EffRank}(G), which is independent of nn and easier to interpret. The bound is tight (up to the n/(n−1)n/(n-1) factor) when all nn vectors are mutually orthogonal: then G=InG = I_n, λmax⁡(G)=1\lambda_{\max}(G) = 1, EffRank⁡(G)=n\operatorname{EffRank}(G) = n, and DL22=2=2−2/n+2/nD_{L_2}^{2} = 2 = 2-2/n+2/n.

Entropy–EffRank Relationship

The following proposition formalises the claim in § 3.2 that a high Rényi-2 Gram-matrix entropy S2S_2 forces a large effective rank, completing the implication chain high S2⇒S_2 \Rightarrow high EffRank ⇒\Rightarrow large DL22D_{L_2}^{2}.

Proposition 1 (Entropy–EffRank sandwich). Let GG be a positive semi-definite matrix with normalised spectral distribution pi=λi(G)/Tr⁡(G)≥0p_i = \lambda_i(G)/\operatorname{Tr}(G) \ge0, ∑ipi=1\sum_i p_i = 1, ordered p1≥p2≥⋯≥0p_1 \ge p_2 \ge\cdots\ge0. Define S2(G)=−log⁡2(∑ipi2)S_2(G) = -\log_2\left(\sum_i p_i^2\right) and EffRank⁡(G)=1/p1\operatorname{EffRank}(G) = 1/p_1. Then

2S2(G)/2≤EffRank⁡(G)≤2S2(G).2^{S_2(G)/2} \le\operatorname{EffRank}(G) \le2^{S_2(G)}.

Proof. Upper bound. Because p1≥pip_1 \ge p_i for every ii,

∑ipi2≤p1∑ipi=p1.\sum_i p_i^2 \le p_1\sum_i p_i = p_1.

Taking reciprocals (both sides positive) reverses the inequality: 1/p1≤1/∑ipi21/p_1 \le1/\sum_i p_i^2, i.e., EffRank⁡(G)≤2S2(G)\operatorname{EffRank}(G) \le2^{S_2(G)}.

Lower bound. Trivially, p12≤∑ipi2p_1^2 \le\sum_i p_i^2 (one non-negative term cannot exceed their sum). Taking square roots: p1≤∑ipi2=2−S2(G)/2p_1 \le\sqrt{\sum_i p_i^2} = 2^{-S_2(G)/2}. Hence EffRank⁡(G)=1/p1≥2S2(G)/2\operatorname{EffRank}(G) = 1/p_1 \ge2^{S_2(G)/2}.

Corollary 1 (High S2S_2 forces geometric fragmentation). For any matrix A∈Rn×dA \in\mathbb{R}^{n \times d} of L2L_2-normalised vectors with Gram matrix G=AATG = AA^\mathsf{T},

DL22≥2−2⋅2−S2(G)/2=2(1−2−S2(G)/2).D_{L_2}^2 \ge2 - 2 \cdot2^{-S_2(G)/2} = 2\left(1 - 2^{-S_2(G)/2}\right).

In particular, DL22→2D_{L_2}^2 \to2 as S2(G)→∞S_2(G) \to\infty.

Proof. From Proposition 1, EffRank⁡(G)≥2S2(G)/2\operatorname{EffRank}(G) \ge2^{S_2(G)/2}, so 1/EffRank⁡(G)≤2−S2(G)/21/\operatorname{EffRank}(G) \le2^{-S_2(G)/2}. Substituting into Theorem 1:

DL22≥2−2EffRank⁡(G)≥2−2⋅2−S2(G)/2.D_{L_2}^2 \ge2 - \frac{2}{\operatorname{EffRank}(G)} \ge2 - 2 \cdot2^{-S_2(G)/2}.

Remark. Proposition 1 shows that S2S_2 and EffRank⁡\operatorname{EffRank} are tightly coupled: both grow together as the spectral mass spreads across more eigenvalue directions. The upper bound EffRank⁡≤2S2\operatorname{EffRank} \le2^{S_2} also shows that the two quantities agree to within a factor of two on the log-scale, justifying the short-hand “S2S_2 is an increasing function of EffRank” used in the main text.

Proof of Theorem 2 and the Exact Entropy Identity

We first establish a key lemma that is an exact algebraic identity—no inequalities, no extra assumptions. It shows that S2S_2 and the mean squared pairwise cosine are two encodings of the same spectral quantity.

Lemma 1 (Gram entropy equals mean squared cosine). Let v1,…,vn∈Rdv_1,\ldots,v_n \in\mathbb{R}^d be L2L_2-normalised vectors with Gram matrix G=AATG = AA^\mathsf{T} and normalised Gram KG=G/Tr⁡(G)=G/nK_G = G/\operatorname{Tr}(G) = G/n. Let

cos⁡2‾=1n(n−1)∑i≠j(viTvj)2\overline{\cos^2} = \frac{1}{n(n-1)}\sum_{i\ne j}(v_i^\mathsf{T}v_j)^2

be the mean pairwise squared cosine similarity. Then

Tr⁡(KG2)=1+(n−1)cos⁡2‾n.(3)\operatorname{Tr}(K_G^2) = \frac{1+(n-1)\overline{\cos^2}}{n}. \tag*{(3)}

equivalently S2(G)=−log⁡2(1+(n−1)cos⁡2‾n)S_2(G) = -\log_2\left(\frac{1+(n-1)\overline{\cos^2}}{n}\right). In particular, S2S_2 is a strictly decreasing bijection of cos⁡2‾\overline{\cos^2}: S2=0⇔cos⁡2‾=1S_2=0 \Leftrightarrow\overline{\cos^2}=1 (all pairs parallel or anti-parallel), and S2=log⁡2n⇔cos⁡2‾=0S_2=\log_2 n \Leftrightarrow\overline{\cos^2}=0 (all pairs orthogonal).

Proof. Expanding the Frobenius norm of GG:

Tr⁡(G2)=∑i,j=1nGij2=∑iGii2⏟= n (diagonal =1)+∑i≠jGij2=n+n(n−1)cos⁡2‾.\operatorname{Tr}(G^2)=\sum_{i,j=1}^{n}G_{ij}^2 =\underbrace{\sum_i G_{ii}^2}_{=\,n\ \text{(diagonal =1)}}+\sum_{i\ne j}G_{ij}^2 =n+n(n-1)\overline{\cos^2}.

Dividing by Tr⁡(G)2=n2\operatorname{Tr}(G)^2=n^2:

Tr⁡(KG2)=Tr⁡(G2)n2=n+n(n−1)cos⁡2‾n2=1+(n−1)cos⁡2‾n.\operatorname{Tr}(K_G^2)=\frac{\operatorname{Tr}(G^2)}{n^2} =\frac{n+n(n-1)\overline{\cos^2}}{n^2} =\frac{1+(n-1)\overline{\cos^2}}{n}.

Since cos⁡2‾∈[0,1]\overline{\cos^2}\in[0,1] (each Gij∈[−1,1]G_{ij}\in[-1,1]), the right-hand side is continuous and strictly increasing in cos⁡2‾\overline{\cos^2}, making S2=−log⁡2(⋅)S_2=-\log_2(\cdot) a strictly decreasing bijection. Boundary values: cos⁡2‾=1\overline{\cos^2}=1 gives Tr⁡(KG2)=1\operatorname{Tr}(K_G^2)=1, S2=0S_2=0; cos⁡2‾=0\overline{\cos^2}=0 gives Tr⁡(KG2)=1/n\operatorname{Tr}(K_G^2)=1/n, S2=log⁡2nS_2=\log_2 n.

Remark. Lemma 1 gives the converse of Theorem 1 for the squared-cosine metric: S2→0S_2\to0 if and only if cos⁡2‾→1\overline{\cos^2}\to1, which means every pair of vectors satisfies ∣viTvj∣→1|v_i^\mathsf{T}v_j|\to1, i.e. they are either perfectly aligned or perfectly anti-aligned. Crucially, a low S2S_2 alone does not guarantee that vectors point in the same direction (positive cosines); two anti-parallel unit vectors achieve S2=0S_2=0 yet DL22=4D_{L_2}^2=4. Theorem 2 closes this gap by adding the non-negativity condition, which exactly rules out anti-alignment.

We are now ready to prove Theorem 2.

Proof of Theorem 2. The key step is the following inequality, which holds under the assumption Gij≥0G_{ij} \ge0 for i≠ji \ne j: since cos⁡θij=Gij∈[0,1]\cos\theta_{ij} = G_{ij} \in[0,1], we have cos⁡2θij≤cos⁡θij\cos^{2}\theta_{ij} \le\cos\theta_{ij}, and therefore

cos⁡2‾=1n(n−1)∑i≠jcos⁡2θij≤1n(n−1)∑i≠jcos⁡θij=cˉ\overline{\cos^{2}} = \frac{1}{n(n-1)} \sum_{i \ne j} \cos^{2}\theta_{ij} \le\frac{1}{n(n-1)} \sum_{i \ne j} \cos\theta_{ij} = \bar{c}

where cˉ\bar{c} is the mean off-diagonal cosine. Rearranging, cˉ≥cos⁡2‾\bar{c} \ge\overline{\cos^{2}}.

From Lemma 1, cos⁡2‾=nTr⁡(KG2)−1n−1=n⋅2−S2−1n−1\overline{\cos^{2}} = \frac{n\operatorname{Tr}(K_{G}^{2})-1}{n-1} = \frac{n \cdot2^{-S_{2}}-1}{n-1}, so

cˉ≥n⋅2−S2−1n−1.\bar{c} \ge\frac{n \cdot2^{-S_{2}}-1}{n-1}.

Using DL22=2−2cˉD_{L_{2}}^{2} = 2 - 2\bar{c} (Step 2 and Step 3 of the proof of Theorem 1):

DL22=2−2cˉ≤2−2(n⋅2−S2−1)n−1=2(n−1)−2n⋅2−S2+2n−1=2n(1−2−S2)n−1.D_{L_{2}}^{2} = 2 - 2\bar{c} \le2 - \frac{2(n \cdot2^{-S_{2}}-1)}{n-1} = \frac{2(n-1)-2n \cdot2^{-S_{2}}+2}{n-1} = \frac{2n(1-2^{-S_{2}})}{n-1}.

As S2(G)→0S_{2}(G) \to0, the right-hand side →0\to0, so DL22→0D_{L_{2}}^{2} \to0. □

Remark. The bound is tight at both extremes. When all nn vectors are identical (vi=vv_i=v for all ii): G=11⊤G=11^{\top}, Tr⁡(KG2)=1\operatorname{Tr}(K_{G}^{2})=1, S2=0S_{2}=0, and the bound gives DL22≤0D_{L_{2}}^{2} \le0, matching the exact value DL22=0D_{L_{2}}^{2}=0. When all pairs are orthogonal (Gij=0G_{ij}=0 for i≠ji\ne j, so G=InG=I_n): S2=log⁡2nS_{2}=\log_{2}n and the bound gives 2nn−1(1−1/n)=2\frac{2n}{n-1}(1-1/n)=2, matching the exact value DL22=2D_{L_{2}}^{2}=2.

Implementation Details

This appendix provides the technical implementation details for all experiments. Code and data will be released upon acceptance.

All datasets and models utilized in this study, including MUSE-Books, TOFU, and ConceptVectors, alongside the evaluated language models, were accessed and employed strictly in accordance with their original licenses and intended use cases. These existing artifacts were explicitly designed for advancing machine learning research, which aligns directly with our objective of evaluating knowledge suppression and unlearning mechanisms. We use these datasets and metrics under the MIT license, and therefore publish our code under the same license. Our reference implementation and framework are intended solely for academic and research contexts to audit language model safety; any derivative applications or data distributions must remain compatible with these research-oriented, non-commercial access conditions.

Metric Computation

Input format. For every concept query qiq_i we construct a regular text and an anonymised text. Regular text concatenates the natural question and its full answer: “{question}\nAnswer: {answer}”, and the anonymised text applies a concept-specific substitution map to both fields (see Section B.2 for the three distinct anonymisation procedures). For anon-vector computation, the anon hidden state at layer ℓ\ell is the mean over KK anonymised variants:

hℓanon(qi)=1K∑k=1Khℓ(ai(k)).h_{\ell}^{\mathrm{anon}}(q_i) = \frac{1}{K}\sum_{k=1}^{K} h_{\ell}\left(a_i^{(k)}\right).

K=1K=1 for RQ1 hidden-state extraction and RQ2 forget pairs; K=5K=5 for the steering-attack SV computation in RQ2 (see Section B.6).

Anonymisation Procedures

All anonymised texts are produced by deterministic string substitution — no language model is used at any stage of the anonymisation pipeline. Three distinct procedures are used, depending on the dataset and downstream task.

Procedure 1: HP pairs for RQ1 (single-variant, fictional-name substitution). The MUSE-Books HP pairs are anonymised using the shared entity table from data/generate_anon_qa.py (HP_REPLACEMENTS), which contains 83 named-entity rules applied in order of decreasing string length to prevent partial matches (e.g. “Hermione Granger” is replaced before “Hermione”), and created using Seyitoğlu et al. [22] and expanded with Claude-Opus-4.6. Replacements are plausible fictional names that carry no HP-specific signal; variant index 0 is selected, yielding a single deterministic anonymised pair per original pair (K=1K=1). Key substitutions: Harry Potter →\rightarrow Alex Ryden, Hermione Granger →\rightarrow Vera Ashwood, Ron Weasley →\rightarrow Sam Coldridge, Lord Voldemort →\rightarrow Dark Emperor Mordax, Albus Dumbledore →\rightarrow *Headmaster Voss, Hogwarts →\rightarrow Crystal Academy, Quidditch →\rightarrow Broomball. The substitution is applied to both the question and the answer using a case-insensitive regex. This is the same table used by Procedure 3 for RQ2; using variant 0 ensures methodological consistency across tasks. 85 of 96 pairs are changed; the remaining 11 contain no HP-specific entity in the table.

Procedure 2: TOFU pairs for RQ1 (single-variant, author-table substitution). TOFU pairs reference entirely fictitious authors. We prescan all 100 pairs to collect every unique author full name, then build a global fictional-name map: each author is assigned first_name[i] + last_name[i] from the name pools of Seyitoğlu et al. (tofu_anonymize.json), indexed deterministically in order of first appearance (with explicit overrides from the dataset’s replacements field taking precedence). The map is applied consistently across all pairs (longest-first, case-insensitive), so cross-pair author identity is preserved throughout the dataset. 83 of 100 pairs are changed; the remaining 17 contain only generic phrasing with no author-name mention that the regex can match.

Procedure 3: ConceptVectors QA pairs for RQ2 (five-variant, entity-table substitution). For the steering-attack SV computation in RQ2, each evaluation question requires multiple anonymised variants so that the steering vector averages over several “identity-free” phrasings of the same question. We pre-generate K=5K=5 such variants per question at data-build time using data/generate_anon_qa.py, which maintains a separate replacement table per concept. Each table lists 5 fictional substitutes for every named entity in the concept:

  • Harry Potter →\rightarrow Alex Ryden, Marcus Cole, Torin Drake, Daven Ash, Kael Stone (and analogous per-character tables for Hermione Granger, Voldemort, Hogwarts, Quidditch, J.K. Rowling, etc.).

  • Star Wars →\rightarrow Kai Starborn, Zane Lightfield, Taran Skyes, Riven Starfall, Dax Brightstar (for Luke Skywalker; equivalent tables for Darth Vader, Han Solo, Tatooine, lightsaber, etc.).

  • William Shakespeare →\rightarrow equivalent five-name tables for Shakespeare himself, Hamlet, Macbeth, the Globe Theatre, Stratford-upon-Avon, etc.

Substitution is again longest-first and literal. Variant kk is constructed by replacing every matched entity with its kk-th substitute (same index kk for all entities within a single variant, so the five variants each represent a self-consistent fictional universe). The five anonymised questions are stored in the anon_questions list field of each qa_eval_pairs entry in the pre-built concept JSON files.

Note on RQ2 forget pairs. The Wikipedia-derived forget pairs used for training unlearning (not for the steering SV) use bracket placeholder tokens instead of fictional names (e.g. Harry Potter →\rightarrow [THE PROTAGONIST], Lord Voldemort →\rightarrow [THE ANTAGONIST], Hogwarts →\rightarrow [THE ACADEMY]). This produces a single anonymised pair per training example; multiple variants are not needed for the CE-loss computation.

Extraction, Sampling, and Layer Selection

Hidden-state extraction. All hidden states are extracted in a single forward pass with no gradient computation (torch.no_grad()). We register output hooks on every transformer block to collect the full stack of L+1L+1 hidden states (embedding layer included) simultaneously for a single tokenised input. The per-token hidden state at position tt and layer ℓ\ell is mean-pooled across the sequence dimension using an attention-mask-weighted average, yielding a single vector hℓ(qi)∈Rdh_{\ell}(q_i) \in\mathbb{R}^{d} per input. All models are loaded in bfloat16 precision with device_map="auto" to distribute parameters across available GPUs.

Batch sizes and sample counts.

  • RQ1 (knowledge detection): N=96N=96 Harry Potter query pairs (MUSE-Books) and N=100N=100 TOFU pairs, each split into B=10B=10 random batches of approximately 9–10 pairs for computing per-batch direction vectors. All ten models are evaluated without repetition (embeddings are deterministic).

  • RQ2 (unlearning): Concept-specific forget sets contain approximately 50–80 Wikipedia-derived text pairs (see Section B.4). Fragmentation metrics are computed on the full forget set at the AUSSL2\mathrm{SSL}_2-peak layer identified individually for each model–concept pair; B=10B=10 batches.

Rationale for hyperparameter choices. Several choices in our pipeline are not uniquely determined by the experimental design; we document them here for transparency. B=10B=10 batches: from B=2B=2 upward every metric separates HP from TOFU in the hypothesized direction, with effect size growing monotonically with BB (Table 3); the paired Wilcoxon test’s resolution is bounded by n=9n=9 models rather than BB, so B=10B=10 is a practical middle ground, not an arbitrary or fragile choice. B=1B=1 is structurally undefined (no batch-to-batch variance with a single sample); a single-item reformulation that avoids this constraint entirely is discussed in § 7.

MetricBBdd (pp)
∥Δv^∥\lVert\Delta\hat{v}\rVert / Global_Coh.20.14 (.82)
∥Δv^∥\lVert\Delta\hat{v}\rVert / Global_Coh.50.64 (.13)
∥Δv^∥\lVert\Delta\hat{v}\rVert / Global_Coh.100.72 (.13)
∥Δv^∥\lVert\Delta\hat{v}\rVert / Global_Coh.200.92 (.04)
∥Δv^∥\lVert\Delta\hat{v}\rVert / Global_Coh.501.13 (.02)
Batch_SecondMoment_TopEig20.19 (.73)
Batch_SecondMoment_TopEig50.35 (.36)
Batch_SecondMoment_TopEig100.42 (.36)
Batch_SecondMoment_TopEig200.43 (.36)
Batch_SecondMoment_TopEig500.37 (.57)
AUSSL2_{\mathrm{L2}} / Batch_Cov_Trace20.17 (.73)
AUSSL2_{\mathrm{L2}} / Batch_Cov_Trace50.62 (.13)
AUSSL2_{\mathrm{L2}} / Batch_Cov_Trace100.74 (.10)
AUSSL2_{\mathrm{L2}} / Batch_Cov_Trace200.93 (.04)
AUSSL2_{\mathrm{L2}} / Batch_Cov_Trace501.10 (.02)
AUSScos⁡2_{\cos^2}20.31 (.43)
AUSScos⁡2_{\cos^2}50.40 (.36)
AUSScos⁡2_{\cos^2}100.49 (.30)
AUSScos⁡2_{\cos^2}200.47 (.30)
AUSScos⁡2_{\cos^2}500.43 (.20)
AUSSJac_{\mathrm{Jac}}21.25 (.01)
AUSSJac_{\mathrm{Jac}}51.18 (.02)
AUSSJac_{\mathrm{Jac}}101.18 (.01)
AUSSJac_{\mathrm{Jac}}200.97 (.02)
AUSSJac_{\mathrm{Jac}}500.54 (.16)
Batch_Cov_TopEig20.17 (.73)
Batch_Cov_TopEig50.42 (.30)
Batch_Cov_TopEig100.18 (.65)
Batch_Cov_TopEig200.28 (.43)
Batch_Cov_TopEig500.33 (.43)

Table 3. Batch-size sensitivity: Cohen’s dd (Wilcoxon pp) for HP vs. TOFU separation at B∈{2,5,10,20,50}B \in\{2, 5, 10, 20, 50\}, n=9n=9 models, direction-corrected fresh extraction. All cells are in the hypothesized direction.

Seed 42: standard reproducibility seed; sensitivity to the partition seed is a stated limitation (§ 7). Peak layer = arg max⁡ℓ\operatorname{arg\,max}_{\ell} AUSSL2_{\mathrm{L2}}: AUSSL2_{\mathrm{L2}} had the strongest RQ1 signal in preliminary runs; the same layer is used for all metrics within a run to avoid per-metric search costs. Per-layer correlation analysis confirms that the final layers carry the strongest ASR signal for most attacks. K=1K=1 for RQ1 and forget pairs, K=5K=5 for

steering SV: a single anonymised variant is sufficient for metric computation and minimises hidden-state extraction time; five variants are used for the steering vector to average over phrasings and reduce direction noise (Seyitoğlu et al. [22]). ICL: nshots=5n_{\mathrm{shots}}=5, ROUGE-L threshold 0.30: five-shot is the standard few-shot setting of Brown et al. [2]; the 0.30 threshold is loose enough to accept paraphrases and matches the TOFU benchmark convention (Maini et al. [16]). GCG: neval=5n_{\mathrm{eval}}=5 (shortest answers), 500 steps, suffix length 20: shortest-answer pairs converge fastest under gradient-based optimisation; 500 steps and a 20-token suffix are the nanogcg defaults from Zou et al. [28]. MIA: 50 forget / 50 retain: equal-class balance for ROC AUC computation; standard in membership-inference literature. RMU: ℓr=7\ell_r=7, c=20c=20, αr=1200\alpha_r=1200: adopted directly from the defaults of Huu-Tien et al. [12] for 7–8B models; ℓr=7\ell_r=7 is approximately the middle of the network. WHP excluded from correlation analysis: WHP redirects concept queries to anonymised answers rather than erasing the representation; its geometry is qualitatively different from the suppression-based methods (GA/DPO/NPO/NPO+KL/RMU), and including it would confound the correlation analysis.

Peak-layer selection. For RQ1, each metric selects its own peak layer ℓ∗\ell^* independently as the layer that maximises the HP–TOFU separation for that metric (i.e. arg max⁡ℓ[mˉℓTOFU−mˉℓHP]\operatorname{arg\,max}_{\ell}[\bar{m}^{\mathrm{TOFU}}_{\ell}-\bar{m}^{\mathrm{HP}}_{\ell}] for dispersion metrics, reversed for coherence metrics where HP should be higher). This per-metric peak is computed across all ten models simultaneously. For RQ2, ℓ∗\ell^* is selected per run as the layer that maximises AUSSL2_{\mathrm{L2}} on the post-unlearning checkpoint; the same layer is used for all other fragmentation metrics in that run.

A practical, label-free layer-selection heuristic. The oracle per-model peak layer is not idiosyncratic: relative depth (ℓ∗/L\ell^*/L) clusters tightly across all 9 models (0.79–0.98), with the highest-performing layer consistently falling in the 0.80–0.88 range. A single fixed relative depth of 0.8×\times model depth, using no per-model information at all, already gives 8/8 metrics correct-direction and statistically significant at n=9n=9. Leave-one-model-out transfer of the median peak relative depth (learned from the other 8 models, applied blind to the held-out model) achieves 72/72 (model, metric) pairs correct-direction, identical to the oracle per-model search (Table 4). For practical deployment, taking the layer at 0.8×0.8\times depth is close enough to the oracle-optimal result and requires no per-model calibration.

Metricrrdd
∥Δv^∥\lVert\widehat{\Delta v}\rVert0.20.42
0.30.67
0.41.34
0.51.51
0.61.72
0.72.21
0.83.30 (.0039)
AUSSL2_20.20.48
0.30.70
0.41.30
0.51.42
0.61.62
0.72.04
0.83.01 (.0039)
AUSScos⁡2_{\cos^2}0.20.04
0.30.12
0.40.22
0.50.31
0.60.60
0.70.96
0.81.65 (.0078)
AUSSJac_{\mathrm{Jac}}0.20.34
0.30.83
0.41.21
0.51.44
0.61.81
0.72.15
0.82.60 (.0039)
Batch_Cov_TopEig0.20.09
0.30.18
0.40.84
0.51.42
0.62.10
0.72.60
0.86.31 (.0039)

Table 4. Fixed relative-depth sweep (no per-model search), n=9n=9 models, Cohen’s dd (pp shown only at r=0.8r=0.8, all p≤0.012p\leq0.012 there); sign shown per metric’s own coherence/dispersion convention, all cells correct-direction at r=0.8r=0.8. LOMO transfer: leave-one-model-out transfer of the median peak depth from the other 8 models, all 8 metrics, all 9 held-out models (72/72 pairs), identical to the 72/72 oracle per-model search.

Gram-entropy computation. Eigenvalues of KZ=ZZT/Tr⁡(ZZT)K_Z = ZZ^{\mathsf{T}}/\operatorname{Tr}(ZZ^{\mathsf{T}}) are computed with torch.linalg.eigvalsh (symmetric eigendecomposition, stable for positive-semidefinite matrices). Negative eigenvalues arising from numerical error are clamped to zero and the spectrum is renormalised to sum to one before computing entropy. For S1S_1 we mask eigenvalues λi<10−12\lambda_i < 10^{-12} to avoid log⁡(0)\log(0). Batches with Tr⁡(ZZT)<10−10\operatorname{Tr}(ZZ^{\mathsf{T}}) < 10^{-10} or N<2N < 2 are skipped and flagged as NaN.

Dataset Details

Harry Potter (HP) — RQ1. We use the MUSE-Books benchmark (Shi et al.), accessed via HuggingFace (muse-bench/MUSE-Books, configuration knowmem, split forget_qa). The split contains 300 open-domain question–answer pairs drawn from the seven Harry Potter novels. We retain N=96N=96 pairs after filtering to those with non-empty answers; these cover characters, spells, locations, and plot events.

Each pair is anonymised using Procedure 1 (Section B.2): the 83-entry fictional-name table from HP_REPLACEMENTS, variant index 0, yielding a single anonymised pair per original pair (K=1K=1). For example, Harry Potter → Alex Ryden and Hogwarts → Crystal Academy.

TOFU — RQ1. We use the TOFU dataset (Maini et al., [16]) (locuslab/TOFU, HuggingFace), which contains 4,000 question–answer pairs about 200 entirely fictitious authors generated by GPT-4 and never present in any public training corpus. We sample N=100N=100 pairs uniformly at random (seed 42) from the full-retain split. Because the authors are fabricated, all ten models score 0.00 exact-match QA accuracy on TOFU, making it an ideal null baseline for the knowledge-detection experiment. Procedure 2 (Section B.2) is applied: a global fictional-name map over all TOFU fictitious authors, keeping author identity consistent across pairs. 83 of 100 pairs are changed; 17 pairs containing only generic phrasing are unchanged by design—the anon-vector should carry minimal concept-specific signal for unknown concepts.

ConceptVectors — RQ2. For the unlearning experiments we use three target concepts: Harry Potter, Star Wars, and William Shakespeare. Forget pairs and evaluation QA pairs are constructed from the ConceptVectors dataset (Hong et al.) (YihuiHong/ConceptVectors, HuggingFace), which provides Wikipedia-sourced text completions and question–answer pairs for 293 named entities across multiple model families.

For each concept we use the test and development splits for both llama2-7b and olmo-7b entries, deduplicating by question text. Wikipedia article text is additionally segmented into sliding-window (prefix, continuation) pairs of approximately 128 tokens to increase the effective forget-set size. The final forget set contains 50–80 pairs per concept. Retain pairs are drawn from the unrelated_QA field of other concepts in ConceptVectors, ensuring the retain set covers facts the model should continue to answer correctly throughout unlearning; typically 50 retain pairs are used.

Important implementation note: The ConceptVectors HuggingFace repository contains JSON files with heterogeneous schemas across model families; we bypass the datasets.load_dataset() API and load the JSON files directly from the local cache to avoid schema-mismatch errors.

Unlearning Details

Hardware. All unlearning experiments are conducted on two NVIDIA L40S GPUs (48 GB VRAM each, 96 GB total). Models are loaded with device_map="auto" in bfloat16 precision, causing the HuggingFace accelerate library to automatically shard larger models (LLaMA-2-7B, LLaMA-3-8B, Qwen2.5-7B) across both GPUs. PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True is set at process start to eliminate CUDA memory fragmentation across sequential unlearning runs. Total GPU-hours were not directly logged, so we estimate a total from process timestamps recorded in our run logs. RQ1 hidden-state extraction averages ≈31\approx31 minutes per model across the ten evaluated models; the RQ2 unlearning-and-attack pipeline averages ≈10\approx10–2020 minutes per model–method–concept run across the 63-run grid (Appendix § 11.§ 7), with additional passes for the layer-resolved sweep (Section D.5), the CKA/L2 baseline comparison (§ 4), and the per-sample analyses in this appendix. Both GPUs are occupied for the duration of every run (device_map="auto" shards each model across both). Extrapolating these per-run durations across the full set of runs logged for this project, we estimate total compute at approximately 120–150 GPU-hours on the hardware described above.

Common training configuration. Unless noted otherwise, all methods share the following hyperparameters: 10 training epochs, learning rate η=10−5\eta= 10^{-5}, batch size B=4B = 4, maximum sequence length 256 tokens, gradient clipping to norm 1.0, and the AdamW optimiser (8-bit variant via bitsandbytes when available, otherwise standard PyTorch AdamW). Gradient checkpointing is enabled throughout to reduce peak VRAM usage. A frozen reference-model copy is loaded onto CPU memory (pinned) and moved to GPU only when needed, which is required by DPO, NPO, NPO+KL, and RMU.

Gradient Ascent (GA). GA negates the standard language-modelling cross-entropy loss on the forget pairs:

LGA=−LCE(θ;Dforget).\mathcal{L}_{\mathrm{GA}} = -\mathcal{L}_{\mathrm{CE}}(\theta; \mathcal{D}_{\mathrm{forget}}).

No retain regularisation is applied. This follows the original gradient-ascent unlearning baseline [26].

DPO. Direct Preference Optimisation [19] treats forget pairs as rejected continuations and retain pairs as chosen continuations. The DPO objective is:

LDPO=−E[log⁡σ(βlog⁡πθ(yw∣x)πref(yw∣x)−βlog⁡πθ(yl∣x)πref(yl∣x))],\mathcal{L}_{\mathrm{DPO}} = -\mathbb{E}\left[\log\sigma\left(\beta\log\frac{\pi_\theta(y_w|x)}{\pi_{\mathrm{ref}}(y_w|x)} - \beta\log\frac{\pi_\theta(y_l|x)}{\pi_{\mathrm{ref}}(y_l|x)}\right)\right],

with β=0.1\beta= 0.1. Our usage of DPO for unlearning follows the open-unlearning framework of [16].

NPO. Negative Preference Optimisation [27] pushes the policy away from the reference model on the forget set only:

LNPO=2βEDforget[log⁡(1+(πθπref)−β)],\mathcal{L}_{\mathrm{NPO}} = \frac{2}{\beta}\mathbb{E}_{\mathcal{D}_{\mathrm{forget}}}\left[\log\left(1+\left(\frac{\pi_\theta}{\pi_{\mathrm{ref}}}\right)^{-\beta}\right)\right],

with β=0.1\beta= 0.1.

NPO+KL. Extends NPO with a KL-divergence regularisation term on the retain set to preserve general model capability [27]:

LNPO+KL=LNPO+αDKL(πθ(⋅∣xr)∥πref(⋅∣xr)),\mathcal{L}_{\mathrm{NPO+KL}} = \mathcal{L}_{\mathrm{NPO}} + \alpha D_{\mathrm{KL}}\left(\pi_\theta(\cdot|x_r) \mathbin{\|} \pi_{\mathrm{ref}}(\cdot|x_r)\right),

with α=1.0\alpha= 1.0 and β=0.1\beta= 0.1.

RMU. Representation Misdirection for Unlearning [12] steers the hidden states of forget inputs toward a fixed random direction u\mathbf{u} at a chosen intermediate layer ℓr\ell_r, while simultaneously anchoring retain hidden states close to the frozen reference:

LRMU=∥hℓrθ(xf)−cu∥22+αr∥hℓrθ(xr)−hℓrref(xr)∥22\mathcal{L}_{\mathrm{RMU}} = \left\|h_{\ell_r}^{\theta}(x_f)-c\mathbf{u}\right\|_2^2 + \alpha_r\left\|h_{\ell_r}^{\theta}(x_r)-h_{\ell_r}^{\mathrm{ref}}(x_r)\right\|_2^2

where u∼N(0,I)\mathbf{u} \sim\mathcal{N}(0,I) is sampled once and fixed, c=20c = 20, ℓr=7\ell_r = 7 (approximately the middle of the network for 7–8B models), and αr=1200\alpha_r = 1200. The random vector u\mathbf{u} is created in bfloat16 to match the model’s parameter dtype.

WHP (WhoIsHarryPotter). Following Eldan and Russinovich, WHP trains the model to redirect concept-specific queries to anonymised answers, rather than maximising the forget loss. Forget pairs use the original question as input and the anonymised answer as the training target; the retain pairs use the standard question–answer format. The combined loss is:

LWHP=LCE(θ;qf,afanon)+αrLCE(θ;Dretain),\mathcal{L}_{\mathrm{WHP}} = \mathcal{L}_{\mathrm{CE}}(\theta; q_f, a_f^{\mathrm{anon}}) + \alpha_r \mathcal{L}_{\mathrm{CE}}(\theta; \mathcal{D}_{\mathrm{retain}}),

with αr=1.0\alpha_r = 1.0. No frozen reference model is required (unlike the KL-based retain regularisers in NPO+KL and the original WHP paper), which avoids the GPU memory fragmentation caused by pinning a second full model copy to a fixed GPU. Because WHP redirects rather than erases the concept representation, it does not satisfy the standard forget ROUGE-L verification criterion (post-unlearn forget ROUGE-L rises rather than falls); we annotate WHP runs with a ↔ symbol.

Attack Implementation Details

We evaluate four adversarial recovery attacks after unlearning. All attacks use seed 42 and operate on the post-unlearning checkpoint held in GPU memory immediately after training (the model is not reloaded between attacks). Attacks are run in the order Steering → ICL → MIA → GCG; GCG runs last because the nanogcg optimiser can corrupt the CUDA context on some GPU configurations, after which the model is freed.

Activation Steering. Following Seyitoglu et al. [22], we compute a query-specific steering vector for each evaluation question QiQ_i:

SL(Qi)=hL(Qi)−13∑k=13hL(Qi∗(k)),S_L(Q_i) = h_L(Q_i) - \frac{1}{3}\sum_{k=1}^{3} h_L\left(Q_i^{*(k)}\right),

where hL(⋅)h_L(\cdot) is the hidden state at layer L=nlayers−2L = n_{\mathrm{layers}} - 2 (the second-to-last transformer layer, consistent with the paper’s “just before the final layer” specification), extracted at the first token position. The steering vector is the raw difference (not unit-normalised), so the scale carries magnitude information.

The vector SL(Qi)S_L(Q_i) is injected at the first decode step only (when the key-value cache has been filled by the prompt and the model generates the first new token, i.e. the hidden-state tensor has sequence length 1), scaled by coefficient c=2.0c = 2.0. Crucially, the vector is not applied during the prefill phase (sequence length >1> 1), which would modify the KV cache and corrupt attention rather than steering generation. A stateful hook flag ensures the perturbation fires exactly once per generation call.

For each of 25 evaluation pairs, we generate n=500n = 500 stochastic completions (temperature =2.0= 2.0, top-k=40k = 40, max_new_tokens = 10) both with and without the steering hook. The score for each pair is the maximum word-frequency of any answer token across the 500 samples (word-frequency score, following the paper’s scoring protocol). The overall metric is the ROC AUC computed by treating steered scores as the positive class and unsteered scores as the negative class: AUC >0.5> 0.5 indicates that steering recovers more correct-answer tokens than no-steering, i.e. the concept geometry is partially intact.

In-Context Learning (ICL). ICL tests whether presenting the model with nshots=5n_{\mathrm{shots}} = 5 concept-specific examples as context is sufficient to recover the forgotten knowledge via in-context prompting.

From the available QA pairs, 25 pairs are held out for evaluation and the remainder form the demonstration pool. For each evaluation question, 5 demonstrations are sampled uniformly (excluding the current question) and prepended in the format {"Q}\nAnswer: {A}\n\n". Responses are generated greedily (max_new_tokens = 50). A response is marked correct when ROUGE-L with the reference answer is ≥0.30\geq0.30 (soft-match threshold to account for answer paraphrasing). The attack score is the ICL accuracy; a higher score indicates that the model’s knowledge is still recoverable via context.

GCG Adversarial Suffix. We use the Greedy Coordinate Gradient (GCG) method of Zou et al. [28] via the nanogcg Python library. To reduce computational cost while retaining sensitivity, we evaluate on the neval=5n_{\mathrm{eval}} = 5 pairs with the shortest reference answers (easiest targets for gradient-based suffix optimisation).

Each suffix is initialised as 20 repeated "! " tokens and optimised for 500 gradient steps against the first 8 tokens of the reference answer (a short target prefix converges substantially faster than the full answer string and corresponds to the affirmative-prefix strategy used in the original paper). The model’s chat template is applied automatically by nanogcg before generation. After optimisation, the adversarial input is constructed as {question} + " " + best_suffix and decoded greedily (max_new_tokens = 256). A pair is marked successful if the generated text contains a keyword from the reference answer or achieves ROUGE-L ≥0.25\ge0.25. The attack score is the attack success rate (ASR) across the 5 pairs.

Membership Inference Attack (MIA). We employ a standard likelihood-ratio MIA: the model’s per-token conditional log-likelihood s(q,a)=−log⁡Pθ(a∣q)s(q,a)=-\log P_{\theta}(a\mid q) is used as a membership score. We score nforget=50n_{\mathrm{forget}}=50 forget-concept QA pairs and nretain=50n_{\mathrm{retain}}=50 retain-set pairs (sampled from pairs about unrelated topics). QA pairs with factual short-answer format are preferred over Wikipedia-text pairs for the forget set, as gradient-ascent unlearning on Wikipedia-style text can produce degenerate NLL values exceeding 200 nats for date-prefixed completions. The ROC AUC is computed with forget-set pairs as the positive class (higher −log⁡P-\log P = lower likelihood = model has successfully forgotten) and retain-set pairs as the negative class. AUC >0.5>0.5 indicates the model still assigns higher probability to the forget set than the retain set, i.e. unlearning is incomplete at the distribution level.

Additional Evaluated Metrics

This section details the supplementary geometric and baseline metrics evaluated in our study, expanding upon the primary metrics introduced in § 3.1.

Baseline pair-wise metrics. These metrics apply standard geometric measures directly to the raw hidden states and serve as comparison baselines for the anon-difference metrics.

Reg S2S_2 — Gram-matrix entropy of the regular hidden states:

Reg⁡S2=S2(H).\operatorname{Reg} S_2 = S_2(\mathbf{H}).

Reg Lˉ2\bar{L}_2 — Mean L2L_2 norm of regular hidden states:

Reg⁡Lˉ2=1N∑i=1N∥hℓ∗(qi)∥2.\operatorname{Reg}\bar{L}_2=\frac{1}{N}\sum_{i=1}^{N}\lVert h_{\ell^*}(q_i)\rVert_2.

Reg cos⁡‾\overline{\cos} — Mean pairwise cosine similarity of regular hidden states:

Reg⁡cos⁡‾=1N(N−1)∑i≠jcos⁡(hℓ∗(qi),hℓ∗(qj)).\operatorname{Reg}\overline{\cos}=\frac{1}{N(N-1)}\sum_{i\ne j}\cos\left(h_{\ell^*}(q_i),h_{\ell^*}(q_j)\right).

Additional anon-difference pair-wise metrics. AnonDiff Lˉ2\bar{L}_2 — Mean L2L_2 norm of anon-difference vectors:

AnonDiff⁡Lˉ2=1N∑i=1N∥Δvi∥2.\operatorname{AnonDiff}\bar{L}_2=\frac{1}{N}\sum_{i=1}^{N}\lVert\Delta v_i\rVert_2.

AnonDiff cos⁡‾\overline{\cos} — Mean pairwise cosine similarity of anon-difference vectors:

AnonDiff⁡cos⁡‾=1N(N−1)∑i≠jcos⁡(Δvi,Δvj).\operatorname{AnonDiff}\overline{\cos}=\frac{1}{N(N-1)}\sum_{i\ne j}\cos\left(\Delta v_i,\Delta v_j\right).

Additional batch-mean (AUSS) metrics. AUSScos⁡↑_{\cos}\uparrow — Complement of the mean pairwise cosine similarity between batch-mean directions (the linear analogue of AUSScos⁡2_{\cos^2}):

AUSS⁡cos⁡=1−1B(B−1)∑b≠b′d^b⋅d^b′.\operatorname{AUSS}_{\cos}=1-\frac{1}{B(B-1)}\sum_{b\ne b'}\hat d_b\cdot\hat d_{b'}.

Unlike AUSScos⁡2_{\cos^2}, this is sensitive to the sign of alignment; it equals zero only when all BB directions are perfectly parallel (fully consistent concept direction).

AUSSJac↑_{\mathrm{Jac}}\uparrow — Mean pairwise soft Jaccard incoherence of the positive-component supports of the batch-mean directions. For unit vector d^b\hat d_b, define its positive-activation profile pb∈[0,1]dp_b\in[0,1]^d with pb,j=max⁡(d^b,j,0)p_{b,j}=\max(\hat d_{b,j},0). The pairwise soft Jaccard distance is

J(d^b,d^b′)=1−∑jmin⁡(pb,j,pb′,j)∑jmax⁡(pb,j,pb′,j),J(\hat d_b,\hat d_{b'})=1-\frac{\sum_j\min(p_{b,j},p_{b',j})}{\sum_j\max(p_{b,j},p_{b',j})},

and

AUSS⁡Jac=1B(B−1)∑b≠b′J(d^b,d^b′).\operatorname{AUSS}_{\mathrm{Jac}}=\frac{1}{B(B-1)}\sum_{b\ne b'}J(\hat d_b,\hat d_{b'}).

This measures whether the sparsity patterns of the batch directions agree, independent of sign or magnitude effects captured by cosine metrics.

Covariance-based metrics. Let Δv‾=1N∑iΔvi\overline{\Delta v}=\frac{1}{N}\sum_i\Delta v_i be the mean anon-difference vector and Σ^=1N−1∑i(Δvi−Δv‾)(Δvi−Δv‾)T∈Rd×d\widehat{\Sigma}=\frac{1}{N-1}\sum_i(\Delta v_i-\overline{\Delta v})(\Delta v_i-\overline{\Delta v})^{\mathsf T}\in\mathbb{R}^{d\times d} be the sample covariance matrix.

Covtrace↓_{\mathrm{trace}}\downarrow — Trace of the sample covariance of the anon-difference vectors:

Cov⁡trace=Tr⁡(Σ^).\operatorname{Cov}_{\mathrm{trace}}=\operatorname{Tr}(\widehat{\Sigma}).

A large trace indicates concept signal is dispersed across many directions (fragmented); a small value indicates compact, concentrated representations.

Covtop ↑\uparrow — Largest eigenvalue of the sample covariance:

Covtop=λmax⁡(Σ^).\mathrm{Cov}_{\mathrm{top}} = \lambda_{\max}(\widehat{\Sigma}).

This captures how much variance concentrates along the dominant concept direction. After unlearning, a large Covtop\mathrm{Cov}_{\mathrm{top}} indicates the primary concept direction is intact in the representation space, predicting susceptibility to context-based recovery such as ICL.

SecMomenttop ↑\uparrow — Largest eigenvalue of the (uncentred) second moment matrix:

SecMomenttop=λmax⁡(1N∑i=1NΔviΔviT).\mathrm{SecMoment}_{\mathrm{top}} = \lambda_{\max}\left(\frac{1}{N}\sum_{i=1}^{N}\Delta v_i\Delta v_i^{\mathsf{T}}\right).

Unlike Covtop\mathrm{Cov}_{\mathrm{top}}, this is sensitive to both the mean direction Δvˉ\Delta\bar{v} and the residual spread, making it a joint measure of magnitude and directionality.

Full Experimental Results

RQ1: Per-Model Fragmentation and Entropy Values

See the full results in Table 5 and Table 6.

ModelHarry Potter (known) QAHP_{\mathrm{HP}}Harry Potter (known) ∥Δv^∥\lVert\Delta\hat{v}\rVert↑Harry Potter (known) AUSSL2\mathrm{AUSS}_{L2}↓Harry Potter (known) AUSScos⁡2\mathrm{AUSS}_{\cos^2}↓TOFU (unknown, QA = 0.00) ∥Δv^∥\lVert\Delta\hat{v}\rVertTOFU (unknown, QA = 0.00) AUSSL2\mathrm{AUSS}_{L2}TOFU (unknown, QA = 0.00) AUSScos⁡2\mathrm{AUSS}_{\cos^2}
Qwen family
Qwen-7B-Chat0.0830.7520.9520.5770.6391.3090.683
Qwen2.5-7B0.2500.6841.1500.5010.6011.4020.408
Qwen-14B-Chat0.1350.8040.7800.5530.6881.1640.696
Qwen2.5-14B0.3230.6971.1160.5220.6891.1510.440
Gemma family
Gemma-2B0.0420.9490.2230.2090.6381.3160.835
Gemma-7B0.0830.8820.4910.4170.7730.8910.608
LLaMA family
LLaMA-2-7B0.1250.8000.8000.5490.5531.5430.792
LLaMA-2-13B0.2190.9030.4110.3630.5951.4370.891
LLaMA-3-8B0.3120.9000.4230.3700.6551.2680.826
LLaMA-3.1-8B0.2190.9030.4090.3600.6241.3560.850

Table 5. Fragmentation metrics (HP known vs. TOFU unknown) for all ten LLMs at peak layer ℓ∗=18\ell^*=18. QAHP_{\mathrm{HP}}: QA accuracy on HP; TOFU QA is 0.00 for every model. ∥Δv^∥\lVert\Delta\hat{v}\rVert↑: centroid norm (coherence; ↑ = model knows). AUSSL2\mathrm{AUSS}_{L2}↓ / AUSScos⁡2\mathrm{AUSS}_{\cos^2}↓: dispersion (↓ = model knows). Bold: HP entry in the theoretically expected direction.

ModelHarry Potter (known) Reg S2S_2Harry Potter (known) Reg cos⁡‾\overline{\cos}Harry Potter (known) AnonDiff S2S_2Harry Potter (known) AnonDiff L‾2\overline{L}_2Harry Potter (known) AnonDiff cos⁡‾\overline{\cos}TOFU (unknown, QA = 0.00) Reg S2S_2TOFU (unknown, QA = 0.00) Reg cos⁡‾\overline{\cos}TOFU (unknown, QA = 0.00) AnonDiff S2S_2TOFU (unknown, QA = 0.00) AnonDiff L‾2\overline{L}_2TOFU (unknown, QA = 0.00) AnonDiff cos⁡‾\overline{\cos}
Qwen family
Qwen-7B-Chat0.0070.9953.80820.40.1380.0430.9694.76916.90.098
Qwen2.5-7B0.0020.9993.71529.50.1180.0090.9964.61424.70.121
Qwen-14B-Chat0.0180.9903.54421.50.1660.0900.9544.79516.70.088
Qwen2.5-14B0.0020.9993.82537.20.1190.0070.9974.74330.80.132
Gemma family
Gemma-2B0.3270.8673.58415.40.3280.7570.8454.09812.70.057
Gemma-7B0.0530.9733.7582.430.2540.2000.8954.3971.790.108
LLaMA family
LLaMA-2-7B0.0070.9963.8136.330.1830.0320.9754.5435.360.048
LLaMA-2-13B0.0550.9671.6356.900.2750.2210.8682.1065.160.044
LLaMA-3-8B0.0450.9733.7551.950.2630.1970.8934.5801.570.072
LLaMA-3.1-8B0.0380.9773.7142.410.2650.1680.9074.5432.060.064

Table 6. Gram-matrix entropy (S2S_2, Rényi order 2) and companion statistics at per-metric peak layer ℓ∗\ell^* for ten LLMs. Reg: raw hidden states; AnonDiff: difference vectors ΔV=hreg−hanon\Delta V = h_{\mathrm{reg}} - h_{\mathrm{anon}}; applying Gram entropy to ΔV\Delta V is our adaptation of Skean et al. [24]. S2S_2↓: lower = more compressed = model knows concept. L‾2\overline{L}_2↑, cos⁡‾\overline{\cos}↑: higher = stronger/more coherent representation. Bold: HP entry consistent across all 10 models. Reg L‾2\overline{L}_2 omitted (padj=0.43p_{\mathrm{adj}}=0.43, mixed direction).

RQ1: Multi-Domain Validation and Classifier Discriminability

Four-way domain comparison. To test whether the HP-vs-TOFU separation reflects a structural known/unknown difference rather than an artifact of one narrow contrast, we extend the comparison to Harry Potter (retain split) and Star Wars, each tested against the same TOFU baseline across all 9 models (fresh, direction-corrected extraction), with two-sided Wilcoxon signed-rank tests and BH/FDR correction applied jointly across all 24 (metric, pair) tests.

Both additional “known” domains (HP-retain and Star Wars) separate from TOFU on every metric, in the same sign as the HP-forget contrast; HP-retain effect sizes are, if anything, larger (up to d=6.20d=6.20) than the HP-forget contrast itself.

Classifier-based discriminability. The discriminability analysis in Table 1 reports Δ\Delta/CI, which depends on the scale of the underlying metric. To confirm the separation is not an artifact of that scale, we build one sample per (model, domain) pair from the 8-dimensional standardized AUSS peak-layer feature vector and train Logistic Regression and a small MLP (8 hidden units) under leave-one-model-out cross-validation, so both domains of a held-out model are always scored by a classifier that never saw that model.

Both classifiers achieve near-perfect discriminability, with zero per-model misclassification for Logistic Regression, confirming the known/unknown separation is a robust structural feature of the representations rather than an artifact of the metrics’ raw scale.

RQ2: Full Geometry vs ASR Correlation Table

See the full results at Table 13–Table 15 and Table 9.

ForgetGeometry ℓ∗\ell^{*}Attack Success ↓\downarrow
MethodCpt✓ROUGE-L↓\downarrow∥Δv^∥↑\lVert\Delta\hat{\mathbf{v}}\rVert\uparrowAUSSL2↓_{\mathrm{L2}}\downarrowAUSScos2↓_{\mathrm{cos2}}\downarrowSteer-AUCSteer-WFICL Δ\DeltaMIAGCG
BaseHP0.1060.8720.5340.4390.4330.373+0.0400.9820.000
SW0.0980.8660.5570.4730.4820.261+0.0800.9820.000
WS0.0800.9070.3950.3520.4950.373+0.0000.9380.000
GAHP✓0.0000.9360.2750.2530.5000.000+0.0000.1190.000
SW✓0.0000.9010.4170.3700.5000.000+0.0000.4610.000
WS✓0.0000.9340.2840.2550.5000.000+0.0000.1850.200
DPOHP✓0.0040.8840.4840.4220.7300.194+0.0000.8610.000
SW0.1170.8340.6760.5480.6770.343+0.0000.9651.000
WS✓0.0200.8950.4410.3890.9110.238+0.0400.8710.000
NPOHP0.1980.8630.5690.4780.7440.374+0.0000.8051.000
SW0.1890.8460.6320.5240.7820.324+0.0000.8710.000
WS0.1050.9130.3700.3310.7060.433+0.0400.7701.000
NPO+KLHP0.3490.8650.5590.4740.9340.458+0.0000.4820.000
SW0.1670.8380.6620.5420.8220.210+0.0000.2460.800
WS0.1450.9080.3900.3480.8740.449+0.0000.2180.000
RMUHP—
SW✓0.0930.7830.8600.3540.7840.263+0.0000.8541.000
WS✓0.0820.8750.5220.4390.6340.364+0.0400.7850.800
WHPHP0.2580.8640.5640.4770.9430.310+0.0000.4950.000
SW0.1720.8430.6440.5330.8450.205+0.0000.2180.000
WS0.2070.9000.4230.3730.8810.405+0.0400.2450.000

Table 15. Table 15: RQ2: Full post-unlearning results, Qwen2.5-7B-Instruct. ROUGE-L↓\downarrow: forget-set ROUGE-L after unlearning. ✓: verified (ROUGE-L < 0.10 & retain ≥ 0.80× base). ∥Δv^∥↑\lVert\Delta\hat{\mathbf{v}}\rVert\uparrow: centroid norm; AUSSL2↓_{\mathrm{L2}}\downarrow, AUSScos2↓_{\mathrm{cos2}}\downarrow: dispersion (per-method peak layer ℓ∗\ell^{*}). Steer-AUC↓\downarrow: steering AUC; Steer-WF↓\downarrow: mean steered word-frequency score. ICL Δ↑\Delta\uparrow: ICL accuracy minus baseline. MIA↓\downarrow: membership inference AUC; GCG↓\downarrow: GCG ASR. Blank cells: checkpoint unavailable.

Head-to-Head Against Xu et al. (2026)

Full 44-test comparison (8 AUSS metrics + 3 Xu et al. metrics ×\times 4 attacks) underlying the main-text summary in § 4, BH-corrected globally across all 44 tests, n=53n=53–54. AUSS values come from checkpoints retained specifically for this comparison (the originals were already deleted at the time this analysis was run), paired with the original checkpoints’ attack scores; this table should be read as an independent second data point rather than checkpoint-consistent with Table 9.

Layerwise Geometry Analysis

Methodology. Following established practice in mechanistic interpretability (e.g., causal tracing; Meng et al. [17]), we treat this layer-resolved sweep as an exploratory diagnostic map of where different adversarial mechanisms exploit the geometry, rather than a multiplicity-corrected hypothesis test for a new global predictor; the corrected significance counts below quantify how much of the raw signal survives once treated as the latter. We extend the correlation analysis of § 4 to every transformer layer. For each run we extract hidden states at all LL layers in a single forward pass with output_hidden_states=True (mean-pooled over the response tokens), giving vectors hreg(ℓ)\mathbf{h}_{\mathrm{reg}}^{(\ell)} and hanon(ℓ)\mathbf{h}_{\mathrm{anon}}^{(\ell)} at each layer ℓ∈{0,…,L−1}\ell\in\{0,\ldots,L-1\}. We compute Spearman ρ\rho between each (metric, layer) pair and each attack-success score across all runs with complete data. Two metric families are evaluated in parallel:

  • AUSS metrics (8 metrics, defined in § 3): Centroid_Norm, AUSSL2_{L2}, AUSScos⁡2_{\cos^2}, AUSSJac_{\mathrm{Jac}}, Global_Coherence, Batch Covariance, etc.

  • Entropy / AnonDiff metrics (14 metrics): Gram-matrix Rényi-α\alpha entropy of the regular

(Reg), concept-differential (AnonDiff), and row-normalised concept-differential (NormAnonDiff) hidden-state matrices, plus mean cosine and mean L2L_2 statistics.

Figure 4 shows the full ρ\rho-vs.-layer sweep for all four attacks using the six leader metrics (three AUSS, three entropy). The GCC panel reproduces and extends Figure 3 from the main text.

Four panels showing Spearman rho by layer for GCG, ICL, MIA, and Steering

Figure 4. Spearman ρ\rho by layer for all four attacks, leader metrics. Solid lines: AUSS family (AUSSL2_{\mathrm{L2}}, AUSScos2_{\mathrm{cos^2}}, AUSSJac_{\mathrm{Jac}}). Dashed lines: Entropy family (Reg S2_2, AnonDiff cos‾\overline{\mathrm{cos}}, NormAnonDiff S2_2). Dotted red vertical line: attack-specific peak layer among the six plotted metrics (GCG→\toL29, ICL→\toL00 for this restricted set; see Table 11 for the full-metric-universe peaks used in the main text, GCG→\toL29, ICL→\toL28). GCG and ICL both concentrate their strongest signal late in the network; MIA and Steering show weaker, non-BH-significant layer-specific signal in this dataset. nn=10–15 runs per attack (complete data).

Best layer-metric predictors per attack. Refer to Table 11.

AttackFamilyBest layerBest metricρ\rhoppqattack/qglobalq_{\mathrm{attack}} / q_{\mathrm{global}}
GCGAUSSL29AUSSJac_{\mathrm{Jac}}−0.853-0.8530.00080.00080.057/0.046∗0.057 / 0.046^{*}
EntropyL30NormAnonDiff S2_2 ⋆\star−0.832-0.8320.00150.00150.057/0.046∗0.057 / 0.046^{*}
ICLAUSSL28Batch_Cov_TopEig ⋆\star−0.886-0.886<0.0001<0.00010.006∗/0.009∗0.006^{*} / 0.009^{*}
EntropyL00AnonDiff S2_2−0.861-0.8610.00020.00020.011∗/0.037∗0.011^{*} / 0.037^{*}
MIAAUSSL31Centroid_Norm−0.446-0.4460.1700.1700.999/0.5810.999 / 0.581
EntropyL32Reg L‾2\overline{L}_2 ⋆\star+0.627+0.6270.0390.0390.999/0.2540.999 / 0.254
SteeringAUSSL31∥Δv^∥\lVert\Delta\hat{v}\rVert+0.536+0.5360.0890.0890.987/0.4010.987 / 0.401
EntropyL31Reg cos⁡‾\overline{\cos} ⋆\star+0.645+0.6450.0320.0320.987/0.2240.987 / 0.224

Table 11. Best (layer, metric) predictor per attack in the layer-resolved analysis. nn: number of runs with complete data at that layer. AUSS and entropy families are shown separately; the overall best metric across both is marked ⋆\star. qattackq_{\mathrm{attack}}: BH correction within the attack’s own column (8 AUSS + entropy tests); qglobalq_{\mathrm{global}}: BH correction across all 4,224 (layer, metric, attack) tests at once. ∗q<0.05^{*}q<0.05.

Key findings.

  1. GCG and ICL are the only two attacks whose layer-specific signal survives correction. Both peaks fall late in the network and one layer apart (GCG at L29, ICL at L28); GCC survives global correction (q=0.046q=0.046) but not the stricter per-attack-column correction (q=0.057q=0.057), while ICL survives both. See the main-text Discussion for the mechanistic reading.

  1. MIA and Steering do not survive correction at either scope. Their best (layer, metric) cells are only nominally significant at the raw p<0.05p<0.05 level (qglobal≥0.22q_{\mathrm{global}}\geq0.22 for both); we report them descriptively rather than as reliable predictors.

  1. The aggregate and layer-resolved analyses find GCG signal via different metric families. The aggregate correlations in Table 9 find GCG significant via the Reg (Gram-entropy) family (Reg cos⁡‾\overline{\cos}, ρ=−0.51\rho=-0.51);

the layer-resolved sweep instead finds its strongest GCG signal via AUSSJac_{\mathrm{Jac}} at L29 (ρ=−0.85\rho=-0.85). Both are real but reflect different aspects of the geometry: the peak-layer AUSS metric (argmax over AUSSL2_{\mathrm{L2}}) does not coincide with GCG’s own predictive layer.

  1. Positive ρ\rho for entropy metrics on MIA and Steering. Where entropy-family metrics show their strongest (non-significant) signal, higher entropy correlates with higher attack success, directionally opposite to the AUSS findings on GCG/ICL, reflecting that entropy measures spread of the concept-differential subspace while coherence measures its alignment.

Ranking Consistency of the Aggregate Correlations

To test whether the aggregate correlations in Table 9 are driven by one influential run, we compute leave-one-run-out (LOO) Spearman ρ\rho for each of the 8 AUSS metrics against each of the 4 attacks, restricted to verified unlearning runs (nn=26–27).

Only ICL is both leave-one-out stable and statistically significant after BH correction (8/8 metrics stable, 7/8 significant). Steering and GCG are largely stable (8/8 and 7/8) but not significant; MIA is neither reliably stable nor significant. We therefore present the correlation findings within the context of the ICL attack, rather than as a generalized cross-attack ranking claim.

RQ2: Full Per-Run Results

Metricvs. TOFUdd (pp)
∥Δv^∥\lVert\Delta\hat{v}\rVert / Global_Coh.HP-forget +1.58 (.0039)
HP-retain +3.13 (.0039)
Star Wars +1.69 (.0039)
Batch_SecondMoment_TopEigHP-forget +2.57 (.0039)
HP-retain +6.20 (.0039)
Star Wars +4.62 (.0039)
AUSSL2_{\mathrm{L2}} / Batch_Cov_TraceHP-forget −1.55 (.0039)
HP-retain −3.35 (.0039)
Star Wars −1.43 (.0117)
AUSScos⁡2_{\cos^2}HP-forget −0.92 (.0195)
HP-retain −1.59 (.0039)
Star Wars −2.00 (.0039)
AUSSJac_{\mathrm{Jac}}HP-forget −1.87 (.0039)
HP-retain −2.09 (.0039)
Star Wars −2.82 (.0039)
Batch_Cov_TopEigHP-forget −1.34 (.0078)
HP-retain −2.00 (.0039)
Star Wars −1.36 (.0039)

Table 7. Four-way domain comparison: Cohen’s dd (pp, BH-corrected) for each condition vs. TOFU, n=9n=9 models. All 24 cells are BH-significant (q∈[0.0063,0.0260]q \in[0.0063, 0.0260]).

Logistic Regr.MLP (8 hidden)
Accuracy100%94.4%
AUC1.001.00
Correct18/1817/18
Models fully correct9/98/9

Table 8. Classification performance on known (HP) vs. unknown (TOFU) domains using standardized 8-dimensional AUSS features, LOMO-CV, n=9n=9 models (18 samples).

Table 10. Full Xu et al. head-to-head comparison, sorted by qglobalq_{\mathrm{global}}. ∗∗/∗^{**/*}: q<0.01/0.05q<0.01/0.05.

FamilyMetricAttackρ\rhoppqglobalq_{\mathrm{global}}
AUSSCentroid_NormICL+0.5510.000020.0001∗∗^{**}
AUSSAUSScos⁡2_{\cos^2}ICL−0.5720.000010.0001∗∗^{**}
AUSSAUSSL2_{L2}ICL−0.5510.000020.0001∗∗^{**}
AUSSGlobal_CoherenceICL+0.5510.000020.0001∗∗^{**}
AUSSBatch_Cov_TraceICL−0.5510.000020.0001∗∗^{**}
AUSSBatch_SecMom_TopEigICL+0.5570.000010.0001∗∗^{**}
AUSSAUSSJac_{Jac}Steering−0.4520.000670.0042∗∗^{**}
Xu et al.cka_meanSteering+0.4280.001370.0076∗∗^{**}
Xu et al.pca_sim_meanICL+0.3810.004850.0212∗^{*}
AUSSBatch_Cov_TopEigICL−0.3850.004400.0212∗^{*}
Xu et al.cka_meanGCG+0.3740.005290.0212∗^{*}
Xu et al.cka_meanMIA+0.3360.013780.0505
AUSSBatch_Cov_TopEigGCG−0.3150.020200.0684
Xu et al.cka_meanICL+0.3100.024090.0757
AUSSBatch_Cov_TopEigSteering−0.2870.036930.1083
Xu et al.pca_sim_meanMIA+0.2690.051260.1410
Xu et al.pca_sim_meanGCG+0.2630.054970.1423
AUSSCentroid_NormGCG+0.2180.112450.2262
AUSSBatch_Cov_TraceGCG−0.2180.112450.2262
AUSSGlobal_CoherenceGCG+0.2180.112450.2262
AUSSAUSSJac_{Jac}GCG−0.2180.113080.2262
AUSSAUSSL2_{L2}GCG−0.2180.112450.2262
Xu et al.pca_shift_meanMIA+0.2130.125460.2300
AUSSBatch_SecMom_TopEigGCG+0.2120.123360.2300
Xu et al.pca_shift_meanGCG−0.2050.137780.2425
AUSSAUSScos⁡2_{\cos^2}GCG−0.1890.171190.2897
AUSSBatch_Cov_TraceSteering−0.1100.433110.5775
AUSSGlobal_CoherenceSteering+0.1100.433110.5775
Xu et al.pca_sim_meanSteering−0.1140.414970.5775
AUSSAUSSL2_{L2}Steering−0.1100.433110.5775
Xu et al.pca_shift_meanICL+0.1220.383990.5775
AUSSCentroid_NormSteering+0.1010.433110.5775
AUSSBatch_SecMom_TopEigSteering+0.1110.428030.5775
AUSSBatch_SecMom_TopEigMIA−0.0790.572610.6460
AUSSBatch_Cov_TraceMIA+0.0800.567530.6460
AUSSAUSScos⁡2_{\cos^2}MIA+0.0850.544920.6460
AUSSGlobal_CoherenceMIA−0.0800.567530.6460
AUSSAUSSL2_{L2}MIA−0.0800.567530.6460
AUSSCentroid_NormMIA−0.0800.567530.6460
AUSSBatch_Cov_TopEigMIA+0.0660.639490.7034
AUSSAUSScos⁡2_{\cos^2}Steering−0.0540.699910.7511
AUSSAUSSJac_{Jac}ICL−0.0510.719310.7536
AUSSAUSSJac_{Jac}MIA+0.0320.819090.8381
Xu et al.pca_shift_meanSteering−0.0110.938460.9385
AttackMetrics with 0 LOO sign flipsBH-significant (q<0.05q<0.05)
ICL8/87/8
Steering8/80/8
GCG7/80/8
MIA2/80/8

Table 12. Leave-one-out sign-flip stability, 8 AUSS metrics per attack, n=26n=26–27 verified runs.

MethodCpt✓Forget ROUGE-L↓Geometry ℓ∗\ell^{*} ∥Δv^∥\lVert\Delta\hat{v}\rVert↑AUSSL2_2↓AUSScos2_2↓Steer-AUCSteer-WFICL Δ\DeltaMIAGCG
BaseHP0.0620.8560.5940.4930.4230.437+0.0000.9150.000
SW0.1130.8730.5290.4550.4240.379+0.0400.9870.000
WS0.0680.9010.4160.3700.4250.347+0.0400.9520.000
GAHP✓0.0000.8720.5340.4390.5000.000+0.0000.7000.000
SW✓0.0000.8010.7970.5910.5000.000+0.0000.1020.000
WS✓0.0000.8140.7500.4360.5000.000+0.0000.2500.000
DPOHP✓0.0000.8670.5510.4660.7200.076+0.0401.0000.400
SW✓0.0170.8420.6460.5190.6200.017+0.0000.9980.800
WS✓0.0000.9230.3280.2980.7000.037+0.0001.0000.000
NPOHP0.1120.8630.5660.4820.9300.493+0.0000.8171.000
SW0.1670.8710.5350.4620.8380.404−0.0400.9001.000
WS✓0.0960.9230.3280.2980.7790.356+0.0800.8341.000
NPO+KLHP0.1780.8670.5520.4720.9450.488−0.1200.3891.000
SW0.2080.8470.6270.5250.8820.393−0.1200.2491.000
WS0.1210.9210.3350.3050.8220.313+0.0800.1571.000
RMUHP✓0.0630.8560.5950.4930.8960.444−0.0400.8621.000
SW0.1230.8710.5380.4600.8540.394+0.0400.9251.000
WS✓0.0720.9020.4160.3700.7660.350+0.0400.8901.000
WHPHP0.1740.8590.5830.4930.9220.483−0.0800.4150.000
SW0.2080.8600.5790.4940.8460.382−0.1200.2830.000
WS0.1030.9260.3160.2880.8500.334+0.0000.1780.000

Table 14. RQ2: Full post-unlearning results, Meta-LLaMA-3-8B-Instruct. ROUGE-L↓: forget-set ROUGE-L after unlearning. ✓: verified (ROUGE-L < 0.10 & retain ≥ 0.80× base). ∥Δv^∥\lVert\Delta\hat{v}\rVert↑: centroid norm; AUSSL2_2↓, AUSScos2_2↓: dispersion (per-method peak layer ℓ∗\ell^{*}). Steer-AUC↓: steering AUC; Steer-WF↓: mean steered word-frequency score. ICL Δ\Delta↑: ICL accuracy minus baseline. MIA↓: membership inference AUC; GCG↓: GCG ASR. Blank cells: checkpoint unavailable.

References

  1. [1]Tomer Ashuach, Dana Arad, Aaron Mueller, Martin Tutek, and Yonatan Belinkov. 2026. CRISP: Persistent Concept Unlearning via Sparse Autoencoders. arXiv preprint. ArXiv:2508.13650 [cs.CL].arxiv.org/abs/2508.13650
  2. [2]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, and 12 others. 2020. Language Models are Few-Shot Learners. arXiv preprint. ArXiv:2005.14165 [cs.CL].arxiv.org/abs/2005.14165
  3. [3]Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, Alina Oprea, and Colin Raffel. 2021. Extracting Training Data from Large Language Models. arXiv preprint. ArXiv:2012.07805 [cs.CR].arxiv.org/abs/2012.07805
  4. [6]Rohit Gandikota, Sheridan Feucht, Samuel Marks, and David Bau. 2025. Erasing Conceptual Knowledge from Language Models. arXiv preprint. ArXiv:2410.02760 [cs.CL].arxiv.org/abs/2410.02760
  5. [7]Mor Geva, Jasmijn Bastings, Katja Filippova, and Amir Globerson. 2023. Dissecting Recall of Factual Associations in Auto-Regressive Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 12216–12235, Singapore. Association for Computational Linguistics.arxiv.org/abs/2304.14767
  6. [8]Mor Geva, Avi Caciularu, Kevin Wang, and Yoav Goldberg. 2022. Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Space. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 30–45, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.arxiv.org/abs/2203.14680
  7. [9]Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. 2021. Transformer Feed-Forward Layers Are Key-Value Memories. arXiv preprint. ArXiv:2012.14913 [cs].arxiv.org/abs/2012.14913
  8. [10]Daniela Gottesman and Mor Geva. 2024. Estimating knowledge in large language models without generating a single token. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 3994–4019.
  9. [12]Dang Huu-Tien, Trung-Tin Pham, Hoang Thanh-Tung, and Naoya Inoue. 2025. On Effects of Steering Latent Representation for Large Language Model Unlearning. arXiv preprint. ArXiv:2408.06223 [cs].
  10. [13]Andrew Lee, Xiaoyan Bai, Itamar Pres, Martin Wattenberg, Jonathan K. Kummerfeld, and Rada Mihalcea. 2024. A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicity. arXiv preprint. ArXiv:2401.01967 [cs.CL].arxiv.org/abs/2401.01967
  11. [14]Nathaniel Li, Alexander Pan, Anjali Gopal, Summer Yue, Daniel Berrios, Alice Gatti, Justin D. Li, Ann-Kathrin Dombrowski, Shashwat Goel, Long Phan, Gabriel Mukobi, Nathan Helm-Burger, Rassin Lababidi, Lennart Justen, Andrew B. Liu, Michael Chen, Isabelle Barrass, Oliver Zhang, Xiaoyuan Zhu, and 38 others. 2024. The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearning. arXiv preprint. ArXiv:2403.03218 [cs.LG].arxiv.org/abs/2403.03218
  12. [15]Aengus Lynch, Phillip Guo, Aidan Ewart, Stephen Casper, and Dylan Hadfield-Menell. 2024. Eight Methods to Evaluate Robust Unlearning in LLMs. ArXiv:2402.16835 [cs].arxiv.org/abs/2402.16835
  13. [16]Pratyush Maini, Zhili Feng, Avi Schwarzschild, Zachary C. Lipton, and J. Zico Kolter. 2024. TOFU: A Task of Fictitious Unlearning for LLMs. arXiv preprint. ArXiv:2401.06121 [cs.LG].arxiv.org/abs/2401.06121
  14. [17]Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. 2023. Locating and Editing Factual Associations in GPT. arXiv preprint. ArXiv:2202.05262 [cs.CL].arxiv.org/abs/2202.05262
  15. [18]Fabio Petroni, Tim Rocktäschel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, Alexander H. Miller, and Sebastian Riedel. 2019. Language Models as Knowledge Bases? arXiv preprint. ArXiv:1909.01066 [cs.CL].arxiv.org/abs/1909.01066
  16. [19]Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, and Chelsea Finn. 2024. Direct Preference Optimization: Your Language Model is Secretly a Reward Model. arXiv preprint. ArXiv:2305.18290 [cs.LG].arxiv.org/abs/2305.18290
  17. [20]Anton Razzhigaev, Matvey Mikhальchuk, Elizaveta Goncharova, Ivan Oseledets, Denis Dimitrov, and Andrey Kuznetsov. 2023. The Shape of Learning: Anisotropy and Intrinsic Dimensions in Transformer-Based Models.
  18. [22]Atakan Seyitoğlu, Aleksei Kuvshinov, Leo Schwinn, and Stephan Günnemann. 2024. Extracting Unlearned Information from LLMs with Activation Steering. arXiv preprint. ArXiv:2411.02631 [cs].arxiv.org/abs/2411.02631
  19. [24]Oscar Skean, Md Rifat Arefin, Dan Zhao, Niket Patel, Jalal Naghiyev, Yann LeCun, and Ravid Shwartz-Ziv. 2025. Layer by Layer: Uncovering Hidden Representations in Language Models. arXiv preprint. ArXiv:2502.02013 [cs].arxiv.org/abs/2502.02013
  20. [25]Xiaoyu Xu, Xiang Yue, Yang Liu, Qingqing Ye, Huadi Zheng, Peizhao Hu, Minxin Du, and Haibo Hu. 2025. Unlearning Isn’t Deletion: Investigating Reversibility of Machine Unlearning in LLMs. arXiv preprint. ArXiv:2505.16831 [cs].arxiv.org/abs/2505.16831
  21. [26]Yuanshun Yao, Xiaojun Xu, and Yang Liu. 2024. Large Language Model Unlearning. arXiv preprint. ArXiv:2310.10683 [cs.CL].arxiv.org/abs/2310.10683
  22. [27]Ruiqi Zhang, Licong Lin, Yu Bai, and Song Mei. 2024. Negative Preference Optimization: From Catastrophic Collapse to Effective Unlearning. arXiv preprint. ArXiv:2404.05868 [cs.LG].arxiv.org/abs/2404.05868
  23. [28]Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J. Zico Kolter, and Matt Fredrikson. 2023. Universal and Transferable Adversarial Attacks on Aligned Language Models. arXiv preprint. ArXiv:2307.15043 [cs.CL].arxiv.org/abs/2307.15043

Paper details

vlnc:W_7vj6bpzm
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 7

downloads · 0

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

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents