When Good and Reproducible Results are a Giant with Feet of Clay: The Importance of Software Quality in NLP

Sara Papi, Marco Gaido, Andrea Pilzer, Matteo Negri
3/28/2023
22 citations
cs.CLcs.AI

Official code: hlt-mt/FBK-fairseq (60 stars, Python, PyTorch, last commit 2026-03-19). 1 more implementation below.

Abstract

Despite its crucial role in research experiments, code correctness is often presumed only on the basis of the perceived quality of results. This assumption comes with the risk of erroneous outcomes and potentially misleading findings.

Show full abstract

To address this issue, we posit that the current focus on reproducibility should go hand in hand with the emphasis on software quality. We present a case study in which we identify and fix three bugs in widely used implementations of the state-of-the-art Conformer architecture. Through experiments on speech recognition and translation in various languages, we demonstrate that the presence of bugs does not prevent the achievement of good and reproducible results, which however can lead to incorrect conclusions that potentially misguide future research. As a countermeasure, we propose a Code-quality Checklist and release pangoliNN, a library dedicated to testing neural models, with the goal of promoting coding best practices and improving research software quality within the NLP community.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
hlt-mt/FBK-fairseqOfficial60Python–2026-03-19
hlt-mt/pangolinnOfficial14PythonApache-2.02026-04-29
hlt-mt/FBK-fairseqOfficial100%
PyTorch

Repository containing the open source code of works published at the FBK MT unit.

606Python, CudaApr 2, 20228 months agoNOASSERTION
deep-learninggender-biaspytorchsimultaneous-translationspeech-to-text+2 more
hlt-mt/pangolinnOfficial100%
Apache-2.0

As a Pangolin looks for bugs and catches them, the goal of this library is ot help developers finding bugs in their neural networks and newly-created models.

140PythonMay 16, 20247 months agoApache-2.0
artificial-intelligenceneural-networksunittestunittest-frameworkunittesting+1 more

Similar Papers

Cite this paper

@article{papi2023when,
  title  = {When Good and Reproducible Results are a Giant with Feet of Clay: The Importance of Software Quality in NLP},
  author = {Sara Papi and Marco Gaido and Andrea Pilzer and Matteo Negri},
  year   = {2023},
  eprint = {2303.16166},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.16166v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.16166.svg)](https://codeofpaper.com/paper/2303.16166)

Discussion