冻结深层,训练浅层:面向持续预训练的可解释层分配
Freeze Deep, Train Shallow: Interpretable Layer Allocation for Continued Pre-Training
AI总结:
提出LayerTracer框架,通过定位任务执行位置和量化层敏感性揭示层表示演化模式,发现深层是任务关键区域且对干扰更新稳定,训练浅层冻结深层在C-Eval和CMMLU上优于全参数微调。
摘要:
选择性逐层更新对于大型语言模型(LLMs)的低成本持续预训练至关重要,但由于缺乏可解释的指导,确定哪些层应冻结或训练仍然是一个经验性的黑盒问题。为了解决这个问题,我们提出了LayerTracer,一个与架构无关的诊断框架,通过定位任务执行位置和量化层敏感性来揭示逐层表示和稳定性的演化模式。分析结果表明,深层作为任务执行的关键区域,并且对干扰更新保持高稳定性。基于这一发现,我们进行了三项受控的持续预训练试验,比较了不同的冻结-训练策略,证明在C-Eval和CMMLU基准测试中,训练浅层同时冻结深层始终优于全参数微调和相反的分配。我们进一步展示了一个混合模型案例研究,验证了将高质量预训练模块放置在深层可以有效保留模型的内在知识。这项工作为资源受限的团队提供了一种低成本且可解释的解决方案,为持续预训练和混合模型构建中的逐层参数分配提供了可操作的指导。
英文摘要:
Selective layer-wise updates are essential for low-cost continued pre-training of Large Language Models (LLMs), yet determining which layers to freeze or train remains an empirical black-box problem due to the lack of interpretable guidance. To address this issue, we propose LayerTracer, an architecture-agnostic diagnostic framework that reveals the evolution patterns of layer-wise representations and stability by locating task execution positions and quantifying layer sensitivity. Analysis results reveal that deep layers act as critical regions for task execution and maintain high stability against disruptive updates. Guided by this finding, we conduct three controlled continued pre-training trials to compare diverse freeze-train strategies, demonstrating that training shallow layers while freezing deep layers consistently outperforms full-parameter fine-tuning and the opposite allocation on both C-Eval and CMMLU benchmarks. We further present a hybrid model case study, which validates that placing high-quality pre-trained modules in deep layers effectively preserves inherent knowledge of the model. This work delivers a low-cost and interpretable solution for resource-constrained teams, offering actionable guidance for layer-wise parameter allocation in continued pre-training and hybrid model construction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。