arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.22980cs.LGcs.CL
收藏

可学习的排列用于Transformer模型的结构稀疏性

Learnable Permutation for Structured Sparsity on Transformer Models

Zekai Li, Ji Liu, Guanchen Li, Yixing Xu, Ziqiong Liu, Xuanwu Yin, Dong Li, Emad Barsoum

AI总结:

本文提出了一种可学习的排列框架,用于提升Transformer模型的结构稀疏性剪枝效果,通过引入可学习成本矩阵和优化损失函数,实现了端到端的排列优化。

摘要:

结构稀疏性已成为一种流行的模型剪枝技术,广泛应用于各种架构中,包括CNNs、Transformer模型,尤其是近年来的大型语言模型(LLMs)。一个有前途的方向是进一步提高后剪枝性能的是权重排列,它将模型权重重新排列成更易于剪枝的模式。然而,随着Transformer架构规模的扩大,排列搜索空间呈指数增长,迫使大多数方法依赖于贪心或启发式算法,限制了重新排列的有效性。\n在本工作中,我们提出了一种新颖的端到端可学习排列框架。我们的方法引入了一个可学习的排列成本矩阵,以量化给定权重矩阵中任意两个输入通道交换的成本,一个可微的二分图匹配求解器以在给定成本矩阵的情况下获得最优二进制排列矩阵,以及一个稀疏优化损失函数以直接优化排列操作。我们广泛验证了我们的方法在视觉和语言Transformer上的性能,证明我们的方法在结构稀疏性方面实现了最先进的排列结果。

英文摘要:

Structured sparsity has emerged as a popular model pruning technique, widely adopted in various architectures, including CNNs, Transformer models, and especially large language models (LLMs) in recent years. A promising direction to further improve post-pruning performance is weight permutation, which reorders model weights into patterns more amenable to pruning. However, the exponential growth of the permutation search space with the scale of Transformer architectures forces most methods to rely on greedy or heuristic algorithms, limiting the effectiveness of reordering. In this work, we propose a novel end-to-end learnable permutation framework. Our method introduces a learnable permutation cost matrix to quantify the cost of swapping any two input channels of a given weight matrix, a differentiable bipartite matching solver to obtain the optimal binary permutation matrix given a cost matrix, and a sparsity optimization loss function to directly optimize the permutation operator. We extensively validate our approach on vision and language Transformers, demonstrating that our method achieves state-of-the-art permutation results for structured sparsity.

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

↑