A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Policy Gradient Methods

Research Depth 111 in the knowledge graph ☐ I know this ☆ Set as goal
22topics build on this
835prerequisites beneath it
See this on the map →
Chain Rule for Multivariable FunctionsGradient Descent and Optimization+4 more→→Actor-Critic MethodsPolicy Networks and Policy Gradients+1 more
reinforcement-learning policy-optimization on-policy

Core Idea

Policy gradient methods directly optimize the policy π(a|s) via gradient ascent on expected return. REINFORCE uses full episode returns; advantage actor-critic uses value baselines. Methods are on-policy but handle continuous actions naturally.

Explainer

Most reinforcement learning methods you have seen so far work by estimating value functions — figuring out how good each state or action is, then deriving a policy indirectly by picking the highest-value action. Policy gradient methods take a fundamentally different approach: they parameterize the policy directly as a function π_θ(a|s) and optimize its parameters θ to maximize expected return. Instead of asking "what is the value of this action?" and choosing the best one, they ask "how should I adjust the probability of each action to get more reward?"

This direct approach solves a problem that value-based methods struggle with: continuous action spaces. If your agent controls a robotic arm with joint torques that can take any real-valued number, you cannot enumerate all possible actions to find the one with the highest Q-value. But a parameterized policy can output a probability distribution over continuous actions — for instance, a Gaussian with a learned mean and variance — and gradient ascent smoothly adjusts these parameters. Your background in gradient descent and partial derivatives applies directly here, except you are ascending (maximizing) the expected return J(θ) rather than descending a loss.

The key theoretical result is the policy gradient theorem, which gives a tractable expression for ∇_θ J(θ). The simplest algorithm built on it is REINFORCE: run a full episode under the current policy, compute the return G_t from each time step, and update θ in the direction of ∇_θ log π_θ(a_t|s_t) · G_t. Intuitively, this increases the probability of actions that led to high returns and decreases the probability of actions that led to low returns. The log-probability gradient tells you which direction in parameter space makes the chosen action more likely; the return G_t scales how strongly you push. REINFORCE is simple and unbiased, but it suffers from high variance because G_t depends on everything that happens after time t.

The standard remedy is to subtract a baseline from the return — typically a learned value function V(s_t). The quantity A_t = G_t − V(s_t) is called the advantage: it measures how much better the actual return was compared to the expected return from that state. If an action achieves average performance, its advantage is near zero and the policy barely changes. Only actions that perform surprisingly well or surprisingly poorly produce large updates. This is the actor-critic architecture: the "actor" is the policy π_θ, and the "critic" is the value function V that provides the baseline. The critic reduces variance without introducing bias (since subtracting a state-dependent baseline does not change the expected gradient), making learning significantly more stable and sample-efficient than raw REINFORCE.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Regular Language Recognition Algorithms → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Context-Free Grammar Properties and Ambiguity → Parse Trees, Derivations, and Ambiguity in CFGs → Context-Free Grammars in Compiler Design → Abstract Syntax Trees (ASTs) → Symbol Tables and Scope Resolution → Semantic Analysis Phase → Scope and Binding Resolution → Scope, Shadowing, and Variable Lifetime → Parameter Passing: Value vs. Reference → Two-Dimensional Arrays → Graph Representations: Adjacency List vs. Adjacency Matrix → Depth-First Search (DFS) → Depth-First Search: Implementation and Applications → Topological Sort → Dynamic Programming → Markov Decision Processes → Introduction to Reinforcement Learning → Policy Gradient Methods

Longest path: 112 steps · 835 total prerequisite topics

Prerequisites (6)

Leads To (3)