表征手术:仿射引导的理论与实践
Representation Surgery: Theory and Practice of Affine Steering
AI总结:
本文研究神经语言模型表征的仿射引导函数,推导出两种最小二乘最优引导方法,并通过实验验证其在减少偏见和有毒文本生成方面的有效性。
摘要:
语言模型常常表现出不良行为,例如生成有毒或带有性别偏见的文本。在神经语言模型中,不良行为的编码通常存在于模型的表征中。因此,防止模型表现出不良行为的一种自然(且常见)的方法是引导模型的表征,以降低其生成不良文本的概率。本文研究了引导函数的形式化性质与经验性质,即改变神经语言模型行为的表征变换。首先,我们在不同约束下推导出两个最小二乘意义下最优的仿射引导函数。我们的理论为现有方法提供了合理性证明,并提出了一种新颖且改进的引导方法。其次,我们提供了一系列实验,证明了这些方法在缓解偏见和减少有毒生成方面的经验有效性。
英文摘要:
Language models often exhibit undesirable behavior, e.g., generating toxic or gender-biased text. In the case of neural language models, an encoding of the undesirable behavior is often present in the model's representations. Thus, one natural (and common) approach to prevent the model from exhibiting undesirable behavior is to steer the model's representations in a manner that reduces the probability of it generating undesirable text. This paper investigates the formal and empirical properties of steering functions, i.e., transformation of the neural language model's representations that alter its behavior. First, we derive two optimal, in the least-squares sense, affine steering functions under different constraints. Our theory provides justification for existing approaches and offers a novel, improved steering approach. Second, we offer a series of experiments that demonstrate the empirical effectiveness of the methods in mitigating bias and reducing toxic generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。