Prompt-free and Efficient Few-shot Learning with Language Models

By Rabeeh Karimi Mahabadi, Luke S. Zettlemoyer, James Henderson, Marzieh Saeidi, Lambert Mathias, Ves Stoyanov, Majid Yazdani. 2022

76 citations recorded by the source corpus.

Current methods for few-shot fine-tuning of pretrained masked language models (PLMs) require carefully engineered prompts and verbalizers for each new task to convert examples into a cloze-format that the PLM can score. In this work, we propose Perfect, a simple and efficient method for few-shot fine-tuning of PLMs without relying on any such handcrafting, which is highly effective given as few as 32 data points. Perfect makes two key design choices: First, we show that manually engineered task prompts can be replaced with task-specific adapters that enable sample-efficient fine-tuning and reduce memory and storage costs by roughly factors of 5 and 100, respectively. Second, instead of using handcrafted verbalizers, we learn new multi-token label embeddings during fine-tuning, which are not tied to the model vocabulary and which allow us to avoid complex auto-regressive decoding. These embeddings are not only learnable from limited data but also enable nearly 100x faster training and inference. Experiments on a wide range of few shot NLP tasks demonstrate that Perfect, while being simple and efficient, also outperforms existing state-of-the-art few-shot learning methods. Our code is publicly available at https://github.com/rabeehk/perfect.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Large Language Models, Meta & Continual Learning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Cordelia Schmid
  3. Ivan Laptev
  4. Josef Sivic
  5. Andrew Zisserman
  6. Antoine Miech
  7. Caiming Xiong
  8. Luke S. Zettlemoyer

In Computer Vision and Pattern Recognition

  1. Cordelia Schmid
  2. Mohit Bansal
  3. Luc Van Gool
  4. Andrew Zisserman
  5. Trevor Darrell
  6. Ivan Laptev
  7. Dacheng Tao
  8. Jitendra Malik

In Large Language Models

  1. Mohit Bansal
  2. Derek Tam
  3. Ivan Laptev
  4. Josef Sivic
  5. Antoine Miech
  6. Antoine Yang
  7. Moshe Wasserblat
  8. Colin Raffel

In Meta & Continual Learning

  1. Mohit Bansal
  2. Cordelia Schmid
  3. Tyler L. Hayes
  4. Christopher Kanan
  5. Pietro Zanuttigh
  6. Umberto Michieli
  7. Ali Ayub
  8. Rahaf Aljundi

Citations in the corpus