Abstract
We present a feature vector formation technique for documents - Sparse Composite Document Vector (SCDV) - which overcomes several shortcomings of the current distributional paragraph vector representations that are widely used for text representation. In SCDV, word embeddings are clustered to capture multiple semantic contexts in which words occur. They are then chained together to form document topic-vectors that can express complex, multi-topic documents. Through extensive experiments on multi-class and multi-label classification tasks, we outperform the previous state-of-the-art method, NTSG (Liu et al., 2015a). We also show that SCDV embeddings perform well on heterogeneous tasks like Topic Coherence, context-sensitive Learning and Information Retrieval. Moreover, we achieve significant reduction in training and prediction times compared to other representation methods. SCDV achieves best of both worlds - better performance with lower time and space complexity.
Introduction
While word embeddings like Word2Vec have revolutionized Natural Language Processing (NLP) by capturing semantic relationships, extending them to represent entire documents remains a significant challenge. Simple approaches, such as averaging word vectors, ignore word order and fail to account for polysemy—the phenomenon where a single word possesses multiple meanings depending on its context.
More advanced methods like Doc2Vec (Paragraph Vectors) attempt to learn document-level embeddings directly, but they often represent complex, multi-topic documents in the same low-dimensional space as single words, limiting their expressive power. Furthermore, existing topic-based embedding models (e.g., NTSG or TWE) are often computationally expensive, making them difficult to scale to large datasets. SCDV addresses these gaps by leveraging high-dimensional, sparse representations formed through soft-clustering.
Methodology
The authors propose a multi-step pipeline to create Sparse Composite Document Vectors (SCDV), focusing on capturing semantic nuances through cluster-based weighting.
- Word Embedding: Standard $d$-dimensional word embeddings are trained using Skip-gram with Negative Sampling (SGNS).
- Soft Clustering: Instead of hard-assigning words to single topics, Gaussian Mixture Models (GMM) perform soft clustering. This allows a word like "apple" to have a probability distribution across multiple clusters (e.g., "fruit" and "technology").
- Vector Formation: For each word, a composite vector of size $K \times d$ (where $K$ is the number of clusters) is created by weighting the word's embedding by its probability of belonging to each cluster.
- Weighting and Aggregation: These vectors are weighted by Inverse Document Frequency (IDF) to emphasize rare, informative words. To form a document vector, the composite vectors of all words in that document are summed.
- Sparsification: Finally, a threshold is applied to zero out values close to zero. This creates a sparse representation that reduces storage requirements by approximately 80% without losing accuracy.
Experimental Setup
The researchers evaluated SCDV across several standard benchmarks to test classification and retrieval performance:
- 20NewsGroup: A dataset of ~20,000 documents across 20 topics for multi-class classification.
- Reuters-21578: A collection of news stories used for multi-label classification.
- TREC Datasets: Four different datasets (including Associated Press and Wall Street Journal) used to evaluate performance in Information Retrieval (IR) tasks.
Results and Discussion
SCDV demonstrated superior performance across all evaluated metrics. On the 20NewsGroup dataset, SCDV achieved 84.6% accuracy, outperforming the previous state-of-the-art NTSG-1 (82.6%) and BoWV (81.6%).
Beyond accuracy, SCDV offers significant efficiency gains. Total training time on 20NewsGroup was 200 seconds, compared to 740 seconds for TWE-1. Prediction was even more efficient: 25 seconds for SCDV versus 120 seconds for TWE-1.
Key insights from the results include:
- High Dimensionality: Unlike Doc2Vec, SCDV argues that document representations should be high-dimensional to capture the complexity of multiple topics.
- Sparsity as a Feature: By zeroing out low-value attributes, the authors reduced storage needs and removed "noise" generated by the soft-clustering process.
- Handling Polysemy: The GMM soft clustering naturally handles words with multiple senses by distributing their contribution across relevant semantic "buckets."
Conclusion
SCDV provides a robust bridge between word-level embeddings and document-level topic modeling. While the model is sensitive to hyperparameters like the number of clusters ($K$) and the sparsity threshold ($p$), it achieves state-of-the-art results with lower time and space complexity. Future work could explore incorporating local word ordering or integrating these sparse vectors into deep learning architectures.
Summary updated