Robots Atlas>ROBOTS ATLAS
Training

Sparse Reward

ActivePublished: 8 September 2026Updated: 8 September 2026Published
Key innovation
Frames reinforcement learning in a regime where reward is rare or delayed — typically granted only upon reaching the goal (often as a binary signal) — so the core difficulty shifts to exploration and credit assignment rather than policy fitting itself.
Category
Training
Abstraction level
Pattern
Operation level
TrainingRobot control
Use cases
Robotic manipulation (grasping, insertion, stacking objects)Robot navigation and locomotionGoal-conditioned RL tasksHard-exploration games (e.g. Montezuma’s Revenge, Pitfall)Control in long-horizon environments

How it works

In a sparse-reward regime the agent receives a reward of 0 for most of an episode, with a non-zero signal appearing only in the goal state. Because random exploration rarely reaches such a state, standard algorithms (e.g. DQN, PPO, DDPG) may fail to learn anything. Several families of techniques address this: (1) potential-based reward shaping (Ng et al. 1999), which adds an auxiliary signal without changing the optimal policy; (2) intrinsic motivation / curiosity — an extra reward for novelty or model prediction error (Intrinsic Curiosity Module, Random Network Distillation) that drives exploration; (3) goal relabeling (Hindsight Experience Replay) — failed trajectories are treated as successful for the goal actually reached, producing a learning signal from failures; (4) curriculum learning — gradually increasing goal difficulty; (5) expert demonstrations or imitation that steer the agent near rewarding states.

Problem solved

It captures one of the central challenges of RL: how to learn an effective policy when the environment provides feedback only very rarely. It motivates techniques that improve exploration and credit assignment, enabling agents to be trained without hand-crafted dense (and exploit-prone) reward engineering.

Components

Sparse reward functionSource of the learning signal

A reward function that returns a non-zero (often binary) signal only in a few states — usually upon reaching the goal. It defines the sparse-reward regime.

Official

Exploration mechanismDiscovery of rewarding states

A strategy (e.g. curiosity, novelty bonuses, count-based exploration) that leads the agent to discover the rare rewarding states when the extrinsic signal alone is insufficient.

Official

Credit assignmentLinking actions to distant reward

The mechanism that propagates a distant, delayed reward back to the actions that led to it (e.g. via the discount factor, TD-learning, goal relabeling).

Official

Implementation

Implementation pitfalls
No learning signal (zero gradient)Critical

With a purely sparse reward the agent may never reach a rewarding state, so the gradient is effectively zero and learning stalls.

Fix:Add directed exploration (curiosity, RND), reward shaping, demonstrations, or HER.
Naive reward shaping changes the optimal policyHigh

Adding an arbitrary dense signal can shift the optimum and cause reward hacking — the agent optimizes the proxy instead of the true goal.

Fix:Use potential-based shaping (Ng et al. 1999), which guarantees invariance of the optimal policy.
High sample inefficiencyHigh

Even when the agent eventually learns, a sparse reward requires a very large number of environment interactions.

Fix:Use HER, curriculum learning, prioritized replay, or initialization from demonstrations.

Evolution

1999
Potential-based reward shaping
Inflection point

Ng, Harada and Russell showed how to add an auxiliary signal that eases reward sparsity without changing the optimal policy.

Policy Invariance Under Reward Transformations: Theory and Application to Reward Shaping (paper)
2017
Intrinsic motivation / curiosity (ICM)

Pathak et al. introduced the Intrinsic Curiosity Module — an intrinsic reward from prediction error enabling exploration with little or no extrinsic reward.

2017
Hindsight Experience Replay (HER)
Inflection point

Andrychowicz et al. demonstrated learning from sparse, binary rewards by relabeling failed trajectories as successful for the goal actually reached.

2018
Random Network Distillation (RND)

Burda et al. proposed a simple exploration bonus based on random network distillation, advancing hard sparse-reward games (Montezuma’s Revenge).

2019
Go-Explore for hard exploration

Ecoffet et al. introduced the "return, then explore" paradigm, dramatically improving results in environments with extremely sparse rewards.

Go-Explore: a New Approach for Hard-Exploration Problems (paper)

Hyperparameters (configurable axes)

Reward densityCritical

How often the environment returns a non-zero signal — from fully sparse (terminal only) to partially dense rewards.

Intrinsic reward weightHigh

The coefficient scaling the exploration bonus (curiosity/novelty) relative to the extrinsic reward.

Discount factor (gamma)High

Determines how far back a delayed reward is propagated; critical for long-horizon credit assignment.

Compute bottleneck

Discovering the first rewarding state

The main bottleneck is not compute but sample efficiency: the number of environment interactions needed to even encounter a non-zero reward and begin learning.

Execution paradigm

Primary mode
Sparse

Here "sparse" refers to the density of the reward signal over time, not to sparse activation of model parameters.

Parallelism

Parallelism level
Partially parallel

Experience collection can be parallelized across many actors/environments (distributed RL), but policy updates and propagation of the sparse reward remain sequentially dependent.

Scope
Training

Hardware requirements

Primary

Sparse reward is an algorithmic challenge (exploration, credit assignment), independent of any specific hardware type.

Good fit

Policy/value networks and parallel experience collection across many actors benefit from GPU acceleration.