SkipCat: 通过共享投影和块跳过实现大型语言模型的秩最大化低秩压缩
SkipCat: Rank-Maximized Low-Rank Compression of Large Language Models via Shared Projection and Block Skipping
AI总结:
SkipCat通过共享投影和块跳过技术实现低秩压缩,无需额外微调即可在相同压缩率下提升零样本任务的准确率7%。
摘要:
大型语言模型(LLM)在广泛的任务上实现了显著的性能。然而,其庞大的参数规模对边缘设备上的部署构成了重大挑战,因为这些设备具有有限的计算和内存资源。低秩压缩是一种有前景的方法来解决这个问题,因为它可以减少计算和内存成本,使LLM更适合资源受限的环境。然而,朴素的低秩压缩方法需要显著减少保留的秩才能实现有意义的内存和计算节省。对于低秩模型,秩需要减少超过一半才能获得效率提升。然而,这种激进的截断通常会导致显著的性能下降。为了解决这一权衡,我们提出了SkipCat,一种新的低秩压缩框架,使在实现相同压缩率的同时能够使用更高的秩。首先,我们介绍了一种层内共享低秩投影方法,其中多个共享相同输入的矩阵使用共同的投影。这减少了冗余并提高了压缩效率。其次,我们提出了一种块跳过技术,该技术跳过了低秩分解中选定子块的计算和内存传输。这两种技术共同使我们的压缩模型能够在相同的压缩预算下保留更多的有效秩。实验结果表明,在不进行任何额外微调的情况下,我们的方法在相同的压缩率下,零样本任务上的准确率提升了7%。这些结果突显了我们的秩最大化压缩策略在资源受限情况下保持模型性能的有效性。
英文摘要:
Large language models (LLM) have achieved remarkable performance across a wide range of tasks. However, their substantial parameter sizes pose significant challenges for deployment on edge devices with limited computational and memory resources. Low-rank compression is a promising approach to address this issue, as it reduces both computational and memory costs, making LLM more suitable for resource-constrained environments. Nonetheless, naïve low-rank compression methods require a significant reduction in the retained rank to achieve meaningful memory and computation savings. For a low-rank model, the ranks need to be reduced by more than half to yield efficiency gains. Such aggressive truncation, however, typically results in substantial performance degradation. To address this trade-off, we propose SkipCat, a novel low-rank compression framework that enables the use of higher ranks while achieving the same compression rates. First, we introduce an intra-layer shared low-rank projection method, where multiple matrices that share the same input use a common projection. This reduces redundancy and improves compression efficiency. Second, we propose a block skipping technique that omits computations and memory transfers for selected sub-blocks within the low-rank decomposition. These two techniques jointly enable our compressed model to retain more effective ranks under the same compression budget. Experimental results show that, without any additional fine-tuning, our method outperforms previous low-rank compression approaches by 7% accuracy improvement on zero-shot tasks under the same compression rate. These results highlight the effectiveness of our rank-maximized compression strategy in preserving model performance under tight resource constraints.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。