arXiv:2610.29308cs.AIOct 2026

Manuscript Offprint

arXiv:2610.29308

LLM-Based Exogenous World Modeling for Dynamic Scheduling

Ni Zhang, Haofeng Yuan, Jianan Zhou, Shiji Song, Zhiguang Cao

Abstract

Dynamic scheduling requires dispatching online arrivals while anticipating future jobs, as poor decisions can compound downstream costs under nonlinear tardiness objectives. We show that a pretrained large language model (LLM) can serve as the exogenous component of a structured world model, forecasting uncertain future job arrivals. Specifically, we exploit an afterstate decomposition, which separates known deterministic shop transitions from uncertain exogenous job arrivals, enabling the LLM to forecast only the latter through a compact belief representation. Building on this, we develop Afterstate World-Model Planning (AWMP), which combines an evolved, belief-conditioned dispatching strategy with short scenario-based rollouts. A surprise-triggered refresh mechanism queries the LLM only when newly observed arrivals deviate sufficiently from previous forecast, and online residual self-calibration further conditions the LLM on its recent forecast errors to handle nonstationary arrivals. Across diverse arrival distributions, AWMP reduces weighted tardiness by 6-21% on dynamic job-shop and 22-46% on flexible job-shop benchmarks, relative to the best of eight classical priority-dispatching rules.

1 Introduction

Scheduling determines how a collection of jobs should be processed on limited machine resources while satisfying operational constraints such as precedence, machine capacity, and delivery commitments (Pinedo and Hadavi 1992; Smit et al. 2025b). Classical scheduling formulations assume that all jobs and their processing requirements are known in advance, allowing optimization over a fixed problem instance. Real manufacturing systems, however, are inherently dynamic (Vieira, Herrmann, and Lin 2003; Ouelhadj and Petrovic 2009). New jobs arrive dynamically over time while machines are already processing previously released work, and the scheduler must repeatedly dispatch operations without knowing the future workload.

Under such uncertainty, scheduling performance is typically evaluated by due-date-oriented objectives. A widely adopted objective is total weighted tardiness, which incurs no cost before a job's due date but imposes a growing penalty once the due date is missed. This nonlinear objective creates sharp due-date thresholds: a dispatching decision that appears locally beneficial may occupy critical machine capacity, delay a later high-priority job past its due date, and incur a disproportionate downstream penalty. Consequently, effective dynamic scheduling requires more than reacting to the currently available operations, but also anticipating how future job arrivals will reshape shop congestion and incorporating those expectations into decisions.

Existing approaches address this challenge either by reacting to the current workload or by explicitly modeling the future. 1) Classical priority-dispatching rules (PDRs), such as weighted shortest processing time (WSPT) and apparent tardiness cost (ATC), are fast and training-free (Panwalkar and Iskander 1977; Haupt 1989), but they rank only the currently available operations and carry no explicit representation of future arrivals. 2) Anticipatory optimization methods, including rolling-horizon replanning, sample-average approximation (SAA), and multiple-scenario approaches (MSA), evaluate decisions against future scenarios sampled from a prespecified stochastic model through repeated reoptimization (Powell 2007; Kleywegt, Shapiro, and Homem-de Mello 2002; Bent and Van Hentenryck 2004; Li et al. 2025). Their performance relies heavily on the fidelity of the assumed model, and the repeated reoptimization can be extremely expensive. 3) Recent neural methods learn dispatching policies from simulated trajectories with stochastic arrivals (Chang et al. 2022; Liu, Piplani, and Toro 2022, 2023; Liu et al. 2024b; Tang et al. 2026). While capable of capturing complex dynamic patterns, they typically entangle the exogenous arrival process with dispatching decisions and require task- and distribution-specific training, with retraining needed once either changes. These limitations motivate an anticipatory scheduler that can exploit observed arrival patterns without presupposing a parametric stochastic model, and that adapts without heavy retraining or reoptimization.

In this paper, we leverage a pretrained large language model (LLM) to model the exogenous component of a structured world model by forecasting future job arrivals, while explicitly accounting for known scheduling dynamics. Specifically, we employ an afterstate decomposition to separate the deterministic effects of dispatch actions from the uncertainty associated with future job arrivals. At each decision step, a dispatch action transforms the current state into an afterstate, representing the resulting shop configuration before subsequent arrivals are incorporated. This afterstate captures endogenous changes, including machine availability, operation progress, and precedence status, governed by

Figure

Figure 1: Illustration of dynamic scheduling with online job arrivals and dispatching decisions under unknown future arrivals. At the current time ctc_t, the scheduler observes the released jobs and current shop state and selects the next operation to dispatch. Here, JiJ_i denotes job ii, Ji−OjJ_i - O_j denotes the jj-th operation of job ii, and “due” indicates the corresponding job due date. Future job arrivals remain unknown.

known deterministic dynamics, leaving future job arrivals as the sole source of exogenous uncertainty. Accordingly, the LLM estimates a compact, decision-relevant belief over future arrival pressure, represented by the expected numbers of jobs arriving in the early and late portions of a fixed prediction horizon. The belief summarizes anticipated arrival intensity without specifying individual job identities, machine requirements, or operation-level dynamics. This compact interface makes the forecast directly usable by a dispatching planner while avoiding the need to learn a high-dimensional transition model.

Building on this decomposition, we develop AWMP, an Afterstate World-Model Planning framework for dynamic scheduling. At each decision step, AWMP maps every feasible dispatching action to its deterministic afterstate, and scores the action using both its afterstate features and the belief-derived features that capture future arrival pressure. A scenario generator then converts the early-late belief into concrete arrival scenarios, under which the retained action candidates are evaluated through short rollouts, and the action with the best aggregated evaluation is selected for dispatching.

Moreover, AWMP makes the LLM forecast adaptive and efficient for online planning through three mechanisms. First, online residual self-calibration feeds recent prediction-outcome pairs and forecast errors into subsequent prompts, enabling the LLM to adapt its arrival forecasts to nonstationary patterns through in-context learning. Second, belief amortization caches the forecast across all candidate evaluations and rollouts within a decision step, while the cached belief is also reused across decision steps, where the LLM is queried only when realized arrivals deviate sufficiently from the current belief. This surprise-triggered refresh reduces the number of LLM calls from one per rollout to a handful per episode. Third, meta-evolution searches over compact, human-readable strategy objects, comprising the scoring and value functions, rollout parameters, and forecast-refresh threshold, to automatically discover an effective belief-conditioned planning strategy.

Our main contributions are as follows:

• We formalize dynamic scheduling through an afterstate decomposition that separates the uncertain, exogenous job arrivals from known, deterministic scheduling dynamics.

• We instantiate the exogenous arrival-belief component of the structured world model with an LLM to forecast a compact arrival belief, and make this forecast adaptive and efficient through online residual self-calibration and belief reuse with surprise-triggered refresh.

• We develop AWMP, a belief-conditioned afterstate planner integrating coarse action screening and short-rollout evaluation under fixed scenario generation, with the planning strategy discovered offline via meta-evolution.

• Experiments across four arrival distributions show that AWMP discovers strategies that outperform the best of eight classical PDRs, reducing total tardiness by 6-21% on dynamic job-shop instances and 22-46% on dynamic flexible job-shop instances, while running in seconds.

References (35)