Escaping from zero gradient: Revisiting action-constrained reinforcement learning via Frank-Wolfe policy optimization

Jyun-Li Lin, Wei Hung, Shang-Hsuan Yang, Ping-Chun Hsieh, Xi Liu

Abstract

Action-constrained reinforcement learning (RL) is a widely-used approach in various real-world applications, such as scheduling in networked systems with resource constraints and control of a robot. However, standard methods that utilize projection layers to enforce constraints often suffer from the "zero-gradient" problem, where training stalls because the gradient becomes uninformative. This paper introduces Frank-Wolfe Policy Optimization (FWPO), a novel framework that decouples policy updates from constraint satisfaction. By employing a regression-based approach, FWPO achieves faster convergence and zero constraint violations across complex robotics and networking tasks.

Introduction: The Zero-Gradient Challenge

In many real-world RL applications, actions must satisfy strict physical or operational constraints, such as torque limits in robotics or bandwidth capacities in communication networks. A common architectural choice is to append a "projection layer" to a neural network, mapping raw outputs into the feasible action set.

While effective at ensuring feasibility, this approach introduces a significant bottleneck: the zero-gradient issue. Similar to the saturation of a ReLU or sigmoid function, if a network's raw output falls far outside the feasible region, the gradient of the projection operation becomes zero. Consequently, internal parameters receive no update signal, and the learning process stalls. This is particularly detrimental during early training phases when exploration frequently leads to out-of-bounds actions.

Methodology: Frank-Wolfe Policy Optimization

To "escape" this trap, the authors propose Frank-Wolfe Policy Optimization (FWPO). The core idea is to separate the task of finding a high-reward feasible action from the task of updating the neural network's parameters.

FWPO and NFWPO

The framework is presented in two variants:

  1. FWPO (Tabular): For discrete state spaces, the algorithm applies the classic Frank-Wolfe method state-wise to find a feasible update direction that maximizes the expected reward.
  2. NFWPO (Neural): For continuous and high-dimensional tasks, a three-step regression-based process is used:
  3. Reference Action Derivation: A state-wise Frank-Wolfe step identifies a "target" feasible action.
  4. MSE Loss Construction: A loss function is defined as the Mean Squared Error (MSE) between the network’s current output and these feasible targets.
  5. Regression Update: The policy parameters are updated by minimizing this MSE loss.

By using regression to "pull" the policy toward feasible, high-performing targets, NFWPO avoids backpropagating through a non-differentiable or zero-gradient projection layer.

Experimental Evaluation

The researchers evaluated NFWPO across three diverse domains: Bike Sharing Systems (BSS), Communication Networks (NSFNET), and MuJoCo Continuous Control benchmarks modified with non-linear and state-dependent constraints.

Key Results

NFWPO consistently outperformed state-of-the-art baselines, including PPO, SAC, and OptLayer, in both learning speed and final performance.

Performance comparison in a 3-station bike sharing task. FWPO (blue) converges significantly faster to the optimal return compared to DDPG-based projection and reward shaping methods.

In the NSFNET task, NFWPO achieved significantly higher returns than the next best baseline. Crucially, the authors provided empirical evidence of the zero-gradient problem in existing methods. In OptLayer, the gradient norm was observed to drop to $10^{-11}$, whereas NFWPO maintained steady, informative gradients throughout training.

Results on the NSFNET task. (a) Average return over time. (b) Cumulative constraint violations. (c) L2 norm of the gradient, showing the zero-gradient bottleneck in OptLayer (blue dashed) versus the stable gradients in NFWPO (green).

Discussion and Conclusion

The primary innovation of FWPO is the decoupling of feasibility from parameter updates. This "natural feasibility" allows the network's raw outputs to learn the boundaries of the feasible set over time. Furthermore, NFWPO is a theoretical generalization of the Deep Deterministic Policy Gradient (DDPG) algorithm; in the absence of constraints, the two are equivalent.

While highly effective for state-wise constraints, future work may extend this Frank-Wolfe approach to handle trajectory-level constraints or integrate it with more advanced actor-critic architectures.

Summary updated

BibTeX
@inproceedings{lin2021escaping,
  author = {Jyun-Li Lin and Wei Hung and Shang-Hsuan Yang and Ping-Chun Hsieh and Xi Liu},
  title = {{Escaping from zero gradient: Revisiting action-constrained reinforcement learning via Frank-Wolfe policy optimization}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=VFfRBdd_cFj},
}
Figure