Reinforcement Learning

Value-Based vs Policy-Based Methods

Comparing the two core families of Reinforcement Learning algorithms: learning action values vs directly optimizing policy parameters.

🟡 intermediate5 min readrlmust-know
Reinforcement Learning algorithms divide into Value-Based methods (Q-Learning, DQN) and Policy-Based methods (REINFORCE, PPO). Value-based methods learn action-value function Q(s, a), deriving implicit greedy policies a = argmax_a Q(s, a). Policy-based methods parameterize policy π_θ(a|s) directly, optimizing parameters θ via gradient ascent on expected return. Actor-Critic methods combine both: an Actor policy π_θ(a|s) and a Critic value function V_ϕ(s).

Comparison Matrix

       VALUE-BASED (DQN)                        POLICY-BASED (REINFORCE)                     ACTOR-CRITIC (PPO)
  Learns Q(s, a)                         Learns π_θ(a|s)                              Learns BOTH!
  Policy: a = argmax_a Q(s, a)           Optimizes θ via ∇_θ J(θ)                     Actor π_θ(a|s) + Critic V_ϕ(s)
PropertyValue-Based (DQN, SARSA)Policy-Based (REINFORCE)Actor-Critic (PPO, SAC, A2C)
Core Target LearnedAction-Value Q(s,a)Q(s, a)Policy Distribution πθ(a∣s)\pi_\theta(a \mid s)Both Policy πθ(a∣s)\pi_\theta(a \mid s) & Value Vϕ(s)V_\phi(s)
Action SpaceDiscrete (Buttons, Moves)Continuous & DiscreteContinuous & Discrete
Policy TypeDeterministic (Greedy arg⁡max⁡a\arg\max_a)Stochastic / Continuous GaussianStochastic / Continuous
Sample EfficiencyHigh (Off-policy Replay Buffer)Low (On-policy Monte Carlo)Moderate to High
VarianceLow (Bootstrapping)High (Monte Carlo Return GtG_t)Low (Advantage A=Q−VA = Q - V)

Mathematical Objectives

1. Value-Based Loss (DQN)

Minimizes Bellman Mean Squared Error over replay buffer DD:

L(θ)=E(s,a,r,s′)∼D[(r+γmax⁡a′Q(s′,a′;θ−)−Q(s,a;θ))2]\mathcal{L}(\theta) = \mathbb{E}_{(s,a,r,s') \sim D} \left[ \left( r + \gamma \max_{a'} Q(s', a'; \theta^-) - Q(s, a; \theta) \right)^2 \right]

2. Policy-Based Objective (Policy Gradient Theorem)

Maximizes expected trajectory return J(θ)=Eπθ[G0]J(\theta) = \mathbb{E}_{\pi_\theta}[G_0] via gradient ascent:

∇θJ(θ)=Eπθ[∇θln⁡πθ(a∣s)⋅Gt]\nabla_\theta J(\theta) = \mathbb{E}_{\pi_\theta} \left[ \nabla_\theta \ln \pi_\theta(a \mid s) \cdot G_t \right]

3. Actor-Critic Objective

Replaces Monte Carlo return GtG_t with Advantage Function Aπ(s,a)=Qπ(s,a)−Vπ(s)A^\pi(s, a) = Q^\pi(s, a) - V^\pi(s):

∇θJ(θ)=Eπθ[∇θln⁡πθ(a∣s)⋅Aϕ(s,a)]\nabla_\theta J(\theta) = \mathbb{E}_{\pi_\theta} \left[ \nabla_\theta \ln \pi_\theta(a \mid s) \cdot A^\phi(s, a) \right]

Say this out loud

"Value-based methods (DQN) learn action values Q(s,a) for discrete actions, deriving greedy policies via argmax_a Q(s,a). Policy-based methods (REINFORCE) parameterize policy π_θ(a|s) directly using gradient ascent, handling continuous action spaces naturally. Actor-Critic methods (PPO) combine both: the Actor learns policy π_θ and the Critic learns value baseline V_ϕ(s) to reduce gradient variance."

Follow-ups to expect

Check yourself

Question 1 of 3

Why do Value-Based methods (Q-Learning / DQN) struggle with continuous action spaces (e.g. steering wheel angle from -180° to +180°)?

More in Reinforcement Learning

See all →
Multi-Armed Bandits4 minProximal Policy Optimization5 minMarkov Decision Processes4 min