The tabular Monte Carlo methods and TD algorithms repeatedly traverse the entire MDP and update the action values. However, this is only practical if the state-action space is small.
In fitted Q-learning, the discrete representation of the action values is replaced by a machine learning model , where now the state is represented by a vector rather than just an index.
We then define a least squares loss based on the consistency of adjacent action values (similar to Q-Learning):
which in turn leads to the update:
Fitted Q-learning differs from Q-Learning in that convergence is no longer guaranteed. A change to the parameters potentially modifies both the target (the maximum value may change) and the prediction . This can be shown both theoretically and empirically to damage convergence.