SOCRATES: Simulation Optimization with Correlated Replicas and Adaptive Trajectory Evaluations

Haoting Zhang, Haoxian Chen, Donglin Zhan, Hanyang Zhao, Henry Lam, Wenpin Tang, David Yao, Zeyu Zheng · DOI

Introduction

In complex stochastic systems such as supply chain networks or high-throughput manufacturing facilities, optimization often relies on "black-box" simulations. These Simulation Optimization (SO) tasks are notoriously difficult due to two primary factors: high computational costs (data scarcity) and a lack of domain-specific customization in general-purpose algorithms. Standard methods like Bayesian Optimization or Genetic Algorithms are often applied as "one-size-fits-all" solutions, failing to leverage the unique structural properties of the system at hand.

SOCRATES (Simulation Optimization with Correlated Replicas and Adaptive Trajectory Evaluations) addresses these challenges by introducing a two-stage framework that utilizes Large Language Models (LLMs) to automate the design of bespoke optimization strategies. By constructing "Operational AI Replicas" (OARs) and employing LLMs as meta-optimizers, SOCRATES bridges the gap between general-purpose heuristics and domain-specific requirements.

Methodology

The end-to-end SOCRATES framework overview.

The SOCRATES framework operates in two distinct stages, transitioning from system modeling to iterative strategy refinement.

Stage 1: Operational AI Replica (OAR) Construction

Rather than performing expensive evaluations directly on the real-world system, SOCRATES builds a computationally efficient "digital twin" known as an OAR. This process involves:

  1. Causal Skeleton Discovery: An LLM interprets textual descriptions of the system to infer a Directed Acyclic Graph (DAG). Using a Breadth-First Search (BFS) approach, the LLM identifies key causal relationships (e.g., how lead times influence inventory levels).
  2. EM-Type Structural Learning: The framework then uses an Expectation-Maximization (EM) procedure to parameterize the skeleton using historical data. This step ensures the replica is statistically consistent with the real system and can account for latent variables.

Stage 2: Trajectory-Aware Meta-Optimization

With the OAR serving as a high-fidelity sandbox, SOCRATES optimizes the optimization process itself.

Detailed view of the Stage 2 meta-optimization loop.
  • Algorithm Scheduling: The LLM does not simply select an algorithm; it designs a "schedule" or a sequence of algorithms (e.g., starting with Bayesian Optimization for exploration and switching to a Genetic Algorithm for exploitation).
  • Semantic Gradient: The LLM acts as a meta-optimizer by analyzing performance trajectories—plots of cost reduction over time. It uses language-based reasoning (a "semantic gradient") to identify when an algorithm has stalled and proposes revisions to the schedule to maintain progress.
  • Online Adaptation: The framework supports real-time updates; if the strategy's performance on the physical system deviates from the OAR's predictions, the replica and schedule are adjusted on the fly.

Experimental Evaluation

The framework was validated on two representative stochastic systems:

  1. Multi-SKU Single-Echelon Warehouse: Optimizing inventory order-up-to targets under seasonal demand and variable lead times.
  2. Multi-Server Queuing Network: Minimizing operating costs and customer wait times through optimized server allocation and routing.

Results and Discussion

SOCRATES demonstrated significant improvements over standalone baselines, including various flavors of Bayesian Optimization (EI, UCB, PI), Genetic Algorithms (GA), and Particle Swarm Optimization (PSO).

  • Performance Gains: In the warehouse task, the LLM-discovered hybrid schedule (BO-EI → GA) achieved a mean cost of 26.52, representing a 6.0% reduction compared to the best single baseline (BO-PI at 28.20).
  • Reliability: Hybrid schedules exhibited lower variance across runs, indicating that the meta-optimization process leads to more robust and predictable outcomes.
  • Strategic Insight: Qualitative analysis showed the LLM effectively identified "regime changes" in the optimization trajectory, successfully automating the "relay race" between different algorithmic strengths.

Conclusion

SOCRATES demonstrates that LLMs can serve as effective architects for simulation optimization, translating ambiguous domain knowledge into structured causal models and refined algorithmic schedules. While the framework's success depends on the quality of initial system descriptions, it offers a powerful path toward sample-efficient, customized optimization for complex real-world systems. Future work will explore multi-agent LLM configurations to further enhance causal discovery and performance analysis.

Summary updated

BibTeX
@misc{zhang2025socrates,
  author = {Haoting Zhang and Haoxian Chen and Donglin Zhan and Hanyang Zhao and Henry Lam and Wenpin Tang and David Yao and Zeyu Zheng},
  title = {{SOCRATES: Simulation Optimization with Correlated Replicas and Adaptive Trajectory Evaluations}},
  year = {2025},
  eprint = {2511.00685},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.00685},
}
Figure