Manuscript Offprint

arXiv:2610.01128

Grounding Large Language Models in DSGE Simulators for Policy Generation and Forecasting

Aditya Dubey, Namah Gupta, Vinti Agarwal

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

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.

  1. 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.

  2. We formulate semantic-shift conditioning with chronological data splits and named shock heads.

  3. 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.

  4. 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.

  5. We separate algorithm, reward, exploration, semantic, and cross-simulator effects through targeted ablations and external-event validation.

References (29)