arXiv:2410.21508cs.CLcs.AI2024-10EMNLP被引 9

通过分组共用稀疏自编码器,大幅加速大模型训练

Group-SAE: Efficient Training of Sparse Autoencoders for Large Language Models via Layer Groups

论文配图:Group-SAE: Efficient Training of Sparse Autoencoders for Large Language Models via Layer Groups
图 1 · 摘自论文原文
  • 将相似层合并为组,每组共享一个稀疏自编码器
  • 实验显示训练速度提升显著,重建质量损失小于5%
  • 适合需要高效理解大模型表征的研究者

稀疏自编码器(SAEs)作为理解大型语言模型(LLMs)各层表征的有前景的无监督方法,正面临训练成本高的挑战。随着模型规模增大,通常需为每一层单独训练一个SAE,计算开销巨大。为此,我们提出Group-SAE,一种新策略:根据连续层间残差流表征的相似性进行分组,每组仅训练一个SAE。为平衡效率与性能,引入AMAD(平均最大角度距离)作为经验指标,指导最优分组数量的选择。在Pythia系列模型上的实验表明,该方法显著加速训练,重建质量下降不足5%,下游任务表现和可解释性与逐层训练的基线相当。该方法为现代大模型中SAE的高效、可扩展训练提供了可行方案。

原文摘要 · Abstract (English)

SAEs have recently been employed as a promising unsupervised approach for understanding the representations of layers of Large Language Models (LLMs). However, with the growth in model size and complexity, training SAEs is computationally intensive, as typically one SAE is trained for each model layer. To address such limitation, we propose \textit{Group-SAE}, a novel strategy to train SAEs. Our method considers the similarity of the residual stream representations between contiguous layers to group similar layers and train a single SAE per group. To balance the trade-off between efficiency and performance, we further introduce \textit{AMAD} (Average Maximum Angular Distance), an empirical metric that guides the selection of an optimal number of groups based on representational similarity across layers. Experiments on models from the Pythia family show that our approach significantly accelerates training with minimal impact on reconstruction quality and comparable downstream task performance and interpretability over baseline SAEs trained layer by layer. This method provides an efficient and scalable strategy for training SAEs in modern LLMs.

稀疏自编码器大模型表征训练加速分组优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。