HackerPapers

arXiv:1811.00641cs.LG

Online Embedding Compression for Text Classification using Low Rank Matrix Factorization

Anish Acharya, Rahul Goel, Angeliki Metallinou, Inderjit Dhillon

Abstract

Deep learning models have become state of the art for natural language processing (NLP) tasks, however deploying these models in production system poses significant memory constraints. Existing compression methods are either lossy or introduce significant latency. We propose a compression method that leverages low rank matrix factorization during training,to compress the word embedding layer which represents the size bottleneck for most NLP models. Our models are trained, compressed and then further re-trained on the downstream task to recover accuracy while maintaining the reduced size. Empirically, we show that the proposed method can achieve 90% compression with minimal impact in accuracy for sentence classification tasks, and outperforms alternative methods like fixed-point quantization or offline word embedding compression. We also analyze the inference time and storage space for our method through FLOP calculations, showing that we can compress DNN models by a configurable ratio and regain accuracy loss without introducing additional latency compared to fixed point quantization. Finally, we introduce a novel learning rate schedule, the Cyclically Annealed Learning Rate (CALR), which we empirically demonstrate to outperform other popular adaptive learning rate algorithms on a sentence classification benchmark.

arXiv comments
Accepted in Thirty-Third AAAI Conference on Artificial Intelligence (AAAI 2019)
Journal reference
DOI
Subjects
cs.LGMachine Learning cs.CLComputation and Language math.NANumerical Analysis stat.MLMachine Learning (Statistics)

On Hacker News

Linked by 2 identifiable commenters in 2 comments across 1 thread, from Jan 2019 to Jan 2019.

Comments linking this paper, per year.

Discussed in comments1 thread

    • The article's title is actually "New Method for Compressing Neural Networks Better Preserves Accuracy". Summary of a key result: "In one set of experiments, for instance, we showed that our system could shrink a neural network by 90 percent while reducing its accuracy by less…

      azhenleyView on HNParent context

    • The paper is here: https://arxiv.org/pdf/1811.00641.pdf

      anishacharyaView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.