Abstract
Deep reinforcement learning can learn effective policies for a wide range of tasks, but is notoriously difficult to use due to instability and sensitivity to hyperparameters. The reasons for this remain unclear. When using standard supervised methods (e.g., for bandits), on-policy data collection provides "hard negatives" that correct the model in precisely those states and actions that the policy is likely to visit. We call this phenomenon "corrective feedback." We show that bootstrapping-based Q-learning algorithms do not necessarily benefit from this corrective feedback, and training on the experience collected by the algorithm is not sufficient to correct errors in the Q-function. In fact, Q-learning and related methods can exhibit pathological interactions between the distribution of experience collected by the agent and the policy induced by training on that experience, leading to potential instability, sub-optimal convergence, and poor results when learning from noisy, sparse or delayed rewards. We demonstrate the existence of this problem, both theoretically and empirically. We then show that a specific correction to the data distribution can mitigate this issue. Based on these observations, we propose a new algorithm, DisCor, which computes an approximation to this optimal distribution and uses it to re-weight the transitions used for training, resulting in substantial improvements in a range of challenging RL settings, such as multi-task learning and learning from noisy reward signals.
Introduction
In standard supervised learning, online data collection naturally fixes errors: if a model makes a bad prediction, collecting more data in that scenario provides the true label, forcing the model to correct itself (a process known as "hard negative mining").
Reinforcement learning (specifically Approximate Dynamic Programming methods like Q-learning and Actor-Critic) lacks this natural corrective feedback. Because these algorithms bootstrap—using their own current Q-value estimates as the "true" targets for training—visiting a state more often doesn't necessarily provide a better label. If the target value is wrong, and the neural network couples states together via function approximation, training on that transition will just confidently reinforce the wrong guess. This pathological interaction between the data distribution (the replay buffer) and function approximation is a primary driver of instability, sub-optimal convergence, and hyperparameter sensitivity in deep RL.
Methodology: Distribution Correction (DisCor)
To fix this lack of corrective feedback, we mathematically define an "optimal" data distribution that explicitly minimizes the error between the current Q-function and the true optimal Q-function.
Because the true optimal Q-function is unknown, we introduce a practical algorithm called DisCor (Distribution Correction). DisCor approximates this optimal distribution by tracking the cumulative sum of discounted Bellman errors over past training iterations.
- The Error Model: DisCor trains a secondary, lightweight neural network alongside the Q-network to predict the accumulated error of the target values.
- Reweighting the Buffer: During the Bellman backup step, DisCor calculates an importance weight for each transition sampled from the replay buffer. It explicitly downweights transitions where the bootstrapped target value is estimated to be highly inaccurate.
This forces the Q-network to focus its learning on transitions where the target values are already accurate (e.g., near rewards or terminal states), allowing correct values to naturally propagate backward through the state space. DisCor is algorithm-agnostic and can be easily integrated into standard off-policy algorithms like Soft Actor-Critic (SAC) or Deep Q-Networks (DQN).
Key Insights
- More data isn't always better if the targets are wrong: In certain Markov Decision Processes (MDPs), standard on-policy or replay-buffer sampling combined with function approximation can take exponentially many iterations to converge, simply because the network keeps fitting itself to bad bootstrapped targets.
- A counter-intuitive approach to prioritization: Prioritized Experience Replay (PER) prioritizes transitions with high Bellman error. DisCor does something fundamentally different: it downweights transitions if the target state has a high accumulated error. It essentially tells the network, "Don't learn from this transition yet; the bootstrap target is garbage."
- Error correction must flow backward: By forcing the network to only trust accurate targets, DisCor naturally creates a curriculum where value accuracy expands outward from the reward signals, preventing the network from chasing its own tail.
Experimental Results
We evaluated DisCor across a variety of environments, including Meta-World robotic manipulation tasks and Atari games.
- Multi-Task RL: On the MT10 benchmark, DisCor combined with SAC achieved a 50% higher success rate than baseline SAC. DisCor successfully learned 7 out of 10 tasks after 500k steps, compared to only 3 out of 10 for standard SAC.
- Robotic Manipulation: On single-task Meta-World environments, DisCor consistently learned faster and achieved higher final success rates than both standard SAC and SAC equipped with Prioritized Experience Replay (PER).
- Atari: When applied to DQN, DisCor improved both the learning speed and the final asymptotic performance, demonstrating effectiveness in discrete, high-dimensional image-based environments.
Conclusion
DisCor addresses a fundamental flaw in bootstrapping-based RL by reweighting the data distribution to favor transitions with accurate target values. While it currently relies on approximations of the value error, it provides a robust way to ensure "corrective feedback" in deep RL. Future work could extend this by actively modifying exploration policies to seek out error-correcting transitions.
Summary updated