Abstract
This paper considers the challenging computational task of estimating nested expectations. Existing algorithms, such as nested Monte Carlo or multilevel Monte Carlo, are known to be consistent but require a large number of samples at both inner and outer levels to converge. Instead, we propose a novel estimator consisting of nested kernel quadrature estimators and we prove that it has a faster convergence rate than all baseline methods when the integrands have sufficient smoothness. We then demonstrate empirically that our proposed method does indeed require fewer samples to estimate nested expectations on real-world applications including Bayesian optimisation, option pricing, and health economics.
TL;DR
Estimating "nested expectations"—the expectation of a function that itself depends on another conditional expectation—is a notoriously heavy computational task common in finance, Bayesian optimization, and healthcare. This paper introduces Nested Kernel Quadrature (NKQ), a novel estimator that replaces standard Monte Carlo sampling with kernel quadrature. By exploiting the smoothness of the underlying functions, NKQ achieves a significantly faster convergence rate, requiring far fewer samples than existing methods to reach the same level of accuracy.
The Challenge of Nested Expectations
The paper tackles the computational bottleneck of estimating nested expectations, which take the mathematical form $\mathbb{E}_{\theta}[f(\mathbb{E}_{X| \theta}[g(X, \theta)])]$. This structure contains two levels of intractability: an inner conditional expectation and an outer expectation.
The standard approach to solving this is Nested Monte Carlo (NMC), which uses standard Monte Carlo averaging for both the inner and outer integrals. However, because errors from the inner estimation compound with the outer estimation, NMC has a painfully slow convergence rate. To achieve a small error threshold $\Delta$, NMC might require tens or hundreds of millions of function evaluations. While advanced methods like Multi-Level Monte Carlo (MLMC) improve this, they still fail to exploit a key property of many real-world problems: smoothness. If the functions being integrated are relatively smooth, we should be able to estimate their integrals much more efficiently than blind random sampling.
Methodology: Nested Kernel Quadrature (NKQ)
To solve this, the authors propose Nested Kernel Quadrature (NKQ). Instead of using simple unweighted averages of random samples (like Monte Carlo), NKQ uses Kernel Quadrature (KQ) for both the inner and outer expectations.
KQ is an integration technique that uses reproducing kernel Hilbert spaces (RKHS) to optimally weight samples based on their locations and the smoothness of the target function. The NKQ algorithm operates in two stages:
- Stage I: Estimate the inner conditional expectation using a KQ estimator with $N$ samples.
- Stage II: Estimate the outer expectation using a second KQ estimator with $T$ samples, feeding it the outputs from Stage I.
The "Change of Variable" Trick: A known limitation of KQ is that calculating the weights requires inverting an $N \times N$ matrix, costing $\mathcal{O}(N^3)$ compute time, and requires a closed-form "Kernel Mean Embedding" (KME). To bypass this, the authors apply a change-of-variable trick, mapping complex distributions to simple uniform ones. This allows the KQ weights to be pre-computed, reducing the runtime cost of NKQ to $\mathcal{O}(N \times T)$, matching standard Monte Carlo but with vastly superior sample efficiency.
Experimental Evaluation
Because this is a methodological paper focused on numerical integration, it evaluates the algorithms on simulation environments and synthetic functions:
- Synthetic Benchmark: A custom polynomial/uniform distribution setup with known analytical solutions to verify theoretical convergence rates.
- Financial Risk Management: A Black-Scholes simulation estimating the expected loss of a butterfly call option under economic shocks.
- Health Economics: An Expected Value of Partial Perfect Information (EVPPI) simulation for medical decision-making, featuring a 19-dimensional Gaussian setup.
- Bayesian Optimization: Synthetic optimization functions (
Dropwave,Ackley, andCosine8) from the BoTorch library, used to evaluate two-step look-ahead acquisition functions.
Key Insights and Results
- Smoothness is a superpower: By explicitly accounting for the smoothness of the integrands (using Sobolev spaces), NKQ drastically reduces the number of function evaluations needed. It effectively turns a brute-force sampling problem into a highly optimized interpolation problem.
- Noisy Stage II is theoretically safe: A major theoretical hurdle in nested integration is that the outer integral (Stage II) relies on noisy estimates from Stage I. The authors successfully proved that this observation noise is subsumed by the Stage I error.
- Theoretical Speedup: To guarantee an error of $\Delta$, NKQ requires $\tilde{\mathcal{O}}(\Delta^{-\frac{d_X}{s_X} - \frac{d_\Theta}{s_\Theta}})$ samples. In contrast, standard NMC requires $\mathcal{O}(\Delta^{-3})$ or $\mathcal{O}(\Delta^{-4})$, and MLMC requires $\mathcal{O}(\Delta^{-2})$.
- Practical Performance: On the option pricing task, NKQ achieved an empirical convergence rate of $r \approx 1.90$, matching its theoretical optimum and vastly outperforming NMC ($r \approx 2.97$). In Bayesian Optimization, NKQ achieved the lowest Normalized Mean Squared Error (NMSE) in wall-clock time across all benchmarks.
Limitations and Future Work
- Strict Smoothness Assumptions: The theoretical guarantees require the functions to belong to specific Sobolev spaces. In practice, functions with abrupt changes (like the
maxoperator) violate these assumptions, though NKQ still performed well empirically. - Curse of Dimensionality: If the problem is very high-dimensional and not very smooth, the cost of NKQ degrades and approaches standard Monte Carlo.
- Future Work: The authors suggest extending NKQ to a fully Bayesian framework (Bayesian Quadrature) to provide finite-sample uncertainty quantification. Establishing minimax lower bounds for genuinely two-stage nested expectation problems remains an open mathematical challenge.
Summary updated