Abstract
Q-value divergence is a persistent challenge in offline reinforcement learning (RL), often attributed to the "Deadly Triad" of off-policy learning, function approximation, and bootstrapping. This paper identifies "self-excitation"—a positive feedback loop in gradient updates—as the primary driver of this instability. We introduce the Self-Excite Eigenvalue Measure (SEEM), a metric derived from Neural Tangent Kernels (NTK) that predicts training crashes before they occur. We further demonstrate that architectural interventions, specifically the addition of LayerNorm to the critic network, can effectively neutralize the self-excitation loop without the performance-stifling bias of traditional policy constraints.
Introduction
In offline RL, agents must learn optimal policies from fixed datasets without environment interaction. This setting frequently triggers the "Deadly Triad," leading to exploding Q-values. While conventional wisdom blames "distributional shift"—where agents query unseen actions—and attempts to fix it via restrictive policy constraints, these methods often introduce a "detrimental bias" that limits performance. This work investigates the underlying mathematical mechanisms of divergence to find solutions that do not compromise the agent's potential.
Theoretical Framework: Self-Excitation and SEEM
Moving beyond linear models, we analyze non-linear neural networks through the lens of the Neural Tangent Kernel (NTK). The NTK characterizes how updates at one state-action pair influence the network's output at others.
Self-Excitation Theory
We posit that divergence is caused by a "self-excitation" loop. When a model is updated, its generalization properties can inadvertently increase the values of target actions. This creates a scenario where the target value continuously moves away, leading to an exponential explosion.
The Geometry of the Crash
A key insight is that for agents using SGD optimizers, the inverse of the Q-value ($1/Q$) decays linearly as divergence approaches. This predictability allows for a linear regression on training logs to estimate the exact moment of failure.
Predicting and Resolving Divergence
To quantify stability, we propose the Self-Excite Eigenvalue Measure (SEEM). By calculating the largest eigenvalue of an NTK-derived matrix during training, we can determine stability: a SEEM value greater than zero indicates inevitable divergence.
Early Warning System
SEEM serves as a reliable early indicator, spiking before Q-values actually explode. This allows researchers to identify unstable runs much earlier in the training process.
LayerNorm as a Structural Solution
Our analysis reveals that standard MLPs often behave linearly at action space boundaries, triggering self-excitation. Incorporating LayerNorm into the critic network regularizes generalization behavior, making the NTK more "local" and effectively breaking the divergence loop.
Empirical Evaluation
We evaluated our approach on the D4RL benchmark, including Mujoco locomotion and Antmaze tasks.
- Extreme Data Scarcity: In settings with only 1% of the original data, where standard algorithms like CQL and TD3+BC typically fail, the addition of LayerNorm restored high performance. For instance, CQL's performance improved from 50 to 300 points.
- State-of-the-Art on Antmaze: Integrating LayerNorm into existing frameworks (e.g., Diff-QL) achieved SOTA results on the challenging Antmaze benchmark.
- Online RL Implications: Surprisingly, LayerNorm allowed Soft Actor-Critic (SAC) to function stably in online settings without the use of an Exponential Moving Average (EMA) target network, which was previously considered essential.
Conclusion and Future Work
This research shifts the focus from policy constraints to network architecture and generalization behavior. By identifying self-excitation as the root of divergence and providing the SEEM metric for prediction, we offer a more principled way to stabilize offline RL. Future work will aim to integrate EMA target networks into the SEEM theoretical framework and provide a rigorous proof for the observed "critical point" where NTK directions stabilize.
Summary updated