Skip to main content
QUICK REVIEW

[Paper Review] An alternative text representation to TF-IDF and Bag-of-Words

Zhixiang Xu, Xu|arXiv (Cornell University)|Jan 28, 2013
Topic ModelingComputer Science25 references23 citations
TL;DR

This paper proposes Dense Cohort of Terms (dCoT), an unsupervised method that transforms sparse Bag-of-Words (sBoW) representations into dense vectors by learning to reconstruct frequent words from infrequent ones through random word removal and closed-form marginalization. dCoT significantly improves document classification accuracy—especially in low-data regimes—while being up to 1,000x faster than LDA and LSI, achieving state-of-the-art performance on Reuters and Dmoz datasets.

ABSTRACT

In text mining, information retrieval, and machine learning, text documents are commonly represented through variants of sparse Bag of Words (sBoW) vectors (e.g. TF-IDF). Although simple and intuitive, sBoW style representations suffer from their inherent over-sparsity and fail to capture word-level synonymy and polysemy. Especially when labeled data is limited (e.g. in document classification), or the text documents are short (e.g. emails or abstracts), many features are rarely observed within the training corpus. This leads to overfitting and reduced generalization accuracy. In this paper we propose Dense Cohort of Terms (dCoT), an unsupervised algorithm to learn improved sBoW document features. dCoT explicitly models absent words by removing and reconstructing random sub-sets of words in the unlabeled corpus. With this approach, dCoT learns to reconstruct frequent words from co-occurring infrequent words and maps the high dimensional sparse sBoW vectors into a low-dimensional dense representation. We show that the feature removal can be marginalized out and that the reconstruction can be solved for in closed-form. We demonstrate empirically, on several benchmark datasets, that dCoT features significantly improve the classification accuracy across several document classification tasks.

Motivation & Objective

  • To address the over-sparse nature of traditional sBoW and TF-IDF representations, which hinder generalization in low-data or short-text scenarios.
  • To capture word-level synonymy and polysemy by modeling co-occurrence relationships between rare and frequent terms.
  • To develop an efficient, unsupervised feature learning method that improves downstream classification without requiring labeled data.
  • To enable recursive application of the transformation to discover higher-order semantic structures such as topics.
  • To achieve state-of-the-art performance with significantly reduced training time compared to existing methods like LDA and LSI.

Proposed method

  • dCoT trains on unlabeled text by randomly removing subsets of words (with probability p) from documents to simulate noise.
  • The model learns to reconstruct the original frequent words from the remaining infrequent words using a closed-form solution derived via marginalization over all possible removal patterns.
  • The transformation is applied recursively across multiple layers to capture higher-order correlations between terms and topics.
  • The resulting feature mapping is a linear transformation of the original sBoW vector, computed efficiently in closed form without iterative optimization.
  • The method implicitly learns semantic relationships by forcing the model to infer missing frequent terms from co-occurring rare terms.
  • The final representation is a low-dimensional dense vector suitable for use in classifiers like SVMs.

Experimental results

Research questions

  • RQ1Can an unsupervised method improve sBoW representations by modeling the reconstruction of frequent words from infrequent ones?
  • RQ2Does recursive application of the reconstruction process enhance semantic representation and capture higher-order topics?
  • RQ3How does dCoT compare in classification accuracy to TF-IDF, LSI, and LDA, especially under low-label data settings?
  • RQ4Can the method achieve state-of-the-art performance while being significantly faster than existing approaches like LDA and LSI?
  • RQ5What is the optimal noise level and number of layers for dCoT in practice?

Key findings

  • dCoT outperforms TF-IDF, LSI, and LDA on both Reuters and Dmoz benchmark datasets, particularly in low-labeled-data settings.
  • On the Reuters dataset, dCoT achieves the highest classification accuracy across all tested configurations, with a 3-minute training time compared to 3 hours for LDA.
  • The method shows a 1,000x speed-up over LDA and LSI, reducing feature learning time from hours to minutes.
  • Recursive application of dCoT (l > 1 layers) improves performance, confirming that deeper representations capture higher-order semantic correlations.
  • Surprisingly high noise levels (1 - p) yield the best results, indicating that aggressive corruption enhances learning of subtle semantic relationships.
  • dCoT’s closed-form solution enables fast inference (milliseconds) and training (seconds), making it practical for real-world applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.