Actor-Critic Methods
Actor-Critic methods represent a prominent class of algorithms in Reinforcement Learning (RL) that combine the advantages of both policy-based and value-based reinforcement learning approaches.
1. Core Architecture
An Actor-Critic agent is divided into two separate, cooperating components:
- The Actor (Policy): Decides which action to take in a given state . It is represented as a parameterized policy . The actor learns and improves the policy parameters to maximize expected future rewards.
- The Critic (Value Function): Evaluates the selected action. It estimates the state-value function or action-value function with parameters . It provides a feedback signal (usually the TD error or advantage) to indicate how much better or worse the chosen action was compared to expectations.
2. Mathematical Framework & Learning Loop
At each time step , the actor and critic interact with the environment in the following sequence:
- Action Selection: The actor selects an action based on the current state .
- Environment Transition: The agent executes , transitioning to state and receiving reward .
- Critic Evaluation (TD Error): The critic computes the Temporal Difference (TD) error , which serves as the feedback signal: where is the discount factor.
- Actor Update (Policy Gradient): The actor’s policy parameters are updated to increase the probability of actions that yield positive TD errors: where is the actor’s learning rate.
- Critic Update (Value Function): The critic’s value parameters are updated to minimize the value prediction error: where is the critic’s learning rate.
3. Key Features & Advantages
- Variance Reduction: Pure policy gradient methods (e.g., REINFORCE) suffer from high variance because policy updates rely on cumulative rewards from entire trajectories. Actor-Critic methods use the critic’s value function as a baseline or advantage function (), drastically reducing variance and accelerating convergence.
- Continuous Action Spaces: Value-based algorithms (like Q-learning or Deep Q-Networks) require finding the maximizing action , which is computationally intractable in continuous action spaces. Actor-Critic methods circumvent this because the actor directly represents the policy distribution (e.g., outputs the mean and variance of a Gaussian distribution).
- Online and Bootstrapping Capability: Unlike Monte Carlo methods, Actor-Critic algorithms can update parameters after every single step using Temporal Difference Learning (bootstrapping), making them highly suitable for online learning and continuous environments.
4. Prominent Algorithms
- A2C / A3C (Advantage Actor-Critic / Asynchronous Advantage Actor-Critic): Standard actor-critic frameworks that use the advantage function to update policies. A3C parallelizes training asynchronously across multiple worker threads to break correlation and stabilize deep networks.
- DDPG (Deep Deterministic Policy Gradient): An off-policy actor-critic algorithm designed specifically for continuous action spaces, using a deterministic policy.
- PPO (Proximal Policy Optimization): An on-policy method that utilizes a clipped surrogate objective function to ensure updates do not change the policy too drastically.
- SAC (Soft Actor-Critic): An off-policy actor-critic algorithm that optimizes for maximum entropy, encouraging the agent to explore more diverse action strategies.
5. Related Topics
- Reinforcement Learning
- Policy Gradient Methods
- Temporal Difference Learning
- Value Function Approximation
- Markov Decision Processes
6. References & Sources
- Barto, A. G., Sutton, R. S., and Anderson, C. W. (1983). Neuronlike adaptive elements that can solve difficult learning control problems. IEEE Transactions on Systems, Man, and Cybernetics.
- Mnih, V., Badia, A. P., Mirza, M., Graves, A., Lillicrap, T., Harley, T., Silver, D., and Kavukcuoglu, K. (2016). Asynchronous Methods for Deep Reinforcement Learning. International Conference on Machine Learning (ICML).
- Sutton, R. S., & Barto, A. G. (2018). Reinforcement Learning: An Introduction. MIT Press.