Catwalk: A Unified Language Model Evaluation Framework for Many Datasets

Dirk Groeneveld, Anas Awadalla, Iz Beltagy, Akshita Bhagia, Ian Magnusson, Hao Peng, Oyvind Tafjord, Pete Walsh, Kyle Richardson, Jesse Dodge

TL;DR

Catwalk is a unified evaluation framework from the Allen Institute for Artificial Intelligence (AI2) that simplifies the process of benchmarking diverse language models across hundreds of datasets. By introducing standardized abstractions for models and data formats, it reduces the engineering effort of large-scale comparisons from a combinatorial $O(n \times m)$ problem to a linear $O(n + m)$ task.

What Problem Does This Paper Address?

The rapid evolution of Large Language Models (LLMs) has created an "evaluation crisis." Researchers no longer just evaluate one model on one task; they want to compare dozens of models (BERT, GPT-3, T5, etc.) across hundreds of datasets.

However, the NLP ecosystem is highly fragmented. Every model family has a different API, and every dataset comes in a different format. To compare $n$ models on $m$ tasks, a researcher traditionally needs to write $n \times m$ custom implementation scripts. This creates a massive engineering barrier, leads to redundant code, and makes "apples-to-apples" comparisons nearly impossible to maintain at scale.

Methods

Catwalk acts as a "nexus" or a middle layer between models and datasets. Its core innovation lies in two levels of abstraction:

  1. Model Wrappers: Instead of interacting with raw model code, Catwalk uses wrappers that define how a model processes input and produces output. These include native interfaces for Ranked Classification (calculating probabilities for multiple-choice options) and BERT-style tasks, as well as adapter interfaces for existing frameworks like PromptSource or the EleutherAI LM Evaluation Harness.
  2. Unified Formats: Catwalk transforms raw datasets into standardized intermediate formats (e.g., multiple-choice, question-answering, or T5-style strings). Model implementations only need to understand these few formats rather than the quirks of hundreds of individual datasets.
Figure 1: Catwalk and its workflow.

To handle the massive compute requirements of these experiments, Catwalk is built on AI2-Tango, which provides a sophisticated caching mechanism. It reuses intermediate steps—like loaded datasets, model predictions, and even trained weights—to minimize redundant machine workloads.

A matrix showing which model styles support specific features like fine-tuning, zero-shot, and few-shot evaluation.

Datasets

Catwalk supports a staggering array of data:

  • 86 standalone datasets and curated benchmarks, totaling over 800 individual tasks.
  • Task Categories: Perplexity (WikiText, LAMBADA), Classification (GLUE, Ethics), Open-ended QA (SQuAD, TriviaQA), Multiple-choice QA (MMLU, HellaSwag, PIQA), Summarization (XSUM), and NLI (RTE, MNLI).
  • It allows users to add new datasets from the Hugging Face hub with just a few lines of configuration code.

Key Insights and Ideas

  • The Power of $n + m$: The framework's primary "aha moment" is the efficiency gain. By decoupling models from datasets, adding a new model immediately makes it evaluatable on all 800+ datasets, and adding a new dataset makes it available to all supported models.
  • Fine-tuning Still Reigns: Despite the hype around zero-shot and in-context learning, the authors found that fine-tuned models achieved a 62% greater relative improvement in accuracy over random baselines compared to zero-shot models, even when the zero-shot models were an order of magnitude larger.
  • Weak Correlations: Performance on one dataset is a poor predictor of performance on another. For example, correlations between scientific multiple-choice tasks (like ARC) were high, but correlations between "easy" tasks (SciQ) and "hard" tasks (LogiQA) were below 0.5. This highlights why broad benchmarking is essential—there is no single "best" model for everything.

Key Results

The authors conducted a massive case study comparing 30 models on 17 datasets:

  • Ease of Use: They were able to fine-tune and evaluate over 64 models on 86 datasets using a single command without writing new code.
  • Dataset Difficulty: SciQ emerged as the "easiest" dataset (averaging >200% improvement over chance), while QNLI proved the most challenging for zero-shot ranked classification, with most models barely beating a random guess.
  • T5 Anomalies: T5 variants showed unique behavior, significantly outperforming others on NLI tasks (MNLI, RTE) but falling below random baselines on linguistic tasks like CoLA and COPA, suggesting that pre-training objectives have a profound impact on downstream task suitability.

Limitations and Future Work

The authors acknowledge that evaluation is only as good as the underlying datasets, which may contain their own biases or artifacts. Furthermore, models remain highly sensitive to specific prompt formats and training regimes.

Future work involves using Catwalk to investigate deeper research questions:

  • How well does perplexity predict downstream task performance?
  • At what point during training do specific emergent abilities appear?
  • How does the number of few-shot examples quantitatively change the "ranking" of different model architectures?

Catwalk is currently the primary evaluation framework for the OLMo (Open Language Model) project and is open-sourced at github.com/allenai/catwalk.

Summary updated

BibTeX
@misc{groeneveld2023catwalk,
  author = {Dirk Groeneveld and Anas Awadalla and Iz Beltagy and Akshita Bhagia and Ian Magnusson and Hao Peng and Oyvind Tafjord and Pete Walsh and Kyle Richardson and Jesse Dodge},
  title = {{Catwalk: A Unified Language Model Evaluation Framework for Many Datasets}},
  year = {2023},
  eprint = {2312.10253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.10253},
}
Figure