Compare an exploratory action with a greedy one
Keep each reward, discount and value next to its number. · 167 words
At a library junction, a book-carrying robot uses a policy, a rule for choosing actions. A greedy action follows the choice with the highest estimated value. Suppose the robot estimates that going right has an expected future reward of 6 points, while going left has an expected future reward of 3 points. It therefore chooses right. These estimates come from past experience, so they may be wrong. An action's value is its expected future reward.
An exploratory action tries a nongreedy option so the robot can learn. If the robot steps left, it receives 2 points and discovers a shortcut worth 8 later. This may improve its action values and future decisions. Exploration accepts some uncertainty or short-term loss to improve later choices; exploitation always uses the current best-known choice. An epsilon-greedy policy mixes them: with probability epsilon, it tries a random nongreedy action. Otherwise, it takes the greedy action. With epsilon = 0.2, the robot explores on 20 percent of decisions and exploits on 80 percent.
Check your recall
Under epsilon = 0.2, what does the library robot do when right is the greedy action and left is the only nongreedy action? Why might choosing left once still be rational?
Check your answer
It chooses right with probability 0.8 and left with probability 0.2. Trying left can be rational because it may reveal the 8-point shortcut and improve future choices, even though right currently has the higher estimated value.
Sources and credits
Original KeyTouch lesson. Background reading · UC Berkeley · Introduction to Artificial Intelligence.