Normalization Helps Training of Quantized LSTM
Lu Hou, Jinhua Zhu, James Kwok, Fei Gao, Tao Qin, Tie-Yan Liu
Abstract
The long-short-term memory (LSTM), though powerful, is memory and computa\x02tion expensive. To alleviate this problem, one approach is to compress its weights by quantization. However, existing quantization methods usually have inferior performance when used on LSTMs. In this paper, we first show theoretically that training a quantized LSTM is difficult because quantization makes the exploding gradient problem more severe, particularly when the LSTM weight matrices are large. We then show that the popularly used weight/layer/batch normalization schemes can help stabilize the gradient magnitude in training quantized LSTMs. Empirical results show that the normalized quantized LSTMs achieve significantly better results than their unnormalized counterparts. Their performance is also comparable with the full-precision LSTM, while being much smaller in size.
BibTeX
@inproceedings{NEURIPS2019_f8eb278a,
author = {Hou, Lu and Zhu, Jinhua and Kwok, James and Gao, Fei and Qin, Tao and Liu, Tie-Yan},
booktitle = {Advances in Neural Information Processing Systems},
editor = {H. Wallach and H. Larochelle and A. Beygelzimer and F. d\textquotesingle Alch\'{e}-Buc and E. Fox and R. Garnett},
pages = {},
publisher = {Curran Associates, Inc.},
title = {Normalization Helps Training of Quantized LSTM},
url = {https://proceedings.neurips.cc/paper_files/paper/2019/file/f8eb278a8bce873ef365b45e939da38a-Paper.pdf},
volume = {32},
year = {2019}
}