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

FineSteer: 一种用于大语言模型推理时细粒度引导的统一框架

FineSteer: A Unified Framework for Fine-Grained Inference-Time Steering in Large Language Models

University of California, Los Angeles(加州大学洛杉矶分校)

Zixuan Weng, Jinghuai Zhang, Kunlin Cai, Ying Li, Peiran Wang, Yuan Tian

AI总结:

本文提出FineSteer框架,通过条件引导和细粒度向量合成两个阶段实现高效引导,保留模型效用并提升引导效果,实验显示其在安全性和真实性基准上表现优异。

摘要:

大型语言模型(LLMs)常表现出不良行为,如安全违规和幻觉。尽管推理时引导能有效调整模型行为而不更新参数,现有方法因设计僵化、适应性差而难以同时有效、保留效用和训练高效。本文提出FineSteer,将推理时引导分解为两个互补阶段:条件引导和细粒度向量合成,实现对内部表示的精细控制。在第一阶段,引入子空间引导条件引导(SCS)机制,通过避免不必要的引导保留模型效用。在第二阶段,提出混合引导专家(MoSE)机制,捕捉多模态的引导行为并生成查询特定的引导向量以提升效果。通过SCS和MoSE的定制设计,FineSteer在通用查询上保持稳健性能,同时以训练高效的方式优化引导向量。在安全性和真实性基准上的广泛实验表明,FineSteer在整体性能上优于现有方法,实现更强的引导性能,同时损失较小的效用。代码可在https://github.com/YukinoAsuna/FineSteer获取。

英文摘要:

Large language models (LLMs) often exhibit undesirable behaviors, such as safety violations and hallucinations. Although inference-time steering offers a cost-effective way to adjust model behavior without updating its parameters, existing methods often fail to be simultaneously effective, utility-preserving, and training-efficient due to their rigid, one-size-fits-all designs and limited adaptability. In this work, we present FineSteer, a novel steering framework that decomposes inference-time steering into two complementary stages: conditional steering and fine-grained vector synthesis, allowing fine-grained control over when and how to steer internal representations. In the first stage, we introduce a Subspace-guided Conditional Steering (SCS) mechanism that preserves model utility by avoiding unnecessary steering. In the second stage, we propose a Mixture-of-Steering-Experts (MoSE) mechanism that captures the multimodal nature of desired steering behaviors and generates query-specific steering vectors for improved effectiveness. Through tailored designs in both SCS and MoSE, FineSteer maintains robust performance on general queries while adaptively optimizing steering vectors for targeted inputs in a training-efficient manner. Extensive experiments on safety and truthfulness benchmarks show that FineSteer outperforms state-of-the-art methods in overall performance, achieving stronger steering performance with minimal utility loss. Code is available at https://github.com/YukinoAsuna/FineSteer

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

↑