Dynatask: A Framework for Creating Dynamic AI Benchmark Tasks

Tristan Thrush, Kushal Tirumala, Anmol Gupta, Max Bartolo, Pedro Rodriguez, Tariq Kane, William Gaviria Rojas, Peter Mattson, Adina Williams, Douwe Kiela

Abstract

Traditional AI benchmarks are increasingly prone to rapid saturation, where new models surpass human-level performance within months of a dataset's release. This "saturation crisis" is exacerbated by the high engineering barrier required to create complex, interactive evaluation tasks. This paper introduces Dynatask, an open-source framework designed to democratize the creation of dynamic, model-in-the-loop benchmarks. By utilizing a declarative YAML-based configuration system, Dynatask automates the deployment of web interfaces, model hosting, and evaluation pipelines, reducing the time to launch new benchmarks from months to minutes.

1. Introduction: The Benchmark Saturation Crisis

In Natural Language Processing (NLP) and Computer Vision, benchmarks serve as the primary metrics for progress. However, the field is currently facing a significant challenge: static benchmarks are being "solved" at an unprecedented rate. While historical datasets like MNIST remained relevant for decades, modern benchmarks such as GLUE and SQuAD often see state-of-the-art models exceed human baselines in less than a year.

The standard response to this saturation is the creation of more difficult datasets. However, developing high-quality benchmarks is a resource-intensive engineering feat. It requires building custom web frontends for human annotators, setting up scalable model-hosting infrastructure for real-time interaction, and managing complex data validation pipelines. Consequently, the ability to steer the direction of AI benchmarking has been largely restricted to well-funded industrial labs. Dynatask aims to level this playing field by providing a standardized, low-code framework for benchmark creation.

2. The Dynatask Framework

Dynatask, integrated with the Dynabench platform, shifts the paradigm of benchmark creation from custom software development to declarative task configuration.

2.1 Configuration as Code

To launch a new benchmark, a researcher (the "task owner") defines the task requirements in a single YAML file. This configuration specifies:

  • Datatypes: Defines the structure of inputs (e.g., text, images, audio) and expected outputs (e.g., classification labels, probabilities, free-form text).
  • Metrics: Establishes how models are ranked, supporting standard metrics like F1 and Accuracy, as well as the "Dynascore"—a holistic metric that aggregates performance, latency, and model size.
  • UI Components: Configures the human-annotator interface, including instructions, input fields, and real-time feedback mechanisms.

2.2 Model-in-the-Loop Interaction

One of the core strengths of Dynatask is its support for dynamic data collection. Unlike static datasets, Dynatask facilitates "model-in-the-loop" workflows where human crowdworkers interact with live models. The goal is often to find "adversarial" examples—inputs that cause the model to fail but remain easily solvable for a human. This iterative process ensures that the resulting datasets specifically target the current weaknesses of state-of-the-art systems.

3. Applications and Supported Benchmarks

Dynatask has already been utilized to power several high-impact benchmarks across various AI domains:

  • ANLI (Adversarial Natural Language Inference): A benchmark for testing logical reasoning through iterative human-model interaction.
  • AdVQA: An adversarial dataset specifically designed for Visual Question Answering.
  • FLORES: A massive machine translation benchmark covering over 10,000 language pairs, facilitating progress in low-resource language modeling.
  • DynaSent: A dynamic benchmark for sentiment analysis that evolves to capture linguistic nuances that static sets miss.
  • DataPerf: A task focused on benchmarking the quality of datasets themselves rather than just model architectures.

4. Key Results and Impact

The deployment of Dynatask has demonstrated significant improvements in both the efficiency and scale of AI evaluation:

  • Engineering Efficiency: Tasks that previously required months of dedicated engineering time, such as Hate Speech detection or Open Domain QA, can now be implemented and deployed in minutes via YAML configuration.
  • Platform Scale: At the time of publication, the platform hosted 191 datasets and had successfully collected over 559,000 examples from a diverse pool of more than 5,500 unique crowdworkers.
  • Driving Innovation: The FLORES translation task hosted on the platform directly contributed to rapid improvements in the field, with competitors achieving a BLEU score increase of over 10 points during the competition period.

5. Limitations and Future Work

While Dynatask significantly lowers the technical barrier to entry, certain challenges remain:

  • Administrative Oversight: To maintain quality and prevent spam, new tasks currently require manual approval from Dynabench administrators, creating a potential bottleneck for total decentralization.
  • Incentive Structures: While the framework provides the interface, task owners remain responsible for the logistics and funding of crowdworker sourcing (e.g., via Amazon Mechanical Turk).
  • Extensibility: While the YAML system is highly flexible, extremely niche tasks may still require the addition of new datatypes or metrics to the core Dynatask library through traditional code contributions.

6. Conclusion

Dynatask represents a shift toward a more "data-centric" approach to AI. By automating the engineering complexities of benchmark creation, the framework allows researchers to focus on identifying and fixing the fundamental weaknesses in AI models. As models continue to improve at an exponential rate, dynamic frameworks like Dynatask will be essential for maintaining rigorous and meaningful standards for AI progress.

Summary updated

BibTeX
@inproceedings{thrush2022dynatask,
  author = {Tristan Thrush and Kushal Tirumala and Anmol Gupta and Max Bartolo and Pedro Rodriguez and Tariq Kane and William Gaviria Rojas and Peter Mattson and Adina Williams and Douwe Kiela},
  title = {{Dynatask: A Framework for Creating Dynamic AI Benchmark Tasks}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-demo.17},
}
Figure