Control Frequency Adaptation via Action Persistence in Batch Reinforcement Learning

Alberto Maria Metelli, Flavio Mazzolini, Lorenzo Bisi, Luca Sabbioni, Marcello Restelli

Introduction

This paper introduces action persistence—the simple act of repeating a single action for $k$ time steps—as a tool to optimize control frequency in Reinforcement Learning (RL). The authors propose Persistent Fitted Q-Iteration (PFQI), an algorithm that can estimate the optimal policy for various control frequencies using a single batch of data. They also provide a heuristic to select the "Goldilocks" frequency that balances control precision with learning efficiency.

The Control Frequency Trade-off

In RL, we often assume a fixed discrete time step, but real-world systems operate continuously. This creates a fundamental trade-off when choosing the control frequency:

  1. High Frequency: Offers a larger policy space and more opportunities to react. However, it makes learning significantly harder. Actions become "infinitesimal," their effects are difficult to distinguish from environmental noise, and the "effective horizon" (the number of steps required to reach a goal) becomes dauntingly long.
  2. Low Frequency: Makes the environment's response to an action easier to detect and reduces sample complexity. Conversely, it limits the agent's ability to make fine-tuned adjustments, potentially degrading peak performance.

The authors tackle the challenge of finding the optimal control frequency specifically in Batch RL, where the agent must learn from a fixed, pre-collected dataset without further environment interaction.

Methods: Action Persistence and PFQI

The core concept is Action Persistence: an action chosen at time $t$ is repeated for $k$ steps. This effectively changes the control frequency from $f$ to $f/k$.

Visual representation of a standard MDP versus a k-persistent MDP, where an action is repeated for k steps.

Key Technical Contributions

  • $k$-persistent MDPs: The authors mathematically formalize the "duality" of persistence. It can be viewed either as a special non-Markovian policy acting on the original environment or as a standard Markovian policy acting on a modified "$k$-persistent" environment.
  • Persistent Fitted Q-Iteration (PFQI): An extension of the popular Fitted Q-Iteration (FQI) algorithm. Crucially, PFQI can estimate the optimal Q-function for any persistence $k$ using data collected at persistence 1. It achieves this by decomposing the $k$-step Bellman operator into a sequence of simpler operations.
  • Theoretical Bounds: The paper derives an algorithm-independent bound on the performance loss incurred by increasing persistence, demonstrating that it depends on how "fast" the environment evolves (its Lipschitz constants).
  • Persistence Selection Heuristic: They propose an index ($B_k$) based on the expected Bellman residual to identify the best persistence $k$ directly from the batch data, eliminating the need to test the policy in the real world.

Key Insights

  • Persistence as a Regularizer: In the batch setting, high control frequency often leads to "overfitting" to noise. Action persistence acts as a form of temporal regularization, making the underlying dynamics more "visible" to the function approximator.
  • The Effective Horizon: Increasing persistence $k$ reduces the effective discount factor to $\gamma^k$. This shortens the planning horizon, making the credit assignment problem significantly easier for the learning algorithm.
  • System Dynamics Matter: Systems that evolve "slowly" benefit more from higher persistence because the loss of fine-grained control is negligible compared to the gains in learning stability.

Results

The authors evaluated their approach on several classic control benchmarks (Cartpole, MountainCar, Pendulum, Acrobot), MuJoCo robotics tasks (Swimmer, Hopper, Walker 2D), LunarLander, and a custom financial trading environment.

Expected returns across various environments at different persistence levels (k), demonstrating that k > 1 often yields optimal performance.
  • Performance Boost: In almost all tested environments, a persistence $k > 1$ outperformed the standard $k=1$ setup. For example, in Cartpole, $k=4$ achieved significantly higher returns than $k=1$.
  • Complex Tasks: In MuJoCo environments like Walker 2D and Hopper, very high persistence (up to $k=16$ or $k=64$) was often optimal, suggesting these tasks rely more on "macro-actions" than high-frequency jitter.
  • Heuristic Accuracy: The $B_k$ selection method successfully identified the optimal or near-optimal persistence in most cases, resulting in very low "performance loss" compared to an oracle that knows the true best $k$.

Limitations and Future Work

The theoretical bounds rely on the environment being Lipschitz continuous, which might not hold for systems with hard discontinuities (e.g., rigid body collisions). Furthermore, the paper focuses on a fixed $k$ for the entire episode; exploring dynamic persistence (changing $k$ based on the state) is a promising future direction. Finally, while limited to the batch setting here, persistence could also be used to improve exploration in online RL by allowing the agent to "commit" to actions long enough to observe their consequences.

Summary updated

BibTeX
@inproceedings{metelli2020control,
  author = {Alberto Maria Metelli and Flavio Mazzolini and Lorenzo Bisi and Luca Sabbioni and Marcello Restelli},
  title = {{Control Frequency Adaptation via Action Persistence in Batch Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=M4pJ48CDtEI},
}
Figure