Dimensional Peeking for Low-Variance Gradients in Zeroth-Order Discrete Optimization via Simulation
Philipp Andelfinger, Wentong Cai
TL;DR
Dimensional peeking introduces a variance-reduction technique for zeroth-order optimization over discrete simulations by lifting perturbations to control-flow-equivalence classes, yielding unbiased gradient estimates relative to a smoothed objective. The method, implemented via a perturbed arithmetic type in C++, groups perturbations that traverse the same control-flow path and weights them by their probabilities, boosting information per evaluation. Empirical results across CityFlow, Hotel, and DynamNews show variance reductions up to 7.9x with acceptable overhead, translating into faster and more reliable convergence than several meta-heuristics, particularly for non-convex discrete problems. The approach broadens the practicality of gradient-based SBO and suggests potential extensions to trust-region methods and reinforcement learning with discrete actions.
Abstract
Gradient-based optimization methods are commonly used to identify local optima in high-dimensional spaces. When derivatives cannot be evaluated directly, stochastic estimators can provide approximate gradients. However, these estimators' perturbation-based sampling of the objective function introduces variance that can lead to slow convergence. In this paper, we present dimensional peeking, a variance reduction method for gradient estimation in discrete optimization via simulation. By lifting the sampling granularity from scalar values to classes of values that follow the same control flow path, we increase the information gathered per simulation evaluation. Our derivation from an established smoothed gradient estimator shows that the method does not introduce any bias. We present an implementation via a custom numerical data type to transparently carry out dimensional peeking over C++ programs. Variance reductions by factors of up to 7.9 are observed for three simulation-based optimization problems with high-dimensional input. The optimization progress compared to three meta-heuristics shows that dimensional peeking increases the competitiveness of zeroth-order optimization for discrete and non-convex simulations.
