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

Rishabh Goel, YiZi Xiao, Ramin Ramezani
5/6/2024
cs.LG

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{goel2024transformer,
  title  = {Transformer models as an efficient replacement for statistical test suites to evaluate the quality of random numbers},
  author = {Rishabh Goel and YiZi Xiao and Ramin Ramezani},
  year   = {2024},
  eprint = {2405.03904},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.03904v2}
}

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/2405.03904.svg)](https://codeofpaper.com/paper/2405.03904)

Discussion