arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.30076cs.CL
收藏

UniSteer: 文本引导的激活空间流匹配用于多功能LLM引导

UniSteer: Text-Guided Flow Matching in Activation Space for Versatile LLM Steering

ShanghaiTech University(上海科技大学)

Yingdong Shi, Ruiming Zhang, Changming Li, Zhiyu Yang, Kaixing Zhang, Jingyi Yu, Kan Ren

AI总结:

提出UniSteer,一种文本引导的激活流匹配模型,通过学习残差流激活的条件分布,实现统一的行为控制、真实性引导、细粒度概念引导、多约束指令遵循和激活空间分类。

摘要:

基于激活的控制通过在推理过程中干预大型语言模型(LLM)的内部表示来引导它们,并已成为控制个性、风格等行为的有效范式。然而,现有方法通常依赖于固定的引导方向或特定任务的干预模块,难以适应细粒度概念和组合约束。我们提出UniSteer,一种文本引导的激活流匹配模型,它从自然语言条件中学习残差流激活的条件分布。UniSteer不是为每个目标行为拟合单独的干预,而是在激活空间中学习一个通用的条件速度场。在推理时,UniSteer通过将源激活部分传输到潜在状态并在目标文本条件下重新生成它,然后将其注入回冻结的LLM,从而执行流反转。相同的条件模型通过选择具有最低重建能量的文本标签来支持激活空间分类。在三个目标LLM上的实验表明,UniSteer在行为控制、真实性引导、细粒度概念引导、多约束指令遵循和激活空间分类方面提供了统一的接口。

英文摘要:

Activation-based control steers large language models (LLMs) by intervening on their internal representations during inference, and has emerged as an effective paradigm for controlling behaviors such as persona and style. However, existing methods often rely on fixed steering directions or task-specific intervention modules, making them difficult to adapt to fine-grained concepts and compositional constraints. We propose UniSteer, a text-guided activation flow matching model that learns a conditional distribution over residual-stream activations from natural-language conditions. Instead of fitting a separate intervention for each target behavior, UniSteer learns a universal conditional velocity field in activation space. At inference time, UniSteer performs flow inversion by partially transporting a source activation toward a latent state and regenerating it under a target textual condition before injecting it back into the frozen LLM. The same conditional model supports activation-space classification by selecting the textual label with the lowest reconstruction energy. Experiments on three target LLMs show that UniSteer provides a unified interface across behavioral control, truthfulness steering, fine-grained concept steering, multi-constraint instruction following, and activation-space classification.

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

↑