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

CRaSh:聚类、移除与共享增强无需完整大型语言模型的微调

CRaSh: Clustering, Removing, and Sharing Enhance Fine-tuning without Full Large Language Model

Tsinghua University(清华大学);Harbin Institute of Technology(哈尔滨工业大学)

Kaiyan Zhang, Ning Ding, Biqing Qi, Xuekai Zhu, Xinwei Long, Bowen Zhou

AI总结:

本文研究集中式LLMs的隐私微调问题,通过实证分析Offsite-Tuning机制,提出无需训练的CRaSh策略(聚类、移除、共享)以推导下游模拟器,显著提升了十亿参数级模型的微调性能,并从损失景观证实了其有效性。

摘要:

指令微调最近被认为是一种有效的方式,用于对齐大型语言模型(LLMs)以增强其在各种任务中的泛化能力。然而,当使用私有指令数据微调公开可访问的集中式LLMs时,隐私问题是不可避免的。虽然模型间直接传递参数化模块是解决此问题的一种可行方法,但其影响和有效性需要进一步探索。本文关注Offsite-Tuning(OFT,离场微调),这是一种在集中式LLMs和下游模拟器之间传递transformer块的代表性技术。鉴于对OFT底层机制的理解有限,我们从表示和功能相似性的角度对LLMs进行了实证分析。有趣的是,我们的发现揭示了LLMs各层内存在一种独特的模块化结构,这种结构似乎随着模型规模的扩大而出现。同时,我们注意到各层在表示和中间预测中存在微妙但可能意义重大的变化。受这些观察的启发,我们提出了CRaSh,包含聚类、移除和共享,这是一种无需训练的策略,用于从LLMs中推导出改进的模拟器。CRaSh显著提升了具有数十亿参数的OFT的性能。此外,我们通过损失景观的视角,研究了使用和不使用完整模型进行微调所产生的最优解。我们的发现表明,这些最优解之间存在线性连通性,它们落入同一个盆地,从而突显了CRaSh和OFT的有效性。源代码公开发布于https://github.com/TsinghuaC3I/CRaSh。

英文摘要:

Instruction tuning has recently been recognized as an effective way of aligning Large Language Models (LLMs) to enhance their generalization ability across various tasks. However, when tuning publicly accessible, centralized LLMs with private instruction data, privacy concerns are inevitable. While direct transfer of parameterized modules between models is a plausible approach to address this, its implications and effectiveness need further exploration. This paper focuses on Offsite-Tuning (OFT), a representative technique that transfers transformer blocks between centralized LLMs and downstream emulators. Given the limited understanding of the underlying mechanism of OFT, we perform an empirical analysis on LLMs from the perspectives of representation and functional similarity. Interestingly, our findings reveal a unique modular structure within the layers of LLMs that appears to emerge as the model size expands. Simultaneously, we note subtle but potentially significant changes in representation and intermediate predictions across the layers. Inspired by these observations, we propose CRaSh, involving Clustering, Removing, and Sharing, a training-free strategy to derive improved emulators from LLMs. CRaSh significantly boosts performance of OFT with billions of parameters. Furthermore, we investigate the optimal solutions yielded by fine-tuning with and without full model through the lens of loss landscape. Our findings demonstrate a linear connectivity among these optima falling over the same basin, thereby highlighting the effectiveness of CRaSh and OFT. The source code is publicly available at https://github.com/TsinghuaC3I/CRaSh.

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

↑