SARSA
SARSA updates an action-value estimate using the next action actually chosen by the behavior policy. It is an on-policy TD control method.
Definition
SARSA updates an action-value estimate using the next action actually chosen by the behavior policy. It is an on-policy TD control method.
Intuition
Because the target includes exploratory actions, the learner accounts for the risks of its own exploration.
Worked example
In a cliff-walking task, exploratory moves near the edge can make SARSA prefer a safer route during training.
The math
, where is sampled from the behavior policy.
In practice
Compare SARSA and Q-learning under the same exploration schedule to separate behavior-policy effects from implementation differences.
Go deeper
Sources
More in Reinforcement learning
Assembled from the ReLU.chat curated knowledge base. These explanations are concise on purpose; check the sources for anything important.