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

超越相邻层:用于压缩大语言模型的图引导层融合方法

Beyond Adjacent Layers: Graph-Guided Layer Fusion for Compressing Large Language Models

Braindeck Inc(Braindeck公司)

Muhammad Usama, Yeoreum Jung

AI总结:

该研究针对大语言模型深度压缩中仅利用相邻层冗余的局限,提出图引导的社区挖掘融合法FCM,通过谱社区检测合并功能等价层,在2倍压缩下多数模型的困惑度优于现有方法,还提升了多项下游任务性能。

摘要:

现有大语言模型(LLM)的深度压缩方法会单独对各层打分,或仅对相邻、连续层进行分组,隐含假设功能冗余是局部的。我们通过计算6个架构家族的13个LLM(参数规模16亿至140亿)的完整成对中心化核对齐(CKA)相似度矩阵来验证该假设。非相邻层的高相似度对数量是相邻层的3.6至15.9倍,这一结构此前基于相似度的层合并方法未被系统利用。我们提出社区挖掘融合法(FCM),该方法构建完整的L×L相似度图,使用谱社区检测找到功能等价层的簇,保留每个簇中块影响力最高的层,并应用LoRA恢复;仅在校准数据上计算的预定义规则会在余弦相似度与CKA相似度间做选择。在2倍压缩下,FCM在13个模型中的12个上将平均困惑度降至ShortGPT以下,其中10个模型的提升具有统计学意义(经Holm-Bonferroni校正的Welch t检验;Qwen3-4B的提升达50%),仅Mistral-7B出现困惑度上升(+13.4%)。在校准与恢复设置匹配的情况下,与FlattenGPT、SWM和DeltaLLM相比,FCM在13个模型中的10个上取得最优困惑度(平均排名1.15),且在3个基准模型上优于MKA。FCM在20个零样本推理单元中的15个上与ShortGPT相当或更优,还提升了MMLU、LAMBADA、HumanEval pass@1及自由形式生成质量。2倍压缩后的Qwen2.5-7B参数减少46%,峰值显存降低42%,在单张A100上的解码吞吐量提升84%。谱分组比Fisher连续分割法性能高41%,比均匀划分法高51%,FCM的优势在2倍压缩临界点后随压缩比提升至3倍而增大,并在140亿参数规模上仍保持。代码:this https URL

英文摘要:

Existing depth-compression methods for large language models (LLMs) score layers individually or group only adjacent or contiguous layers, implicitly assuming that functional redundancy is local. We test this assumption by computing full pairwise Centered Kernel Alignment (CKA) similarity matrices for thirteen LLMs from six architecture families (1.6B-14B parameters). Non-adjacent layers have 3.6-15.9x more high-similarity pairs than adjacent ones, a structure that prior similarity-based layer merging has not systematically exploited. We propose Fusion via Community Mining (FCM), which builds the full L x L similarity graph, uses spectral community detection to find clusters of functionally equivalent layers, keeps the highest-Block-Influence layer in each cluster, and applies LoRA recovery; a pre-specified rule computed only on calibration data chooses between cosine and CKA similarity. At 2x compression, FCM lowers mean perplexity below ShortGPT on twelve of thirteen models, significantly on ten (Welch's t-test with Holm-Bonferroni correction; up to 50% on Qwen3-4B), with Mistral-7B the only loss (+13.4%). Against FlattenGPT, SWM, and DeltaLLM under matched calibration and recovery, FCM gives the best perplexity on ten of thirteen models (mean rank 1.15), and it also outperforms MKA on three anchor models. FCM matches or exceeds ShortGPT on 15 of 20 zero-shot reasoning cells and also improves MMLU, LAMBADA, HumanEval pass@1, and free-form generation quality. The 2x-compressed Qwen2.5-7B has 46% fewer parameters, 42% lower peak VRAM, and 84% higher decode throughput on a single A100. Spectral grouping outperforms Fisher contiguous segmentation by 41% and uniform partitioning by 51%, and FCM's advantage grows beyond a 2x crossover up to 3x and persists at the 14B scale. Code: https://github.com/Usama1002/fcm-layer-fusion

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

↑