A Stochastic Composite Augmented Lagrangian Method For Reinforcement Learning

Yongfeng Li, Mingming Zhao, Weijie Chen, Zaiwen WenSIAM J. Optim 2021

TL;DR

This paper introduces SCAL, a novel stochastic optimization method for deep reinforcement learning (RL) that reformulates the problem as a linear program (LP). By cleverly adapting the augmented Lagrangian method (ALM), SCAL overcomes the "double-sampling" issue common in existing approaches, leading to more stable and efficient learning, especially in complex environments.

What Problem Does This Paper Address?

Deep reinforcement learning (RL) often grapples with high-dimensional or continuous state and action spaces, making traditional methods computationally intractable. While RL can be formulated as a linear programming (LP) problem, solving these LPs efficiently in deep RL settings presents challenges. A key hurdle is the "double-sampling" problem: estimating gradients of the augmented Lagrangian function requires sampling the next state twice, which is often impossible in practice. Existing methods either struggle with this or introduce complexities like smoothed Bellman equations. This paper aims to provide a more direct and efficient way to solve the LP formulation of deep RL without these drawbacks.

Methods

The core contribution is a Stochastic Composite Augmented Lagrangian (SCAL) algorithm. SCAL builds upon the Augmented Lagrangian Method (ALM) but introduces a crucial innovation: it replaces the intractable conditional expectations within the augmented Lagrangian function with the learned multipliers. This elegantly sidesteps the double-sampling obstacle.

Key methodological aspects include:

  • LP Formulation of RL: The paper starts by framing RL as a primal-dual LP problem, leveraging the connection between the optimal Bellman equation and LP.
  • Augmented Lagrangian Method (ALM): The authors adapt the standard ALM, which involves iteratively optimizing primal variables (value function, slack variables) and updating dual variables (multipliers).
  • Novel Objective Function: SCAL proposes a new weighted augmented Lagrangian function where the weights are learned and depend on state-action pairs.
  • Multiplier Substitution: The critical step is replacing conditional expectations of future states with the current estimates of the multipliers. This allows for single-sample updates.
  • Single Constrained Optimization: SCAL integrates the two steps of ALM (primal update and multiplier update) into a single constrained optimization problem, making it more efficient.
  • Semi-Gradient and Target Networks: To handle the practical implementation, SCAL uses semi-gradient updates for the value function and employs target networks (similar to DQN) for stability.
  • Stochastic Optimization: The algorithm is designed for stochastic environments and uses mini-batch updates from an experience replay buffer.

Datasets

The paper does not introduce new datasets. Instead, it evaluates SCAL on standard RL benchmarks:

  • Continuous Control: MuJoCo simulator tasks (HalfCheetah, Ant, Swimmer, Humanoid).
  • Discrete Control: CartPole and Acrobot environments.
  • Inventory Control: A custom inventory control problem is formulated and used for evaluation.

Key Insights and Ideas

  • Double-Sampling Solved: The most significant insight is that by using learned multipliers to approximate conditional expectations, the double-sampling problem in gradient estimation for ALM can be effectively overcome. This is a major step towards more practical and efficient ALM-based RL.
  • Unified Optimization: Merging the primal and dual updates into a single constrained optimization problem simplifies the overall algorithm and potentially improves convergence.
  • Multiplier as a Proxy: The idea that learned multipliers can serve as proxies for complex conditional expectations is a powerful concept that simplifies the learning objective.
  • Theoretical Guarantees: The paper provides theoretical analysis showing that SCAL converges to the optimal solution of the LP formulation under certain conditions, offering a strong foundation for its practical performance.
  • Multi-step RL Extension: The framework naturally extends to multi-step RL settings, which can be beneficial for sparse reward problems.

Key Results

  • Competitive Performance: SCAL demonstrates competitive performance compared to state-of-the-art RL algorithms like TRPO, PPO, and DQN across various discrete and continuous control tasks.
  • Improved Stability: The ablation study on gradient estimation shows that SCAL's approach significantly reduces gradient variance, especially in stochastic environments, leading to more stable learning.
  • Efficiency: By avoiding double sampling and unifying optimization steps, SCAL offers a more efficient learning process.
  • Multi-step Benefits: Increasing the lookahead length (multi-step setting) shows performance improvements up to a certain point, after which variance increases. SCAL effectively handles this trade-off.
  • Inventory Control Success: In the inventory control task, SCAL achieves a stable solution with fewer interactions than TRPO and PPO.

Limitations and Future Work

  • Hyperparameter Sensitivity: The paper acknowledges that the algorithm's performance can be sensitive to hyperparameter choices, which is common in deep RL.
  • Theoretical Assumptions: The theoretical convergence proofs rely on certain assumptions about the distribution of the learned parameters and the optimization process.
  • Future Work: The authors suggest exploring the algorithm's scalability to even larger and more complex environments and potentially investigating further improvements to the optimization process. The paper also hints at the potential for SCAL to be applied to other areas where ALM is used.

Summary updated

BibTeX
@article{li2021stochastic,
  author = {Yongfeng Li and Mingming Zhao and Weijie Chen and Zaiwen Wen},
  title = {{A Stochastic Composite Augmented Lagrangian Method For Reinforcement Learning}},
  journal = {SIAM J. Optim.},
  year = {2021},
  url = {https://openreview.net/forum?id=aMSXb4teqF},
}
Figure