mlsanityData to 14 Oct 2026

Transformer models as an efficient replacement for statistical test suites to evaluate the quality of random numbers

arXiv 2405.03904 ↗First posted 6 May 2024cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Random numbers are incredibly important in a variety of fields, and the need for their validation remains important for safety. A Quantum Random Number Generator (QRNG) can theoretically generate truly random numbers, however their quality still needs to be thoroughly validated. Generally, the task of validating random numbers has been delegated to different statistical tests such as the tests from the NIST Statistical Test Suite (STS), which are often slow and only perform one test at a time. Our work presents a deep learning model utilizing the Transformer architecture that 1) performs multiple NIST STS tests at once, and 2) runs much faster. This model outputs multi-label classification results on passing these statistical tests. We performed a thorough hyper-parameter optimization to converge on the best possible model and as a result, achieved a high degree of accuracy with a Macro F1-score of above 0.96. We also compared this model to a conventional deep learning method (Long Short Term Memory Recurrent Neural Networks) to quantify randomness and showed our model achieved similar performances while being much more efficient and scalable. The high performance and efficiency of this Transformer-based deep learning model showed that it can be a viable replacement for the NIST STS for validating random numbers.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 13 of its 39 references that are in the map. First posted on arXiv 6 May 2024.

Builds on

13 of 39 references.

References · 13

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2021Transformers in Vision: A Surveycited by 1,013
  4. 2022Efficiently Scaling Transformer Inferencecited by 539
  5. 2021A Survey of Transformerscited by 401
  6. 2020Transformers for Modeling Physical Systemscited by 106
  7. 2020Improve Transformer Models with Better Relative Position Embeddingscited by 73
  8. 2019Self-attention with Functional Time Representation Learningcited by 52
  9. 2022VSA: Learning Varied-Size Window Attention in Vision Transformerscited by 43
  10. 2019Single Headed Attention RNN: Stop Thinking With Your Headcited by 26
  11. 2021sigmoidF1: A Smooth F1 Score Surrogate Loss for Multilabel Classificationcited by 23
  12. 2023Transformers and Large Language Models for Chemistry and Drug Discoverycited by 13
1 more
  1. 2013Ensuring High-Quality Randomness in Cryptographic Key Generationcited by 2

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.