Simple Algorithm
Reinforcement Learning · Fixed Point · 26 min

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 Q(s,a)Q(s,a) 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.

DerivationProof
  1. Qk(s,a)→ k→∞ Qπˉ(s,a)for every pair (s,a)Q_k(s,a) \xrightarrow{\ k\to\infty\ } Q^{\bar\pi}(s,a)\qquad\text{for every pair } (s,a)

    After the policy freezes at episode KK, every new return following a visit to (s,a)(s,a) is a return of "take aa, then follow πˉ\bar\pi" (with vanishing exploration, of a policy that converges to πˉ\bar\pi). The finitely many returns from before KK are washed out of the average, and the strong law gives

  2. Qπˉ(s,πˉ(s))≥Qπˉ(s,a)for all s,aQ^{\bar\pi}\big(s, \bar\pi(s)\big) \ge Q^{\bar\pi}(s, a)\qquad\text{for all } s, a

    For every large kk, πˉ(s)\bar\pi(s) maximizes Qk(s,⋅)Q_k(s,\cdot). Weak inequalities survive limits, so πˉ\bar\pi is greedy with respect to its own action values:

  3. Vπˉ=T⋆Vπˉ⟹Vπˉ=V⋆V^{\bar\pi} = \mathcal T^\star V^{\bar\pi}\quad\Longrightarrow\quad V^{\bar\pi} = V^\star

    Hence Vπˉ(s)=Qπˉ(s,πˉ(s))=max⁡aQπˉ(s,a)V^{\bar\pi}(s) = Q^{\bar\pi}(s,\bar\pi(s)) = \max_a Q^{\bar\pi}(s,a): VπˉV^{\bar\pi} solves the Bellman optimality equation, whose solution is unique under the assumptions, so Vπˉ=V⋆V^{\bar\pi} = V^\star. ■\blacksquare

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 Q⋆Q^\star, 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 ε\varepsilon decays per state, as εt(s)=c/nt(s)\varepsilon_t(s) = c/n_t(s) with 0<c<10 < c < 1 and nt(s)n_t(s) the number of visits to ss so far, is GLIE, as are suitably cooled Boltzmann schedules. The tempting global schedule, εk=1/k\varepsilon_k = 1/k in episode kk, can fail the first half.

DerivationWhy a global 1/k schedule can stop exploring
  1. Pr⁡(first visit to s′′ in episode k  ∣  no visit before)≤εk2=1k2\Pr\big(\text{first visit to } s'' \text{ in episode } k \;\big|\; \text{no visit before}\big) \le \varepsilon_k^2 = \frac{1}{k^2}

    Build an MDP in which reaching a state s′′s'' takes two exploratory actions in a row: from the start, a non-greedy action to s′s', then a non-greedy action from s′s' to s′′s'' (for instance, the alternatives pay a little at once, and the actions toward s′′s'' pay nothing until s′′s''). Until s′′s'' is visited, its estimates never change, so both actions stay non-greedy, and in episode kk each is taken with probability at most εk\varepsilon_k:

  2. Pr⁡(s′′ never visited  ∣  missed in episode 1)  ≥  ∏k≥2(1−1k2)=12\Pr\big(s'' \text{ never visited} \;\big|\; \text{missed in episode 1}\big) \;\ge\; \prod_{k \ge 2}\Big(1 - \frac{1}{k^2}\Big) = \frac12

    Chaining these conditional probabilities, the chance of never reaching s′′s'', given that the first (fully random) episode missed it, is bounded below by a convergent product:

  3. So with positive probability the agent never sees s′′s'', although it keeps visiting s′s': the first exploratory move has probability of order 1/k1/k in episode kk, and ∑k1/k=∞\sum_k 1/k = \infty. An action in a state visited infinitely often is then never taken, so the global schedule is not GLIE, and if s′′s'' holds the best reward the agent never learns the optimal policy. With per-state decay, visits drive exploration instead: if s′s' is visited infinitely often, the exploration probabilities at its successive visits are c/1,c/2,c/3,…c/1, c/2, c/3, \dots, 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.

Check your understanding

Which exploration schedule guarantees GLIE in every finite MDP whose states are all reachable?

  1. ε-greedy with a constant ε=0.1\varepsilon = 0.1
  2. ε-greedy with εk=1/k\varepsilon_k = 1/k in episode kk
  3. Pure greedy action selection with optimistic initial values
  4. ε-greedy with εt(s)=c/nt(s)\varepsilon_t(s) = c/n_t(s), decaying with the visits to each state
Show the answer

D. ε-greedy with εt(s)=c/nt(s)\varepsilon_t(s) = c/n_t(s), decaying with the visits to each state

Per-state decay keeps exploring every state as often as that state is visited, since ∑nc/n=∞\sum_n c/n = \infty, and it becomes greedy in the limit. A global 1/k1/k schedule reaches states that need two exploratory steps in a row with probabilities of order 1/k21/k^2, 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 VtV_t be the estimate, μt\mu_t greedy for it, e\mathbf e the all-ones vector, and recall that Tμ\mathcal T^\mu is monotone and satisfies Tμ(V+c e)=TμV+γc e\mathcal T^\mu(V + c\,\mathbf e) = \mathcal T^\mu V + \gamma c\,\mathbf e.

DerivationProof sketch
  1. Vμt  ≥  Vt−ct1−γ eV^{\mu_t} \;\ge\; V_t - \frac{c_t}{1-\gamma}\,\mathbf e

    A greedy policy is not much worse than its estimate. Let ct=max⁡s(Vt(s)−(T⋆Vt)(s))c_t = \max_s\big(V_t(s) - (\mathcal T^\star V_t)(s)\big), how much VtV_t overshoots its own backup. Since TμtVt=T⋆Vt≥Vt−cte\mathcal T^{\mu_t}V_t = \mathcal T^\star V_t \ge V_t - c_t\mathbf e, applying Tμt\mathcal T^{\mu_t} kk times gives (Tμt)kVt≥Vt−ct(1+γ+⋯+γk−1)e(\mathcal T^{\mu_t})^kV_t \ge V_t - c_t(1 + \gamma + \dots + \gamma^{k-1})\mathbf e, and as k→∞k \to \infty:

  2. Xt+1  ≤  (1−αt) Xt+αt vtX_{t+1} \;\le\; (1-\alpha_t)\,X_t + \alpha_t\,v_t

    The overshoot dies out. Because αt\alpha_t is the same scalar in every state and Tμt\mathcal T^{\mu_t} is affine, Tμt((1−αt)Vt+αt(Vμt+wt))=(1−αt)T⋆Vt+αt(Vμt+γPμtwt)\mathcal T^{\mu_t}\big((1-\alpha_t)V_t + \alpha_t(V^{\mu_t} + w_t)\big) = (1-\alpha_t)\mathcal T^\star V_t + \alpha_t\big(V^{\mu_t} + \gamma P^{\mu_t}w_t\big). Using T⋆Vt+1≥TμtVt+1\mathcal T^\star V_{t+1} \ge \mathcal T^{\mu_t}V_{t+1}, the vector Xt=Vt−T⋆VtX_t = V_t - \mathcal T^\star V_t obeys a contraction-plus-noise inequality with zero-mean noise vt=wt−γPμtwtv_t = w_t - \gamma P^{\mu_t}w_t, so lim sup⁡tXt≤0\limsup_t X_t \le 0 and lim sup⁡tct≤0\limsup_t c_t \le 0:

  3. V⋆−γε(1−γ)2 e  ≤  lim inf⁡tVt  ≤  lim sup⁡tVt  ≤  V⋆V^\star - \frac{\gamma\varepsilon}{(1-\gamma)^2}\,\mathbf e \;\le\; \liminf_t V_t \;\le\; \limsup_t V_t \;\le\; V^\star

    Sandwich. Upper: Vμt≤V⋆V^{\mu_t} \le V^\star, so Vt+1≤(1−αt)Vt+αt(V⋆+wt)V_{t+1} \le (1-\alpha_t)V_t + \alpha_t(V^\star + w_t) and lim sup⁡Vt≤V⋆\limsup V_t \le V^\star. Lower: once ct≤εc_t \le \varepsilon, step 1 with one more application of Tμt\mathcal T^{\mu_t} gives Vμt≥T⋆Vt−γε1−γeV^{\mu_t} \ge \mathcal T^\star V_t - \frac{\gamma\varepsilon}{1-\gamma}\mathbf e, so VtV_t dominates a noisy iteration of the contraction V↦T⋆V−γε1−γeV \mapsto \mathcal T^\star V - \frac{\gamma\varepsilon}{1-\gamma}\mathbf e, whose fixed point is V⋆−γε(1−γ)2eV^\star - \frac{\gamma\varepsilon}{(1-\gamma)^2}\mathbf e. Let ε→0\varepsilon \to 0. ■\blacksquare

