Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Principle:LaurentMazare Tch rs Advantage Actor Critic

From Leeroopedia


Knowledge Sources
Domains Reinforcement Learning, Deep Learning
Last Updated 2026-02-08 00:00 GMT

Overview

Advantage Actor-Critic (A2C) is a synchronous reinforcement learning algorithm that combines a policy network (actor) with a value network (critic) to reduce variance in policy gradient estimation through advantage-based updates.

Description

A2C is the synchronous variant of the Asynchronous Advantage Actor-Critic (A3C) algorithm. It uses two coordinated components:

  • Actor (policy network): Outputs a probability distribution over actions given the current state, π(a|s;θ). The actor is trained to select actions that maximize expected cumulative reward.
  • Critic (value network): Estimates the state value function V(s;ϕ), which represents the expected cumulative reward from state s onward under the current policy. The critic provides a baseline that reduces the variance of policy gradient estimates without introducing bias.
  • Advantage function: The advantage A(s,a)=RV(s) measures how much better an action is compared to the average action in that state. Using advantage rather than raw returns dramatically reduces the variance of gradient estimates, since the critic absorbs the state-dependent portion of the return.
  • Entropy bonus: An entropy regularization term is added to the policy loss to encourage exploration. This prevents the policy from collapsing prematurely to a deterministic action selection, which could cause the agent to get stuck in local optima.

The synchronous nature of A2C means that multiple environment instances are stepped in lockstep, and their experiences are batched together for a single gradient update. This is simpler than asynchronous variants and often achieves comparable performance with better GPU utilization.

Usage

A2C is applied to discrete and continuous control tasks in reinforcement learning, including game playing, robotic control, and navigation. It serves as a foundational algorithm from which more advanced methods (PPO, IMPALA) are derived.

Theoretical Basis

Policy Gradient Theorem:

θJ(θ)=𝔼πθ[θlogπ(at|st;θ)A(st,at)]

Advantage Estimation:

Using n-step returns:

A(st,at)=(k=0n1γkrt+k)+γnV(st+n;ϕ)V(st;ϕ)

where γ is the discount factor. For a complete episode, the bootstrapped value term γnV(st+n) is replaced with the actual terminal return.

Actor Loss (Policy Loss):

actor=𝔼t[logπ(at|st;θ)At]

Critic Loss (Value Loss):

critic=𝔼t[(RtV(st;ϕ))2]

where Rt is the n-step return target.

Entropy Bonus:

H(π(|st))=aπ(a|st)logπ(a|st)

Combined Loss:

=actor+cvcriticceH(π)

where cv is the value loss coefficient and ce is the entropy coefficient.

Synchronous Batching:

With N parallel environments, each contributing T steps:

for each update iteration:
    collect T steps from N parallel environments
    compute advantages for all N*T transitions
    compute combined loss over the batch
    perform single gradient update

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment