Instability and Overestimation
Deep value-based RL is powerful because it combines three ingredients: function approximation, bootstrapping, and off-policy learning. The same combination can also become unstable.
We have trained our agent with DQN, but sometimes it forgets what it learned, oscillates, or even diverges. Why? Value estimation instability.
Function approximation means one gradient step can change many state-action estimates at once. Bootstrapping means targets depend on learned estimates. Off-policy learning means the agent may train on data collected by an older or more exploratory behavior policy.
DQN learns by bootstrapping: predicting from its own predictions. This creates instability because the target can drift as the Q-network drifts.
Instability triage
Pick the stabilizer from the symptom
Choose a symptom from DQN training. The card identifies the likely cause and the standard stabilizer.
Likely cause
Moving bootstrap target
Stabilizer
Target network
Check
training curve
When DQN fails, the training curve may oscillate, collapse after apparent progress, or show Q-values growing far beyond plausible returns. The right diagnosis depends on the symptom.
| Problem | Solution | Mechanism |
|---|---|---|
| Correlated data | Experience replay | Random mini-batches |
| Moving target | Target network | Freeze |
| Overestimation bias | Double DQN | Decouple selection and evaluation |
A practical DQN loop therefore combines several safeguards: collect data with an exploration policy such as epsilon-greedy, store transitions in a replay buffer, sample random minibatches, compute targets with a target network, and periodically copy .
The temporal-difference error still drives the update. If the target is larger than the current prediction, the update increases . If the target is smaller, it decreases the prediction. If the TD error is near zero, little changes.
A Higher Q-Value Is Not Always Better
If predicted Q-values rise while actual episode return does not, the agent may be overestimating. Always compare value estimates with realized returns and evaluation behavior.
A DQN agent's predicted Q-values keep increasing, but evaluation return is flat. What is the best first diagnosis?