Skip to main content
QUICK REVIEW

[Paper Review] An Analysis of Frame-skipping in Reinforcement Learning

Shivaram Kalyanakrishnan, Siddharth Aravindan|arXiv (Cornell University)|Feb 7, 2021
Reinforcement Learning in RoboticsComputer Science34 references12 citations
TL;DR

This paper analyzes frame-skipping in reinforcement learning, showing that skipping frames via action repetition maintains asymptotic consistency in value function estimation and can improve learning by reducing the effective task horizon. It introduces the 'price of inertia' to bound the loss from action repetition and empirically demonstrates that optimal frame-skip values (e.g., d=32) significantly boost performance in complex tasks like defensive play in robotic soccer.

ABSTRACT

In the practice of sequential decision making, agents are often designed to sense state at regular intervals of $d$ time steps, $d > 1$, ignoring state information in between sensing steps. While it is clear that this practice can reduce sensing and compute costs, recent results indicate a further benefit. On many Atari console games, reinforcement learning (RL) algorithms deliver substantially better policies when run with $d > 1$ -- in fact with $d$ even as high as $180$. In this paper, we investigate the role of the parameter $d$ in RL; $d$ is called the "frame-skip" parameter, since states in the Atari domain are images. For evaluating a fixed policy, we observe that under standard conditions, frame-skipping does not affect asymptotic consistency. Depending on other parameters, it can possibly even benefit learning. To use $d > 1$ in the control setting, one must first specify which $d$-step open-loop action sequences can be executed in between sensing steps. We focus on "action-repetition", the common restriction of this choice to $d$-length sequences of the same action. We define a task-dependent quantity called the "price of inertia", in terms of which we upper-bound the loss incurred by action-repetition. We show that this loss may be offset by the gain brought to learning by a smaller task horizon. Our analysis is supported by experiments on different tasks and learning algorithms.

Motivation & Objective

  • To understand why frame-skipping with action repetition improves reinforcement learning performance despite potential loss from restricted action sequences.
  • To formally analyze the consistency of value function estimation under frame-skipping in the prediction setting with linear function approximation.
  • To quantify the performance loss due to action repetition using a task-specific metric called the 'price of inertia'.
  • To investigate whether frame-skipping can be beneficial overall despite this loss, particularly through reduced task horizon.
  • To evaluate the effectiveness of on-line tuning of the frame-skip parameter d using multi-armed bandit methods in a meta-learning framework.

Proposed method

  • Defines frame-skipping as sensing state every d time steps, with d ≥ 1, and action repetition as the default strategy of repeating the same action d times.
  • Introduces the 'price of inertia' as a task-dependent measure to upper-bound the loss incurred by restricting action sequences to repetitions.
  • Analyzes prediction consistency under frame-skipping, proving that value function estimates remain asymptotically consistent with linear function approximation.
  • Demonstrates that frame-skipping reduces the effective task horizon, which can offset the loss from action repetition and improve learning efficiency.
  • Employs a meta-RL approach using the EXP3.1 algorithm to tune d on-line as a multi-armed bandit problem, where each d is an arm and performance is evaluated over full episodes.
  • Uses Sarsa(λ) with tile coding and hyperparameter tuning (α=0.1, ε=0.01, λ=0.8) across multiple environments, including Atari games and the HFO robotic soccer environment.

Experimental results

Research questions

  • RQ1Does frame-skipping with action repetition preserve asymptotic consistency in value function estimation under linear function approximation?
  • RQ2What is the theoretical upper bound on performance loss due to action repetition, and how does it vary across tasks?
  • RQ3Can the reduction in effective task horizon from frame-skipping compensate for the loss due to action repetition, leading to improved learning?
  • RQ4Is it possible to automatically tune the frame-skip parameter d on-line using a meta-learning approach, and how does it compare to fixed d?
  • RQ5How does action repetition affect exploration and learning success in tasks with long action sequences, such as defensive play in robotic soccer?

Key findings

  • Frame-skipping with action repetition maintains asymptotic consistency in value function estimation when using linear function approximation, ensuring reliable learning.
  • The 'price of inertia' provides a theoretical upper bound on the performance loss due to action repetition, which is task-dependent and can be offset by a shorter effective task horizon.
  • In the 2v2 HFO soccer environment, Sarsa with d=32 outperforms a 2010/2012 RoboCup champion defender, achieving 15% success rate with d=128 compared to 10% with d=1.
  • The EXP3.1-based meta-algorithm successfully identifies d=31 as optimal among {1,2,4,8,16,32,64,81,151}, with d=81 and d=151 also frequently selected due to fast convergence.
  • Action repetition significantly enhances exploration, increasing success rate from 10% (d=1) to 15% (d=128) in the HFO defense task.
  • FiGAR-Sarsa, which treats d as part of the state-action space, shows improved learning but still underperforms Sarsa with fixed d=32 after 50,000 episodes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.