Catwalk: A Unified Language Model Evaluation Framework for Many Datasets

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

Introduction

The evaluation paradigm in Natural Language Processing (NLP) has undergone a fundamental shift. Rather than training models for specific tasks, researchers now adapt general-purpose models to dozens of downstream applications via fine-tuning or in-context learning. However, the engineering reality remains fragmented: datasets exist in incompatible formats, and models are often tied to specific, isolated codebases.

Traditionally, comparing $n$ models across $m$ datasets required $n \times m$ custom implementations. This high barrier to entry often leads to "cherry-picked" evaluations or unfair comparisons where models are tested under inconsistent conditions. Catwalk, an open-source framework from AI2, aims to solve this by acting as a "nexus" that connects any model to any dataset through a unified abstraction layer.

Catwalk acts as a nexus between diverse models and tasks, reducing engineering overhead from n x m to n + m implementations.

Methods: A Unified Abstraction Layer

Catwalk’s core innovation is its standardized interface for data flow and metric calculation. Instead of writing custom code for every new model, Catwalk utilizes wrappers for broad architectural classes:

  • Ranked Classification: Designed for decoder-only and encoder-decoder models to calculate probabilities across answer options.
  • BERT-style: Tailored for encoder-only models performing classification or Question Answering (QA).
  • Language Models: A generic class for generation-based evaluation.
  • Adapter Interfaces: Compatibility layers for popular frameworks like PromptSource and the EleutherAI LM Evaluation Harness.
The Catwalk pipeline standardizes the flow from model selection and interface type to task execution and final metric reporting.

By transforming raw dataset instances into intermediate formats (such as T5-style strings or multiple-choice structures), a single model implementation can work across hundreds of datasets. Furthermore, Catwalk integrates with AI2-Tango to cache intermediate steps like dataset loading and model predictions, significantly reducing compute costs for iterative experiments.

Supported Datasets

Catwalk supports a library of over 800 datasets, covering a wide array of NLP challenges:

  • Perplexity: WikiText, LAMBADA.
  • Classification: CoLA, MRPC, SST-2, RAFT, PubMedQA.
  • QA (Open-ended & Multiple-choice): SQuAD, DROP, TriviaQA, ARC, HellaSwag, MMLU, WinoGrande.
  • Summarization: SciTLDR, XSUM.
  • Natural Language Inference (NLI): MNLI, QNLI, RTE, Adversarial NLI.

Key Insights and Results

The framework's utility was demonstrated through a massive case study involving 64 models and 86 datasets, executed via a single command. Several key findings emerged:

  • The Fine-tuning Advantage: Fine-tuned models (e.g., DeBERTa) showed a 62% greater relative improvement in accuracy over random baselines compared to zero-shot models, even when the zero-shot models were significantly larger.
  • Low Dataset Correlation: Performance on one dataset is a poor predictor of performance on another. Spearman correlations between tasks like LogiQA and SciQ were weak, suggesting they test distinct model abilities.
  • Architectural Outliers: T5 variants performed exceptionally well on NLI tasks but underperformed on others like CoLA. This suggests that specific pre-training objectives, like T5's span corruption, create specialized strengths that only broad benchmarking can uncover.

Limitations and Future Work

While Catwalk simplifies the evaluation process, it remains subject to the inherent quality of underlying datasets and the high sensitivity of models to specific prompt formats. Currently, the framework is primarily focused on transformer-based architectures. Moving forward, Catwalk serves as the primary evaluation tool for the OLMo (Open Language Model) project, with plans to expand its library of supported models and prompting strategies.

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 Evan 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