Model-Free Learning
Model-free learning bypasses explicit modeling of and by learning values or Q-values directly from experience. There are several model-free learning algorithms:
- Direct Evaluation is a passive algorithm that evaluates a fixed policy by following it for many episodes and recording the total utility obtained from each state. Then, it computes
where is the number of visits to state , is the total length of the episode, is the time-step of the first appearance of state in the current episode, is the discount factor, and is the reward at time-step . Although direct evaluation is guaranteed to converge, it is slow, since it ignores transition structure and learns only from complete episodes.
⠀- Temporal Difference Learning improves on direct evaluation by learning after every step rather than after each episode using an exponential moving average, slowly iterating over
where is the learning rate, which starts at and slowly converges to , thereby making all subsequent samples have no affect on the model.
⠀- Q-Learning is an active, model-free algorithm that learns optimal Q-values directly, without needing an optimal policy. It uses a similar update rule to TDL, such that
This enables the agent to learn the optimal policy while still exploring - known as off-policy learning - since updates can be made even from suboptimal or random actions. Over time (with sufficient exploration and decaying ), Q-learning converges to , and the agent can act greedily with respect to for reward maximization.