Reproducibility in Computational Linguistics: Is Source Code Enough?

Mohammad Arvan, Luís Pina, Natalie PardeEMNLP 2022

Abstract

The Natural Language Processing (NLP) community has made significant strides in transparency, with major conferences now requiring reproducibility checklists. However, the mere presence of a source code link does not guarantee that a study can be replicated. This paper investigates the gap between code availability and actual reproducibility. Through a meta-analysis of the ACL Anthology (2016–2022) and a hands-on "8-Paper Challenge," we demonstrate that while code sharing is at an all-time high, the success rate for reproducing results remains a low 25%. We identify "dependency hell," missing scripts, and undocumented hardware as primary barriers and propose a shift toward comprehensive "Research Artifacts."

Introduction

In the era of deep learning, NLP research has become increasingly sensitive to minute variations in software environments, hyperparameters, and hardware configurations. While checklists at conferences like ACL and EMNLP have successfully incentivized authors to share code, the community lacks a standardized definition of "reproducible." This study addresses two critical questions: Is the quantity of shared code increasing, and is the quality of that code sufficient to regenerate reported results without "reinventing the wheel"?

The Rise of Code Sharing

Our quantitative meta-analysis of the ACL Anthology reveals a clear upward trend in code availability. By scraping data from thousands of papers across five major venues (ACL, EMNLP, LREC, NAACL, and COLING), we found that the introduction of reproducibility checklists has led to a significant surge in shared repositories.

Percentage of published papers with code links across major NLP conferences (2016-2022).

As shown in the figure above, top-tier venues like EMNLP and ACL now see over 50% of published papers including code links. In contrast, venues that do not actively promote these standards, such as LREC, lag significantly behind. This suggests that institutional nudges like checklists are effective at increasing the quantity of shared artifacts.

The "8-Paper Challenge"

To evaluate the quality of these shared artifacts, we randomly selected eight papers from EMNLP 2021 that claimed to provide code. We attempted to reproduce their primary results within a fixed timeframe and computational budget, documenting every obstacle encountered. We moved beyond a binary pass/fail assessment by using the Coefficient of Variation (CV*) to measure the precision of reproduced results, quantifying how closely our regenerated numbers matched the original reports.

Reproducibility Results

The results of the challenge were sobering. Out of the eight papers, only two were successfully reproduced without significant manual intervention. The table below summarizes the availability of instructions (Inst.), dependency specifications (Dep.), and execution scripts (Scr.), alongside the final reproducibility outcome (Rep.).

Reproducibility status of the eight selected EMNLP 2021 papers.

Common failure modes included:

  • Missing Instructions: Papers 2 and 7 provided code but lacked any documentation on how to execute it.
  • Bit Rotting: Paper 3 relied on external embeddings hosted on university servers that were no longer online.
  • Dependency Issues: Paper 6 failed due to a broken URL in a third-party package (pyrouge).
  • Hardware Barriers: Several papers required specific multi-GPU configurations that were not clearly documented, making them inaccessible on standard hardware.

For the successful cases (Papers 5 and 8), the reproduced results were close to the originals, though Paper 5 showed high variance (CV*) due to the small sample sizes used in its evaluation scripts.

Discussion and Recommendations

The study highlights that "source code" is often just the logic of a model, whereas true reproducibility requires a complete Research Artifact. This includes the exact software environment (e.g., Docker containers), data processing scripts, and the specific commands used to generate every table and figure.

To improve the state of the field, we recommend:

  1. Self-Contained Artifacts: Use Docker or Virtual Machines to eliminate environment-related failures.
  2. Smoke Tests: Include scripts that run on a small data subset to verify the pipeline in minutes.
  3. Artifact Evaluation: Adopt the model used in Systems research, where reviewers verify artifacts before final publication.

Conclusion

While the NLP community is sharing more code than ever, the quality of these artifacts must improve. Moving from "code sharing" to "artifact sharing" is essential for ensuring that scientific progress is built on a stable, reproducible foundation.

Summary updated

BibTeX
@inproceedings{arvan2022reproducibility,
  author = {Mohammad Arvan and Luís Pina and Natalie Parde},
  title = {{Reproducibility in Computational Linguistics: Is Source Code Enough?}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.150},
}
Figure