arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.22050cs.LGcs.CL
收藏

LayerBoost:基于层的注意力减少用于高效大语言模型

LayerBoost: Layer-Aware Attention Reduction for Efficient LLMs

Openchip & Software Technologies, S.L(Openchip与软件技术公司)

Mohamed Ali Souibgui, Jan Fostier, Rodrigo Abadía-Heredia, Bohdan Denysenko, Christian Marschke, Igor Peric

AI总结:

LayerBoost通过层敏感性分析,选择性地调整Transformer层的注意力机制,减少计算复杂度,提升推理效率并保持模型质量。

摘要:

LayerBoost通过层敏感性分析,选择性地调整Transformer层的注意力机制,减少计算复杂度,提升推理效率并保持模型质量。

英文摘要:

Transformers are mostly relying on softmax attention, which introduces quadratic complexity with respect to sequence length and remains a major bottleneck for efficient inference. Prior work on linear or hybrid attention typically replaces softmax attention uniformly across all layers, often leading to significant performance degradation or requiring extensive retraining to recover model quality. This work proposes LayerBoost, a layer-aware attention reduction method that selectively modifies the attention mechanism based on the sensitivity of individual transformer layers. It first performs a systematic sensitivity analysis on a pretrained model to identify layers that are critical for maintaining performance. Guided by this analysis, three distinct strategies can be applied: retaining standard softmax attention in highly sensitive layers, replacing it with linear sliding window attention in moderately sensitive layers, and removing attention entirely in layers that exhibit low sensitivity. To recover performance after these architectural modifications, we introduce a lightweight distillation-based healing phase requiring only 10M additional training tokens. LayerBoost reduces inference latency and improves throughput by up to 68% at high concurrency, while maintaining competitive model quality. It matches base model performance on several benchmarks, exhibits only minor degradations on others, and significantly outperforms state-of-the-art attention linearization methods. These efficiency gains make our method particularly well-suited for high-concurrency serving and hardware-constrained deployment scenarios, where inference cost and memory footprint are critical bottlenecks.

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

↑