Credit Assignment Techniques in Stochastic Computation Graphs

Théophane Weber, Nicolas Heess, Lars Buesing, David Silver

Abstract

Stochastic computation graphs (SCGs) provide a formalism to represent structured optimization problems arising in artificial intelligence, including supervised, unsupervised, and reinforcement learning. This paper introduces a unified mathematical framework for credit assignment within these graphs, generalizing reinforcement learning (RL) concepts—such as value functions, baselines, and critics—to arbitrary graph structures. By doing so, the authors enable lower-variance gradient estimates and local, asynchronous learning rules that bypass the need for a full pass through the entire model.

Introduction

In standard deep learning, backpropagation is the gold standard for calculating gradients in deterministic, differentiable functions. However, modern AI architectures often incorporate stochasticity or non-differentiable nodes, forming what are known as Stochastic Computation Graphs (SCGs). These are prevalent in reinforcement learning, generative modeling (like Variational Autoencoders), and probabilistic programming.

The fundamental challenge in SCGs is "credit assignment": determining how specific parameters influence a final outcome across a complex, noisy graph. Existing estimators like REINFORCE or the reparameterization trick exist, but they face two major hurdles: high variance, which makes training unstable, and global dependency, which requires a complete forward and backward pass that hinders scalability and local learning.

A Unified Framework for Credit Assignment

The authors bridge the gap between RL and general probabilistic modeling by redefining RL tools for any arbitrary graph structure. This allows for a more flexible approach to gradient estimation.

Generalized Value Functions and Critics

In traditional RL, a value function estimates future rewards. This paper generalizes this concept to any node within an SCG as a conditional expectation of downstream costs. By identifying "Markov sets"—nodes that block all paths to the loss—researchers can build critics for specific sub-sections of a graph, effectively localizing the credit assignment problem.

The Advantage Function and Variance Reduction

By generalizing the Policy Gradient Theorem, the authors demonstrate that the total cost in a gradient estimate can be replaced with an "advantage" function (the difference between a critic’s estimate and a baseline). This substitution significantly reduces the noise (variance) of the gradient estimate without introducing bias, provided the baseline is independent of the stochastic action.

Gradient-Critics and Pathwise Derivatives

For "pathwise" derivatives (the reparameterization trick), the authors introduce gradient-critics. Instead of estimating a scalar value, a gradient-critic estimates the gradient of the downstream loss. This allows backpropagation to be "truncated," enabling parts of a network to update parameters using a learned estimator rather than waiting for a signal to travel back from the final output.

Theoretical Foundations

The paper’s contributions are primarily established through a series of theoretical proofs (Theorems 1 through 7):

  • Theorem 2 (Generalized Policy Gradient): Establishes that using generalized baselines and critics provides an unbiased gradient with lower variance.
  • Theorems 4 & 5 (Gradient-Critic Backprop): Proves that learned gradient-critics can be used to replace actual stochastic backpropagation while maintaining the correct expected gradient direction.
  • Theorem 7 (The Link): Establishes that if a conditioning set is "Markov," the gradient-critic is simply the derivative of the value critic, linking value-based and gradient-based methods.

Key Insights

The framework reveals that RL is a special case of a broader class of optimization problems. If a "Markov" property can be identified in a graph, RL-style credit assignment becomes applicable. This unification brings together disparate techniques—such as synthetic gradients, variational autoencoders, and actor-critic methods—into a single mathematical language.

Furthermore, the introduction of gradient-critics suggests a path toward local learning. In massive neural networks, components could theoretically learn and update asynchronously. This is particularly valuable for models with long temporal horizons or high complexity, where waiting for a global gradient signal is computationally expensive.

Limitations and Trade-offs

While powerful, these techniques introduce a bias-variance trade-off. Critics reduce variance (noise), but they introduce bias if the critic itself is not perfectly learned. Additionally, identifying optimal Markov sets in complex, non-linear graphs remains a challenge for practitioners. Finally, the use of critics increases the total parameter count and architectural complexity, as additional "critic" networks must be trained alongside the main model.

Conclusion

By providing a "menu" of estimators—score function vs. pathwise, biased vs. unbiased, local vs. global—this work allows researchers to tailor credit assignment to their specific graph architecture. This theoretical foundation paves the way for more efficient training in hierarchical RL and multi-agent systems, where credit assignment is notoriously difficult.

Summary updated

BibTeX
@inproceedings{weber2019credit,
  author = {Théophane Weber and Nicolas Heess and Lars Buesing and David Silver},
  title = {{Credit Assignment Techniques in Stochastic Computation Graphs}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
  url = {https://openreview.net/forum?id=uD6ThzRD7Sf},
}
Figure