pith. sign in

arxiv: 2505.06145 · v1 · pith:WD33P4DTnew · submitted 2025-05-09 · 💻 cs.CL · cs.LG

Towards Robust Few-Shot Text Classification Using Transformer Architectures and Dual Loss Strategies

classification 💻 cs.CL cs.LG
keywords classificationfew-shotlosscategoriesimprovetextaccuracyarchitectures
0
0 comments X
read the original abstract

Few-shot text classification has important application value in low-resource environments. This paper proposes a strategy that combines adaptive fine-tuning, contrastive learning, and regularization optimization to improve the classification performance of Transformer-based models. Experiments on the FewRel 2.0 dataset show that T5-small, DeBERTa-v3, and RoBERTa-base perform well in few-shot tasks, especially in the 5-shot setting, which can more effectively capture text features and improve classification accuracy. The experiment also found that there are significant differences in the classification difficulty of different relationship categories. Some categories have fuzzy semantic boundaries or complex feature distributions, making it difficult for the standard cross entropy loss to learn the discriminative information required to distinguish categories. By introducing contrastive loss and regularization loss, the generalization ability of the model is enhanced, effectively alleviating the overfitting problem in few-shot environments. In addition, the research results show that the use of Transformer models or generative architectures with stronger self-attention mechanisms can help improve the stability and accuracy of few-shot classification.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. From Research Question to Scientific Workflow: Leveraging Agentic AI for Science Automation

    cs.AI 2026-04 conditional novelty 6.0

    Agentic architecture automates research-question-to-workflow translation via LLM intent extraction, deterministic generators, and Skills, raising intent accuracy from 44% to 83% and cutting data transfer by 92% in a 1...