Gradient Estimation for LLM-Embedded Simulation Optimization
Ruiyang Jin, Siyang Gao
Key points
From the paper's conclusion- We further establish improved complexity bounds for projected stochastic approximation.
Abstract
Large language models (LLMs) are increasingly embedded in operational simulators to represent context-dependent human decisions, which opens new possibilities for simulation optimization. However, the LLM acts as a black box, so derivatives through its decisions are unavailable for gradient-based policy search. Finite difference estimation can avoid this requirement, but the required paired simulations that sample LLM actions independently often disagree, and such action switches persist under small perturbations, which inflates the gradient variance to order $c^{-2}$ for perturbation radius $c$. To control this variance, we develop a behavioral common random number framework. It first applies maximal coupling to the LLM's action distributions, preserving each simulation's behavioral law while making action switches as rare as possible, which reduces the variance bound to $O(c^{-1})$. It then applies first-switch conditioning, which averages over whether a switch occurs, together with an impact-aware extension that prioritizes influential switches. Under suitable stability conditions, both keep the variance bounded as $c$ shrinks. We further establish improved complexity bounds for projected stochastic approximation. Experiments on synthesized and LLM-embedded simulators confirm the theory and show substantial performance gains.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Generalized Proximal Policy Optimization: Unifying LLM RL Algorithms from the Perspective of DivergencearXiv · 2026
- LLMs as Representation Generators for Gradient-Free Scientific Optimization: A Case Study in Battery Fast Charging.Advanced science (Weinheim, Baden-Wurttemberg, Germany) · 2026
- When is a better LLM worth paying for? Stochastic Optimization with Switching Mixed-Fidelity OraclesarXiv · 2026
- When is a large language model a good calibration agent? Physics-labeled prompting for budgeted engineering simulator calibrationarXiv · 2026
- Beyond Scalar Leaderboards: Adaptive Sampling for Pareto Frontier Identification in Multi-Objective LLM ArenasarXiv · 2026
- Prior or Feedback? What an LLM Uses When Adapting Neural OperatorsarXiv · 2026