Skip to main content
QUICK REVIEW

[Paper Review] Improving Computational Efficiency in Visual Reinforcement Learning via Stored Embeddings

Lili Chen, Kimin Lee|arXiv (Cornell University)|Mar 4, 2021
Reinforcement Learning in RoboticsComputer Science54 references6 citations
TL;DR

This paper introduces SEER, a method that improves computational and memory efficiency in visual reinforcement learning by freezing early convolutional neural network (CNN) layers and storing low-dimensional latent vectors instead of raw images in experience replay. SEER achieves significant speedups and memory savings without performance degradation across DeepMind Control and Atari environments, enabling larger replay buffers in constrained settings.

ABSTRACT

Recent advances in off-policy deep reinforcement learning (RL) have led to impressive success in complex tasks from visual observations. Experience replay improves sample-efficiency by reusing experiences from the past, and convolutional neural networks (CNNs) process high-dimensional inputs effectively. However, such techniques demand high memory and computational bandwidth. In this paper, we present Stored Embeddings for Efficient Reinforcement Learning (SEER), a simple modification of existing off-policy RL methods, to address these computational and memory requirements. To reduce the computational overhead of gradient updates in CNNs, we freeze the lower layers of CNN encoders early in training due to early convergence of their parameters. Additionally, we reduce memory requirements by storing the low-dimensional latent vectors for experience replay instead of high-dimensional images, enabling an adaptive increase in the replay buffer capacity, a useful technique in constrained-memory settings. In our experiments, we show that SEER does not degrade the performance of RL agents while significantly saving computation and memory across a diverse set of DeepMind Control environments and Atari games.

Motivation & Objective

  • Address the high computational and memory demands of deep reinforcement learning (RL) with visual observations, especially in resource-constrained environments like edge devices.
  • Reduce training time and memory usage in off-policy RL algorithms that rely on high-dimensional pixel inputs and experience replay.
  • Improve sample-efficiency in low-memory settings by enabling larger replay buffer capacities through latent vector storage.
  • Develop a general-purpose, plug-and-play technique compatible with existing off-policy RL algorithms such as DQN and SAC.
  • Demonstrate that early convergence of CNN encoders allows freezing without performance loss, enabling efficient inference and training.

Proposed method

  • Freeze the lower layers of CNN encoders early in training, based on empirical observation that their parameters converge quickly.
  • Replace raw image observations in the experience replay buffer with low-dimensional latent vectors extracted from the frozen encoder.
  • Use the saved memory to increase the replay buffer capacity, enhancing sample-efficiency in memory-constrained scenarios.
  • Apply the technique to both continuous control (DeepMind Control Suite) and discrete control (Atari games) environments.
  • Combine SEER with existing off-policy RL algorithms such as DQN, Rainbow, and SAC without architectural modifications.
  • Use SVCCA and attention maps to validate that early-layer features stabilize early, justifying the freezing strategy.

Experimental results

Research questions

  • RQ1Can early freezing of CNN encoder layers reduce computational cost in visual RL without degrading performance?
  • RQ2To what extent does storing latent vectors instead of raw images reduce memory usage and enable larger replay buffers?
  • RQ3How does SEER impact sample-efficiency in low-memory settings compared to standard off-policy RL?
  • RQ4Does the performance of SEER vary across different visual RL environments, such as continuous control and Atari games?
  • RQ5Can SEER be effectively combined with other efficiency techniques like input resolution reduction?

Key findings

  • SEER reduces computational overhead significantly, with gains increasing in more complex environments like Walker-walk, where training requires more steps.
  • The method maintains state-of-the-art performance on all evaluated environments, including DeepMind Control Suite and Atari games, with no measurable performance degradation.
  • Memory savings from storing latent vectors instead of raw images allow for a substantial increase in replay buffer capacity, improving sample-efficiency in constrained-memory settings.
  • Experiments show that CNN encoder features stabilize early—confirmed by SVCCA and attention maps—justifying the early freezing strategy.
  • SEER is highly generalizable and can be combined with other efficiency techniques, such as input resolution reduction, for further gains.
  • In Atari environments, resolution reduction by a factor of 2 led to performance drops, but SEER maintained performance while improving efficiency.

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.