LGSYDec 27, 2022

Variance Reduction for Score Functions Using Optimal Baselines

arXiv:2212.13587v1h-index: 4
Originality Incremental advance
AI Analysis

This work addresses variance reduction in reinforcement learning and related fields, offering incremental insights into why common baselines are effective.

The paper tackles the problem of high variance in gradient estimators for models with probability distributions, deriving the optimal state-dependent baseline for variance reduction. It finds that value function baselines perform similarly to the optimal baseline in practice and provides new justification for existing methods like GAE.

Many problems involve the use of models which learn probability distributions or incorporate randomness in some way. In such problems, because computing the true expected gradient may be intractable, a gradient estimator is used to update the model parameters. When the model parameters directly affect a probability distribution, the gradient estimator will involve score function terms. This paper studies baselines, a variance reduction technique for score functions. Motivated primarily by reinforcement learning, we derive for the first time an expression for the optimal state-dependent baseline, the baseline which results in a gradient estimator with minimum variance. Although we show that there exist examples where the optimal baseline may be arbitrarily better than a value function baseline, we find that the value function baseline usually performs similarly to an optimal baseline in terms of variance reduction. Moreover, the value function can also be used for bootstrapping estimators of the return, leading to additional variance reduction. Our results give new insight and justification for why value function baselines and the generalized advantage estimator (GAE) work well in practice.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes