Spatial But Not Temporal Reward Sparsity Drives Slow Policy Learning

John J. Vastola, Kanaka RajanarXiv 2026

TL;DR

Why is reinforcement learning so notoriously slow when rewards are scarce? By analytically solving a toy model of target pursuit, the authors show that spatial sparsity (needing to hit a tiny target in a vast action space) causes brutal exponential slowdowns, whereas temporal sparsity (waiting until the end of a long episode for feedback) is surprisingly benign. Even cooler: adding noisy environmental features actually rescues the agent from the exponential trap by creating a natural, implicit curriculum.

What Problem Does This Paper Address?

Anyone who has trained a reinforcement learning (RL) agent knows the pain of sparse rewards. Unlike supervised learning, where every step comes with a neat error signal, RL agents often stumble in the dark before getting any feedback.

However, "sparse reward" usually conflates two distinct problems:

  1. Spatial sparsity: Very few actions actually yield a reward (like threading a needle in continuous control).
  2. Temporal sparsity: Rewards arrive only after a long sequence of actions (like finding out if you won or lost at the very end of a chess match), creating a credit-assignment problem.

Existing theory rarely separates these two. Because realistic RL setups are too messy to solve with pen and paper, we haven't had a clear, mathematical intuition for which flavour of sparsity is the real bottleneck in policy learning.

Methods

The authors design a "Goldilocks" mathematical model—rich enough to capture both types of sparsity, yet simple enough to solve analytically.

They formulate an episodic, open-loop target pursuit task in $D$-dimensional space over $M$ time steps. At the start of an episode, the agent observes a feature vector (representing, say, target velocity) and outputs a sequence of $M$ velocity commands to reach a target endpoint. The reward has two parts: an effort penalty (don't move too fast) and a Gaussian target-proximity bonus controlled by a sharpness parameter $\kappa$. High $\kappa$ shrinks the target zone, cranking up spatial sparsity; large $M$ stretches the sequence, testing temporal sparsity.

The agent uses a linear policy (with distinct parameters for each time step) plus Gaussian exploration noise, trained via standard episodic REINFORCE. Assuming small learning rates and many episodes, the authors convert the stochastic updates into clean ordinary differential equations (ODEs) to track exact learning dynamics and convergence times.

Datasets

Not discussed in the paper. This is a purely theoretical and simulation-based study using synthetic Gaussian state features within the proposed mathematical model.

Key Insights and Ideas

  • Spatial sparsity is the true villain: When the agent starts far from a small target, gradients vanish, causing learning time to blow up exponentially with initial error and spatial dimensions ($D$). Increasing the number of time steps ($M$), however, barely affects when the agent finds the target.
  • Reach first, refine later: Temporal sparsity doesn't trap the agent; it just splits learning into two distinct phases. Due to a "spiked" eigenvalue spectrum in the learning dynamics, the agent quickly figures out where to end up (hitting the target via a messy, winding path) and then spends a secondary phase straightening its trajectory to save effort.
Figure 2: Temporal reward sparsity delays trajectory refinement. All simulations use M = 10 time steps and D = 2. a. Average learned trajectory (obtained by summing agent’s selected velocities). Examples from three different parts of learning are shown: around when the agent first learns to hit the target (light blue), their trajectory is not straight; later, it becomes straighter (blue), and by the end of learning it is straight (black) since this minimizes the effort penalty. b. Same as in a., but trajectory (along the first direction only) visualized as a function of time step. c. As learning proceeds, the velocities the agent selects at each time step get increasingly similar (light red to dark red), and by the end they are identical (black). d. The matrix A controlling trajectory refinement has a ‘gapped’ spectrum with one outlier eigenvalue. e. Endpoint error (green) and trajectory variance (red) converge at different rates; the agent learns to reach the target before optimizing their path.
  • More task complexity can make learning easier: Intuitively, learning a policy that depends on noisy episode-to-episode environmental features ($F \ge 1$, adding $D \cdot F$ parameters) should be harder than learning a static target ($F=0$). Remarkably, the opposite happens. Early in training, the feature weights transiently grow away from their optimal values. This temporary inflation acts like a burst of targeted exploration—an implicit curriculum that inflates the probability of hitting the target and turns an exponential slog into a polynomial breeze.

Key Results

  • Exponential vs. Insensitive Scaling: Without a curriculum, convergence time $t_*$ scales exponentially with the squared initial endpoint error ($\propto e^{\tilde{\beta} d_0^2 / 2}$) and spatial dimension $D$. In contrast, empirical tests across $N=500$ seeds show $t_*$ remains flat as time steps $M$ increase (e.g., hovering steadily around $t_* \approx 12$ for $D=1$ and $t_* \approx 40$ for $D=2$ from $M=1$ to $M>10$).
Figure 1: Spatial sparsity produces exponential slowdown. Bias units are chosen so that ˜β = 1. a. The convergence time t∗associated with endpoint learning dynamics (black; see Eq. 8) scales poorly with the initial bias error d0. For small enough d0, it is approximately logarithmic in d0 (blue curve); d0 = 1 (gray line) is where the approximation breaks down. b. The convergence time is well-approximated as exponential (red; see Eq. 9) when d0 is large. c. Log-convergence-time scales linearly with the spatial dimensionality D under typical assumptions. d. Convergence time is insensitive to the number of time steps M under typical assumptions. This panel shows an empirical result (N = 500 seeds) for D = 1 (green) and D = 2 (purple); standard errors are shown but small.
  • Exponentially Fast Refinement: Once the target is reached, trajectory variance shrinks exponentially fast at a rate governed by the effort penalty ($\alpha/T$), proving temporal credit assignment here is mild.
  • Cubic Speedup via Curricula: Whether using an explicitly derived optimal exploration schedule or letting noisy state features induce an implicit curriculum, the agent maintains a "variance-matching condition" that keeps target-hitting probabilities high. This slashes convergence time from exponential in initial error down to cubic ($\propto \|\Delta \boldsymbol{b}^0\|_2^3$).

Limitations and Future Work

The authors are upfront about the simplifying assumptions required for mathematical tractability:

  • Open-loop & unshared parameters: Actions don't alter future target states, and every time step has its own separate policy weights. Sharing parameters across time—standard in practice—would introduce nonlinearities even in dense-reward regimes.
  • Linear policies: The model omits deep, nonlinear networks and value baselines.

Future work points toward relaxing these constraints: analyzing closed-loop environments where actions affect future states, exploring deep nonlinear architectures (e.g., "rich vs. lazy" learning regimes), and studying policies parameterized by linear recurrent neural networks (RNNs).

Summary updated

BibTeX
@misc{vastola2026spatial,
  author = {John J. Vastola and Kanaka Rajan},
  title = {{Spatial But Not Temporal Reward Sparsity Drives Slow Policy Learning}},
  year = {2026},
  eprint = {2611.37882},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37882},
}
Figure