Pre-trained Token-replaced Detection Model as Few-shot Learner

Zicheng Li, Shoushan Li, Guodong Zhou
3/7/2022
cs.CLcs.AI

Official code: AILaborer/TRD_FSL (2 stars, Python, last commit 2023-03-21).

Abstract

Pre-trained masked language models have demonstrated remarkable ability as few-shot learners. In this paper, as an alternative, we propose a novel approach to few-shot learning with pre-trained token-replaced detection models like ELECTRA.

Show full abstract

In this approach, we reformulate a classification or a regression task as a token-replaced detection problem. Specifically, we first define a template and label description words for each task and put them into the input to form a natural language prompt. Then, we employ the pre-trained token-replaced detection model to predict which label description word is the most original (i.e., least replaced) among all label description words in the prompt. A systematic evaluation on 16 datasets demonstrates that our approach outperforms few-shot learners with pre-trained masked language models in both one-sentence and two-sentence learning tasks.

View on arXivView PDF

Code Implementations(1)

AILaborer/TRD_FSLOfficial100%

This is the implementation of the paper [Pre-trained Token-replaced Detection Model as Few-shot Learner]

20PythonSep 15, 20223 years ago

Similar Papers

Cite this paper

@article{li2022pretrained,
  title  = {Pre-trained Token-replaced Detection Model as Few-shot Learner},
  author = {Zicheng Li and Shoushan Li and Guodong Zhou},
  year   = {2022},
  eprint = {2203.03235},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.03235}
}

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/2203.03235.svg)](https://codeofpaper.com/paper/2203.03235)

Discussion