Target networks are often considered the "secret sauce" that enabled the success of Deep Q-Learning. However, despite their widespread empirical use, a rigorous theoretical explanation for why they succeed has remained elusive. This paper provides a comprehensive analysis proving that target networks stabilise learning by improving the conditioning of the Temporal Difference (TD) update Jacobian. In doing so, they effectively transform divergent "deadly triad" scenarios into stable, contractive systems simply by increasing the update interval.
The Problem: The Deadly Triad
In Reinforcement Learning (RL), practitioners frequently encounter the "Deadly Triad": the volatile combination of (1) Temporal Difference (TD) learning, (2) nonlinear function approximation (such as deep neural networks), and (3) off-policy data. When these three elements are combined, the underlying mathematics often break down, causing model parameters to spiral toward infinity—a phenomenon known as divergence.
Historically, researchers found an empirical workaround by using a target network that remains frozen for several steps before updating. While this prevented explosions, theoretical justification was thin, often relying on unrealistic assumptions like decaying step sizes. This paper seeks to answer the fundamental question: Why exactly do these infrequent updates prevent the system from diverging?
A New Framework: Partially Fitted Policy Evaluation
To analyze this, the authors introduce a novel framework called Partially Fitted Policy Evaluation (PFPE). This framework bridges the gap between two extremes:
- Standard TD: Where the target changes every single step.
- Fitted Policy Evaluation (FPE): Where the regression problem is fully solved before the target is updated.
By treating the target network update as a single "macro-update" encompassing $k$ steps of gradient descent, the authors perform a rigorous Jacobian Analysis. They examine the eigenvalues of the update's Jacobian matrix to determine system stability. Crucially, they define a Condition Function, $C(\alpha, k)$—where $\alpha$ is the step size and $k$ is the update interval—which mathematically predicts whether the algorithm will converge or diverge based on the shape of the loss landscape.
Key Insights: Reconditioning the Jacobian
The core breakthrough of the paper is the realization that target networks do not necessarily change the final solution; rather, they change the dynamics of the search.
Infrequent updates "recondition" the Jacobian, pushing its eigenvalues into a range that guarantees the system acts as a contraction mapping (meaning it is mathematically guaranteed to settle into a fixed point).
As shown in the analysis of the Condition Function, the authors prove that even in the most "deadly" off-policy, nonlinear settings, there always exists a large enough update interval $k$ and a small enough step size $\alpha$ that will guarantee stability. Interestingly, the paper also highlights an "Asymptotic Paradox": if decaying step sizes are used, target networks do not actually improve asymptotic performance. Their true value lies in the finite-time, non-asymptotic regime where models are trained with fixed learning rates.
Furthermore, viewing the target network as the primary object of optimization led the authors to propose a momentum-style update (Polyak averaging) for the target network, which proves to be more stable than standard "hard" periodic copies.
Empirical Validation
The paper validates its theoretical claims using two primary environments:
- Baird’s Counterexample: A classic MDP designed specifically to make off-policy TD learning diverge. While standard TD ($k=1$) diverges instantly, the authors show that as $k$ increases, the error drops. Once $k \ge 50$, the algorithm successfully overcomes the poor conditioning and converges.
- Cartpole-v0: In nonlinear experiments using neural networks, the proposed momentum-based target update was significantly more stable. While standard DQN-style updates occasionally suffered from "learning collapses," the momentum version maintained consistent, high returns.
Limitations and Future Directions
While this paper provides a massive leap in theoretical understanding, it notes a few limitations. First, some stability proofs rely on $\ell_2$ regularization (weight decay), suggesting it is a necessary component for ensuring a well-behaved Hessian. Second, while the paper proves a stable $k$ exists, it does not provide a universal formula to calculate the optimal $k$ for a new environment, meaning hyperparameter tuning is still required. Finally, scaling these momentum-style updates to massive benchmarks like Atari or MuJoCo remains an exciting next step for the RL community.
Summary updated