We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Computer Science & Information Technology/Statistical Quality and Reproducibility of Pseudorandom Number Generators in Machine Learning Technologies
PeriodicalsComputer Science & Information Technology

Statistical Quality and Reproducibility of Pseudorandom Number Generators in Machine Learning Technologies

Checking your access to this record.

Abstract & Overview

Machine learning (ML) frameworks rely heavily on pseudorandom number generators (PRNGs) for tasks such as data shuffling, weight initialization, dropout, and optimization. Yet, the statistical quality and reproducibility of these generators—particularly when integrated into frameworks like PyTorch, TensorFlow, and NumPy—are underexplored. In this paper, we compare the statistical quality of PRNGs used in ML frameworks (Mersenne Twister, PCG, and Philox) against their original C implementations. Using the rigorous TestU01 BigCrush test suite, we evaluate 896 independent random streams for each generator. Our results challenge claims of statistical robustness, revealing that even generators labelled "crush-resistant" (e.g., PCG, Philox) may fail certain statistical tests. Surprisingly, we can observe some differences in failure profiles between the native and framework-integrated versions of the same algorithm, highlighting some implementation differences that may exist. Mersenne Twister implementation in Pytorch and Numpy does not have the exact same failure profile as the original implementation in C. In addition, this is also the case for the TensorFlow implementation of Philox.

Cite this record

Benjamin A. Antunes (2025). Statistical Quality and Reproducibility of Pseudorandom Number Generators in Machine Learning Technologies. International Journal of Data Informatics and Intelligent Computing, 4(3), 23–32. https://doi.org/10.59461/ijdiic.v4i3.214

Copy in another style

Antunes, B. A. (2025). Statistical Quality and Reproducibility of Pseudorandom Number Generators in Machine Learning Technologies. International Journal of Data Informatics and Intelligent Computing, 4(3), 23–32. https://doi.org/10.59461/ijdiic.v4i3.214
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.