Discount Factor (gamma)
In One Sentence
A weight \(\gamma \in [0, 1]\) controlling how much an agent values future rewards relative to immediate rewards.
ELI5 (Intuition)
How patient the AI is.
gamma = 0 means 'only care about candy right now'; gamma = 0.99 means 'plan weeks ahead so you don't regret it later.'ELI18 (Technical)
Defines the discounted return \[G_t = \sum_{k \ge 0} \gamma^k r_{t+k}.\] Setting \(\gamma\) too low creates myopic shortcuts; setting \(\gamma\) close to
1.0 enables long-horizon planning but increases return variance.In Practice
High-frequency control loops (60 Hz robotics) often use
gamma = 0.99 (effective horizon ~100 steps); multi-turn LLM RL often sets gamma = 1.0 because episodes are short and only the final answer is graded.