arXiv:2507.03294cs.LGcs.AI2025-07

针对大模型压缩中参数分配不均的问题,提出自适应分配方法提升压缩效率。

MGAA: Multi-Granular Adaptive Allocation fof Low-Rank Compression of LLMs

  • 按子层输入输出相似性动态分配压缩比例,识别重要层
  • 按权重矩阵能量分布差异细化内部压缩,保持性能稳定
  • 无需任务微调即可适配不同模型,适合部署优化场景

大语言模型(LLMs)的庞大参数量使其在部署与推理时面临巨大的计算资源压力。低秩近似是当前模型压缩的重要方向,但现有方法普遍对所有权重矩阵采用统一压缩率,忽视了各层对模型性能的不同影响。尽管少数研究尝试通过启发式搜索寻找最优分配,但其计算成本高且缺乏通用性。本文提出多粒度自适应分配(MGAA)方法,在压缩过程中无需任务特定评估即可自适应地分配层间与层内参数。该方法包含两部分:1)基于子层输入输出间的余弦相似度分配压缩率,实现重要程度不同的子层差异化压缩;2)在每层内根据权重矩阵的能量分布特征分配不同压缩率,确保能量保留一致的同时提升压缩效率。在多个主流LLM骨干模型和基准数据集上的全面评估表明,MGAA表现更优。进一步应用于多模态模型LLaVA,亦展现出显著性能提升。

原文摘要 · Abstract (English)

The enormous parameter scale of large language models (LLMs) has made model compression a research hotspot, which aims to alleviate computational resource demands during deployment and inference. As a promising direction, low-rank approximation technique has made remarkable achievements. Nevertheless, unfortunately, the vast majority of studies to low-rank approximation compression generally apply uniform compression ratios across all weight matrices, while disregarding their inherently differentiated impacts on the model's performance. Although a few recent work attempts to employ heuristic search strategies to achieve the optimal parameter allocation, such strategies are computationally inefficient and lose the generalization ability in the era of LLMs. In this study, we propose a novel parameter Multi-Granular Adaptive Allocation (MGAA) method, which can adaptively allocate parameters between and within sublayers without task-specific evaluations in the compression process. MGAA consists of two components: 1) Among different sublayers, it assigns compression ratios based on their cosine similarity between inputs and outputs, allowing for a more tailored compression in sublayers with varying degrees of importance, and 2) Within each sublayer, it allocates different compression ratios to weight matrices based on their energy distribution characteristics, ensuring a consistent energy retention ratio while optimizing compression efficiency. Comprehensive evaluations of MGAA across multiple LLMs backbone models and benchmark datasets demonstrate its superior performance. Additionally, we apply our MGAA to multimodal model LLaVA, exhibiting remarkable performance improvements.

模型压缩低秩近似自适应分配

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。