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

动态秩强化学习用于自适应低秩多头自注意力机制在大语言模型中

Dynamic Rank Reinforcement Learning for Adaptive Low-Rank Multi-Head Self Attention in Large Language Models

Faculty of Technology, Department of Computer Engineering, Sakarya University of Applied Sciences(技术学院,计算机工程系,萨克萨大学应用科学)

Caner Erden

AI总结:

本文提出动态秩强化学习方法,通过强化学习优化注意力机制,实现低秩多头自注意力在大语言模型中的自适应调整,显著降低计算成本并保持模型性能。

摘要:

动态秩强化学习(DR-RL)近似依赖于静态秩假设,限制了其在多样语言上下文中的灵活性。我们的方法根据实时序列动态、层特定敏感性和硬件约束动态调节秩。核心创新是一种深度强化学习代理,将秩选择作为序列策略优化问题进行建模,严格平衡注意力保真度与计算延迟。为了确保推理期间的稳定性,我们推导并应用在线矩阵扰动界,使增量秩更新而无需全分解的高昂成本。此外,轻量级Transformer基于策略网络和批量奇异值分解(SVD)操作确保了在现代架构上的可扩展部署。广泛的实验表明,DR-RL在长序列领域(L>4096)中将浮点运算(FLOPs)减少超过40%,同时保持下游准确性与全秩注意力统计上等同。除了标准语言建模基准外,我们验证了DR-RL在GLUE基准上的实际应用。具体来说,我们的方法在SST-2情感分析任务上达到92.78%的准确率,与全秩基线表现相当,并显著优于静态低秩方法,如Performer和Nyströmformer。

英文摘要:

Dynamic Rank Reinforcement Learning (DR-RL) approximations rely on static rank assumptions, limiting their flexibility across diverse linguistic contexts. Our method dynamically modulates ranks based on real-time sequence dynamics, layer-specific sensitivities, and hardware constraints. The core innovation is a deep reinforcement learning agent that formulates rank selection as a sequential policy optimization problem, strictly balancing attention fidelity against computational latency. To ensure stability during inference, we derive and employ online matrix perturbation bounds, enabling incremental rank updates without the prohibitive cost of full decomposition. Furthermore, the integration of a lightweight Transformer-based policy network and batched Singular Value Decomposition (SVD) operations ensures scalable deployment on modern architectures. Extensive experiments demonstrate that DR-RL significantly reduces Floating Point Operations (FLOPs) by over 40% in long-sequence regimes (L > 4096) while maintaining downstream accuracy statistically equivalent to full-rank attention. Beyond standard language modeling benchmarks, we validate the real-world applicability of DR-RL on the GLUE benchmark. Specifically, our method achieves 92.78% accuracy on the SST-2 sentiment analysis task, matching the performance of full-rank baselines and outperforming static low-rank methods, such as Performer and Nyströmformer, by a significant margin.

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

↑