Actor–critic methods sit at the intersection of two great threads in reinforcement learning: policy-based approaches, which learn a stochastic policy directly, and value-based approaches, which learn a state-value or action-value function. In an actor–critic architecture you maintain two separate, cooperating components. The first, called the actor, is the policy itself—usually a neural network that maps states to a distribution over actions. The second, the critic, is a value estimator—typically another network—that evaluates how good the current policy is in each state (or state–action pair). During training the actor proposes actions; the critic tells the actor whether those actions were better or worse than expected, and the actor adjusts its parameters so that actions judged better become more probable and actions judged worse become less probable.
Concretely, imagine an episodic Markov decision process in which, at each time-step t, the agent is in state sₜ and samples an action aₜ from its policy π_θ(a|s). After executing the action it observes a reward rₜ and the next state sₜ₊₁. The critic carries parameters φ and estimates either the state value V_φ(s) ≈ 𝔼[∑{k≥0} γᵏ r{t+k}] or the action–value Q_φ(s,a). To update the critic we use regression: we construct a bootstrapped target, for example rₜ + γ V_φ̄(sₜ₊₁), and minimise the squared error between this target and V_φ(sₜ). Here γ is the discount factor and φ̄ may denote a slowly moving target network or simply the current critic parameters, depending on the variant.
The actor update is derived from the policy-gradient theorem. You take the gradient of the log-probability of the sampled action, weight it by an estimate of its advantage, and step in that direction:
∇_θ J(θ) ≈ (rₜ + γ V_φ(sₜ₊₁) − V_φ(sₜ)) ∇_θ log π_θ(aₜ|sₜ).
The term in parentheses is the temporal-difference advantage, often called δₜ. If δₜ is positive, the action turned out better than the critic predicted, so increasing its log-probability raises expected return; if δₜ is negative, the update does the opposite. Because the critic supplies a low-variance baseline—the value estimate—the resulting policy-gradient has much lower variance than the raw REINFORCE estimator that uses the full return. That variance reduction lets you employ smaller batch sizes and achieve more sample-efficient learning.
In deep reinforcement learning practice, actor and critic are frequently implemented as two output heads of a single neural network that shares early convolutional or fully connected layers. This weight sharing speeds learning because both tasks can exploit a common representation of the state space. Algorithms like A2C (Advantage Actor–Critic), A3C (its asynchronous, distributed cousin), DDPG (Deep Deterministic Policy Gradient), TD3, and SAC (Soft Actor–Critic) are all specialised descendants that differ mainly in how they parameterise the policy (deterministic or stochastic), how they stabilise value estimation (e.g., target networks, double critics), and whether they incorporate entropy regularisation to encourage exploration.
To see the loop in action, consider training an agent to balance the classic CartPole environment. At the start of an episode the actor, a small neural network, outputs a probability of pushing the cart left or right. The critic, another head on the same network, judges how promising the present state looks. When the agent chooses “push left,” gravity plus momentum might tumble the pole in an unexpected direction, producing either a higher reward (the pole stays up) or an immediate penalty (it falls). The critic computes the TD-error, passes the resulting advantage back to the actor, and both heads update: the critic to reduce prediction error, the actor to tilt its probabilities toward balancing actions. Over thousands of episodes these intertwined updates refine both the value estimator and the policy, yielding a stable controller that keeps the pole upright.
In essence, actor–critic learning is a dance. The actor experiments; the critic judges; together they converge on behaviour that maximises long-term reward, blending the strengths of policy search and value estimation while mitigating each method’s weaknesses.