跳到正文
arXiv cs.CL· Tuc Nguyen, Marcos Guti\'errez-del-Pozo, Eduardo Paluzo-Hidalgo, Yifan Hu, Adaku Uchendu, Thai Le·· 11 小时前AI 评分31

TopoSteer:面向 LLM 激活引导的拓扑层选择方法

TopoSteer: Topological Layer Selection for Activation Steering in LLMs

AI 导读

TopoSteer 提出一种基于拓扑的层选择方法,通过计算每层位移点云的总 H_0 持久性(即点云欧氏最小生成树长度)来为激活引导打分选层。该方法证明随着样本级变异增大,TopoSteer 与可判别性会朝相反方向变化,两者可能给出相反的层排序。在多个语言模型和引导任务上,TopoSteer 无需留出验证集即可实现更有效的引导。

正文 · 原文

View PDF HTML (experimental)

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 H_0 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.
Comments: 42 pages, 8 figures
Subjects: Computation and Language (cs.CL); Machine Learning (cs.LG)
Cite as: arXiv:2611.01493 [cs.CL]
  (or arXiv:2611.01493v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2611.01493

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Tuc Nguyen Van [view email]
[v1] Sun, 1 Nov 2026 03:24:53 UTC (7,450 KB)

来源:arXiv cs.CL · arxiv.org