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

LF-Steering:潜在特征激活引导以增强大型语言模型的语义一致性

LF-Steering: Latent Feature Activation Steering for Enhancing Semantic Consistency in Large Language Models

College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部);IT Innovation and Research Center, Huawei Technologies(华为技术有限公司 IT 创新研究中心);Informatics, University of Edinburgh(爱丁堡大学信息学院)

Jingyuan Yang, Rongjun Li, Weixuan Wang, Ziyu Zhou, Zhiyong Feng, Wei Peng

AI总结:

针对LLM对语义等价输入响应不一致的问题,本文提出LF-Steering方法,利用稀疏自编码器在特征级进行激活引导,实现精准干预,实验证明其能显著提升NLU和NLG任务的语义一致性。

摘要:

大型语言模型(LLMs)在面对语义等价但措辞不同的输入时,常常生成不一致的响应。近年来,激活引导(activation steering)作为一种通过在推理时调整模型潜在表示来调节LLM行为的技术,已被探索用于提高LLM的语义一致性。然而,这些方法通常在模型组件层面(如层隐藏状态或注意力头输出)进行操作,面临“多义性问题”的挑战,即LLM的模型组件通常编码多个纠缠在一起的特征,使得精确引导变得困难。为解决这一挑战,我们深入到特征级表示,提出了LF-Steering,一种新颖的激活引导方法,用于精确识别导致语义不一致的潜在特征表示。具体而言,我们的方法基于稀疏自编码器(SAE),将相关Transformer层的隐藏状态映射到一个稀疏激活的高维特征空间,确保基于解耦特征表示的模型引导具有最小干扰。在NLU和NLG数据集上的综合实验证明了我们的方法在增强语义一致性方面的有效性,为各种NLU和NLG任务带来了显著的性能提升。

英文摘要:

Large Language Models (LLMs) often generate inconsistent responses when prompted with semantically equivalent paraphrased inputs. Recently, activation steering, a technique that modulates LLMs' behaviours by adjusting their latent representations during inference time, has been explored to improve the semantic consistency of LLMs. However, these methods typically operate at the model component level, such as layer hidden states or attention head outputs. They face a challenge due to the ``polysemanticity issue'', where the model components of LLMs typically encode multiple entangled features, making precise steering difficult. To address this challenge, we drill down to feature-level representations and propose LF-Steering, a novel activation steering approach to precisely identify latent feature representations responsible for semantic inconsistency. More specifically, our method maps the hidden states of the relevant transformer layer into a sparsely activated, high-dimensional feature space based on a sparse autoencoder (SAE), ensuring model steering based on decoupled feature representations with minimal interference. Comprehensive experiments on NLU and NLG datasets demonstrate the effectiveness of our method in enhancing semantic consistency, resulting in significant performance gains for various NLU and NLG tasks.

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

↑