Manuscript Offprint
arXiv:2609.10921Quasi-Monte Carlo Beyond Hardy-Krause II: Samples Suffice
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Numerical integration studies how well one can estimate the integral of a function over using sample points. The two classical methods, Monte Carlo (MC) and quasi-Monte Carlo (QMC), have complementary strengths and weaknesses, and a fundamental question is to design an approach that combines the benefits of both. Recently, building on the transference principle in discrepancy theory, Bansal and Jiang [BJ25] gave a randomized QMC method that bridges MC and QMC guarantees using only i.i.d. samples. Their method also goes beyond the classical Koksma–Hlawka inequality: it achieves integration error , where the smoothed-out variation can be substantially smaller than the Hardy–Krause variation that governs the classical bound. However, their algorithm requires i.i.d. samples as input, and this quadratic blowup is inherent to any method based on the transference principle.
In this work, we bypass the quadratic blowup: for any constant , we show that i.i.d. samples suffice to both obtain the beyond-Hardy–Krause guarantee of [BJ25], resolving an open problem posed there, and to produce low-discrepancy point sequences. Our algorithms are variants of the online Haar-thinning method of Dwivedi, Feldheim, Gurel-Gurevich, and Ramdas [DFGGR19]. Specifically, from i.i.d. samples:
-
The uniformly-shifted Haar-thinning algorithm retains samples with integration error , matching the bound of Bansal and Jiang [BJ25].
-
The linear-feedback Haar-thinning algorithm retains samples with star discrepancy , improving the bound of [DFGGR19] and attaining their conjectured bound. Our bound nearly matches the best known bound achieved by explicit constructions of point sequences [Hal60, Sob67, Fau82, Nie87].
Both algorithms are online, never discard two consecutive samples, and spend time to process each sample. At the heart of our analysis is a new property of Haar-thinning strategies, which we establish via a symmetry argument: the discrepancies of distinct low-order Haar functions are uncorrelated.
*University of Chicago, Chicago, IL, USA. ekene@uchicago.edu.
University of Chicago, Chicago, IL, USA. agastyajha@uchicago.edu.
University of Chicago, Chicago, IL, USA. jhtdavid@uchicago.edu.
Contents
1 Introduction 1
1.1 Our Results 2
1.2 Overview 3
1.3 Further Related Work 5
2 Preliminaries 6
2.1 The -Thinning Framework 7
3 QMC Beyond Hardy–Krause via Samples 8
3.1 The Uniformly-Shifted Haar-Thinning Algorithm 8
3.2 Low-Order Haar Discrepancies Are Uncorrelated 9
3.3 Proof of Theorem 1.2 12
3.4 Bounds on the Low- and High-Order Components 13
4 A -Thinning Strategy for Star Discrepancy 15
4.1 The Linear-Feedback Haar-Thinning Algorithm 16
4.2 Concentration for Linear Functions of Haar Discrepancies 16
4.3 Wrapping Things Up 19
Monte Carlo Methods. The Monte Carlo (MC) method chooses the n points of A independently and uniformly at random. As it requires only random samples, MC is highly flexible and widely used in practice. The downside is its slow convergence rate: its mean-squared error is
where is the standard deviation of . Hence the error decays only as . Equivalently, samples are needed to achieve error , which can be prohibitive when samples are expensive to obtain or is expensive to evaluate (e.g., [Gla03, Fis05]).
Quasi-Monte Carlo Methods. Quasi-Monte Carlo (QMC) methods give up the flexibility of random sampling and instead carefully choose a deterministic point set A. The classical Koksma–Hlawka inequality [Kok42, Hla61, Zar68] bounds the QMC error as
Here, is the Hardy–Krause variation of , and is the star discrepancy of , where the supremum is over all anchored boxes of the form . Intuitively, measures the uniformity of with respect to anchored boxes.
As the Koksma–Hlawka inequality (2) is tight in general, much of the work on QMC has focused on constructing point sets with small (e.g., see [Nie92, DP10]). The best known point sequences achieve for all simultaneously, where is the set of the first points of the sequence [Hal60, Sob67, Fau82, Nie87]. Plugging this bound into (2) gives an error of , i.e., a faster convergence rate of in place of the rate of MC, which is what makes QMC methods widely applied in practice [Lem09, Mat09, DKPS13, Owe13].
Despite their faster convergence rate, QMC methods have two well-known limitations. First, for fast-varying functions, can be much larger than (e.g., but for ), so the QMC bound (2) can be far worse than the MC bound (1). Second, QMC evaluates f on a fixed point set, which is impossible in applications where only random samples are available. Given these complementary strengths and weaknesses, a fundamental problem in numerical integration is to design a method that combines the benefits of both MC and QMC.
In the literature, the star discrepancy is also often referred to as the continuous discrepancy or the Lebesgue measure discrepancy for anchored boxes. Anchored boxes are also often referred to as corners.
A point sequence is an infinite sequence whose first points are required to have small star discrepancy simultaneously for every . A point set, in contrast, is designed for a single fixed and the construction may differ for different . The point set notion is strictly weaker: the best known -point sets achieve [Ham60, Nie87, DP10], while the best known sequences achieve [Hal60, Fau82, Nie87]; for this gap is provably necessary [Sch72]. We work with sequences: they are the standard object in QMC practice, where is rarely known in advance, and they are what our online algorithms naturally produce.
Throughout, hides factors, and hides factors. In the context of QMC, the dimension should be viewed as a constant.
Quasi-Monte Carlo Beyond Hardy–Krause. Recently, Bansal and Jiang [BJ25] made substantial progress in this direction, bypassing previous limitations [Mat09, Lem09, DP10, Owe13]. Specifically, they gave a randomized QMC method that achieves not only the best of MC and QMC guarantees, but also a surprising improvement over Koksma–Hlawka inequalities: their algorithm has error , where is the smoothed-out variation of , which is substantially smaller than the Hardy–Krause variation in (2). Their main result is the following.
Theorem 1.1 ([BJ25]). There is an online randomized algorithm that takes as input i.i.d. uniform samples from and, in time, partitions them into sets each of size . Each of these sets satisfies the following: for any function with finite ,
The Need for Samples. Despite its strong guarantees, the algorithm in [BJ25] requires samples to begin with and running time, even to produce a single QMC set. This quadratic blowup in the number of initial samples (and hence running time) comes from their use of the transference principle in geometric discrepancy theory (e.g., see [Mat09, ABN16]), and is inherent to any method based on this principle. To address this issue, Bansal and Jiang asked [BJ25, Section 6] whether there is an algorithm that can achieve their improvement over Hardy–Krause variation and the Koksma–Hlawka inequality but only requires samples and running time.
1.1 Our Results
Our main result is a positive answer to the above question of Bansal and Jiang. In fact, we show that samples already suffice to achieve their beyond-Hardy–Krause error bound.
Theorem 1.2 (QMC beyond Hardy–Krause via samples). Fix an arbitrary constant . There is a randomized algorithm that, for any , takes as input i.i.d. uniform samples from and outputs with high probability a subset of samples such that for any function with finite ,
Moreover, the algorithm is online, never discards two consecutive samples, and spends time to process each sample.
Online Thinning. To bypass the quadratic blowup in the number of initial samples, we abandon the transference principle entirely and instead consider the online thinning framework of Dwivedi, Feldheim, Gurel-Gurevich, and Ramdas [DFGGR19]. Here, samples arrive one at a time, and upon seeing a sample, the algorithm must decide whether to retain or discard it (based on the samples retained so far), and in case it discards a sample, it must retain the next one.
In this model, [DFGGR19] gave an elegant algorithm called Haar-thinning: from samples, with high probability, it retains samples with star discrepancy , which already recovers the classical QMC bound of by the Koksma–Hlawka inequality (2).
To achieve the beyond-Hardy–Krause guarantee in Theorem 1.2 and [BJ25], we use a uniformly-shifted variant of the Haar-thinning strategy. Key to our analysis is a new property of Haar-thinning
Throughout, the dependence on in our bounds is . The polylogarithmic factor hidden in in Theorem 1.2 is , which also matches that of [BJ25].
strategies, which we establish via a novel symmetry argument: the discrepancies of distinct low-order Haar functions are uncorrelated (see Section 3.2).
Low-Discrepancy Sequences via Online Thinning. Our second contribution is an improvement to the star discrepancy bound of [DFGGR19]. Dwivedi, Feldheim, Gurel-Gurevich, and Ramdas conjectured in [DFGGR19, Conjecture 2] that a greedy version of their Haar-thinning strategy attains star discrepancy . While it is still unclear how to analyze their proposed greedy strategy, we give a new variant of Haar-thinning that we call linear-feedback Haar-thinning which attains their conjectured bound.
Theorem 1.3 (Low-discrepancy point sequences via samples). Fix an arbitrary constant . There is a randomized algorithm which, given , takes as input i.i.d. uniform samples from and outputs with high probability a subset of samples that satisfies
Moreover, the algorithm is online, never discards two consecutive samples, and spends time to process each sample.
The algorithm in Theorem 1.3 produces a point sequence, matching the best known bound for explicit point sequences [Hal60, Sob67, Fau82, Nie87] up to a log n factor.
Roadmap. We begin with an overview of our techniques in Section 1.2. Then in Section 2, we collect the preliminaries and describe the online thinning framework from [DFGGR19]. We present the uniformly-shifted Haar-thinning algorithm in Section 3 and prove Theorem 1.2. Finally, we give the linear-feedback Haar-thinning algorithm for Theorem 1.3 in Section 4.
1.2 Overview
In this subsection, we give an overview of our techniques. We start with a brief recap of Bansal and Jiang's QMC method [BJ25] and explain why it requires initial samples. We then discuss the Haar-thinning strategy of [DFGGR19], and present our variants of it that attain the QMC bound in [BJ25] and an improved star discrepancy bound using only samples.
1.2.1 The Bansal–Jiang QMC Method
The Bansal–Jiang method is based on the transference principle. It starts from i.i.d. uniform samples from , and iteratively thins them down as follows: at each step, it computes a balanced -coloring of the current samples with both low discrepancy and sufficient randomness for dyadic rectangles (of side length )—the two colors then split the current samples into two equal-sized halves. Iterating this process for steps splits the samples into sets of size each. Using the properties above, Bansal and Jiang found cancellations missed by the Koksma–Hlawka inequality (2), which led to their beyond-Hardy–Krause error bound in Theorem 1.1.
The Inherent Quadratic Blowup. Despite the strong guarantees, Bansal and Jiang's method requires samples to begin with, even to produce a single QMC set. This quadratic blowup is in fact inherent to any method based on the transference principle: the integration error from any such method is at least the Monte Carlo error of the initial sample pool, which can only be bounded by when the initial sample size exceeds .
1.2.2 The Haar-Thinning Strategy
To bypass the quadratic blowup, we completely abandon the transference principle, and consider the alternative online thinning framework of [DFGGR19]. Here, samples arrive one at a time, and upon seeing a sample, the algorithm must decide whether to retain or discard it based on the samples retained so far; and in case it discards a sample, it must retain the next one. Clearly, the amount of over-sampling is determined by the probability of rejecting each sample.
In this model, Dwivedi, Feldheim, Gurel-Gurevich, and Ramdas [DFGGR19] gave a beautiful strategy called Haar-thinning that, from samples, retains samples (by rejecting each sample with probability at most ) with star discrepancy . This already recovers the classical QMC error bound of by the Koksma–Hlawka inequality (2).
Haar-Thinning as Rejection Sampling. Roughly speaking, the Haar-thinning strategy is a rejection sampling method based on “votes” from all Haar functions (up to order ): upon receiving each sample , the Haar functions whose discrepancies will increase (resp. decrease) from retaining will vote “REJECT” (resp. “ACCEPT”), and those not affected by will not vote. Here, the discrepancy of each Haar function at step is , where denotes the samples retained prior to step . Then the Haar-thinning strategy rejects the sample (and hence commits to the next sample) with probability roughly
Note that since any sample lies in at most Haar functions, the rejection probability in (3) is always in , so this strategy indeed uses at most samples.
An ingenious insight used in [DFGGR19] to prove their star discrepancy bound is the following: because distinct Haar functions are orthogonal, the rejection rule (3) actually reduces the discrepancy of every Haar function on average. In particular, the slight bias in (3) ensures that each has a negative drift of towards 0, and hence cannot exceed with high probability. Their star discrepancy bound then follows from a standard Haar decomposition of each anchored box, which involves at most Haar functions.
1.2.3 Beyond-Hardy–Krause via Uncorrelation of Haar Discrepancies
To recover the beyond-Hardy–Krause guarantee in [BJ25], our key technical insight is a new uncorrelation property for the Haar-thinning strategy: at any step , while the discrepancies of different Haar functions are highly dependent due to their overlaps, they are in fact uncorrelated, i.e., for any distinct Haar functions and (up to order ).
This property cannot be established by a per-step analysis, as the bias in the voting rule (3) (and hence the density of the next retained sample) breaks the orthogonality of the Haar basis. Instead, we use a symmetry argument—by defining a bijection that flips the two halves of in some dimension (so that flips its sign while remains the same), we show that the Haar-thinning strategy commutes with the mapping and thus and have the same distribution. We postpone the details to Section 3.2.
Uniformly-Shifted Haar-Thinning. With the above uncorrelation property, we consider a uniformly-shifted variant of the Haar-thinning strategy where the Haar basis functions are all shifted
Intuitively, as each Haar function is mean-zero (i.e., ), can be viewed as a continuous notion of discrepancy for functions which is analogous to the star discrepancy .
by . For the integration error, one can equivalently view the shift as being applied to the function , while the algorithm remains the same as the Haar-thinning strategy.
We show that this algorithm achieves the beyond-Hardy–Krause error bound in Theorem 1.2 via the streamlined analysis in [CJJ26] that directly works with the Haar basis. In particular, the uncorrelation property for the Haar discrepancies gives the cancellation needed to go beyond the Hardy–Krause variation; and the random shift s allows one to pass from the integration error in the Haar basis, which is captured by the Haar–Besov seminorm (see Definition 2.1), to the smoothed-out variation (see Theorem 2.2). We leave the details to Section 3.
1.2.4 Achieving Lower Star Discrepancy via Online Thinning
The uncorrelation of Haar discrepancies turns out to buy us more than just the beyond-Hardy–Krause error bound in [BJ25] for numerical integration: it also allows us to improve upon the star discrepancy bound of [DFGGR19] as follows.
Specifically, in their analysis (recall the last paragraph of Section 1.2.2), when writing each anchored box as the weighed sum of Haar functions, the uncorrelation property allows these Haar discrepancies to add up in an way—this directly gives an improved star discrepancy bound for the Haar-thinning strategy, settling [DFGGR19, Conjecture 1].
However, the Haar-thinning strategy falls short of achieving the bound in Theorem 1.3. The main bottleneck here is that the drift towards 0 is only on the order of for each Haar function, and hence the discrepancy of each single Haar function may go up to .
Linear-Feedback Haar-Thinning. To bypass the above issue, we consider a linear-feedback variant of the Haar-thinning strategy: instead of just letting each Haar function vote “REJECT” or “ACCEPT”, we also have each vote carry the weight of the corresponding Haar discrepancy and use a rejection sampling rule based on the weighted difference of the votes:
Intuitively, the Haar functions with larger discrepancies now have a stronger drift towards 0 that is proportional to their discrepancies. This allows us to control the Haar discrepancies to be on the much smaller order of , which leads to Theorem 1.3.
Note that one potential issue with the rejection sampling rule (3) is that the total weights of all Haar functions affected by the current sample may go up to , and hence (3) might be an invalid rejection probability. Nonetheless, we are able to show that (3) remains bounded in with high probability via a delicate martingale analysis. See Section 4 for the details.
1.3 Further Related Work
Low-Discrepancy Point Sets and Sequences. Low-discrepancy point sets and sequences have been central to geometric discrepancy theory since the ground-breaking work of van der Corput [vdC35a, vdC35b], who showed that the star discrepancy for is as opposed to attained by i.i.d. random samples or the grid. The result of van der Corput has since been extended, giving the current best star discrepancy bound of for point sets (e.g., [Ham60, Nie87, Nie92]) and for point sequences (e.g., [Hal60, Sob67, Fau82, Nie87]). These constructions have found important applications to numerical integration [Kok42, Hla61, Zar68] and have been extensively studied in this context since then [Lem09, DP10, DKPS13, Owe13].
Interestingly, the optimal star discrepancy bound for point sets and sequences remains unknown when . For , Schmidt [Sch72] proved the optimal lower bound of for point sets (or point sequences in 1-d). Later, Halász [Hal81] gave an elegant new proof of Schmidt's lower bound using a Riesz product. For , the best lower bound is essentially from Roth's seminal work [Rot54], with small improvements given in [Bec89, BL08, BLV08].
Non-Uniform Distribution. While the uniform distribution is standard when studying the star discrepancy or numerical integration, the generalizations of these notions to non-uniform distributions have also been studied. We refer readers to [AD14, ABN16] and the references therein.
Variants of the online thinning problem where the underlying distribution is non-uniform have also been studied recently. In these contexts, the Haar functions seem less useful as they no longer form an orthogonal basis. We refer readers to the recent work [SV26b, SV26a] for details.
2 Preliminaries
This section introduces the notation and preliminaries used throughout the paper.
Haar Functions and Boxes. For integers and , let denote the one-dimensional Haar function that equals 1 on , equals -1 on , and is zero elsewhere. We also let denote the constant function 1 on . For vectors and , define the multidimensional Haar function on by . We write for the -norm of , namely . We note that the Haar functions form an orthogonal basis for under the inner product .
We abuse notation and use to denote both the collection of non-constant Haar functions with for every and the orthogonal projection onto their span. Likewise, denotes both the remaining nonconstant Haar functions and the orthogonal projection onto their span. Further, we use to denote the .
Haar–Besov Seminorm and Equivalence. The Haar–Besov seminorm is central to our analysis. We refer the reader to [Vyb06, Tri19] for background.
Definition 2.1 (Haar–Besov Seminorm). The Haar–Besov seminorm of is
where are all tuples that satisfy and for every .
For a function on and a shift , define . It was shown in [CJJ26] that the average of the squared Haar–Besov seminorm of over a uniform random shift is equivalent to the squared smoothed-out variation introduced in [BJ25].
Theorem 2.2 (Shift-averaged seminorm equivalence). For any , its average Haar–Besov seminorm over random shifts is equivalent to its smoothed-out variation:
where and denotes the Fourier coefficient corresponding to frequency in .
We do not discuss in detail because our analysis works entirely in the Haar basis. We use Theorem 2.2 as a black box to translate our final bound into this error characterization.
Boxes and Star Discrepancy. We use to denote the set of all anchored boxes, i.e., boxes of the form for . We use to denote the set of all grid boxes, where each edge is of the form for integers .
For a finite point set and any Lebesgue-measurable set , define the continuous discrepancy, or the Lebesgue-measure discrepancy, of with respect to as
where is the Lebesgue measure of R. The star discrepancy of A is defined as
2.1 The -Thinning Framework
Both of our algorithms use the -online thinning framework introduced in [DFGGR19]. Fix , they start from an empty set and, at each step , perform rejection sampling with some target density on , where for all . Specifically, for each step , they perform the following step:
- Sample and . If , add to . Otherwise, sample and add to .
Note that the strategy never rejects two consecutive samples in this framework. Denote by the sample added to A at step t. The following is a basic fact about rejection-sampling.
Fact 2.3 ([DFGGR19]). At each step t, the retained point has density .
For each step , let be the set of points retained by the strategy in steps , i.e., and let be its output. For any Haar function , we denote its discrepancy at step as .
An important property of the strategy is that it samples at most points.
Proposition 2.4. With high probability, any -online thinning strategy as defined above uses at most samples.
Proof. Note that at each step , the algorithm draws a second sample with probability at most , since . Therefore, by Chernoff's inequality (e.g., see [Ver18]) the probability that the algorithm uses more than samples is bounded by .
Finally, we conclude Section 2 by expressing the continuous discrepancy in terms of the Haar coefficients of and the Haar-discrepancy vector for every grid box .
Observation 2.5. For any grid box and any step , we have
Proof. Fix a rectangle . Since its indicator over (which, by an abuse of notation, we also denote by ) is constant on every dyadic box of level , it lies in the span of the Haar functions in together with the constant function . Expanding in the Haar basis gives
where the equalities above use that and .
3 QMC Beyond Hardy–Krause via Samples
In this section, we prove Theorem 1.2, restated below.
Theorem 1.2 (QMC beyond Hardy–Krause via samples). Fix an arbitrary constant . There is a randomized algorithm that, for any , takes as input i.i.d. uniform samples from and outputs with high probability a subset of samples such that for any function with finite ,
Moreover, the algorithm is online, never discards two consecutive samples, and spends time to process each sample.
The polylogarithmic factor hidden in the of Theorem 1.2 can be taken to be , matching the bound of [BJ25] (see [CJJ26]). In this section, we prove Theorem 1.2 with a slightly weaker factor of order , as the algorithm and its analysis are simpler and already contain the main ideas. The factor can be obtained by combining the algorithm of Section 4 with the random shift introduced here.
3.1 The Uniformly-Shifted Haar-Thinning Algorithm
Fix and let . Let denote the number of scale vectors . The Haar-thinning strategy of [DFGGR19] is an instance of the thinning framework of Section 2.1, with the target density at step set to
where is the sign function with the convention that .
For every and every scale vector , exactly one of the Haar functions is nonzero at , where it takes the value . Hence at most terms of the sum in (7) are nonzero at , and
The Haar-thinning in [DFGGR19] uses a slightly different target density from (7), where they set to be dependent on the current step . This difference is minor and is mainly to produce a point sequence. Here we use the target density (7) to keep the algorithm and our analysis cleaner.
Moreover, , as every non-constant Haar function has mean zero. Thus is a probability density satisfying the requirement of the -thinning framework in Section 2.1.
Uniformly-Shifted Haar-Thinning. Our algorithm is a uniformly-shifted variant of the Haar-thinning strategy above. It first draws a uniformly random shift , and then, upon receiving the samples , simulates the Haar-thinning strategy on the shifted sequence for steps, where all shifts in this section are taken modulo : whenever the Haar-thinning strategy retains , our algorithm retains the sample . We write for the random set of samples output by this uniformly-shifted Haar-thinning algorithm.
Shifting the Points Is Equivalent to Shifting the Function. Fix the shift . By construction, the set is the output of the Haar-thinning strategy on the input sequence . Moreover, for every ,
where is the shifted function from Section 2. Finally, as the uniform distribution on is shift-invariant, the shifted sequence is again a sequence of i.i.d. uniform samples. Hence, conditioned on , the set has the same distribution as the output of the Haar-thinning strategy on the original samples. Taking expectation gives the following.
Observation 3.1 (Shifting the function). For every ,
where the inner expectation on the right-hand side is over the randomness of the (unshifted) Haar-thinning strategy, for a fixed shift s.
Roadmap. By Observation 3.1, it suffices to bound for the unshifted Haar-thinning strategy and a fixed shift , and then to average over ; this is what we do in the remainder of this section. The key new ingredient is the uncorrelation property of low-order Haar discrepancies, which we prove in Section 3.2 via a symmetry argument. In Section 3.3, we reduce Theorem 1.2 to bounds on the integration errors of the low- and high-order Haar components of ; these bounds are proved in Section 3.4, following the streamlined analysis of [CJJ26]. The final passage from the Haar–Besov seminorm of to uses the shift-averaged equivalence of Theorem 2.2.
3.2 Low-Order Haar Discrepancies Are Uncorrelated
The key new ingredient in our analysis is the following uncorrelation property of the discrepancies of distinct low-order Haar functions.
Lemma 3.1.1 (Uncorrelated Haar discrepancies). For every and every two distinct Haar functions , we have .
Proof of Lemma 3.1.1. The proof is a symmetry argument. We construct an involution on , i.e., , with two properties. First, the Haar-thinning strategy “commutes” with : conditioning on the randomness in the rejection steps, if every sample presented to the strategy is replaced by its image under , then the retained set is replaced by its image under as well. Hence the transformation can be viewed as “swapping” pairs of runs of the Haar-thinning strategy with the same probability density, so does not change the distribution of . Second, flips the sign of while leaving unchanged. Together, these two properties show that and have the same distribution, and hence the same (zero) expectation.
The Map . Write and . As , there is a coordinate in which their one-dimensional factors differ, i.e., . Since the roles of and are symmetric, we may assume that ; then , as otherwise both factors would equal . To lighten notation, write and . Let , and let and denote the left and right halves of , on which equals +1 and -1, respectively. Define by for and
In other words, swaps the two halves of in coordinate and leaves everything else unchanged. Clearly, is an involution on , i.e., is the identity map. We write for the one-dimensional map that swaps and and fixes , so that .
Action of T on Low-Order Haar Functions. The next claim shows that composing with T permutes the Haar functions in , up to sign.
Claim 3.2. There are a map and an involution such that
Moreover, , , , and .
Proof of Claim 3.2. Fix and let be its factor in coordinate . Since only modifies coordinate , the function is obtained from by replacing the factor with . We distinguish three cases.
Case 1: , or and . If , then is constant on every dyadic interval of length (for , it is constant on all of ), and , being a dyadic interval of length , is contained in one such interval; hence is constant on . If instead , then vanishes on . In either case, since maps onto itself and fixes its complement, we have , and so . We set and .
Case 2: . Then equals +1 on , -1 on , and 0 outside . As swaps and and fixes the complement of , we have , and so . We set and .
Case 3: and . Since and are intersecting dyadic intervals with , the support of is contained in one of the two halves or . On this half, is a translation onto the other half, by if the half is and by if the half is . Hence is the translate of by or , respectively. Since is an integer multiple of , this translate is again a Haar function at scale , namely with or , respectively. Thus where is obtained from by replacing the factor with . We set and .
In all three cases, (10) holds with , as never changes the scale vector of . To see that is an involution, apply (10) twice: . Since distinct Haar functions are linearly independent, this forces .
Finally, the factor of in coordinate is , so falls into Case 2: and . The factor of in coordinate is with and . If , then falls into
Case 1. If , then , so and are distinct dyadic intervals of the same length and are therefore disjoint; again falls into Case 1. Hence and .
The Haar-Thinning Strategy Commutes with . Recall from Section 2.1 that at step the strategy draws and , retains if , and otherwise draws and retains a fresh sample . Consider the transformed run, in which the same strategy is executed with the same but with and in place of and , for every . We denote its retained sets, discrepancy vectors, and target densities by and respectively.
Claim 3.3. For every , we have and, for every ,
Proof of Claim 3.3. We first note that implies (11) at step : by (10), for every ,
It therefore suffices to show that for every , which we do by induction on . For , both sets are empty. Now let and suppose that , so that (11) holds at step . Substituting (11) and (10) into the definition (7) of the target density, we obtain for every
where the third equality uses that is odd, so that for , and the fourth re-indexes the sum via the bijection . Consequently, the transformed run retains at step if and only if , i.e., if and only if the original run retains ; otherwise, both runs retain their second sample, and , respectively. In either case, the point retained by the transformed run at step is the image under of the point retained by the original run, and hence .
Completing the Proof. Since preserves the Lebesgue measure on , the transformed input stream has the same distribution as the original stream , namely, all its entries are independent and uniformly distributed. The transformed run is therefore a run of the Haar-thinning strategy on a correctly distributed input stream, and so has the same distribution as for every . On the other hand, by Claim 3.2 and Claim 3.3, and . Hence,
which implies that , as claimed.
Remark 3.4. The proof of Lemma 3.1.1 gives more than uncorrelation. In fact, the same argument shows that and have the same distribution for every . Also, the proof never uses that , so Lemma 3.1.1 holds for any two distinct Haar functions and .
We complement Lemma 3.1.1 with a bound on for any by , which will be used in the proof of Lemma 3.5.1.
Lemma 3.4.1 (Second moments of Haar discrepancies). For every step t and every ,
Proof of Lemma 3.4.1. Fix and set . For every step , we define
As , using Taylor expansion for at gives
where we absorbed the higher-order terms into the second-order term since . Taking the conditional expectation on both sides above gives
Note that by (7) and (8), we have
Plugging these bounds into (12) and using that for all gives
Taking expectation on both sides above and using that , an induction argument then gives for every step .
Finally, using , we have
which implies that .
3.3 Proof of Theorem 1.2
Recall from Observation 3.1 that , where is the output of the (unshifted) Haar-thinning strategy and the inner expectation is over its randomness. Throughout, we may assume that , and hence for every shift , by replacing with .
As in [CJJ26], we split the error into the contributions of the low-order Haar components and the high-order Haar components , and bound the two separately.
Recall that excludes the constant function , whose discrepancy is deterministic.
Proposition 3.5 (Error decomposition). For every and every finite set ,
Proof. Since is linear and , we have , and the claim follows from .
The two contributions are bounded in terms of the Haar–Besov seminorm of Definition 2.1. In the following two lemmas, the expectation is only over the randomness of the Haar-thinning strategy. The lemmas are proved in Section 3.4.
Lemma 3.5.1 (Low-order error). For every with ,
Lemma 3.5.2 (High-order error). For every ,
We prove these lemmas in Section 3.4. Here, we first prove Theorem 1.2 assuming the lemmas.
Proof of Theorem 1.2 assuming the lemmas. Fix a shift s and apply Proposition 3.5 to , which has mean zero. By Lemma 3.5.1 and Lemma 3.5.2,
where the expectations are over the randomness of the strategy. Taking the expectation over and using Observation 3.1 and Theorem 2.2, we obtain
which gives the error bound of Theorem 1.2.
It remains to verify the other properties claimed in Theorem 1.2. The uniformly-shifted Haar-thinning algorithm is online and never discards two consecutive samples, by the definition of the thinning framework in Section 2.1. Proposition 2.4 shows that it retains points from at most samples with high probability. Finally, each step evaluates at a single point . Since at most Haar functions in are nonzero at (one for each scale vector), is a sum of at most terms, and retaining the point changes only for these Haar functions . Storing the nonzero entries of in a dictionary, each step therefore takes time.
3.4 Bounds on the Low- and High-Order Components
We now prove Lemma 3.5.1 and Lemma 3.5.2 respectively in the next two subsections.
3.4.1 Bounds on the Low-Order Component
Assume as in Lemma 3.5.1, which implies that for the constant Haar function . Writing with , we have
where . Thus the second moment of the low-order error is a quadratic form of the second-moment matrix , which can be controlled by Lemma 3.1.1 and Lemma 3.4.1.
Proof of Lemma 3.5.1. By (13), Lemma 3.1.1, and Lemma 3.4.1, we can bound
This completes the proof of the lemma.
3.4.2 Bounds on the High-Order Component
Throughout this subsection, we use to denote the expectation conditioned on the randomness of the Haar-thinning strategy in steps .
Our main observation is that the additive terms in (7), and hence , are all orthogonal to Haar functions of order . This gives the following lemma.
Lemma 3.5.3 (Orthogonality of increments). Set . For every step ,
Consequently,
Proof. Since is orthogonal to Haar functions of order , we have , and thus
where we used that the high-order Haar component has mean zero. For the second bound, using that for every , we have
For the consequence, expand
For , the value is already fixed before step . Therefore,
Using the bound on the conditional second moments now gives the claim.
Proof of Lemma 3.5.2. By Lemma 3.5.3,
It therefore remains only to bound the -norm of the high-order component .
Let be a Haar function appearing in , so that . Then there is some coordinate for which . Since is a tensor product of one-dimensional Haar functions and every one-dimensional factor has -norm at most 1, we have
Using the orthogonality of the Haar basis, we may therefore write
where the last inequality follows from the definition of . Combining the preceding results and using that and , we obtain
4 A -Thinning Strategy for Star Discrepancy
In this section, we prove Theorem 1.3. For completeness we include its statement.
Theorem 1.3 (Low-discrepancy point sequences via samples). Fix an arbitrary constant . There is a randomized algorithm which, given , takes as input i.i.d. uniform samples from and outputs with high probability a subset of samples that satisfies
Moreover, the algorithm is online, never discards two consecutive samples, and spends time to process each sample.
Although is the maximum continuous discrepancy over all anchored boxes, it suffices to only control those of the grid boxes for (recall Section 2), since they approximate every anchored box from inside and outside within a volume difference of at most .
Road Map. We give our algorithm, a variant of Haar-thinning, in Section 4.1. Key to our analysis is a concentration bound for linear functions of Haar discrepancies, which we prove in Section 4.2. Finally, we use this bound to analyze our algorithm and prove Theorem 1.3 in Section 4.3.
4.1 The Linear-Feedback Haar-Thinning Algorithm
Fix and set . Our algorithm for Theorem 1.3 is a variant of the Haar-thinning strategy from Section 3.1 whose target density at step is set to be
where we set for a sufficiently large constant.
Note that the main difference from the Haar-thinning strategy (7) is the replacement of by . The following proposition shows that (14) gives a negative drift that is proportional to the Haar discrepancies (and hence the name linear-feedback Haar-thinning).
Proposition 4.1 (Proportional negative drift). At every step , for every ,
where denotes expectation conditioned on all points sampled till step .
Proof. As each Haar function is mean-zero, we can write
where the last equality follows from the orthogonality of Haar functions.
-Thinning Condition. Note that for in (14) to be a valid -thinning strategy, i.e., (recall Section 2.1), we need the condition that .
Stopping Condition 4.2. We say the algorithm FAILs at time t if for any . We will show later in Lemma 4.6.2 that the algorithm never FAILs with high probability.
For the purpose of the analysis, we will analyze the following modified algorithm: whenever the above algorithm FAILs at a time , we will freeze the process afterwards, i.e., stop retaining/rejecting any new samples, and set for every and every . Clearly, the modified algorithm only differs from the original algorithm when it FAILs.
4.2 Concentration for Linear Functions of Haar Discrepancies
Key to our analysis is the following concentration bound for linear functions of Haar discrepancies, which we will crucially use in Section 4.3 to prove Theorem 1.3.
Lemma 4.2.1. For every step , vector , and , the modified algorithm satisfies
We prove Lemma 4.2.1 in the remainder of this subsection using Freedman's inequality.
For a cleaner presentation, the algorithm we describe here produces a point set instead of a point sequence. To produce a point sequence as stated in Theorem 1.3, one can slightly adjust the algorithm as in Footnote 6.
Theorem 4.3 (Freedman [Fre75]). Let be a martingale with respect to such that for every . Let
where denotes conditioning on step . Then, for every and ,
The proof consists of two steps: (i) we view as a martingale and express it as a sum of mean-zero increments for , (ii) we bound its quadratic variation and maximum possible increment in each step, and apply Freedman's inequality.
The Random Process. Define , which can be naturally expressed as
However, , which has nonzero conditional mean by Proposition 4.1. To bypass this issue, we center the increments to express as a sum of mean-zero terms for .
Proposition 4.4. The random process for can be expressed as
where denotes its centering.
Proof. The change of Y at step t - 1 can be expressed as:
where the first equality follows by (15) and the final equality follows by Proposition 4.1. Re-arranging to the other side, we get
Recursing on over all previous steps completes the proof of Proposition 4.4.
We next bound the quadratic variation of and the maximum size of for all . It suffices to consider the steps before the algorithm FAILs, as all later increments of are zero.
Proposition 4.5 (Quadratic variation). The quadratic variation of satisfies
Proof. For any step s before the algorithm FAILs, we have
where the last inequality uses the fact that the variance is at most the second moment.
As we have assumed that the algorithm doesn’t Fail at step , we have , and hence the expectation of any nonnegative function under the density is at most times its expectation under the uniform distribution. Hence for , we have
where the equality uses the orthogonality of Haar functions and . Then, summing over and bounding the resulting geometric series gives
□
We next bound the maximum possible size of for any .
Proposition 4.6. At every step , the absolute value of the increment satisfies
Proof. Applying the triangle inequality to gives
For any Haar function , as , its centered version satisfies
The bound in the proposition then follows immediately.
Now we are ready to prove Lemma 4.2.1.
Proof of Lemma 4.2.1. Fix , , and a step . Applying Freedman's inequality (see Theorem 4.3) to bound the probability of deviating from by when the quadratic variation is at most (which always holds due to Proposition 4.5) gives
□
4.3 Wrapping Things Up
We now use Lemma 4.2.1 to complete the analysis of the modified algorithm and prove Theorem 1.3. We start by showing that each grid box has small at every step .
Lemma 4.6.1 (Discrepancy of grid boxes). With probability at least , for every step and every grid box , its continuous discrepancy under satisfies
Proof. Fix any grid box and step . Recall from Observation 2.5 that
To control using Lemma 4.2.1, we consider the vector with . Note that for each and each level , at most two Haar functions can have nonzero coefficients: these are the Haar functions whose supports contain one of the two endpoints of the interval defining in coordinate . As there are levels in each coordinate, at most of the can be non-zero, each with . This shows that both and are at most . Plugging these bounds into Lemma 4.2.1 for , we get
where the final inequality follows by substituting and using the bounds on and . Setting for a sufficiently large constant and taking the union bound over all of the grid boxes in and all steps completes the proof.
Next we show that with high probability, the algorithm never FAILs.
Lemma 4.6.2. With probability at least , the algorithm never FAILs.
Proof. Consider all of the dyadic boxes of edge length in every dimension. Note that each Haar function is constant on any such , and hence to check the condition for all , it suffices to only check it for one fixed point for each .
Fix a dyadic box and some . We will express as a linear function of and then apply Lemma 4.2.1 to bound the probability that it exceeds . Since
we define by . In each coordinate, lies in the support of at most Haar functions, so has at most nonzero entries. Since each such entry is in , both and are at most . Plugging these bounds into Lemma 4.2.1 for , we get
Setting for a sufficiently large constant and then take a union bound over all the dyadic boxes completes the proof.
We are now ready to prove Theorem 1.3.
Proof of Theorem 1.3. By Theorem 1.3 and 4.6.1, with high probability, the algorithm never FAILs and that every grid box has continuous discrepancy at most at each step . Since any anchored box can be approximated from inside and outside by grid boxes within a volume difference of at most , this proves the theorem.
Acknowledgements
We thank Jiaheng Chen for helpful discussions.
References
[ABN16] Christoph Aistleitner, Dmitriy Bilyk, and Aleksandar Nikolov. Tusnády's problem, the transference principle, and non-uniform qmc sampling. In International Conference on Monte Carlo and Quasi-Monte Carlo Methods in Scientific Computing, pages 169–180. Springer, 2016.
[AD14] Christoph Aistleitner and Josef Dick. Low-discrepancy point sets for non-uniform measures. Acta Arithmetica, 163(4):345–369, 2014. doi:10.4064/aa163-4-4.
[Bec89] József Beck. A two-dimensional van Aardenne-Ehrenfest theorem in irregularities of distribution. Compositio Mathematica, 72(3):269–339, 1989.
[BJ25] Nikhil Bansal and Haotian Jiang. Quasi-Monte Carlo Beyond Hardy-Krause. In Symposium on Discrete Algorithms (SODA), pages 2051–2075. SIAM, 2025.
[BL08] Dmitriy Bilyk and Michael T. Lacey. On the small ball inequality in three dimensions. Duke Mathematical Journal, 143(1):81–115, 2008.
[BLV08] Dmitriy Bilyk, Michael T. Lacey, and Armen Vagharshakyan. On the small ball inequality in all dimensions. Journal of Functional Analysis, 254(9):2470–2502, 2008. doi:10.1016/j.jfa.2007.09.010.
[CJJ26] Jiaheng Chen, Agastya Vibhuti Jha, and Haotian Jiang. A simpler analysis of the bansal-jiang quasi monte-carlo algorithm via haar wavelets, 2026. URL: https://arxiv.org/abs/2608.27986, arXiv:2608.27986.
[DFGGR19] Raaz Dwivedi, Ohad N Feldheim, Ori Gurel-Gurevich, and Aaditya Ramdas. The power of online thinning in reducing discrepancy. Probability Theory and Related Fields, 174(1):103–131, 2019.
[DKPS13] Josef Dick, Frances Y. Kuo, Gareth W. Peters, and Ian H. Sloan. Monte Carlo and Quasi-Monte Carlo Methods. Springer, Berlin, Heidelberg, 2013.
[DP10] Josef Dick and Friedrich Pillichshammer. Digital Nets and Sequences: Discrepancy Theory and Quasi-Monte Carlo Integration. Cambridge University Press, 2010.
[Fau82] Henri Faure. Discrépance de suites associées à un système de numération (en dimension s). Acta Arithmetica, 41(4):337–351, 1982. doi:10.4064/aa-41-4-337-351.
[Fis05] George S. Fishman. A First Course in Monte Carlo. Duxbury Press, Belmont, CA, 2005.
[Fre75] David A. Freedman. On tail probabilities for martingales. The Annals of Probability, 3(1):100–118, 1975. doi:10.1214/aop/1176996452.
[Gla03] Paul Glasserman. Monte Carlo Methods in Financial Engineering, volume 53 of Stochastic Modelling and Applied Probability. Springer, New York, 2003. doi:10.1007/978-0-387-21617-1.
[Hal60] John H Halton. On the efficiency of certain quasi-random sequences of points in evaluating multi-dimensional integrals. Numerische Mathematik, 2(1):84–90, 1960.
[Hal81] Gábor Halász. On Roth's method in the theory of irregularities of point distributions. In Recent Progress in Analytic Number Theory, Vol. 2, pages 79–94. Academic Press, London, 1981.
[Ham60] John M Hammersley. Monte carlo methods for solving multivariable problems. Annals of the New York Academy of Sciences, 86(3):844–874, 1960.
[Hla61] Edmund Hlawka. Funktionen von beschränkter variation in der theorie der gleichverteilung. Annali di Matematica Pura ed Applicata, 54(1):325–333, 1961.
[Kok42] Jurjen Ferdinand Koksma. A general theorem from the theory of uniform distribution modulo 1. Mathematica, Zutphen. B, 11:7–11, 1942.
[Lem09] Christiane Lemieux. Monte Carlo and Quasi-Monte Carlo Sampling. Springer, New York, 2009.
[Mat09] Jiří Matoušek. Geometric Discrepancy: An Illustrated Guide, volume 18. Springer Science & Business Media, 2009.
[Nie87] Harald Niederreiter. Point sets and sequences with small discrepancy. Monatshefte für Mathematik, 104:273–337, 1987. doi:10.1007/BF01294651.
[Nie92] Harald Niederreiter. Random Number Generation and Quasi-Monte Carlo Methods. SIAM, 1992.
[Owe13] Art B. Owen. Monte Carlo theory, methods and examples, 2013. URL: https://artowen.su.domains/mc/.
[Rot54] Klaus F. Roth. On irregularities of distribution. Mathematika, 1(2):73–79, 1954.
[Sch72] Wolfgang Schmidt. Irregularities of distribution, vii. Acta Arithmetica, 21(1):45–50, 1972.
[Sob67] Ilya M Sobol. Distribution of points in a cube and approximate evaluation of integrals. USSR Computational mathematics and mathematical physics, 7:86–112, 1967.
[SV26a] Gleb Smirnov and Roman Vershynin. Improving discrepancy by moving a few points. Proceedings of the American Mathematical Society, 2026. URL: https://par.nsf.gov/biblio/10690114, doi:10.1090/proc/17696.
[SV26b] Gleb Smirnov and Roman Vershynin. Thinning to improve two-sample discrepancy. Random Structures & Algorithms, 68(2):e70049, 2026.
[Tri19] Hans Triebel. Function Spaces with Dominating Mixed Smoothness. EMS Series of Lectures in Mathematics. European Mathematical Society, 2019. doi:10.4171/195.
[vdC35a] J. G. van der Corput. Verteilungsfunktionen I. Akad. Wetensch. Amsterdam, Proc., 38:813–821, 1935.
[vdC35b] J. G. van der Corput. Verteilungsfunktionen II. Akad. Wetensch. Amsterdam, Proc., 38:1058–1066, 1935.
[Ver18] Roman Vershynin. High-dimensional probability: An introduction with applications in data science, volume 47. Cambridge university press, 2018.
[Vyb06] Jan Vybíral. Function spaces with dominating mixed smoothness. Dissertationes Mathematicae, 436:1–73, 2006. doi:10.4064/dm436-0-1.
[Zar68] S. C. Zaremba. Some applications of multidimensional integration by parts. Annales Polonici Mathematici, 21(1):85–96, 1968.