Skip to content
DraconiticResearch
Search Sources API
276,906 studies31 sourcesUpdated 29 min ago
PreprintarXiv licencearXiv

Gradient Estimation for LLM-Embedded Simulation Optimization

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.

Related

  1. Beyond Classical Minimax Rates: Quantum Sampling in Gradient-Based Simulation Optimization
    Hao Cao, Jian-Qiang Hu, Mingjie Hu +1
    arXivPreprintarXiv licenceFull textOptimisation & controlStatisticsarXiv
  2. Estimation, Sensitivity Analysis, and Optimization of Distortion Risk Measures via Simulation
    Hao Cao, Jian-Qiang Hu, Jiaqiao Hu
    arXivPreprintarXiv licenceFull textOptimisation & controlStatisticsarXiv
  3. On triviality and scalar curvature estimation of gradient h-almost Yamabe solitons
    Absos Ali Shaikh, Ananya Tripathi
    arXivPreprintCC BY-SA 4.0Full text1 citedGeometry & topologyarXiv
  4. Optimization-based lane-changing trajectory planning in mixed traffic with embedded input convex neural networks
    Yuanxiang Yang, Yu Liu, Fabricio Oliveira +2
    arXivPreprintCC BY 4.0Full textOptimisation & controlarXiv
  5. Learn-Then-Differentiate Gradient Estimation
    Nifei Lin, Qingkai Zhang, L. Jeff Hong
    arXivPreprintCC BY-NC-ND 4.0Full textStatisticsarXiv
BibTeX
@misc{jin2026gradient,
  title = {{Gradient Estimation for LLM-Embedded Simulation Optimization}},
  author = {Ruiyang Jin and Siyang Gao},
  howpublished = {arXiv},
  year = {2026},
  month = nov,
  doi = {10.48550/arxiv.2611.10809},
  eprint = {2611.10809},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.10809},
}
RIS
TY  - UNPB
TI  - Gradient Estimation for LLM-Embedded Simulation Optimization
AU  - Ruiyang Jin
AU  - Siyang Gao
PY  - 2026
DA  - 2026/11/07
PB  - arXiv
DO  - 10.48550/arxiv.2611.10809
UR  - https://arxiv.org/abs/2611.10809
AB  - 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.
ER  -