Contrastive UCB: Provably Efficient Contrastive Self-Supervised Learning in Online Reinforcement Learning
Shuang Qiu, Lingxiao Wang, Chenjia Bai, Zhuoran Yang, Zhaoran Wang
TL;DR
This work tackles the challenge of improving sample efficiency in reinforcement learning by integrating contrastive self-supervised representation learning into online RL under low-rank transition models. The authors propose Contrastive UCB for single-agent MDPs and its extension to zero-sum Markov games, combining temporal contrastive losses with UCB-based exploration bonuses and a CC E-based policy update. They prove representation recovery and $ ilde{O}(1/\\varepsilon^2)$ sample complexity for achieving an $\\varepsilon$-optimal policy in MDPs and an $\\varepsilon$-approximate Nash equilibrium in MGs, respectively, along with matching MG-theoretic analysis. Empirical validation on Atari 100K benchmarks demonstrates practical gains, with SPR-UCB outperforming several baselines, underscoring the value of contrastive representation learning for efficient online RL.
Abstract
In view of its power in extracting feature representation, contrastive self-supervised learning has been successfully integrated into the practice of (deep) reinforcement learning (RL), leading to efficient policy learning in various applications. Despite its tremendous empirical successes, the understanding of contrastive learning for RL remains elusive. To narrow such a gap, we study how RL can be empowered by contrastive learning in a class of Markov decision processes (MDPs) and Markov games (MGs) with low-rank transitions. For both models, we propose to extract the correct feature representations of the low-rank model by minimizing a contrastive loss. Moreover, under the online setting, we propose novel upper confidence bound (UCB)-type algorithms that incorporate such a contrastive loss with online RL algorithms for MDPs or MGs. We further theoretically prove that our algorithm recovers the true representations and simultaneously achieves sample efficiency in learning the optimal policy and Nash equilibrium in MDPs and MGs. We also provide empirical studies to demonstrate the efficacy of the UCB-based contrastive learning method for RL. To the best of our knowledge, we provide the first provably efficient online RL algorithm that incorporates contrastive learning for representation learning. Our codes are available at https://github.com/Baichenjia/Contrastive-UCB.
