Papers
Topics
Authors
Recent
Search
2000 character limit reached

Soft Policy Iteration

Updated 25 February 2026
  • Soft policy iteration is a reinforcement learning approach that replaces standard policy improvement with entropy regularization to yield smooth Bellman operators and softmax policies.
  • The method alternates between soft policy improvement and policy evaluation, enabling enhanced exploration and robust convergence guarantees.
  • Its equivalence to a Newton–Raphson update provides both global linear and local quadratic convergence rates under strong convexity conditions.

Soft policy iteration refers to a class of dynamic programming algorithms for Markov decision processes (MDPs) in which the standard policy improvement step is replaced by optimization with respect to a strongly convex regularizer—most commonly the Shannon entropy. This “softening” or regularization leads to smoothed Bellman operators, differentiable softmax policies, and improved exploration properties. Contemporary research reveals a deep connection between soft policy iteration and Newton–Raphson root-finding methods applied to a smoothed Bellman equation, thereby enabling a rigorous convergence analysis with explicit linear and local quadratic rates (Li et al., 2023). Soft policy iteration forms the theoretical backbone of widely used modern algorithms such as Soft Q-Learning and Soft Actor-Critic.

1. Formalization: Regularized Bellman Operators and Smoothed Bellman Equation

Let M=(S,A,P,r,γ)M = (\mathcal{S}, \mathcal{A}, P, r, \gamma) be a finite MDP. For Shannon entropy regularization, define the per-state regularizer as

Ω(π(s))aπ(as)logπ(as).\Omega(\pi(\cdot|s)) \triangleq \sum_{a} \pi(a|s)\, \log \pi(a|s).

The regularized Bellman operator and its associated self-consistency form are:

  • Regularized self-consistency operator (for policy π\pi and action-value function qq):

