Manuscript Offprint
arXiv:2611.01493TopoSteer: Topological Layer Selection for Activation Steering in LLMs
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Activation steering controls large language models at inference time by adding a vector to their internal representations. Most work asks how to build that vector, and far less attention has gone to where to add it, even though steering at a poorly chosen layer can be worse than not steering at all. Prior selectors choose a layer without ever steering the model to test it: they score how separable the target behavior is at that layer, and how consistently the individual examples point along the steering direction. We argue that what matters is not the separability of the two activation clouds, nor the alignment of individual displacements with their mean, but the extent of the cloud of per-example displacements that mean-difference steering averages. We propose a topology-based layer selection method, called TOPOSTEER, which scores a layer by the total persistence of its displacement cloud, computed as the length of the cloud's Euclidean minimum spanning tree. We show that the score focuses on the displacement cloud's relative geometry, while class separation affects it only through standardization. We also provide a theoretical explanation for our method by proving that, as example-level variation increases, TOPOSTEER and discriminability move in opposite directions, so the two criteria can rank layers in opposite ways. Across multiple language models and steering tasks, TOPOSTEER provides a principled alternative to discriminability- and separability-based layer selection and yields more effective steering without requiring held-out validation.
1 INTRODUCTION
Large language models (LLMs) perform strongly across diverse tasks and are now deployed as commercial chat products whose real-world usage is long-form, multilingual, and highly varied across platforms (Yan et al., 2025), so deployment increasingly demands controllable, reliable, and aligned behavior at inference time. While fine-tuning and reinforcement learning can improve alignment, they are costly, task-specific, and irreversible. Activation steering has therefore emerged as a lightweight alternative that controls LLMs behavior at inference time by intervening directly on internal representations, without modifying model parameters (Turner et al., 2023). The dominant recipe is mean-difference (MD) steering, which computes a steering vector from contrastive examples and injects it into selected layers, and which has shown effectiveness for AI alignment, model reasoning, and safety mitigation (Rimsky et al., 2024a; Nguyen & Le, 2026a;b). However, MD's steering effectiveness depends strongly on where the intervention is applied (Rimsky et al., 2024b; Sun et al., 2025).
This strong layer dependence makes validation-free layer selection an important practical problem: given the contrastive examples used to construct the steering vector, can we predict effective intervention layers without exhaustively evaluating steering at every candidate layer? Figure 1(a) illustrates the challenge using MD as an example. The effectiveness of MD steering varies substantially across injection layers: on Llama-8B-Instruct, steering at early layers leaves performance near the unsteered baseline, injecting at layer 15 improves it, and at other layers steering reduces performance below the baseline. Exhaustively selecting of layers requires evaluating possible layer subsets on held-out data, making such a brute-force search impractical. Recent work therefore scores layers using only the extraction data. LayerNavigator (Sun et al., 2025) ranks layers by , combining a discriminability term , defined as a Fisher-type ratio of between-class to total scatter along the steering direction, with , which captures the alignment of individual displacements with the steering direction.
The two terms capture complementary but incomplete aspects of the geometry relevant to MD steering. MD does not use the two activation clouds separately. At layer , let denote the residual-stream activation of input . We define the per-example displacement as (in the standardized representation of Sec. 3.1), and the displacement cloud as . Because MD steering forms its intervention by averaging these per-example displacements, whether a single vector represents the available signal is a property of the displacement cloud . The discriminability term never looks at that cloud: it is built from class means and within-class scatter, and describes how separable the two classes are rather than how the individual examples move. The consistency term does look at it, but only at directions; as an average of cosine similarities, it is unchanged if each displacement is rescaled independently. It therefore measures how tightly the displacements concentrate about the mean direction, and discards their extent: whether the cloud is a tight clump around a single vector, or a broad set of example-specific ones. This extent, overlooked by both terms, is what we propose to score in this paper.
To this end, we propose TOPOSTEER, which scores each layer by the total degree-zero persistence of its displacement cloud
evaluated in the standardized representation of Sec. 3.1. The second equality is the classical identification of finite death scales with Euclidean minimum-spanning-tree edge weights (Gower & Ross, 1969), which we use as the computational form of the score. The score requires no held-out steering runs, no auxiliary training, and no forward passes beyond those already performed to extract the MD's steering vectors.
Our analysis shows that TOPOSTEER measures a quantity neither existing term captures. Against discriminability, the relation is an exact reversal: along the axis that scales example-level variation at fixed class means, the two scores move in opposite directions, so the criteria can rank layers oppositely (Theorem 1). Against consistency, it is complementarity: connectivity length is invariant to the mean displacement and 1-homogeneous, while consistency is an average of cosines and therefore reads only directions, discarding the extent that measures. On real activations, we further identify an answer-polarity axis induced by the contrastive format rather than the target behavior. This axis splits the displacement cloud into two lobes without contributing between-class information, yet it affects the two criteria through different geometric mechanisms: its effect on discriminability depends on its alignment with the steering direction, whereas its effect on is governed by the spanning-tree bridge and the merging of the two lobes. We analyze these effects in Sec. 5.3.
Our main contributions are as follows. We identify the displacement cloud as the steering-relevant object for MD layer selection and propose TOPOSTEER, a validation-free topological selector based on its total persistence. We theoretically characterize how its connectivity differs from discriminability and directional consistency, and empirically show that it improves layer selection across multiple models and steering tasks without held-out search.
(a)

(b)
Figure 1: Layer choice decides the outcome, and LayerNavigator and TOPOSTEER choose differently. (a) Single-layer steering performance against depth (conscientiousness, Llama-8B) with the unsteered baseline, and the layer each method ranks highest (K=1). (b) Why they differ: two layers from the family of Theorem 1, with the same class means and the same steering vector, differing only in the scale of example-level variation. Top: activations, each contrastive pair joined by its displacement (grey arrows), with the mean difference in blue. With large variation, the two classes overlap, so discriminability drops, while the displacements keep a common direction but vary widely in length. Bottom: the same displacements drawn from a common origin form the displacement cloud ; connectivity length is the length of its spanning tree (orange), which by Corollary 1 does not see the offset at all. The large-variation layer is therefore scored higher by TOPOSTEER and lower by LayerNavigator, whose full score also drops. All values shown are computed from the data drawn; the construction is the one of Appendix F.
2024b), refusal-direction interventions (Arditi et al., 2024), and related inference-time interventions (Li et al., 2023); the model parameters remain unchanged and the intervention can be applied dynamically (Nguyen & Le, 2026a;b). Our contribution is orthogonal to the choice of direction: we take the extractor as given and ask where to apply it. Existing selection strategies rely on probing accuracy, linear separability, activation differences, or heuristics such as intervening in the middle third of the network. LayerNavigator (Sun et al., 2025) is the closest point of comparison, combining a Fisher-type discriminability score , computed from class means and within-class scatter, with a directional-consistency term , the mean cosine between the steering vector and the individual displacements. TOPOSTEER scores the extent of those displacements, which neither term captures. TOPOSTEER evaluates the geometry of the per-example displacement vectors that MD steering actually averages, rather than the separability of the two activation classes.
Persistent Homology of Neural Representations. Persistent homology gives a multiscale description of a point cloud (Edelsbrunner & Harer, 2008), and has been used to study neural representations and their geometry (Rieck et al., 2019; Gabrielsson et al., 2020; Naitzat et al., 2020; Uchendu & Le, 2026). Fay et al. (2026) analyze LLMs' activation spaces and show that adversarial inputs induce topological compression, in which diverse small-scale features collapse into fewer dominant large-scale structures. Related work on transformer geometry has also documented systematic layerwise variation in intrinsic dimension, anisotropy, and representational expansion and compression with depth (Gardinazzi et al., 2025). Recent work has moved toward adaptive steering, selecting intervention layers or steering strengths based on the input. W2S (Gadgil et al., 2026) learns a predictor for the input-specific optimal intervention layer, using candidate-layer evaluations to construct the supervision signal. Dynamically Scaled Activation Steering (Ferrando et al., 2025) instead learns input- and layer-dependent scaling factors that determine when and how strongly to steer. Nelwan & Wicaksono (2026) extend adaptive selection to multiple layers, training a prompt-based ranker from per-instance layer-selection targets and an adaptive gate for the number of layers. These approaches require either candidate-layer evaluation or additional training to learn an input-dependent selection policy, whereas TOPOSTEER selects layers directly from the contrastive extraction data, without held-out steering evaluations or selector training. We therefore use persistent homology not as a classifier or training objective, but as a validation-free diagnostic of the geometry of paired displacements for selecting intervention layers.
3 TOPOSTEER: TOPOLOGICAL LAYER SELECTION
This section defines the method: the object it scores (Sec. 3.1), the score and its exact invariances (Sec. 3.2), and the selection procedure, its cost, the diagnostic that guards its main failure mode, and the two regimes in which the selected layers are steered (Sec. 3.3). Why this criterion differs from class-separability selectors, and what the displacement cloud looks like in a trained model, are deferred to Sec. 5, after the empirical comparison.
3.1 THE DISPLACEMENT CLOUD
Let be a fixed layer of width and let be paired contrastive inputs. Write , , for the residual-stream activation at the final prompt token. MD vectors are computed from the raw activations as follows: and injects at the chosen layers. For selection, we need displacement geometries that are comparable across layers rather than dominated by coordinate-wise scale, we standardize the representation with
where are the coordinate-wise mean and standard deviation over all activations at layer . The displacement cloud is
with mean is the mean-difference direction in the analyzed space. Writing for the within-class residuals and for the residual displacements, each displacement decomposes as
The contrastive construction gives a second, structural decomposition that the score turns out to be insensitive to; we defer it to Sec. 5.3, where it is what separates the two criteria.
3.2 SCORING A LAYER
We score a layer by the connectivity of its displacement cloud, measured by the total degree-zero persistence TotPers() of a finite point cloud , the sum of the finite death scales of its Vietoris–Rips barcode (Appendix B). Under the Euclidean filtration, these death scales are the edge weights of the Euclidean minimum spanning tree (Gower & Ross, 1969), which we use as the computational form of the score,
restated as Proposition 2 in Appendix C. It can be computed from the pairwise distance matrix in time, and admits a direct interpretation as the connectivity length of the displacement cloud. TOPOSTEER assigns layer the score:
Two exact properties of determine what the score can and cannot see (Proposition 4). It is translation invariant, and it is 1-homogeneous: for any and for . Applying translation invariance to the decomposition equation 4 gives the property we rely on throughout.
Corollary 1 (Common-mean invariance). Under the Euclidean metric, . The score is therefore invariant to the common mean displacement of the cloud it is given, and depends only on the relative arrangement of the example-level residual displacements. It does not follow that the pipeline is insensitive to between-class separation: the standardization equation 2 is estimated from the same activations, and separation enters through it. Proposition 1 makes the dependence exact.
3.3 LAYER SELECTION AND STEERING PROTOCOLS
Layer Selection. Given a layer budget , TOPOSTEER selects the highest-scoring layers, per task. At inference time, each selected layer receives its corresponding raw MD vector,
where is the steering strength and denotes the intervention token positions. The standardized displacement cloud is used only for layer scoring, while the raw MD vector is used for intervention; TOPOSTEER therefore changes only the layer-selection rule. Algorithm 1 summarizes the procedure. The same cached activations produce both the steering vectors and the layer scores, so TOPOSTEER requires no held-out steering evaluations, no auxiliary selector training, and no forward passes beyond those already needed for MD extraction; its additional cost is an offline geometric computation over the extraction data, per layer (Appendix H). A large connectivity length can arise from edge weights spread across the cloud or from a few long edges bridging separated modes or isolated outliers; in the second case measures separation between modes rather than the arrangement within them. Algorithm 1 therefore also returns the bridge share
the fraction of the score carried by its longest edge, which flags whether the score is bulk-driven or carried by a single connection (Appendix F).
Simultaneous and Sequential Steering. We consider two intervention protocols. In the simultaneous regime, all selected layers are intervened at once (equation 7) using a single extraction pass. It is the protocol used by prior validation-free selectors, and it assumes that scores computed on the unsteered model still describe the model once the first injection is in place, which may not be true. We therefore also evaluate a sequential regime, applying the injections one at a time. At round we re-run the extraction pass through the model already carrying rounds , recompute the MD vectors and the layer scores from those steered activations, and
Algorithm 1 TOPOSTEER Layer Selection
Require: ; model with layers; steering budget
Ensure: selected layers ; ; score
1: Run on and cache
2: for do
3:
4: by equation 2
5: Construct by equation 3
6:
7:
8:
9: end for
10:
11: return , , ,
inject at the new argmax. Each round takes the argmax over the layers not yet selected, so the output is an ordered tuple of distinct layers that need not equal the simultaneous top-; at the two regimes coincide. The regime costs extraction passes instead of one and is a protocol rather than a selector.
4 EXPERIMENTS
Setup. We evaluate TOPOSTEER on six binary persona-steering tasks from the Anthropic Persona Dataset (Perez et al., 2023). We use approximately 700 paired examples to extract the MD vectors and compute layer scores, and 100 held-out examples for evaluation. Experiments cover five instruction-tuned models: LLAMA-3-3B-INSTRUCT (Llama-3B), LLAMA-3-8B-INSTRUCT (Llama-8B) (Grattafiori et al., 2024), QWEN2.5-3B-INSTRUCT (Qwen-3B), QWEN2.5-7B-INSTRUCT (Qwen-7B), and QWEN2.5-32B-INSTRUCT (Qwen-32B) (Team et al., 2024). Activations are extracted at the final prompt token. TOPOSTEER scores the standardized displacement
| Base | K = 1 | K = 2 | K = 3 | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Disc | Rand | LN | Ours | Oursℓ₂ | Disc | Rand | LN | Ours | Oursℓ₂ | Disc | Rand | LN | Ours | Oursℓ₂ | |||
| Simultaneous | Llama-3B | 66.73 | 72.79 | 70.46 | 73.79 | 72.79 | 72.79 | 79.71 | 75.40 | 81.38 | 81.38 | 81.38 | 77.03 | 73.44 | 75.12 | 80.49 | 77.40 |
| Llama-8B | 77.62 | 79.73 | 80.04 | 81.26 | 83.44 | 82.70 | 81.70 | 83.83 | 84.87 | 84.26 | 87.09 | 84.11 | 85.79 | 86.43 | 85.91 | 84.73 | |
| Qwen-3B | 64.26 | 61.12 | 63.88 | 64.30 | 64.86 | 71.77 | 59.63 | 61.96 | 64.16 | 60.90 | 77.63 | 56.41 | 61.55 | 66.20 | 61.07 | 79.71 | |
| Qwen-7B | 85.24 | 85.91 | 85.58 | 85.60 | 85.84 | 85.72 | 85.85 | 85.86 | 86.10 | 85.85 | 85.62 | 85.63 | 85.19 | 84.97 | 85.88 | 85.40 | |
| Qwen-32B | 82.68 | 82.78 | 83.10 | 83.42 | 83.24 | 83.23 | 82.51 | 82.97 | 83.08 | 83.91 | 83.69 | 81.92 | 82.94 | 81.75 | 83.66 | 83.64 | |
| Sequential | Llama-3B | 66.73 | 72.79 | 70.46 | 73.79 | 72.79 | 72.79 | 78.74 | 73.20 | 80.61 | 80.41 | 80.41 | 77.12 | 76.01 | 75.17 | 78.13 | 73.06 |
| Llama-8B | 77.62 | 79.73 | 80.04 | 81.26 | 83.44 | 82.70 | 80.10 | 81.49 | 84.28 | 84.11 | 86.49 | 80.83 | 83.10 | 85.24 | 85.58 | 85.65 | |
| Qwen-3B | 64.26 | 61.12 | 63.88 | 64.30 | 64.86 | 71.77 | 57.12 | 63.48 | 64.88 | 61.63 | 76.72 | 56.86 | 63.43 | 66.48 | 61.22 | 79.19 | |
| Qwen-7B | 85.24 | 85.91 | 85.58 | 85.60 | 85.84 | 85.72 | 85.86 | 85.80 | 86.19 | 85.78 | 85.51 | 85.75 | 86.82 | 86.30 | 85.66 | 85.38 | |
| Qwen-32B | 82.68 | 82.78 | 83.10 | 83.42 | 83.24 | 83.23 | 82.49 | 82.86 | 82.95 | 83.53 | 83.54 | 81.96 | 82.73 | 82.87 | 83.33 | 83.50 | |
Table 1: Aligned-answer probability (%, ↑), averaged over the six persona-steering tasks. Base is the unsteered model. For each layer budget we compare discriminability-only (Disc), random selection, LayerNavigator (LN), and TOPOSTEER under two scoring clouds: the standardized displacement cloud (Ours) and its unit-sphere projection (Ours). Bold marks the best selector per setting and underline the second best; Base is a reference and is excluded from both. Green cells mark TOPOSTEER results exceeding the strongest non-TOPOSTEER selector by at least 2.0 percentage points. The upper block reports simultaneous steering; the lower block reports greedy sequential selection with re-extraction, where each step adds a layer not chosen in an earlier step.
clouds of Eq. 3, while the raw MD vectors are used for intervention. Unless otherwise stated, , both intervention regimes in Sec. 3.3 are considered, and all filtrations use Euclidean distance.
Baselines. We compare against LayerNavigator (Sun et al., 2025), layer selection by activation discriminativeness, and random selection. We also report a variant of TOPOSTEER in which each standardized displacement is normalized to unit length, , before computing the layer score; the score thus depends only on the directions of the displacements, not on their magnitudes. We refer to Appendix J for additional detail.
Main Results. Table 1 summarizes alignment performance averaged over the six persona-steering tasks. In the simultaneous setting, TOPOSTEER outperforms LayerNavigator in 10 of 15 model-budget comparisons, ties in one, and is lower in four. The largest gains occur on Qwen-3B, where TOPOSTEER improves alignment from 64.30% to 71.77%, from 64.16% to 77.63%, and from 66.21% to 79.71% for , respectively. On Llama-8B, it also improves alignment at and by 2.18 and 1.22 percentage points, respectively. The gains are smaller and more mixed on Qwen-7B and Qwen-32B, showing that the benefit of displacement-based selection depends on both the model and layer budget. Table 5 reports per-task results and additional baselines. These results also reveal that increasing the number of selected layers does not necessarily improve alignment, motivating a separate analysis of the effect of the layer budget and its cost to output quality. We therefore report both alignment and generation perplexity in Table 6.
Sequential Steering. Table 1 compares simultaneous and greedy sequential steering at matched layer budgets and steering strength, with per-task results in Table 7. Sequential selection changes the results more noticeably than in our earlier aggregate comparison, but the relative ranking remains model-dependent. For Llama-3B, sequential steering favors LayerNavigator at (80.61 vs. 80.41) but favors TOPOSTEER at (78.13 vs. 75.17). On Llama-8B, TOPOSTEER slightly exceeds LayerNavigator at (85.58 vs. 85.24). On Qwen-3B, the unit-sphere variant of TOPOSTEER remains substantially stronger at both and (76.72 and 79.19), while the standardized variant trails LayerNavigator. For Qwen-7B and Qwen-32B, the differences are smaller. Overall, sequential re-selection can change the preferred method as additional layers are introduced, but its effect depends strongly on both the model and the scoring variant.
| TOPOSTEER | W2S-Multi | ||||||
|---|---|---|---|---|---|---|---|
| Prob (↑) | PPL (↓) | Time (↓) | Prob (↑) | PPL (↓) | Time (↓) | ΔProb | |
| Llama-3B | 78.22 | 26.10 | 7.7 | 78.06 | 26.08 | 14.9 | -0.16 |
| Llama-8B | 84.53 | 11.22 | 10.7 | 85.83 | 11.24 | 27.4 | +1.30 |
| Qwen-3B | 62.28 | 7.00 | 3.3 | 68.58 | 8.44 | 6.1 | +6.30 |
| Qwen-7B | 85.86 | 18.72 | 4.6 | 89.03 | 19.97 | 7.7 | +3.17 |
| Qwen-32B | 83.60 | 5.84 | 15.9 | 84.75 | 6.92 | 23.6 | +1.15 |
| Average | 78.90 | 13.78 | 8.4 | 81.25 | 14.53 | 15.9 | +2.35 |
Table 2: Alignment probability (%) and perplexity averaged over six persona tasks and , and total running time in minutes for all six tasks for TOPOSTEER and W2S-Multi.
Model Utility After Steering. Perplexity captures output fluency but does not directly measure whether steering preserves general model capabilities. We therefore evaluate the steered models on MMLU (Hendrycks et al., 2021). Figure 2 shows the change in MMLU accuracy relative to the unsteered model, averaged over . Across models, the changes are small for all three steering variants, with TOPOSTEER remaining close to the unsteered baseline and showing near-zero average change on Qwen-7B and Qwen-32B. This suggests that the alignment gains from TOPOSTEER generally come with limited impact on downstream task performance. Full per- results and comparisons are reported in Appendix O.

Figure 3: Layers selected and resulting alignment on Qwen2.5-3B (Conscientiousness, ) for LayerNavigator and Ours.
| Llama-3B | -0.99 | -1.11 | -1.11 | |
|---|---|---|---|---|
| Llama-8B | -1.11 | -0.64 | -1.31 | |
| Qwen-3B | -0.17 | -0.29 | +0.15 | |
| Qwen-7B | -0.65 | +0.02 | -0.03 | |
| Qwen-32B | -0.32 | -0.09 | -0.09 | |
| LN | Ours | Ours |
Figure 2: Change in MMLU accuracy relative to the unsteered model.
Which Layers TOPOSTEER Selects? Figure 3 illustrates how different selection criteria can lead to substantially different intervention layers. On Qwen-3B for conscientiousness at , Disc and LayerNavigator select layers 21–23, while TOPOSTEER selects layers 33–35. This difference is accompanied by a large change in aligned-answer probability, from 51.58% for LayerNavigator to 84.86% for TOPOSTEER. The result illustrates that the choice of layer-selection criterion can matter as much as the number of layers selected. More generally, the two criteria rank layers according to different geometric properties of the representation, so their selected layer sets need not overlap. This case study provides an empirical view of the layer-selection shift; the full selected-layer sequences across models and tasks are reported in Appendix M.
Comparison with Evaluation-Based Selection. We additionally compare TOPOSTEER with W2S-Multi (Nelwan & Wicaksono, 2026), a per-instance multi-layer method that learns layer selection from evaluation-based steerability signals. Table 2 shows the alignment performance on the same five models across six persona tasks. Overall, W2S-Multi achieves higher average alignment (81.25% vs. 78.90%) at a slightly higher perplexity (14.53 vs. 13.78), but requires substantially more computation: 15.9 minutes versus 8.4 minutes for the complete evaluation. The additional cost arises from evaluating candidate layers on labelled validation prompts: its offline selection cost is , where is the number of candidate layers, the number of validation prompts, and the cost of a steered forward pass. In contrast, TOPOSTEER computes its layer score directly from the contrastive extraction data, without held-out steering evaluations or selector training. We provide setup and implementation details in Appendix P.
5 CONNECTIVITY VERSUS DISCRIMINABILITY
The experiments show that connectivity often ranks layers better than separability in Table 1. We therefore ask why the two criteria differ: Sec. 5.1 identifies how separation affects the score; Sec. 5.2 shows that the criteria reverse their ordering along a controlled geometric axis; and Sec. 5.3 shows that they respond differently to the answer-polarity axis in real activations.
5.1 WHAT STANDARDIZATION COUPLES THE SCORE TO
Corollary 1 says the score ignores the mean displacement of the cloud it is given. Separation still reaches it, through the standardization equation 2: for balanced classes the pooled variance of coordinate is , where is the pooled within-class variance of the raw activations and the raw mean difference.
Proposition 1 (Standardization couples the score to class separation). Write for the coordinate-wise separation-to-noise ratio, and with for the within-class-standardized residual displacements. Then
so is non-increasing in every , strictly decreasing in whenever coordinate is non-constant on , and equal to when the separation is spread evenly, (proof in Appendix L).
Separation therefore enters only as a divisor. is invariant to a common rescaling of all coordinates but not to the coordinate-wise one of equation 2, so both criteria move under the shared standardization, and part of any measured anti-correlation between them is attributable to it rather than to displacement geometry. Appendix L gives the separation-free form of the score, which the same cached activations yield at no extra cost.
5.2 DECOUPLING FROM LAYERNAVIGATOR'S DISCRIMINABILITY
LayerNavigator scores a layer with a discriminability term , a Fisher-type ratio of projected between-class to total scatter, together with a directional-consistency term. Consider the family that fixes the class means and scales the within-class residuals by , giving displacements , with the standardization held fixed. Writing and for the projected between-and within-class terms, LayerNavigator's discriminability reduces to (Appendix D).
Theorem 1 (Separability–connectivity decoupling). Assume and . Then, for every , total persistence is strictly increasing in , whereas is strictly decreasing. The two criteria therefore induce opposite orderings on the family .
Proof sketch. By Corollary 1 and 1-homogeneity, , so . Differentiating gives . The full proof and the reduction of are in Appendix D.
The theorem concerns a one-parameter family at a fixed layer and the discriminability component alone: real layers may also differ along directions on which the two scores agree, which is why the selectors sometimes coincide, and the consistency component and the full published score enter through the comparison of Sec. 4. If the standardization is instead re-estimated along the family, remains strictly increasing but saturates at the separation-free score of Proposition 1, and keeps the reduction above whenever the re-standardization is a common scalar (Remark 1). A two-dimensional instance is Figure 1(b), constructed in Appendix F, which also shows the two ways a cloud can reach a high score, with length spread over many short edges or concentrated in a single bridge, the case the bridge share equation 8 detects.
5.3 SENSITIVITY TO THE ANSWER-POLARITY AXIS
The contrastive format imposes a second split on , an answer-polarity axis, which we characterize and then remove, as a diagnostic, to see how each criterion responds. Formal statements and proofs are in Appendix E.
The answer-polarity axis. Equation 4 splits each displacement into a common part and a residual. The way contrastive pairs are built imposes a second split. Each example consists of one prompt and two candidate responses, one matching the target behavior and one not, and the activations and are taken after appending the matching and non-matching response, respectively. The
(a) D moves -- Alliance,

(b) does not -- Alliance
(c) shift in D vs.
(d) shift on top-5 vs. margin
(e) Alliance, layer 14

