Breaking the Grid: Distance-Guided Reinforcement Learning in Large Discrete Action Spaces

Heiko Hoppe, Fabian Akkerman, Wouter van Heeswijk, Maximilian SchifferNeurIPS 2026

TL;DR

Reinforcement learning usually hits a computational wall when faced with astronomical numbers of discrete choices—like scheduling factories or managing vast supply chains. This paper introduces Distance-Guided Reinforcement Learning (DGRL), an algorithm that navigates up to $10^{36}$ possible actions by guessing a continuous "ballpark" target, sampling a clever geometric box around it, and turning unstable policy updates into a smooth regression problem. It crushes existing state-of-the-art benchmarks while keeping compute times nearly flat as the action space explodes.

What Problem Does This Paper Address?

Reinforcement Learning (RL) shines when an agent has a handful of buttons to press (like Atari) or smooth dials to turn (like robot joints). However, real-world logistics, scheduling, and recommender systems suffer from the "curse of cardinality": an agent might have to choose a vector of dozens of discrete variables simultaneously, creating combinatorial spaces of $10^{30}$ or more actions.

Standard RL breaks down here. Policy gradients suffer from exploding variance because the probability of picking any single action approaches zero. Existing workarounds project a continuous "proto-action" (a rough, continuous coordinate guess) onto valid discrete options, but they all have fatal flaws:

  • Simple rounding gets stuck in suboptimal traps.
  • Nearest-neighbor lookups (like Wolpertinger) require pre-computing massive lookup tables that blow up memory.
  • Grid-based searches (like Dynamic Neighborhood Construction, or DNC) only explore along rigid coordinate axes, failing miserably if the action space is "irregular" (e.g., categorical items where index #4 has nothing to do with index #5).
  • Hybrid spaces—where discrete choices and continuous parameters are tightly coupled (like picking a movie and setting its price)—force hierarchical setups where a bad discrete choice ruins the continuous one.

Methods

Building on continuous-to-discrete actor-critic setups, the authors propose Distance-Guided Reinforcement Learning (DGRL), built on two novel, synergistic pillars:

  1. Sampled Dynamic Neighborhoods (SDN) for Exploration: Instead of a lookup table or rigid grid lines, the actor outputs a continuous proto-action $\hat{a}$. SDN wraps $\hat{a}$ in a hypercube defined by the Chebyshev ($L_\infty$) distance of radius $L$. To avoid enumerating every point inside this box, SDN samples $K$ discrete candidate actions by drawing each coordinate independently (giving higher probability to points closer to $\hat{a}$). The critic network evaluates these $K$ candidates and picks the winner.
Figure 1: Schematic representation of SDN.
  1. Distance-Based Updates (DBU) for Learning: Standard policy gradients are noisy, and taking gradients directly through a discrete critic at continuous coordinates is invalid. Instead, DBU perturbs and rounds $\hat{a}$ using Gaussian noise to generate $M$ auxiliary discrete candidates, evaluates them with the critic, and computes a softmax-weighted average of those actions to create a denoised target $\bar{a}$. Updating the actor then becomes a clean, supervised regression task: minimize the distance $\|\varphi_\theta(s) - \bar{a}\|_2^2$.
Schematic representation of Distance-Based Updates (DBU), illustrating perturbed candidates around a proto-action being weighted by Q-values to form a regression target.

For hybrid continuous-discrete spaces, DGRL outputs a single joint vector $(\hat{a}_d, \hat{a}_c)$, sampling discrete neighbors and continuous Gaussian noise simultaneously and applying the regression loss to the whole vector at once.

Datasets

Rather than static datasets, the authors evaluate DGRL across 12 variations of 4 RL simulation environments, spanning structured (ordered/numerical), irregular (shuffled/categorical), and hybrid setups:

  • 2D Maze Navigation: Selecting $N$ out of $D$ actuators (both logically ordered and randomly shuffled to test irregular spaces), plus a hybrid variant with continuous step-size parameters.
  • Movie Recommender System: Built on real-world MovieLens preference data, recommending $N$ out of 343 categorical movies (up to $343^{10}$ actions), plus a hybrid variant that simultaneously prices each movie.
  • Job Shop Scheduling Problem: A structured industrial scheduling task ($10^{10}$ actions).
  • Joint Inventory Replenishment: A massive supply-chain ordering benchmark ($67^{20} \approx 10^{36}$ actions).

Key Insights and Ideas

  • Why $L_\infty$ Hypercubes Beat $L_2$ Spheres in High Dimensions: If you use a standard Euclidean ($L_2$) sphere in $N$ dimensions, its radius must grow by $\sqrt{N}$ just to capture the same coordinate variations, causing sampling density to vanish. A Chebyshev ($L_\infty$) box keeps its radius invariant as $N \to \infty$, maintaining a stable, non-vanishing search volume—and letting you sample coordinates independently in parallel!
  • Breaking off the Grid: Prior scalable methods search only along axial lines ($2NL + 1$ options), missing diagonal combinations. SDN explores a volumetric space of $(2L+1)^N$ combinations while keeping compute linear in $K$.
  • Decoupling Variance from Cardinality: Because DBU regresses onto a target built from a fixed number $M$ of samples (e.g., $M=40$), the authors prove mathematically that actor gradient variance is completely independent of how many trillions of actions exist in the environment.
  • Softmax Targets as Denoisers: Averaging perturbed candidates weighted by their Q-values smooths out critic overestimation errors and pulls the actor out of narrow local optima without needing complex multi-worker setups.

Key Results

  • Massive Gains in Discrete Spaces: DGRL scales effortlessly up to $10^{36}$ actions. It outperforms DNC by up to 66% on structured/shuffled mazes and by 147% on the large-scale categorical Recommender task ($343^{10}$ actions), where grid-based benchmarks collapse.
  • Hybrid Dominance: In hybrid continuous-discrete tasks, DGRL beats extended state-of-the-art baselines (like Hybrid-DNC and HyAR) by 11% to 129%, avoiding the propagation of high-level discrete errors into low-level continuous parameters.
  • Flat Inference Time: In Maze scaling tests from $5^5$ up to $50^{50}$ actions, lookup methods (Wolpertinger, LAR) crash with out-of-memory errors by $10^{10}$ actions, and DNC's step time balloons from $12.8\text{ ms}$ to $80.2\text{ ms}$. DGRL holds completely steady at ~3.2 to 3.4 ms per step across every single scale.

Limitations and Future Work

  • Quadratic Dimension Scaling in Practice: While search complexity doesn't grow with total cardinality $|\mathcal{A}|$, finding good local actions requires scaling sample count $K$ linearly with dimensionality $N$ ($K \approx L \cdot N$), making overall sampling cost $\mathcal{O}(N^2)$.
  • Empirical vs. Theoretical Guarantees on Irregular Spaces: While DGRL empirically crushes benchmarks on categorical/irregular tasks (like movie recommendations), its theoretical guarantees for local value improvement rely on smooth, Lipschitz-continuous action spaces where index proximity actually means semantic similarity.
  • Fixed Action Geometries: DGRL assumes a fixed coordinate setup; post-training tests show it handles adding a few new ordered options gracefully, but breaks if the underlying action indices are shuffled after training. Exploring metric-aware RL that replaces categorical representations with distance-guided sampling is highlighted as a rich foundation for future work.

Summary updated

Abstract

Reinforcement Learning (RL) is increasingly applied to large-scale decision-making problems like logistics, scheduling, and recommender systems, but existing algorithms struggle with the curse of dimensionality in such large discrete action spaces. We propose Distance-Guided Reinforcement Learning (DGRL), combining Sampled Dynamic Neighborhoods and Distance-Based Updates to enable efficient RL in problems with up to $10^{36}$ actions. Unlike prior methods, DGRL performs stochastic volumetric exploration and transforms policy optimization into a stable regression task, decoupling gradient variance from action space cardinality. On structured tasks, DGRL provably guarantees local value improvement. DGRL naturally handles action spaces without regular semantic structure and hybrid continuous-discrete action spaces. We demonstrate performance improvements of up to 66% against state-of-the-art benchmarks across regularly and irregularly structured environments, while simultaneously improving convergence speed and computational complexity.
BibTeX
@inproceedings{hoppe2026breaking,
  author = {Heiko Hoppe and Fabian Akkerman and Wouter van Heeswijk and Maximilian Schiffer},
  title = {{Breaking the Grid: Distance-Guided Reinforcement Learning in Large Discrete Action Spaces}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=XosdW9LFxs},
}
Figure