[TΩπq](s,a)=r(s,a)+γsP(ss,a)(π(s),q(s,)Ω(π(s))).[T^{\pi}_\Omega q](s,a) = r(s,a) + \gamma \sum_{s'} P(s'|s,a)\left(\langle \pi(\cdot|s'), q(s',\cdot)\rangle - \Omega(\pi(\cdot|s'))\right).

  • Regularized Bellman operator:

[BΩq](s,a)=maxπ(s)[TΩπq](s,a).[B_\Omega q](s,a) = \max_{\pi(\cdot|s)} [T^{\pi}_\Omega q](s,a).

The maxΩ\max_\Omega smoothed max operator yields, for xRmx\in\mathbb{R}^m and temperature NN,

maxΩ(x)=1Nlogi=1mexp(Nxi),\max_\Omega(x) = \frac{1}{N}\log \sum_{i=1}^m \exp(N x_i),

with gradient given by the softmax: Ω(π(s))aπ(as)logπ(as).\Omega(\pi(\cdot|s)) \triangleq \sum_{a} \pi(a|s)\, \log \pi(a|s).0.

The smoothed Bellman equation in vector notation is

Ω(π(s))aπ(as)logπ(as).\Omega(\pi(\cdot|s)) \triangleq \sum_{a} \pi(a|s)\, \log \pi(a|s).1

where Ω(π(s))aπ(as)logπ(as).\Omega(\pi(\cdot|s)) \triangleq \sum_{a} \pi(a|s)\, \log \pi(a|s).2.

2. Soft Policy Iteration Algorithm

Soft Policy Iteration alternates between entropy-regularized policy improvement and policy evaluation. The canonical algorithmic structure is:

  • Policy Improvement:

Ω(π(s))aπ(as)logπ(as).\Omega(\pi(\cdot|s)) \triangleq \sum_{a} \pi(a|s)\, \log \pi(a|s).3

which, for Shannon entropy, is the standard softmax.

  • Policy Evaluation:

Solve for Ω(π(s))aπ(as)logπ(as).\Omega(\pi(\cdot|s)) \triangleq \sum_{a} \pi(a|s)\, \log \pi(a|s).4 as the unique solution of

Ω(π(s))aπ(as)logπ(as).\Omega(\pi(\cdot|s)) \triangleq \sum_{a} \pi(a|s)\, \log \pi(a|s).5

This corresponds (for full evaluation) to solving the linear system

Ω(π(s))aπ(as)logπ(as).\Omega(\pi(\cdot|s)) \triangleq \sum_{a} \pi(a|s)\, \log \pi(a|s).6

where Ω(π(s))aπ(as)logπ(as).\Omega(\pi(\cdot|s)) \triangleq \sum_{a} \pi(a|s)\, \log \pi(a|s).7 (Li et al., 2023).

Step Formula/Mechanism Resulting Object
Policy Improvement Ω(π(s))aπ(as)logπ(as).\Omega(\pi(\cdot|s)) \triangleq \sum_{a} \pi(a|s)\, \log \pi(a|s).8 (Softmax) New stochastic policy
Policy Evaluation Solve Ω(π(s))aπ(as)logπ(as).\Omega(\pi(\cdot|s)) \triangleq \sum_{a} \pi(a|s)\, \log \pi(a|s).9 (or π\pi0 steps for inexact), linear system for π\pi1 New value or Q-function

The same principle applies to the value-based soft policy iteration as in “Soft Policy Iteration (SPI),” where the optimal regularized Bellman operator is

π\pi2

with the improved policy given by the Boltzmann distribution (Smirnova et al., 2019).

3. Equivalence to Newton–Raphson Method

A central advance is the observation that regularized (soft) policy iteration with strongly convex regularizer is strictly equivalent to a one-step Newton iteration applied to the smoothed Bellman equation π\pi3. Specifically, Newton’s update reads

π\pi4

and can be algebraically verified (Theorem III.1 of (Li et al., 2023)) to coincide with the solution of the regularized policy evaluation step when π\pi5. The Jacobian π\pi6 drives the direction and scaling of the update, and the regularization ensures invertibility and strong monotonicity.

This equivalence enables a unified framework for the analysis of both global and local convergence properties of entropy-regularized dynamic programming algorithms.

4. Global Linear and Local Quadratic Convergence Rate

The convergence of soft policy iteration, under Shannon entropy regularization, is formally characterized as follows:

  • Global Linear Rate: For any initial π\pi7, the sequence π\pi8 is monotone (π\pi9), bounded above by qq0, and converges qq1-linearly:

qq2

An explicit bound is

qq3

  • Local Quadratic Rate: When qq4 enters a sufficiently small neighborhood qq5 around qq6,

qq7

with constants qq8 depending on qq9, [TΩπq](s,a)=r(s,a)+γsP(ss,a)(π(s),q(s,)Ω(π(s))).[T^{\pi}_\Omega q](s,a) = r(s,a) + \gamma \sum_{s'} P(s'|s,a)\left(\langle \pi(\cdot|s'), q(s',\cdot)\rangle - \Omega(\pi(\cdot|s'))\right).0, and the strong convexity of [TΩπq](s,a)=r(s,a)+γsP(ss,a)(π(s),q(s,)Ω(π(s))).[T^{\pi}_\Omega q](s,a) = r(s,a) + \gamma \sum_{s'} P(s'|s,a)\left(\langle \pi(\cdot|s'), q(s',\cdot)\rangle - \Omega(\pi(\cdot|s'))\right).1. This quadratic convergence regime is enabled by the strong convexity and Lipschitz properties of the regularizer (Li et al., 2023).

  • In the more general regularized Modified Policy Iteration (soft MPI) framework, choosing the evaluation depth [TΩπq](s,a)=r(s,a)+γsP(ss,a)(π(s),q(s,)Ω(π(s))).[T^{\pi}_\Omega q](s,a) = r(s,a) + \gamma \sum_{s'} P(s'|s,a)\left(\langle \pi(\cdot|s'), q(s',\cdot)\rangle - \Omega(\pi(\cdot|s'))\right).2 and the regularization temperature [TΩπq](s,a)=r(s,a)+γsP(ss,a)(π(s),q(s,)Ω(π(s))).[T^{\pi}_\Omega q](s,a) = r(s,a) + \gamma \sum_{s'} P(s'|s,a)\left(\langle \pi(\cdot|s'), q(s',\cdot)\rangle - \Omega(\pi(\cdot|s'))\right).3 yields explicit rates and optimality bounds. For a decaying [TΩπq](s,a)=r(s,a)+γsP(ss,a)(π(s),q(s,)Ω(π(s))).[T^{\pi}_\Omega q](s,a) = r(s,a) + \gamma \sum_{s'} P(s'|s,a)\left(\langle \pi(\cdot|s'), q(s',\cdot)\rangle - \Omega(\pi(\cdot|s'))\right).4, convergence to the unregularized [TΩπq](s,a)=r(s,a)+γsP(ss,a)(π(s),q(s,)Ω(π(s))).[T^{\pi}_\Omega q](s,a) = r(s,a) + \gamma \sum_{s'} P(s'|s,a)\left(\langle \pi(\cdot|s'), q(s',\cdot)\rangle - \Omega(\pi(\cdot|s'))\right).5 is established, accompanied by error bounds depending on the regularization schedule (Smirnova et al., 2019).

5. Inexact Newton Method: Finite-Step Policy Evaluation and [TΩπq](s,a)=r(s,a)+γsP(ss,a)(π(s),q(s,)Ω(π(s))).[T^{\pi}_\Omega q](s,a) = r(s,a) + \gamma \sum_{s'} P(s'|s,a)\left(\langle \pi(\cdot|s'), q(s',\cdot)\rangle - \Omega(\pi(\cdot|s'))\right).6 Rate

When policy evaluation is performed only approximately—i.e., via a finite number [TΩπq](s,a)=r(s,a)+γsP(ss,a)(π(s),q(s,)Ω(π(s))).[T^{\pi}_\Omega q](s,a) = r(s,a) + \gamma \sum_{s'} P(s'|s,a)\left(\langle \pi(\cdot|s'), q(s',\cdot)\rangle - \Omega(\pi(\cdot|s'))\right).7 of Jacobi or value iteration steps—the resulting update implements an inexact Newton method. This modification yields the system

[TΩπq](s,a)=r(s,a)+γsP(ss,a)(π(s),q(s,)Ω(π(s))).[T^{\pi}_\Omega q](s,a) = r(s,a) + \gamma \sum_{s'} P(s'|s,a)\left(\langle \pi(\cdot|s'), q(s',\cdot)\rangle - \Omega(\pi(\cdot|s'))\right).8

accompanied by a residual term capturing the error due to incomplete evaluation:

[TΩπq](s,a)=r(s,a)+γsP(ss,a)(π(s),q(s,)Ω(π(s))).[T^{\pi}_\Omega q](s,a) = r(s,a) + \gamma \sum_{s'} P(s'|s,a)\left(\langle \pi(\cdot|s'), q(s',\cdot)\rangle - \Omega(\pi(\cdot|s'))\right).9

where [BΩq](s,a)=maxπ(s)[TΩπq](s,a).[B_\Omega q](s,a) = \max_{\pi(\cdot|s)} [T^{\pi}_\Omega q](s,a).0 decays as [BΩq](s,a)=maxπ(s)[TΩπq](s,a).[B_\Omega q](s,a) = \max_{\pi(\cdot|s)} [T^{\pi}_\Omega q](s,a).1 increases.

The asymptotic local linear convergence rate is then [BΩq](s,a)=maxπ(s)[TΩπq](s,a).[B_\Omega q](s,a) = \max_{\pi(\cdot|s)} [T^{\pi}_\Omega q](s,a).2 in an appropriate norm, yielding an error bound

[BΩq](s,a)=maxπ(s)[TΩπq](s,a).[B_\Omega q](s,a) = \max_{\pi(\cdot|s)} [T^{\pi}_\Omega q](s,a).3

This formalizes the intuition that more evaluation steps per improvement accelerate the local rate, interpolating between pure policy iteration ([BΩq](s,a)=maxπ(s)[TΩπq](s,a).[B_\Omega q](s,a) = \max_{\pi(\cdot|s)} [T^{\pi}_\Omega q](s,a).4 convergence) and value iteration or full Newton ([BΩq](s,a)=maxπ(s)[TΩπq](s,a).[B_\Omega q](s,a) = \max_{\pi(\cdot|s)} [T^{\pi}_\Omega q](s,a).5) (Li et al., 2023).

6. Extensions, Function Approximation, and Practical Consequences

In the function approximation regime, as addressed by stationary-reweighted Soft FQI (Laan et al., 30 Dec 2025), the contraction property of the soft Bellman operator holds only in the stationary norm of the soft-optimal policy ([BΩq](s,a)=maxπ(s)[TΩπq](s,a).[B_\Omega q](s,a) = \max_{\pi(\cdot|s)} [T^{\pi}_\Omega q](s,a).6), rather than in the behavior norm typical of standard FQI. To restore contraction, a stationary-reweighting is employed, aligning the regression with the contraction geometry. Formal results guarantee local linear convergence up to an error floor determined by misspecification, density ratio estimation, and finite sample effects.

Continuation approaches—where the temperature parameter [BΩq](s,a)=maxπ(s)[TΩπq](s,a).[B_\Omega q](s,a) = \max_{\pi(\cdot|s)} [T^{\pi}_\Omega q](s,a).7 is annealed from high to low—permit global iterative solution, traversing a sequence of increasingly less regularized problems. Under appropriate margin conditions, contraction persists even as [BΩq](s,a)=maxπ(s)[TΩπq](s,a).[B_\Omega q](s,a) = \max_{\pi(\cdot|s)} [T^{\pi}_\Omega q](s,a).8 (Laan et al., 30 Dec 2025).

Empirically, soft policy iteration and entropy-regularized algorithms demonstrate enhanced exploration, robustness to environmental stochasticity, and improved safety (e.g., avoidance of risky trajectories), at the cost of a controllable sub-optimality gap. Softened improvement steps are also central to frameworks for deep RL, including Soft Modified Policy Iteration (MoSoPI) and MoPPO, which combine partial off-policy evaluation with clipping or trust-region constraints, producing substantial gains in sample efficiency versus on-policy methods (Merdivan et al., 2019, Smirnova et al., 2019).

7. Connections to Broader Algorithmic Families

Soft policy iteration subsumes or unifies a broad range of entropy-regularized RL algorithms, including Soft Q-Learning and Soft Actor-Critic, and provides the theoretical foundation for their convergence rates and stability. The equivalence to Newton–Raphson iterations facilitates use of powerful tools from nonlinear optimization and fixed-point theory. Notably, soft policy iteration guarantees global linear and local quadratic convergence in the presence of strongly convex regularizers, and its generalizations under function approximation and partial evaluation extend its practical impact across the landscape of contemporary reinforcement learning algorithms (Li et al., 2023, Laan et al., 30 Dec 2025, Smirnova et al., 2019, Merdivan et al., 2019).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Soft Policy Iteration.