(f) no class signal along
○ Conscientiousness □ Religion △ Self-Improvement ◇ Self-Aware ∇ Alliance ✚ Impact
Figure 4: Sensitivity to the answer-polarity axis; Alliance Building shown in (a), (b) and (e). (a) along before and after the axis is projected out, with each curve's top-5 layers marked. (b) The same for , whose top-5 set is unchanged. (c) The shift in against the scatter reduction of Proposition 5, all six tasks and layers. (d) The largest shift among each criterion's own top-5 layers, divided by its rank-1-to-rank-5 gap. (e) The activations at layer 14 in the plane of the steering direction and the polarity axis: the axis separates the lobes but not the classes. (f) Discriminability along the polarity axis against discriminability along the steering direction, all tasks and depths. The polarity sign of each pair is read off the cloud as the side of the longest spanning-tree edge, which splits every cloud into 350/350 with the same partition at all 32 layers.
prompt is the same in both, so it cancels in the difference, and what remains is the difference between the two response tokens plus a behavior term. In the persona datasets, the two responses are Yes and No. If the behavior-matching answer for example is Yes, the token part of is ; if it is No, the token part is the same vector with the opposite sign. Writing for half that difference, every displacement carries either or : where is the behavior term. The sign records how the dataset was written for that example, not anything about the behavior being steered. We estimate as the half-difference of the displacement means of the Yes- and No-matching examples, and write for the corresponding unit vector. Because the two polarities are balanced, the contributions cancel in the mean, so MD steering is blind to the axis. The cloud is not: the two signs produce two lobes separated primarily along (Figure 5). The axis carries essentially no class information: evaluated along is close to zero across tasks and layers (Figure 4(f)), as expected, since the sign records which response token is designated as behavior-matching, not the behavioral class. To isolate its effect, we project it out with ; the projected cloud is a diagnostic only and is never used for steering.
Discriminability under projection. Let and , with unit vectors and . Projecting the activations and evaluating along gives the same value as evaluating the original scatter matrices along (Lemma 3), so the projection acts on as a change of direction, not of data. Let measure the alignment of the polarity axis with the steering direction, and the fractional reduction in within-class scatter from to . Then exactly, and
(Proposition 5): removing the axis improves discriminability only when the scatter it removes out-weighs the between-class signal lost by tilting the steering direction. The shift vanishes when , and when is an eigenvector of it is positive only if the axis carries more than times the within-class scatter of the residual steering direction.
Connectivity under projection. For the projection acts on the geometry itself. Let . Orthogonal projection cannot increase pairwise distances, so , and the deficit is bounded by the components along of the edges of the spanning tree of the projected cloud (Proposition 6). In a two-lobe cloud it has two parts: the bridge component along , and the superposition of the two lobes, which changes the tree from spanning two sets of about points to spanning points in the residual space, a relative change of about for lobes of intrinsic dimension (Remark 2).
Comparison. The two criteria thus reach the projected-out direction through different mechanisms: through its contribution to the spanning tree, through the competition between and in equation 9. Figure 4 reports the measurements: panel (c) shows the shift in against , and panel (d) puts both shifts on a common scale, dividing each by the gap between the criterion's own rank-1 and rank-5 layer scores. The projection is a diagnostic, not a fix: it does not reconcile the two rankings, moving LayerNavigator's ordering towards TOPOSTEER's on one task and away from it on the others. The claim is narrower: a criterion's value should not be dominated by a direction with zero between-class variance.
Additional Analysis. Due to space limit, we provide other supporting experiments and analyses in the Appendix. Appendix N ablates the topological descriptor, filtration distance and layer budget used to rank layers, Appendix Q compares connectivity length with the sum of distances to the mean and shows when the bridge share is needed, Appendix F numerically verifies the lobe-merging term of Remark 2, Appendix C proves the stability of total persistence and connectivity length, and Appendix D relates LayerNavigator's within-class scatter to the spread of the displacement cloud.
6 CONCLUSION
We introduced TOPOSTEER, a validation-free layer selector for mean-difference activation steering that uses the geometry of per-example displacement clouds rather than class separability. The score is total persistence, equivalently the Euclidean minimum spanning tree length, and requires neither held-out steering evaluations nor auxiliary training. Across six persona tasks and five models, TOPOSTEER improves alignment in many settings at comparable perplexity cost, supported by theoretical and geometric analyses contrasting connectivity and discriminability.
Limitations. The method assumes matched positive and negative examples and currently considers only mean-difference steering, leaving alternative extractors for future work. Multi-layer steering can degrade perplexity on some models, while Theorem 1 applies only to a fixed layer and its across-layer implications remain empirical; Appendix Q further shows that the guarantees can miss mode splits concentrated in a few coordinates. A promising direction is stylistic control, where author-style imitation or obfuscation is often achieved through prompting (Nguyen et al., 2025); because such stylistic signals may be diffuse and layer-dependent, validation-free layer selection could be particularly useful in this setting.
AI USE STATEMENT
In this work, we used generative AI tools for language editing and code assistance. Specifically, AI tools were used to correct grammar, improve clarity, polish manuscript text, and refine code for data visualization and related implementation tasks. We did not use generative AI tools to conduct experiments, generate or modify experimental results, construct datasets, or formulate scientific claims. All AI-assisted text and code were reviewed by the authors; generated code was manually inspected, executed, and verified for correctness. We take full responsibility for the final content of this work, including all text, claims, analyses, results, and artifacts produced with the aid of generative AI.
ETHICS STATEMENT
Activation steering can be used to improve model behavior, such as increasing helpfulness or reducing undesirable responses, but it can also be misused to manipulate model outputs or bypass intended safeguards. This work studies controlled persona-style steering tasks and does not train or release a new model. Because the method operates at inference time, it could be applied dynamically without changing model weights. Any release of code or steering vectors should therefore include documentation of intended use, limitations, and potential misuse risks. Future deployment of steering methods should include safety evaluations to ensure that behavioral interventions do not degrade harmlessness, truthfulness, or robustness.
REPRODUCIBILITY STATEMENT
The score is defined in Sec. 3.2 and computed by Algorithm 1; all formal statements are proved in Appendices C–E with their assumptions stated. Tasks, models, baselines, metrics, steering strength, and layer budgets are given in Appendix J, per-task results in Appendix K, and the synthetic constructions behind every toy figure in Appendix F and Appendix Q.
ACKNOWLEDGMENTS
E.P.-H. is funded by the European Union's Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No. 101153039 (CHALKS).
REFERENCES
Andy Arditi, Oscar Balcells Obeso, Aaquib Syed, Daniel Paleka, Nina Rimsky, Wes Gurnee, and Neel Nanda. Refusal in language models is mediated by a single direction. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=pH3XAQME6c.
Herbert Edelsbrunner and John Harer. Persistent homology: A survey. Contemporary Mathematics, 2008. URL https://pub.ista.ac.at/~edels/Papers/2008-02-PersistentHomology.pdf.
Aideen Fay, Inés García-Redondo, Qiquan Wang, Haim Dubossarsky, and Anthea Monod. The shape of adversarial influence: Characterizing LLM latent spaces with persistent homology. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=v2PglvLLKT.
Alex Ferrando, Xavier Suau, Jordi González, and Pau Rodriguez. Dynamically scaled activation steering. arXiv preprint arXiv:2512.03661, 2025. URL https://arxiv.org/abs/2512.03661.
Rickard Briel Gabrielsson, Bradley J. Nelson, Anjan Dwaraknath, and Primoz Skraba. A topology layer for machine learning. In Silvia Chiappa and Roberto Calandra (eds.), Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, volume 108 of Proceedings of Machine Learning Research, pp. 1553–1563. PMLR, 26–28 Aug 2020. URL https://proceedings.mlr.press/v108/gabrielsson20a.html.
Soham Gadgil, Chris Lin, and Su-In Lee. Where to steer: Input-dependent layer selection for steering improves llm alignment. arXiv preprint arXiv:2604.03867, 2026. URL https://arxiv.org/abs/2604.03867.
Yuri Gardinazzi, Karthik Viswanathan, Giada Panerai, Alessio ansuini, Alberto Cazzaniga, and Matteo Biagetti. Persistent topological features in large language models. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=qAHnSkHvsm.
J. C. Gower and G. J. S. Ross. Minimum spanning trees and single linkage cluster analysis. Journal of the Royal Statistical Society. Series C (Applied Statistics), 18(1):54–64, 1969. ISSN 00359254, 14679876. URL http://www.jstor.org/stable/2346439.
Aaron Grattaflori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv, 2024. URL https://arxiv.org/abs/2407.21783.
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=d7KBjmI3GmQ.
Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. Parameter-efficient transfer learning for nlp. In International conference on machine learning, pp. 2790–2799. PMLR, 2019.
Edward J Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=nZeVKeeFYf9.
Lingkai Kong, Haorui Wang, Wenhao Mu, Yuanqi Du, Yuchen Zhuang, Yifei Zhou, Yue Song, Rongzhi Zhang, Kai Wang, and Chao Zhang. Aligning large language models with representation editing: A control perspective. The Thirty-eighth Annual Conference on Neural Information Processing Systems, 37, 2024. https://openreview.net/forum?id=yTTomSJsw.
Kenneth Li, Oam Patel, Fernanda Viégas, Hanspeter Pfister, and Martin Wattenberg. Inference-time intervention: Eliciting truthful answers from a language model. Advances in neural information processing systems, 2023. URL https://openreview.net/forum?id=aLLuYpn83y.
Samuel Marks and Max Tegmark. The geometry of truth: Emergent linear structure in large language model representations of true/false datasets. In First Conference on Language Modeling, 2024. URL https://openreview.net/forum?id=aajyHYjjsk.
Gregory Naitzat, Andrey Zhitnikov, and Lek-Heng Lim. Topology of deep neural networks. Journal of Machine Learning Research, 21(184):1–40, 2020. URL http://jmlr.org/papers/v21/20-345.html.
Muhammad Faishal Adly Nelwan and Alfan Farizki Wicaksono. Deployable per-instance multi-layer activation steering for large language models. arXiv preprint arXiv:2608.08829, 2026. URL https://arxiv.org/abs/2608.08829.
Tuc Nguyen and Thai Le. Generalizability of mixture of domain-specific adapters from the lens of signed weight directions and its application to effective model pruning. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 12956–12973, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.700. URL https://aclanthology.org/2024.acl-long.700/.
Tuc Nguyen and Thai Le. Atlas: Adaptive test-time latent steering with external verifiers for enhancing llms reasoning. arXiv preprint arXiv:2601.03093, 2026a. URL https://arxiv.org/abs/2601.03093v4.
Tuc Nguyen and Thai Le. Beyond linear activation steering: Invertible latent transformations for controlling llm behavior. The Fortieth Annual Conference on Neural Information Processing Systems, 2026b. URL https://arxiv.org/abs/2606.08454.
Tuc Nguyen, Yifan Hu, and Thai Le. Unraveling interwoven roles of large language models in authorship privacy: Obfuscation, mimicking, and verification. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 14914–14930, 2025. URL https://aclanthology.org/2025.emnlp-main.753.pdf.
Ethan Perez, Sam Ringer, Kamile Lukosiute, Karina Nguyen, Edwin Chen, Scott Heiner, Craig Pettit, Catherine Olsson, Sandipan Kundu, Saurav Kadavath, Andy Jones, Anna Chen, Benjamin Mann, Brian Israel, Bryan Seethor, Cameron McKinnon, Christopher Olah, Da Yan, Daniela Amodei, Dario Amodei, Dawn Drain, Dustin Li, Eli Tran-Johnson, Guro Khundadze, Jackson Kernion, James Landis, Jamie Kerr, Jared Mueller, Jeeyoon Hyun, Joshua Landau, Kamal Ndousse, Landon Goldberg, Liane Lovitt, Martin Lucas, Michael Sellitto, Miranda Zhang, Neerav Kingsland, Nelson Elhage, Nicholas Joseph, Noemi Mercado, Nova DasSarma, Oliver Rausch, Robin Larson, Sam McCandlish, Scott Johnston, Shauna Kravec, Sheer El Showk, Tamera Lanham, Timothy Telleen-Lawton, Tom Brown, Tom Henighan, Tristan Hume, Yuntao Bai, Zac Hatfield-Dodds, Jack Clark, Samuel R. Bowman, Amanda Askell, Roger Grosse, Danny Hernandez, Deep Ganguli, Evan Hubinger, Nicholas Schiefer, and Jared Kaplan. Discovering language model behaviors with model-written evaluations. In Anna Rogers, Jordan Boyd-Graber, and Naoaki Okazaki (eds.), Findings of the Association for Computational Linguistics: ACL 2023, pp. 13387–13434, Toronto, Canada, July 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.findings-acl.847. URL https://aclanthology.org/2023.findings-acl.847/.
Bastian Rieck, Matteo Togninalli, Christian Bock, Michael Moor, Max Horn, Thomas Gumbsch, and Karsten Borgwardt. Neural persistence: A complexity measure for deep neural networks using algebraic topology. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=ByxkijC5FQ.
Nina Rimsky, Nick Gabrieli, Julian Schulz, Meg Tong, Evan Hubinger, and Alexander Turner. Steering llama 2 via contrastive activation addition. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 15504–15522, Bangkok, Thailand, August 2024a. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.828. URL https://aclanthology.org/2024.acl-long.828/.
Nina Rimsky, Nick Gabrieli, Julian Schulz, Meg Tong, Evan Hubinger, and Alexander Turner. Steering llama 2 via contrastive activation addition. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 15504–15522, Bangkok, Thailand, August 2024b. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.828. URL https://aclanthology.org/2024.acl-long.828/.
Pau Rodriguez, Arno Blaas, Michal Klein, Luca Zappella, Nicholas Apostoloff, Xavier Suau, et al. Controlling language and diffusion models by transporting activations. In International Conference on Learning Representations, volume 2025, pp. 89812–89855, 2025.
Hao Sun, Huailiang Peng, Qiong Dai, Xu Bai, and Yanan Cao. Layernavigator: Finding promising intervention layers for efficient activation steering in large language models. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=wj4lM45xQR.
Qwen Team et al. Qwen2 technical report. arXiv, 2024. URL https://arxiv.org/abs/2407.10671.
Alexander Matt Turner, Lisa Thiergart, Gavin Leech, David Udell, Juan J Vazquez, Ulisse Mini, and Monte MacDiarmid. Steering language models with activation engineering. arXiv, 2023. URL https://arxiv.org/abs/2308.10248.
Adaku Uchendu and Thai Le. Topological data analysis applications in natural language processing: A survey. SIGKDD Explor. Newsl., 28(1):81–101, June 2026. ISSN 1931-0145. doi: 10.1145/3820356.3820362. URL https://doi.org/10.1145/3820356.3820362.
Tuc Van Nguyen and Thai Le. Adapters mixup: Mixing parameter-efficient adapters to enhance the adversarial robustness of fine-tuned pre-trained text classifiers. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 21183–21203, 2024. URL https://aclanthology.org/2024.emnlp-main.1180.pdf.
Shitao Xiao, Zheng Liu, Peitian Zhang, Niklas Muennighoff, Defu Lian, and Jian-Yun Nie. C-pack: Packed resources for general chinese embeddings. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '24, pp. 641–649, New York, NY, USA, 2024. Association for Computing Machinery. ISBN 9798400704314. doi: 10.1145/3626772.3657878. URL https://doi.org/10.1145/3626772.3657878.
Yueru Yan, Tuc Nguyen, Bo Su, Melissa Lieffers, and Thai Le. Sharechat: A dataset of chatbot conversations in the wild. arXiv preprint arXiv:2512.17843, 2025. URL https://arxiv.org/abs/2512.17843.
Andy Zou, Long Phan, Alisa Liu, et al. Representation engineering: A top-down approach to ai transparency. arXiv preprint arXiv:2310.01405, 2023. URL https://arxiv.org/abs/2310.01405.
CONTENTS
1 Introduction 1
2 Related Work 2
3 TOPOSTEER: Topological Layer Selection 4
3.1 The Displacement Cloud ..... 4
3.2 Scoring a Layer ..... 4
3.3 Layer Selection and Steering Protocols ..... 5
4 Experiments 5
5 Connectivity versus Discriminability 7
5.1 What Standardization Couples the Score To ..... 8
5.2 Decoupling from LayerNavigator's Discriminability ..... 8
5.3 Sensitivity to the Answer-Polarity Axis ..... 8
6 Conclusion 10
A Notation 17
B Topological Data Analysis 17
B.1 Simplicial complexes ..... 18
B.2 Vietoris-Rips filtration ..... 18
B.3 Persistent Homology ..... 18
C MST characterization via persistent homology 19
D Derivation of the Discriminability Reduction 21
E Formal Analysis of the Answer-Polarity Axis 23
F Two-Dimensional Illustrations 27
F.1 The decoupling theorem in 2D ..... 27
F.2 Reading the MST of a displacement cloud ..... 28
F.3 The lobe-merging term of Remark 2 ..... 28
G Why Mean-Difference Extraction 29
H Computational Properties 30
I Activation Steering: Methods and Limitations 30
J Experimental Details 31
J.1 Setup ..... 31
K Detailed Alignment Results ..... 31
K.1 Alignment performance under total persistence score ..... 32
K.2 Sequential Steering with Distinct Layers ..... 32
L Separation-Free Standardization ..... 33
M Detail Layer Selection ..... 35
N Ablation Study with Different Topological Metrics ..... 35
O Additional Analysis ..... 36
P Detail Performance Evaluation with Evaluation-Based Selection Method ..... 36
Q Comparing Connectivity Length vs. Sum of Distance to the Mean ..... 37
Q.1 Model ..... 38
Q.2 Lemma: sum of norms vs. connectivity length ..... 38
Q.3 Proof of Lemma 4 ..... 39
Q.4 Two regimes ..... 40
Q.5 Simulation ..... 41
Q.6 Summary ..... 41
A NOTATION
Table 3 collects the symbols used in the paper. A layer subscript is carried where several layers are compared and suppressed where a single fixed layer is understood, so and denote the same object. Four symbols carry more than one meaning; in each case the reading is fixed by context and is noted here to avoid ambiguity. The letter denotes the residual-stream width in Sec. 5, a generic dissimilarity in the definition of the Vietoris–Rips complex, and a death scale when subscripted as . The letter is the scale parameter of the homothety family, while is the vector of per-coordinate standard deviations used for Z-scoring. The letter is the steering strength of Sec. 4. In Appendix Q, which is self-contained, denotes the ambient dimension of the synthetic clouds and the number of points, rather than the discriminability and the number of pairs used in the main text. Finally, in Remark 2 is the intrinsic dimension of a displacement lobe, not an ambient dimension. In Appendix E, and denote the quadratic forms evaluated at the unit steering direction ; they differ from the of Appendix D, evaluated at itself, by the factor , which cancels in .
Table 3: Notation Usage
| Symbol | Meaning |
|---|---|
| Model and data | |
| layer index; number of layers | |
| residual-stream width at the layer under consideration | |
| number of contrastive pairs | |
| the positive and negative variant of the -th prompt | |
| residual-stream activation at layer , final token position | |
| mean difference of raw activations | |
| steering strength; number of layers intervened on | |
| Normalized activations and scatter | |
| Z-scored activation of example in class | |
| coordinate-wise mean and standard deviation over all activations | |
| class mean of the normalized activations | |
| within-class residual | |
| between-class and within-class scatter matrices, Eqs. 12 and 13 | |
| projected signal and dispersion | |
| LayerNavigator discriminability; its value on the family | |
| Displacements | |
| displacement of the -th pair | |
| displacement cloud | |
| mean displacement of the standardized cloud; its unit vector | |
| residual displacement , so | |
| residual configuration , i.e. centered | |
| homothety family , defined on the standardized cloud (Appendix D) | |
| Topology | |
| Vietoris–Rips complex of at scale | |
| persistence diagram; 0-dimensional barcode | |
| death scale of the -th class | |
| total persistence (essential class discarded) | |
| minimum spanning tree; its total edge weight (connectivity length) | |
| bridge share , Eq. equation 8 | |
| 1-Wasserstein distance on diagrams, ground metric | |
| diagonal of the persistence plane | |
| unit vector ; orthogonal projector | |
B TOPOLOGICAL DATA ANALYSIS
Topological Data Analysis (TDA) provides a framework for studying the shape and structure of data by extracting topological features from discrete representations such as point clouds, graphs, or geometric datasets. In this work, we focus on point clouds obtained from neural network activations and use persistent homology to characterize their topological structure across different spatial scales.
B.1 SIMPLICIAL COMPLEXES
Simplicial complexes provide a convenient representation for studying the topology of discrete data. Given a set of vertices , a simplicial complex is a collection of non-empty subsets of such that, whenever , all faces of are also contained in . The elements of are called simplices. This representation allows geometric information from a point cloud to be converted into a combinatorial structure on which topological properties can be computed.
B.2 VIETORIS-RIPS FILTRATION
Let be a metric space, where in our setting denotes the Euclidean distance. Given a scale parameter , the Vietoris–Rips (VR) complex of a point cloud is defined as
In other words, a simplex is included in the complex when all pairwise distances between its vertices are at most . As increases, more simplices are added, resulting in a nested sequence
This sequence is called the Vietoris–Rips filtration.
B.3 PERSISTENT HOMOLOGY
Once a filtration has been constructed, homology can be used to identify topological structures at each scale. In a simplicial complex, homology distinguishes structures such as connected components, loops, and higher-dimensional cavities.
For a simplicial complex , the -th homology group can be expressed as
where is the boundary operator. Intuitively, this quotient identifies structures with no boundary that are not themselves boundaries of higher-dimensional structures. More specifically, captures connected components, captures one-dimensional loops, and captures enclosed voids.
Persistent homology extends this analysis across the entire filtration. For two scales , the inclusion
induces a map between their homology groups,
A topological feature can therefore be tracked as the scale parameter increases. Features that appear at some scale are said to be born, while features that subsequently disappear are said to die. Persistent homology records these birth and death scales, allowing topological features to be distinguished according to how long they persist across the filtration.
The resulting information can be represented by a barcode. For a fixed homological degree , the barcode is a multiset of intervals
where each interval represents a topological feature, with and denoting its birth and death scales, respectively. The lifetime, or persistence, of the feature is .
An alternative representation of the same information is given by persistence diagrams. For a fixed homological degree , the persistence diagram is a locally finite multiset of points
together with the diagonal
which is considered with infinite multiplicity. Each interval in the barcode is represented by a point in the persistence diagram.
Finally, the total persistence in homological degree is defined as the sum of the lifetimes of all features:
This quantity provides a compact measure of the overall amount of -dimensional topological structure present in the point cloud across the considered range of scales. In degree 0, the sum is taken over the finite bars only: the single essential class, which never dies, is discarded, so is finite. We write for throughout.
To compare persistence diagrams, one possible metric is the Wasserstein distance. It carries two independent indices, which we keep apart: the order of the sum, and the ground metric used on the persistence plane. For two diagrams,
where the infimum is taken over all admissible bijections
The use of the diagonal allows persistence features in one diagram to be matched to the diagonal, corresponding to features that are absent from the other diagram. Only the case with the ground metric is used in this paper; we abbreviate it , and it is the form appearing in Proposition 3(a).
C MST CHARACTERIZATION VIA PERSISTENT HOMOLOGY
A minimum spanning tree (MST) of a weighted graph is a spanning tree that connects all vertices while minimizing the total sum of edge weights. In the setting of a point cloud , we consider the complete graph whose vertices are the points in and whose edge weights are given by their pairwise Euclidean distances.
One standard way to construct an MST is Kruskal's algorithm. The algorithm considers the edges in non-decreasing order of their weights and adds an edge whenever it connects two previously disconnected components. Edges that would create a cycle are discarded. The process stops once all vertices are connected, resulting in an MST.
Throughout this section, we focus exclusively on connectivity and therefore on homology in degree 0. For simplicity of notation, we omit the homological degree from the notation for persistent homology quantities, with the convention that all such quantities refer to degree 0.
Proposition 2 (MST characterization). Let be a minimum spanning tree of the complete weighted graph on , with edge weights . The finite death scales are exactly the weights of the MST edges. Therefore,
Proof. Let denote the finite part of the 0-dimensional persistence diagram of the Vietoris-Rips filtration. In dimension 0, connected components of correspond precisely to the connected components of the graph , where
A birth-death pair is created if and only if two previously disjoint connected components merge at scale . This merge is induced by the addition of an edge of length
. Edges whose addition creates cycles in do not alter the number of connected components and thus contribute no persistence classes.
By construction, this process mirrors the execution of Kruskal's algorithm on : edges are inspected in non-decreasing order of weight, and an edge is added to the spanning forest if and only if it connects two distinct connected components. Consequently, the scale values at which classes die are precisely the weights of the edges selected by Kruskal's algorithm to form .
When some pairwise distances are tied, the minimum spanning tree need not be unique, but the multiset of its edge weights is; the identity is therefore unaffected by the tie-breaking rule.
Proposition 3 (Stability). Let and be finite subsets of with . Then the following properties hold:
(a) As a functional of the persistence diagram, TotPers is -Lipschitz (for an admissible bijection all but finitely many terms of the sum vanish). More precisely,
(b) As a functional of the point cloud, for any bijection ,
The constant grows linearly in and is attained at ; we make no claim of sharpness for larger . The bound is therefore per-point and gives no control uniform in the number of points.
Proof. (a) We prove that TotPers is -Lipschitz. Let
be any admissible bijection, where denotes the diagonal of the persistence plane. For a persistence point , define its persistence by .
For every matched pair and , we have
Therefore,
Since was arbitrary, taking the infimum over all admissible bijections gives
(b) Let . For every edge of , let be the corresponding edge in . By the triangle inequality,
The collection of edges forms a spanning tree of . Since minimizes the total weight among all spanning trees of ,
because every spanning tree has exactly edges.
Applying the same argument to the inverse bijection yields
Hence,
The constant is sharp: for , moving both points apart by each along the line through them lengthens the single edge by exactly .
Proposition 4 (Invariances). For and : and .
Proof. For every edge of , and ,
hence and .
D DERIVATION OF THE DISCRIMINABILITY REDUCTION
This appendix expands the algebra compressed in Sec. 5.2, in the notation established there.
We work at a fixed layer in the notation of Sec. 3.1, writing for the normalized activation of the -th example under class label and for the corresponding class mean. We define the residual of each sample with respect to the mean of its class as
where and for class c. By construction,
Instead of working with the 2N normalized activations, we consider the N paired differences. Specifically, we define
where and denote the differences between the class means and between the class residuals, respectively.
We denote the centered residual difference , and let be the resulting cloud of residual differences. Since for each , we have : the residual configuration is precisely the displacement cloud with its mean removed, so by Proposition 4.
To study the effect of varying the residual dispersion while keeping the class means fixed, we define the family directly on the standardized displacement cloud,
realized by the representative activations
which keep the class means fixed and reproduce exactly, since . The standardization equation 2 is held fixed along the family — it is estimated once from the layer's own activations — so that is unchanged and ; Remark 1 treats the case in which it is re-estimated.
LayerNavigator's discriminability is
where and denote the between-class and within-class covariance matrices, respectively,
Using the notation introduced above, the expressions in equation 12 and equation 13 simplify to
We define and such that
The within-class term is close to, but not equal to, the spread of the displacement cloud along the same direction, and the gap is exactly the paired covariance.
Lemma 1 (What and the displacement spread differ by). With and ,
Proof. , so , and the first two sums are by its definition above.
Variation shared by the two members of a pair — prompt template, topic, formatting, therefore enters but cancels in . This is the structural reason the two criteria can come apart, and it is what the shared term isolates in the construction of Appendix F.
Substituting these expressions into the definition of the LayerNavigator's discriminability yields
PROOF OF THEOREM 1
Proof. (i) Applying Proposition 2 together with Proposition 4, we obtain
Therefore, is strictly increasing since
(ii) Differentiating the discriminability operator yields
where the strict inequality follows from the assumptions and . Hence, is strictly decreasing.
Remark 1 (The family under re-standardization). If instead the family is generated at activation level and equation 2 is re-applied, the coordinate-wise pooled variance becomes with the pooled within-class standard deviation of Proposition 1, and the standardized displacements differ by
the mean displacement cancelling, where is the raw residual displacement. Writing , the coordinate factor has
with equality exactly on the coordinates where , on which . Every pairwise distance is therefore non-decreasing in , and since is non-decreasing in each entry of the distance matrix, so is TotPers; it increases strictly as soon as every pair of residual displacements differs on some coordinate with , which is the generic case. It is now bounded, with as , the separation-free score of Proposition 1, so the linear law holds only for the family of the theorem.
For the situation is different, because it is a ratio of quadratic forms and is therefore unchanged by a common rescaling of all coordinates. Whenever the re-standardization acts as a single scalar, independent of , as in the isotropic model of Appendix Q, the factor cancels from numerator and denominator and the reduction continues to hold exactly, so Theorem 1 applies verbatim. When the rescaling is coordinate-dependent, it does not cancel; is no longer that ratio, and we do not prove monotonicity; in simulation it remains strictly decreasing. In either case the orderings remain opposite. This is the same coupling as Proposition 1.
E FORMAL ANALYSIS OF THE ANSWER-POLARITY AXIS
This appendix expands and provides a formal analysis underlying Sec. 5.3.
Structural decomposition. In the persona format, each contrastive pair shares the same prompt—a statement describing the target behavior together with a question—and differs only in the appended response: the matching answer for and the non-matching answer for . Motivated by this construction, we model each activation difference as the sum of a context term, a response-token term, and a behavior term:
equation 18 is an ansatz suggested by the contrastive construction, rather than a derived identity. All results below are therefore conditional on this decomposition. The sign of records which response token carries the matching answer for example ; it is thus a property of how the dataset is written, rather than of the behavior being steered. We estimate the axis by the half-difference of the answer-conditioned displacement means,
Two assumptions enter here. The terms cancel in only if the Yes/No split is exactly balanced, which the dataset construction of (Sun et al., 2025) enforces; and equation 19 is unbiased for only if the behavior terms have equal means across the two answer groups. For a balanced dataset, the mean displacement is therefore
Thus, the answer-polarity component does not affect the mean displacement and consequently does not affect mean-displacement (MD) extraction.
We can remove this component using the orthogonal projector
We then use this projection to study how removing the answer-polarity component affects the two modes considered below: discriminability, through the resulting change in the steering direction and its associated scatter, and connectivity, through the geometric change in the displacement cloud and its minimum spanning tree. The two effects are analyzed separately in the following sections
Discriminability under projection We now analyze how the discriminability score changes when the answer-polarity axis is projected out. Recall that
Since and are quadratic forms, is invariant to rescaling of its direction argument:
We therefore evaluate on unit directions without loss of generality.
Let
Lemma 2 (Relation between a vector and its projection). Let be a nonzero vector and . Define and assume that , Then,
Proof. and , so
The pair is orthonormal, because . Note also .
The key observation is that projecting the data does not change either the between-class or within-class scatter matrix, and , when they are evaluated along . This gives the following identity.
Lemma 3 (Projection identity). Let the discriminability and the orthogonal projector onto the subspace orthogonal to . For any direction , let . Evaluating discriminability after projecting the activations along gives the same value as evaluating the original discriminability along . Hence, the shift is therefore a change of direction, not of data.
Proof. Consider either the between-class or within-class scatter matrix , which are formed from the activations. Applying the projection to the activations, the corresponding scatter matrix becomes . Therefore, evaluating along and applying ,
Therefore, the projection does not require redefining the discriminability criterion on a new displacement cloud: its effect can be studied entirely as a change in steering direction from v to .
We now specialize these observations to the steering direction . For notational convenience, and at variance with Appendix D, where the same symbols are evaluated at rather than at its unit vector (the two differ by the factor , which cancels in ), let
Similarly, write
Proposition 5 (Discriminability under projection). Let
and define
Assume , , and . Then:
(i)
(ii) The shift in discriminability is
and is therefore positive if and only if .
(iii) is not free: it is determined by and through
In particular, if then , , and the shift vanishes identically.
(iv) If and is an eigenvector of , the cross term vanishes and, with ,
As at fixed r,
Proof. (i). By Appendix D, , so for a unit vector w
Taking gives , and taking with by Lemma 2 gives . This is an identity, not an approximation.
(ii). We have that
Substituting from (i) and from the definition of , gives the stated expression. The denominator is strictly positive under the standing assumptions, so the sign of the shift is the sign of .
(iii). Expanding in the frame equation 26 from Lemma 2,
Subtracting from both sides and using yields the identity. If then by equation 26, so and, by (ii), .
(iv). If then , so the expansion in (iii) reduces to
Dividing both by and writing ,
Put , so with . By (ii) the shift is positive iff , i.e. iff , i.e. iff . Substituting and dividing by gives , that is . Finally, substituting into the expression of (ii) and letting gives and denominator , hence the stated expansion.
Connectivity under projection We now analyze how projecting out the answer-polarity axis affects the connectivity of the displacement cloud. In contrast to discriminability, which depends on quadratic forms evaluated along a steering direction, connectivity depends directly on the Euclidean lengths of the edges of a minimum spanning tree (MST) (Appendix C). Consequently, the effect of the projection is geometric: an edge loses precisely the component of its length along the projected-out direction.
In our setting, we apply the projection with to the displacement cloud , which gives the polarity-projected cloud
Proposition 6 (Connectivity under projection). Let be a unit vector, the orthogonal projector onto , and a point cloud of points. Then:
(i) .
(ii) Let and lift each of its edges to the corresponding pair of points of X. Then
In particular, if every lifted edge satisfies and , then .
Proof. (i) is 1-Lipschitz and MST(X) is a connected spanning subgraph of (possibly with coincident vertices), so
(ii) The lift of is a spanning tree of , hence . For each edge, , so
The final clause follows by bounding each of the summands by .
Comparison between two criteria The two propositions capture different effects of removing the answer-polarity axis. For connectivity, the projection acts directly on Euclidean distances and therefore on the MST. In a two-lobe cloud, the resulting change has two contributions: removing the component of the bridge along , and superimposing the two lobes after projection. The latter changes the MST from spanning two sets of approximately points to spanning points in the residual space.
Discriminability responds differently because it depends on quadratic forms evaluated along the steering direction. By Proposition 5, the effect of the projection is controlled by . It vanishes when the answer-polarity axis is orthogonal to the mean-displacement direction, and becomes positive only when carries more than about twice the within-class scatter of the residual steering direction. Thus, connectivity and discriminability need not change by comparable amounts under the same projection: the former is sensitive to the geometry of the entire cloud, whereas the latter is sensitive to how the projected direction interacts with the between- and within-class scatter.

