mlsanityData to 14 Oct 2026

Reproducibility, energy efficiency and performance of pseudorandom number generators in machine learning: a comparative study of python, numpy, tensorflow, and pytorch implementations

arXiv 2401.17345 ↗First posted 30 Jan 2024cs.MS cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Pseudo-Random Number Generators (PRNGs) have become ubiquitous in machine learning technologies because they are interesting for numerous methods. The field of machine learning holds the potential for substantial advancements across various domains, as exemplified by recent breakthroughs in Large Language Models (LLMs). However, despite the growing interest, persistent concerns include issues related to reproducibility and energy consumption. Reproducibility is crucial for robust scientific inquiry and explainability, while energy efficiency underscores the imperative to conserve finite global resources. This study delves into the investigation of whether the leading Pseudo-Random Number Generators (PRNGs) employed in machine learning languages, libraries, and frameworks uphold statistical quality and numerical reproducibility when compared to the original C implementation of the respective PRNG algorithms. Additionally, we aim to evaluate the time efficiency and energy consumption of various implementations. Our experiments encompass Python, NumPy, TensorFlow, and PyTorch, utilizing the Mersenne Twister, PCG, and Philox algorithms. Remarkably, we verified that the temporal performance of machine learning technologies closely aligns with that of C-based implementations, with instances of achieving even superior performances. On the other hand, it is noteworthy that ML technologies consumed only 10% more energy than their C-implementation counterparts. However, while statistical quality was found to be comparable, achieving numerical reproducibility across different platforms for identical seeds and algorithms was not achieved.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 5 of its 35 references that are in the map. First posted on arXiv 30 Jan 2024.

Builds on

5 of 35 references.

References · 5

  1. 2013Auto-Encoding Variational Bayescited by 4,053
  2. 2016Deep Networks with Stochastic Depthcited by 979
  3. 2017SARAH: A Novel Method for Machine Learning Problems Using Stochastic Recursive Gradientcited by 220
  4. 2015Adding Gradient Noise Improves Learning for Very Deep Networkscited by 145
  5. 2017Bootstrapping the Out-of-sample Predictions for Efficient and Accurate Cross-Validationcited by 12

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.