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

通过校准数据精选保留LLM能力:从分析到优化

Preserving LLM Capabilities through Calibration Data Curation: From Analysis to Optimization

Department of Computer Science, City University of Hong Kong(香港城市大学计算机科学系);Huawei(华为)

Bowei He, Lihao Yin, Huiling Zhen, Shuqi Liu, Han Wu, Xiaokun Zhang, Mingxuan Yuan, Chen Ma

AI总结:

本文分析了校准数据对压缩后LLM能力的影响,发现激活空间的代表性和多样性决定数据质量,并据此提出校准数据精选框架以增强模型能力保留。

摘要:

训练后压缩一直被广泛用于缩减大型语言模型(LLM)的规模并促进高效推理。在包括剪枝和量化在内的各种已提出的压缩方法中,校准数据通过提供权重重要性和激活动态范围的信息发挥着至关重要的作用。然而,关于校准数据如何影响压缩后的LLM能力,目前探索较少。现有的少数研究虽然认识到这项研究的重要性,但仅从数据来源或样本数量等有限角度调查了语言建模或常识推理性能的退化。在校准数据的组合特性和领域对应性对不同LLM能力的影响方面,仍需更系统的研究。在这项工作中,我们旨在弥补这一空白,并进一步从激活模式的角度分析潜在的影响机制。特别是,我们探索了校准数据对高级复杂推理能力的影响,如数学问题求解和代码生成。在深入探究潜在机制时,我们发现激活空间中的代表性和多样性更从根本上决定了校准数据的质量。最后,基于这些观察与分析,我们提出了一个校准数据精选框架,增强了现有训练后压缩方法在保留关键LLM能力方面的性能。我们的代码在\href{https://github.com/BokwaiHo/COLA.git}{链接}中提供。

英文摘要:

Post-training compression has been a widely employed approach to scale down large language model (LLM) and facilitate efficient inference. In various proposed compression methods, including pruning and quantization, calibration data plays a vital role by informing the weight importance and activation dynamic ranges. However, how calibration data impacts the LLM capability after compression is less explored. Few of the existing works, though recognizing the significance of this study, only investigate the language modeling or commonsense reasoning performance degradation from limited angles, like the data sources or sample amounts. More systematic research is still needed to examine the impacts on different LLM capabilities in terms of compositional properties and domain correspondence of calibration data. In this work, we aim at bridging this gap and further analyze underlying influencing mechanisms from the activation pattern perspective. Especially, we explore the calibration data's impacts on high-level complex reasoning capabilities, like math problem solving and code generation. Delving into the underlying mechanism, we find that the representativeness and diversity in activation space more fundamentally determine the quality of calibration data. Finally, we propose a calibration data curation framework based on such observations and analysis, enhancing the performance of existing post-training compression methods on preserving critical LLM capabilities. Our code is provided in \href{https://github.com/BokwaiHo/COLA.git}{Link}.

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

↑