Random Variate Generation with Formal Guarantees
Feras A. Saad, Wonyeol Lee

TL;DR
This paper presents a universal, automated method for generating exact random variates from any finite-precision numerical CDF with formal guarantees, optimizing for efficiency and accuracy across diverse distributions.
Contribution
It introduces a novel, fully automated approach to synthesize exact random variate generators from any numerical CDF, ensuring precision, avoiding overflow, and minimizing input bits.
Findings
Achieves higher accuracy and entropy efficiency than existing methods.
Demonstrates competitive runtime with GNU Scientific Library.
Provides a versatile library applicable to various distributions.
Abstract
This article introduces a new approach to principled and practical random variate generation with formal guarantees. The key idea is to first specify the desired probability distribution in terms of a finite-precision numerical program that defines its cumulative distribution function (CDF), and then generate exact random variates according to this CDF. We present a universal and fully automated method to synthesize exact random variate generators given any numerical CDF implemented in any binary number format, such as floating-point, fixed-point, and posits. The method is guaranteed to operate with the same precision used to specify the CDF, does not overflow, avoids expensive arbitrary-precision arithmetic, and exposes a consistent API. The method rests on a novel space-time optimal implementation for the class of generators that attain the information-theoretically optimal Knuth and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
