Questionable practices in machine learning

Gavin Leech, Juan J. Vazquez, Misha Yagudin, Niclas Kupper, Laurence AitchisonarXiv 2024 · DOI

Introduction

In the current "industrialized" era of artificial intelligence, the pressure to report State-of-the-Art (SOTA) results has reached an all-time high. This incentive structure, while driving rapid progress, has also introduced significant "Researcher Degrees of Freedom" (RDOFs)—small, often undocumented choices in the machine learning pipeline that can be manipulated to inflate performance metrics. This paper provides a comprehensive taxonomy of 44 "Questionable Research Practices" (QRPs) that contribute to a growing reproducibility crisis in the field.

The Machine Learning Pipeline

The standard machine learning workflow involves several distinct stages, from initial design to final reporting. Each of these stages presents opportunities for both intentional and unintentional biases to creep into the results.

The standard machine learning pipeline from data collection to reporting.

As shown in Figure 1, the process begins with data collection and design, moves through iterative training and validation, and concludes with evaluation on a test set and final reporting. The complexity of modern Large Language Model (LLM) pipelines exacerbates the difficulty of maintaining strict isolation between these stages, leading to potential leaks and biases.

A Taxonomy of Questionable Research Practices

The authors identify 44 specific QRPs, categorized by their occurrence in the research lifecycle. These practices range from subtle data contamination to overt misreporting.

A comprehensive taxonomy of 44 questionable research practices across the ML lifecycle.

The taxonomy (Figure 2) highlights several critical areas of concern across six stages:

1. Design and Data Collection

Practices like Inductive Smuggling or Thieved Test sets involve incorporating test-set knowledge into the model's architecture or training data. Contamination Laundering is a particularly subtle form where a "teacher" model that has seen the test set generates synthetic training data for a "student" model, effectively passing on the answers indirectly.

2. Training and Evaluation

Baseline Nerfing is a prevalent issue where researchers fail to adequately optimize competitor models, making their own approach appear superior by comparison. Similarly, Benchmark Decoration involves selecting only those benchmarks where a model happens to excel. In evaluation, Prompt Hacking or Harness Hacking can be used to find specific configurations that maximize scores on a particular test set without improving general capability.

3. Reporting and Post-Publication

Parameter Smuggling allows models to appear smaller (e.g., staying within the "7B" class) by hiding parameters in large embedding matrices. p-hacking and File Drawer effects (ignoring negative results) further distort the published literature. Post-publication, practices like Whack-a-mole involve patching specific failures reported by users to maintain an illusion of generalizability.

Quantitative Evidence of Impact

The paper cites several "smoking guns" that demonstrate the real-world impact of these practices:

  • Contamination: Gemini 1.0 Ultra’s performance on HumanEval reportedly increased from 74.4% to 89.0% after a single exposure to the test set during training.
  • Memorization: When tested on the unseen GSM1K benchmark, popular models like Mistral and Phi-3 showed a ~10% drop in accuracy compared to their scores on the original GSM8K, suggesting significant memorization of the original test set.
  • Weak Baselines: A meta-study found that 79% of papers claiming to outperform standard numerical methods for solving PDEs actually compared against under-tuned or weak baselines.

Conclusion and Future Directions

The current "self-certification" model of ML research creates a fundamental conflict of interest. To address this, the authors suggest shifting toward preregistration of analyses, similar to clinical trials, where evaluation strategies are committed to before seeing test results. Additionally, the development of automated tools for detecting contamination and "nerfing" is essential for restoring trust in machine learning benchmarks. While the 44 practices identified are likely not exhaustive, they provide a necessary framework for auditing and improving the integrity of AI research.

Summary updated

BibTeX
@misc{leech2024questionable,
  author = {Gavin Leech and Juan J. Vazquez and Misha Yagudin and Niclas Kupper and Laurence Aitchison},
  title = {{Questionable practices in machine learning}},
  year = {2024},
  eprint = {2407.12220},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.12220},
}
Figure