Manuscript Offprint
arXiv:2610.01128Grounding Large Language Models in DSGE Simulators for Policy Generation and Forecasting
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Large language models can produce economic policy responses that sound reasonable, but this does not show that their actions are consistent with economic dynamics. We test this by placing an instruction-tuned language model inside six Snowdrop-backed dynamic stochastic general equilibrium (DSGE) simulators. At each turn, the model observes the economy and a change in economic discourse, selects a bounded policy action, and receives the next simulated state and an economic reward. We implement a common Python interface for repeated rollouts, persistent shocks, state cloning, and rolling-horizon simulation.
This setting creates a long-horizon credit-assignment problem. Policy effects may appear several quarters after an action is taken. PPO has a learned value function that can propagate delayed reward to earlier tokens through generalized advantage estimation. GRPO has no learned value function and instead assigns a group-relative advantage from complete rollout returns. It therefore cannot distinguish which earlier turn caused the outcome; if every rollout receives the same return, the normalized advantage is zero. We use PPO as the primary method and GRPO as a matched critic-free baseline. The experiments also test directional semantic signals, reward horizon, trajectory warm starts, cross-simulator transfer, and historically anchored pandemic and monetary-policy shocks. The objective is to judge policy actions by their simulated economic consequences rather than by plausible language alone.
1 INTRODUCTION
An economic policy response can be fluent and well argued while still implying an unstable or internally inconsistent trajectory. Language models are normally judged on the response itself; the economic consequences remain outside the learning loop. We instead use a DSGE simulator as the environment that applies an action, advances the economy, and returns numerical feedback.
At each turn, the model observes the current state, the policy instruments available in that simulator, and a change in economic discourse. It returns a bounded JSON action. The environment combines this action with the scenario shocks, simulates the next period, and returns the new state and loss. Policy generation therefore becomes repeated control rather than a one-shot prompt.
This creates two different problems. First, policy transmission is delayed, so an early action must receive credit for an outcome that appears several turns later. PPO can use its critic to assign different values within the trajectory. Vanilla GRPO instead compares complete rollout returns and has no learned value function for within-trajectory credit. Second, both algorithms are local optimizers: they cannot learn a useful trajectory that the starting policy never generates. With an immediate action penalty, this can produce an inaction ravine in which doing little is safer than exploring an intervention whose benefit arrives later.
We lack a large expert trajectory bank for task-specific SFT. We therefore start from an instruction-tuned model, separate credit assignment from exploration, and test a small rule-based trajectory warm start. The semantic component is also directional: it uses the change between consecutive discourse windows as a noisy shock signal, not as a causally identified shock.
Our contributions are fivefold:

Figure 1: Semantic grounding architecture. Economic discourse is encoded into a temporal semantic state, mapped to named shock hypotheses, and evaluated by a DSGE simulator rather than by linguistic plausibility alone.
-
We define an RL-compatible interface to six Snowdrop models: a quarterly projection model (QPM), Smets–Wouters (SW), Galí–Smets–Wouters (GSW), Ireland’s New Keynesian model, a U.S. multivariate-filter model, and a real-business-cycle model. The interface supports state cloning, persistent shock schedules, rolling forecasts, and irreversible committed transitions.
-
We formulate semantic-shift conditioning with chronological data splits and named shock heads.
-
We fine-tune the language model with parameter-efficient adapters rather than training only a shallow action head. This makes cross-simulator transfer a test of whether policy behavior learned in one structural model carries to another.
-
We motivate PPO with a learned critic as the primary method for delayed multi-turn control and retain GRPO as a matched multi-rollout baseline.
-
We separate algorithm, reward, exploration, semantic, and cross-simulator effects through targeted ablations and external-event validation.
Multi-turn RL and exploration. PPO, RLOO, GRPO, and related methods are commonly used where reward follows one response. In multi-turn control, the outcome may arrive after several decisions, breaking this direct action–reward link. PPO combines a critic, GAE, and clipped updates, whereas GRPO replaces the critic with relative returns from grouped rollouts (Schulman et al., 2018; 2017; Shao et al., 2024). Multi-turn studies therefore motivate finer credit assignment (Wang & Ammanabrolu, 2025; Wei et al., 2026). This is separate from exploration. GEP-PG first finds diverse trajectories and then applies policy gradients; hindsight replay, return redistribution, curiosity, and SAC-GLAM provide related replay or exploration mechanisms (Colas et al., 2018; Andrychowicz et al., 2018; Arjona-Medina et al., 2019; Pathak et al., 2017; Gaven et al., 2026).
Training stages and semantic signals. Standard RLHF combines SFT, reward modeling, and policy optimization (Ouyang et al., 2022). Here the DSGE loss replaces a learned preference reward. SFT can expand the set of correct reasoning paths, while RL concentrates probability on paths the model already produces (Matsutani et al., 2026). This motivates the trajectory warm-start ablation. Generic embeddings can miss small changes in financial narratives, and discourse may itself respond

