Abstract
Word embeddings are essential for modern NLP but impose significant memory constraints on resource-limited devices. This paper introduces Isotropic Iterative Quantization (IIQ), an unsupervised method that compresses massive word embeddings into compact binary vectors. By prioritizing "isotropy"—ensuring word vector dimensions are uniform rather than dominated by high-variance directions—IIQ achieves over 30x compression ratios while maintaining, and occasionally improving, the performance of original real-valued models.
Introduction
Deep learning models for Natural Language Processing (NLP) rely on word embeddings like GloVe or Word2Vec to represent semantic meaning. However, these embeddings are memory-intensive; a standard pre-trained Word2Vec model can require 3GB of storage. This creates a bottleneck for deployment on smartphones or IoT sensors.
While techniques like Iterative Quantization (ITQ) are effective for images, they often struggle with NLP data. The authors identify a fundamental conflict: standard quantization preserves high-variance signals, but NLP models perform better when signals are spread evenly across dimensions—a property known as isotropy.
Methodology
IIQ modifies the traditional quantization pipeline to favor the geometric properties required for language tasks through three main stages:
- Maximizing Isotropy: The algorithm zero-centers embeddings and removes the top $D$ singular values (dominant variance directions). This forces remaining dimensions to be similar in scale.
- Dimension Reduction: PCA is used to remove the smallest singular values, tightening the data cluster for more effective binarization.
- Minimizing Quantization Loss: An iterative process finds an optimal rotation matrix ($R$) and binary matrix ($B$) to minimize the difference between rotated original vectors and their binary counterparts.
As an unsupervised approach, IIQ does not require retraining or labeled data, serving as a "plug-and-play" compression tool.
Experimental Evaluation
The researchers evaluated IIQ using GloVe and HDC embeddings across several benchmarks, including word similarity (MEN, SimLex999), categorization (AP, BLESS), and downstream classification tasks like sentiment analysis (IMDB).
Key Results and Insights
IIQ achieved a 32-fold compression ratio (32-bit floats to 1-bit signs) with minimal accuracy loss. Even at 64x and 128x compression, the model maintained respectable performance, significantly outperforming other methods like ITQ and DCCL at similar scales.
The Isotropy Paradox
In typical data compression, preserving high-variance directions is preferred. In NLP, however, "weak" directions often contain crucial semantic information. By projecting toward these directions, IIQ preserves the isotropic nature of language. Surprisingly, in tasks like the MEN word similarity dataset, compressed binary vectors outperformed original high-precision vectors, suggesting binarization may act as a regularizer.
Conclusion
IIQ demonstrates that preserving isotropy is key to effective word embedding compression. While performance begins to degrade at extreme 128x scaling, the method provides a robust solution for deploying NLP models on edge devices. Future work may explore task-aware quantization to further push these limits.
Summary updated