Numerical integration—approximating the integral of a function f using n point evaluations—is a central task in science and engineering. The two main paradigms for this problem, the Monte Carlo (MC) and quasi-Monte Carlo (QMC) methods, have distinct strengths and limitations, and a fundamental question is to design a method that combines the benefits of both.
Building on recent algorithmic advances in discrepancy theory, Bansal and Jiang [BJ25] gave a randomized QMC method that naturally bridges the MC and QMC error guarantees. Their method also achieves a surprising improvement over the classical Koksma–Hlawka inequality for QMC methods: it attains an error bound of O(σSO(f)/n), where σSO(f) is a new notion of smoothed-out variation that they introduced and showed to be substantially smaller than the Hardy–Krause variation governing the classical bound.
However, the analysis in [BJ25] is quite involved: it must carefully exploit the structure of the dyadic decomposition and the randomness of the algorithm inside a sufficiently fine discretization of the Hlawka–Zaremba formula to obtain cancellations among the high-frequency components in the Fourier decomposition of f. The contribution of this article is twofold:
We give an equivalent characterization of σSO(f) in terms of the Haar–Besov seminorm of f, relating this new notion of smoothed-out variation to classical quantities.
Through this characterization, we provide a conceptually simpler and more direct analysis of the Bansal–Jiang QMC method via Haar decomposition, bypassing the use of the Hlawka–Zaremba formula, Fourier decomposition, and the delicate cancellation arguments of [BJ25] that heavily exploit the structure of dyadic decomposition.
2 Overview 4
2.1 The Analysis of Bansal and Jiang 4
2.2 Our Approach 5
3 Preliminaries 6
4 Algorithm and Analysis 7
4.1 Algorithm 7
4.2 Analysis 8
4.3 Equivalence Between Haar–Besov Seminorm and σSO 14
A Comparison with the Alternative Definition of σSO in [BJ25] 19
1 Introduction
Numerical integration is the problem of estimating an integral 1f=∫z∈[0,1]df(z)dz by evaluating the given function f on a finite set of points.
This problem arises in many applications [Wik26], where f cannot be computed exactly because f is too complicated, or may only be accessed through point evaluations. The goal of numerical integration is to choose a set of points A⊂[0,1]d and approximate f by the average f(A)=∣A∣−1∑z∈Af(z), so that the error err(A,f):=f(A)−f is as small as possible. Broadly speaking, there are two paradigms for choosing the set A:
Monte Carlo Methods. Monte Carlo (MC) methods choose A by sampling n points independently and uniformly at random. It is known that the mean squared error here is
E[err(A,f)2]=σ2(f)/n,(1)
where σ(f):=(Ez∼[0,1]d(f(z)−f)2)1/2 is the standard deviation of f.
As they require only random samples, Monte Carlo methods are flexible and useful in a wide range of applications, and they were named as one of the ten most influential algorithms of the twentieth century [DS00].
The main drawback of MC is its slow n−1/2 convergence rate—to attain ε error, one needs roughly σ2(f)/ε2 samples—in many applications, obtaining samples is expensive, and a larger sample size also increases the running time of algorithms that process it (e.g., see [Gla03, Fis05]).
Quasi-Monte Carlo Methods
Quasi-Monte Carlo (QMC) methods abandon the flexibility of using only random samples and instead, they carefully choose a deterministic set A. These methods can achieve a convergence rate of Od(1/n)2 in moderate dimensions—a quadratic speedup over MC that leads to their widespread applications [Lem09, Mat09, DKPS13, Owe13].
The key benchmark for QMC methods is several classical Koksma–Hlawka inequalities that bound ∣err(A,f)∣ by the product of a property of f and a uniformity measure of A [Kok42, Hla61, Zar68]. For instance, the ℓ2 Koksma–Hlawka inequality states that
∣err(A,f)∣≤n1⋅σHK(f)⋅D2∗(A),(2)
where σHK(f) is the ℓ2 Hardy–Krause variation which measures the volatility of f, and D2∗(A) is the ℓ2 star discrepancy that measures the uniformity of the set A. 3
The Koksma–Hlawka inequalities are tight in general: for any set A, some function f attains the bound in (2) up to constants. Consequently, a central goal in QMC methods has been to construct
1Assuming the integration domain is [0,1]d is without loss of generality by standard reductions [DP10, Owe13].
3As an illustration in 1-d, σHK(f)=(∫01f′(z)2dz)1/2 (under mild smoothness assumptions) is larger for faster-varying f; and D2∗(A)=(∫01D(z)2dz)1/2, where D(z)=∣A∣z−∣A∩[0,z)∣ measures the “continuous discrepancy” between the size of the interval [0,z) and the number of points from A that lie in it.
low-discrepancy point sets with small D2∗(A). State-of-the-art constructions achieve D2∗(A)=Od(1) [Nie92, DP10, Mat09, Owe13], yielding the improved n−1 convergence rate over MC:
∣err(A,f)∣≤Od(σHK(f)/n).(3)
Limitations of QMC. Despite the quadratic improvement in convergence rate, QMC methods suffer from several severe limitations: (1) Their error bounds depend on the Hardy–Krause variation σHK(f), which can be much larger than σ(f) and cause the QMC error to be much larger than MC for highly volatile integrands. For example, for f(x)=sin(kx), σHK(f)=Θ(k) while σ(f)=Θ(1); (2) QMC methods require picking specific points, which may not be possible in the wide range of applications where only random samples are available—a feature that significantly limits their flexibility and applicability; (3) Using deterministic point sets may suffer from worst-case outcomes and one cannot estimate the error statistically.
The distinctive strengths and weaknesses of MC and QMC methods raise a fundamental question: is there a method that can combine the benefits of both approaches, i.e., the flexibility of MC and the fast convergence rate of QMC? Progress toward this goal remained limited [Lem09, Mat09, DP10, Owe13] until the recent work of Bansal and Jiang [BJ25].
QMC Beyond Hardy–Krause. Recently, Bansal and Jiang [BJ25] gave a randomized QMC method that naturally bridges the two approaches above and, more surprisingly, achieves significantly smaller error than the standard QMC benchmark of Koksma–Hlawka inequalities. In particular, they introduced a new notion called the smoothed-out variation, denoted by σSO(f), that is substantially smaller than σHK(f) (see Section 3), and proved the following improved bound:
Theorem 1.1 (Bansal and Jiang [BJ25]). There is a randomized algorithm that takes as input n2 i.i.d. uniform samples from [0,1)d and in O(n2) time, partitions them into n sets each of size n. Each one of these sets A satisfies the following: for any function f∈L2([0,1)d) with finite σSO(f),
E[err(A,f)2]≤Od(σSO(f)2/n2).
Algorithm and Analysis in [BJ25]. Inspired by the classical transference principle [Mat09], the algorithm in [BJ25] operates roughly as follows. Starting with n2 independent and uniform samples A0 from [0,1)d, it proceeds iteratively: at step t, for each one of the current sets At, it finds a balanced {±1}-coloring xt with low discrepancy and sub-Gaussianity with respect to dyadic boxes (see Figure 1 for a 1-d illustration) of side length at least 1/poly(n), and splits each At into two subsets of equal size based on the two colors (see Figure 2). Repeating this log n times partitions A0 into n sets of size n each. We postpone a formal description of this algorithm to Section 4.1.
The analysis in [BJ25], however, is quite involved. We give more details in Section 2.1, but on a high level, they start with the Hlawka–Zaremba formula—an exact expression for err(A,f) as an integration of the continuous discrepancy of A multiplied by the mixed derivatives of f (see (4) for the 1-d formula)—and discretize the formula along prefix boxes [0,z):=[0,z1)×⋯×[0,zd) of granularity 1/poly(n). Because the small sub-Gaussianity of the coloring xt only holds for dyadic boxes rather than prefix boxes, 4 they need to relate prefix boxes (from the discretization) to dyadic boxes via dyadic decomposition, and carefully exploit its structure to obtain cancellations among
4In fact, it was shown in [BJ25] that it is impossible to achieve small sub-Gaussianity for prefix boxes.
Figure 1: Dyadic Intervals
the high-frequency components in the Fourier decomposition of f. These cancellations lead to the improvement in Theorem 1.1 over Koksma–Hlawka inequalities.
Our Contribution. The contribution of this article is twofold:
Using standard ideas from functional analysis [Vyb06, Tri19], we give an equivalent characterization of σSO(f) in terms of the Haar–Besov seminorm of f, relating Bansal and Jiang's new notion of smoothed-out variation to classical quantities (see Theorem 4.3).
Through this characterization, we give a conceptually simpler and more direct analysis of the Bansal–Jiang QMC algorithm via Haar decomposition. As the Haar basis is more naturally aligned with dyadic boxes whose discrepancies the algorithm controls, this allows us to bypass various technicalities of [BJ25]: no need to use the Hlawka–Zaremba formula, Fourier decomposition, or the delicate cancellation arguments of [BJ25] that heavily exploit the structure of dyadic decomposition. See Section 2.2 for an overview and Section 4.2 for details.
Figure 2: Iteration t of the algorithm. At+1 is the subset of At with color 1.
Roadmap. In Section 2, we review the proof strategy of Bansal and Jiang and identify the main sources of complexity in their analysis. We then outline our approach and explain how it simplifies the argument, both conceptually and technically. For completeness, we collect the notation used throughout the article in Section 3. We describe the algorithm of Bansal and Jiang [BJ25] in Section 4.1. In Section 4.2, we present our simplified analysis of Theorem 1.1. Finally, in Section 4.3, we prove the equivalence between the Haar–Besov seminorm and σSO(f).
2 Overview
In this section, we give a more detailed overview of the analysis in [BJ25], followed by an overview of our approach that bypasses several of its technicalities.
2.1 The Analysis of Bansal and Jiang
For simplicity, we focus on the 1-d case and assume that f is sufficiently smooth. Roughly speaking, the analysis in [BJ25] proceeds in the following three steps:
Discretizing the Hlawka–Zaremba Formula. Let A be an arbitrary set output by the algorithm. They start with an exact expression for err(A,f) known as the Hlawka–Zaremba formula:
err(A,f)=n1∫01f′(y)D(y)dy,(4)
where D(z):=∣A∣z−∣A∩[0,z)∣ is the continuous discrepancy of the prefix interval [0,z), i.e., the difference between the size of [0,z) and the number of points from A that lie in it. Note that from (4), one can actually obtain the Koksma–Hlawka inequality (2) by applying Cauchy–Schwarz. Therefore, to obtain the improved bound in Theorem 1.1, one must exploit cancellations in the integral in (4) which the Koksma–Hlawka inequalities completely give up.
Since the algorithm only controls the discrepancies of dyadic intervals of length at least 1/poly(n), they need to discretize the integral in (4) into a sum with granularity h=1/poly(n):
where f′ and Dprefix denote the vectors formed by all the f′(jh) and D(jh). The discretization error in (5) is roughly on the order of O(h)=1/poly(n), and hence can be safely ignored.
From Prefix to Dyadic Discrepancies. Bansal and Jiang's crucial insight is that cancellations in (5) should come from the sub-Gaussianity of the algorithm. However, there is a mismatch here—the algorithm only guarantees low sub-Gaussianity for the discrepancies of dyadic intervals, while the vector Dprefix in (5) corresponds to the discrepancies of prefix intervals. More problematically, it was shown in [BJ25] that no algorithm can attain low sub-Gaussianity for Dprefix.
To bypass this failure of sub-Gaussianity for prefix intervals Dprefix, Bansal and Jiang expressed Dprefix in terms of the discrepancies of dyadic intervals Ddyadic via the dyadic decomposition matrix P (with granularity h=1/poly(n)) as Dprefix=PDdyadic. Then (5) gives
(6) where the last step uses that Ddyadic is O(1) sub-Gaussian, as guaranteed by the algorithm.
Cancellations for High-Frequency Fourier Components. Finally, to bound ∥P⊤f′∥2 in terms of σSO(f), they use the Fourier decomposition of f and exploit delicate structures of the dyadic decomposition matrix P to find cancellations in the high-frequency Fourier components of f.
2.2 Our Approach
Note that the various technicalities in the [BJ25] analysis all result from the mismatch between the discrepancies of dyadic intervals that the algorithm controls and those of prefix intervals that the analysis requires in order to find cancellations in the Hlawka–Zaremba formula (4). To avoid these technicalities, we abandon the Hlawka–Zaremba formula entirely, and directly analyze err(A,f) via the Haar decomposition of f. As the Haar basis aligns naturally with dyadic intervals, this leads to a conceptually simpler and more direct analysis of the Bansal–Jiang algorithm.
In particular, let f=∑j,ℓ⟨f,ψj,ℓ⟩ψj,ℓ be its Haar decomposition, where ψj,ℓ denote the normalized Haar basis functions (see Section 3 and Figure 3). One can then write
err(A,f)=j,ℓ∑⟨f,ψj,ℓ⟩⋅err(A,ψj,ℓ).
As the discrepancies of dyadic intervals are O(1)-sub-Gaussian, the same guarantee holds for the err(A,ψj,ℓ) (up to a normalization factor in ψj,ℓ). It then follows that
err(A,f)2≈n21j,ℓ∑2j⟨f,ψj,ℓ⟩2,
where the quantity on the right-hand side above is exactly the square of the Haar–Besov seminorm ∥f∥H (see Definition 3.1). Finally, using standard ideas from the functional analysis literature (e.g., see [Vyb06, Tri19]), we show that (a slight variant) of ∥f∥H is in fact equivalent to the smoothed-out variation σSO(f), giving a more classical interpretation of this new notion in [BJ25].
Figure 3: Unnormalized Haar functions 2−j/2ψj,ℓ for j=0,1.
3 Preliminaries
Basic Notation. In this section, we formally define the terminology used throughout the article. For integers j≥0 and 0≤ℓ<2j, let Bj,ℓ(z) denote the indicator of the ℓth dyadic interval at level j in [0,1). In particular, B0,0(y) denotes the constant function 1 on [0,1). We use D(h) to denote the collection of all dyadic intervals Bj,ℓ for 0≤j≤h and 0≤ℓ<2j. Likewise, let ψj,ℓ denote the (j,ℓ)th normalized Haar function, defined by ψj,ℓ(z)=2j/2(Bj+1,2ℓ(z)−Bj+1,2ℓ+1(z)). Together with the constant function 1 on [0,1), the Haar functions form an orthonormal basis for L2([0,1)), the space of square-integrable functions equipped with the inner product ⟨f,g⟩=∫01f(z)g(z)dz.
Notation for Higher Dimension. For an integer d>0, we denote [d]={1,…,d}. For sets S,T⊆[d], we use S to denote [d]∖S and S∖T to denote S∩T. We use bold letters, e.g., j, to denote vectors, and ji to denote the ith coordinate of j. For S⊆[d], let j and ℓ be tuples indexed by S, where ji is a nonnegative integer and 0≤ℓi<2ji for every i∈S. We denote BS,j,ℓ(z):=∏i∈SBji,ℓi(zi) the dyadic box and write Dd(h) for the collection of dyadic boxes indexed by nonempty subsets S⊆[d], multi-indices j satisfying maxi∈Sji≤h, and all corresponding values of ℓ. Likewise, we write ΨS,j,ℓ for the corresponding Haar function, defined by ΨS,j,ℓ(z)=∏i∈Sψji,ℓi(zi) for z∈[0,1)d.
Multi-Dimension Haar Functions. As in one dimension, the constant function 1, together with the Haar functions ΨS,j,ℓ over all nonempty subsets S⊆[d] and all corresponding tuples j,ℓ, forms an orthonormal basis for L2([0,1)d) with respect to the inner product ⟨f,g⟩=∫[0,1)df(z)g(z)dz. To familiarize the reader with multi-dimensional Haar functions, we briefly describe them as sums over the corresponding dyadic boxes.
where in (7), we write ∣j∣=∑i∈S∣ji∣, and 1 denotes the all-ones tuple. Similarly, 1S∖T denotes the tuple that equals 1 on the indices in S∖T and 0 elsewhere, and tuple addition is performed coordinate-wise.
Haar–Besov Seminorm. The Haar–Besov seminorm is central to our analysis. We refer the interested reader to [Vyb06, Tri19] for background.
Definition 3.1 (Haar–Besov Seminorm). The Haar–Besov seminorm of f∈L2([0,1)d) is
∥f∥H2:=S⊆[d]S=∅∑j,ℓ∑2∣j∣∣⟨f,ΨS,j,ℓ⟩∣2,
where, for each S, the tuples j and ℓ are indexed by S, with ji a nonnegative integer and 0≤ℓi<2ji for every i∈S. Throughout, j,ℓ range over all tuples satisfying these constraints unless specified.
Fourier Analysis on the Unit Cube. Finally, we introduce notation for Fourier analysis on [0,1)d, which we use to prove the equivalence between σSO(f) and ∥f∥H in Section 4.3. Let f:[0,1)d→C denote a 1-periodic function in L2([0,1)d). For k∈Zd, we use fk to denote the Fourier coefficient ∫[0,1)df(z)exp(−2πi⟨k,z⟩)dz and the Fourier series of f is given by,
k∈Zd∑fkexp(2πi⟨k,z⟩).
We use ek as a shorthand to denote exp(2πi⟨k,z⟩). The Fourier characters ek, for k∈Zd, form an orthonormal basis for complex-valued functions in L2([0,1)d) with respect to the inner product ⟨f,g⟩=∫[0,1)df(z)g(z)dz. Consequently, Parseval's identity gives ∫[0,1)d∣f(z)∣2dz=∑k∈Zd∣fk∣2. Now that we are equipped with the notation for Fourier analysis, we can now define:
where σHK(f) denotes the Hardy–Krause variation of f (see [BJ25] for more details).
4 Algorithm and Analysis
In Section 4.1, we describe the algorithm of Bansal and Jiang [BJ25] and state the guarantees that we need. We then analyze its error in Section 4.2.
4.1 Algorithm
The Setup. The algorithm of Bansal and Jiang [BJ25] uses a key ingredient: the self-balancing walk of [ALS21]. While [BJ25] use the self-balancing walk in [ALS21], as the recent work [AA26] supersedes [ALS21] we use that instead.
Given a collection of vectors, the self-balancing walk efficiently signs vectors so that the resulting signed sum has small sub-Gaussian 5 norm. Formally,
Theorem 4.1 (Gaussian Triplet Walk of [AA26]). There exists an algorithm TripletWalk such that, given vectors v1,v2,…,vn with ℓ2-norm at most 1, it computes a symmetric and balanced 6random signing x∈{±1}n such that ∑j≤tx(j)vj is O(1) sub-Gaussian for every t∈[n] with high probability. The algorithm runs in time O(∑j∈[n]nnz(vj)).
The algorithm proceeds iteratively by applying Theorem 4.1 to a suitable collection of vectors at each step. We introduce notation for these vectors to simplify the description of the algorithm. Recall that Dd(h) denotes the collection of all dyadic boxes whose level in each coordinate is at most h (see Section 3). Given a set A⊆[0,1)d and a point z∈A, let vz∈RA+Dd(h) be defined as follows: (i) the coordinates indexed by A indicate the point z, and (ii) the coordinates indexed by Dd(h) indicate which dyadic boxes contain z.
5A random vector r is σ-sub-Gaussian if, for every unit vector θ and every t≥0, Pr[⟨r,θ⟩≥tσ]≤exp(−t2/2).
6A signing is symmetric if
it is symmetrically distributed, and balanced if exactly half of the entries are +1.
4.1.1 Algorithm Description
The algorithm of [BJ25] proceeds as follows: Set h=O(logn) with a large constant. Sample s∼Unif([0,1)d) and shift [0,1)d by s.
Sample n2 independent uniform points from [0,1)d, and let A0 be the resulting collection.
For each step t=0,1,…,T−1, where T=logn, construct the vector vz for every z∈At using the representation above. Apply TripletWalk to these vectors to obtain a balanced signing xt, and let At+1 be the collection of points z∈At for which xt(z)=1.
Output the average of f on AT:
∣AT∣1z∈AT∑f(z).
We next describe an important property of Algorithm 4.1.1: A direct application of Theorem 4.1 shows that for each step t≥0, ∑z∈Atxt(z)vz is O(logd/2n) sub-Gaussian. This statement is proved in the same form as Lemma 3.3 of Bansal and Jiang [BJ25], so we omit the proof.
Proposition 4.2. At every step t, ∑z∈Atxt(z)vz is O(logd/2n) sub-Gaussian.
4.2 Analysis
In this section, we give our proof for Theorem 1.1. We restate it for completeness.
Theorem 1.1 (Bansal and Jiang [BJ25]). There is a randomized algorithm that takes as input n2 i.i.d. uniform samples from [0,1)d and in O(n2) time, partitions them into n sets each of size n. Each one of these sets A satisfies the following: for any function f∈L2([0,1)d) with finite σSO(f),
E[err(A,f)2]≤Od(σSO(f)2/n2).
Roadmap. Following the approach outlined in Section 2.2, our proof has two main ingredients. First, we analyze err(A,f) directly in the Haar basis and bound it in terms of ∥f∥H. Since the algorithm controls dyadic discrepancies only up to a fixed level, we treat the low- and high-frequency components of f separately in Section 4.2.2 and Section 4.2.3. Second, we use the equivalence between the shift-averaged Haar seminorm and σSO(f), which we prove in Section 4.3. We combine these ingredients in Section 4.2.1.
4.2.1 Proof of Theorem 1.1
Recall from Section 4.1 that the algorithm outputs a set AT of n points and uses f(AT) as an estimate of f. Our goal is to bound err(AT,f) in terms of the smoothed-out variation σSO(f).
Low- and High-Frequency Functions. Recall that the algorithm in Section 4.1.1 controls discrepancies over dyadic boxes in Dd(h), where h=O(logn). For this choice of h, let P<h denote the orthogonal projector onto the subspace of L2([0,1)d) spanned by all Haar functions ΨS,j,ℓ indexed by S⊆[d], with 0≤ji<h and 0≤ℓi<2ji for each i∈S. We also let P≥h=I−P<h denote the projection onto the orthogonal complement of this subspace, where I is the identity operator on L2([0,1)d).
Recall that Algorithm 4.1 applies a uniformly random shift s in [0,1)d to the dyadic boxes. Shifting the dyadic boxes by s is equivalent to keeping the boxes fixed and replacing f by fs, where fs(z)=f((z+s)mod1). In Lemma 4.4 and Lemma 4.9, we show that for every shift s∈[0,1)d:
where νs denotes the distribution of the point set output by the algorithm for a fixed shift s and Od(⋅) hides factors depending only on d. Here, we remark that (9) is the crux of the proof, while (10) is a “rounding” error that can be safely ignored.
Equivalence Characterization. Our proof relies crucially on the equivalence between the Haar–Besov seminorm averaged over random shifts and σSO(f). This equivalence follows from standard ideas in functional analysis [Vyb06, Tri19]. We give a full proof in Section 4.3.
Theorem 4.3 (Shift-averaged seminorm equivalence). For any f∈L2([0,1)d), its average Haar–Besov seminorm over random shifts s∼Unif([0,1)d) is equivalent to its smoothed-out variation:
Without loss of generality 7, assume that f∈L2([0,1)d) has mean zero: f=0. Combining (9) and (10) with Theorem 4.3 completes the proof.
Proof of Theorem 1.1. Since err(AT,⋅) is linear, we decompose the error into the contributions from the low and high-frequency Haar components of fs:
Using Lemma 4.4 (see Equation (9)), together with the equivalence between the Haar–Besov semi-norm and the smoothed-out variation (Theorem 4.3), we obtain:
7Given a function f, we can analyze f−f. This leaves the integration error unchanged and, because the signing is balanced, also leaves the weighted discrepancy unchanged.
The bound on err(AT,P≥hfs) holds analogous to above via Lemma 4.9. We bound err(AT,f):
where ν denotes the distribution of the output point set on average over s.
4.2.2 Bounding Error on the Low-Frequency Components
In this section, we bound the error incurred by Algorithm 4.1.1 on the low-frequency Haar projection of f. Recall from Section 4.2.1 that P<h denotes the orthogonal projector onto the subspace of L2([0,1)d) spanned by all Haar functions ΨS,j,ℓ indexed by S⊆[d], with 0≤ji<h and 0≤ℓi<2ji for each i∈S. For z∈[0,1)d,
where j,ℓ∈P<hS indicates that the indices range over all Haar functions associated with a nonempty set S⊆[d] and satisfying the constraints above. In this section, we show the following.
Lemma 4.4. For a function f∈L2([0,1)d) and a fixed shift s∈[0,1)d, the second moment of the low-frequency error of Algorithm 4.1.1 satisfies:
where νs denotes the distribution of the output point set conditioned on the shift s and Od(⋅) hides factors depending only on d.
We prove the error bound in two steps: (i) we express err(AT,P<hfs) in terms of the per-step discrepancies incurred by Algorithm 4.1.1, and (ii) we use the sub-Gaussianity of dyadic-box discrepancies (see Proposition 4.2) to bound the resulting expression.
Expressing Error Iteratively. Recall that the algorithm in Section 4.1.1 iteratively thins the point set by applying Theorem 4.1 to a suitable collection of vectors and retaining the points colored +1. We express err(AT,fs) in terms of the per-step discrepancies controlled by Theorem 4.1. To do so, we first define a notion of weighted discrepancy of a function:
Definition 4.5 (Weighted Discrepancy). Given a function f∈L2([0,1)d), we let its weighted discrepancy at step t be,
disct(f)=z∈At∑xt(z)f(z).
The following is analogous to Lemma 3.4 of [BJ25]. As in Section 4.2.1, we assume throughout that f has mean zero.
Proposition 4.6. For any function g∈L2([0,1)d), the error incurred by Algorithm in estimating g in Algorithm 4.1.1 is:
err(AT,g)=err(A0,g)+t<T∑∣At∣disct(g).
Proof of Proposition 4.6. We begin by recursively expressing err(At,g) in terms of err(At−1,g) and disct−1(g) for t≥1:
where the equality follows by adding and subtracting the contributions of the negatively signed points and using the fact that the signing is balanced. Consequently,
To bound the second moment of err(AT,P<hfs), we express it in Proposition 4.7 as a sum of the second moments of the per-step discrepancies disct(P<hfs). Crucially, the symmetry of the signings xt produced by Theorem 4.1 implies that, conditioned on the first t−1 iterations, the discrepancy at step t has expectation zero. Consequently, all cross terms between discrepancies from different steps vanish.
Proposition 4.7. For any function g∈L2([0,1)d), the second moment of the error incurred by Algorithm in estimating g in Algorithm 4.1.1 is:
where νs denotes the distribution of the point set output by the algorithm for s.
Proof of Proposition 4.7. Recall from (11) in the proof of Proposition 4.6 that, for every t≥1, err(At,g) is the sum of err(At−1,g) and disct−1(g)/∣At−1∣. In what follows, νs,t−1 denotes the distribution νs conditioned on the first t−1 iterations:
where the second equality follows as Eνs,t−1[disct−1(g)]=0 by symmetry of xt−1. Iterating for t=0,1,…,T−1 completes the proof.
We bound the weighted discrepancy disct(P<hfs) via the sub-Gaussian control of Algorithm 4.1.1 over dyadic boxes.
Bounding the Per-Step Error via sub-Gaussianity. We now turn to the key argument underlying our analysis. Recall that, at each step t, the algorithm applies Theorem 4.1 to obtain a signing xt and the corresponding discrepancy vector ∑z∈Atxt(z)vz. Its coordinates indexed by At and Dd(h) indicate the colors of the points and the discrepancies over dyadic boxes respectively. In the penultimate step of the proof of Lemma 4.4, we analyze disct(P<hfs) in Lemma 4.8. We expand fs in the Haar basis and express the discrepancy as an inner product between the discrepancy vector and the Haar coefficients of fs. We then use the sub-Gaussianity of the discrepancy vector (see Proposition 4.2) to bound this inner product.
Lemma 4.8. For a function f∈L2([0,1)d) and a fixed shift s∈[0,1)d, at every step,
Eνs[disct(P<hfs)2]≤Od(logdn)∥P<hfs∥H2,
where Od(⋅) hides factors depending only on d.
Proof of Lemma 4.8. Using the Haar decomposition of P<hfs, we write disct(P<hfs) as:
Recall from (7) that for a nonempty S⊆[d], the Haar function ΨS,j,ℓ can be expressed as a linear combination of signed boxes. For a fixed subset S⊆[d] and corresponding multi-indices j,ℓ indexed by S, using (7) we can express the discrepancy with respect to ΨS,j,ℓ as a signed sum of discrepancies over dyadic boxes.
This helps us express disct(P<hfs) as the inner product between dyadic box discrepancies and suitably scaled Haar coefficients. For each nonempty S⊆[d] and each pair j,ℓ, there are 2∣S∣ dyadic-box discrepancies, each weighted by 2∣j∣/2⟨P<hfs,ΨS,j,ℓ⟩. Thus, the second moment of disct(P<hfs) can be bounded as follows 8:
where the second inequality follows by the definition of the Haar–Besov seminorm of P<hfs (see Definition 3.1) and 2∣S∣≤2d for all S⊆[d]. This completes the argument.
We are now ready to prove Lemma 4.4.
Proof. To bound the second moment of err(AT,P<hfs), we apply Proposition 4.7 and bound each resulting term separately.
where the first equality uses that fs has mean zero, and the second uses that the samples are independent and mean zero. Plugging (17) and (18) in (16) completes the proof.
4.2.3 Error on the High-Frequency Components is Negligible
In this section, we show that the error incurred by Algorithm 4.1.1 on the high-frequency Haar projection of f is negligible. Recall from Section 4.2.1 that P≥h denotes the orthogonal projection onto the subspace of L2([0,1)d) spanned by the Haar functions ΨS,j,ℓ over all nonempty sets S⊆[d] satisfying maxi∈Sji≥h and 0≤ℓi<2ji for every i∈S.
Lemma 4.9. For a function f∈L2([0,1)d) and a fixed shift s∈[0,1)d, the second moment of the high-frequency error of Algorithm 4.1.1 is at most:
where νs denotes the distribution of the output point set conditioned on the shift s.
8This bound follows from the standard moment estimate for a sub-Gaussian random variable X:(E[∣X∣p])1/p≤O(p)∥X∥ψ2, where ∥X∥ψ2 denotes its sub-Gaussian norm (see [Ver18]).
For the high-frequency component of fs, the Haar–Besov seminorm dominates the L2 norm by a factor of poly(n):∥P≥hfs∥2≤∥P≥hfs∥H/poly(n). For the high-frequency component, we use the sub-Gaussianity of the signing xt to bound the error in terms of ∥P≥hfs∥2, showing that this contribution is negligible.
Proof of Lemma 4.9. Using Proposition 4.7, we can express the second moment of the high-frequency component as:
where we use that the multi-index vector j has at least one entry is Ω(logn). Combining (22), (21), (20), and (19), we complete the argument.
4.3 Equivalence Between Haar–Besov Seminorm and σSO
In this section, we characterize the smoothed-out variation σSO(f), introduced by Bansal and Jiang [BJ25] to bound their numerical integration error, in terms of the Haar–Besov seminorm of f averaged over shifts s∈[0,1)d.
Theorem 4.3 (Shift-averaged seminorm equivalence). For any f∈L2([0,1)d), its average Haar-Besov seminorm over random shifts s∼Unif([0,1)d) is equivalent to its smoothed-out variation:
This follows from standard results in functional analysis [Vyb06, Tri19], but we include a full proof for completeness. The proof proceeds in three main steps.
Expansion in the Fourier Basis. We begin by expressing the Haar–Besov seminorm of fs, averaged over shifts s∈[0,1)d, in terms of the Haar–Besov seminorms of the Fourier characters ek for k∈Zd. We refer the reader to Section 3 for notation on Fourier analysis over [0,1)d.
Proposition 4.10. For a function f∈L2([0,1)d), its Haar–Besov seminorm averaged over random shifts s∼Unif([0,1)d) can be expressed as:
Proof of Proposition 4.10. The shift-averaged squared Haar–Besov seminorm of f can be written as a weighted sum of its shift-averaged squared Haar coefficients:
Observe that the shift average of each squared Haar coefficient is exactly the squared L2-norm of the function g:s↦⟨fs,ΨS,j,ℓ⟩ on [0,1)d. By Parseval's identity, this L2-norm can be expressed in terms of its Fourier coefficients (see Section 3). To do so, we compute its Fourier coefficient corresponding to ek for each k∈Zd.
Proof. Consider the expansion of the shift-averaged Haar–Besov seminorm in Proposition 4.10. For a subset S, its inner product with ek can be written as a product over coordinates in [d].
where B0,0 denotes the constant 1 function over [0,1) (see Section 3). For i∈S, if ki=0, then eki=1, which is orthogonal to the corresponding Haar function. Hence, the inner product becomes 0. Similarly, for i∈[d]∖S, if ki=0, then eki is orthogonal to the constant function on [0,1), and the inner product again becomes 0. Therefore, ek for k=0, only Sk contributes. Since we sum only over nonempty subsets S, the constant character e0 does not contribute.
From Multi-Dimension to One-Dimension. Next, we express the projection of ek onto ΨSk,j,ℓ as the product of the projections of the one-dimensional characters eki onto ψji,ℓi. This reduces the multidimensional calculation to a collection of one-dimensional calculations.
Proposition 4.12. For any nonzero vector k∈Zd, the squared Haar–Besov seminorm of the Fourier character ek can be written as follows:
This tensorization follows because multidimensional dyadic boxes are tensor products of one-dimensional dyadic intervals.
Analysis in One-Dimension. It remains to show that, for every nonzero k∈Z, the squared Haar–Besov seminorm of ek(z):=exp(2πikz) is of order ∣k∣. In particular,
Proposition 4.13. For every k=0, the function ek(z) has squared Haar–Besov seminorm
∥ek∥H2=j≥0∑2jℓ=0∑2j−1∣⟨ek,ψj,ℓ⟩∣2=Θ(∣k∣).
Proof. We prove this by estimating ⟨ek,ψj,ℓ⟩ and summing the resulting bounds over j and ℓ. Since each ψj,ℓ is a scaled and shifted copy of ψ0,0, we express ⟨ek,ψj,ℓ⟩ using the corresponding coefficient for ψ0,0 for a modified exponential exp(2πλzi). We make this precise below. To this end, define g(λ)=∫01exp(2πiλz)ψ0,0(z)dz. Then, the (j,ℓ)th-Haar coefficient of ek can be expressed as:
A standard calculation [Dau92] gives ∣g(λ)∣=2sin2(πλ/2)/(π∣λ∣). Hence, ∣g(λ)∣≍∣λ∣ for 0<∣λ∣≤1, while ∣g(λ)∣≲∣λ∣−1 for ∣λ∣≥1. We split the sum at ⌊log2∣k∣⌋ and substitute (23) into the left-hand side of Proposition 4.13. Applying the two estimates over the corresponding ranges gives:
The first geometric sum is O(∣k∣3), so the factor ∣k∣−2 reduces its contribution to O(∣k∣). Similarly, the second geometric sum is O(∣k∣−1), and multiplying it by ∣k∣2 again gives O(∣k∣). For the lower bound, we retain only the terms with j>⌊log2∣k∣⌋. Their contribution is Ω(∣k∣).
We are ready to prove Theorem 4.3.
Proof of Theorem 4.3. Combining Corollary 4.11 with Proposition 4.12 and applying the estimates from Proposition 4.13, we obtain:
where the first equality follows by Proposition 4.12 and the second equality follows by Proposition 4.13. The factor Θd(1) arises because a constant factor is accumulated in each dimension, resulting in a factor of exp(O(d)), which is constant for fixed d. This completes the argument. □
References
[AA26] Ishaq Aden-Ali. Optimal online discrepancy minimization in linear time. arXiv preprint arXiv:2607.04388, 2026.
[ALS21] Ryan Alweiss, Yang P. Liu, and Mehtaab Sawhney. Discrepancy minimization via a self-balancing walk. In Symposium on Theory of Computing, STOC, pages 14–20, 2021. doi:10.1145/3406325.3450994.
[BJ25] Nikhil Bansal and Haotian Jiang. Quasi-Monte Carlo Beyond Hardy-Krause. In Symposium on Discrete Algorithms (SODA), pages 2051–2075. SIAM, 2025.
[Dau92] Ingrid Daubechies. Ten Lectures on Wavelets, volume 61 of CBMS-NSF Regional Conference Series in Applied Mathematics. Society for Industrial and Applied Mathematics, Philadelphia, PA, 1992. doi:10.1137/1.9781611970104.
[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.
[DS00] Jack Dongarra and Francis Sullivan. Guest editors' introduction to the top 10 algorithms. Computing in Science & Engineering, 2(1):22–23, 2000. doi:10.1109/MCISE.2000.814652.
[Gla03] Paul Glasserman. Monte Carlo Methods in Financial Engineering, volume 53 of Stochastic Modelling and Applied Probability. Springer, New York, NY, 2003. doi:10.1007/978-0-387-21617-1.
[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.
[Nie92] Harald Niederreiter. Random Number Generation and Quasi-Monte Carlo Methods. SIAM, 1992.
[Tri19] Hans Triebel. Function Spaces with Dominating Mixed Smoothness. EMS Series of Lectures in Mathematics. European Mathematical Society, 2019. doi:10.4171/195.
[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, volume 436 of Dissertations Mathematicae. 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.
A Comparison with the Alternative Definition of σSO in [BJ25]
Besides the Fourier definition of the smoothed-out variation in Section 3, [BJ25, Section 5.3] gave an alternative definition based on a randomly shifted dyadic decomposition. This formulation is closely related to, but different from, the shift-averaged Haar–Besov seminorm in Theorem 4.3.
To make the comparison explicit, consider d=1 and a smooth periodic function f. Let fs(z)=f((z+s)mod1). Denote the quantity in [BJ25, Section 5.3] by VBJ(f). By [BJ25, Claim 5.1],
Thus, VBJ measures endpoint increments over randomly shifted dyadic intervals.
By contrast, the Haar–Besov seminorm measures differences between averages over adjacent dyadic intervals. Recall that Bj,ℓ denotes the indicator of the ℓth dyadic interval at level j. For any function g, write gj,ℓ:=2j⟨g,Bj,ℓ⟩ for its average over that interval. Since
Although the two dyadic quadratic forms are distinct, shift averaging makes both diagonal in the Fourier basis. Moreover, their Fourier multipliers are comparable to ∣k∣. Indeed, Parseval's identity gives (see [BJ25, Lemma 5.3])
Thus, the three formulations characterize the same function space, although they encode it through different quadratic forms.
The advantage of the Haar formulation for our analysis lies not in defining a different smoothness class, but in its direct compatibility with the dyadic discrepancies controlled by the algorithm of [BJ25]. Indeed,
Thus, after expanding P<hfs in the Haar basis, disct(P<hfs) becomes a linear functional of the dyadic discrepancy vector
(disct(B))B∈D(h),
with coefficients whose squared Euclidean norm is controlled by ∥P<hfs∥H2. The sub-Gaussianity in Proposition 4.2 therefore controls this linear functional, as made precise in Lemma 4.8. Together with Proposition 4.6, this yields the desired integration-error bound.
By comparison, as reviewed in Section 2.1, the analysis in [BJ25] begins with the Hlawka–Zaremba formula, which expresses the integration error in terms of the continuous discrepancy of prefix intervals. After discretization, it writes Dprefix=PDdyadic, where P is the dyadic decomposition matrix. Consequently,
⟨f′,Dprefix⟩=⟨P⊤f′,Ddyadic⟩.
The sub-Gaussian control of Ddyadic therefore reduces their analysis to bounding ∥P⊤f′∥2. Their structural analysis of P bounds this quantity through the endpoint-increment quadratic form appearing in (24). In our approach, by contrast, the Haar expansion expresses disct(P<hfs) directly as a linear functional of the dyadic discrepancy vector, without passing through either the continuous discrepancy function or the prefix-discrepancy vector.