Figure 2: Closed-loop policy grounding. A semantic shift conditions the policy agent, a validated action modifies the DSGE shock path, and multivariate simulator outputs determine the reward and next observation.
to market conditions (Liu et al., 2024; Drinkall et al., 2025). We therefore model semantic change as an observation and leave causal identification to the structural model and evaluation design.
3 GROUNDED POLICY ENVIRONMENT
At turn , the hidden economic state is , the observed state is , and tokens encode policy action . Simulator advances as
where is its calibration and is the scenario shock. The LLM does not generate equations; it chooses from policy levers exported by the selected simulator.
3.1 MULTI-ROLLOUT DSGE INTERFACE
Snowdrop supplies the numerical solvers and structural model implementation (Goumilevski & Otterson, 2025); the RL interface is our implementation. Our wrapper turns these solvers into a stateful environment for repeated, matched language-agent rollouts. The wrapper adds four capabilities needed here: (i) shock abstraction, which accepts scalar, full-path, or sparse time-value schedules; (ii) named parameter updates for controlled regime experiments; (iii) deep state cloning, which copies the calibration, committed state, active shocks, and loss state; and (iv) an RL step that validates an action, advances the simulator, and returns the next observation, loss, reward, termination flag, and validity flag. Rolling forecasts and irreversible one-period commits preserve the DSGE temporal structure while allowing many counterfactual trajectories to begin from the same economy.
For GRPO, the environment is cloned G times and one complete trajectory is sampled from each clone before group-relative advantages are computed. PPO retains the trajectory and generation-time token probabilities while a separate critic supplies token values. Both algorithms therefore receive the same initial state and exogenous shock path.
3.2 VALIDATED ACTIONS AND IRREVERSIBLE TRANSITIONS
An action is a JSON object with a lever, signed magnitude, and optional short rationale. Model-specific bounds are enforced before simulation. Invalid JSON, unknown levers, and out-of-range magnitudes incur a penalty rather than being silently repaired. A policy shock persists for a fixed duration with geometric decay. The environment computes a rolling forecast, commits only the first transition, and appends it to immutable realized history. Consequently, a later turn cannot rewrite earlier outcomes.
Table 1 shows the current registry. Targets and levers are model-specific; this prevents an action valid in one model from being mistakenly interpreted in another.
Table 1: Structural models exposed through the common environment.
| Key | Structural model | Principal targets | Policy lever(s) |
|---|---|---|---|
| QPM | Quarterly projection | inflation, output gap | monetary, fiscal |
| SW | Smets-Wouters | inflation, output | monetary, fiscal |
| GSW | Galí-SW pandemic | inflation, output, unemployment | monetary, fiscal |
| IRE | Ireland (2004) | inflation, output gap | monetary |
| MVF | U.S. multivariate filter | inflation, output, unemployment | demand stabilizer |
| RBC | Real business cycle | output, consumption | output stabilizer |
3.3 REWARD AND POLICY OBJECTIVE
For target variable with desired value and weight , the planning-mode loss over a simulated horizon is
while control mode applies the same weighted loss to the newly committed state. The implemented normalized improvement is . The bounded reward is
where the last term is an optional terminal penalty under high measured semantic volatility. Because sequential improvement can differ from the same-state causal effect of an action, the confirmatory evaluation will replay matched no-action trajectories from identical initial states. It will report both reward and the underlying economic loss so reward shaping cannot hide poor outcomes.
The quadratic objective is a baseline, not a claim that reward design is settled. Policy costs appear immediately, while stabilization may take several quarters. This can make inaction locally attractive before the policy discovers a successful intervention, a reward geometry similar to the deceptive gradient studied in Continuous Mountain Car (Colas et al., 2018). We therefore vary the forecast horizon, tolerance bands around targets, asymmetric inflation/output penalties (Alex & Anton, 2008), action costs, and the semantic-volatility penalty. Economic loss is always reported separately from shaped reward.
4 SEMANTIC SHIFTS AS ECONOMIC OBSERVATIONS
Let and be consecutive windows of economic discourse. A transformer encoder produces document states and :
A projection feeds named shock heads. Training uses shock regression, semantic-volatility prediction, and temporal consistency. At policy time, this representation or a precomputed semantic embedding is passed through separate actor and critic bridges.
The direction is the main signal: a static embedding identifies what a document discusses, while the difference records how the discussion changed. We interpret it only as a noisy shock observation. Chronological splits prevent future discourse from entering past policy states.
5 CREDIT ASSIGNMENT ACROSS TURNS
The central question is how a delayed reward reaches the decisions that caused it. Suppose an action is a token sequence that the environment executes only at the command boundary. Following Wang & Ammanabrolu (2025), the turn reward is assigned only to the end-of-sequence token:

