Graph Topology Augmentation for Prioritized Sweeping in Non-stationary Reinforcement Learning

Gia-Hung Pham, Tuan Quang DamNeurIPS 2026

TL;DR

When goals suddenly shift in a familiar environment, traditional reinforcement learning planners update their worldviews one agonizing step at a time—meaning distant states often never get the memo before the goal moves again. This paper introduces GTA-PS, a drop-in queue manager that borrows ideas from electrical networks and spectral graph theory to diffuse "surprise" across the entire state map instantly. It gives model-based planners topological foresight, dramatically speeding up how fast they recover from changing rewards under a tight compute budget.

What Problem Does This Paper Address?

Imagine navigating a city whose street grid never changes, though your destination shifts every twenty minutes (think delivery logistics or goal-conditioned robotics). In model-based Reinforcement Learning (RL), agents handle planning by replaying transitions to update state values. Since compute budgets are tight, Prioritized Sweeping (PS) speeds things up by maintaining a priority queue: states with the biggest "surprise"—measured as the Bellman or TD residual (the gap between old value estimates and new reality)—get updated first.

Here is the catch: standard PS is purely reactive and shortsighted. When a reward changes locally at a single state, the residual wave only ripples backward one hop per realized update. If you only have a budget of $K=4$ planning steps before taking a real-world action, states five rooms away sit at a priority of zero. By the time the wave finally reaches distant regions, the reward may have shifted again, trapping the agent in a perpetual hindsight loop.

