[Paper Review] Train Once, Test Anywhere: Zero-Shot Learning for Text Classification
The paper presents a zero-shot learning framework for text categorization by predicting sentence-tag relatedness in a binary setup, enabling cross-dataset generalization without retraining. It proposes three neural architectures and demonstrates cross-dataset transfer using a source dataset of web headlines with SEO tags.
Zero-shot Learners are models capable of predicting unseen classes. In this work, we propose a Zero-shot Learning approach for text categorization. Our method involves training model on a large corpus of sentences to learn the relationship between a sentence and embedding of sentence's tags. Learning such relationship makes the model generalize to unseen sentences, tags, and even new datasets provided they can be put into same embedding space. The model learns to predict whether a given sentence is related to a tag or not; unlike other classifiers that learn to classify the sentence as one of the possible classes. We propose three different neural networks for the task and report their accuracy on the test set of the dataset used for training them as well as two other standard datasets for which no retraining was done. We show that our models generalize well across new unseen classes in both cases. Although the models do not achieve the accuracy level of the state of the art supervised models, yet it evidently is a step forward towards general intelligence in natural language processing.
Motivation & Objective
- Introduce a zero-shot learning framework for text categorization as a binary relatedness task between sentences and tags.
- Enable cross-dataset generalization so a model trained on one dataset can categorize data from other datasets without retraining.
- Propose and evaluate three neural architectures for zero-shot text classification.
- Show that training on noisy, large-scale data can improve generalization to unseen classes and datasets.
Proposed method
- Model the task as binary classification: predict whether a given sentence is related to a given tag.
- Train on a large source dataset of news headlines with SEO tags using binary cross-entropy loss.
- Develop three architectures: Architecture 1 uses mean-pooled word embeddings concatenated with tag embedding; Architecture 2 uses an LSTM over sentence words with the last hidden state concatenated with the tag embedding; Architecture 3 uses an LSTM over [tag embedding : word] inputs with the last hidden state for prediction.
- Initialize word embeddings with pretrained Google News embeddings.
- Evaluate on unseen tags from the source dataset as well as on UCI News Aggregator and Tweet Classification datasets using a category-tree approach to map tags to broader classes.
Experimental results
Research questions
- RQ1Can zero-shot learning predict sentence-tag relatedness across unseen tags and datasets without retraining?
- RQ2Do neural architectures leveraging sentence and tag embeddings generalize to new datasets and granularity levels of categories?
- RQ3How does performance compare when using category trees versus direct tag names for cross-dataset evaluation?
Key findings
- Architectures achieve up to 74% accuracy on the source dataset test set for the binary relatedness task.
- Accuracy improves to 78% for unseen tags within the source dataset for Architecture 3.
- On the UCI News Aggregator dataset, the category-tree approach yields 61.73%–64.21% accuracy depending on architecture, below supervised state-of-the-art but demonstrating cross-dataset generalization without retraining.
- On the Tweet Classification dataset, category-tree-based results are around 64.5% for Architecture 3, with direct class-name classification at 49% for Architecture 3.
- Overall, the models show the ability to learn relatedness between sentences and tags and to generalize to unseen datasets and concepts, albeit with room for improvement.
- The work emphasizes that training on noisy, web-sourced data can yield more generalized representations compared to smaller, task-specific datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.