寻找翻译切换:在大语言模型中发现并利用任务启动特征
Finding the Translation Switch: Discovering and Exploiting the Task-Initiation Features in LLMs
AI总结:
本研究通过发现大语言模型中的翻译启动特征,揭示其内在翻译能力,并提出基于机理困难样本的高效微调策略,提升模型鲁棒性和效率。
摘要:
大型语言模型(LLMs)经常表现出强大的翻译能力,即使没有特定任务的微调。然而,这种内在能力的内部机制仍然大多模糊不清。为了揭示这一过程,我们利用稀疏自编码器(SAEs)并引入了一种新的框架来识别任务特定的特征。我们的方法首先回忆在翻译输入上频繁共激活的特征,然后使用基于主成分分析(PCA)的一致性度量过滤它们。该框架成功地隔离了一组小的**翻译启动**特征。因果干预显示,放大这些特征会使模型朝着正确的翻译方向发展,而消去它们会引发幻觉和非任务输出,证实它们代表了模型内在翻译能力的核心组成部分。从分析到应用,我们利用这一机理洞察,提出了一种新的数据选择策略以提高微调效率。具体来说,我们优先训练**机理困难**的样本——那些无法自然激活翻译启动特征的样本。实验显示,这种方法显著提高了数据效率并抑制了幻觉。此外,我们发现这些机制可以转移到同一系列的更大模型中。我们的工作不仅解码了LLMs翻译机制的核心组成部分,还为利用内部模型机制创建更加稳健和高效的模型提供了蓝图。代码可在https://github.com/flamewei123/AAAI26-translation-Initiation-Features获取。
英文摘要:
Large Language Models (LLMs) frequently exhibit strong translation abilities, even without task-specific fine-tuning. However, the internal mechanisms governing this innate capability remain largely opaque. To demystify this process, we leverage Sparse Autoencoders (SAEs) and introduce a novel framework for identifying task-specific features. Our method first recalls features that are frequently co-activated on translation inputs and then filters them for functional coherence using a PCA-based consistency metric. This framework successfully isolates a small set of **translation initiation** features. Causal interventions demonstrate that amplifying these features steers the model towards correct translation, while ablating them induces hallucinations and off-task outputs, confirming they represent a core component of the model's innate translation competency. Moving from analysis to application, we leverage this mechanistic insight to propose a new data selection strategy for efficient fine-tuning. Specifically, we prioritize training on **mechanistically hard** samples-those that fail to naturally activate the translation initiation features. Experiments show this approach significantly improves data efficiency and suppresses hallucinations. Furthermore, we find these mechanisms are transferable to larger models of the same family. Our work not only decodes a core component of the translation mechanism in LLMs but also provides a blueprint for using internal model mechanism to create more robust and efficient models. The codes are available at https://github.com/flamewei123/AAAI26-translation-Initiation-Features.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。