arXiv:2611.05929cs.RONov 2026

Manuscript Offprint

arXiv:2611.05929

Diversity-Aware Experience Replay via Statistical Leverage Scores

Shaifalee Saxena, Alexander Scheinker

Shaifalee Saxena 1,2^{1,2} and Alexander Scheinker 1^{1}

Abstract—Off-policy deep reinforcement learning trains on random samples from a replay buffer of past experience. In physical robot settings, that buffer is dominated by routine: thousands of near-identical transitions from normal operation, while the rare events that define the edges of the task are rarely sampled. We propose scoring every stored transition by its statistical leverage, which measures how unusual it is relative to the buffer's own data, computed from the stored numbers alone, with no labels, rewards, or value network. We draw each mini-batch from a mixture of this score and uniform sampling. First, the natural way to build the score along the directions where the data varies most turns out to be blind when actions are stored as one-hot indicators, because indicator columns always win the variance ranking; we instead select the feature columns with the heaviest tails (largest kurtosis) where small far-away populations are revealed. Second, the importance weights that prioritized replay uses to keep gradients unbiased cancel the method exactly: with full correction, training matches uniform sampling, so we drop the correction and deliberately optimize the rebalanced objective. Third, when the rare situations of a log are relational, visible only in how a stretch of behavior relates to its goal, not in any single stored coordinate—per-transition scores are blind; applying the same tail rule to short trajectory windows described relative to their goal restores the signal, and on a three-joint arm that must push an object around an obstacle it raises the rare-task success from 0.49 to 0.69 against a labeled-oracle ceiling of 0.74.

I. INTRODUCTION

Deep reinforcement learning (RL) [1] has become a practical tool for synthesizing feedback controllers directly from interaction data. The modern off-policy template descends from the Deep Q-Network (DQN) [2], which revived the classical idea of experience replay [3]: transitions (s,a,r,s′)(s, a, r, s') are stored in a large ring buffer, and mini-batches drawn from the buffer decorrelate consecutive updates and allow each interaction to be reused many times. Deep Deterministic Policy Gradient (DDPG) [4], followed by Twin Delayed DDPG (TD3) [5] and Soft Actor-Critic (SAC) [6] carried this template to continuous control, where they remain the workhorse algorithms of robot learning [7]. Sample efficiency has been improved mainly by extracting more gradient signal from the same stored data: ensembling and high update-to-data ratios [8], normalization and network scaling [9], and learned state-action representations with prioritized replay [10]. These advances support real-robot manipulation pipelines that train in minutes to hours [11], [12] and autonomous control of large scientific instruments, including the tuning of particle accelerators [13], [14]. Despite this progress, uniform sampling remains the default replay rule in standard off-policy RL.

Uniform sampling implicitly assumes that every stored transition is equally worth revisiting, and this assumption degrades precisely as learning succeeds. A partially converged policy fills the buffer with thousands of near-identical transitions, such as the gripper hovering over the object in almost the same pose, or the beam sitting at a near-optimal setpoint with very low beam loss. At the same time, rare transitions that delineate the boundaries of the task (unusual contacts, failed grasps, off-nominal beam excursions) are sampled with vanishing frequency and eventually overwritten. In this work, we make the buffer's own geometry the sampling signal. We view the buffer as a tall data matrix, one standardized transition per row, and score each transition by its statistical leverage [15]: the squared, whitened length of its projection onto a chosen score subspace, equivalently a (truncated) Mahalanobis distance from the buffer's own empirical distribution. Mini-batches are drawn from a mixture placing weight β\beta on the normalized leverage scores and 1−β1 - \beta on the uniform distribution. Because N≫dN \gg d, the scores can be refreshed efficiently with buffer-wide statistics and a vectorized pass over the stored transitions.

Our contributions are: (1) a leverage-mixture replay rule using excess-kurtosis column selection to avoid variance-subspace blindness under one-hot actions, and omitting importance-sampling correction, which we show cancels the rebalancing exactly; (2) exact, numerically verified sampling-share laws on Gaussian-mixture buffers, including a rarity-independent amplification ceiling and a multi-cluster mass law; (3) offline Q-learning experiments against exact Q∗Q^{*}, demonstrating improved learning in an underrepresented region; and (4) a window-level extension for relational rare behaviors, where goal-relative trajectory scoring on a three-joint arm trained with TD3+BC improves over transition-level replay and approaches a labeled oracle.

References (29)