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

通过基准测试轻量级后训练稀疏化方法来推动下一代加速器的灵活(N:M)激活稀疏化

Motivating Next-Gen Accelerators with Flexible (N:M) Activation Sparsity via Benchmarking Lightweight Post-Training Sparsification Approaches

Applied AI(应用人工智能);Artificial Intelligence Research Institute(人工智能研究所);HSE University(俄罗斯高等经济大学);Sb AI Lab(Sb人工智能实验室);MWS AI(MWS人工智能);Yandex;Independent Researcher(独立研究者)

Shirin Alanova, Kristina Kazistova, Ekaterina Galaeva, Alina Kostromina, Vladimir Smirnov, Redko Dmitry, Alexey Dontsov, Maxim Zhelnin, Evgeny Burnaev, Egor Shvetsov

AI总结:

本文通过基准测试轻量级后训练稀疏化方法,探讨了灵活(N:M)激活稀疏化在大语言模型中的应用,展示了激活稀疏化在保持生成能力方面的优势,并提出了适用于未来硬件的稀疏化模式。

摘要:

对高效大语言模型(LLM)推理需求的增强,促使了稀疏化技术的广泛关注。尽管半结构化(N:M)剪枝在权重剪枝中已建立,但其在激活剪枝中的应用仍较少探索,尽管其在动态、输入自适应压缩和减少I/O开销方面具有潜力。本文全面分析了LLM中的后训练N:M激活剪枝方法。在多个LLM上,我们证明在等效稀疏度下,激活剪枝比权重剪枝能更有效地保持生成能力。我们评估了轻量级、即插即用的误差缓解技术和剪枝标准,建立了需要最少校准的硬件友好基线。此外,我们探索了超越NVIDIA标准2:4的稀疏模式,显示16:32模式在性能上几乎与无结构稀疏性相当。然而,考虑到灵活性和硬件实现复杂性之间的权衡,我们专注于8:16模式作为更优候选。我们的发现提供了有效的激活剪枝实用方法,并为未来硬件支持更灵活的稀疏模式提供了动机。我们的代码可在https://anonymous.4open.science/r/Structured-Sparse-Activations-Inference-EC3C/README.md获取。

英文摘要:

The demand for efficient large language model (LLM) inference has intensified the focus on sparsification techniques. While semi-structured (N:M) pruning is well-established for weights, its application to activation pruning remains underexplored despite its potential for dynamic, input-adaptive compression and reductions in I/O overhead. This work presents a comprehensive analysis of methods for post-training N:M activation pruning in LLMs. Across multiple LLMs, we demonstrate that pruning activations enables superior preservation of generative capabilities compared to weight pruning at equivalent sparsity levels. We evaluate lightweight, plug-and-play error mitigation techniques and pruning criteria, establishing strong hardware-friendly baselines that require minimal calibration. Furthermore, we explore sparsity patterns beyond NVIDIA's standard 2:4, showing that the 16:32 pattern achieves performance nearly on par with unstructured sparsity. However, considering the trade-off between flexibility and hardware implementation complexity, we focus on the 8:16 pattern as a superior candidate. Our findings provide both effective practical methods for activation pruning and a motivation for future hardware to support more flexible sparsity patterns. Our code is available https://anonymous.4open.science/r/Structured-Sparse-Activations-Inference-EC3C/README.md .

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

↑