Unsupervised Learning for Lexicon-Based Classification

Jacob Eisenstein

Abstract: To be presented at the Thirty-First AAAI Conference on Artificial Intelligence (AAAI-17), February 4–9, 2017, San Francisco, California, USA.

Introduction

Lexicon-based classification—the process of categorizing text by counting occurrences of predefined "good" or "bad" words—remains a staple in natural language processing due to its simplicity and lack of reliance on labeled data. However, these methods typically suffer from a major flaw: they treat all words within a lexicon as equally predictive. In practice, a word like "spectacular" carries much more sentiment weight than "good," and ambiguous words can introduce significant noise. While supervised models like Logistic Regression solve this by learning weights from labeled data, the cost of human annotation is often prohibitive. This paper introduces an unsupervised "Method of Moments" approach to automatically learn word-specific weights from co-occurrence patterns, significantly closing the performance gap between simple lexicon heuristics and supervised learning.

Theoretical Foundations

The research first provides a formal probabilistic justification for common heuristics. It is demonstrated that the standard "word counting" approach is a special case of a Multinomial Naive Bayes classifier under specific assumptions (e.g., complete lexicons and equal word predictiveness). Furthermore, the "word presence" heuristic—which counts whether a word appears at least once rather than its total frequency—is shown to correspond to a Dirichlet-Compound Multinomial (DCM) model.

Effective counts in the DCM model as a function of raw counts for different concentration parameters.

As illustrated in Figure 1, the DCM model provides a mechanism where the "effective count" of a word saturates as its raw frequency increases. This theoretical grounding explains why modeling presence often outperforms raw counts: it prevents a single idiosyncratic word repeated multiple times from disproportionately influencing the classification outcome.

Unsupervised Weighting: The PROBLEX Method

To move beyond the assumption that all words are equal, the paper introduces PROBLEX (Probabilistic Lexicons), which utilizes a Method of Moments estimator. The core intuition rests on cross-lexical co-occurrence: a highly predictive positive word should rarely appear in the same document as words from a negative lexicon.

The model calculates "cross-label counts" to observe how often words from opposing lexicons co-occur. It then employs an optimization technique called ADMM (Alternating Direction Method of Multipliers) to find weights ($\gamma_i$) for each word that best explain these observed patterns. By identifying which words "avoid" each other, the model infers which terms are the strongest anchors for their respective labels without requiring any human-labeled examples.

Experimental Evaluation

The method was evaluated across four distinct sentiment analysis datasets to ensure robustness across domains and languages:

  • Amazon: English product reviews (books, electronics, etc.).
  • Cornell: 2,000 English-language film reviews.
  • CorpusCine: 3,800 Spanish-language movie reviews.
  • IMDB: 50,000 English-language film reviews.

Results and Analysis

The proposed unsupervised models, PROBLEX-MULT and PROBLEX-DCM, consistently outperformed traditional lexicon counting and other unsupervised baselines like Pointwise Mutual Information (PMI).

Classification performance (AUC) across four datasets comparing lexicon-based methods, unsupervised weighting, and supervised logistic regression.

As shown in Figure 2, PROBLEX-DCM achieved an AUC of 0.884 on the IMDB dataset, a significant improvement over the 0.807 achieved by standard lexicon approaches. While supervised Logistic Regression (LogReg) still provides the upper bound on performance (~0.95 AUC on IMDB), the PROBLEX method recovers a substantial portion of that performance gap entirely through unsupervised learning. These improvements were consistent across all datasets, including the Spanish CorpusCine, demonstrating the method's cross-linguistic applicability.

Conclusion

This work demonstrates that the gap between simple lexicon heuristics and supervised learning can be significantly narrowed through unsupervised weighting. By leveraging co-occurrence statistics as a proxy for labels, the PROBLEX method provides a "brain" for lexicon-based classifiers. Future work may involve extending this framework to multi-class problems and incorporating multi-word units to handle complex linguistic structures like negation.

Summary updated

BibTeX
@inproceedings{eisenstein2017unsupervised,
  author = {Jacob Eisenstein},
  title = {{Unsupervised Learning for Lexicon-Based Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  url = {https://openreview.net/forum?id=ByWZPJZOZH},
}
Figure