arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.00441cs.LGcs.AI

Few-Bit Backward: Quantized Gradients of Activation Functions for Memory Footprint Reduction

Skoltech(斯科尔科沃科学技术研究院);Sber AI(俄罗斯联邦储蓄银行人工智能研究院);Lomonosov MSU(罗蒙诺索夫莫斯科国立大学);AIRI(人工智能研究院)

Georgii Novikov, Daniel Bershatsky, Julia Gusak, Alex Shonenkov, Denis Dimitrov, Ivan Oseledets

英文摘要:

Memory footprint is one of the main limiting factors for large neural network training. In backpropagation, one needs to store the input to each operation in the computational graph. Every modern neural network model has quite a few pointwise nonlinearities in its architecture, and such operation induces additional memory costs which -- as we show -- can be significantly reduced by quantization of the gradients. We propose a systematic approach to compute optimal quantization of the retained gradients of the pointwise nonlinear functions with only a few bits per each element. We show that such approximation can be achieved by computing optimal piecewise-constant approximation of the derivative of the activation function, which can be done by dynamic programming. The drop-in replacements are implemented for all popular nonlinearities and can be used in any existing pipeline. We confirm the memory reduction and the same convergence on several open benchmarks.

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

↑