Polynomial-Time Algorithm for Optimal Stopping with Fixed Accuracy
Abstract
The optimal stopping (OS) problem is important to multiple academic communities and applications. Modern OS tasks often have long horizons and complicated, high-dimensional dynamics, making them especially challenging. Many past approaches have computational cost scaling exponentially in the horizon and/or underlying dimension in the worst case, suffering from the curse of dimensionality. In this work, we develop a novel expansion representation for the OS value. We prove that truncating this expansion yields a simulation-based algorithm that implements an -optimal stopping policy with computational complexity scaling polynomially in the time horizon and the underlying dimension (for any fixed ). We also explore some connections between our expansion and the martingale duality theory for OS.
Funding: Y. Chen acknowledges support from the National Natural Science Foundation of China (NSFC) [Grants NSFC-72501250 and NSFC-72394361] and the Guangdong Key Lab of Mathematical Foundations for Artificial Intelligence.
Supplemental Material: The online companion is available at https://doi.org/10.1287/stsy.2024.0075.
1. Introduction
We consider the problem of discrete-time optimal stopping (OS): a decision maker observes a stochastically evolving information process , where we assume that (for all t) is a D-dimensional vector for some . Let be the natural filtration generated by , that is, . Let be a sequence of measurable reward functions mapping trajectories to reals, with . For notational simplicity, let and denote the corresponding stochastic process by . Throughout this paper, we assume is integrable for all t, and the problem of interest is to compute , where denotes the set of all -adapted stopping times.
Problems of this kind find an array of applications across areas including operations research and management science, finance, economics, statistics, and computer science. In practice, the problems are often high-dimensional, with long horizons and non-Markovian/path-dependent dynamics, posing significant computational challenges. These challenges have generated substantial research across multiple academic communities and led to a vast literature on approximation algorithms and heuristics. Here, we briefly describe some of the main past approaches to OS, and defer a more detailed discussion to our literature review in Section 1.2.
The canonical approach to OS is to formulate it as a stochastic dynamic program (DP). The associated Bellman equation takes the form , and Here, is the reward-to-go function in period t, and we note that is -measurable for all t. Then Naively implementing this recursion, however, takes time exponential in the dimension and/or time horizon, a computational challenge known as the curse of dimensionality. Since the late 1990s, a major line of research has sought to overcome this challenge through approximate dynamic programming (ADP) methods (Tsitsiklis and Van Roy 1999, Longstaff and Schwartz 2001). Here one uses a judicious choice of basis functions and/or random sampling to approximate the Bellman equation and yield tractable algorithms, although typically having an optimality gap that depends on the quality of these basis functions (and that cannot be made arbitrarily small without incurring an exponential complexity or making extra assumptions).
Another popular approach builds on a dual formulation for OS, pioneered in the seminal work of Davis and Karatzas (1994). They establish a strong duality: , where denotes the set of mean-zero martingales adapted to . Moreover, they showed that the Doob–Meyer decomposition of the value functions yields an optimal martingale . Although not offering a resolution to the curse of dimensionality (as computing requires prior knowledge of the value functions themselves), this duality theory led to substantial algorithmic progress that complements ADP methods.
In this work, we provide new theoretical insights into OS by introducing a novel recursive expansion representation of the OS value, which leads to a polynomial-time algorithm with provable approximation guarantees. Below we summarize our main contributions.
1.1. Main Contributions
1.1.1. Novel Expansion Theory.
The standard DP formulation essentially relies on backward induction (in time) to set up the recursive representation of opt. We develop a novel expansion representation of opt that builds on fundamentally different logic. More precisely, the first term of our expansion coincides with the expected pathwise maximum , that is, the hindsight optimal value. The second term is an expectation that can be interpreted as a type of regret, and subsequent terms are defined recursively as the expectation of a maximum that can be interpreted as a higher-order notion of regret. This expansion representation has an intimate connection to the dual martingale formulation and yields an optimal dual martingale different from Under certain natural regularity conditions on the reward process (e.g., Assumption 1 on bounded rewards, or Assumption A.1 in the appendix regarding the bounded squared coefficient of variation of the maximum reward), we show that truncating our expansion after terms yields an -approximation to opt, with those terms of the expansion requiring a level of nesting (of conditional expectations) scaling only as (independent of the time horizon or dimension). We believe this representation complements the existing literature and offers a novel perspective on the theory of OS.
1.1.2. Polynomial-Time Algorithm.
We formalize an algorithm that implements (i.e., approximately computes) an appropriate truncation of our expansion representation via Monte Carlo simulation, given access to an efficient simulator of . Using this algorithm, we implement an -optimal policy in time , for any fixed . More precisely, the optimal dual martingale associated with our approach has an analogous expansion representation. Our stopping policy truncates this expansion at depth , uses Monte Carlo simulation to approximate the value of this truncated martingale at each time period, and stops the first time the reward process is sufficiently close to this approximated martingale. As simulating the kth term of the expansion requires implementing depth k nested conditional expectations, this requires a simulation and computational complexity scaling as . Because many other approaches (including DP and naive fully nested simulation) have a worst-case complexity growing exponentially with the horizon and/or dimension, our results demonstrate an exponential improvement and serve as a proof of concept that general high-dimensional path-dependent OS problems are polynomially approximable. To be clear, here polynomial time is meant in the fixed-accuracy sense: for each fixed , the exponent of T is a constant (depending on ). Our algorithms have an exponential (not polynomial) dependence on itself.
1.2. Related Literature
There is a vast literature on computational OS, and one of the most popular approaches is regression/ADP. Here one fixes a family of basis functions to approximate the DP value functions. Seminal papers in this area include Tsitsiklis and Van Roy (2001) and Longstaff and Schwartz (2001). There was much subsequent work on, for example, nonparametric regression, smoothing spline regression, recursive kernel regression, integer programming, reinforcement learning, multilevel Monte Carlo, and (deep) neural networks (see Lai and Wong 2004; Egloff 2005; Kohler 2008; Belomestny et al. 2015, 2020; Bayer et al. 2021; Becker et al. 2021; Ciocan and Mišić 2022; Sturt 2023; Zhou et al. 2023). These methods mostly focus on achieving empirical success rather than ensuring theoretical guarantees, with their performance relying on how well the choice of basis functions can approximate the true value functions. Those works with theoretical guarantees often require additional continuity assumptions, and/or scale exponentially in the time horizon. Most existing theoretical analyses for these methods focus on their convergence to the best approximation within the fixed set of basis functions (Clément et al. 2002, Glasserman and Yu 2004, Stentoft 2004, Belomestny 2011, Bouchard and Warin 2012, Bezerra et al. 2020) and do not have guarantees comparable to our own.
Building on the seminal work of Davis and Karatzas (1994), significant progress was made simultaneously by Haugh and Kogan (2004) and Rogers (2002) in their formulation of a dual methodology for OS. Instead of finding an OS time, it formulates and solves a dual optimization problem over the set of adapted martingales. Other dual representations were subsequently discovered (e.g., Jamshidian 2007), and the methodology was extended to more general control problems (Brown et al. 2010). We note that closely related dual formulations and methodologies have also appeared in the study of multistage stochastic optimization (Rockafellar and Wets 1991). Simulation approaches via dual formulation have since led to substantial algorithmic progress (see Andersen and Broadie 2004; Kolodko and Schoenmakers 2004, 2006; Belomestny and Milstein 2006; Chen and Glasserman 2007; Desai et al. 2012; Belomestny et al. 2013, 2019; Christensen 2014; Lelong 2018; Ibáñez and Velasco 2020). To achieve computational efficiency, many of these algorithms adopt ideas similar to those of ADP approaches, for example, fixing a family of basis functions/martingales to approximate the optimal dual martingale. Consequently, the quality of the bounds derived using these approaches typically depends on the expressiveness of the set of basis functions/martingales, or the accuracy of the initial estimation of the value functions. In addition, those works that do provide rigorous approximation guarantees typically require a level of nesting (of conditional expectations) scaling with the time horizon (see Kolodko and Schoenmakers 2006, Chen and Glasserman 2007).
More recently, new machine learning techniques, such as decision trees and deep neural networks, and ideas from robust optimization were introduced to solve the problem of high-dimensional OS and American option pricing (see Kohler et al. 2010, Becker et al. 2019, Becker et al. 2021, Ciocan and Mišić 2022, Sturt 2023). These approaches exhibit excellent performance on a number of benchmarks, but generally do not have strong theoretical guarantees independent of the quality of the basis functions/free from additional continuity assumptions.
1.3. Organization
The rest of this paper is organized as follows. In Section 2, we describe our expansion representation, establish its connection to the martingale duality theory, and provide associated error bounds. In Section 3, we introduce our expansion-inspired algorithm and state and prove our main algorithmic results. We present some closing thoughts and directions for future research in Section 4. We include an appendix, which contains several auxiliary technical lemmas used in our proof, along with a generalization to unbounded rewards. We also include an Online Companion, in which we prove that the well-studied Bermudan max call falls within our theoretical framework and present the results of some numerical experiments (mostly to illustrate the practical limitations of our approach).
2. Novel Expansion Representation for opt
In this section, we establish our expansion representation of opt, draw connections to the martingale duality theory, and analyze its convergence rate.
2.1. Novel Expansion Representation for opt
We begin by giving the simple intuition behind the expansion. We wish to compute Trivially, We next turn this straightforward bound into an equality by compensating with a remainder term, which is characterized by a new OS problem. We introduce a specific martingale that is, the Doob martingale of adapted to filtration By the optional stopping theorem, for any , it holds that and thus
Taking supremum on both sides, we conclude that
For , let (with probability one (w.p.1) nonpositive). Then (1) becomes
There are many bounds for the gap in the literature on so-called prophet inequalities (see Hill and Kertz 1983, 1992). The novelty of our approach will be to “recurse” this logic on the problem itself, and subsequently a sequence of such problems defined recursively. More formally, let for all and (denoting the corresponding stochastic process by ).
It follows from the basic properties of conditional expectation and a straightforward induction (the details of which we omit) that for all and . Then our first main result is as follows.
Before proving Theorem 1, we first state and prove some auxiliary results for .
(
Properties (2), (3), and (4) can be easily verified by straightforward induction arguments, and we omit the details. Let us prove property (1) and proceed by induction. The base case follows from definitions. Suppose the induction is true for all for some . Thus, By the optional stopping theorem, ,
Thus, and by the induction hypothesis,
With Lemma 1 in hand, we would be done with the proof of Theorem 1 if we could show that We now prove that this is indeed the case.
We proceed by constructing a particular stopping time for which , from which the desired result will follow (as the supremum over stopping times is at least the value achieved by any one stopping time). We will define as the first time that . Before formalizing this definition, we will need to argue that there always exists such a time, which we do now. It follows from Lemma 1 and monotone convergence that
Thus, converges a.s. to zero. By definition, and it follows that converges a.s. to zero, that is, As the function is continuous on , it follows from the continuous mapping theorem for almost sure convergence (see theorem 2.3 of van der Vaart 2000) that we may interchange max and limit, that is, w.p.1. Thus, because zero and are both almost sure limits of , it follows from the uniqueness of almost sure limits that
We now formally introduce the stopping time . Let , where (4) ensures is well defined, and the adaptedness of for all k (along with the measurability of and ) ensures is a stopping time.
We next argue that . First, we observe that the definition of implies that w.p.1 We now combine with dominated convergence (d.c.) to prove the desired result. That satisfies the conditions for d.c. follows from the nonpositivity and monotonicity shown in Lemma 1 because for all , and Lemma 1 implies that is integrable. Thus, by d.c., .
Finally, we prove that this fact implies The nonpositivity of for implies As the supremum over a set of stopping times is at least what one achieves with any given stopping time, we also have that (for all ) , and (as we have already shown ). Combining with the above completes the proof. □
Let us more explicitly give the first few terms. For , let . Then
Note that the first term, , is the only positive term in the expansion, which corresponds to the obvious upper bound. The term has a “regret” interpretation, as it is the expectation of the maximum of T terms, with term t intuitively the reward for stopping at time t minus your best guess of the all-time maximum given the information up to time t (i.e., the regret of stopping at time t). Later terms are the expectations of similar explicit suprema with analogous interpretations in terms of certain notions of (negative) “higher-order” regret, each of which can be computed by simulation.
2.2. Connection to Martingale Duality
As a byproduct of the expansion representation, we derive a novel optimal dual martingale. Let . Integrability of S is easily seen to follow from Theorem 1 and monotone convergence (as opt is finite). Let MAR denote the Doob martingale such that (s.t.) , . We now prove that is an optimal dual martingale for OS, and begin by proving the following result.
, and .
For all , equals
By applying the above inductively, we find that for all and , w.p.1,
We now take limits in (5) to prove that, w.p.1,
It follows from Lemma 1 and monotone convergence that converges a.s. to a limiting nonpositive r.v. with expectation By Theorem 1 and essentially the same argument we used to prove integrability of S, this expectation must equal zero, and we conclude that this limiting r.v. in fact equals zero w.p.1 for all t. Taking limits (in j) on the right-hand side of (5) then completes the proof of (6). Combining with (3), it follows that . As Theorem 1 and the definition of MAR imply that , combining the above completes the proof. □
Because implies , Lemma 2 immediately implies that is indeed an optimal dual martingale in the sense of Davis and Karatzas (1994).
is a zero-mean martingale s.t. , and thus is an optimal dual martingale in the sense of Davis and Karatzas (1994).
We now discuss a more refined notion of optimality to delineate a key difference between and the standard optimal dual martingale arising from the Doob–Meyer decomposition of the value functions. First, we recall the notion of i-sure optimality, as formalized in Schoenmakers et al. (2013) (our definition also adjusts for the different time indexing used there).
For any a martingale is i-surely optimal if w.p.1, and is surely optimal if it is i-surely optimal for
By Lemma 2, . Thus, would be 0-surely optimal if w.p.1 (the first reward-to-go function). As by definition , the desired equality follows from a proof essentially identical to our proof of Theorem 1, but with all expectations replaced by conditional expectations taken with respect to (w.r.t.) , and we omit the details. We conclude the following.
(
We note that (as shown in Schoenmakers et al. 2013) 0-sure optimality is a stronger notion than optimality in the sense of Davis and Karatzas (1994), as it requires optimality in a pathwise sense (for the zero-mean martingale ), not just in expectation. It is interesting to point out that the standard optimal dual martingale of Davis and Karatzas (1994) (arising from the Doob–Meyer decomposition of the value functions) is not only 0-surely optimal, but also surely optimal (see Schoenmakers et al. 2013). We now show that our optimal dual martingale does not satisfy this stronger sure optimality property, creating a clear delineation between and , and defer the proof to the appendix, Section A.1.
(
Next, we point out that can be interpreted as a “dual-threshold” stopping time w.r.t. MAR, and is in fact an optimal stopping time. Recall that , and hence, by (6), that is, can indeed be interpreted as a dual-threshold stopping time.
is an optimal solution to the stopping problem , that is, , because (by the dual-threshold interpretation) and by Lemma 2 and the optional stopping theorem.
The polynomial-time stopping policy we define in Section 3 essentially implements the stopping time defined in Observation 1, but with replaced by the approximation (for ) in the definition (and “equals zero” replaced by “at least ”), where is itself approximated by a depth k nested Monte Carlo simulation.
Let us close this section by comparing our approach to other duality-based approaches appearing in the literature. Essentially all of these previous works either (1) assume that one is given a good approximation to the value function (Belomestny et al. 2009) or a set of basis functions whose span contains a good approximation to the value function (Desai et al. 2012) and use these to construct a good candidate martingale; (2) take a primal-dual approach by starting with a candidate (in general suboptimal) stopping time and generating a (in general suboptimal) martingale by considering the martingale part of the Doob–Meyer decomposition of the value process generated by the stopping time (Andersen and Broadie 2004); (3) construct approximately optimal martingales using neural networks (Ye and Wong 2025); or (4) construct a sequence of recursively defined martingales that (after T iterations) converges to the optimal dual martingale (Kolodko and Schoenmakers 2006). Our approach is conceptually most similar to that of Kolodko and Schoenmakers (2006), directly constructing a sequence of recursively defined martingales without needing to be given approximations to the value functions or an associated basis. The key difference between our work and past such recursive constructions is that our sequence of martingales provably converges to optimality at rate , whereas previous such constructions (although exhibiting good empirical performance) had no such theoretical guarantees on the optimality gap of the iterates (beyond achieving optimality after the full T iterations, i.e., any theoretical guarantees required a deep level of nesting for long-horizon problems).
2.3. Approximation Guarantees When Truncating the Expansion
The power of Theorem 1 is that it allows for rigorous approximation guarantees when the infinite sum is truncated, under a natural boundedness assumption on
Assume is uniformly bounded with w.p.1 for all t, with U a constant independent of both the time horizon T and the dimension D.
Let denote the finite-sum truncation of our expansion after the first k terms.
Suppose Assumption 1 holds. Then, for all , .
Thus, truncating our expansion after k terms yields an absolute error at most , independent of the distribution of the underlying stochastic processes and or length of the time horizon, requiring only that the reward functions are bounded in [0, U]. Analogous results also hold when is allowed to be negative (and is uniformly bounded both above and below), although we do not formalize that extension here.
To prove Theorem 2, we state and prove a stronger pathwise guarantee, relating to (which by Lemma 2 and (6) equals zero). By the logic described at the end of Section 2.2, this will ultimately enable us to construct provably accurate and polynomial-time stopping policies by (intuitively) stopping the first time that (for ), instead of the truly optimal first time that .
Suppose that Assumption 1 holds. For , w.p.1, .
That follows from Lemma 1. It thus suffices to show the upper bound. Consider the last time period T. For , Summing over k then yields a telescoping sum, leading to the equation By Lemma 1, is nonpositive because , hence w.p.1. We may rewrite this inequality as Again by Lemma 1, we know that is monotone increasing in i for (and all ). As a result, is also monotone increasing in i for Thus, Combining the above arguments, we conclude that Because we assume for it must hold that Combining the above, we conclude that , and thus , completing the proof. □
By Lemma 1, . In light of Lemma 4, is a well-defined stopping time satisfying . Therefore, Combining with the fact that by definitions and the nonpositivity of for proven in Lemma 1 completes the proof. □
We next present a lower bound showing that Theorem 2 is tight up to an absolute multiplicative constant factor (asymptotically in k). Namely, there is a precise sense in which our bound on the rate of convergence of the stated expansion cannot be substantially improved. We defer the proof to the appendix, Section A.2.
(
Thus, under Assumption 1, truncating our expansion after k terms yields an error that is at most and (for large k) at least (asymptotically) (in the worst case).
In this section, we established the convergence rate of our expansion under a boundedness assumption on the reward process (Assumption 1). This condition is not essential for our main results, but rather assumed to enhance readability. Essentially the same set of convergence guarantees can be derived when Assumption 1 is relaxed and replaced by suitable moment bounds on the rewards. We defer a detailed treatment of one such extension (in which a bound is assumed on the squared coefficient of variation of the maximum reward) to the appendix, Section A.5.
3. Polynomial-Time Algorithm and Its Analysis
In this section, we describe and analyze our main algorithm , which (approximately) implements the stopping policy described informally in Section 2.3, that is, stop the first time , with and approximated by Monte Carlo simulation (involving depth k nested conditional expectations). Because by (5) and the definition of MAR, , such a stopping time is equivalent to stopping the first time (with ). Thus, serves as an expansion-based approximation to MAR, with our stopping time the corresponding approximation to .
We note that given such an algorithm, one can easily derive an algorithm for approximating the optimal value (by generating random sample paths, implementing on them, and averaging/taking the median), which we later state as a corollary. We begin by formalizing a generative/simulation model for the OS problem.
There exists a simulation oracle that, given any and partial trajectory , generates one trajectory of the underlying process conditioned on . Given input , generates an unconditioned trajectory of the underlying process .
Let us also formalize a computational model for analyzing algorithms. We adopt a model in line with Shapiro and Nemirovski (2005) and Swamy and Shmoys (2012), in which one is given access to an appropriate (simulation) oracle and can perform basic arithmetic operations on real numbers (regardless of the number of bits). Such a model falls within the framework of information complexity (Traub and Werschulz 1998), and we refer the reader to De Klerk (2008) for a more detailed comparison with the Turing-machine/bit complexity model.
Consistent with the assumptions in these works, we suppose that addition, subtraction, multiplication, division, maximum, and minimum of any two numbers can be done in one unit of time, as can the raising of one number to the power of another, regardless of the values of those numbers. We also suppose that the median of n numbers can be computed in n units of computational time, using, for example, the celebrated linear-time method for computing the median (Cormen et al. 2009), and ignoring the absolute constant governing the associated linear run time. We ignore all computational costs associated with reading, writing, and storing numbers in memory, as well as inputting numbers to functions. In general, our model allows for computation over real numbers. We also assume that drawing a sample from a standard Bernoulli, uniform (), or normal () r.v.s. takes one unit of time. Most importantly, we assume calling to generate a (conditioned) trajectory of takes C units of time, and evaluating the reward function takes G units of time. We assume that both G and C scale at most polynomially with T and D.
3.1. Algorithm Description and Guarantees
Before stating algorithm , we first formalize a family of subroutines that can recursively (approximately) compute the value of conditional on for any given input (which we denote by ) to accuracy with probability at least (with inputs to ). When , simply returns the exact reward value . When , as the algorithm approximates by natural Monte Carlo simulation of the conditional expectation, with repeated recursive calls to . A detailed description of can be found in Algorithm 1. Here, we recall that the “median trick” (as we formalize in Lemma A.2 of the appendix, Section A.4) is a direct corollary of Hoeffding’s inequality that is commonly used in speeding up estimation algorithms (by returning the median of independent estimations; see, e.g., Wang and Han 2015), and which goes back at least to the work of Nemirovski and Yudin (1983). By carefully adjusting (as a function of k) the parameters and at different depths of recursion, we can ensure that achieves the desired guarantees. We formalize the performance guarantee of in the following result, deferring the proof to Section 3.2.
(
Input:
Set
if then
Return Return the reward evaluation
end if
else
for to Generate independent approximations of
do
for to do
Generate independent sample paths of
end
end
Return Return the median for the “median trick”
end
Suppose that Assumptions 1 and 2 hold, with in Assumption 1. Then for all , , , , returns a random number X satisfying in total computational time at most
We now describe algorithm which intuitively stops the first time , with and approximated by a call to . Algorithm takes as input accuracy parameter and implements an -optimal (randomized) stopping policy, returning when to stop on the fly (given as input a sequentially revealed trajectory of drawn from the appropriate distribution). The description of is provided in Algorithm 2, and its performance guarantee is stated as Theorem 3. We again defer the proof to Section 3.2.
(
Input: , (revealed sequentially with decisions made on the fly)
Set
for to T do
Compute approximation to
if then
Return stop Stop when approximation to is near zero or T reached
end
end
(
(
(
Theorem 3 demonstrates an interesting contrast between our expansion-based approach and standard methods such as DP and naive nested simulation. To achieve a similar performance guarantee, those methods typically require an exponential-in-T run time. In contrast, our approach yields polynomial-in-T algorithms that can achieve any fixed-precision guarantee, in the precise sense that once is fixed, the exponent of T in the stated complexity bounds is a constant (depending on ). However, let us point out that is not a practically efficient algorithm, as is demonstrated in our numerical experiments (see the Online Companion). Our results thus serve as a proof of concept that a polynomial-time algorithm exists for complex OS problems. We leave the development of practical algorithms inspired by these theoretical insights as a direction for future research.
We end this section by noting that algorithm also implies an efficient algorithm for approximating the optimal value with high probability (by generating random sample paths, implementing on them, and averaging/taking the median). We provide a formal proof in the appendix, Section A.3.
(
3.2. Analysis
We analyze and in this section, thereby proving Lemma 6 and Theorem 3.
We proceed by induction. For the base case , we observe that simply returns the appropriate value , completing the proof in the base case. Next, suppose for induction that the result holds for all for some . We now prove the result holds for k. We first show that satisfies the desired high-probability error bounds, and begin by proving that in each of the outer loops, computes a random number satisfying . For and , let denote (as appears in the inner loop of ), where we recall that is an independently drawn trajectory distributed as for each s, i. Let denote the corresponding exact value of the maximum of on each of the trajectories . Note that under Assumption 1 and by the definition of , and . Let us fix some . Then it follows from the induction hypothesis, the Lipschitzness of , and a union bound that with probability at least , for all Recall that . Applying Hoeffding’s inequality (see Lemma A.1) to independent and identically distributed (i.i.d.) r.v.s. we know with probability at least . Combining the above with a union bound and the triangle inequality, we conclude that
We next focus on computational cost. To simplify notation, we denote the stated run-time guarantee (modulo the multiplier) by
For each fixed , in each of the inner iterations , first one call is made to to generate (at cost C); then T calls are made to , each at cost at most by the induction hypothesis; then the maximum of a length T array is computed (at computational cost T). One additional call is then made to , at cost at most the average of terms is computed and an additional subtraction is performed, at cost Finally, the median of numbers is computed at a cost of . Combining with the induction hypothesis, the computational cost of is thus at most
With some straightforward yet tedious algebra, it can be shown that
We now turn to Theorem 3. We begin with the following lemma relating the value achieved by a single stopping policy across different stopping problems (defined by ). The logic is essentially the same as that of Lemma 1, with the result following from our definitions, the optional stopping theorem, and a straightforward induction, and we omit the details.
For all (randomized) stopping times adapted to the (corresponding enlarged1) filtration , and all , .
For , let denote the stopping time that stops the first time that (i.e., the same stopping time used in the proof of Theorem 2), where by Lemma 4 such a time exists w.p.1. We now combine several of our past insights (some of which had shown closely related properties) to prove that is a nearly optimal stopping time.
Under the same assumptions as Theorem 3, .
It follows from Lemma 1 that
As Lemma 7 implies
As the nonpositivity of shown in Lemma 1 implies , and the definition of implies , combining the above completes the proof. □
With Corollary 4 in hand, we now complete the proof of Theorem 3.
It is easily verified that for any , the stopping time described in Algorithm 2 is a well-defined, appropriately adapted, randomized stopping time. Recall . Let denote the event
denote the event
Second, we claim that
Indeed, as , and Lemma 4 implies that w.p.1 , we conclude that w.p.1 . Let denote the smallest such time. Conditioning on ensures that . It then follows from the triangle inequality that , and hence . Combining the above completes the proof of (10).
Third, we claim that
Indeed, note that conditional on . It follows from the definition of that, conditional on , we have . But as we also condition on , it follows that . Combining with an application of the triangle inequality completes the proof of (11).
Combining (9)–(11), it follows that Further combining with the fact that our assumptions and Lemma 1 imply for all , we conclude that
4. Conclusion
In this work, we proved the existence of a polynomial-time (in the horizon T and dimension D) algorithm for complex OS problems with fixed accuracy and access to an efficient simulator. The algorithms come with provable performance guarantees under either boundedness or mild concentration assumptions. Although their complexity is polynomial, it is impractical, as was the case for the first polynomial-time algorithms for other problems in the literature. Our work leaves many interesting directions for future research.
4.1. The Design of Practical Algorithms with Polynomial Run-Time Guarantees
A natural question is whether there exists a practical algorithm with polynomial run-time guarantees. One possible approach is to develop different expansions for the OS value that converge more rapidly, and/or to identify natural assumptions under which such expansions converge more rapidly. Such approaches could also be combined with techniques from reinforcement learning, ADP, simulation (including multilevel Monte Carlo), and parallel computing.
4.2. Generalization to High-Dimensional Online Decision Making Broadly and Other Applications
We believe that our methodology can be extended to a broad family of high-dimensional online decision-making problems in economics, mechanism design/prophet inequalities, finance, statistics, machine learning, operations, and computer science. Preliminary results along these lines for certain problems in multiple stopping, dynamic pricing, and online combinatorial optimization appear in Chen (2021).
4.3. Lower Bounds and Computational Complexity
An interesting set of questions revolve around proving lower bounds on the computational and sample complexity for the problems studied, for example, path-dependent OS. There has been much interesting recent work laying out a theory of computational complexity (with positive and negative results) in the settings of stochastic control and reinforcement learning (Shapiro and Nemirovski 2005; Halman et al. 2014, 2015; Chen and Wang 2017; Sidford et al. 2018; Du et al. 2019; Wang et al. 2021). Better understanding the connection between our approach and those works, as well as the many existing models for online optimization, remains an interesting direction for future research. Furthermore, the question of what quality of approximation can be (efficiently) achieved with a given depth of nesting remains a very interesting open question. Such questions relate to recent studies on the power of adaptivity in optimization (e.g., Balkanski et al. 2017), as well as the literature on parallel and quantum computing, (multistage stochastic) convex optimization, and prophet inequalities.
The authors gratefully acknowledge Kaidong Zhang and Di Wu, for their tremendous help with a numerical implementation, and Bobby Kleinberg, for pointing out that the median trick could be applied in our setting. The authors also thank the organizers and participants of the 2018 Symposium on Optimal Stopping in honor of Larry Shepp held at Rice University.
Appendix
A.1. Proof of Lemma 3
Let us consider the following simple example. Suppose the dimension , the horizon , w.p.1, w.p.1, equals zero w.p. and equals one w.p. , and the stopping problem is simply , that is, for . We note that in this simple example, the state space of the underlying stochastic process consists of two elements: and As w.p.1, it follows that w.p.1, w.p.1, , and . A straightforward induction further implies that w.p.1, w.p.1, , and for all . Thus, by (6) and a straightforward calculation, we conclude that w.p.1 for all t. Reasoning about the reward-to-go functions, it is easily verified that w.p.1, w.p.1, and w.p.1. As w.p.1 for all t, we conclude from Definition 1 that is 0-surely optimal iff, w.p.1, , which is indeed the case. However, for to be 1-surely optimal it would have to hold that, w.p.1, , which is clearly not the case, as . □
A.2. Proof of Lemma 5
We explicitly construct the hard instances, parametrized by . We define hard instance k (whose optimal value we denote by ) as follows. In hard instance k, w.p.1, and is a Bernoulli r.v. with , , with the natural filtration generated by the reward process. We now compute the recursively defined for this problem, beginning with . Because is constant and thus is the trivial -field, we have that A straightforward calculation yields that is a r.v. taking one of two values: (w.p. ) or zero (w.p. ). Noting that is itself a martingale, and the difference of martingales is a martingale, we find (from the recursive definition of ) that is a martingale for all j. It then follows from our recursive definition of and a straightforward induction (the details of which we omit) that for all , , and is a r.v. taking one of two values: (w.p. ) or zero (w.p. ). A straightforward calculation then yields that for all . By Lemma 1, . Because is a martingale (as is a martingale for all j), it follows that Taking limits completes the proof. □
A.3. Proof of Corollary 3
In this section, we prove Corollary 3.
Consider the following algorithm , with positive integer parameters (which we will later select as appropriate functions of ). For each , algorithm generates independent unconditioned trajectories by calling times, and runs algorithm (with parameter ) on each of these trajectories. This yields values (for , ), representing the values returned by the calls to . We note that these values are i.i.d. Algorithm then returns . It follows from Hoeffding’s inequality (see Lemma A.1 in Section A.4) that for each , . Thus, so long as , it will hold that (for each )
We may thus apply the median trick (see Lemma A.2 in Section A.4) to conclude that for ,
Combining with Theorem 3 (which ensures ) and the triangle inequality implies the desired performance guarantee. The complexity analysis follows directly from the complexity guarantee of Theorem 3 after accounting for the iterations (and additional time for the averaging and taking the median). Combining the above with some straightforward algebra completes the proof. □
A.4. Auxiliary Technical Lemmas for Earlier Proofs
In this section, we review several auxiliary technical lemmas used in earlier proofs, including Hoeffding’s inequality, the median trick, and a property of the functions .
We first recall Hoeffding’s inequality, a standard result from probability theory used often to prove concentration for estimators.
(
We next recall the median trick—a direct corollary of Hoeffding’s inequality that is commonly used in speeding up algorithms for estimating a number (see, e.g., Wang and Han 2015) and which goes back at least to the work of Nemirovski and Yudin (1983). For completeness, and as many variants of the core idea appear throughout the literature, below we state and prove a specific result along these lines.
(
Suppose the m outputs from the repetitions of A (when running ) are (possibly nondistinct) and that, without loss of generality, these are nondecreasing (i.e., ). For , let It may be easily verified from our definition of median that for any the interval must contain the median of the sequence. Also, the event implies that there exists at least elements in that satisfy Conditional on this event, let u denote the index of the smallest of these (in the order ) and v the index of the largest. It may be easily verified that (conditional on that event) and . Combining with our previous observation about the median, it follows that in this case, and therefore, Taking the contraposition of the above reasoning, we conclude that implies and thus
Note that viewed as an unordered set has the same joint distribution as m i.i.d. r.v.s., each distributed as the indicator of whether a single output of A is within of X in absolute value. Thus, we may apply Hoeffding’s inequality with and to conclude that
Recall our definition of function in Section 3.2:
We next prove that the functions satisfy a certain recursive relationship, which we used in the proof of Lemma 6 (specifically in Inequality (8)).
For all and
from which Inequality (8) follows after multiplying both sides by .
Combining definitions, the monotonicity of in on and some straightforward algebra (including the facts that for for , and for ), we have that
A.5. Extension: Unbounded Rewards
In this section, we generalize our results to the setting in which rewards may be unbounded, instead imposing the following assumption.
Let Assume that w.p.1 for all t, and that the squared coefficient of variation of M, , is upper bounded by a constant independent of both the time horizon T and the dimension D. We let .
To handle this unbounded setting, we truncate the reward process, prove that this truncation still yields a good approximation of the original problem, and then apply our previous approach and algorithms. Our main result for the unbounded case is the following.
(
As in the bounded case, Theorem A.1 also implies an efficient algorithm for approximating the optimal value with high probability (by generating random sample paths, implementing on the truncated problem, and averaging/taking the median). The statement and proof are completely analogous to those of Corollary 3, and we omit the statement and details.
A.5.1. Proof of Theorem A.1
Let us begin by introducing some additional notation. For any define . For let and Let and Then , that is, the constant specified in Assumption A.1, can be represented as . Before diving into the proof of Theorem A.1, we first state and prove two lemmas. The next result bounds the error induced (in the optimal stopping value) by truncating the rewards.
Suppose for all t. Then, for all ,
The first inequality follows from the fact that, w.p.1, for all . To prove the second inequality, let denote an optimal stopping time for the problem , where existence follows from Chow et al. (1971). Then, by a straightforward coupling and rescaling,
Noting that completes the proof. □
The next result shows that opt may be bounded (from below) as a function of and .
Recall the celebrated Paley–Zygmund inequality, that is, the fact that for any and nonnegative r.v. X,
Now, for , consider the stopping time , which stops the first time that , and stops at time T if no such time exists in . Then, by nonnegativity and (A.1),
Optimizing over (a straightforward exercise in calculus) then completes the proof. □
We next complete the proof of Theorem A.1.
For any and , we may use algorithm (as in Theorem 3) to implement a randomized stopping time s.t. . Because , it also yields a stopping time for the original problem . By construction, for all , w.p.1 Combining the above, it follows that for any and ,
Combining with Lemma A.4, the definition of , and the triangle inequality, we conclude that for all and ,
For , let and It then follows from (A.2), Lemma A.5, and some straightforward algebra that for any ,
Combining with Theorem 3, and accounting for the extra time needed to truncate and normalize the rewards, completes the proof. □
1 See Solan et al. (2012) for a formal discussion of randomized stopping times and corresponding enlarged filtrations.
2 Here, by default, we define the median of an ordered sequence (with n even or odd) as .
References
- (2004) Primal-dual simulation algorithm for pricing multidimensional American options. Management Sci. 50(9):1222–1234.Link, Google Scholar
- (2017) The limitations of optimization from samples. Proc. 49th Annual ACM SIGACT Sympos. Theory Comput. (Association for Computing Machinery, New York), 1016–1027.Google Scholar
- (2021) Dynamic programming for optimal stopping via pseudo-regression. Finance 21(1):29–44.Google Scholar
- (2019) Deep optimal stopping. J. Machine Learn. Res. 20(74):1–25.Google Scholar
- (2021) Solving high-dimensional optimal stopping problems using deep learning. Eur. J. Appl. Math. 32(3):470–514.Google Scholar
- (2011) On the rates of convergence of simulation-based optimization algorithms for optimal stopping problems. Ann. Appl. Probab. 21(1):215–239.Google Scholar
- (2006) Monte Carlo evaluation of American options using consumption processes. Internat. J. Theoret. Appl. Finance 9(4):455–481.Google Scholar
- (2009) True upper bounds for Bermudan products via non-nested Monte Carlo. Math. Finance 19(1):53–71.Google Scholar
- (2019) Optimal stopping via pathwise dual empirical maximisation. Appl. Math. Optim. 79(3):715–741.Google Scholar
- (2015) Multilevel simulation based policy iteration for optimal stopping—Convergence and complexity. SIAM/ASA J. Uncertainty Quantification 3(1):460–483.Google Scholar
- (2013) Multilevel dual approach for pricing American style derivatives. Finance Stochastics 17(4):717–742.Google Scholar
- (2020) Optimal stopping via deeply boosted backward regression. Comm. Math. Sci. 18(1):109–121.Google Scholar
- (2020) Discrete-type approximations for non-Markovian optimal stopping problems: Part II. Methodology Comput. Appl. Probab. 22(3):1221–1255.Google Scholar
- (2012)
Monte-Carlo valuation of American options: Facts and new algorithms to improve existing methods . Carmona R, Del Moral P, Hu P, Oudjane N, eds. Numerical Methods in Finance (Springer, Berlin), 215–255.Google Scholar - (2010) Information relaxations and duality in stochastic dynamic programs. Oper. Res. 58(4-part-1):785–801.Link, Google Scholar
- (2021) Efficient algorithms for high-dimensional data-driven sequential decision-making. Ph.D. thesis, Cornell University, Ithaca, NY.Google Scholar
- (2007) Additive and multiplicative duals for American option pricing. Finance Stochastics 11(2):153–179.Google Scholar
- (2017) Lower bound on the computational complexity of discounted Markov decision problems. Preprint, submitted May 20, https://arxiv.org/abs/1705.07312.Google Scholar
- (1971) Great Expectations: The Theory of Optimal Stopping (Houghton Mifflin, Boston).Google Scholar
- (2014) A method for pricing American options using semi-infinite linear programming. Math. Finance 24(1):156–172.Google Scholar
- (2022) Interpretable optimal stopping. Management Sci. 68(3):1616–1638.Link, Google Scholar
- (2002) An analysis of a least squares regression method for American option pricing. Finance Stochastics 6(4):449–471.Google Scholar
- (2009) Introduction to Algorithms (MIT Press, Cambridge, MA).Google Scholar
- (1994)
A deterministic approach to optimal stopping . Kelly FP, ed. Probability, Statistics and Optimisation (John Wiley & Sons Ltd, New York), 455–466.Google Scholar - (2008) The complexity of optimizing over a simplex, hypercube or sphere: A short survey. Central Eur. J. Oper. Res. 16(2):111–125.Google Scholar
- (2012) Pathwise optimization for optimal stopping problems. Management Sci. 58(12):2292–2308.Link, Google Scholar
- (2019) Is a good representation sufficient for sample efficient reinforcement learning? Internat. Conf. Learn. Representations (OpenReview.net).Google Scholar
- (2005) Monte Carlo algorithms for optimal stopping and statistical learning. Ann. Appl. Probab. 15(2):1396–1432.Google Scholar
- (2004) Number of paths versus number of basis functions in American option pricing. Ann. Appl. Probab. 14(4):2090–2119.Google Scholar
- (2015) A computationally efficient FPTAS for convex stochastic dynamic programs. SIAM J. Optim. 25(1):317–350.Google Scholar
- (2014) Fully polynomial time approximation schemes for stochastic dynamic programs. SIAM J. Discrete Math. 28(4):1725–1796.Google Scholar
- (2004) Pricing American options: A duality approach. Oper. Res. 52(2):258–270.Link, Google Scholar
- (1983) Stop rule inequalities for uniformly bounded sequences of random variables. Trans. Amer. Math. Soc. 278(1):197–207.Google Scholar
- (1992) A survey of prophet inequalities in optimal stopping theory. Contemporary Math. 125(1):191–207.Google Scholar
- (2020) Recursive lower and dual upper bounds for Bermudan-style options. Eur. J. Oper. Res. 280(2):730–740.Google Scholar
- (2007) The duality of optimal exercise and domineering claims: A Doob–Meyer decomposition approach to the Snell envelope. Stochastics 79(1–2):27–60.Google Scholar
- (2008) A regression-based smoothing spline Monte Carlo algorithm for pricing American options in discrete time. AStA Adv. Statist. Anal. 92(2):153–178.Google Scholar
- (2010) Pricing of high-dimensional American options by neural networks. Math. Finance 20(3):383–410.Google Scholar
- (2004) Upper bounds for Bermudan style derivatives. Monte Carlo Methods Appl. 10(3–4):331–343.Google Scholar
- (2006) Iterative construction of the optimal Bermudan stopping time. Finance Stochastics 10(1):27–49.Google Scholar
- (2004) Valuation of American options via basis functions. IEEE Trans. Automatic Control 49(3):374–385.Google Scholar
- (2018) Dual pricing of American options by wiener chaos expansion. SIAM J. Financial Math. 9(2):493–519.Google Scholar
- (2001) Valuing American options by simulation: A simple least-squares approach. Rev. Financial Stud. 14(1):113–147.Google Scholar
- (1983) Problem Complexity and Method Efficiency in Optimization, Wiley-Interscience Series in Discrete Mathematics (John Wiley and Sons, New York).Google Scholar
- (1991) Scenarios and policy aggregation in optimization under uncertainty. Math. Oper. Res. 16(1):119–147.Link, Google Scholar
- (2002) Monte Carlo valuation of American options. Math. Finance 12(3):271–286.Google Scholar
- (2013) Optimal dual martingales, their analysis, and application to new algorithms for Bermudan products. SIAM J. Financial Math. 4(1):86–116.Google Scholar
- (2005)
On complexity of stochastic programming problems . Jeyakumar V, Rubinov A, eds. Continuous Optimization (Springer, Boston), 111–146.Google Scholar - (2018)
Near-optimal time and sample complexities for solving Markov decision processes with a generative model . Bengio S, Wallach H, Larochelle H, Grauman K, Cesa-Bianchi N, Garnett R, eds. Advances in Neural Information Processing Systems, vol. 31 (Curran Associates, Red Hook, NY), 5186–5196.Google Scholar - (2012) Random stopping times in stopping problems and stopping games. Preprint, submitted November 25, https://arxiv.org/abs/1211.5802.Google Scholar
- (2004) Convergence of the least squares Monte Carlo approach to American option valuation. Management Sci. 50(9):1193–1203.Link, Google Scholar
- (2023) A nonparametric algorithm for optimal stopping based on robust optimization. Oper. Res. 71(5):1530–1557.Google Scholar
- (2012) Sampling-based approximation algorithms for multistage stochastic optimization. SIAM J. Comput. 41(4):975–1004.Google Scholar
- (1998) Complexity and Information. Lezioni Lincee, vol. 26862 (Cambridge University Press, Cambridge, UK).Google Scholar
- (1999) Optimal stopping of Markov processes: Hilbert space theory, approximation algorithms, and an application to pricing high-dimensional financial derivatives. IEEE Trans. Automatic Control 44(10):1840–1851.Google Scholar
- (2001) Regression methods for pricing complex American-style options. IEEE Trans. Neural Networks 12(4):694–703.Google Scholar
- (2000) Asymptotic Statistics, Cambridge Series in Statistical and Probabilistic Mathematics, vol. 3 (Cambridge University Press, Cambridge, UK).Google Scholar
- (2015)
Basics for sublinear algorithms . Sublinear Algorithms for Big Data Applications, SpringerBriefs in Computer Science (Springer, Cham, Switzerland), 9–21.Google Scholar - (2021) An exponential lower bound for linearly-realizable MDPs with constant suboptimality gap. Ranzato M, Beygelzimer A, Dauphin Y, Liang PS, Vaughan JW, eds. Advances in Neural Information Processing Systems, vol. 34 (Curran Associates, Inc., Red Hook, NY).Google Scholar
- (2025) DeepMartingale: Duality of the optimal stopping problem with expressivity. Preprint, submitted October 13, https://arxiv.org/abs/2510.13868.Google Scholar
- (2023) Unbiased optimal stopping via the MUSE. Stochastic Processes their Appl. 166(2023):104088.Google Scholar

