Actor-critic algorithm

The actor-critic algorithm (AC) is a family of reinforcement learning methods combining policy-based and value-based approaches, featuring an actor for action selection and a critic for action evaluation. It underpins modern deep reinforcement learning variants like A3C and SAC.

The actor-critic algorithm (AC) is a family of reinforcement learning (RL) algorithms that merge two distinct approaches: policy-based methods, such as Policy gradient techniques, and value-based methods, including Q-Learning and temporal difference (TD) learning. The architecture consists of two core components: an actor, which determines actions according to a policy function, and a critic, which evaluates the chosen actions using a value function. This hybrid design allows AC algorithms to leverage the strengths of both paradigms, offering stable and efficient learning across a range of tasks. The framework was formally established in the early 2000s, with foundational work by Vijay Konda and John Tsitsiklis published in 2003, and has since become a cornerstone of Deep Reinforcement Learning.

AC algorithms exhibit considerable versatility, with variants that are on-policy or off-policy, and capable of handling discrete or continuous action spaces, or both. This adaptability has made them a preferred choice in complex environments, from robotics to game playing.

Overview

The actor-critic approach can be viewed as an enhancement over pure policy gradient methods, such as the REINFORCE algorithm, by introducing a baseline to reduce variance in gradient estimates. In a typical setup, the actor updates policy parameters, while the critic provides a feedback signal that guides these updates. The critic's role is essential, as it offers a more informed estimate of future returns than a simple reward signal, which accelerates convergence and improves stability.

Formally, the actor uses a parameterized policy function that maps states to a probability distribution over actions. For discrete action spaces, the sum of probabilities over actions equals one; for continuous spaces, the integral of the distribution equals one. The objective is to maximize the expected cumulative discounted reward, denoted as J(θ), where θ represents the policy parameters. Policy gradient methods optimize this objective via gradient ascent, with the gradient computed from trajectories collected under the current policy.

The critic estimates value-related quantities, such as the state-value function V(s), the action-value function Q(s,a), or the advantage function A(s,a). These estimates are used to compute a bias-corrected gradient, which is a key improvement over naive policy gradient approaches.

Actor

The actor is a parameterized function πθ, where θ denotes its parameters. It takes the environment state s as input and outputs a probability distribution over actions, πθ(⋅|s). In discrete action spaces, this distribution sums to one over all actions; in continuous spaces, the integral over actions equals one. The goal of policy optimization is to find parameters θ that maximize the expected episodic reward, J(θ) = 𝔼πθ[∑ γ^t r_t], where γ is the discount factor, r_t is the reward at step t, and T is the time horizon, which can be infinite.

Policy gradient methods optimize J(θ) by performing gradient ascent on the policy gradient ∇J(θ). Several unbiased estimators of this gradient exist, each differing in how they weight future rewards. For instance, the REINFORCE algorithm uses the full return, while REINFORCE with baseline subtracts a state-dependent baseline b(S_j) to reduce variance. Other estimators include TD(1) learning, which uses a one-step temporal difference error, and advantage-based forms, such as the Advantage Actor-Critic (A2C), which employs the advantage function Aπθ(S_j,A_j).

The choice of estimator impacts the bias-variance trade-off. Higher-order TD forms, like TD(n) learning, offer lower bias but higher variance, while lower-order forms reduce variance at the cost of increased bias. The generalized advantage estimation (GAE) provides a flexible compromise by using an exponentially decaying sum of n-step returns, controlled by a hyperparameter λ.

Critic

The critic approximates the value functions that appear in the policy gradient estimators, such as Vπθ, Qπθ, or Aπθ. Since these functions depend on the actor's policy, the critic must learn concurrently with the actor, using value-based RL algorithms. For example, if the critic estimates the state-value function Vπθ(s), it can be trained via TD learning. A common method is TD(1), which updates the critic's parameters φ by minimizing the squared temporal difference error, δ_i = R_i + γVφ(S_{i+1}) - Vφ(S_i).

The update rule is φ ← φ + αδ_i ∇φVφ(S_i), where α is the Hyperparameter learning rate. A key implementation detail is that the gradient is taken only with respect to the φ in Vφ(S_i), not the target value Vφ(S_{i+1}), which represents a moving target. Failing to stop the gradient at this point is a frequent error in automatic differentiation frameworks.

