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

LoRA适配器的特征几何:微调语言模型中表示差异的稀疏自编码器分析

Feature Geometry of LoRA Adapters: A Sparse Autoencoder Analysis of Representational Divergence in Fine-Tuned Language Models

Independent AI Safety Researcher(独立人工智能安全研究员)

Prasanth K K

AI总结:

本研究使用稀疏自编码器分析LoRA微调引起的表示几何变化,发现LoRA特征字典与预训练特征存在弱几何对齐,且适配器特定SAE能更有效重建delta激活。

摘要:

低秩适配(LoRA)已成为适应大型语言模型的广泛采用方法,但LoRA微调引起的内部表示变化仍未被充分理解。在这项工作中,我们使用稀疏自编码器(SAE)研究LoRA诱导表示的几何结构。我们引入了一个delta激活框架,该框架隔离了适配器对残差流的特定贡献。使用Gemma-2-9B和LoRA秩4、8、16和32,我们在多个Transformer层上训练适配器特定的SAE,并将它们学习的特征空间与预训练的SAE字典进行比较。我们使用解码器方向之间的余弦相似度、特征子空间的主角分析以及激活表示之间的中心核对齐(CKA)来评估表示对齐。跨层和秩,我们一致观察到LoRA诱导的特征字典与预训练SAE特征之间的几何对齐相对较弱。适配器特定的SAE也比预训练SAE更有效地重建delta激活,这表明LoRA更新在残差流内占据了部分不同的表示结构。此外,特征密度随秩和深度增加,而几何差异在各秩之间保持相对稳定。这些发现提供了经验证据,表明LoRA微调可以诱导出预训练可解释性字典未完全捕获的特征结构,对微调语言模型的机制可解释性、适配分析和安全审计具有启示意义。

英文摘要:

Low-Rank Adaptation (LoRA) has emerged as a widely adopted approach for adapting large language models, yet the internal representational changes induced by LoRA fine-tuning remain insufficiently understood. In this work, we investigate the geometry of LoRA-induced representations using Sparse Autoencoders (SAEs). We introduce a delta activation framework that isolates the adapter-specific contribution to the residual stream. Using Gemma-2-9B with LoRA ranks 4, 8, 16, and 32, we train adapter-specific SAEs across multiple transformer layers and compare their learned feature spaces with pretrained SAE dictionaries. We evaluate representational alignment using cosine similarity between decoder directions, principal-angle analysis of feature subspaces, and Centered Kernel Alignment (CKA) between activation representations. Across layers and ranks, we consistently observe comparatively weak geometric alignment between LoRA-induced feature dictionaries and pretrained SAE features. Adapter-specific SAEs also reconstruct delta activations more effectively than pretrained SAEs, suggesting that LoRA updates occupy partially distinct representational structure within the residual stream. Additionally, feature density increases with rank and depth, while geometric divergence remains relatively stable across ranks. These findings provide empirical evidence that LoRA fine-tuning can induce feature structures that are not fully captured by pretrained interpretability dictionaries, with implications for mechanistic interpretability, adaptation analysis, and safety auditing of fine-tuned language models.

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

↑