[Paper Review] Induction Networks for Few-Shot Text Classification
This paper proposes Induction Networks, a novel few-shot text classification model that learns generalized class-level representations from small support sets using dynamic routing, outperforming state-of-the-art methods on both English sentiment and Chinese dialogue intent datasets by effectively reducing noise from sample-level variations.
Text classification tends to struggle when data is deficient or when it needs to adapt to unseen classes. In such challenging scenarios, recent studies have used meta-learning to simulate the few-shot task, in which new queries are compared to a small support set at the sample-wise level. However, this sample-wise comparison may be severely disturbed by the various expressions in the same class. Therefore, we should be able to learn a general representation of each class in the support set and then compare it to new queries. In this paper, we propose a novel Induction Network to learn such a generalized class-wise representation, by innovatively leveraging the dynamic routing algorithm in meta-learning. In this way, we find the model is able to induce and generalize better. We evaluate the proposed model on a well-studied sentiment classification dataset (English) and a real-world dialogue intent classification dataset (Chinese). Experiment results show that on both datasets, the proposed model significantly outperforms the existing state-of-the-art approaches, proving the effectiveness of class-wise generalization in few-shot text classification.
Motivation & Objective
- Address the challenge of few-shot text classification where labeled data is scarce and new classes must be recognized from only a few examples.
- Overcome the limitation of existing methods that rely on sample-wise comparisons, which are sensitive to linguistic variation within the same class.
- Develop a model that induces general, viewpoint-invariant class representations by capturing shared semantic patterns across diverse samples in a support set.
- Improve generalization to unseen classes by modeling hierarchical relationships between samples and classes using dynamic routing in a meta-learning framework.
Proposed method
- Employ an Encoder Module to generate dense, contextualized representations for queries and support set samples.
- Introduce an Induction Module that treats sample representations as input capsules and class representations as output capsules, using dynamic routing to aggregate information.
- Apply matrix transformations to map sample-level features to class-level representations, enabling structured feature propagation.
- Use a routing-by-agreement mechanism to dynamically adjust coupling coefficients between capsules without learnable parameters, enhancing robustness.
- Implement a Relation Module that computes similarity between query and class representations using a differentiable metric to predict class labels.
- Train the entire model end-to-end using an episode-based meta-learning strategy, where each episode simulates a few-shot classification task with support and query sets.
Experimental results
Research questions
- RQ1Can a few-shot text classification model achieve better generalization by learning class-level representations instead of relying on sample-wise comparisons?
- RQ2How effective is dynamic routing in capturing shared semantic patterns across diverse samples within the same class?
- RQ3Does the proposed Induction Network outperform existing state-of-the-art models in few-shot text classification under both low-resource and real-world settings?
- RQ4To what extent do the matrix transformation and routing mechanism contribute to improved feature separation and model robustness?
Key findings
- The proposed Induction Network achieves 85.63% accuracy on the ARSC Chinese dialogue intent dataset under 5-way 10-shot settings, significantly outperforming the baseline Relation Network.
- On the IMDB sentiment classification dataset, the model achieves state-of-the-art performance, demonstrating strong generalization to unseen classes.
- Ablation studies show that 3 iterations of dynamic routing yield optimal performance, with further iterations providing no improvement.
- The model with dynamic routing and relation module outperforms variants using sum-pooling (83.07%) or self-attention (85.15%), confirming the superiority of the routing mechanism.
- t-SNE visualizations confirm that the model learns more separable and semantically coherent text representations compared to the Relation Network.
- The matrix transformation step significantly improves feature separability, as shown by clearer clustering of support set samples after transformation.
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.