Monte Carlo Control & Its Convergence
Exploring starts, soft policies and a long-open convergence question.
Monte Carlo with exploring starts may be the simplest control algorithm in reinforcement learning: average the returns of each state–action pair, act greedily, repeat. Sutton (1999) asked whether it always converges, and Sutton and Barto (2018) still called that "one of the most fundamental open theoretical questions in reinforcement learning". Two decades of answers followed: proofs for modified versions, for undiscounted problems and for feed-forward MDPs, and, in 2026, counterexamples. This lesson works through what is proved, how, and where the difficulty lies.
What you’ll learn
- Formulate Monte Carlo control as optimistic policy iteration, and prove that if its greedy policy eventually stops changing, that policy is optimal.
- State the GLIE conditions, distinguish exploration schedules that satisfy them from ones that do not, and say what GLIE guarantees for SARSA and for Monte Carlo control.
- State Tsitsiklis's convergence theorem for optimistic policy iteration with Monte Carlo evaluation, reconstruct its monotonicity proof, and explain why unequal update rates break it.
- Summarize the status of MC-ES: feed-forward MDPs, undiscounted problems, the classic counterexample for arbitrary start schedules, and the 2026 counterexamples and fix.
Monte Carlo control is optimistic policy iteration
Policy iteration evaluates a policy exactly, then improves it greedily, and terminates in finitely many steps. Monte Carlo control evaluates by averaging returns, one episode at a time, and improves after every episode. Each is therefore an average of returns generated by a whole sequence of different policies. Bertsekas and Tsitsiklis call such schemes optimistic policy iteration: they act on evaluations that are not finished.
Neither classical proof applies. Policy iteration's proof needs exact evaluation; stochastic-approximation proofs (Convergence of TD) need each update to be a noisy step toward a fixed contraction, and the "operator" here, average the returns of whatever the current greedy policy is, jumps discontinuously when the greedy action changes. One thing can be proved cleanly, though.
After the policy freezes at episode , every new return following a visit to is a return of "take , then follow " (with vanishing exploration, of a policy that converges to ). The finitely many returns from before are washed out of the average, and the strong law gives
For every large , maximizes . Weak inequalities survive limits, so is greedy with respect to its own action values:
Hence : solves the Bellman optimality equation, whose solution is unique under the assumptions, so .
This is Sutton and Barto's informal argument that MC-ES "cannot converge to any suboptimal policy", made precise. Its hypothesis is the whole difficulty. The values can converge to a point where two actions are exactly tied, with the greedy policy switching between them forever; nothing then forces that point to be , and the lemma says nothing. Every counterexample below lives in that loophole.
Exploration that fades: GLIE
The two halves pull against each other, and the schedule matters. Singh et al. show that ε-greedy exploration whose decays per state, as with and the number of visits to so far, is GLIE, as are suitably cooled Boltzmann schedules. The tempting global schedule, in episode , can fail the first half.
Build an MDP in which reaching a state takes two exploratory actions in a row: from the start, a non-greedy action to , then a non-greedy action from to (for instance, the alternatives pay a little at once, and the actions toward pay nothing until ). Until is visited, its estimates never change, so both actions stay non-greedy, and in episode each is taken with probability at most :
Chaining these conditional probabilities, the chance of never reaching , given that the first (fully random) episode missed it, is bounded below by a convergent product:
So with positive probability the agent never sees , although it keeps visiting : the first exploratory move has probability of order in episode , and . An action in a state visited infinitely often is then never taken, so the global schedule is not GLIE, and if holds the best reward the agent never learns the optimal policy. With per-state decay, visits drive exploration instead: if is visited infinitely often, the exploration probabilities at its successive visits are , whose sum diverges, so by the conditional (Lévy) Borel–Cantelli lemma every action is tried there infinitely often. Induction over the states reachable from the start gives infinite exploration everywhere.
For Monte Carlo control with sample averages, convergence under GLIE is often stated in course notes. GLIE supplies the two ingredients of the lemma above, infinitely many samples per pair and a policy that becomes greedy, so if the greedy policy settles, it is optimal. The missing step is the same as for MC-ES: ruling out endless switching between near-tied actions while each average mixes the returns of many policies. SARSA escapes it because its one-step target is a contraction plus a perturbation; a Monte Carlo return has no such structure.
Which exploration schedule guarantees GLIE in every finite MDP whose states are all reachable?
- ε-greedy with a constant
- ε-greedy with in episode
- Pure greedy action selection with optimistic initial values
- ε-greedy with , decaying with the visits to each state
Show the answer
D. ε-greedy with , decaying with the visits to each state
Per-state decay keeps exploring every state as often as that state is visited, since , and it becomes greedy in the limit. A global schedule reaches states that need two exploratory steps in a row with probabilities of order , whose sum is finite, so with positive probability such a state is never visited at all.
What is proved: Tsitsiklis (2002)
The proof avoids contraction arguments, which fail because the greedy policy jumps, and uses monotonicity instead. Here is its skeleton for the state-value version, in reward form (Tsitsiklis writes it for costs). Let be the estimate, greedy for it, the all-ones vector, and recall that is monotone and satisfies .
A greedy policy is not much worse than its estimate. Let , how much overshoots its own backup. Since , applying times gives , and as :
The overshoot dies out. Because is the same scalar in every state and is affine, . Using , the vector obeys a contraction-plus-noise inequality with zero-mean noise , so and :
Sandwich. Upper: , so and . Lower: once , step 1 with one more application of gives , so dominates a noisy iteration of the contraction , whose fixed point is . Let .
Step 2 is where the hypotheses bite. If states are updated at different rates, the step becomes a diagonal matrix , and no longer splits as above, because . Per-entry sample averages repair the fixed-distribution case, since every entry's expected step is then about , a scalar again. But updating every pair visited along the trajectory (first-visit or every-visit), which is the algorithm in Sutton and Barto, makes update rates depend on the policy, and Tsitsiklis left that case open. If starts may be scheduled arbitrarily, subject only to every pair being chosen infinitely often, convergence fails: Example 5.12 of Bertsekas and Tsitsiklis (1996) is a counterexample.
Why does Tsitsiklis's proof need every entry to be updated at the same rate?
- To keep the noise zero-mean
- So that the update commutes with the affine map : a scalar step satisfies , while a diagonal step matrix does not commute with
- Because the Robbins–Monro conditions apply only to scalar sequences
- To make the greedy policy unique
Show the answer
B. So that the update commutes with the affine map : a scalar step satisfies , while a diagonal step matrix does not commute with
The monotonicity argument transports inequalities through applied to the updated estimate. With per-state rates the update and no longer commute, the overshoot recursion breaks, and with it the proof. Per-entry sample averages under a fixed start distribution make the expected rates equal again.
MC-ES today: feed-forward MDPs and counterexamples
Two decades of work have filled in parts of the map. Liu (2021) proved convergence results for MC-ES-type algorithms in undiscounted stochastic shortest-path problems, complementing the discounted case. The first proof for the original algorithm, first-visit updates with sample averages, came for a structured class of problems.
In June 2026, Oliviers and Vinnicombe posted counterexamples to the general case (arXiv, June 2026; a NeurIPS 2026 paper), so the claims are recent and not yet independently confirmed. Their start distributions satisfy exploring starts, every pair always having positive probability, but are chosen in response to the current greedy policy. For an initial-visit version (only the starting pair is updated) with sample averages, in a three-state MDP, 99.6% of their simulated runs converge to a point where the optimal and a suboptimal action are tied below , exactly the loophole of the stability lemma. The mechanism: along the start schedule's cycle the optimal action is updated more often than the suboptimal one, so its sample-average step shrinks faster; when the estimates move toward the optimal policy, the suboptimal action's larger steps push them back to the tie. For the first-visit version, in a 13-state cyclic chain with , a mean-field analysis and very long simulations give strong evidence of the same behavior, but not a proof.
Their fix rescales each update by the inverse of the probability of the start action within its start state, , which equalizes the effective step across actions. With strictly positive exploring starts, uniform tie-breaking and Robbins–Monro steps (plus a mild regularity condition), they state a convergence theorem for the initial-visit version, with the proof sketched and building on a companion preprint.
| Variant | Setting | Status |
|---|---|---|
| Initial-visit, every pair (or a uniform random pair) per iteration, scalar steps | Discounted | Converges (Tsitsiklis, 2002) |
| Initial-visit, fixed nonuniform starts, per-entry sample averages | Discounted | Converges (Tsitsiklis, 2002) |
| Arbitrary start schedule, each pair infinitely often | Discounted | Can fail (Bertsekas & Tsitsiklis, 1996) |
| Original first-visit MC-ES, sample averages | Optimal Policy Feed-Forward MDPs | Converges (Wang et al., 2022) |
| Initial- or first-visit, sample averages, policy-dependent exploring starts | General MDPs | Suboptimal ties reported (Oliviers & Vinnicombe, 2026; first-visit case by strong numerical evidence) |
| Initial-visit with steps rescaled by | Discounted or episodic | Converges (same preprint, proof sketched) |
| Original first-visit MC-ES with a fixed start distribution, such as uniform | General MDPs | Apparently still open |
Key takeaways
- Monte Carlo control is optimistic policy iteration: every average mixes the returns of many policies, so neither the policy-iteration proof nor the standard stochastic-approximation proof applies.
- If the greedy policy eventually stops changing, it is optimal; the difficulty is ruling out endless switching between tied actions.
- GLIE needs per-state decaying exploration: with a global , a state behind two exploratory steps can be missed forever with positive probability. Under GLIE, SARSA(0) provably converges; the Monte Carlo analogue lacks SARSA's contraction structure.
- Tsitsiklis (2002) proved convergence when every entry is updated at the same rate, using monotonicity; unequal rates break the key commutation, and arbitrary start schedules admit counterexamples.
- The original first-visit MC-ES converges in feed-forward MDPs (2022); a 2026 preprint reports tie attractors under policy-dependent exploring starts and a step-size fix; with a fixed start distribution the question appears to remain open.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
On some run of MC-ES, the greedy policy stops changing after episode 10,000. What can you conclude?
- Nothing: MC-ES can settle on any policy
- The policy is optimal, because the averages then converge to its own action values and it is greedy with respect to them
- The policy is optimal only if the discount factor is below 0.9
- The policy is the best ε-soft policy
Show the answer
B. The policy is optimal, because the averages then converge to its own action values and it is greedy with respect to them
Once the policy is fixed, sample averages converge to , and a policy greedy with respect to its own action values satisfies the Bellman optimality equation. The open question is whether the policy always settles: values can instead converge to a tie with the policy switching forever.
In the 2026 counterexamples, what kind of point attracts the action-value estimates?
- A point where an optimal and a suboptimal action are tied below , so the greedy policy keeps switching and never settles
- The values of a fixed suboptimal policy, which the greedy policy then follows forever
- A point where the estimates diverge to infinity
- The values of the uniformly random policy
Show the answer
A. A point where an optimal and a suboptimal action are tied below , so the greedy policy keeps switching and never settles
A fixed suboptimal policy cannot be a limit, by the stability lemma. The counterexamples instead exploit the lemma's loophole: the estimates converge to a tie, the greedy policy chatters between the two actions, and unequal sample-average step sizes keep pushing the estimates back to the tie.
Why is MC-ES easier to analyze in an Optimal Policy Feed-Forward MDP?
- Because such MDPs have only one optimal action per state
- Because the returns there have zero variance
- Because no state recurs under an optimal policy, so values can be pinned down by induction from the end of the episode backward, using only the law of large numbers
- Because the greedy policy never changes in such MDPs
Show the answer
C. Because no state recurs under an optimal policy, so values can be pinned down by induction from the end of the episode backward, using only the law of large numbers
Without recurrence under optimal play, the states closest to the end have returns that do not depend on any still-changing upstream choice; once their optimal actions are fixed, the next layer's averages converge, and so on. That replaces stochastic approximation by a strong induction with the strong law.
Further reading
- J. N. Tsitsiklis, "On the convergence of optimistic policy iteration," Journal of Machine Learning Research 3, 59–72 (2002).
- S. Singh, T. Jaakkola, M. L. Littman & C. Szepesvári, "Convergence results for single-step on-policy reinforcement-learning algorithms," Machine Learning 38, 287–308 (2000).
- C. Wang, S. Yuan, K. Shao & K. Ross, "On the convergence of the Monte Carlo exploring starts algorithm for reinforcement learning," International Conference on Learning Representations (ICLR) (2022).
- O. Oliviers & G. Vinnicombe, "Exploring starts are not enough: counterexamples and a fix for Monte Carlo exploring starts," Advances in Neural Information Processing Systems (NeurIPS 2026); arXiv:2606.15247.
- D. P. Bertsekas & J. N. Tsitsiklis, Neuro-Dynamic Programming (Athena Scientific, 1996).