Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
102 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Bidirectional Language Models Are Also Few-shot Learners (2209.14500v2)

Published 29 Sep 2022 in cs.LG and cs.CL

Abstract: LLMs such as GPT-3 (Brown et al., 2020) can perform arbitrary tasks without undergoing fine-tuning after being prompted with only a few labeled examples. An arbitrary task can be reformulated as a natural language prompt, and a LLM can be asked to generate the completion, indirectly performing the task in a paradigm known as prompt-based learning. To date, emergent prompt-based learning capabilities have mainly been demonstrated for unidirectional LLMs. However, bidirectional LLMs pre-trained on denoising objectives such as masked LLMing produce stronger learned representations for transfer learning. This motivates the possibility of prompting bidirectional models, but their pre-training objectives have made them largely incompatible with the existing prompting paradigm. We present SAP (Sequential Autoregressive Prompting), a technique that enables the prompting of bidirectional models. Utilizing the machine translation task as a case study, we prompt the bidirectional mT5 model (Xue et al., 2021) with SAP and demonstrate its few-shot and zero-shot translations outperform the few-shot translations of unidirectional models like GPT-3 and XGLM (Lin et al., 2021), despite mT5's approximately 50% fewer parameters. We further show SAP is effective on question answering and summarization. For the first time, our results demonstrate prompt-based learning is an emergent property of a broader class of LLMs, rather than only unidirectional models.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Ajay Patel (17 papers)
  2. Bryan Li (17 papers)
  3. Mohammad Sadegh Rasooli (15 papers)
  4. Noah Constant (32 papers)
  5. Colin Raffel (83 papers)
  6. Chris Callison-Burch (102 papers)
Citations (38)