Introduction
In reinforcement learning (RL), Markov Decision Processes (MDPs) are the standard framework for modeling sequential decision-making. Much of the theoretical research in RL focuses on "infinite-horizon" problems, which assume the process continues indefinitely. Under these conditions, the optimal policy is typically stationary—the best action in a given state remains the same regardless of the time step.
However, many practical applications, such as financial trading, supply chain management, and the training of Large Language Models (LLMs), operate on a finite-time horizon. In these scenarios, the optimal policy is inherently non-stationary. For instance, an aggressive strategy might be optimal with ten steps remaining but disastrous in the final step. Practitioners often train these non-stationary policies by optimizing all time steps simultaneously ("Simultaneous Policy Gradient"). While convenient, this approach ignores the mathematical structure of the problem. This paper investigates whether these methods reliably reach the global optimum and introduces a structurally informed alternative: Dynamic Policy Gradient.
Methodology: Simultaneous vs. Dynamic Policy Gradient
The authors compare two primary algorithmic frameworks using a tabular softmax parametrization, a standard representation that avoids the complexities of deep neural networks:
- Simultaneous Policy Gradient: All parameters across every time step (epoch) are updated concurrently to maximize the total expected reward from the initial state.
- Dynamic Policy Gradient (DPG): This novel approach leverages the principle of backwards induction from dynamic programming. The algorithm first trains the policy for the final time step, treating it as a simple contextual bandit problem. Once convergence is achieved for the final step, the algorithm moves one step backward in time, training the penultimate policy while keeping the future policy fixed.
The researchers analyze both "Exact Gradients" (assuming perfect information) and "Stochastic Gradients" (learning from sampled trajectories, akin to REINFORCE). Notably, they establish global convergence proofs without regularization, avoiding a common theoretical crutch that is rarely used in practice.
Key Insights
- The "Future Error" Trap: The analysis reveals that in Simultaneous PG, gradients for early time steps are heavily distorted by errors in later time steps. If the policy for the end of the sequence is suboptimal, the gradient for the beginning will be misleading.
- Nested Contextual Bandits: By training backwards, DPG treats each time step as a nested bandit problem. This isolates the optimization, providing a stable target for the current epoch by "fixing" the future.
- Exploiting Smoothness: The objective function for a single time step is smoother than the objective for the entire sequence. DPG exploits this by allocating different training efforts (step sizes and iterations) across different epochs, significantly improving efficiency.
Theoretical and Empirical Results
The paper proves that both methods achieve an $O(1/n)$ convergence rate, but the complexity scaling with respect to the time horizon ($H$) differs drastically:
- Exact Gradient Setting: Simultaneous PG complexity scales with $H^5$, whereas Dynamic PG scales with $H^3$.
- Stochastic (Sampled) Setting: Simultaneous PG requires training steps scaling with $H^{10}$ and batch sizes scaling with $H^{30}$. Dynamic PG improves this to $H^7$ steps and $H^{20}$ batch sizes.
To validate these theoretical bounds, the authors use a numerical simulation: an Optimal Stopping Dice Game. A player throws a die up to $H=5$ times, choosing at each step to either "stop" and collect the current value or "continue." This environment requires a clearly non-stationary optimal policy.
As shown in the figure above, the empirical results confirm the theoretical intuition. The Dynamic PG approach (blue lines, showing the step-by-step backward training) reaches the optimal value function much faster and more reliably than the simultaneous approach (magenta dashed line).
Limitations and Future Work
While the paper provides strong theoretical foundations, several limitations remain:
- Tabular Limitation: The proofs apply strictly to the tabular setting. Extending these global convergence guarantees to environments requiring function approximation (e.g., deep neural networks) remains a significant challenge.
- Theoretical Batch Sizes: The batch sizes required for the stochastic proof (e.g., $H^{20}$) are astronomically large and impractical for real-world engineering. The authors note these bounds are likely not tight and suggest variance reduction techniques could yield more realistic estimates.
- Large-Scale Implementation: Future research should explore how to efficiently implement backwards training in large-scale systems, such as Reinforcement Learning from Human Feedback (RLHF) for LLMs.
Summary updated