arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.11599cs.CLcs.LG
收藏

你的大模型何时可操控?

When is Your LLM Steerable?

University of Maryland, College Park(马里兰大学帕克分校);MBZUAI, UAE(穆罕默德·本·扎耶德人工智能大学)

Chenrui Fan, Yize Cheng, Ming Li, Soheil Feizi, Tianyi Zhou

AI总结:

提出通过模型生成初期的内部状态预测激活操控是否成功,并利用该预测器优化操控强度搜索,降低解码成本。

摘要:

激活操控提供了一种轻量级的方法来控制语言模型在推理时的行为,但其成功与否严重依赖于提示、概念、模型和操控配置。寻找成功操控的范围和边界通常需要昂贵的网格搜索和对完整自回归生成的后验评估。在这项工作中,我们研究了是否可以从模型在生成过程初期(例如,生成前几个token后)的内部状态预测可操控性,以及如何利用这样的预测器来提高操控成功率。为此,我们首先引入了ASTEER,一个包含140万次操控生成的测试平台,涵盖150个概念,每个操控成功/失败均已标注。利用该测试平台,我们通过提取特征来比较操控前后跨层和初始解码步骤的隐藏状态,分析模型的早期解码动态。这些特征帮助我们理解操控效果如何沿层和token位置传播,为可操控性预测提供关键信息。然后,我们在这些特征上训练梯度提升决策树(GBDT)分类器,以预测干预是否会欠操控、成功或过操控,而无需完整生成。我们的预测器在未见过的概念上达到了约0.7的宏F1分数,表明早期隐藏状态编码了关于最终操控效果的大量结构化信息。我们进一步利用该可操控性预测器作为操控强度搜索的指导,以极小的解码成本实现了接近最优的性能。

英文摘要:

Activation steering offers a lightweight approach to control language models' behavior at inference time, but whether it succeeds or fails heavily depends on the prompt, concept, model, and steering configuration. Finding the regime and boundaries of successful steering typically requires expensive grid searches and post-hoc evaluation of full autoregressive rollouts. In this work, we investigate whether steerability can be predicted from the model's internal states at the beginning of the generation process, e.g., after generating the first few tokens, and how to leverage such a predictor to improve steering success rate. To this end, we first introduce ASTEER, a testbed including 1.4M steered generations, spanning 150 concepts with each steering success/failure labeled. Leveraging this testbed, we analyze the model's early decoding dynamics by extracting features that compare hidden states before and after steering across layers and initial decoding steps. These features help us understand how steering's effects propagate along layers and token positions, which provide key information for steerability prediction. We then train a Gradient Boosting Decision Trees (GBDT) classifier on these features to predict whether an intervention will under-steer, succeed, or over-steer without requiring full rollout. Our predictor achieves around 0.7 macro-F1 score on unseen concepts, demonstrating that early hidden states encode substantial, structured information about eventual steering efficacy. We further leverage this steerability predictor as guidance for steering strength searching, achieving near-optimal performance with a small fraction of decoding cost.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