[Paper Review] Time Discretization-Invariant Safe Action Repetition for Policy Gradient Methods
This paper proposes Safe Action Repetition (SAR), a time discretization-invariant method for policy gradient (PG) algorithms that enables durable actions within learned safe regions in the state space. By halting action repetition when the agent exits its safe region, SAR ensures robustness to stochasticity and maintains performance across varying time scales δ, outperforming prior δ-invariant methods on eight MuJoCo environments in both deterministic and stochastic settings.
In reinforcement learning, continuous time is often discretized by a time scale $δ$, to which the resulting performance is known to be highly sensitive. In this work, we seek to find a $δ$-invariant algorithm for policy gradient (PG) methods, which performs well regardless of the value of $δ$. We first identify the underlying reasons that cause PG methods to fail as $δ o 0$, proving that the variance of the PG estimator can diverge to infinity in stochastic environments under a certain assumption of stochasticity. While durative actions or action repetition can be employed to have $δ$-invariance, previous action repetition methods cannot immediately react to unexpected situations in stochastic environments. We thus propose a novel $δ$-invariant method named Safe Action Repetition (SAR) applicable to any existing PG algorithm. SAR can handle the stochasticity of environments by adaptively reacting to changes in states during action repetition. We empirically show that our method is not only $δ$-invariant but also robust to stochasticity, outperforming previous $δ$-invariant approaches on eight MuJoCo environments with both deterministic and stochastic settings. Our code is available at https://vision.snu.ac.kr/projects/sar.
Motivation & Objective
- To address the sensitivity of policy gradient methods to time discretization scale δ, which causes performance degradation as δ→0 due to gradient variance explosion and limited exploration.
- To overcome limitations of prior action repetition methods that cannot react to unexpected events in stochastic environments due to fixed repetition periods.
- To develop a general, plug-and-play method compatible with existing PG algorithms (e.g., PPO, TRPO, A2C) that achieves δ-invariance without requiring infinite training steps or gradient access.
- To ensure robustness to environmental stochasticity by dynamically terminating action repetition when the agent leaves a learned safe region in the state space.
- To empirically validate that the proposed method maintains performance across a wide range of δ values and outperforms existing δ-invariant baselines in both deterministic and stochastic MuJoCo environments.
Proposed method
- SAR extends PG algorithms by learning both an action and a safe region in the state space, defined via a distance function from a reference state, within which the action is repeated.
- The safe region is learned using a distance function that normalizes state dimensions, ensuring scale invariance and enabling consistent behavior across different environments.
- Action repetition ceases immediately when the agent's state exits the safe region, allowing rapid response to unexpected environmental changes or disturbances.
- The method is compatible with any PG algorithm and integrates seamlessly by modifying the policy output to include both action and safe region parameters.
- A distance threshold $ d_{\text{max}} = 0.5 $ is used across all environments to define the safe region, and the policy is trained using standard PG objectives with modified return computation during repetitions.
- The approach ensures δ-invariance by decoupling decision frequency from action duration, allowing stable performance regardless of the time step δ.
Experimental results
Research questions
- RQ1Why do policy gradient methods fail as the time discretization scale δ approaches zero, and what is the underlying cause of performance degradation?
- RQ2How can action repetition be made robust to stochasticity in continuous control environments, especially when unexpected disturbances occur during action execution?
- RQ3Can a safe region-based action repetition mechanism achieve δ-invariance in policy gradient methods without requiring infinite training steps or access to reward gradients?
- RQ4How does the proposed Safe Action Repetition (SAR) method compare to existing δ-invariant approaches in terms of performance and robustness across diverse MuJoCo environments?
- RQ5To what extent does SAR maintain performance under varying δ values, including very small δ, in both deterministic and stochastic settings?
Key findings
- SAR achieves δ-invariance across all tested MuJoCo environments, maintaining consistent performance across time discretization scales from δ = 0.0005s to δ = 0.05s.
- In the stochastic setting with strong external forces, SAR outperforms all baselines, including FiGAR-C and DAU, on all eight environments, demonstrating superior robustness.
- On deterministic environments, SAR achieves state-of-the-art performance, surpassing PPO, TRPO, and A2C baselines across all δ settings.
- The method effectively prevents gradient variance explosion as δ→0 by enabling durable actions within safe regions, resolving a key failure mode of standard PG methods.
- Empirical results show that SAR maintains high sample efficiency and stability, with training convergence observed across all δ values without hyperparameter tuning.
- The ablation study confirms that the safe region mechanism is essential for robustness, as removing it leads to performance degradation under stochasticity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.