Reward design comes in three forms: sparse rewards (
±1 only at termination — unbiased but hard to explore), dense rewards (signal every step — faster learning but potentially misleading), and potential-based reward shaping — augmenting the reward with
F(s,a,s′)=γΦ(s′)−Φ(s)
for any potential function
Φ(s) (e.g. negative distance to goal) and discount
γ. Ng et al. (1999) theorem: potential-based shaping does not change the optimal policy — along any trajectory
∑tFt=γΦ(sT)−Φ(s0) telescopes to boundary terms only, so value ordering is preserved and domain knowledge accelerates learning without misdirection.