Occupancy Reward Shaping: Improving Credit Assignment for Offline Goal-Conditioned Reinforcement Learning

arXiv cs.LG / 4/23/2026

📰 NewsDeveloper Stack & InfrastructureIdeas & Deep AnalysisModels & Research

Key Points

  • The paper addresses credit assignment challenges in offline, goal-conditioned reinforcement learning caused by the temporal delay between actions and long-term outcomes.
  • It proposes extracting temporal information from learned generative world models by interpreting the encoded structure of future-state distributions as world geometry using optimal transport.
  • The resulting method, Occupancy Reward Shaping (ORS), converts occupancy-measure geometry into a reward function that better reflects goal-reaching progress, especially under sparse rewards.
  • ORS is shown to provably preserve the optimal policy while achieving empirical performance gains of about 2.2× across 13 diverse long-horizon locomotion and manipulation tasks.
  • The authors also report successful real-world effectiveness using ORS for nuclear fusion control on three Tokamak control tasks.

Abstract

The temporal lag between actions and their long-term consequences makes credit assignment a challenge when learning goal-directed behaviors from data. Generative world models capture the distribution of future states an agent may visit, indicating that they have captured temporal information. How can that temporal information be extracted to perform credit assignment? In this paper, we formalize how the temporal information stored in world models encodes the underlying geometry of the world. Leveraging optimal transport, we extract this geometry from a learned model of the occupancy measure into a reward function that captures goal-reaching information. Our resulting method, Occupancy Reward Shaping, largely mitigates the problem of credit assignment in sparse reward settings. ORS provably does not alter the optimal policy, yet empirically improves performance by 2.2x across 13 diverse long-horizon locomotion and manipulation tasks. Moreover, we demonstrate the effectiveness of ORS in the real world for controlling nuclear fusion on 3 Tokamak control tasks. Code: https://github.com/aravindvenu7/occupancy_reward_shaping; Website: https://aravindvenu7.github.io/website/ors/