Machine Learning needs Better Randomness Standards: Randomised Smoothing and PRNG-based attacks
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Randomness supports many critical functions in the field of machine learning (ML) including optimisation, data selection, privacy, and security. ML systems outsource the task of generating or harvesting randomness to the compiler, the cloud service provider or elsewhere in the toolchain. Yet there is a long history of attackers exploiting poor randomness, or even creating it -- as when the NSA put backdoors in random number generators to break cryptography. In this paper we consider whether attackers can compromise an ML system using only the randomness on which they commonly rely. We focus our effort on Randomised Smoothing, a popular approach to train certifiably robust models, and to certify specific input datapoints of an arbitrary model. We choose Randomised Smoothing since it is used for both security and safety -- to counteract adversarial examples and quantify uncertainty respectively. Under the hood, it relies on sampling Gaussian noise to explore the volume around a data point to certify that a model is not vulnerable to adversarial examples. We demonstrate an entirely novel attack, where an attacker backdoors the supplied randomness to falsely certify either an overestimate or an underestimate of robustness for up to 81 times. We demonstrate that such attacks are possible, that they require very small changes to randomness to succeed, and that they are hard to detect. As an example, we hide an attack in the random number generator and show that the randomness tests suggested by NIST fail to detect it. We advocate updating the NIST guidelines on random number testing to make them more appropriate for safety-critical and security-critical machine-learning applications.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 21 of its 62 references that are in the map. First posted on arXiv 24 Jun 2023.
Builds on
21 of 62 references.
Closest ancestors · 1
Same direction, newest first
Other references · 20
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
- 2016Federated Learning: Strategies for Improving Communication Efficiencycited by 1,461
- 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,442
- 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
- 2017Evasion Attacks against Machine Learning at Test Timecited by 686
- 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 542
- 2018Certified Robustness to Adversarial Examples with Differential Privacycited by 462
- 2019BatchBALD: Efficient and Diverse Batch Acquisition for Deep Bayesian Active Learningcited by 428
- 2018Privacy Amplification by Subsampling: Tight Analyses via Couplings and Divergencescited by 237
- 2019Bit-Flip Attack: Crushing Neural Network with Progressive Bit Searchcited by 106
- 2021Proof-of-Learning: Definitions and Practicecited by 81
8 more
- 2020On the Benefits of Invariance in Neural Networkscited by 78
- 2023Harnessing large-language models to generate private synthetic textcited by 65
- 2021Randomness In Neural Network Training: Characterizing The Impact of Toolingcited by 57
- 2022Architectural Backdoors in Neural Networkscited by 24
- 2022On the Limitations of Stochastic Pre-processing Defensescited by 21
- 2021Are We There Yet? Timing and Floating-Point Attacks on Differential Privacy Systemscited by 8
- 2022ImpNet: Imperceptible and blackbox-undetectable backdoors in compiled neural networkscited by 8
- 2020Neighbors From Hell: Voltage Attacks Against Deep Learning Accelerators on Multi-Tenant FPGAscited by 4
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 2.
6 papers.
- 2024Architectural Neural Backdoors from First Principlescited by 10
- 2025Statistical Quality and Reproducibility of Pseudorandom Number Generators in Machine Learning technologiescited by 1
- 2025Prompt Pirates Need a Map: Stealing Seeds helps Stealing Promptscited by 1
- 2025Securing generative artificial intelligence with parallel magnetic tunnel junction true randomnesscited by 1
- 2026Seed Hijacking of LLM Sampling and Quantum Random Number Defensecited by 1
- 2026One RNG to Rule Them All: How Randomness Becomes an Attack Vector in Machine Learningcited by 0
- 2026Seed Hijacking of LLM Sampling and Quantum Random Number Defense8 May 2026
- 2026One RNG to Rule Them All: How Randomness Becomes an Attack Vector in Machine Learning9 Feb 2026
- 2025Securing generative artificial intelligence with parallel magnetic tunnel junction true randomness2 Oct 2025
- 2025Prompt Pirates Need a Map: Stealing Seeds helps Stealing Prompts11 Sep 2025
- 2025Statistical Quality and Reproducibility of Pseudorandom Number Generators in Machine Learning technologies2 Jul 2025
- 2024Architectural Neural Backdoors from First Principles10 Feb 2024