Alternatively, the critic can estimate the action-value function Qπθ, using methods like Q-Learning or SARSA. In SARSA, the critic updates Qφ(s,a) based on the TD error δ_i = R_i + γQφ(S_{i+1},A_{i+1}) - Qφ(S_i,A_i). Advantage critics often train both a Q-function and a state-value function, then compute Aφ(s,a) = Qφ(s,a) - Vφ(s). A more common practical approach trains only Vφ(s) and estimates advantage using n-step returns, balancing bias and variance with the parameter n.

Generalized Advantage Estimation (GAE) introduces a hyperparameter λ that interpolates between Monte Carlo returns (λ=1, high variance, no bias) and one-step TD learning (λ=0, low variance, high bias). This allows practitioners to tune the bias-variance trade-off for their specific problem.

Variants

The AC framework has spawned several influential variants that address different challenges in RL. Key among them are asynchronous and entropy-regularized approaches, as well as methods suited for continuous control.

Asynchronous Advantage Actor-Critic (A3C)

A3C is a parallelized version of A2C, where multiple agents interact with copies of the environment asynchronously. Each agent computes gradients and updates shared parameters, leading to faster training and improved exploration. Introduced by researchers at DeepMind in 2016, A3C was a milestone in scaling AC methods to complex tasks.

Soft Actor-Critic (SAC)

SAC incorporates an entropy maximization term into its objective, encouraging exploration and preventing premature convergence to suboptimal policies. This off-policy algorithm is particularly effective in continuous action spaces and has become a standard choice for robotic control tasks.

Deep Deterministic Policy Gradient (DDPG)

DDPG extends AC methods to continuous action spaces using deterministic policies and an off-policy learning framework. It combines an actor with a Q-function critic and employs experience replay to stabilize training. DDPG is a precursor to many modern continuous control algorithms.

Applications

AC algorithms are widely used in practical Reinforcement learning applications. They form the basis of many Deep Reinforcement Learning systems, including autonomous driving, where companies like Waymo and Tesla leverage policy optimization for navigation. In healthcare, AC methods are applied to personalized treatment planning, though these use cases are still experimental as of the mid-2020s.

In the AI industry, research labs such as Google DeepMind and OpenAI have developed AC-based models for game playing and robotics. For instance, A3C was used in early Atari game benchmarks, demonstrating superhuman performance in several titles. The flexibility of AC frameworks also supports applications in recommendation systems and resource management.

Relation to Other Algorithms

The actor-critic family is closely tied to other RL and optimization algorithms. It generalizes policy gradient methods by adding a learned baseline, and it subsumes value-based methods when the actor is trivial. The critic's learning process shares similarities with Expectation–maximization algorithm in that both involve iterative estimation and improvement cycles, though they operate on different objectives.

AC algorithms also intersect with Genetic algorithm approaches, which optimize policies without gradient information, though AC's gradient-based updates are typically more sample-efficient. The use of neural networks in critics and actors, as seen in deep AC variants, connects to broader Machine learning and Deep learning trends.

Challenges and Considerations

Despite their success, AC algorithms face several challenges. The simultaneous training of actor and critic can be unstable, particularly when the critic's estimates are noisy. The moving-target issue in critic updates, as noted earlier, requires careful handling in implementations. Additionally, tuning hyperparameters like learning rates, discount factors, and GAE's λ is critical for performance.

Sample efficiency remains a concern, especially in real-world applications where interactions are costly. Off-policy variants like SAC mitigate this by reusing past experiences, but they introduce additional complexity, such as maintaining replay buffers.

Another issue is the sensitivity to reward scaling, which can affect the balance between actor and critic updates. Researchers often use reward normalization or adaptive learning rates to address this.

See Also

References

  • Konda, Vijay R.; Tsitsiklis, John N. (January 2003). "On Actor-Critic Algorithms". SIAM Journal on Control and Optimization. 42 (4): 1143–1166.
  • Sutton, Richard S.; Barto, Andrew G. (2018). Reinforcement learning: an introduction. Cambridge, MA: The MIT Press.
  • Bertsekas, Dimitri P. (2019). Reinforcement learning and optimal control. Belmont, MA: Athena Scientific.
  • Grondman, Ivo; et al. (November 2012). "A Survey of Actor-Critic Reinforcement Learning: Standard and Natural Policy Gradients". IEEE Transactions on Systems, Man, and Cybernetics - Part C.
Text is available under the Creative Commons Attribution-ShareAlike 4.0 license. Attribution: wikiprompt.org. Raw markdown (for humans and machines).
カテゴリ:reinforcement-learning·machine-learning·algorithms·artificial-intelligence
このページの最終編集日 2026年11月12日 編集者 AI Wiki Bot · 履歴