Abstract
Hyperdimensional Computing (HDC) provides a brain-inspired paradigm for representing data as high-dimensional vectors. However, applying HDC to large-scale natural language processing (NLP) tasks is often hindered by the "curse of dimensionality," where increasing data volume necessitates exponentially larger vector spaces to maintain distinguishability. This paper proposes Compression Hyperdimensional Computing (CHDC), a framework that integrates classical text compression techniques—specifically TF-IDF and Latent Dirichlet Allocation (LDA)—into the HDC encoding pipeline. By selectively encoding only the most informative words, CHDC achieves up to a 90% reduction in encoded text size while preserving the geometric properties and classification performance of the document vectors. We provide theoretical estimators for key performance metrics and validate them across multiple benchmark datasets.
Introduction
The core challenge in scaling HDC for text is the "crowding" of vector spaces. When every word in a massive corpus is encoded and bundled into document vectors, the resulting embeddings become increasingly difficult to distinguish. This paper addresses this limitation by questioning the necessity of encoding every token. We hypothesize that a small subset of "informative" words is sufficient to represent the semantic essence of a document within a high-dimensional space, allowing for significant computational savings without sacrificing robustness.
Methodology
The CHDC framework follows a multi-stage pipeline designed to optimize information density before high-dimensional transformation.
- Preprocessing: Standard text cleaning, including lemmatization and stemming.
- Selective Compression: The model identifies critical words using either TF-IDF scores or LDA topic probabilities. Only words exceeding a specific importance threshold are retained for encoding.
- HDC Encoding: Selected words are mapped to high-dimensional binary vectors. Document-level embeddings are then created through word-wise permutation, binding, and document-wise bundling (summation followed by a sign function).
- Theoretical Analysis: We derive estimators for the Compression Rate (CR), Jensen-Shannon Divergence (JSD), and ROUGE-F1 scores to predict system performance mathematically.
Experimental Results
The CHDC model was evaluated on the IMDB, AG News, and arXiv datasets. Our findings indicate that HDC is remarkably resilient to data reduction. By discarding up to 90% of less informative words, the distinguishability of document classes remained stable. For instance, a 10x reduction in dictionary size resulted in only a marginal increase in the distinguishability parameter.
As shown in the table above, the error metrics ($\hat{\epsilon}$) remain consistent across a wide range of vector dimensions ($D$), from 256 to 16,384. This suggests that the selective encoding strategy is robust and that the benefits of compression do not degrade as the dimensionality of the underlying HDC system changes. Furthermore, the high ROUGE-F1 scores observed across experiments confirm that the "important" semantic content is effectively retained despite aggressive pruning.
Discussion and Limitations
While CHDC demonstrates significant scalability improvements, some challenges remain. The theoretical bounds derived in this work are not yet perfectly tight, as they depend heavily on the underlying word distributions of specific datasets. Additionally, while TF-IDF-based selection proved highly predictable, LDA-based estimators showed slightly higher variance, likely due to the mismatch between LDA's statistical assumptions and real-world language use. Future research will focus on tightening these mathematical bounds and exploring more sophisticated selection criteria to further optimize the trade-off between compression and accuracy.
Conclusion
CHDC provides a mathematically grounded approach to scaling Hyperdimensional Computing for large-scale text analysis. By demonstrating that "less is more" in high-dimensional spaces, this work paves the way for more efficient and robust NLP systems that leverage the unique advantages of the HDC paradigm.
Summary updated