Abstract: This paper focuses on large-scale unsupervised feature selection from text. We expand upon the recently proposed Compressive Feature Learning (CFL) framework, a method that uses dictionary-based compression to identify meaningful $K$-grams. We prove the NP-completeness of the optimal CFL dictionary problem and propose a highly efficient homotopic approximation algorithm that scales linearly with corpus size.
Introduction
In large-scale machine learning, the "curse of dimensionality" is a constant threat. When dealing with millions of documents, researchers often rely on simple "bag-of-words" (unigram) models or basic heuristics to select features. These methods are fast but flawed: they treat words independently and ignore the rich, multi-word structures ($K$-grams) that carry semantic meaning. While sophisticated kernel methods exist to capture these interactions, they often have quadratic complexity, making them unusable for "Big Data."
This paper, presented at AISTATS 2014, bridges this gap by providing an unsupervised feature selection method that is both mathematically rigorous and computationally efficient, scaling linearly with the size of the corpus.
Compressive Feature Learning (CFL) Framework
The core idea of CFL is that a "good" set of features is one that can losslessly compress a corpus most efficiently. This involves a fundamental trade-off between the size of the "dictionary" (the set of unique $K$-grams) and the number of "pointers" (how many times those $K$-grams are used to reconstruct the text).
As shown in the figure above, different optimization goals lead to different feature representations. Minimizing dictionary cost favors long, unique sequences, while minimizing pointer cost favors simple, frequent unigrams. CFL seeks a balanced cost that identifies the most meaningful multi-word features.
Algorithmic Innovation
The authors provide several key technical contributions to make CFL viable for massive datasets:
- Complexity Proof: They prove that finding the optimal CFL dictionary is NP-Complete, justifying the need for approximation methods.
- Homotopy Approximation: To solve this "hard" problem, they use a homotopic scheme. They start with a convex relaxation of the problem (which yields "fuzzy," non-binary results) and gradually transform it into the original non-convex problem. This allows the algorithm to "warm-start" each step, tracing a path toward a high-quality binary solution.
- Linearized ADMM: They adapt the Alternating Direction Method of Multipliers (ADMM) to solve the optimization steps. Crucially, they show that each step requires only $O(Kn)$ operations (where $n$ is corpus length and $K$ is max $K$-gram length), making it highly parallelizable.
Experimental Results
The authors evaluated their algorithm on several well-known datasets, including the massive BeerAdvocate corpus (1.5 million reviews), 20 Newsgroups, and IMDb.
Key Findings
- Author Identification: On a daunting task with over 10,000 classes (authors), CFL achieved 15.1% accuracy, nearly doubling the 7.85% achieved by a standard unigram model.
- Extreme Sparsity: CFL produced a feature space two orders of magnitude smaller than the full trigram space while maintaining or improving predictive power. This joint selection allows features to "win out" against others, leading to a compact representation.
- Efficiency: The new homotopic algorithm was consistently 2-3x faster than previous iterative reweighting schemes. For the BeerAdvocate dataset ($K=3$), it converged in 277 seconds compared to 638 seconds for the baseline.
- Predictive Performance: In regression tasks (predicting a beer's ABV or rating), CFL features consistently outperformed unigrams, reducing mean squared error (MSE) by 4-8%.
Conclusion and Future Work
By framing feature selection as a compression problem, CFL naturally handles feature interactions. The homotopic approach avoids the pitfalls of simple rounding, maintaining a high-quality local optimum throughout the optimization path.
While the "pointer cost" ($\lambda$) remains a critical hyperparameter that requires tuning, the algorithm's linear-time complexity makes it a powerful tool for modern text mining. Future work may explore more complex structures like skip-grams or dependency trees within the same compressive framework.
Summary updated