蒸馏后什么得以留存?GPT-2与DistilGPT-2的机械可解释性研究
What Survives Distillation? A Mechanistic Interpretability Study of GPT-2 and DistilGPT-2
AI总结:
本研究通过多种分析技术对比GPT-2与DistilGPT-2,发现蒸馏存在压缩-崩溃二分现象,电路可压缩性决定机械留存,聚合指标无法诊断电路完整性。
摘要:
知识蒸馏将大语言模型压缩为保留聚合指标的紧凑学生模型,但深度缩减蒸馏的机械后果仍未明确表征。本研究应用线性CKA、logit lens分析、注意力模式分解、稀疏自编码器特征统计及激活修补技术,在间接宾语识别(IOI)电路和大于(GT)电路这两个经典电路中,对比GPT-2及其6层学生模型DistilGPT-2。结果揭示了压缩-崩溃二分现象:IOI电路出现完全机械崩溃(DistilGPT-2准确率为35.2%,而GPT-2为94.8%,未保留任何名称移动机制);GT电路则通过将教师模型第9层的比较头主动重映射到学生模型第4层(平均皮尔逊相关系数r=0.945),实现了87.7%的任务性能恢复。这些发现表明,电路可压缩性决定了蒸馏下的机械留存情况,且聚合指标不足以作为电路完整性的诊断依据。
英文摘要:
Knowledge distillation compresses large language models into compact students that preserve aggregate metrics, yet the mechanistic consequences of depth-reduction distillation remain largely uncharacterized. This work applies linear CKA, logit lens analysis, attention pattern decomposition, sparse autoencoder feature statistics, and activation patching to compare GPT-2 and its six-layer student DistilGPT-2 across two canonical circuits: the Indirect Object Identification (IOI) circuit and the Greater-Than (GT) circuit. The results reveal a compression-collapse dichotomy: the IOI circuit suffers complete mechanistic collapse (DistilGPT-2: 35.2% accuracy vs. 94.8%, zero name-mover preservation), while the GT circuit survives with 87.7% task performance recovery through active remapping of the teacher's layer-9 comparison head into student layer~4 (mean Pearson r = 0.945). These findings demonstrate that circuit compressibility governs mechanistic survival under distillation, and that aggregate metrics are insufficient diagnostics for circuit integrity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。