Transformers in Pseudo-Random Number Generation: A Dual Perspective on Theory and Practice
Proceedings of the AAAI Conference on Artificial Intelligence · 14.03.2026 · 40 (27) · 23114-23122
DOI: 10.1609/aaai.v40i27.39478 ↗Kurz gefasst
Fachartikel in der Zeitschrift Proceedings of the AAAI Conference on Artificial Intelligence, online erschienen am 14.03.2026. Verfasst von Ran Li und 1 weiteren Autor:innen.
Abstract (Originalsprache)
Pseudo-random number generators (PRNGs) are high-nonlinear processes, and they are key blocks in optimization of Large language models. Transformers excel at processing complex nonlinear relationships. Thus it is reasonable to generate high-quality pseudo-random numbers based on transformers. In this paper, we explore this question from both theoretical and practical perspectives, highlighting the potential benefits and implications of Transformer in PRNGs. We theoretically demonstrate that decoder-only Transformer models with Chain-of-Thought can simulate both the Linear Congruential Generator (LCG) and Mersenne Twister (MT) PRNGs. Based on this, we conclude that the log-precision decoder-only Transformer can represent non-uniform AC0. Our simulative theoretical findings are validated through experiments. The random numbers generated by Transformer-based PRNGs successfully pass the majority of NIST tests, whose heat maps exhibit clear statistical randomness. Finally, we assess their capability in prediction attacks.
Zitieren
APA
Li, R., & Zeng, L. (2026). Transformers in Pseudo-Random Number Generation: A Dual Perspective on Theory and Practice. Proceedings of the AAAI Conference on Artificial Intelligence, 40(27), 23114-23122. https://doi.org/10.1609/aaai.v40i27.39478
Vancouver
Li R, Zeng L. Transformers in Pseudo-Random Number Generation: A Dual Perspective on Theory and Practice. Proceedings of the AAAI Conference on Artificial Intelligence. 2026;40(27):23114-23122. doi:10.1609/aaai.v40i27.39478
BibTeX
@article{Li2026,
author = {Li, Ran and Zeng, Lingshu},
title = {Transformers in Pseudo-Random Number Generation: A Dual Perspective on Theory and Practice},
journal = {Proceedings of the AAAI Conference on Artificial Intelligence},
year = {2026},
volume = {40},
number = {27},
pages = {23114--23122},
doi = {10.1609/aaai.v40i27.39478}
}
EUVIMED