Comparison of local reward shift, reactive wavefront in Standard PS, and dense topological priority in GTA-PS. (Note: Let's look at the full diagram below)

Standard PS leaves distant states blocked behind a reactive wavefront, whereas GTA-PS diffuses nonzero topological priority across the graph immediately.

Methods

The authors propose Graph Topology Augmentation for Prioritized Sweeping (GTA-PS), a host-agnostic module that changes only the priority score in the queue, leaving the underlying planner (like Dynamic Programming or Dyna) untouched.

Instead of scoring states solely by raw residual $|\xi_t(s)|$, GTA-PS adds a proactive topological potential $\tau_t(s)$: $$\text{priority}_t(s) = |\xi_t(s)| + \beta_t \tau_t(s)$$

Here is how the new pieces work:

  • Directed Laplacian Potentials: Using the agent's current policy and transition model, the state space forms a directed random-walk graph. Similar to how voltage spreads across an electrical grid, the authors solve two regularized directed-Laplacian systems to diffuse the residual vector forward (where the agent is going) and backward (where it came from), blending them into a dense signal $\tau_t$.
  • Two-Queue Residual Gating: Because the diffused topological field is nonzero everywhere, dumping every state into the priority queue would choke it with low-priority noise. GTA-PS separates signal availability from backup eligibility: it only scores states that already have an active residual, while storing the top-$q$ topological frontier in a secondary heap as an exploratory fallback.
  • SLEM-Based Gain Scheduler ($\text{GTA-PS}^\beta$): How much should the planner trust this diffused field? The authors schedule $\beta_t$ linearly using the graph's Second Largest Eigenvalue Modulus (SLEM)—a classic Markov-chain metric governing how fast a random walk mixes. Fast mixing (low SLEM) cranks up $\beta_t$; sluggish, bottlenecked mixing (SLEM near 1) dials $\beta_t$ down toward a safe floor so the agent doesn't over-trust a slowly diffusing signal.
Figure 2: The two-queue organization. The reactive lane feeds the executable residual queue; the proactive lane maintains the bounded topology frontier. POPANDPRIORITIZE scores only residual-active states; the frontier supplies the exploratory fallback once the residual queue is exhausted.

Datasets

This is a tabular RL study evaluated on two synthetic, controllable Markov Decision Process (MDP) benchmarks rather than static datasets:

  • GARNET: Randomly generated MDPs (tested across state sizes like $|\mathcal{S}| = 20, 40, 68, 75, 200$) used to systematically vary transition stochasticity and mixing properties.
  • Minigrid FourRooms: A classic grid-world navigation domain featuring narrow doorways that act as natural topological bottlenecks.

No new benchmarks are introduced; instead, standard domains are subjected to repeated, localized, piecewise-stationary reward shifts.

Key Insights and Ideas

  • Regularization equals discounting: Adding a diagonal regularizer $\eta I$ to make the directed graph Laplacian invertible isn't just a math trick for numerical stability. At the canonical setting $\eta^\star = \frac{1-\gamma}{\gamma}$, the forward potential exactingly coincides with the expected $\gamma$-discounted sum of future residuals along the policy's random walk.
  • Implicit Importance Sampling: Viewed through a probabilistic lens (Doob $h$-transform), ranking states by the forward Green's function acts as an implicit importance-sampling rule that tilts random walks directly toward the shifted reward site.
  • Compounding nonstationary advantage: Because standard PS leaves distant states stranded behind the $K$-step wavefront on every single reward shift, GTA-PS's per-episode advantage doesn't just wash out—it accumulates linearly over time as shifts repeat.

Key Results

Across both exact Dynamic Programming (DP) and learned-model Dyna hosts, GTA-PS and $\text{GTA-PS}^\beta$ consistently recover value accuracy faster per backup than Standard-PS right after reward shifts. In a 1,000-seed GARNET-75 run ($K=20$), $\text{GTA-PS}^\beta$ steadily widens its cumulative tracking advantage over episodes, matching the authors' theoretical linear-separation theorem.

GTA-PS-beta lowers per-episode value error and builds a linearly growing cumulative tracking advantage over Standard-PS across repeated reward shifts.

However, the authors include a refreshingly candid equal-wall-clock audit on GARNET-200:

  • Computing Laplacian inverses and maintaining heaps costs real CPU time, cutting throughput from 1771 backups/s (Standard-PS) to 785 backups/s ($\text{GTA-PS}^\beta$) in DP, and from 1647 to 970 backups/s in Dyna.
  • Under a strict real-time clock on exact DP, Standard-PS actually achieves lower error AUC (0.923 vs. 1.840) simply by brute-forcing more than twice as many cheap backups. On Dyna, both methods tie on wall-clock AUC (12.159 for $\text{GTA-PS}^\beta$ vs. 12.178 for Standard-PS). Thus, GTA-PS wins when sample/backup budgets are bottlenecked, not raw wall-clock time.

Limitations and Future Work

  • Scale and Representation: Experiments and matrix inversions are restricted to small-to-medium tabular state spaces. Scaling spectral operators to large or continuous deep RL domains remains open.
  • Wall-Clock Overhead: Matrix refreshes make individual steps slower, meaning the method shines when backups themselves are expensive or strictly budgeted rather than when tabular lookups are nearly free.
  • Narrow Shift & Transport Regimes: Theoretical guarantees assume an exact transition model and localized, positive reward shifts. Under adversarial or heavy-drift dynamics where the policy's graph poorly reflects optimal paths, topological guidance weakens.
  • Next Steps: Extending theoretical guarantees to noisy learned models in Dyna, testing faster-shift scaling laws, and using SLEM/potentials to actively guide exploration budgets.

Summary updated

Abstract

Prioritized Sweeping (PS) accelerates model-based reinforcement learning by selecting backups according to residual magnitude. In nonstationary reward settings, however, the canonical priority score is shortsighted. After a localized reward shift, residuals propagate only through realized backups; so clogged or distant state estimates may become idle under a limited replanning budget. We introduce Graph Topology Augmentation for Prioritized Sweeping (GTA-PS), a concrete instance of our general topology-guided principle for controlled planning. GTA-PS augments the residual key with a mixing of regularized directed-Laplacian potentials that diffuses residual information through bidirectional graph structure. The topology weight is controlled by a scheduler based on the Second Largest Eigenvalue Modulus (SLEM), allowing the order to adapt to the chain's mixing regime. We prove that the forward potential coincides with discounted residual propagation at a canonical regularization parameter, and show that GTA-PS gives nonzero priority to states that standard PS can leave blocked after sparse reward shifts. Tabular experiments on FourRooms and GARNET demonstrate improved replanning efficiency over vanilla PS under both DP and Dyna-style host planners.
BibTeX
@inproceedings{pham2026graph,
  author = {Gia-Hung Pham and Tuan Quang Dam},
  title = {{Graph Topology Augmentation for Prioritized Sweeping in Non-stationary Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=midyPx9DqU},
}
Figure