Label Semantic Aware Pre-training for Few-shot Text Classification

Aaron Mueller, Jason Krone, Salvatore Romeo, Saab Mansour, Elman Mansimov +2 more
4/14/2022
cs.CL

Official code: amazon-science/label-aware-pretrain (19 stars, Python, Apache-2.0, last commit 2023-07-25).

Abstract

In text classification tasks, useful information is encoded in the label names. Label semantic aware systems have leveraged this information for improved text classification performance during fine-tuning and prediction.

Show full abstract

However, use of label-semantics during pre-training has not been extensively explored. We therefore propose Label Semantic Aware Pre-training (LSAP) to improve the generalization and data efficiency of text classification systems. LSAP incorporates label semantics into pre-trained generative models (T5 in our case) by performing secondary pre-training on labeled sentences from a variety of domains. As domain-general pre-training requires large amounts of data, we develop a filtering and labeling pipeline to automatically create sentence-label pairs from unlabeled text. We perform experiments on intent (ATIS, Snips, TOPv2) and topic classification (AG News, Yahoo! Answers). LSAP obtains significant accuracy improvements over state-of-the-art models for few-shot text classification while maintaining performance comparable to state of the art in high-resource settings.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
192Python, ShellMay 10, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{mueller2022label,
  title  = {Label Semantic Aware Pre-training for Few-shot Text Classification},
  author = {Aaron Mueller and Jason Krone and Salvatore Romeo and Saab Mansour and Elman Mansimov and Yi Zhang and Dan Roth},
  year   = {2022},
  eprint = {2204.07128},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.07128}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.07128.svg)](https://codeofpaper.com/paper/2204.07128)

Discussion