[Paper Review] Dynamic Memory Induction Networks for Few-Shot Text Classification
This paper proposes Dynamic Memory Induction Networks (DMIN), a few-shot text classification model that uses dynamic routing to adaptively adjust memory weights during inference, enhancing generalization to unseen classes. By integrating query-aware memory induction, DMIN achieves state-of-the-art performance, improving accuracy by 2–4% on miniRCV1 and ODIC datasets compared to prior methods.
This paper proposes Dynamic Memory Induction Networks (DMIN) for few-shot text classification. The model utilizes dynamic routing to provide more flexibility to memory-based few-shot learning in order to better adapt the support sets, which is a critical capacity of few-shot classification models. Based on that, we further develop induction models with query information, aiming to enhance the generalization ability of meta-learning. The proposed model achieves new state-of-the-art results on the miniRCV1 and ODIC dataset, improving the best performance (accuracy) by 2~4%. Detailed analysis is further performed to show the effectiveness of each component.
Motivation & Objective
- To address the challenge of limited generalization in few-shot text classification due to sparse support sets and instance-level diversity.
- To improve memory-based few-shot learning by enabling dynamic adaptation of memory weights during inference, rather than relying on static memory components.
- To enhance model generalization by jointly learning query-aware memory routing and class-level representation induction from support sets.
- To overcome the limitations of fixed prototypes and static memory mechanisms in existing models, particularly under low-shot scenarios.
Proposed method
- DMIN employs a two-stage training framework: supervised pre-training on base classes followed by meta-learning on episodic support and query sets.
- The model uses BERT-base as the sentence encoder to generate contextualized sentence representations for input texts.
- A Dynamic Memory Module (DMM) applies dynamic routing to compute attention-like coupling coefficients between support instances and memory units, enabling adaptive feature aggregation.
- An Induction Module (IM) uses query-aware routing to identify and prioritize support instances most relevant to the query, improving prototype quality.
- The DMM and IM are jointly trained via end-to-end backpropagation, with loss computed on the query set predictions.
- The model leverages attention-based routing to dynamically adjust how support features contribute to class-level memory representations, improving robustness to instance-level variation.
Experimental results
Research questions
- RQ1Can dynamic routing improve memory-based few-shot text classification by enabling adaptive weight adjustment during inference, rather than relying on static memory components?
- RQ2How does query-aware memory induction enhance model generalization when class prototypes are ambiguous due to instance-level diversity in support sets?
- RQ3To what extent does the proposed dynamic memory mechanism outperform static memory mechanisms in low-shot text classification benchmarks?
- RQ4What is the optimal number of dynamic routing iterations for balancing performance and computational cost in few-shot learning?
Key findings
- DMIN achieves new state-of-the-art accuracy on the miniRCV1 dataset, improving the best previous result by 2–4% across 1-shot and 5-shot settings.
- On the ODIC dataset, DMIN achieves 83.46% accuracy in 5-way 1-shot and 91.75% in 5-way 5-shot, significantly outperforming all baselines including LwoF and Ind. Net.
- Ablation studies show that removing either the Dynamic Memory Module (DMM) or the Induction Module (IM) leads to a drop in performance, confirming the effectiveness of both components.
- The optimal number of dynamic routing iterations is 3, with performance decreasing at 1 or 2 iterations, indicating that sufficient routing refinement is critical.
- t-SNE visualization confirms that DMM improves feature separation in support set representations, demonstrating better semantic clustering after memory routing.
- The improvement is statistically significant under one-tailed paired t-tests at the 95% confidence level, validating the robustness of DMIN’s gains.
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.