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

通过计数草图压缩梯度优化器

Compressing Gradient Optimizers via Count-Sketches

Rice University(莱斯大学);Amazon Search(亚马逊搜索)

Ryan Spring, Anastasios Kyrillidis, Vijai Mohan, Anshumali Shrivastava

摘要:

许多流行的一阶优化方法(例如,Momentum,AdaGrad,Adam)加速了深度学习模型的收敛速度。然而,这些算法需要辅助参数,这需要与模型中的参数数量成比例的额外存储器。随着深度学习模型不断变大,以便从复杂的大规模数据集中学习,这个问题变得越来越严重。我们提出的解决方案是保持线性草图来压缩辅助变量。我们证明了我们的技术具有与全尺寸基线相同的性能,同时使用更少的辅助变量空间。理论上,我们证明了计数草图优化保持SGD收敛速度,同时优雅地减少大型模型的内存使用。在大规模的10亿字数据集上,我们通过压缩嵌入和Softmax层中的Adam优化器节省了训练期间使用的25%的内存(8.6 GB而不是11.7 GB),精度和性能损失可以忽略不计。对于超过4950万个类的Amazon极端分类任务,我们还通过使用我们的计数草图优化器将小批量大小增加3.5倍,将训练时间减少了38%。

英文摘要:

Many popular first-order optimization methods (e.g., Momentum, AdaGrad, Adam) accelerate the convergence rate of deep learning models. However, these algorithms require auxiliary parameters, which cost additional memory proportional to the number of parameters in the model. The problem is becoming more severe as deep learning models continue to grow larger in order to learn from complex, large-scale datasets. Our proposed solution is to maintain a linear sketch to compress the auxiliary variables. We demonstrate that our technique has the same performance as the full-sized baseline, while using significantly less space for the auxiliary variables. Theoretically, we prove that count-sketch optimization maintains the SGD convergence rate, while gracefully reducing memory usage for large-models. On the large-scale 1-Billion Word dataset, we save 25% of the memory used during training (8.6 GB instead of 11.7 GB) by compressing the Adam optimizer in the Embedding and Softmax layers with negligible accuracy and performance loss. For an Amazon extreme classification task with over 49.5 million classes, we also reduce the training time by 38%, by increasing the mini-batch size 3.5x using our count-sketch optimizer.

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

↑