Abstract
We initiate a study comparing the effectiveness of transformed spaces learned by supervised and semi-supervised metric learning algorithms to those generated by unsupervised dimensionality reduction methods like PCA. Through experiments on real-world NLP datasets, we demonstrate that IDML-IT, a semi-supervised metric learning algorithm, is the most effective for creating high-quality data representations.
Introduction
Natural Language Processing (NLP) datasets are characterized by high dimensionality, often containing thousands of unique features. However, these datasets frequently suffer from a scarcity of human-provided labels. To manage this complexity, researchers traditionally rely on unsupervised dimensionality reduction techniques such as Principal Component Analysis (PCA) or Random Projection (RP).
While common, these unsupervised methods are "task-blind," reducing dimensions based on global variance or random geometry rather than the specific discriminative features of a classification task. This paper explores whether a better representation space can be learned by leveraging a small amount of labeled data alongside a larger pool of unlabeled data through semi-supervised metric learning.
The IDML-IT Framework
The authors propose Inference-Driven Metric Learning - Information Theoretic (IDML-IT). This framework learns a Mahalanobis distance, which is equivalent to finding a linear transformation that projects data into a new space where Euclidean distance reflects meaningful task-specific similarity.
IDML-IT operates as an iterative semi-supervised loop:
- Initial Metric Learning: An Information-Theoretic Metric Learning (ITML) algorithm is trained on the limited available labels.
- Graph Construction: A similarity graph is built for the entire dataset (labeled and unlabeled) using the learned metric.
- Label Inference: Labels for the unlabeled data are estimated using a graph-based propagation algorithm.
- Self-Training: High-confidence "guessed" labels are added to the training set.
- Iterative Refinement: The metric is re-learned using the expanded label set, and the process repeats until convergence.
Experimental Setup
The study evaluates performance across five binary text classification datasets, including four sentiment analysis domains and the WebKB topic classification dataset. These datasets are notably high-dimensional, as shown in Table 1.
Experiments focused on "low-resource" scenarios, testing performance with only 50 or 100 initial labeled examples to simulate real-world constraints.
Results and Discussion
The performance of IDML-IT was compared against PCA, Random Projection, and purely supervised ITML. The primary metric was classification error using an SVM in the transformed space.
As shown in Table 2, IDML-IT consistently outperformed all other methods across every dataset. Key observations include:
- Superiority over Unsupervised Methods: While PCA sometimes improved performance, it often degraded it (e.g., increasing error from 31.3% to 46.4% on the Electronics dataset). In contrast, IDML-IT consistently reduced error relative to the original space.
- The Value of Iteration: The synergy between metric learning and label inference allows the model to refine its understanding of the data manifold, leading to more accurate label propagation and a more discriminative projection.
- Significant Gains in Low-Resource Settings: On the WebKB dataset with only 50 labels, IDML-IT achieved a 25.5% error rate, a substantial improvement over the 31.4% baseline.
Conclusion
This research highlights that metric learning is a powerful tool for representation learning in NLP. By incorporating unlabeled data through an inference-driven loop, IDML-IT creates a feature space that is significantly more conducive to classification than standard unsupervised techniques. Future work may extend these linear transformations to non-linear manifolds or more complex multi-class NLP tasks.
Summary updated