Figure 5: Anatomy of a displacement cloud (conscientiousness, Llama-8B, 700 pairs). Top: at six depths, in the plane spanned by the mean displacement and the answer-polarity axis ; the cloud splits into two lobes and the longest spanning-tree edge (dark) bridges them. The lobes are point-like at layer 0 and swell with depth, which is where grows. Bottom: the same clouds after removing , plotted against the leading residual principal component; the residual behavior geometry is what survives. Panel annotations give and LayerNavigator's .
Remark 2 (Effect of Lobe Superposition). As mentioned above, one of the effects of projecting out in the connectivity case is the change from spanning two sets of points to spanning a single set of points. To quantify this effect, let denote the intrinsic dimension of a lobe, i.e., the effective number of dimensions in which its points exhibit substantial geometric variation, rather than the ambient dimension of the activation space. By the Beardwood–Halton–Hammersley scaling , the second part is a relative change of order
Thus, this contribution is small for high-dimensional lobes but can become substantial when the intrinsic dimension is low, and in neither case controlled by the bridge share. Appendix F verifies the scaling.
F TWO-DIMENSIONAL ILLUSTRATIONS
This appendix gives the constructions behind Figures 6 and 7.
F.1 THE DECOUPLING THEOREM IN 2D
Take and let be points on a noisy unit ring, split into activations via , where the shared pair noise inflates within-class scatter but cancels
TopoSteer in 2D: connectivity length vs. Fisher score (homothety family )

Figure 6: Separability and displacement connectivity can induce opposite rankings. The synthetic configurations share the class-mean difference and differ only in residual scale . Gray segments connect paired positive and negative activations. The displacement clouds keep the same mean direction while their connectivity length grows as , whereas discriminability decreases as : the exact ordering reversal of Theorem 1.
exactly in . At the classes look cleanly separated and Fisher rewards the layer while the displacement MST is short ; at the classes visibly overlap, Fisher drops , yet the displacement ring has grown and — TOPOSTEER prefers exactly the layer LayerNavigator penalizes (Figure 6, left and middle columns). Sweeping traces the two curves of Theorem 1: TotPers is the exact line and decays, so the induced orderings are reversed at every pair of scales (right column).
F.2 READING THE MST OF A DISPLACEMENT CLOUD
Example 1 (what a bridge in means). Because the cloud is the set of per-pair differences, and Corollary 1 makes blind to its mean, a long bridge edge is never the class separation . It signals instead that the pairs split into subpopulations with distinct displacement modes : the model implements the behavioral contrast in (at least) two different ways depending on the example, and the bridge length is approximately the gap between the modes. This is bad news for mean-difference steering specifically: averages the lobes and points into the empty region between them, representing neither mode — a bridge-inflated score would select precisely the layers where the single-vector premise fails (Figure 7b). Two flavors must be distinguished by the sizes of the components the bridge joins: a bridge between two sizable clusters is a genuine mode split (inspect which prompts fall in each lobe — answer polarity, phrasing templates, and topical subgroups are common culprits), whereas a bridge to a singleton is an outlier pair, i.e. a data or tokenization artifact to inspect or drop (Figure 7c). Finally, Z-scoring rescales coordinates by the total per-coordinate std, and the lobe-gap direction contributes within-class variance, so normalization can dampen or amplify a bridge; the bridge share must therefore be measured in the same normalization used for extraction and is cheap to report in both conventions. In this sense the bridge share is the topological counterpart of LayerNavigator's consistency score, but it is diagnostic rather than scalar: it identifies which pairs disagree and by how much.
F.3 THE LOBE-MERGING TERM OF REMARK 2
Remark 2 attributes part of the drop in under projection to the two lobes being superimposed rather than to the bridge. We check the predicted size. For each ambient dimension , we draw two
Reading the MST of the displacement cloud : bulk = shared structure, bridge = split steering mechanism (never class separation --- Cor. 1 removes the mean)

