FLEX: Unifying Evaluation for Few-Shot NLP

Jonathan Bragg, Arman Cohan, Kyle Lo, Iz Beltagy
7/15/2021
114 citations
cs.CLcs.LG

Official code: allenai/flex (93 stars, Python, Apache-2.0, last commit 2022-07-12). 1 more implementation below.

Abstract

Few-shot NLP research is highly active, yet conducted in disjoint research threads with evaluation suites that lack challenging-yet-realistic testing setups and fail to employ careful experimental design. Consequently, the community does not know which techniques perform best or even if they outperform simple baselines.

Show full abstract

In response, we formulate the FLEX Principles, a set of requirements and best practices for unified, rigorous, valid, and cost-sensitive few-shot NLP evaluation. These principles include Sample Size Design, a novel approach to benchmark design that optimizes statistical accuracy and precision while keeping evaluation costs manageable. Following the principles, we release the FLEX benchmark, which includes four few-shot transfer settings, zero-shot evaluation, and a public leaderboard that covers diverse NLP tasks. In addition, we present UniFew, a prompt-based model for few-shot learning that unifies pretraining and finetuning prompt formats, eschewing complex machinery of recent prompt-based approaches in adapting downstream task formats to language model pretraining objectives. We demonstrate that despite simplicity, UniFew achieves results competitive with both popular meta-learning and prompt-based approaches.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
allenai/flexOfficial93PythonApache-2.02022-07-12
allenai/unifewCommunity18PythonApache-2.02021-09-10
allenai/flexOfficial100%
Apache-2.0

Few-shot NLP benchmark for unified, rigorous eval

935Python, RJun 4, 20214 years agoApache-2.0
allenai/unifewCommunity100%
Apache-2.0

Unifew: Unified Fewshot Learning Model

183PythonJun 4, 20215 years agoApache-2.0

Similar Papers

Cite this paper

@article{bragg2021flex,
  title  = {FLEX: Unifying Evaluation for Few-Shot NLP},
  author = {Jonathan Bragg and Arman Cohan and Kyle Lo and Iz Beltagy},
  year   = {2021},
  eprint = {2107.07170},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.07170}
}

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

Discussion