This seminal 1992 paper by Ronald Williams is a cornerstone of modern reinforcement learning (RL). It introduces the REINFORCE family of algorithms, providing the mathematical foundation for what we now call Policy Gradient methods. The paper elegantly bridges the gap between connectionist networks (neural nets) and reinforcement learning by showing how stochastic units can "learn" to maximize rewards by following the gradient of expected performance.
TL;DR
Williams introduces REINFORCE, a class of reinforcement learning algorithms that allow stochastic neural networks to climb the gradient of expected reward without a model of the environment. By correlating local variations in behavior with global reinforcement signals, these algorithms provide a mathematically principled way to train agents on both immediate and delayed reward tasks.
What Problem Does This Paper Address?
In the early 90s, the connectionist community was reeling from the success of backpropagation in supervised learning. However, applying these ideas to reinforcement learning—where an agent receives a scalar "reward" instead of a target output—was non-trivial.
The core challenge was: How do you adjust the weights of a network when you don't know the "correct" output, but only how "good" the resulting behavior was? Furthermore, how do you do this in a way that is computationally efficient and doesn't require the agent to have a perfect internal model of the world’s physics or reward functions?
Methods
The paper’s primary contribution is the REINFORCE algorithm (an acronym for "REward Increment = Nonnegative Factor $\times$ Offset Reinforcement $\times$ Characteristic Eligibility").
The weight update rule is defined as: $$\Delta w_{ij} = \alpha_{ij}(r - b_{ij})e_{ij}$$
Where:
- $\alpha_{ij}$: A learning rate.
- $r$: The reinforcement signal (reward).
- $b_{ij}$: A baseline (used to reduce variance without biasing the gradient).
- $e_{ij}$: The Characteristic Eligibility, defined as $\frac{\partial \ln g_i}{\partial w_{ij}}$, where $g_i$ is the probability distribution of the unit's output.
Key Innovations: 1. Stochastic Units: Williams assumes units are stochastic (e.g., Bernoulli or Gaussian). This randomness is not "noise" but a deliberate mechanism for exploration. 2. Model-Free Gradient Ascent: He proves that the expected weight change is always in the direction of the gradient of the expected reward. Crucially, the agent doesn't need to calculate this gradient explicitly; it emerges from the correlation between its random choices and the resulting reward. 3. Backprop Integration: The paper shows how REINFORCE can be combined with standard backpropagation. REINFORCE provides the "error signal" at the output, which is then backpropagated through deterministic hidden layers.
Datasets
The paper is primarily a theoretical and analytical work. It does not introduce new large-scale benchmarks. Instead, it references:
- Simulation studies by Sutton (1984) and Williams & Peng (1991) on nonassociative function optimization.
- Gaussian unit studies involving the optimization of a function of a single real variable.
Key Insights and Ideas
- The Power of the Log-Derivative: The "Characteristic Eligibility" (the derivative of the log-probability) is the magic ingredient. It tells the network how to change its weights to make the action it just took more likely in the future.
- Baselines Matter: While any baseline $b$ that is independent of the current action keeps the algorithm unbiased, choosing a good baseline (like the average reward seen so far) drastically reduces the variance of the updates, leading to much faster and more stable learning.
- Generality: Williams shows that this approach works for any differentiable probability distribution. For example, in a Gaussian unit, the network can learn to control both the mean (where to look) and the standard deviation (how much to explore) independently.
- Episodic Learning: The paper extends the logic to "Episodic REINFORCE," where rewards are delayed until the end of a sequence. By accumulating eligibility over time, the network can still perform gradient ascent on the final reward.
Key Results
- Theorem 1: Proves that for any REINFORCE algorithm, the inner product of the expected weight update and the gradient of the expected reinforcement is non-negative. In simpler terms: the algorithm is guaranteed to move "uphill" toward better rewards on average.
- Theorem 2: Extends this guarantee to episodic tasks with delayed rewards.
- Proposition 1: Demonstrates that for any distribution in the exponential family (like Poisson, Normal, or Bernoulli), the eligibility for the mean parameter has a remarkably simple and consistent form: $\frac{y - \mu}{\sigma^2}$.
Limitations and Future Work
- Convergence Theory: At the time of writing, there was no general theory for the asymptotic convergence of these algorithms. While they follow the gradient, they can still get stuck in local optima.
- Credit Assignment Speed: Williams acknowledges that Episodic REINFORCE is "especially slow" because it spreads credit or blame uniformly over all past actions, a problem later addressed by more sophisticated temporal difference (TD) methods.
- Variance: Policy gradient methods are notoriously high-variance. While baselines help, the paper notes that finding the optimal baseline to minimize variance is a difficult estimation problem.
This paper laid the groundwork for the "Actor" part of Actor-Critic methods and remains required reading for anyone looking to understand why modern RL agents (like those playing Go or Dota) work the way they do.
Summary updated