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

超越单一概念向量:用高斯分布建模大语言模型中的概念子空间

Beyond Single Concept Vector: Modeling Concept Subspace in LLMs with Gaussian Distribution

New Jersey Institute of Technology(新泽西理工学院);Wake Forest University(威克森林大学);Cisco Research(思科研究)

Haiyan Zhao, Heng Zhao, Bo Shen, Ali Payani, Fan Yang, Mengnan Du

AI总结:

针对大语言模型中单一概念向量不稳定、鲁棒性差的问题,提出用高斯概念子空间(GCS)建模概念分布,并在多模型及情感引导等任务中验证其能兼顾控制效果与生成流畅性。

摘要:

探究大语言模型(LLMs)中已学习的概念对于理解语义知识如何在内部编码至关重要。在探测任务上训练线性分类器是在表示空间中表示某一概念向量的一种原则性方法。然而,为一个概念识别出的单一向量会随数据和训练的不同而变化,这使其鲁棒性较差,并削弱了其在实际应用中的有效性。为应对这一挑战,我们提出了一种近似表示特定概念的子空间的方法。基于线性探测分类器,我们将概念向量扩展为高斯概念子空间(GCS)。我们通过在不同规模和架构的多个大语言模型上衡量其忠实性和合理性来证明 GCS 的有效性。此外,我们使用表示干预任务展示其在情感引导等实际应用中的效果。实验结果表明,GCS 概念向量有潜力在引导性能与保持自然语言生成任务流畅性之间取得平衡。

英文摘要:

Probing learned concepts in large language models (LLMs) is crucial for understanding how semantic knowledge is encoded internally. Training linear classifiers on probing tasks is a principle approach to denote the vector of a certain concept in the representation space. However, the single vector identified for a concept varies with both data and training, making it less robust and weakening its effectiveness in real-world applications. To address this challenge, we propose an approach to approximate the subspace representing a specific concept. Built on linear probing classifiers, we extend the concept vectors into Gaussian Concept Subspace (GCS). We demonstrate GCS's effectiveness through measuring its faithfulness and plausibility across multiple LLMs with different sizes and architectures. Additionally, we use representation intervention tasks to showcase its efficacy in real-world applications such as emotion steering. Experimental results indicate that GCS concept vectors have the potential to balance steering performance and maintaining the fluency in natural language generation tasks.

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

↑