FastText.zip: Compressing text classification models

By Armand Joulin, Edouard Grave, Piotr Bojanowski, Matthijs Douze, Herv'e J'egou, Tomas Mikolov. 2016

1,352 citations recorded by the source corpus.

We consider the problem of producing compact architectures for text classification, such that the full model fits in a limited amount of memory. After considering different solutions inspired by the hashing literature, we propose a method built upon product quantization to store the word embeddings. While the original technique leads to a loss in accuracy, we adapt this method to circumvent the quantization artifacts. As a result, our approach produces a text classifier, derived from the fastText approach, which at test time requires only a fraction of the memory compared to the original one, without noticeably sacrificing the quality in terms of classification accuracy. Our experiments carried out on several benchmarks show that our approach typically requires two orders of magnitude less memory than fastText while being only slightly inferior with respect to accuracy. As a result, it outperforms the state of the art by a good margin in terms of the compromise between memory usage and accuracy.

Subfields: Natural Language Processing, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Natural Language Processing

  1. Graham Neubig
  2. Luke S. Zettlemoyer
  3. Mohit Bansal
  4. Kyunghyun Cho
  5. Jianfeng Gao
  6. Noah A. Smith
  7. Furu Wei
  8. Jason Aaron Edward Weston

In Efficiency & Compression

  1. Edouard Grave
  2. Alexander M. Rush
  3. Armand Joulin
  4. Angela Fan
  5. Luke S. Zettlemoyer
  6. Benoît Sagot
  7. Pedro Ortiz Suarez
  8. Laurent Romary

Citations in the corpus