Hard update vs soft (Polyak) update for target networks.
mediumAnswer
- Hard: copy ← θ every N steps (DQN: every 10k).
- Simple.
- Soft: ← τθ + (1-τ) every step (SAC/DDPG: τ = 0.005).
- Smoother, avoids sudden target shifts.
- Both stabilize TD training.
- Rule: hard update for large jumps that matter (discrete DQN), soft for continuous / actor-critic settings.
- Modern default is soft update with τ ~ 0.001-0.01.
Check yourself — multiple choice
- Only hard
- Hard: ← θ every N steps; Soft (Polyak): ← τθ + (1-τ) every step (τ ≈ 0.005) — smoother; soft default for actor-critic
- Random
- Same thing
Target update: hard every N steps or soft ← τθ + (1-τ) every step.
#value-methods#engineering
Practise Reinforcement Learning
214 interview questions in this topic.