Variance-Optimal Control Variates for Learning with Black-box Feedback
Organizations: School of Computational Science and Engineering Georgia Institute of Technology
Abstract
Modern models increasingly learn through black-box oracles such as humans, optimization solvers, and external tools that provide feedback without exposing their internal mechanisms. A common remedy is to learn an (action-)value function as a control variate. In this paper, we first observe that even an exact action-value function can be arbitrarily far from variance-optimal. We show that this gap arises because the value function minimizes the noise in each action's own gradient term, while an action can still affect the rest of the gradient estimator through shared parameters. A simple unbiased correction, at no extra oracle cost, can still reduce its variance by an arbitrarily large factor. Motivated by this, we then prove that the residual variance can be decomposed exactly by actions with no cross terms. This decomposition yields a closed-form variance-minimizing correction for neural-network parameters, which can be computed by a simple projection. Empirically, our correction consistently reduces the variance left by the value function and improves learning across all tasks. The source code for all experiments is available at https://github.com/Zihao-Kevin/black_box_opt.
Figures & tables
| REINFORCE | Exact local marg. | Learned surrogate | Ours | |
|---|---|---|---|---|
| Black-box oracle calls | ||||
| Unbiased gradient | ✓ | ✓ | × | ✓ |
| Variance of estimator | High | Low | Low | Variance-optimized † |
| Credit assignment | Uniform | Customized | Customized | Customized |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Family | Generation rule |
|---|---|
| Uniform | Uniform random machine permutation per job; durations uniform in – . |
| Bottleneck | As Uniform, but multiply durations on one uniformly chosen machine by . |
| Heterogeneous | Uniform routes; durations uniform in – , multiplied by a shared per-job factor uniform in and by a further independently with probability per operation. |
| Correlated routes | One shared uniform random route, with uniformly sampled swaps of distinct positions per job; durations uniform in – . |
Variance Reduction
Variance reduction develops methods that make Monte Carlo estimates, gradients, and experimental comparisons more precise with limited data or computation.
See all 107 papers