Delta Activations: A Representation for Finetuned Large Language Models
本文提出了一种名为Delta Activations的方法,通过测量模型内部激活相对于基模型的差异,将微调模型表示为向量嵌入,以促进对微调语言模型的理解和组织。
更新于 2025-09-05。作者:Zhiqiu Xu、Amish Sethi、Mayur Naik、Ser-Nam Lim。
中文摘要
强大的开源大型语言模型(LLMs)的成功使得社区能够创建大量针对特定任务和领域的后训练模型。然而,由于元数据不一致和存储库无结构,导航和理解这些模型仍然具有挑战性。我们引入Delta Activations,这是一种将微调模型表示为向量嵌入的方法,通过测量它们相对于基模型内部激活的变化来实现。这种表示允许根据领域和任务进行有效聚类,揭示模型景观中的结构。Delta Activations还表现出令人满意的特性:它在微调设置中具有鲁棒性,并且在微调数据集混合时表现出加性属性。此外,我们展示了Delta Activations可以通过少量样本微调来嵌入任务,并进一步探讨了其在模型选择和合并中的应用。我们希望Delta Activations能够促进重用公开可用模型的做法。代码可在https://github.com/OscarXZQ/delta_activations获取。
英文摘要
The success of powerful open source Large Language Models (LLMs) has enabled the community to create a vast collection of post-trained models adapted to specific tasks and domains. However, navigating and understanding these models remains challenging due to inconsistent metadata and unstructured repositories. We introduce Delta Activations, a method to represent finetuned models as vector embeddings by measuring shifts in their internal activations relative to a base model. This representation allows for effective clustering by domain and task, revealing structure in the model landscape. Delta Activations also demonstrate desirable properties: it is robust across finetuning settings and exhibits an additive property when finetuning datasets are mixed. In addition, we show that Delta Activations can embed tasks via few-shot finetuning, and further explore its use for model selection and merging. We hope Delta Activations can facilitate the practice of reusing publicly available models. Code is available at https://github.com/OscarXZQ/delta_activations.
解读
一句话总结
本文提出了一种名为Delta Activations的方法,通过测量模型内部激活相对于基模型的差异,将微调模型表示为向量嵌入,以促进对微调语言模型的理解和组织。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:随着开源大型语言模型(LLM)的成功,社区创建了大量的针对特定任务和领域的微调模型。然而,由于元数据不一致和无结构的存储库,导航和理解这些模型仍然具有挑战性。
- 现有方案不足:现有的模型表示方法依赖于访问原始训练数据、模型权重降维或评估配置文件,这些方法在现实世界的设置中存在局限性。
- 研究目标:开发一种方法来表示微调模型,使其能够有效地发现、比较和聚类模型,同时减少对元数据的依赖。
问题2:论文的核心创新点是什么?
- 技术创新:Delta Activations通过测量模型内部激活相对于基模型的差异来表示微调模型。
- 方法改进:该方法不需要访问模型权重或训练数据,也不依赖于特定任务或领域的元数据。
- 优势:Delta Activations在微调设置中表现出鲁棒性,并且在混合微调数据集时具有可加性。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:通过在来自不同领域的数据集上微调基LLM来构建模型池,并使用Delta Activations对模型进行聚类。
- 性能提升:Delta Activations成功地将微调LLM根据其对应的领域进行聚类,即使在微调数据集之间没有重叠。
- 对比结果:Delta Activations在聚类质量上优于基于权重的基线方法,并能够形成清晰的领域聚类。
问题4:这个研究的实际应用价值是什么?
- 应用场景:Delta Activations可以用于模型选择、模型合并和任务嵌入。
- 实施建议:Delta Activations可以应用于公共模型库,以促进模型的重用和共享。
- 局限与展望:Delta Activations需要访问模型的内部隐藏状态,这可能限制了其在专有模型上的应用。未来工作将集中在扩展到其他架构和探索更复杂的模型合并策略。