arXiv:2501.11036cs.CL2025-01被引 6

通过特征级调控提升大模型生成一致性

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

  • 将隐藏状态映射到稀疏特征空间,实现解耦的特征级调控
  • 在多个NLU/NLG任务上显著提升语义一致性表现
  • 适合关注生成稳定性与可控性的研究者和开发者

大语言模型在面对语义等价的改写输入时,常产生不一致的回应。近期激活调控技术通过在推理时调整模型隐层表示来改善语义一致性,但现有方法多作用于层隐藏状态或注意力头输出,受'多义性问题'影响——模型组件通常编码多个纠缠特征,难以精准调控。为此,本文深入至特征层级,提出LF-Steering,一种新型激活调控方法,可精确识别导致语义不一致的潜在特征表示。具体而言,基于稀疏自编码器(SAE),将相关Transformer层的隐藏状态映射至一个稀疏激活的高维特征空间,确保以解耦特征表示进行调控且干扰最小。在NLU与NLG数据集上的全面实验表明,该方法能有效增强语义一致性,在多种任务中带来显著性能提升。

原文摘要 · Abstract (English)

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.

大模型生成一致性特征调控

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。