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

COALA:一种数值稳定且高效的上下文感知低秩近似框架

COALA: Numerically Stable and Efficient Framework for Context-Aware Low-Rank Approximation

HSE University(俄罗斯高等经济学院)

Uliana Parkina, Maxim Rakhuba

AI总结:

本文提出COALA框架,通过稳定分解解决神经网络中低秩近似中的数值不稳定性问题,适用于内存不足、输入激活矩阵近似奇异及数据不足等挑战性场景。

摘要:

近期研究表明,上下文感知低秩近似是压缩和微调现代大规模神经网络的有效工具。在该近似中,一个范数通过输入激活矩阵加权,显著提高了指标性能。然而,现有方法由于依赖于涉及显式Gram矩阵计算和随后求逆的经典公式,导致数值不稳定性。我们证明这会降低近似质量或导致数值奇异矩阵。为解决这些限制,我们提出了一种新的无求逆正则化框架,完全基于稳定的分解,克服了先前方法的数值问题。我们的方法可以处理可能的挑战性场景:(1)当校准矩阵超过GPU内存容量时,(2)当输入激活矩阵近似奇异时,甚至(3)当数据不足时无法获得唯一近似。对于后者,我们证明我们的解决方案收敛到所需的近似,并推导出显式的误差界。

英文摘要:

Recent studies suggest that context-aware low-rank approximation is a useful tool for compression and fine-tuning of modern large-scale neural networks. In this type of approximation, a norm is weighted by a matrix of input activations, significantly improving metrics over the unweighted case. Nevertheless, existing methods for neural networks suffer from numerical instabilities due to their reliance on classical formulas involving explicit Gram matrix computation and their subsequent inversion. We demonstrate that this can degrade the approximation quality or cause numerically singular matrices. To address these limitations, we propose a novel inversion-free regularized framework that is based entirely on stable decompositions and overcomes the numerical pitfalls of prior art. Our method can handle possible challenging scenarios: (1) when calibration matrices exceed GPU memory capacity, (2) when input activation matrices are nearly singular, and even (3) when insufficient data prevents unique approximation. For the latter, we prove that our solution converges to a desired approximation and derive explicit error bounds.

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

↑