Figure 3: Paired financial narratives with small but decision-relevant semantic differences. Adapted from the Financial-STS examples of Liu et al. (2024); the examples motivate supervision beyond static topic similarity.
For token i in turn t, PPO then uses
This is why PPO is useful here: although only the command-ending token receives the reward, the critic and GAE can propagate non-zero advantages to preceding tokens. With probability ratio , the actor maximizes
Vanilla trajectory-level GRPO samples G rollouts for a prompt and uses
Every selected token in rollout g receives this same group-relative signal. GRPO can therefore reinforce a successful rollout, but without a learned value function it cannot distinguish which earlier turn caused the final outcome. If , Eq. 9 becomes zero and the whole group supplies no task gradient. When returns differ, stochastic variation can still create a noisy relative ranking. Dense turn rewards, clearly separated terminal returns, or turn-level variants such as MT-GRPO can restore a more informative signal.
Evidence motivating the comparison. Two observations determine our primary comparison. First, PPO’s critic can estimate which parts of a long decision sequence require updating. The multi-turn formulation of Wang & Ammanabrolu (2025) makes the mechanism explicit: value bootstrapping gives tokens preceding a command-ending reward non-zero advantages. On their Qwen-1.5B TextWorld experiments, PPO reaches 59% success versus GRPO’s 2% on w4-o6-q8, and 88% versus 18% on w2-o3-q4. At 7B, PPO still leads GRPO by 72% to 36% on the harder task, while the gap narrows to 98% versus 79% on the simpler task. These are results from the cited TextWorld study, not from our DSGE environment.
Second, GRPO’s main learning signal depends on the return distribution within a group of stochastic rollouts. Equal returns give zero advantage, while incidental variation can make the relative ranking noisy; group-relative estimation can also weight easy and hard prompts unevenly (Yang et al., 2026). We therefore hypothesize that vanilla GRPO becomes less reliable as DSGE transmission lags increase. This is not a universal claim against GRPO. It remains attractive when a terminal verifier sharply separates rollouts, as in the cited SWE-Gym setting, and turn-level variants can restore finer credit (Wang & Ammanabrolu, 2025; Wei et al., 2026). Our matched cloned-state design tests whether this ordering actually transfers to economic control.
Table 2: Data sources and their non-overlapping roles in the evaluation.
| Source | Contents | Role | Primary metrics |
|---|---|---|---|
| DSGE registry | controlled shocks, states, discourse | training and ablations | return, loss, validity |
| COVID-19 release | scenario shocks and G-Cubed outcomes | structural stress test | RMSE, correlation, loss improvement |
| ECB/EA-MPD | meeting and monthly policy surprises | historical event validation | sign, timing, stabilization loss |
Credit assignment is not exploration. A critic can propagate reward along an observed trajectory, but it cannot assign credit to a useful trajectory that the policy never generates. This is especially relevant when training starts from an instruction model without a large domain-specific SFT corpus. We therefore interpret PPO–GRPO as a credit-assignment comparison and separately test exploration initialization. A rule-based controller with randomized perturbations builds a small library of valid, non-trivial trajectories; warm-starting from this library follows the explore-then-optimize logic of GEP-PG (Colas et al., 2018). Replay-based hindsight learning and return redistribution are reserved as extensions because they alter the on-policy objective rather than merely its initialization.
6 DATASETS AND SCENARIO CONSTRUCTION
Controlled scenarios from the six registered DSGE models provide training and mechanistic tests under fixed initial states and shock paths. They cover recession, stagflation, cost-push, productivity, lockdown, labor-supply, and potential-output disturbances. External data are reserved for evaluation.
The McKibbin–Fernando release provides six COVID-19 scenarios, their source shocks, and G-Cubed outcomes (Mckibbin & Fernando, 2020; McKibbin & Fernando, 2023). Because G-Cubed is not our GSW model, a documented adapter maps its productivity, demand, risk, fiscal, morbidity, and mortality quantities to quarterly GSW shock paths; Scenario 6 is marked as approximate. The planned comparison reports output/inflation RMSE and correlation separately from policy-loss improvement against a cloned no-action GSW trajectory.
The ECB evaluation uses meeting-level and monthly Jarociński–Karadi shocks derived from EA-MPD event windows (Altavilla et al., 2019; Jarociński & Karadi, 2020). Only the identified monetary component enters the policy-shock channel; the central-bank-information component remains an observation. The planned metrics are action direction, response timing, and stabilization loss, not agreement with the historical ECB decision.
Controlled scenarios are split by shock family and simulator, semantic data are split chronologically, and both external sources remain locked until model and reward selection are complete.
7 EXPERIMENTAL PROTOCOL
7.1 RESEARCH QUESTIONS AND HYPOTHESES
We evaluate six questions. RQ1: Does grounded RL reduce economic loss relative to the base LLM, random valid actions, no action, and a simple rule-based controller? RQ2: Does PPO outperform trajectory-level GRPO as horizon and scenario difficulty increase? RQ3: Does a temporal semantic signal improve shock recognition and policy choice over static text or state-only control? RQ4: Which reward geometry best represents delayed stabilization rather than immediate target chasing? RQ5: Does a small library of exploratory rule-based trajectories improve learning from the instruction model? RQ6: Do policies learned in one simulator retain value under held-out models and real-event shock paths?
The hypotheses are: (H1) grounded policies outperform linguistic and ungrounded baselines; (H2) PPO's margin over vanilla GRPO grows with delayed feedback and its critic propagates terminal reward to earlier tokens; (H3) directional semantic conditioning improves shock classification and downstream economic loss; (H4) rolling-horizon and tolerance-band rewards produce more informative policy rankings than one-step exact-target loss; (H5) exploration warm-starting improves both action diversity and final economic loss; and (H6) multi-model training improves held-out-simulator robustness but cannot remove model misspecification.
7.2 TRAINING AND BASELINES
The policy is Qwen2.5-1.5B-Instruct (Qwen et al., 2025), quantized to four bits and adapted with LoRA (Hu et al., 2021). PPO uses a separate token-value model, , , policy clip 0.2, and four PPO epochs. GRPO samples four trajectories per prompt, each from a clone of the same economic state, normalizes total returns within the group, applies a 0.2 ratio clip, and uses a reference-policy KL penalty. Each episode has four decision turns and an eight-period forecast horizon. Confirmatory runs will retain seeds, scenario order, states, actions, per-turn rewards, economic losses, parse failures, and checkpoints.
Baselines are: (i) no intervention; (ii) uniformly sampled valid action; (iii) the untuned instruction model; (iv) a model-specific linear stabilization rule; (v) GRPO; and (vi) PPO. We additionally report state-only PPO, static-text PPO, temporal-semantic PPO, and an oracle-shock PPO upper bound. RLOO and MT-GRPO are extensions, separated from the core table unless their implementations pass the same rollout-accounting tests.
We update LoRA parameters throughout the compact language model rather than training only an action-classification head. This choice makes the transfer test meaningful: success requires the language policy to reuse its learned mapping from economic observations and discourse to actions under a different set of structural equations. It does not imply that the model recovers those equations or identifies causal shocks from text.
The pipeline therefore differs from full preference-based RLHF: general instruction tuning supplies the initialization, the DSGE loss replaces a learned reward model, and LoRA PPO or GRPO performs the task update. For the proposed warm-start condition, a dataset-to-trajectory translator will record each source shock, converted path, state, legal action, next state, and horizon outcome. Randomized rule-based policies will populate a small trajectory library; direct-RL runs will omit it. This tests whether better initial trajectory coverage is required in addition to simulator feedback.
7.3 ABLATIONS, METRICS, AND CONTROLS
The predeclared ablations isolate credit assignment (PPO versus GRPO), horizon (one step versus 4/8/12 quarters), reward geometry (quadratic versus tolerance-band or asymmetric), exploration (direct RL versus rule-based warm-start), semantics (none, static, directional, or oracle), actor/critic conditioning, and single- versus multi-model training. This separation prevents an aggregate score from attributing an exploration or reward-design effect to the optimizer.
Primary outcomes are discounted return and target-weighted economic loss. Secondary outcomes are policy energy, worst-case loss, action validity, return variance, zero-advantage group frequency, shock-label macro-F1, and calibration of predicted semantic volatility. Each comparison uses identical shock paths and initial states. The confirmatory tables will report means, standard errors, and paired bootstrap confidence intervals across seeds and scenarios. Model selection will use validation scenarios only; external events will be evaluated once after selection.
8 EMPIRICAL RESULTS
We organize the evidence in the same order as the causal questions in the protocol: simulator validity, algorithmic credit assignment, reward geometry, semantic conditioning, and transfer. Previously recorded simulator checks and the calibration diagnostic retain their measured values. Tables for the confirmatory policy-learning runs use TBD cells until their logged artifacts are inserted; these cells are not numerical claims.
8.1 SIMULATOR VALIDATION
We first removed the language model and tested the simulator interface directly on the linear QPM and nonlinear SW models. A ten-case suite covered isolated shocks, combined shocks, persistence, and mean reversion. For a unit nominal interest-rate shock in the QPM, the initial simulated values were , , and annualized inflation ; one quarter later they moved to 13.2724, 11.0044, and 5.5257. In the nonlinear SW multiple-shock test, output, inflation, and the policy rate moved from the steady state to
Table 3: Representative outputs from the ten-case simulator verification suite. Values are reproduced from the recorded QPM and SW verification output.
| Model/test | Period | Simulated variables | ||
|---|---|---|---|---|
| QPM, | ||||
| Initial | 16.010000 | 8.461200 | 7.250700 | |
| Next quarter | 13.272388 | 11.004444 | 5.525716 | |
| SW, multiple shocks | ||||
| Initial | 0.000000 | 0.000000 | 0.000000 | |
| Next quarter | -0.035428 | -0.007073 | 0.020122 | |
Table 4: Confirmatory PPO–GRPO comparison. Values will be inserted from saved rerun artifacts; lower economic loss and higher return are better.
| Horizon | Method | Return | Econ. loss | Valid action | Credit diagnostic |
|---|---|---|---|---|---|
| Short | Base LLM | TBD | TBD | TBD | |
| Short | GRPO | TBD | TBD | TBD | TBD |
| Short | PPO | TBD | TBD | TBD | TBD |
| Long | Base LLM | TBD | TBD | TBD | |
| Long | GRPO | TBD | TBD | TBD | TBD |
| Long | PPO | TBD | TBD | TBD | TBD |
after one quarter. These responses established that shocks reached the intended equations and that the wrapper returned non-trivial transitions.
8.2 MATCHED PPO–GRPO COMPARISON
The primary comparison holds the model, scenarios, initial states, action schema, number of decision turns, and total environment interactions fixed. Only the advantage estimator changes. The directional hypothesis is that PPO's advantage grows as the forecast and reward delay increase: its critic can assign different values within a trajectory, whereas vanilla GRPO relies on return differences among complete cloned rollouts. We test the mechanism directly by reporting the fraction of action tokens with non-zero advantage for PPO and the fraction of zero-variance rollout groups for GRPO.
Our interpretation is conditional on these diagnostics. A PPO improvement accompanied by broader non-zero token advantages supports the temporal-credit explanation. A GRPO deficit accompanied by frequent equal-return groups supports the group-signal explanation. A difference without either diagnostic would not establish the proposed mechanism.
8.3 SEMANTIC, REWARD, EXPLORATION, AND TRANSFER ABLATIONS
The semantic ablation progresses from economic state only, to a static text embedding, to the directional shift , and finally to oracle shock labels. Static text tests whether topic information is sufficient; the directional condition tests the paper's central claim that the movement of discourse is the informative quantity; the oracle condition bounds loss caused by semantic measurement error. Conditioning only the actor is also compared with conditioning both actor and critic.
The reward ablation crosses short and long forecast horizons with quadratic, tolerance-band, and direction-dependent losses. The exploration ablation compares direct RL from Qwen2.5-1.5B-Instruct with a warm-start library generated by randomized rule-based policies. The latter does not replace RL: it tests whether first discovering economically useful trajectories improves subsequent policy-gradient optimization. Finally, single-simulator training is compared with multi-model training on held-out structural models.
Table 5: Directional summary of the confirmatory ablations. Numeric estimates and confidence intervals remain to be populated from the rerun.
| Question | Primary contrast | Hypothesized direction |
|---|---|---|
| Semantic shift | directional vs. static text | higher shock F1; lower loss |
| Reward horizon | rolling vs. one-step | fewer policy-ranking reversals |
| Reward geometry | tolerance band vs. exact target | greater target-zone occupancy |
| Exploration | warm-start vs. direct RL | more useful actions; lower final loss |
| Transfer | multi-model vs. single-model | lower held-out-model loss |
Table 6: Calibration grid search from the initial DSGE experiments.
| Scenario / action | Magnitude | Weighting | Base loss | Action loss | Δ | Direction |
|---|---|---|---|---|---|---|
| Recession / cut | 0.05 | Standard | 216 | 219 | -3.0 | worse |
| Recession / cut | 0.50 | Standard | 216 | 248 | -32.0 | worse |
| Stagflation / hike | 0.05 | Hawk | 334 | 333 | +1.6 | better |
| Stagflation / hike | 0.50 | Standard | 369 | 378 | -9.6 | worse |
| Cost-push / hike | 0.25 | Standard | 2664 | 2996 | -331.8 | worse |
8.4 REWARD-HORIZON CALIBRATION DIAGNOSTIC
We isolate reward design from language-model learning by replacing the policy with manually selected actions. Table 6 reports the measured base and action losses under the original short-horizon objective. Negative means that the action increased that particular objective; it does not by itself establish that the intervention is economically invalid over a longer horizon. The sensitivity of the sign to action magnitude and target weights is the reason horizon and reward geometry are varied in the confirmatory protocol.
We call this a reward-horizon inversion: an intervention with a plausible long-run stabilizing interpretation can receive a worse short-horizon score. Under stagflation, even the sign of the comparison depends on the relative inflation and output weights. This is a property of the evaluated objective, not evidence for or against a particular RL optimizer. It motivates rolling forecast loss, matched no-action counterfactuals, persistent actions, and the predeclared horizon and reward-geometry ablations.
9 EXTENSIONS AND RESEARCH DIRECTIONS
The main experiments keep PPO, GRPO, the action schema, and environment interactions comparable. The next extensions address the two remaining problems: discovering useful trajectories and locating delayed economic credit.
Exploration before optimization. The rule-based warm start is a small goal-exploration stage. Randomized Taylor-style controllers search for trajectories that improve on matched no-action paths; policy-gradient training then concentrates probability on the useful region (Colas et al., 2018). The same archive could support a compact task-specific SFT stage. Curiosity may widen coverage (Pathak et al., 2017), but novelty must be restricted to economically relevant state changes.
Replay and off-policy learning. A DSGE transition can be reproduced from the simulator version, calibration, initial state, action, and shock path. This makes rare successful trajectories reusable. An off-policy extension based on SAC-GLAM would use an action-conditioned critic , entropy regularization, and hindsight goals such as target bands reached by the trajectory (Gaven et al., 2026; Andrychowicz et al., 2018). Replay records must retain model, calibration, and reward hashes so that stale returns are not reused under a different environment.
Delayed reward and structural intent. RUDDER-style decomposition could move long-horizon return toward the decisions that produced it (Arjona-Medina et al., 2019). It must be compared with simpler rolling rewards, tolerance bands, and asymmetric penalties using held-out economic loss. A later interface could also let the model state a policy intent, regime, direction, intensity, and duration. A deterministic compiler would map that intent to legal simulator shocks, while trace-state observations expose recent actions, active shock schedules, forecasts, and violations (Ma et al., 2024). The simulator would retain numerical authority.
10 LIMITATIONS, SAFETY, AND REPRODUCIBILITY
A DSGE-grounded answer is conditional on equations, calibration, measurement, and the admissible action space. It is not a policy recommendation for a real government or central bank. Model uncertainty is therefore a first-class output: we report results per simulator and worst-case performance rather than collapsing disagreement into a single authoritative score. External shock mappings are approximate and will be released with units, signs, and scaling choices. Text corpora can reflect media attention and institutional bias; chronological evaluation limits leakage but not representation error.
For full-scale training, the simulator layer must pass replay invariance, lag-state continuity, no-action counterfactual equality, shock-sign, and unit tests. The semantic policy must also pass a behavior-policy log-probability replay test before PPO updates are interpreted. These checks matter because a syntactically successful simulation can still implement the wrong transition. On the available RTX 2080 Ti (11GB), the 1.5B actor fits with four-bit LoRA; PPO's separate critic is the tighter memory constraint, so rollouts and updates are serialized and semantic embeddings are precomputed. We use FP16 on this hardware and reserve larger-model scaling for separate compute.
Code and experimental configurations are available at https://github.com/vasudeywos/Grounding_LLM_in_DSGE_Simulators_for_Policy_Generation_and_Forecasting.git.
Without task-specific SFT, on-policy RL can refine only behaviors explored by the instruction model; the warm-start ablation measures, but does not eliminate, this limitation.
11 CONCLUSION
We treat policy generation as repeated interaction with an explicit economic model. The contribution is a common control interface, not a new DSGE model: Snowdrop remains the numerical backend. The language model chooses a bounded action, the simulator determines its conditional consequences, and the next decision starts from the committed economic state. A temporal encoder adds the direction of discourse change as a noisy shock observation.
The experiment design separates the main claims. PPO versus GRPO tests multi-turn credit assignment; reward and horizon ablations test the economic objective; trajectory warm starts test exploration; and semantic and cross-simulator ablations test whether the policy uses directional language and transfers across structural assumptions. Pandemic and ECB shock paths provide historically anchored evaluation. The final criterion is not whether a policy sounds convincing, but whether it improves clearly reported economic outcomes under explicit model assumptions.
REFERENCES
Cukierman Alex and Muscatelli Anton. Nonlinear taylor rules and asymmetric preferences in central banking: Evidence from the united kingdom and the united states. The B.E. Journal of Macroeconomics, 8(1):1–31, February 2008. doi: 10.2202/1935-1690.1488. URL https://ideas.repec.org/a/bpj/bejmac/v8y2008iln7.html.
Carlo Altavilla, Luca Brugnolini, Refet S. Gù⁄4rkaynak, Roberto Motto, and Giuseppe Ragusa. Measuring euro area monetary policy. Journal of Monetary Economics, 108(C):162–179, None 2019. doi: 10.1016/j.jmoneco.2019.08.016. URL https://ideas.repec.org/a/eee/moneco/v108y2019icp162-179.html.
Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay, 2018. URL https://arxiv.org/abs/1707.01495.
Jose A. Arjona-Medina, Michael Gillhofer, Michael Widrich, Thomas Unterthiner, Johannes Brandstetter, and Sepp Hochreiter. Rudder: Return decomposition for delayed rewards, 2019. URL https://arxiv.org/abs/1806.07857.
Thomas Carta, Clément Romac, Thomas Wolf, Sylvain Lamprier, Olivier Sigaud, and Pierre-Yves Oudeyer. Grounding large language models in interactive environments with online reinforcement learning, 2026. URL https://arxiv.org/abs/2302.02662.
Cédric Colas, Olivier Sigaud, and Pierre-Yves Oudeyer. Gep-pg: Decoupling exploration and exploitation in deep reinforcement learning algorithms, 2018. URL https://arxiv.org/abs/1802.05054.
Felix Drinkall, Stefan Zohren, Michael McMahon, and Janet B. Pierrehumbert. Stories that (are) move(d by) markets: A causal exploration of market shocks and semantic shifts across different partisan groups, 2025. URL https://arxiv.org/abs/2502.14497.
Loris Gaven, Clement Romac, Thomas Carta, Sylvain Lamprier, Olivier Sigaud, and Pierre-Yves Oudeyer. Sac-glam: Improving online rl for llm agents with soft actor-critic and hindsight relabeling, 2026. URL https://arxiv.org/abs/2410.12481.
Alexei Goumilevski and James Otterson. Snowdrop: Python package for dsge modeling. Journal of Open Source Software, 10(112):8197, 2025. doi: 10.21105/joss.08197. URL https://doi.org/10.21105/joss.08197.
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models, 2021. URL https://arxiv.org/abs/2106.09685.
Peter N. Ireland. Technology shocks in the new keynesian model. The Review of Economics and Statistics, 86(4):923–936, November 2004. doi: None. URL https://ideas.repec.org/a/tpr/restat/v86y2004i4p923-936.html.
Marek Jarociński and Peter Karadi. Deconstructing monetary policy surprises—the role of information shocks. American Economic Journal: Macroeconomics, 12(2):1–43, April 2020. doi:10.1257/mac.20180090. URL https://www.aeaweb.org/articles?id=10.1257/mac.20180090.
Jiaxin Liu, Yi Yang, and Kar Yan Tam. Beyond surface similarity: Detecting subtle semantic shifts in financial narratives, 2024. URL https://arxiv.org/abs/2403.14341.
Pingchuan Ma, Tsun-Hsuan Wang, Minghao Guo, Zhiqing Sun, Joshua B. Tenenbaum, Daniela Rus, Chuang Gan, and Wojciech Matusik. Llm and simulation as bilevel optimizers: A new paradigm to advance physical scientific discovery, 2024. URL https://arxiv.org/abs/2405.09783.
Kohsei Matsutani, Shota Takashiro, Gouki Minegishi, Takeshi Kojima, Yusuke Iwasawa, and Yutaka Matsuo. RI squeezes, sft expands: A comparative study of reasoning llms, 2026. URL https://arxiv.org/abs/2509.21128.
Warwick Mckibbin and Roshen Fernando. Global macroeconomic scenarios of the covid-19 pandemic. Technical report, 06 2020.
Warwick McKibbin and Roshen Fernando. The global economic impacts of the covid-19 pandemic. Economic Modelling, 129(C):None, None 2023. doi: 10.1016/j.econmod.2023.106551. URL https://ideas.repec.org/a/eee/ecmode/v129y2023ics0264999323003632.html.
Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. Training language models to follow instructions with human feedback, 2022. URL https://arxiv.org/abs/2203.02155.
Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction, 2017. URL https://arxiv.org/abs/1705.05363.
Qwen, :, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Lin, Tianhao Li, Tianyi Tang, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zihan Qiu. Qwen2.5 technical report, 2025. URL https://arxiv.org/abs/2412.15115.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms, 2017. URL https://arxiv.org/abs/1707.06347.
John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation, 2018. URL https://arxiv.org/abs/1506.02438.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. Deepseekmath: Pushing the limits of mathematical reasoning in open language models, 2024. URL https://arxiv.org/abs/2402.03300.
Frank Smets and Rafael Wouters. Shocks and frictions in us business cycles: A bayesian dsge approach. American Economic Review, 97(3):586–606, June 2007. doi: 10.1257/aer.97.3.586. URL https://ideas.repec.org/a/aea/aecrev/v97y2007i3p586-606.html.
Ruiyi Wang and Prithviraj Ammanabrolu. A practitioner's guide to multi-turn agentic reinforcement learning, 2025. URL https://arxiv.org/abs/2510.01132.
Quan Wei, Siliang Zeng, Chenliang Li, Zhongruo Wang, William Brown, Oana Frunza, Wei Deng, Anderson Schneider, Yuriy Nevmyvaka, Yang Katie Zhao, Alfredo Garcia, and Mingyi Hong. Reinforcing multi-turn reasoning in llm agents via fine-grained reward structure and credit assignment, 2026. URL https://arxiv.org/abs/2505.11821.
Fengkai Yang, Zherui Chen, Xiaohan Wang, Xiaodong Lu, Jiajun Chai, Guojun Yin, Wei Lin, Shuai Ma, Fuzhen Zhuang, Deqing Wang, Yaodong Yang, Jianxin Li, and Yikun Ban. Your group-relative advantage is biased, 2026. URL https://arxiv.org/abs/2601.08521.
A REPRODUCIBILITY CHECKLIST
An experiment is complete only when the following artifacts are retained: the git commit, Python and CUDA environment, simulator YAML hashes, dataset versions, seeds, prompts, adapter and critic checkpoints, per-token behavior log probabilities, per-turn state/action/reward records, counterfactual losses, and the script that regenerates every table. Confirmatory aggregates will be populated through the artifact-generation script rather than manual editing.
B ACTION SCHEMA
The current control action is constrained to the following logical schema:
{"lever": <model-specific lever>, "magnitude": <bounded signed float>}
Only these parsed fields affect the transition. Confirmatory runs will retain the raw generation for auditability, but it receives no direct reward. This prevents eloquence from changing the simulated outcome.
C RESULT AGGREGATION PROTOCOL
For each algorithm and seed, evaluation will begin from the same serialized state and shock path. Raw episode records will be exported before aggregate statistics are computed in a fresh process. A result cell will be populated only when its records, configuration, and checkpoint are present. Failed runs will remain in validity and failure-rate metrics.