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

Policy Gradient Methods

Research Depth 98 in the knowledge graph I know this Set as goal
22topics build on this
760prerequisites beneath it
See this on the map →
Chain Rule for Multivariable FunctionsGradient Descent and Optimization+4 moreActor-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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionProbability Density Functions and Continuous DistributionsCumulative Distribution FunctionsContinuous Random VariablesProbability Density FunctionsExpected ValueWeak Law of Large NumbersProbability Axioms and RulesConditional ProbabilityConditional DistributionsConditional ExpectationMarkov ChainsMarkov Decision ProcessesIntroduction to Reinforcement LearningPolicy Gradient Methods

Longest path: 99 steps · 760 total prerequisite topics

Prerequisites (6)

Leads To (3)