arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.05682cs.AIcs.LG
收藏

超越输出匹配:在NVFP4 LLM蒸馏中保留内部几何结构

Beyond Output Matching: Preserving Internal Geometry in NVFP4 LLM Distillation

Fangbo Tu(图方波);Junhua Zhao(赵俊华);Chi Liu(刘驰);Xin Chen(陈新);Haifeng Wu(吴海峰);Jian Wan(万健);Srinivasan Manoharan(曼纳哈兰)

Fangbo Tu, Junhua Zhao, Chi Liu, Xin Chen, Haifeng Wu, Jian Wan, Srinivasan Manoharan

AI总结:

针对NVFP4低精度量化蒸馏中仅输出匹配导致内部表示退化的问题,提出CKA-QAD方法,通过CKA引导的层间Gram矩阵对齐保留内部几何结构,提升推理和编码任务准确率。

摘要:

随着大型语言模型越来越多地部署在延迟和成本受限的生产环境中,对低精度推理(包括基于NVFP4的方法)的需求不断增长。量化感知蒸馏(QAD)通过训练量化学生模型以KL散度损失匹配冻结的高精度教师模型的输出分布,帮助恢复低比特量化下的精度损失。在这项工作中,我们首先对QAD进行表示层面的诊断:仅输出匹配可能掩盖内部退化,因为许多中间激活几何结构可以产生相似的教师对齐logits。使用CKA,我们表明仅使用KL的QAD相对于BF16教师模型会降低层间表示相似性,在RL后训练模型中尤其严重。这种退化与推理和编码任务的下游瓶颈相关,表明低比特恢复需要保留内部几何结构,而不仅仅是匹配输出。受此发现启发,我们提出了CKA-QAD,一种用于NVFP4 QAD和低比特LLM精度恢复的CKA引导表示对齐方法。该方法添加了一个轻量级正则化器,通过在蒸馏过程中通过CKA对齐层间Gram矩阵来保留内部表示几何结构。在Nemotron 3 Nano和Qwen3-4B-Thinking-2507上,CKA-QAD显著改善了表示对齐,并以适度的训练开销提高了下游推理和编码精度。我们的发现将CKA引导的表示对齐定位为量化LLM恢复中输出匹配的实用补充。

英文摘要:

Demand for low-precision inference, including NVFP4-based approaches, has grown as large language models are increasingly deployed in latency and cost constrained production environments. Quantization-aware distillation (QAD) helps recover accuracy lost under low bit quantization by training a quantized student to match the output distribution of a frozen higher precision teacher via a KL-divergence loss. In this work, we first provide a representation level diagnosis of QAD: output matching alone can mask internal degradation, because many intermediate activation geometries can yield similar teacher-aligned logits. Using CKA, we show that KL-only QAD can reduce layerwise representational similarity relative to the BF16 teacher, with especially severe drift in RL-post-trained models. This drift correlates with downstream bottlenecks on reasoning and coding tasks, suggesting that low bit recovery requires preserving internal geometry rather than matching outputs alone. Motivated by this finding, we propose \textbf{CKA-QAD}, a CKA-guided representational alignment method for NVFP4 QAD and low bit LLM accuracy recovery. The method adds a lightweight regularizer that preserves internal representational geometry during distillation by aligning layerwise Gram matrices through CKA. Across Nemotron 3 Nano and Qwen3-4B-Thinking-2507, CKA-QAD substantially improves representational alignment and improves downstream reasoning and coding accuracy with modest training overhead. Our findings position CKA-guided representational alignment as a practical complement to output matching for quantized LLM recovery.

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

↑