通过特征值校正的克罗内克因子化参数化实现大规模语言模型的可扩展多阶段影响函数
Scalable Multi-Stage Influence Function for Large Language Models via Eigenvalue-Corrected Kronecker-Factored Parameterization
AI总结:
本文提出了一种基于特征值校正的克罗内克因子化参数化的多阶段影响函数,用于解释大规模语言模型在微调后的预测归因于预训练数据,展示了其在大规模模型中的可扩展性和解释能力。
摘要:
预训练的大规模语言模型(LLMs)通常被微调以适应下游任务。由于大部分知识是在预训练过程中获得的,将微调LLMs的预测归因于预训练数据可能提供有价值的见解。影响函数已被提出作为基于训练数据解释模型预测的一种手段。然而,现有方法无法计算“多阶段”影响,并且无法扩展到十亿级LLMs。在本文中,我们提出了多阶段影响函数,以在全参数微调范式下将微调LLMs的下游预测归因于预训练数据。为了提高我们多阶段影响函数的效率和实用性,我们利用特征值校正的克罗内克因子化(EK-FAC)参数化进行高效近似。实证结果验证了EK-FAC近似的优越可扩展性和我们多阶段影响函数的有效性。此外,对实际应用的LLM dolly-v2-3b的案例研究展示了其解释能力,实例展示了多阶段影响估计提供的见解。我们的代码在https://github.com/colored-dye/multi_stage_influence_function上公开。
英文摘要:
Pre-trained large language models (LLMs) are commonly fine-tuned to adapt to downstream tasks. Since the majority of knowledge is acquired during pre-training, attributing the predictions of fine-tuned LLMs to their pre-training data may provide valuable insights. Influence functions have been proposed as a means to explain model predictions based on training data. However, existing approaches fail to compute ``multi-stage'' influence and lack scalability to billion-scale LLMs. In this paper, we propose the multi-stage influence function to attribute the downstream predictions of fine-tuned LLMs to pre-training data under the full-parameter fine-tuning paradigm. To enhance the efficiency and practicality of our multi-stage influence function, we leverage Eigenvalue-corrected Kronecker-Factored (EK-FAC) parameterization for efficient approximation. Empirical results validate the superior scalability of EK-FAC approximation and the effectiveness of our multi-stage influence function. Additionally, case studies on a real-world LLM, dolly-v2-3b, demonstrate its interpretive power, with exemplars illustrating insights provided by multi-stage influence estimates. Our code is public at https://github.com/colored-dye/multi_stage_influence_function.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。