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

受限边缘AI部署:针对LLM压缩的微调与蒸馏对比

Constrained Edge AI Deployment: Fine-Tuning vs Distillation for LLM Compression

Department of Computer Science, University of West Florida(计算机科学系,西佛罗里达大学);Department of Mathematics and Statistics, University of West Florida(数学与统计学系,西佛罗里达大学);Department of Intelligent Systems and Robotics, University of West Florida(智能系统与机器人系,西佛罗里达大学);Institute of Human and Machine Cognition(人机认知研究所);DEVCOM Army Research Laboratory(陆军研究实验室)

Jacob Sander, David Moe, Achraf Cohen, Brent Venable, Venkat Dasari, Brian Jalaian

AI总结:

本研究比较了微调与自蒸馏在仅MLP剪枝的LLM压缩中的效果,发现KL散度蒸馏在相同剪枝计划下达到或超过交叉熵微调,表明损失函数选择对边缘部署中压缩模型恢复有重要影响。

摘要:

现代基础模型通常通过结构化剪枝与再训练相结合的方式进行压缩,以满足边缘部署在计算、内存和连接性方面的严格约束。尽管最先进的剪枝方案针对整个Transformer,我们采用一种简单的、仅针对MLP块的逐层L2范数剪枝作为固定基线。我们的重点不在于实现最大压缩,而在于隔离再训练损失函数的影响:(i)使用交叉熵的微调(L2PFT),需要标注数据;(ii)使用KL散度的自蒸馏(L2PSD),仅利用教师logits(无需标签)。我们在OLMo2-7B-SFT模型上评估了这两种流程,针对CommonsenseQA,适用于边缘网络中典型的间歇性或拒绝连接场景。在相同的剪枝计划下,基于KL的蒸馏在测试准确率上达到或超过交叉熵微调,表明即使仅使用基本的MLP剪枝,损失函数的选择也会显著影响资源受限环境下压缩模型的恢复效果。

英文摘要:

Modern foundational models are often compressed via a combination of structured pruning and re-training to meet the strict compute, memory, and connectivity constraints of edge deployments. While state-of-the-art pruning schemes target the entire Transformer, we adopt a simple, layer-wise L2-norm pruning on only the MLP blocks as a fixed baseline. Our focus is not on achieving maximal compression, but on isolating the impact of the re-training loss function: (i) Fine-tuning with Cross- Entropy (L2PFT), which requires labeled data, versus (ii) Self-Distillation with KL-divergence, which leverages only teacher logits (no labels) (L2PSD). We evaluate both pipelines on the OLMo2- 7B-SFT model for CommonsenseQA suitable for intermittent or denied connectivity scenarios typical of edge networks. Under identical pruning schedules, KL-based distillation matches or exceeds CE fine-tuning in test accuracy, demonstrating that, even with a basic MLP-only pruning, the choice of loss function materially affects compressed model recovery in resource-constrained environments.

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

↑