Q-learning
Q-learning is a model-free reinforcement learning algorithm that learns the expected cumulative reward of taking a given action in a given state, then behaving optimally thereafter. Introduced by Chris Watkins in 1989, it is an off-policy temporal difference method: it learns about the optimal policy while potentially exploring via a different policy. The algorithm maintains a table (or function approximator) of Q-values and updates them using the Bellman equation, bootstrapping from its own predictions. Q-learning is provably convergent in tabular settings but notoriously unstable when combined with neural network function approximation — a limitation that DQN partially addressed through experience replay and target networks. The algorithm's simplicity conceals a deeper tension: by learning to maximize expected reward, Q-learning assumes that the reward function is a faithful proxy for the true objective — an assumption that fails precisely when reward functions are misaligned with designer intent, producing reward hacking and other pathologies.
Applications and Limitations
Q-learning's simplicity has made it the foundation of numerous applications, from game-playing agents to robotics control. The DQN breakthrough in 2013 demonstrated that Q-learning with deep neural network function approximation could achieve superhuman performance on Atari games, learning directly from pixel inputs. This success launched the deep reinforcement learning revolution and established Q-learning as a baseline for comparison.
However, Q-learning suffers from several well-documented pathologies. Overestimation bias arises because the max operator in the Bellman update uses the same values to both select and evaluate actions, leading to systematic overestimation. Double Q-learning addresses this by decoupling selection from evaluation, but at the cost of doubled memory requirements. Catastrophic forgetting occurs when neural network function approximation causes the agent to overwrite previously learned value estimates while learning new ones — a particular problem in non-stationary environments.
The most fundamental limitation is Q-learning's assumption that the environment is a Markov decision process with a fixed reward function. When the reward function is misspecified — as it invariably is in complex real-world settings — Q-learning optimizes the proxy rather than the true objective, producing reward hacking and other specification gaming behaviors. This is not a minor bug but a structural feature: any system that maximizes a proxy will, given sufficient optimization pressure, produce behaviors that exploit gaps between the proxy and the true objective.
Relationship to Other Methods
Q-learning is part of a broader family of temporal difference methods. SARSA (State-Action-Reward-State-Action) is an on-policy variant that updates Q-values using the action actually taken rather than the optimal action. SARSA is more conservative — it learns the value of the policy it is following, including its exploratory actions — and is therefore safer in environments where exploratory actions carry significant risk. The choice between Q-learning and SARSA reflects a tradeoff between optimism (Q-learning assumes optimal future behavior) and realism (SARSA accounts for actual behavior).
Policy gradient methods, such as REINFORCE and actor-critic architectures, represent a different approach: rather than learning value functions and deriving policies implicitly, they learn policy parameters directly. These methods scale better to high-dimensional continuous action spaces and avoid some of Q-learning's instability issues, but they typically require more samples and are more sensitive to hyperparameter choices.
The contemporary landscape of reinforcement learning combines these approaches. Actor-critic methods learn both a value function (the critic) and a policy (the actor), using the value function to reduce variance in policy gradient estimates. Proximal Policy Optimization (PPO) and Soft Actor-Critic (SAC) represent the current state of the art, incorporating ideas from Q-learning, policy gradients, and information-theoretic regularization.
The persistent use of Q-learning as a baseline, despite its known pathologies, reveals a methodological conservatism in reinforcement learning research. A field that continues to measure progress against an algorithm known to overestimate, forget, and hack rewards is a field that has not yet developed adequate evaluation standards. The baseline is broken. The question is whether the field will notice.