CliffWalking-v1 environment, with the same hyperparameters, and read off the difference in learned policies. This is Sutton & Barto Example 6.6.
- Environment:
CliffWalking-v1(4×12 grid, reward per step, on the cliff with reset to start, deterministic, ). - Behavior policy (both methods): -greedy with .
- TD target: SARSA uses where is the next action sampled from -greedy; Q-learning uses .


- Q-learning: shortest path from start to goal, hugging the cliff edge.
- SARSA: longer path along the top row, away from the cliff.
References
- Li, Y. (2017). Deep Reinforcement Learning: An Overview. arXiv [cs.LG].
- Lillicrap, T., Hunt, J., Pritzel, A., Heess, N., Erez, T., et al. (2015). Continuous control with deep reinforcement learning. arXiv [cs.LG].
- Ma, S., Yu, J. (2016). Transition-based versus State-based Reward Functions for MDPs with Value-at-Risk. arXiv [cs.AI].
- Mansour, Y., Singh, S. (2013). On the Complexity of Policy Iteration. arXiv [cs.AI].
- O’Donoghue, B., Munos, R., Kavukcuoglu, K., Mnih, V. (2016). Combining policy gradient and Q-learning. arXiv [cs.LG].
Found an error on this page? Report an issue.