Step 2 is where the hypotheses bite. If states are updated at different rates, the step becomes a diagonal matrix Γt\Gamma_t, and Tμ(V+Γt(V′−V))=TμV+γPμΓt(V′−V)\mathcal T^\mu(V + \Gamma_t(V' - V)) = \mathcal T^\mu V + \gamma P^\mu\Gamma_t(V' - V) no longer splits as above, because PμΓt≠ΓtPμP^\mu\Gamma_t \ne \Gamma_tP^\mu. Per-entry sample averages repair the fixed-distribution case, since every entry's expected step is then about 1/t1/t, 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.

Check your understanding

Why does Tsitsiklis's proof need every entry to be updated at the same rate?

  1. To keep the noise zero-mean
  2. So that the update commutes with the affine map Tμ\mathcal T^\mu: a scalar step satisfies Tμ((1−α)V+αV′)=(1−α)TμV+α TμV′\mathcal T^\mu((1-\alpha)V + \alpha V') = (1-\alpha)\mathcal T^\mu V + \alpha\,\mathcal T^\mu V', while a diagonal step matrix does not commute with PμP^\mu
  3. Because the Robbins–Monro conditions apply only to scalar sequences
  4. To make the greedy policy unique
Show the answer

B. So that the update commutes with the affine map Tμ\mathcal T^\mu: a scalar step satisfies Tμ((1−α)V+αV′)=(1−α)TμV+α TμV′\mathcal T^\mu((1-\alpha)V + \alpha V') = (1-\alpha)\mathcal T^\mu V + \alpha\,\mathcal T^\mu V', while a diagonal step matrix does not commute with PμP^\mu

The monotonicity argument transports inequalities through Tμt\mathcal T^{\mu_t} applied to the updated estimate. With per-state rates Γt\Gamma_t the update and PμtP^{\mu_t} 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 Q⋆Q^\star, 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 1/n(s,a)1/n(s,a) 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 γ=0.9999\gamma = 0.9999, 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, ηk(s,a)=αk/gk(a∣s)\eta_k(s,a) = \alpha_k/g_k(a \mid s), 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.

VariantSettingStatus
Initial-visit, every pair (or a uniform random pair) per iteration, scalar stepsDiscountedConverges (Tsitsiklis, 2002)
Initial-visit, fixed nonuniform starts, per-entry sample averagesDiscountedConverges (Tsitsiklis, 2002)
Arbitrary start schedule, each pair infinitely oftenDiscountedCan fail (Bertsekas & Tsitsiklis, 1996)
Original first-visit MC-ES, sample averagesOptimal Policy Feed-Forward MDPsConverges (Wang et al., 2022)
Initial- or first-visit, sample averages, policy-dependent exploring startsGeneral MDPsSuboptimal ties reported (Oliviers & Vinnicombe, 2026; first-visit case by strong numerical evidence)
Initial-visit with steps rescaled by 1/gk(a∣s)1/g_k(a \mid s)Discounted or episodicConverges (same preprint, proof sketched)
Original first-visit MC-ES with a fixed start distribution, such as uniformGeneral MDPsApparently still open
As of late 2026. "Initial-visit" updates only the starting pair of each episode; Sutton and Barto's MC-ES updates the first visit of every pair in the episode.

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 εk=1/k\varepsilon_k = 1/k, 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.

Question 1

On some run of MC-ES, the greedy policy stops changing after episode 10,000. What can you conclude?

  1. Nothing: MC-ES can settle on any policy
  2. The policy is optimal, because the averages then converge to its own action values and it is greedy with respect to them
  3. The policy is optimal only if the discount factor is below 0.9
  4. 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 QπˉQ^{\bar\pi}, 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.

Question 2

In the 2026 counterexamples, what kind of point attracts the action-value estimates?

  1. A point where an optimal and a suboptimal action are tied below Q⋆Q^\star, so the greedy policy keeps switching and never settles
  2. The values of a fixed suboptimal policy, which the greedy policy then follows forever
  3. A point where the estimates diverge to infinity
  4. The values of the uniformly random policy
Show the answer

A. A point where an optimal and a suboptimal action are tied below Q⋆Q^\star, 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.

Question 3

Why is MC-ES easier to analyze in an Optimal Policy Feed-Forward MDP?

  1. Because such MDPs have only one optimal action per state
  2. Because the returns there have zero variance
  3. 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
  4. 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).