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

Aravind Venugopal, Jiayu Chen, Xudong Wu, Chongyi Zheng, Benjamin Eysenbach +1 more
4/22/2026
3 citations
cs.LGcs.RO
rl

Official code: aravindvenu7/occupancy_reward_shaping (4 stars, Python, MIT, last commit 2026-03-01).

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.

Show full abstract

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/

View on arXivView PDF

Code Implementations(1)

MIT

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

40PythonFeb 27, 20269 months agoMIT

Similar Papers

Cite this paper

@article{venugopal2026occupancy,
  title  = {Occupancy Reward Shaping: Improving Credit Assignment for Offline Goal-Conditioned Reinforcement Learning},
  author = {Aravind Venugopal and Jiayu Chen and Xudong Wu and Chongyi Zheng and Benjamin Eysenbach and Jeff Schneider},
  year   = {2026},
  eprint = {2604.20627},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.20627v1},
  journal = {ICLR 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.20627.svg)](https://codeofpaper.com/paper/2604.20627)

Discussion