Abstract
Recent methods for learning vector space representations of words have succeeded in capturing fine-grained semantic and syntactic regularities using vector arithmetic. However, these vector space representations are typically stored verbatim, as their internal structure remains opaque. This paper investigates the trade-offs between memory reduction and expressiveness by monitoring the level of detail stored in compressed re-representations of the same vector space. We outline a simple scheme that reduces the memory footprint of state-of-the-art embeddings by a factor of 10 with minimal impact on performance. Furthermore, we explore a binary factorization of the same space to create equivalent representations with improved interpretability.
Introduction
Modern Natural Language Processing (NLP) relies heavily on dense word embeddings—vectors that represent word meanings. Despite their effectiveness, these embeddings suffer from storage inefficiency and opacity. Individual dimensions in a 300-dimensional GloVe vector lack inherent human meaning. Moreover, dense representations are "cognitively implausible"; humans typically define concepts using sparse, positive features (e.g., "has fur," "barks") rather than abstract floating-point lists. This research aims to bridge the gap between machine efficiency and human-like interpretability through compression and sparsification.
Methodology
The study explores two primary compression stages:
1. Simple Quantization via Lloyd’s Algorithm
To determine the redundancy in embedding data, we applied Lloyd’s algorithm to quantize each dimension into 8 discrete levels (3 bits). This approach compresses a 300-dimensional vector into a 900-bit "storage budget" while maintaining near-baseline performance on analogy tasks.
2. Sparse Autoencoding
To enhance interpretability, we designed a "Winner-Take-All" (WTA) autoencoder. This model learns to map dense embeddings into a sparse, non-negative space ($A$) and reconstructs them back into the original space ($E^*$).
- GPU Optimization: Traditional WTA models require slow sorting to find top-$\alpha$ values. We implemented a binary section search to find a "hurdle value" ($h^*$), achieving a 39x speedup on GPUs.
- Dynamic Regulation: A path-dependent regulator gradually tightens sparsity constraints during training to prevent early network collapse.
Key Results and Interpretability
The Lloyd-8 method achieved results nearly identical to the GloVe baseline, demonstrating that 3 bits per dimension is sufficient for maintaining semantic relationships. The sparse representation ($A$) also proved highly interpretable, naturally clustering semantically related words into specific dimensions.
As shown in Table 1, the compressed $E^*$ reconstructions maintain high accuracy across various similarity datasets, often rivaling the original GloVe baseline despite the significant reduction in bit-depth. The sparse version $A$ also shows strong performance on similarity metrics, particularly when $k=1024$.
Limitations and Algebraic Mismatch
While sparse non-negative vectors perform excellently on similarity tasks using cosine similarity, they struggle with traditional analogy tests (e.g., "King - Man + Woman = Queen").
Analogy tasks rely on vector subtraction, which can produce negative values. The sparse, non-negative algebra of representation $A$ is not designed to handle these operations, leading to the performance drop observed in Table 2. Future work should focus on developing mathematical operators that respect the geometry of sparse, non-negative spaces, allowing for complex reasoning without reconstruction into dense vectors.
Summary updated