arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.03904cs.LG
收藏

Transformer模型作为统计测试套件的高效替代品,用于评估随机数质量

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

Monta Vista High School(蒙塔维斯塔高中);Optum(奥普腾公司)

Rishabh Goel, YiZi Xiao, Ramin Ramezani

AI总结:

本文提出一种基于Transformer的深度学习模型,能同时快速执行多项NIST STS统计测试,以高效验证随机数质量,宏F1分数超0.96,可替代传统统计测试套件。

摘要:

随机数在众多领域中至关重要,其验证需求对于安全性而言始终不可或缺。量子随机数生成器(QRNG)理论上能够生成真正的随机数,但其质量仍需经过严格验证。通常,验证随机数的任务被委托给不同的统计测试,如NIST统计测试套件(STS)中的测试,这些测试往往速度较慢,且一次只能执行一项测试。我们的工作提出了一种利用Transformer架构的深度学习模型,该模型能够1)同时执行多项NIST STS测试,2)运行速度更快。该模型输出关于通过这些统计测试的多标签分类结果。我们进行了彻底的超参数优化,以收敛到最佳模型,并因此实现了高精度,宏F1分数超过0.96。我们还将此模型与传统的深度学习方法(长短期记忆循环神经网络)进行了比较,以量化随机性,结果表明我们的模型在实现相似性能的同时,更加高效且可扩展。这种基于Transformer的深度学习模型的高性能和高效率表明,它可以作为NIST STS验证随机数的可行替代方案。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