Figure 7: Reading the MST of the displacement cloud (Example 1). (a) Coherent cloud: the longest edge is a small fraction of and (orange) represents every pair. (b) Mode split: two subpopulations of pairs (colors) displace along different modes (dashed); the bridge (red) carries a large share of and points into the gap between the lobes, representing neither. (c) Outlier: the bridge joins a singleton — a data artifact, not a mode. The bridge share equation 8 separates these regimes and must be reported at score-peak layers.
standard Gaussian lobes of points each, separated along by a gap large enough that the bridge is a single edge, remove the bridge from both sides of the comparison, and report the residual deficit as a fraction of the bulk length. The prediction is with . Table 4 is produced by bhh_lobe_merging.py, provided in the supplement (12 trials per dimension, seed 11).
Table 4: Bulk deficit under projection, against the Beardwood–Halton–Hammersley prediction.
| D | measured | s.d. | |
|---|---|---|---|
| 2 | 0.293 | 0.279 | 0.014 |
| 3 | 0.206 | 0.193 | 0.011 |
| 5 | 0.129 | 0.123 | 0.008 |
| 10 | 0.067 | 0.070 | 0.005 |
| 20 | 0.034 | 0.042 | 0.002 |
The residual gap at is the finite- correction: the asymptotic scaling needs . The term is therefore negligible at the widths of the displacement clouds we score, and the bridge share equation 8 accounts for the rest.
G WHY MEAN-DIFFERENCE EXTRACTION
We deliberately restrict attention to Mean-Difference (MD) extraction for three reasons. (i) Methodological alignment: our layer-selection criterion is a diagnostic of precisely the premise underlying MD steering — that a single vector, the mean of the displacement cloud, faithfully represents every pair's displacement (Corollary 1, Example 1); probe- and subspace-based extractors rest on different premises and would require different diagnostics. (ii) Experimental control: LayerNavigator (Sun et al., 2025) likewise selects layers for MD-extracted vectors, so fixing the extractor isolates the variable under study — layer selection — from extraction effects. (iii) Standard practice: MD is the many-pair generalization of activation addition, and the extractor used by contrastive activation addition is hyperparameter-free, and prior evidence indicates difference-in-means directions are causally effective for intervention relative to probe-derived directions (Marks & Tegmark, 2024; Arditi et al., 2024). We make no claim that MD is uniformly the best extractor; under a two-Gaussian model, the Bayes-optimal linear direction is the whitened difference , and extending the topological diagnostic to whitened, subspace-, and probe-based extractors is left to future work.
H COMPUTATIONAL PROPERTIES
TOPOSTEERintroduces no additional LLMs forward passes beyond those needed to extract the layer-wise MD steering vectors. A forward pass for each contrastive input yields activations from all layers simultaneously, and these activations are cached for both vector extraction and layer scoring.
After activation extraction, coordinate-wise normalization and displacement construction require
arithmetic operations. A dense pairwise-distance implementation requires
time to construct all layerwise distance matrices. Using a dense MST routine such as Prim's algorithm adds
time. When layers are processed sequentially, the additional working memory is
excluding the cached model activations. Sorting the layer scores requires time.
The dominant cost is therefore an offline geometric computation over the extraction data, rather than additional LLMs inference. Once the ranking has been computed, deployment requires neither persistent-homology computation nor an auxiliary selector model for each new input. The only additional inference-time operation is the vector addition in equation 7, with cost proportional to the number of selected layers and intervention positions.
I ACTIVATION STEERING: METHODS AND LIMITATIONS
Activation steering controls LLM behavior by modifying internal representations at inference time without updating model parameters Li et al. (2023); Nguyen & Le (2026b). In contrast, parameter-efficient fine-tuning (PEFT) methods, such as Low-Rank Adaptation (LoRA) Hu et al. (2022) and adapters Houlsby et al. (2019); Van Nguyen & Le (2024); Nguyen & Le (2024), adapt pretrained models by learning a small subset of additional or modified parameters while keeping most model weights frozen. Although PEFT substantially reduces the computational and memory costs of full fine-tuning, it still requires task-specific optimization and parameter updates. Activation steering instead enables lightweight behavioral interventions without retraining, making it particularly attractive for flexible inference-time control.
Representative approaches include Representation Engineering (RepE) Zou et al. (2023), Inference-Time Intervention (ITI) Li et al. (2023), and Contrastive Activation Addition (CAA) Rimsky et al. (2024b). These methods typically construct steering directions from contrastive examples using mean differences, principal components, or linear classifiers, often yielding input-independent interventions. Despite their simplicity and efficiency, such approaches generally assume that the desired behavioral change can be approximated by a global linear direction in representation space. Subsequent work extends the expressivity and robustness of activation interventions through refined steering directions, geometric transformations such as optimal-transport alignment Rodriguez et al. (2025), norm-preserving transformations, and adaptive controllers based on auxiliary models or dynamical systems Kong et al. (2024).
However, the effectiveness of these interventions depends not only on how steering directions are constructed, but also on where they are applied within the network. Different transformer layers encode distinct representational properties, and applying the same steering mechanism at different depths can produce substantially different behavioral outcomes. This motivates systematic layer selection as a complementary problem to steering-vector construction. In particular, our work investigates whether the topology of contrastive activation displacements can identify effective intervention layers without additional validation-based steering evaluations.
J EXPERIMENTAL DETAILS
J.1 SETUP
Tasks. We evaluate global layer selection on six binary behavioral steering tasks from the Anthropic Persona Dataset (Perez et al., 2023): Conscientiousness, Religion Following, Self-Awareness, Self-Improvement, Alliance Building, and Impact Maximization. Each example contains a question paired with two candidate responses, one aligned with the target behavior and one aligned with its opposite. Each behavior contains approximately 1000 examples. We use approximately 700 paired examples to extract the layerwise MD vectors and compute the layer scores, and reserve 100 examples for evaluation.
Models. We evaluate five instruction-tuned LLMs spanning two model families and multiple scales: LLAMA-3-3B-INSTRUCT, LLAMA-3-8B-INSTRUCT (Grattafori et al., 2024), QWEN2.5-3B-INSTRUCT, QWEN2.5-7B-INSTRUCT, and QWEN2.5-32B-INSTRUCT (Team et al., 2024). All interventions are applied at inference time without modifying model parameters.
Baselines. Our primary comparison is LayerNavigator (Sun et al., 2025), the closest prior method for validation-free global layer selection. LayerNavigator scores each layer as , combining a discriminability term with a consistency term, and steers the top- layers. The discriminability term is a Fisher-style quotient, , where is the unit-normalized steering direction and are the between-class and total scatter matrices of the standardized activations; it is large when the two classes separate along . Since is the term most directly comparable to —both score a layer by how the contrastive pair geometry is arranged there—we also report Disc, which ranks layers by alone.
We include two further references. Random draws distinct layers uniformly without replacement from the middle third of the stack, , under a fixed seed; the restricted pool makes this a competitive rather than a degenerate baseline. Base is the unsteered model, which bounds how much of any gain is attributable to steering at all. All methods use identical mean-difference steering vectors, the same per-layer strength , and the same budgets applied simultaneously in one forward pass; they differ only in which layers they select.
Evaluation Metrics. We measure behavioral steering using the average probability assigned to the response aligned with the target behavior. We additionally report generation perplexity to quantify the effect of steering on fluency. Higher aligned-answer probability and lower perplexity are preferred.
Implementation Details. We extract residual-stream activations from the final prompt token at every model layer. The layerwise MD vectors are computed from the raw activations, while TOPOSTEERscores are computed from the standardized displacement clouds defined in equation 3. At inference time, we inject the layer-specific vector at each selected layer and at all intervention token positions. Unless otherwise stated, we use steering strength and evaluate under both intervention regimes of Sec. 3.3; at the two regimes coincide, so it is reported once. All filtrations are Euclidean.
Computational Resources. All experiments were conducted using CUDA 12.8 on a single NVIDIA L40S and NVIDIA H100 GPU within a shared CPU Slurm cluster.
Codebase. Our implementation builds on the codebase of LayerNavigator (Sun et al., 2025).
K DETAILED ALIGNMENT RESULTS
In this section, we provide detailed performance alignment under different variants of scoring metrics.
| Model | K | Method | Conscientiousness | Religion | Self-Improvement | Self-Aware | Alliance | Impact | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | |||
| Lama-3B | K = 0 | Base | 72.51 | 26.82 | 55.68 | 21.40 | 70.96 | 25.13 | 59.77 | 30.25 | 75.56 | 26.38 | 65.89 | 25.00 |
| K = 1 | D-only | 74.13 | 26.91 | 62.90 | 21.69 | 74.00 | 25.94 | 61.25 | 30.89 | 82.16 | 26.59 | 69.87 | 25.22 | |
| Random Selection | 73.42 | 26.80 | 62.82 | 21.55 | 71.51 | 25.06 | 60.68 | 30.30 | 84.70 | 26.54 | 66.63 | 24.98 | ||
| LayerNavigator | 77.16 | 26.89 | 64.90 | 21.56 | 76.00 | 25.34 | 66.61 | 30.29 | 87.08 | 26.59 | 71.01 | 25.18 | ||
| TOPOSTEER (l₂) | 77.16 | 26.89 | 64.90 | 21.56 | 76.00 | 25.34 | 66.61 | 30.29 | 82.17 | 26.59 | 69.87 | 25.22 | ||
| K = 2 | D-only | 80.18 | 26.89 | 81.88 | 21.63 | 81.99 | 25.40 | 73.92 | 30.57 | 86.85 | 26.67 | 73.46 | 25.32 | |
| Random Selection | 82.06 | 26.88 | 67.61 | 21.59 | 82.34 | 25.44 | 60.84 | 30.18 | 89.56 | 26.57 | 70.00 | 25.32 | ||
| LayerNavigator | 87.00 | 26.89 | 81.88 | 21.63 | 81.99 | 25.40 | 73.92 | 30.57 | 90.00 | 26.71 | 73.46 | 25.32 | ||
| TOPOSTEER | 87.00 | 26.89 | 81.88 | 21.63 | 81.99 | 25.40 | 73.92 | 30.57 | 90.00 | 26.71 | 73.46 | 25.32 | ||
| K = 3 | D-only | 84.88 | 26.90 | 83.64 | 21.74 | 64.51 | 25.58 | 74.21 | 30.69 | 83.41 | 26.98 | 71.51 | 25.95 | |
| Random Selection | 83.20 | 26.89 | 82.10 | 21.64 | 61.25 | 26.51 | 72.29 | 30.45 | 71.30 | 27.59 | 70.52 | 26.07 | ||
| LayerNavigator | 87.88 | 26.90 | 85.65 | 21.64 | 64.21 | 25.58 | 74.60 | 30.55 | 70.77 | 27.08 | 67.62 | 25.44 | ||
| TOPOSTEER (l₂) | 86.70 | 26.90 | 85.87 | 21.62 | 64.21 | 25.58 | 74.60 | 30.55 | 85.41 | 26.84 | 67.62 | 25.44 | ||
| Lama-8B | K = 0 | Base | 82.06 | 12.79 | 68.93 | 9.46 | 74.17 | 12.20 | 81.86 | 12.32 | 81.22 | 11.08 | 77.45 | 9.55 |
| K = 1 | D-only | 83.33 | 12.79 | 78.64 | 9.41 | 73.05 | 12.23 | 82.37 | 12.30 | 81.70 | 11.58 | 79.30 | 9.53 | |
| Random Selection | 81.89 | 12.74 | 71.79 | 9.37 | 74.14 | 12.20 | 85.42 | 12.36 | 89.38 | 11.06 | 77.63 | 9.54 | ||
| LayerNavigator | 85.34 | 12.79 | 78.64 | 9.41 | 74.74 | 12.18 | 84.50 | 12.32 | 81.70 | 11.08 | 82.62 | 9.52 | ||
| TOPOSTEER (l₂) | 87.09 | 12.78 | 71.79 | 9.37 | 80.11 | 12.13 | 88.34 | 12.40 | 86.23 | 11.06 | 82.62 | 9.52 | ||
| K = 2 | D-only | 86.92 | 12.78 | 78.98 | 9.40 | 74.18 | 12.18 | 85.99 | 12.34 | 84.30 | 11.06 | 79.85 | 9.53 | |
| Random Selection | 85.33 | 12.79 | 79.12 | 9.41 | 83.23 | 12.13 | 85.17 | 12.36 | 86.90 | 11.06 | 83.24 | 9.53 | ||
| LayerNavigator | 90.54 | 12.73 | 84.05 | 9.40 | 74.18 | 12.18 | 91.60 | 12.43 | 84.30 | 11.06 | 84.54 | 9.53 | ||
| TOPOSTEER (l₂) | 91.79 | 12.74 | 79.23 | 9.36 | 88.34 | 12.10 | 88.57 | 12.46 | 89.50 | 11.05 | 85.10 | 9.52 | ||
| K = 3 | D-only | 86.36 | 12.78 | 79.57 | 9.38 | 83.00 | 12.07 | 85.81 | 12.33 | 84.44 | 11.06 | 85.47 | 9.52 | |
| Random Selection | 85.35 | 12.79 | 82.65 | 9.42 | 84.80 | 12.15 | 90.46 | 12.44 | 89.02 | 11.07 | 82.45 | 9.53 | ||
| LayerNavigator | 93.83 | 12.75 | 83.61 | 9.38 | 83.00 | 12.07 | 82.01 | 12.54 | 91.76 | 11.06 | 84.36 | 9.53 | ||
| TOPOSTEER (l₂) | 93.83 | 12.75 | 77.80 | 9.37 | 90.18 | 12.08 | 73.29 | 12.72 | 88.94 | 11.27 | 84.36 | 9.53 | ||
| Qwen-3B | K = 0 | Base | 69.41 | 5.06 | 59.95 | 4.88 | 62.58 | 4.37 | 57.36 | 4.59 | 75.38 | 5.24 | 60.51 | 4.47 |
| K = 1 | D-only | 60.89 | 5.26 | 54.73 | 4.96 | 59.41 | 5.17 | 57.09 | 4.76 | 78.36 | 7.83 | 56.27 | 5.42 | |
| Random Selection | 69.71 | 5.00 | 58.52 | 4.74 | 62.76 | 4.34 | 55.98 | 5.53 | 75.63 | 5.19 | 60.67 | 4.56 | ||
| LayerNavigator | 61.27 | 5.34 | 54.38 | 5.10 | 65.13 | 5.47 | 64.64 | 8.60 | 78.41 | 7.73 | 62.00 | 6.33 | ||
| TOPOSTEER (l₂) | 77.87 | 5.40 | 63.51 | 5.55 | 72.88 | 4.89 | 67.06 | 5.69 | 81.91 | 7.18 | 67.40 | 5.17 | ||
| K = 2 | D-only | 52.05 | 7.67 | 50.24 | 6.41 | 62.44 | 6.61 | 59.01 | 5.18 | 77.07 | 9.24 | 56.95 | 7.06 | |
| Random Selection | 60.91 | 5.33 | 57.90 | 4.95 | 62.50 | 4.41 | 53.31 | 5.05 | 75.35 | 8.62 | 61.76 | 6.07 | ||
| LayerNavigator | 52.23 | 7.55 | 50.31 | 6.45 | 62.14 | 6.63 | 73.22 | 11.62 | 82.03 | 11.09 | 65.02 | 8.13 | ||
| TOPOSTEER (l₂) | 82.35 | 6.47 | 66.32 | 6.15 | 81.24 | 5.50 | 76.00 | 7.00 | 85.98 | 9.14 | 73.88 | 8.63 | ||
| K = 3 | D-only | 51.44 | 10.06 | 50.12 | 7.75 | 53.34 | 7.64 | 52.96 | 5.91 | 70.63 | 9.23 | 60.00 | 9.05 | |
| Random Selection | 68.96 | 5.13 | 55.03 | 4.63 | 58.70 | 5.75 | 55.68 | 5.49 | 74.93 | 5.23 | 56.02 | 5.48 | ||
| LayerNavigator | 51.58 | 9.74 | 50.14 | 7.86 | 72.09 | 8.59 | 82.96 | 11.71 | 80.73 | 11.47 | 59.73 | 8.86 | ||
| TOPOSTEER (l₂) | 84.86 | 7.61 | 68.83 | 6.97 | 81.49 | 7.49 | 81.69 | 9.49 | 87.36 | 10.89 | 74.02 | 9.18 | ||
| Qwen-32B | K = 0 | Base | 95.57 | 3.45 | 60.77 | 3.38 | 82.59 | 3.76 | 97.88 | 3.88 | 91.97 | 3.81 | 67.28 | 3.69 |
| K = 1 | D-only | 94.72 | 3.51 | 63.16 | 3.41 | 81.41 | 3.88 | 97.97 | 4.32 | 92.51 | 4.65 | 66.91 | 3.73 | |
| Random Selection | 95.51 | 3.43 | 62.44 | 3.51 | 82.58 | 3.76 | 97.99 | 4.31 | 92.96 | 3.97 | 67.13 | 3.70 | ||
| LayerNavigator | 95.77 | 4.45 | 63.16 | 3.41 | 83.43 | 4.11 | 97.93 | 4.41 | 92.51 | 4.65 | 67.71 | 3.99 | ||
| TOPOSTEER (l₂) | 95.74 | 4.26 | 60.95 | 3.40 | 83.36 | 4.20 | 98.19 | 4.68 | 93.17 | 4.51 | 67.96 | 4.31 | ||
| K = 2 | D-only | 95.38 | 3.84 | 61.85 | 3.61 | 81.43 | 3.94 | 97.16 | 4.57 | 93.08 | 5.63 | 66.14 | 3.82 | |
| Random Selection | 95.39 | 3.99 | 61.95 | 3.58 | 81.68 | 3.89 | 98.05 | 4.56 | 92.84 | 4.65 | 67.90 | 4.04 | ||
| LayerNavigator | 95.90 | 7.91 | 61.82 | 3.61 | 82.96 | 5.05 | 98.04 | 5.83 | 92.93 | 7.57 | 66.83 | 3.96 | ||
| TOPOSTEER (l₂) | 95.62 | 6.31 | 61.32 | 3.78 | 84.14 | 5.17 | 97.65 | 5.95 | 93.81 | 6.57 | 69.60 | 5.99 | ||
| K = 3 | D-only | 94.71 | 4.10 | 61.01 | 4.19 | 80.34 | 4.28 | 97.23 | 5.25 | 93.27 | 6.24 | 64.96 | 4.01 | |
| Random Selection | 94.96 | 3.94 | 61.99 | 4.17 | 81.59 | 4.30 | 97.18 | 4.50 | 92.29 | 4.20 | 66.64 | 3.88 | ||
| LayerNavigator | 95.94 | 11.03 | 61.01 | 4.19 | 82.97 | 5.23 | 97.77 | 9.72 | 86.88 | 10.12 | 65.90 | 4.08 | ||
| TOPOSTEER (l₂) | 94.66 | 10.04 | 62.23 | 4.16 | 83.13 | 7.68 | 96.91 | 9.75 | 94.72 | 16.80 | 70.22 | 7.54 | ||
Table 5: Per-task alignment probability (Prob, %, ↑) and generation perplexity (PPL, ↓) for each layer-selection strategy under simultaneous steering, on the six persona tasks. TOPOSTEER here scores the unit-sphere projection of the displacement cloud, i.e. the column of Table 1; Table 6 gives the corresponding results for the standardized cloud . is the unsteered model. All filtrations are Euclidean and .
K.1 ALIGNMENT PERFORMANCE UNDER TOTAL PERSISTENCE SCORE
Table 5 reports per-task alignment probability and perplexity for every selector under simultaneous steering; Table 7 reports the sequential regime.
K.2 SEQUENTIAL STEERING WITH DISTINCT LAYERS
Table 7 reports sequential steering results with distinct layers enforced at each selection step.
| Model | K | Method | Conscientiousness | Religion | Self-Improvement | Self-Aware | Alliance | Impact | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | |||||
| Lama-3B | K = 0 | Base | 72.51 | 26.82 | 55.68 | 21.40 | 70.96 | 25.13 | 59.77 | 30.25 | 75.56 | 26.38 | 65.89 | 25.00 | ||||||
| K = 1 | D-only | 74.13 | 26.91 | 62.90 | 21.69 | 74.00 | 25.94 | 61.25 | 30.89 | 82.16 | 26.59 | 69.87 | 25.22 | |||||||
| Random Selection | 73.42 | 26.80 | 62.82 | 21.55 | 71.51 | 25.06 | 60.68 | 30.30 | 84.70 | 26.54 | 66.63 | 24.98 | ||||||||
| LayerNavigator | 77.16 | 26.89 | 64.90 | 21.56 | 76.00 | 25.34 | 66.61 | 30.29 | 87.08 | 26.59 | 71.01 | 25.18 | ||||||||
| TOPOSTEER | 77.16 | 26.89 | 64.90 | 21.56 | 76.00 | 25.34 | 66.61 | 30.29 | 82.17 | 26.59 | 69.87 | 25.22 | ||||||||
| K = 2 | D-only | 80.18 | 26.89 | 81.88 | 21.63 | 81.99 | 25.40 | 73.92 | 30.57 | 86.85 | 26.67 | 73.46 | 25.32 | |||||||
| Random Selection | 82.06 | 26.88 | 67.61 | 21.59 | 82.34 | 25.44 | 60.84 | 30.18 | 89.56 | 26.57 | 70.00 | 25.32 | ||||||||
| LayerNavigator | 87.00 | 26.89 | 81.88 | 21.63 | 81.99 | 25.40 | 73.92 | 30.57 | 90.00 | 26.71 | 73.46 | 25.32 | ||||||||
| TOPOSTEER | 87.00 | 26.89 | 81.88 | 21.63 | 81.99 | 25.40 | 73.92 | 30.57 | 90.00 | 26.71 | 73.46 | 25.32 | ||||||||
| K = 3 | D-only | 84.88 | 26.90 | 83.64 | 21.74 | 64.51 | 25.58 | 74.21 | 30.69 | 83.41 | 26.98 | 71.51 | 25.95 | |||||||
| Random Selection | 83.20 | 26.89 | 82.10 | 21.64 | 61.25 | 26.51 | 72.29 | 30.45 | 71.30 | 27.59 | 70.52 | 26.07 | ||||||||
| LayerNavigator | 87.88 | 26.90 | 85.65 | 21.64 | 64.21 | 25.58 | 74.60 | 30.55 | 70.77 | 27.08 | 67.62 | 25.44 | ||||||||
| TOPOSTEER | 86.70 | 26.90 | 85.87 | 21.62 | 76.52 | 25.54 | 74.68 | 31.10 | 85.41 | 26.84 | 73.78 | 25.41 | ||||||||
| Lama-8B | K = 0 | Base | 82.06 | 12.79 | 68.93 | 9.46 | 74.17 | 12.20 | 81.86 | 12.32 | 81.22 | 11.08 | 77.45 | 9.55 | ||||||
| K = 1 | D-only | 83.33 | 12.79 | 78.64 | 9.41 | 73.05 | 12.23 | 82.37 | 12.30 | 81.70 | 11.58 | 79.30 | 9.53 | |||||||
| Random Selection | 81.89 | 12.74 | 71.79 | 9.37 | 74.14 | 12.20 | 85.42 | 12.36 | 89.38 | 11.06 | 77.63 | 9.54 | ||||||||
| LayerNavigator | 85.34 | 12.79 | 78.64 | 9.41 | 74.74 | 12.18 | 84.50 | 12.32 | 81.70 | 11.08 | 82.62 | 9.52 | ||||||||
| TOPOSTEER | 87.09 | 12.78 | 78.64 | 9.41 | 80.11 | 12.13 | 89.19 | 12.39 | 82.96 | 11.06 | 82.62 | 9.52 | ||||||||
| K = 2 | D-only | 86.92 | 12.78 | 78.98 | 9.40 | 74.18 | 12.18 | 85.99 | 12.34 | 84.30 | 11.06 | 79.85 | 9.53 | |||||||
| Random Selection | 85.33 | 12.79 | 79.12 | 9.41 | 83.23 | 12.13 | 85.17 | 12.36 | 86.90 | 11.06 | 83.24 | 9.53 | ||||||||
| LayerNavigator | 90.54 | 12.73 | 84.05 | 9.40 | 74.88 | 12.18 | 91.60 | 12.43 | 84.30 | 11.06 | 84.54 | 9.53 | ||||||||
| TOPOSTEER | 88.91 | 12.76 | 79.23 | 9.36 | 80.01 | 12.11 | 88.57 | 12.46 | 84.30 | 11.06 | 84.54 | 9.53 | ||||||||
| K = 3 | D-only | 86.36 | 12.78 | 79.57 | 9.38 | 83.00 | 12.07 | 85.81 | 12.33 | 84.44 | 11.06 | 85.47 | 9.52 | |||||||
| Random Selection | 85.35 | 12.79 | 82.65 | 9.42 | 84.80 | 12.15 | 90.46 | 12.44 | 89.02 | 11.07 | 82.45 | 9.53 | ||||||||
| LayerNavigator | 93.83 | 12.75 | 83.61 | 9.38 | 83.00 | 12.07 | 82.01 | 12.54 | 91.76 | 11.06 | 84.36 | 9.53 | ||||||||
| TOPOSTEER | 92.20 | 12.73 | 82.10 | 9.37 | 83.00 | 12.07 | 82.01 | 12.54 | 91.76 | 11.06 | 84.36 | 9.53 | ||||||||
| Qwen-3B | K = 0 | Base | 69.41 | 5.06 | 59.95 | 4.88 | 62.58 | 4.37 | 57.36 | 4.59 | 75.38 | 5.24 | 60.51 | 4.47 | ||||||
| K = 1 | D-only | 60.89 | 5.26 | 54.73 | 4.96 | 59.41 | 5.17 | 57.09 | 4.76 | 78.36 | 7.83 | 56.27 | 5.42 | |||||||
| Random Selection | 69.71 | 5.00 | 58.52 | 4.74 | 62.76 | 4.34 | 55.98 | 5.53 | 75.63 | 5.19 | 60.67 | 4.56 | ||||||||
| LayerNavigator | 61.27 | 5.34 | 54.38 | 5.10 | 65.13 | 5.47 | 64.64 | 8.60 | 78.41 | 7.73 | 62.00 | 6.33 | ||||||||
| TOPOSTEER | 73.56 | 6.54 | 63.51 | 5.55 | 59.21 | 5.32 | 62.54 | 5.29 | 74.42 | 6.13 | 55.90 | 5.50 | ||||||||
| K = 2 | D-only | 52.05 | 7.67 | 50.24 | 6.41 | 62.44 | 6.61 | 59.01 | 5.18 | 77.07 | 9.24 | 56.95 | 7.06 | |||||||
| Random Selection | 60.91 | 5.33 | 57.90 | 4.95 | 62.50 | 4.41 | 53.31 | 5.05 | 75.35 | 8.62 | 61.76 | 6.07 | ||||||||
| LayerNavigator | 52.23 | 7.55 | 50.31 | 6.45 | 62.14 | 6.63 | 73.22 | 11.62 | 82.03 | 11.09 | 65.02 | 8.13 | ||||||||
| TOPOSTEER | 62.26 | 7.90 | 66.32 | 6.15 | 53.57 | 6.55 | 60.43 | 6.67 | 65.99 | 6.64 | 56.81 | 6.87 | ||||||||
| K = 3 | D-only | 51.44 | 10.06 | 50.12 | 7.75 | 53.34 | 7.64 | 52.96 | 5.91 | 70.63 | 9.23 | 60.00 | 9.05 | |||||||
| Random Selection | 68.96 | 5.13 | 55.03 | 4.63 | 58.70 | 5.75 | 55.68 | 5.49 | 74.93 | 5.23 | 56.02 | 5.48 | ||||||||
| LayerNavigator | 51.58 | 9.74 | 50.14 | 7.86 | 72.09 | 8.59 | 82.96 | 11.71 | 80.73 | 11.47 | 59.73 | 8.86 | ||||||||
| TOPOSTEER | 51.58 | 9.74 | 68.83 | 6.97 | 53.33 | 7.67 | 72.12 | 9.19 | 70.32 | 9.33 | 50.27 | 7.99 | ||||||||
| Qwen-32B | K = 0 | Base | 95.57 | 3.45 | 60.77 | 3.38 | 82.59 | 3.76 | 97.88 | 3.88 | 91.97 | 3.81 | 67.28 | 3.69 | ||||||
| K = 1 | D-only | 94.72 | 3.51 | 63.16 | 3.41 | 81.41 | 3.88 | 97.97 | 4.32 | 92.51 | 4.65 | 66.91 | 3.73 | |||||||
| C-only | 95.77 | 4.45 | 60.77 | 3.38 | 83.08 | 4.33 | 97.93 | 4.41 | 92.84 | 4.70 | 67.71 | 3.99 | ||||||||
| Random Selection | 95.51 | 3.43 | 62.44 | 3.51 | 82.58 | 3.76 | 97.99 | 4.31 | 92.96 | 3.97 | 67.13 | 3.70 | ||||||||
| LayerNavigator | 95.77 | 4.45 | 63.16 | 3.41 | 83.43 | 4.11 | 97.93 | 4.41 | 92.51 | 4.65 | 67.71 | 3.99 | ||||||||
| TOPOSTEER | 95.74 | 4.26 | 61.09 | 3.48 | 83.36 | 4.20 | 98.19 | 4.33 | 93.16 | 4.48 | 67.91 | 3.91 | ||||||||
| K = 2 | D-only | 95.38 | 3.84 | 61.85 | 3.61 | 81.43 | 3.94 | 97.16 | 4.57 | 93.08 | 5.63 | 66.14 | 3.82 | |||||||
| C-only | 95.56 | 6.52 | 61.85 | 3.61 | 83.41 | 5.57 | 98.01 | 5.91 | 93.39 | 7.34 | 67.98 | 4.60 | ||||||||
| Random Selection | 95.39 | 3.99 | 61.95 | 3.58 | 81.68 | 3.89 | 98.05 | 4.56 | 92.84 | 4.65 | 67.90 | 4.04 | ||||||||
| LayerNavigator | 95.90 | 7.91 | 61.82 | 3.61 | 82.96 | 5.05 | 98.04 | 5.83 | 92.93 | 7.57 | 66.83 | 3.96 | ||||||||
| TOPOSTEER | 95.62 | 6.31 | 61.35 | 3.57 | 84.14 | 5.17 | 97.97 | 6.00 | 93.81 | 6.57 | 70.59 | 5.19 | ||||||||
| K = 3 | D-only | 94.71 | 4.10 | 61.01 | 4.19 | 80.34 | 4.28 | 97.23 | 5.25 | 93.27 | 6.24 | 64.96 | 4.01 | |||||||
| C-only | 94.28 | 10.78 | 61.01 | 4.19 | 83.84 | 9.35 | 97.95 | 12.02 | 93.84 | 16.92 | 68.42 | 5.80 | ||||||||
| Random Selection | 94.96 | 3.94 | 61.99 | 4.17 | 81.59 | 4.30 | 97.18 | 4.50 | 92.29 | 4.20 | 66.64 | 3.88 | ||||||||
| LayerNavigator | 95.94 | 11.03 | 61.01 | 4.19 | 82.97 | 5.23 | 97.77 | 9.72 | 86.88 | 10.12 | 65.90 | 4.08 | ||||||||
| TOPOSTEER | 94.66 | 10.04 | 61.62 | 3.79 | 83.95 | 8.63 | 97.05 | 9.47 | 94.04 | 9.33 | 70.65 | 6.34 | ||||||||
Table 6: Per-task alignment probability (Prob, %, ↑) and generation perplexity (PPL, ↓) for each layer-selection strategy under simultaneous steering, on the six persona tasks. TOPOSTEER here scores the standardized displacement cloud of equation 3, i.e. the Ours column of Table 1; Table 5 gives the corresponding results for the unit-sphere variant TOPOSTEER . K = 0 is the unsteered model. All filtrations are Euclidean and .
L SEPARATION-FREE STANDARDIZATION
Proof of Proposition 1. The variance identity is the law of total variance for a balanced two-component mixture whose component means are about the pooled mean, with and both taken with the same (biased) denominator. Since equation 2 rescales coordinate by and the displacement is formed afterwards, , and Corollary 1 gives . Increasing multiplies coordinate of every point by a factor
| Model | K | Method | Conscientiousness | Religion | Self-Improvement | Self-Aware | Alliance | Impact | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | Prob (↑) | PPL (↓) | |||||
| Llama-3B | K = 0 | Base | 72.51 | 26.82 | 55.68 | 21.40 | 70.96 | 25.13 | 59.77 | 30.25 | 75.56 | 26.38 | 65.89 | 24.99 | ||||||
| K = 2 | D-only | 80.18 | 26.89 | 81.17 | 21.63 | 77.99 | 25.42 | 73.03 | 30.58 | 86.85 | 26.67 | 73.23 | 25.30 | |||||||
| Random Selection | 78.65 | 26.89 | 60.62 | 21.54 | 80.80 | 25.38 | 61.78 | 30.32 | 89.55 | 26.59 | 67.79 | 25.23 | ||||||||
| LayerNavigator | 84.68 | 26.89 | 81.17 | 21.63 | 81.34 | 25.41 | 73.03 | 30.58 | 90.00 | 26.71 | 73.46 | 25.32 | ||||||||
| TOPOSTEER | 84.68 | 26.89 | 81.17 | 21.63 | 81.34 | 25.41 | 73.03 | 30.58 | 88.99 | 26.68 | 73.23 | 25.31 | ||||||||
| TOPOSTEER | 84.68 | 26.89 | 81.17 | 21.63 | 81.34 | 25.41 | 73.03 | 30.58 | 88.99 | 26.68 | 73.23 | 25.30 | ||||||||
| K = 3 | D-only | 86.62 | 26.89 | 84.64 | 21.64 | 65.28 | 25.60 | 71.26 | 30.88 | 85.75 | 26.81 | 69.18 | 25.45 | |||||||
| Random Selection | 80.29 | 26.86 | 66.14 | 21.64 | 84.82 | 25.44 | 62.61 | 30.30 | 90.37 | 26.63 | 71.85 | 25.29 | ||||||||
| LayerNavigator | 81.50 | 26.92 | 84.64 | 21.64 | 67.22 | 25.61 | 74.48 | 31.13 | 75.02 | 26.95 | 68.14 | 25.45 | ||||||||
| TOPOSTEER | 81.50 | 26.92 | 75.44 | 21.68 | 77.88 | 25.52 | 74.48 | 31.13 | 85.48 | 26.84 | 74.02 | 25.40 | ||||||||
| TOPOSTEER | 81.50 | 26.92 | 75.44 | 21.68 | 67.22 | 25.61 | 71.26 | 30.88 | 73.79 | 26.98 | 69.18 | 25.45 | ||||||||
| Llama-8B | K = 0 | Base | 82.07 | 12.79 | 68.93 | 9.46 | 74.17 | 12.20 | 81.86 | 12.32 | 81.23 | 11.08 | 77.45 | 9.55 | ||||||
| K = 2 | D-only | 82.52 | 12.79 | 78.98 | 9.40 | 73.59 | 12.19 | 81.91 | 12.30 | 83.77 | 11.06 | 79.85 | 9.53 | |||||||
| Random Selection | 88.21 | 12.78 | 71.44 | 9.42 | 79.04 | 12.12 | 85.23 | 12.36 | 87.33 | 11.06 | 77.70 | 9.54 | ||||||||
| LayerNavigator | 88.76 | 12.74 | 84.05 | 9.17 | 74.18 | 12.18 | 90.41 | 12.39 | 83.77 | 11.06 | 84.54 | 9.53 | ||||||||
| TOPOSTEER | 88.91 | 12.76 | 78.15 | 9.37 | 80.01 | 12.11 | 88.72 | 12.44 | 84.30 | 11.06 | 84.54 | 9.53 | ||||||||
| TOPOSTEER | 89.99 | 12.73 | 79.23 | 9.36 | 86.46 | 12.10 | 88.57 | 12.46 | 89.50 | 11.05 | 85.17 | 9.52 | ||||||||
| K = 3 | D-only | 84.63 | 12.78 | 78.98 | 9.37 | 73.26 | 12.19 | 84.23 | 12.28 | 83.82 | 11.06 | 80.07 | 9.53 | |||||||
| Random Selection | 87.99 | 12.78 | 74.77 | 9.42 | 81.42 | 12.10 | 85.49 | 12.35 | 87.25 | 11.06 | 81.67 | 9.53 | ||||||||
| LayerNavigator | 90.24 | 12.73 | 82.94 | 9.37 | 74.10 | 12.08 | 90.94 | 12.44 | 87.59 | 11.06 | 85.61 | 9.52 | ||||||||
| TOPOSTEER | 91.70 | 12.73 | 80.99 | 9.38 | 82.73 | 12.06 | 84.18 | 12.49 | 88.29 | 11.05 | 85.61 | 9.52 | ||||||||
| TOPOSTEER | 92.96 | 12.75 | 76.64 | 9.38 | 87.70 | 12.09 | 79.84 | 12.52 | 92.12 | 11.07 | 84.63 | 9.51 | ||||||||
| Qwen-3B | K = 0 | Base | 70.20 | 4.95 | 59.74 | 4.91 | 62.49 | 4.42 | 57.02 | 4.60 | 75.50 | 5.42 | 60.60 | 4.35 | ||||||
| K = 2 | D-only | 51.72 | 7.10 | 50.24 | 6.41 | 53.91 | 6.52 | 59.01 | 5.18 | 77.07 | 9.24 | 50.77 | 6.74 | |||||||
| Random Selection | 70.55 | 6.87 | 53.41 | 6.15 | 61.50 | 4.44 | 58.75 | 4.84 | 75.99 | 4.89 | 60.66 | 4.49 | ||||||||
| LayerNavigator | 51.72 | 7.10 | 52.23 | 9.06 | 69.04 | 7.82 | 72.89 | 11.61 | 80.81 | 11.08 | 62.58 | 8.19 | ||||||||
| TOPOSTEER | 72.76 | 11.41 | 66.32 | 6.15 | 53.57 | 6.55 | 60.43 | 6.67 | 65.99 | 6.64 | 50.73 | 6.75 | ||||||||
| TOPOSTEER | 80.83 | 6.61 | 65.92 | 6.14 | 80.53 | 5.53 | 75.57 | 7.22 | 85.84 | 9.13 | 71.65 | 5.71 | ||||||||
| D-only | 53.43 | 9.82 | 50.10 | 6.77 | 54.39 | 9.25 | 52.87 | 5.79 | 79.26 | 11.30 | 51.08 | 8.46 | ||||||||
| K = 3 | Random Selection | 70.66 | 6.84 | 53.31 | 6.16 | 61.62 | 4.41 | 58.56 | 4.89 | 76.02 | 4.93 | 60.42 | 4.70 | |||||||
| LayerNavigator | 53.43 | 9.82 | 50.91 | 10.59 | 77.52 | 9.92 | 67.42 | 12.17 | 83.64 | 11.28 | 65.98 | 9.21 | ||||||||
| TOPOSTEER | 62.98 | 12.65 | 68.83 | 6.97 | 54.29 | 9.40 | 68.31 | 9.63 | 62.53 | 8.29 | 50.35 | 8.40 | ||||||||
| TOPOSTEER | 83.27 | 7.87 | 68.57 | 7.14 | 81.32 | 7.52 | 80.87 | 10.03 | 87.37 | 10.82 | 73.75 | 6.83 | ||||||||
| Qwen-7B | K = 0 | Base | 88.08 | 15.30 | 84.39 | 9.80 | 83.28 | 10.94 | 94.43 | 11.82 | 87.43 | 10.61 | 73.80 | 9.50 | ||||||
| K = 2 | D-only | 84.84 | 17.29 | 82.63 | 7.38 | 85.59 | 26.35 | 95.94 | 19.86 | 89.75 | 24.64 | 76.40 | 9.30 | |||||||
| Random Selection | 85.73 | 16.93 | 85.56 | 8.11 | 84.31 | 10.49 | 95.14 | 12.97 | 89.44 | 12.79 | 74.63 | 9.15 | ||||||||
| LayerNavigator | 83.24 | 19.99 | 83.91 | 14.76 | 86.55 | 25.14 | 95.65 | 21.75 | 89.75 | 24.64 | 78.02 | 13.11 | ||||||||
| TOPOSTEER | 84.23 | 18.51 | 84.57 | 11.72 | 84.76 | 23.70 | 95.19 | 24.46 | 90.48 | 23.04 | 75.45 | 16.78 | ||||||||
| TOPOSTEER | 84.97 | 19.53 | 85.04 | 10.83 | 84.67 | 22.01 | 94.87 | 22.21 | 89.38 | 22.59 | 74.14 | 15.46 | ||||||||
| K = 3 | D-only | 84.50 | 16.70 | 85.98 | 9.46 | 87.55 | 27.53 | 96.18 | 27.97 | 82.83 | 25.05 | 77.46 | 12.37 | |||||||
| Random Selection | 85.71 | 16.82 | 87.76 | 12.06 | 84.83 | 14.10 | 95.09 | 13.19 | 90.71 | 15.53 | 76.82 | 9.47 | ||||||||
| LayerNavigator | 87.63 | 20.38 | 83.09 | 16.11 | 87.37 | 26.95 | 96.38 | 27.77 | 82.83 | 25.05 | 80.52 | 18.42 | ||||||||
| TOPOSTEER | 83.41 | 19.60 | 84.76 | 11.74 | 84.79 | 26.36 | 95.03 | 27.19 | 90.67 | 24.30 | 75.32 | 19.64 | ||||||||
| TOPOSTEER | 84.31 | 21.05 | 84.83 | 11.82 | 84.63 | 26.26 | 94.80 | 27.49 | 89.67 | 24.21 | 74.04 | 19.24 | ||||||||
| Qwen-32B | K = 0 | Base | 95.57 | 3.45 | 60.77 | 3.38 | 82.59 | 3.76 | 97.89 | 3.88 | 91.97 | 3.81 | 67.28 | 3.69 | ||||||
| K = 2 | D-only | 95.34 | 3.69 | 61.87 | 3.63 | 80.69 | 3.91 | 97.46 | 5.35 | 93.05 | 5.81 | 66.53 | 3.83 | |||||||
| Random Selection | 92.97 | 3.99 | 65.27 | 3.82 | 81.12 | 3.86 | 98.17 | 4.02 | 92.72 | 4.40 | 66.93 | 3.72 | ||||||||
| LayerNavigator | 95.53 | 6.47 | 61.87 | 3.63 | 82.71 | 4.88 | 97.80 | 6.86 | 91.91 | 8.05 | 67.87 | 4.42 | ||||||||
| TOPOSTEER | 95.62 | 6.31 | 61.32 | 3.58 | 84.14 | 5.17 | 97.97 | 6.00 | 93.78 | 6.59 | 68.33 | 4.41 | ||||||||
| TOPOSTEER | 95.62 | 6.31 | 61.37 | 3.73 | 84.14 | 5.17 | 97.59 | 5.52 | 93.81 | 6.57 | 68.70 | 4.89 | ||||||||
| K = 3 | D-only | 95.00 | 4.00 | 62.15 | 3.99 | 79.73 | 4.12 | 96.05 | 5.52 | 93.27 | 6.24 | 65.58 | 3.98 | |||||||
| Random Selection | 92.88 | 3.88 | 64.37 | 3.71 | 81.00 | 3.88 | 97.95 | 4.13 | 92.70 | 4.51 | 67.48 | 3.73 | ||||||||
| LayerNavigator | 95.85 | 9.31 | 62.15 | 3.99 | 82.43 | 6.31 | 97.72 | 11.30 | 90.97 | 12.22 | 68.10 | 5.17 | ||||||||
| TOPOSTEER | 94.66 | 10.04 | 61.76 | 3.78 | 83.95 | 8.63 | 97.30 | 9.83 | 94.07 | 10.59 | 68.24 | 5.23 | ||||||||
| TOPOSTEER | 94.89 | 10.01 | 62.28 | 4.11 | 83.13 | 7.68 | 97.13 | 7.49 | 94.25 | 16.09 | 69.30 | 5.47 | ||||||||
Table 7: Per-task alignment probability (Prob, %) and perplexity (PPL, ↓) for greedy sequential layer selection without layer repetition under the Euclidean filtration: each step adds a layer not chosen in an earlier step and re-extracts the steering vectors. K = 1 coincides with simultaneous steering and is omitted. Averaging a row over the six tasks gives the corresponding entry of the Sequential block in Table 1.
in (0, 1), hence does not increase any pairwise distance; is non-decreasing in each entry of the distance matrix, so does not increase, strictly so when coordinate separates at least two points (some spanning-tree edge must then straddle two distinct values of that coordinate). The isotropic case is the scalar together with Proposition 4.
Proposition 1 shows that the pooled standardization equation 2 makes decrease in the coordinate-wise separation-to-noise ratios , so a layer can be ranked lower than another purely because its classes are further apart. is invariant to a common scalar rescaling but not to this
| K | Method | Conscientiousness | Religion | Self-Improvement | Self-Aware | Alliance | Impact |
|---|---|---|---|---|---|---|---|
| 1 | D-only | 21 | 22 | 22 | 20 | 23 | 22 |
| C-only | 26 | 23 | 34 | 25 | 34 | 25 | |
| Random Selection | 12 | 17 | 12 | 23 | 18 | 12 | |
| LayerNavigator | 21 | 22 | 23 | 25 | 23 | 23 | |
| TOPOSTEER (diff) | 23 | 35 | 22 | 30 | 22 | 22 | |
| TOPOSTEER () | 35 | 35 | 35 | 35 | 35 | 35 | |
| 2 | D-only | 21,22 | 22,21 | 22,23 | 20,19 | 23,22 | 22,23 |
| C-only | 26,21 | 23,24 | 34,33 | 25,34 | 34,35 | 25,23 | |
| Random Selection | 13,21 | 13,16 | 15,18 | 12,21 | 21,23 | 17,23 | |
| LayerNavigator | 21,22 | 22,21 | 23,22 | 25,24 | 23,24 | 23,24 | |
| TOPOSTEER (diff) | 23,22 | 35,34 | 22,21 | 30,23 | 22,21 | 22,23 | |
| TOPOSTEER () | 35,34 | 35,34 | 35,34 | 35,34 | 35,34 | 35,26 | |
| 3 | D-only | 21,22,23 | 22,21,23 | 22,23,21 | 20,19,21 | 23,22,21 | 22,23,24 |
| C-only | 26,21,25 | 23,24,25 | 34,33,35 | 25,34,33 | 34,35,33 | 25,23,26 | |
| Random Selection | 12,13,20 | 14,17,21 | 16,18,22 | 15,17,23 | 12,14,17 | 13,15,22 | |
| LayerNavigator | 21,22,23 | 22,21,23 | 23,22,24 | 25,24,26 | 23,24,22 | 23,24,22 | |
| TOPOSTEER (diff) | 23,22,21 | 35,34,33 | 22,21,23 | 30,23,35 | 22,21,23 | 22,23,21 | |
| TOPOSTEER () | 35,34,33 | 35,34,33 | 35,34,30 | 35,34,33 | 35,34,33 | 35,26,30 |
Table 8: Layers selected by each strategy on Qwen-3B-Instruct (36 layers, indexed 0–35), for every persona task and layer budget . Layers are listed in selection order, highest-scoring first; for Random Selection they are the sampled set. TOPOSTEER is shown under both scoring clouds: the standardized difference cloud (diff) and its unit-sphere projection (). All baselines concentrate in the middle of the stack, whereas TOPOSTEER () consistently selects the final layers.
coordinate-wise one, so both criteria move under the shared standardization; the proposition isolates the effect on , which is the one we can remove.
The effect can be separated from displacement geometry by dividing each coordinate by the pooled within-class standard deviation rather than by , which by Proposition 1 gives the separation-free score ; this reuses the cached activations and adds no forward passes. All results in this paper use the pooled standardization equation 2, which is also what LayerNavigator's scoring applies, so that the two criteria are compared on the same representation; comparing the rankings under the two standardizations is left to future work.
M DETAIL LAYER SELECTION
The layers selected by each strategy on Qwen-3B, for every task and budget , are given in Table 8.
N ABLATION STUDY WITH DIFFERENT TOPOLOGICAL METRICS
To assess how sensitive topology-guided layer selection is to its design choices, we sweep the space of descriptors used to rank layers and compare, for every model and behaviour, the best-performing configuration against LayerNavigator (Table 9). The sweep covers (i) persistence statistics including mean, maximum and total persistence of , and , persistence entropy, bar counts and dominance ratios. Those metrics are computed on the union of positive and negative activations, on the per-example displacement cloud, and on its -normalised counterpart; (ii) composite HOLE-style scores (topological separability, purity, separability) and min-max-normalised combinations of the above; (iii) seven distances for the Vietoris–Rips filtration (Euclidean, cosine, Mahalanobis, geodesic, and density-normalised Euclidean, cosine and Mahalanobis); and (iv) steering budgets . In every case, the mean-difference steering vector is added at unit strength to the top- layers under the descriptor, and we report the probability of the behaviour-consistent answer on the test split. Selected post hoc as an oracle upper bound, the best topological configuration matches or exceeds LayerNavigator in 29 of the 30 model–behaviour pairs, raising the steered probability by 4.0 points on average, with the largest gains on Qwen2.5-3B, where it lifts Conscientiousness to 0.923 while LayerNavigator falls below the unsteered model (), although no single descriptor or distance is best across all pairs.
Table 9: Best TDA layer-selection score for each model and dataset, searched over all scores, distance metrics and numbers of steered layers k. Values are the probability of the target-behaviour answer. Base is the unsteered model; LayerNavigator is shown at its own best k (in brackets), measured against the same unsteered baseline.
| Model | Dataset | TDA score | Distance | k | Base | TDA ↑ | LayerNavigator ↑ |
|---|---|---|---|---|---|---|---|
| Llama-3B | Conscientiousness* | Mean pers. H₀ (diff) | Euclidean | 2 | 0.7251 | 0.8700 | 0.8788 |
| Religion* | Mean pers. H₀ (diff) | Euclidean | 3 | 0.5568 | 0.8587 | 0.8565 | |
| Self-Aware* | Mean pers. H₀ (diff) | Euclidean | 3 | 0.5977 | 0.7468 | 0.7460 | |
| Self-Improvement* | Mean pers. H₀ (diff) | Euclidean | 2 | 0.7096 | 0.8199 | 0.8199 | |
| Alliance* | Mean pers. H₀ (union) | Euclidean | 2 | 0.7556 | 0.9000 | 0.9000 | |
| Impact* | Mean pers. H₀ (diff) | Euclidean | 3 | 0.6589 | 0.7378 | 0.7346 | |
| Llama-8B | Conscientiousness | Total pers. H₀ (union) | Geodesic | 3 | 0.8207 | 0.9419 | 0.9383 |
| Religion | TSS with β₁-AUC penalty | Cosine | 5 | 0.6893 | 0.8803 | 0.8405 | |
| Self-Aware | Max H₀ (union) + inv. max H₀ (diff) | Euclidean | 5 | 0.8186 | 0.9304 | 0.9160 | |
| Self-Improvement | Purity + separability | Mahalanobis | 5 | 0.7417 | 0.9160 | 0.8628 | |
| Alliance | H₁ dominance (max/mean pers.) | Geodesic | 5 | 0.8123 | 0.9455 | 0.9369 | |
| Impact | Max pers. H₁ (union) | Euclidean | 5 | 0.7745 | 0.8720 | 0.8454 | |
| Qwen-3B | Conscientiousness | Mean pers. H₁ (union) | Euclidean | 5 | 0.6940 | 0.9229 | 0.6100 |
| Religion | Mean pers. H₁ (union) | Euclidean | 5 | 0.6004 | 0.7974 | 0.5475 | |
| Self-Aware | Total pers. H₁ (union) | Euclidean | 5 | 0.5702 | 0.9155 | 0.8311 | |
| Self-Improvement | Total pers. H₀+H₁+H₂ (union) | Cosine | 3 | 0.6272 | 0.8697 | 0.8244 | |
| Alliance | Inverse strong-loop count (H₁) | Mahalanobis | 5 | 0.7552 | 0.9019 | 0.8837 | |
| Impact | Mean pers. H₁ (union) | Euclidean | 5 | 0.6060 | 0.7637 | 0.6502 | |
| Qwen-7B | Conscientiousness | Mean H₀ × H₁ fragility | Euclidean | 5 | 0.8785 | 0.9435 | 0.9315 |
| Religion | H₀ dominance (max/mean pers.) | Geodesic | 5 | 0.8445 | 0.8709 | 0.8574 | |
| Self-Aware | H₁ bar count | Mahalanobis | 5 | 0.9435 | 0.9639 | 0.9638 | |
| Self-Improvement | Max pers. H₁ (union) | Dens.-norm. Euclidean | 5 | 0.8352 | 0.8752 | 0.8723 | |
| Alliance | H₁ dominance (max/mean pers.) | Geodesic | 3 | 0.8705 | 0.9539 | 0.9114 | |
| Impact | Inverse H₁ entropy | Dens.-norm. cosine | 5 | 0.7334 | 0.8153 | 0.8077 | |
| Qwen-32B | Conscientiousness* | Mean pers. H₁ (diff-ℓ₂) | Euclidean | 5 | 0.9557 | 0.9685 | 0.9594 |
| Religion * | Max H₀ (union) + inv. max H₀ (diff) | Euclidean | 5 | 0.6077 | 0.7292 | 0.6920 | |
| Self-Aware | Mean pers. H₀ (union) | Euclidean | 5 | 0.9789 | 0.9852 | 0.9804 | |
| Self-Improvement* | Max H₀ (union) + inv. max H₀ (diff) | Euclidean | 5 | 0.8259 | 0.8564 | 0.8343 | |
| Alliance | Mean pers. H₀ (union) | Mahalanobis | 5 | 0.9198 | 0.9631 | 0.9242 | |
| Impact * | Mean pers. H₀ (diff) | Euclidean | 5 | 0.6728 | 0.7292 | 0.6771 |
union: persistence of the pooled positive and negative activations; diff: persistence of the per-example (positive – negative) displacements; inv.: min–max normalised and inverted; +: sum of min–max normalised scores; TSS: HOLE topological separability score. *Only Euclidean distance was run for this model and dataset. Where several scores select the same layers, one is shown.
| Model | Base | K = 1 | K = 2 | ||||
|---|---|---|---|---|---|---|---|
| LN | Ours | Oursℓ₂ | LN | Ours | Oursℓ₂ | ||
| Llama-3B | 59.56 | 60.00 (+0.44) | 60.00 (+0.44) | 60.00 (+0.44) | 58.86 (-0.70) | 58.86 (-0.70) | 58.86 (-0.70) |
| Llama-8B | 67.89 | 67.46 (-0.43) | 67.37 (-0.52) | 67.37 (-0.52) | 66.75 (-1.14) | 67.81 (-0.08) | 66.23 (-1.66) |
| Qwen-3B | 67.19 | 67.21 (+0.02) | 66.93 (-0.26) | 67.28 (+0.09) | 66.84 (-0.35) | 66.75 (-0.44) | 67.54 (+0.35) |
| Qwen-7B | 74.39 | 73.95 (-0.44) | 74.21 (-0.18) | 74.39 (+0.00) | 73.68 (-0.71) | 74.56 (+0.17) | 74.30 (-0.09) |
| Qwen-32B | 83.86 | 83.60 (-0.26) | 83.95 (+0.09) | 83.95 (+0.09) | 83.77 (-0.09) | 83.60 (-0.26) | 83.60 (-0.26) |
Table 10: MMLU accuracy (%, ↑) under simultaneous persona steering for . Each entry reports 5-shot MMLU accuracy, with the absolute change from the unsteered Base model in parentheses (percentage points). Models are steered on conscientiousness at .
O ADDITIONAL ANALYSIS
Table 10 reports detailed MMLU utility results for , while Table 11 reports the corresponding results for .
P DETAIL PERFORMANCE EVALUATION WITH EVALUATION-BASED SELECTION METHOD
Per-instance baseline (W2S-Multi). We compare TopoSteer against W2S-Multi, the deployable per-instance multi-layer steering method of Nelwan & Wicaksono (2026). The steering setup,
| Model | Base | |||
|---|---|---|---|---|
| LN | Ours | Ours | ||
| Llama-3B | 59.56 | 56.84 (-2.72) | 56.49 (-3.07) | 56.49 (-3.07) |
| Llama-8B | 67.89 | 66.14 (-1.75) | 66.58 (-1.31) | 66.14 (-1.75) |
| Qwen-3B | 67.19 | 67.02 (-0.17) | 67.02 (-0.17) | 67.19 (+0.00) |
| Qwen-7B | 74.39 | 73.60 (-0.79) | 74.47 (+0.08) | 74.39 (+0.00) |
| Qwen-32B | 83.86 | 83.25 (-0.61) | 83.77 (-0.09) | 83.77 (-0.09) |
Table 11: MMLU accuracy (%, ↑) under simultaneous persona steering for . Parenthetical values denote the absolute change from the unsteered Base model in percentage points. Models are steered on conscientiousness at .
prompts, data splits, and metrics are exactly those used for TOPOSTEER and LayerNavigator: the contrastive (CAA) steering vectors are extracted from the 700 training pairs of each task, a steering vector is added with to the last-token residual stream at every selected layer, and alignment (Prob) and perplexity (PPL) are measured on the same 100 test prompts per task. In addition, W2S-Multi chooses layers per input rather than per task. On the 200 validation prompts of each task, we first compute the single-layer effect of every layer: the change in the restricted Yes/No probability of the gold answer when that layer alone is steered. This costs forward passes per prompt (one unsteered pass plus one per layer) and requires the gold labels. Each prompt is then embedded with a sentence encoder (bge-base-en-v1.5 (Xiao et al., 2024)) and reduced to 25 dimensions by PCA fitted on the validation split. A one-hidden-layer MLP (25→64→L, ReLU, dropout 0.3) is trained to reproduce the distribution of single-layer effects over layers, using a listwise KL loss with the effects expressed in percentage points, optimized with full-batch Adam (learning rate , weight decay , 300 epochs). At test time, each input is steered at the layers ranked highest by the MLP, so different inputs can receive different layer sets; we report to match TOPOSTEER.
Comparison with Evaluation-Based Selection. Table 2 reports the detailed comparison with the per-instance W2S-Multi baseline. W2S-Multi achieves higher alignment probability on average (81.25% vs. 78.90%), but requires substantially more computation, with a total runtime of 15.9 minutes compared with 8.4 minutes for TOPOSTEER. This difference reflects the additional inference and label-dependent training required by W2S-Multi, whereas TOPOSTEER computes layer scores directly from the extraction data without additional steering evaluations. The full model-level results show the same trade-off across model families, with W2S-Multi generally achieving higher alignment at a higher perplexity and computational cost.
Q COMPARING CONNECTIVITY LENGTH VS. SUM OF DISTANCE TO THE MEAN
A natural way to ask “how good is the mean as a representative of the individual points” is to measure the typical distance from a point to some reference — either the mean itself, or, as a proxy for overall compactness, the connectivity length captured by the minimum spanning tree. Intuitively, a single mean should represent a unimodal cloud reasonably well (points are dispersed around one center) but should represent a bimodal cloud poorly (no single point, including the mean, sits close to both modes). A good quality measure should therefore be sensitive to modality, scoring the unimodal case as better represented and the bimodal case as worse represented.
The relevant standardization here is the one TOPOSTEER actually uses: the pooled activations are standardized once, coordinate-wise, using a single mean and std computed over all points (Sec. 3.1, Eq. equation 2; Proposition 1 records what that standardization couples the score to; this is also exactly what LayerNavigator’s own scoring code performs on all_actions before differencing). The displacement cloud is formed only afterward, , with no further rescaling. This standardization scale is therefore driven by class separation and any pair-shared noise that cancels in the difference but not in the individual activations — quantities the displacement cloud itself cannot see, and this shapes which of the two candidate statistics below remain reliable.
Q.1 MODEL
We extend the homothety family of Sec. 5.2 (Appendix D) to allow the residual shape to be unimodal or bimodal, dropping the layer subscript as in that example:
so that exactly, with the pair-shared noise canceling as before. Isotropically:
• , so (class separation, spread evenly across coordinates);
• i.i.d. uniform on the sphere of radius (shared pair-level noise);
• unimodal: i.i.d. uniform on the sphere of radius ; or bimodal: points uniform on the sphere of radius centered at , and centered at , the mode-separation spread evenly across coordinates.
Write (unimodal) or (bimodal, by the usual law-of-total-variance decomposition).
Q.2 LEMMA: SUM OF NORMS VS. CONNECTIVITY LENGTH
Lemma 4 (Sum of norms vs. connectivity length under pooled-activation standardization). Under the model above, as with fixed, let denote the displacement cloud obtained by pooled standardization of the activations followed by differencing, and let
Part A (sum of norms). For either shape,
so
Part B (connectivity length).
so
Part C (bridge share). Algorithm 1 reports, alongside , the bridge share (Eq. equation 8). Being a ratio of a single edge to the total, is invariant to any positive scalar multiplying the whole cloud, hence to entirely:
regardless of , with whenever .
Q.3 PROOF OF LEMMA 4
Step 0 (translation invariance, exact). By Proposition 4, for any , with no asymptotics needed. Centering at its own empirical mean for Part A removes the same constant in the standardized scale. So for both statistics, the effect of is confined entirely to how it inflates the standardization scale below — never to a residual shift of the centered cloud.
Step 1 (raw, unstandardized distances concentrate to constants). For i.i.d. uniform on a sphere of radius in ,
Writing for uniform on the unit sphere, each coordinate of behaves for large like an independent variable, so is a sum of independent mean-zero terms of variance each, giving . Hence — and this holds for every pair , not just in expectation, so in the limit all pairwise distances within a radius- spherical cloud become equal to the same constant. The same computation, applied to in different modes of the bimodal cloud, gives ; applied within one mode it gives , as in the unimodal case.
Step 2 (the pooled standardization is a single shared scalar). The pooled set is, per coordinate , a 50/50 mixture of the class-+ and class-− distributions. By the law of total variance,
From and independence of : within-class variance is (identical for class – by the symmetric construction). The between-class term is the variance of a two-point distribution, which is ; here , giving . So
Substituting the isotropic per-coordinate values , , gives for every coordinate — the same number regardless of , because every quantity entering it was assumed spread evenly across coordinates. A coordinate-wise standardization that divides every coordinate by the same number is, by definition, a single global scalar division: .
Step 3 (Part A). For the unimodal cloud, exactly for every (points lie exactly on the sphere), so exactly, and summing over points gives — matching the claimed formula since in the unimodal case. For the bimodal cloud, with the cross term by the Step 1 argument, so for both modes; the fluctuations have mean zero across the two equally sized modes and cancel in the sum, giving .
Step 4 (Part B). Step 1 shows every pairwise distance within the unimodal cloud converges to the same constant (after applying the Step 2 scalar); when all edges of a complete graph have equal weight, every spanning tree — in particular the minimum one — has the same total weight, namely times that constant. This gives the stated formula for . For the bimodal cloud, the same argument applies separately within each mode (giving edges of length per mode, in total across both modes) and across modes (every inter-mode pair converges to the same distance, so it does not matter which single edge the minimum spanning tree uses to join the two modes; exactly one such edge is needed to connect the forest into a tree). Summing the intra-mode and the one inter-mode edge gives the stated formula.
Step 5 (Part C). By Step 2, standardization multiplies every edge of MST( ) by the same scalar , which therefore cancels exactly from the ratio — this ratio depends only on the relative edge lengths established in Step 4. For the unimodal cloud all edges converge to the same length , so the single longest edge is also length and
1/(N-1). For the bimodal cloud, by Step 4, is the sum of bulk edges of length and one bridge edge of length , and since makes the bridge strictly the longest edge, , which simplifies to the stated expression after canceling the common factor of . ■
Q.4 TWO REGIMES
The comparison in the Lemma is abstract; the following two concrete cases make it operational, and in both cases we track sum of norms alongside connectivity length rather than one at a time. The two cases differ only in what is held fixed between the unimodal and bimodal : total scatter in the first, the within-mode noise level in the second.
Matched-scatter comparison (, unimodal and bimodal built to have identical aggregate scatter): exactly, so the dilution factor is 1 for both statistics, and each ratio reduces to its own shape factor alone. For connectivity length this leaves as : the bimodal cloud is correctly scored lower. For sum of norms, Part A's shape factor is by construction (that is exactly what “matched scatter” means), so its ratio is exactly 1 — not wrong, but uninformative: it cannot distinguish the two clouds by construction, regardless of how differently their MSTs are organized. This is unaffected by , since these cancel identically from and in either statistic once is matched.
Matched-noise comparison (, unimodal and bimodal share the same within-mode spread, and bimodal simply adds extra between-mode separation on top): now , so both statistics' dilution factors drop below 1, but the two shape factors respond to this in opposite ways. Connectivity length's shape factor is itself for finite (with : , where is the bridge-to-bulk edge-length ratio, since one bridge edge longer than typical outweighs saving one edge count out of 39), so the dilution factor is fighting against a shape factor that already points the wrong way; sum of norms' shape factor is , so its dilution factor is fighting against an even larger shape factor pointing the same wrong way. At , connectivity length's dilution factor is small enough () to win, giving a product — correctly ranking bimodal below unimodal, if only barely and by cancellation rather than by design. Sum of norms' dilution factor at happens to invert to exactly (pooled standardization degenerates to displacement-cloud self-standardization at zero nuisance), so its product is also exactly 1 here — coincidentally blind rather than coincidentally correct.
As (class separation) or (shared pair-noise) grow, both dilution factors rise toward 1, and each statistic's ratio drifts toward its own fixed shape factor: connectivity length's ratio crosses above 1 near in our simulation, meaning it now ranks the mechanically-split (bimodal) cloud above the coherent one; sum of norms' ratio climbs toward , moving even further from useful. So in the matched-noise comparison the two statistics fail in the same direction (both drift toward, and connectivity length crosses, the wrong ranking). For the same reason (dilution washing out as separation dominates ) — connectivity length simply starts from a better position (a shape factor close to 1) and takes longer to fail. In comparison, sum of norms starts from a worse position (a shape factor of 1.8) and is wrong for nearly the entire sweep. Neither statistic's failure here is a coincidence of this specific choice: both trace back to the same dilution mechanism identified in Step 2 of the proof, applied through two different shape factors. This identifies a risk to check for at well-separated layers specifically — it is a claim about the standardization pipeline, not a diagnosis of any particular row of Table 5, since that table does not report the separation, bridge share, or values needed to confirm which mechanism, if any, is responsible for a given failure.
Bridge share , by contrast, is unaffected by any of this in either regime: it depends only on or through a factor that cancels identically (Step 5), so it stays fixed at its two predicted values, for unimodal and for bimodal (with ), regardless of , or which comparison is used.
Q.5 SIMULATION
We simulate the model above at , , , , , (Prim's algorithm MST, mode-separation spread isotropically across all coordinates, averaged over 8 trials per point), sweeping the class separation from 0 to 12, under both the matched-scatter and matched-noise comparisons.
Connectivity-length ratio can cross above 1 as separation grows; bridge share never does

Figure 8: Left: connectivity-length ratio and sum-of-norms ratio, overlaid for direct comparison. The connectivity-length ratio (blue) is stable at under the matched-scatter comparison (solid) across all , but under the matched-noise comparison (dashed) it rises with and crosses above 1 near , meaning the bimodal (mechanistically split) cloud is ranked above the unimodal one once class separation is large enough. The sum-of-norms ratio (orange) stays near 1 under matched-scatter (solid) but climbs toward under the matched-noise comparison (dashed), becoming strongly shape-sensitive for a reason unrelated to representativeness. Right: the bridge share that Algorithm 1 already reports is essentially unchanged across every condition — for unimodal, for bimodal, matching the closed-form predictions of Part C exactly, regardless of or comparison regime.
Table 12 reports selected values from the sweep underlying Figure 8.
Table 12: Selected points from the -sweep at , . The connectivity-length ratio crosses above 1 in the matched-noise comparison as grows, while the matched-scatter ratio and the bridge share (both regimes) stay essentially fixed at their predicted values.
| ratio (m.s.) | ratio (m.n.) | sn ratio (m.s.) | sn ratio (m.n.) | (m.n.) | (m.n.) | |
|---|---|---|---|---|---|---|
| 0 | 0.581 | 0.857 | 1.012 | 1.494 | 0.0261 | 0.0575 |
| 2 | 0.577 | 0.929 | 1.007 | 1.621 | 0.0262 | 0.0577 |
| 5 | 0.577 | 1.004 | 1.009 | 1.755 | 0.0262 | 0.0576 |
| 8 | 0.578 | 1.028 | 1.008 | 1.792 | 0.0261 | 0.0577 |
| 12 | 0.578 | 1.034 | 1.005 | 1.799 | 0.0262 | 0.0573 |
Q.6 SUMMARY
Sum-of-norms is uninformative or actively misleading in every regime tested: it either cannot distinguish a coherent displacement cloud from a mechanically split one, or does so only by leaking in class separation and shared noise that have nothing to do with representativeness. Connectivity length is a genuine but conditional signal: it correctly favors the coherent layer when class separation is modest, but the same pooled standardization that TOPOSTEER relies on can let separation dominate the normalizing scale at well-separated layers, at which point can rank a mechanically split displacement cloud above a coherent one. Whether this occurs for any specific layer in Table 5 is an open empirical question — the table does not report the diagnostics (separation magnitude, bridge share) needed to check it, so we state this as a risk the theory identifies, not as an explanation already confirmed for any reported result. The bridge share that Algorithm 1 already computes is unaffected by this: being a ratio of a single edge to the total, it is invariant to whatever scale the standardization imposes, and it separates unimodal from bimodal clouds by a fixed, predictable margin in every condition tested here. The practical recommendation is therefore to rank layers by but to treat that ranking as valid only where confirms it — not to read magnitude alone as sufficient evidence of steerability.