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

在理解的边缘:稀疏自编码器追踪Transformer泛化的极限

At the Edge of Understanding: Sparse Autoencoders Trace The Limits of Transformer Generalization

Mila - Quebec AI Institute(魁北克AI研究所);Meta AI;Sapient manifold-informed selection of samples for improved Intelligence

Praneet Suresh, Jack Stanley, Sonia Joseph, Luca Scimeca, Danilo Bzdok

AI总结:

通过稀疏自编码器分析内部概念,发现OOD输入(如拼写错误和越狱提示)会激活更多错误概念,并据此提出一种基于机制的微调策略来增强LLM鲁棒性。

摘要:

预训练Transformer展示了显著的泛化能力,有时甚至超出其训练数据的范围。然而,现实世界的部署常常面临与训练数据分布不同的意外或对抗性数据。在没有明确处理这种变化的机制下,模型的可靠性和安全性会下降,这促使我们更严格地研究Transformer的分布外(OOD)设置。通过系统实验,我们提出了一个用于描绘Transformer模型鲁棒性精确轮廓的机制框架。我们发现,OOD输入(包括细微的拼写错误和越狱提示)会驱动语言模型在其内部操作更多错误概念。我们利用这一工具来量化和理解提示中分布变化的程度,从而提出一种基于机制的微调策略来增强LLM的鲁棒性。将OOD的概念从输入数据扩展到模型的私有计算过程,在推理时进行新的Transformer诊断是使AI系统在科学、商业和政府领域安全部署的关键一步。

英文摘要:

Pre-trained transformers have demonstrated remarkable generalization abilities, at times extending beyond the scope of their training data. Yet, real-world deployments often face unexpected or adversarial data that diverges from training data distributions. Without explicit mechanisms for handling such shifts, model reliability and safety degrade, urging more disciplined study of out-of-distribution (OOD) settings for transformers. By systematic experiments, we present a mechanistic framework for delineating the precise contours of transformer model robustness. We find that OOD inputs, including subtle typos and jailbreak prompts, drive language models to operate on an increased number of fallacious concepts in their internals. We leverage this device to quantify and understand the degree of distributional shift in prompts, enabling a mechanistically grounded fine-tuning strategy to robustify LLMs. Expanding the very notion of OOD from input data to a model's private computational processes, a new transformer diagnostic at inference time is a critical step toward making AI systems safe for deployment across science, business, and government.

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

↑