TL;DR
This paper introduces Feature Affinity Regularization (FAR), a novel semi-supervised learning technique for text classification. FAR leverages unlabeled data to learn relationships between features, encouraging the model to assign similar weights to correlated features. This approach consistently outperforms existing semi-supervised methods on text classification tasks, demonstrating improved generalization.
What Problem Does This Paper Address?
Text classification often suffers from a scarcity of labeled data, while vast amounts of unlabeled text are readily available. Traditional semi-supervised learning methods try to incorporate unlabeled data directly into the training objective. However, for discriminative models like Maximum Entropy (MaxEnt), which are highly effective for text classification, directly applying these methods is challenging. Existing semi-supervised approaches for MaxEnt, such as entropy minimization and expectation regularization, focus on regularizing the predicted labels or posteriors. This paper addresses the gap by proposing a method that leverages unlabeled data to learn feature relationships, thereby improving model generalization, especially in high-dimensional feature spaces where many features might be unseen in the limited labeled data.
Methods
The core contribution is Feature Affinity Regularization (FAR). This method learns a feature affinity matrix (W) from unlabeled data, where each element $w_{ij}$ represents the correlation or affinity between feature $i$ and feature $j$. This matrix is then incorporated as a regularization term ($J_{FAR}$) into the MaxEnt training objective. The regularization term penalizes models where correlated features have significantly different weights.
The feature affinity matrix $W$ is computed based on feature co-occurrence in unlabeled data. If features $i$ and $j$ frequently co-occur, their affinity $w_{ij}$ is set to a positive value, encouraging their corresponding weights in the MaxEnt model ($\lambda_{ik}$ and $\lambda_{jk}$) to be similar. This process effectively smooths feature weights across the feature graph, allowing the model to generalize to unseen features by leveraging information from correlated, observed features. The overall objective function is still convex, allowing for efficient optimization using gradient-based methods like L-BFGS.
Datasets
The paper evaluates FAR on two standard text classification datasets:
- Movie Review Classification: A dataset of 5000 positive and 5000 negative sentences from movie reviews.
- 20 Newsgroups Topic Classification: A collection of approximately 20,000 documents partitioned into 20 classes.
The unlabeled data used for learning the feature affinity matrix includes all data not sampled for training, as well as development and evaluation data with labels removed.
Key Insights and Ideas
- Leveraging Feature Relationships: Instead of directly regularizing labels, FAR focuses on regularizing feature weights based on their learned relationships. This is a novel way to incorporate unlabeled data into semi-supervised learning.
- Generalization to Unseen Features: By encouraging similar weights for correlated features, FAR allows the model to make predictions even for features not present in the labeled training data, provided they are correlated with observed features.
- Feature Weight Smoothing: FAR acts as a form of feature weight smoothing, similar to how L2 regularization smooths weights, but guided by feature co-occurrence rather than just magnitude.
- Computational Efficiency: Computing feature affinity via co-occurrence is computationally cheap, making the method scalable.
Key Results
FAR consistently outperformed baseline methods (supervised L2-regularized MaxEnt, MaxEnt with XR, and MaxEnt with self-training) on both the Movie Review and 20 Newsgroups datasets across various downsampling rates of the training data.
- Movie Review Classification: FAR achieved accuracies up to 74.1% with 50% downsampling, consistently higher than baselines.
- 20 Newsgroups Topic Classification: FAR achieved accuracies up to 81.7% with 50% downsampling, also showing consistent improvement over baselines.
- The paper also notes that FAR works with both binary features (movie reviews) and real-valued TF-IDF features (newsgroups).
Limitations and Future Work
- Sparsity and Storage: For very high-dimensional feature spaces (millions of features), the $N \times N$ feature affinity matrix $W$ can become prohibitively large. The authors had to set a non-zero threshold for the newsgroups data to manage storage, which might lead to loss of some feature affinity information. They are exploring more compressed representations of $W$.
- Affinity Computation: The current method uses universal feature co-occurrence to compute affinity. The authors suggest that other quantities like mutual information could be explored, and users might tailor the method to capture task-specific affinity information.
- Future Work: Exploring more efficient ways to compute and represent $W$ for larger datasets, investigating alternative affinity measures, and comparing FAR to other regularization techniques like weight tying and label posterior regularization are suggested. The authors also believe the principle can be applied to problems with real-valued observations.
Summary updated