Efficient Reinforcement Learning Through Adaptively Pretrained Visual Encoder
Yuhan Zhang, Guoqing Ma, Guangfu Hao, Liangxuan Guo, Yang Chen, Shan Yu
TL;DR
This paper tackles the generalization bottleneck of vision-based RL by decoupling representation learning from policy optimization through Adaptive Pretrained visual Encoder (APE). APE pretrains a fixed image encoder on a broad distribution using adaptive data augmentations with a contrastive objective, then leverages the learned representations in a DreamerV3-based world model with minimal additional interactions. Across DeepMind Control Suite, Atari 100k, and Memory Maze, APE delivers state-of-the-art performance for several backbones and substantially improves sampling efficiency, approaching state-based SAC in some tasks. The results underscore the value of adaptive pretraining on diverse visual data for enhancing generalization and data efficiency in visual RL, without auxiliary supervisory signals during policy learning.
Abstract
While Reinforcement Learning (RL) agents can successfully learn to handle complex tasks, effectively generalizing acquired skills to unfamiliar settings remains a challenge. One of the reasons behind this is the visual encoders used are task-dependent, preventing effective feature extraction in different settings. To address this issue, recent studies have tried to pretrain encoders with diverse visual inputs in order to improve their performance. However, they rely on existing pretrained encoders without further exploring the impact of pretraining period. In this work, we propose APE: efficient reinforcement learning through Adaptively Pretrained visual Encoder -- a framework that utilizes adaptive augmentation strategy during the pretraining phase and extracts generalizable features with only a few interactions within the task environments in the policy learning period. Experiments are conducted across various domains, including DeepMind Control Suite, Atari Games and Memory Maze benchmarks, to verify the effectiveness of our method. Results show that mainstream RL methods, such as DreamerV3 and DrQ-v2, achieve state-of-the-art performance when equipped with APE. In addition, APE significantly improves the sampling efficiency using only visual inputs during learning, approaching the efficiency of state-based method in several control tasks. These findings demonstrate the potential of adaptive pretraining of encoder in enhancing the generalization ability and efficiency of visual RL algorithms.
