[Paper Review] RAFT: A Real-World Few-Shot Text Classification Benchmark
RAFT introduces a real-world few-shot text classification benchmark using naturally occurring tasks that mirror actual research assistant work, featuring 50 training examples per task and a deployment-mirroring evaluation setup. It reveals that even non-expert humans outperform GPT-3 by an average F1 of 0.11, highlighting challenges in long-text reasoning and multi-class classification that current models struggle with.
Large pre-trained language models have shown promise for few-shot learning, completing text-based tasks given only a few task-specific examples. Will models soon solve classification tasks that have so far been reserved for human research assistants? Existing benchmarks are not designed to measure progress in applied settings, and so don't directly answer this question. The RAFT benchmark (Real-world Annotated Few-shot Tasks) focuses on naturally occurring tasks and uses an evaluation setup that mirrors deployment. Baseline evaluations on RAFT reveal areas current techniques struggle with: reasoning over long texts and tasks with many classes. Human baselines show that some classification tasks are difficult for non-expert humans, reflecting that real-world value sometimes depends on domain expertise. Yet even non-expert human baseline F1 scores exceed GPT-3 by an average of 0.11. The RAFT datasets and leaderboard will track which model improvements translate into real-world benefits at https://raft.elicit.org .
Motivation & Objective
- To create a benchmark that reflects real-world few-shot text classification tasks performed by human research assistants.
- To evaluate few-shot learning performance in a setup that closely mirrors real deployment conditions, including long input texts and complex instructions.
- To identify limitations of current language models in reasoning over long documents and handling high-cardinality classification tasks.
- To establish human baseline performance on real-world tasks to measure progress toward human-level few-shot classification.
- To provide a public leaderboard and datasets to track model improvements that translate into tangible real-world benefits.
Proposed method
- The benchmark consists of 11 naturally occurring text classification datasets collected from real research workflows, each with 50 labeled training examples and a larger unlabeled test set.
- Each task includes natural language instructions and labels, with evaluation conducted via a Hugging Face-hosted leaderboard using private test labels.
- Human baselines were collected via crowdsourcing with a two-phase process: qualification (20 examples) and full annotation (100 examples), using plurality voting to resolve label conflicts.
- Automatic baselines were evaluated using models like GPT-3 and ensemble methods (e.g., AdaBoost with n-gram features), with hyperparameters tuned via leave-one-out cross-validation.
- The evaluation setup avoids closed-book restrictions and uses informative, non-binary labels to better reflect real-world task complexity.
- Unsupervised pre-training on unlabeled examples and open-domain retrieval are encouraged to simulate realistic deployment conditions.
Experimental results
Research questions
- RQ1Can current few-shot language models match human performance on real-world text classification tasks that are typically outsourced to human research assistants?
- RQ2How do models perform on tasks requiring reasoning over long input texts, a common challenge in real-world applications?
- RQ3To what extent do model capabilities in few-shot learning generalize to high-cardinality classification tasks?
- RQ4How does human performance on these tasks compare to state-of-the-art models, especially in terms of F1 score and domain expertise dependence?
- RQ5What components of the evaluation setup (e.g., label informativeness, retrieval access) most significantly affect model performance estimates?
Key findings
- Non-expert human baselines outperform GPT-3 by an average F1 score of 0.11 across the benchmark, indicating that current models fall short on real-world few-shot tasks.
- Current models struggle significantly with reasoning over long input texts, as evidenced by poor performance on datasets with lengthy documents.
- Tasks with high numbers of classes (e.g., 10+ categories) pose a major challenge, with models showing notably lower F1 scores compared to simpler multi-class tasks.
- Crowdsourced human baselines were difficult to collect on some datasets, particularly those requiring domain expertise, suggesting real-world value often depends on specialized knowledge.
- The automatic baseline using AdaBoost with n-grams achieved strong performance on some tasks, but still underperformed human baselines, especially on long-context and high-cardinality tasks.
- The RAFT benchmark and leaderboard at https://raft.elicit.org are publicly available to track real-world model improvements in few-shot text classification.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.