[Paper Review] The Primacy Bias in Deep Reinforcement Learning
This paper identifies the primacy bias in deep reinforcement learning, where agents overfit to early experiences and ignore later, potentially better data. It proposes a simple, generalizable solution—periodically resetting the last layers of the agent's neural network while preserving the replay buffer—demonstrating consistent performance gains across discrete (Atari 100k) and continuous control (DeepMind Control Suite) benchmarks without added computational cost.
This work identifies a common flaw of deep reinforcement learning (RL) algorithms: a tendency to rely on early interactions and ignore useful evidence encountered later. Because of training on progressively growing datasets, deep RL agents incur a risk of overfitting to earlier experiences, negatively affecting the rest of the learning process. Inspired by cognitive science, we refer to this effect as the primacy bias. Through a series of experiments, we dissect the algorithmic aspects of deep RL that exacerbate this bias. We then propose a simple yet generally-applicable mechanism that tackles the primacy bias by periodically resetting a part of the agent. We apply this mechanism to algorithms in both discrete (Atari 100k) and continuous action (DeepMind Control Suite) domains, consistently improving their performance.
Motivation & Objective
- To identify and empirically demonstrate the existence of primacy bias in deep reinforcement learning, where agents overfit early experiences and fail to leverage later, better data.
- To analyze how standard deep RL components—especially high replay ratios and experience replay—exacerbate this bias by reinforcing early interactions.
- To propose a minimal, general-purpose mechanism that mitigates primacy bias by periodically resetting parts of the agent’s neural network.
- To show that the proposed reset mechanism enables training with higher replay ratios and longer n-step returns, which would otherwise lead to overfitting.
- To validate the method across diverse environments and algorithms, demonstrating consistent performance improvements in both discrete and continuous control settings.
Proposed method
- The method involves periodically re-initializing the last layers of the agent’s neural network while retaining the experience replay buffer, thus forgetting only the most recently learned representations.
- The reset is applied at fixed intervals during training, with no change to the replay buffer contents or the rest of the network.
- The approach is compatible with any deep RL algorithm using a replay buffer, requiring only two hyperparameters: which network layers to reset and the reset frequency.
- The mechanism enables agents to recover from overfitting to early data by allowing them to re-learn from more recent, higher-quality experiences.
- The method is computationally efficient, imposing no additional training cost beyond standard training loops.
- The approach is inspired by cognitive science, where forgetting early, suboptimal solutions enables better long-term learning.
Experimental results
Research questions
- RQ1Does deep reinforcement learning suffer from a primacy bias, where early experiences disproportionately influence learning and hinder performance improvement?
- RQ2How do standard deep RL components like experience replay and high replay ratios amplify the primacy bias?
- RQ3Can a simple, general-purpose reset mechanism mitigate the primacy bias without increasing computational cost?
- RQ4Does the reset mechanism enable training with higher replay ratios and longer n-step returns, which are typically unstable due to overfitting?
- RQ5Can the reset mechanism consistently improve performance across diverse environments and algorithms in both discrete and continuous control settings?
Key findings
- The primacy bias exists in deep RL: agents trained with standard algorithms overfit early experiences and fail to improve despite receiving better data later.
- Experience replay and high replay ratios significantly amplify the primacy bias by repeatedly exposing the agent to early, potentially suboptimal data.
- The proposed reset mechanism consistently improves performance on Atari 100k and DeepMind Control Suite benchmarks across multiple algorithms.
- The method enables training with higher replay ratios and longer n-step returns than baseline agents, which would otherwise overfit.
- The performance gains are achieved without additional computational cost, making the method highly practical and broadly applicable.
- The results suggest that forgetting early, suboptimal solutions is beneficial for long-term learning, echoing findings in cognitive science and human learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.