arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.14929cs.LG
收藏

Maestro:通过可训练分解揭示低秩结构

Maestro: Uncovering Low-Rank Structures via Trainable Decomposition

Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(穆罕默德·本·扎耶德人工智能大学(MBZUAI));Brave Software(Brave软件公司);DataBricks(Databricks公司);Carnegie Mellon University(卡内基梅隆大学)

Samuel Horvath, Stefanos Laskaridis, Shashank Rajput, Hongyi Wang

AI总结:

本文提出 Maestro 框架,通过可训练的低秩有序分解 LoD 将低秩结构融入 DNN 训练,支持逐层选秩,并在保持性能的同时实现无需重训的精度—延迟权衡。

摘要:

深度神经网络(DNN)近年来一直是人工智能突破的重要驱动力。然而,随着这些模型变得更加准确和安全,其规模也越来越大。这意味着它们的训练成本和耗时不断增加,并且通常会产生一个单一模型来适配所有目标。文献中已经提出了多种技术来缓解这一问题,包括对模型权重和更新进行剪枝、稀疏化或量化。尽管这些技术实现了较高的压缩率,但它们往往会在训练时产生显著的计算开销,或导致不可忽略的精度损失。另一种思路是利用分解方法对 DNN 进行低秩压缩。类似地,此类技术(例如 SVD)经常依赖于对各层进行繁重的迭代分解,并且对于 DNN 这类非线性模型可能并非最优。我们在设计高效低秩模型方面更进一步,提出了 Maestro,这是一个用于可训练低秩层的框架。该方法并非迭代地应用先验分解,而是通过 LoD(一种低秩有序分解)将低秩结构嵌入训练过程。这不仅是首次在分解后的 DNN 结构上应用基于采样的重要性排序,还允许以层为粒度选择秩。我们的理论分析表明,在特殊情况下,LoD 可以恢复 SVD 分解和 PCA。将 Maestro 应用于 DNN 时,它能够提取占用空间更低且保持性能的模型。同时,它还能在精度与延迟之间实现平滑权衡,从而无需重新训练即可部署到约束更严格的设备上。

英文摘要:

Deep Neural Networks (DNNs) have been a large driver for AI breakthroughs in recent years. However, these models have been getting increasingly large as they become more accurate and safe. This means that their training becomes increasingly costly and time-consuming and typically yields a single model to fit all targets. Various techniques have been proposed in the literature to mitigate this, including pruning, sparsification, or quantization of model weights and updates. While achieving high compression rates, they often incur significant computational overheads at training or lead to non-negligible accuracy penalty. Alternatively, factorization methods have been leveraged for low-rank compression of DNNs. Similarly, such techniques (e.g., SVD) frequently rely on heavy iterative decompositions of layers and are potentially sub-optimal for non-linear models, such as DNNs. We take a further step in designing efficient low-rank models and propose Maestro, a framework for trainable low-rank layers. Instead of iteratively applying a priori decompositions, the low-rank structure is baked into the training process through LoD, a low-rank ordered decomposition. Not only is this the first time importance ordering via sampling is applied on the decomposed DNN structure, but it also allows selecting ranks at a layer granularity. Our theoretical analysis demonstrates that in special cases LoD recovers the SVD decomposition and PCA. Applied to DNNs, Maestro enables the extraction of lower footprint models that preserve performance. Simultaneously, it enables the graceful trade-off between accuracy-latency for deployment to even more constrained devices without retraining.

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

↑