AgriManager: A Framework and Benchmark for LLM-RL Generalization in Agricultural Management
Organizations: University of Illinois Urbana-Champaign · Corteva Agriscience
Abstract
Agricultural management is heterogeneous along two axes. The first is distributional shift within a fixed task interface: weather, crops, and prices vary across years and locations while sensors, actions, and objective stay fixed. The second is structural shift across interfaces: different farms expose different observed variables, available actions, and management objectives. We formalize the second axis as schema shift: variation in the policy-facing schema between training and deployment. We test whether LLM-RL generalizes across both axes with AgriManager, to our knowledge the first framework that trains LLM policies with RL across multiple process-based crop simulators, unifying DSSAT, WOFOST, and Cycles. We design a three-tier generalization ladder: Tier 1 within-schema distributional shift, Tier 2 single-axis schema shift along , Tier 3 compositional schema shift across simulators, all scored on a frozen held-out test suite with three training seeds per method. Within fixed schemas, Qwen3-4B trained by RL with explicit reasoning exceeds neural-network PPO trained with the same interaction budget; without reasoning, training stalls near no-action where the reward penalizes input use. Under single-axis schema shift, transfer needs decision-critical state, results are consistent with joint action-menu coverage, and with reasoning a policy trained on yield alone transfers to unseen objectives. Under compositional schema shift, single-source training mostly hurts zero-shot transfer across simulators, and a unified policy trained only on other combinations of the same components recovers about 86% of the gain of a specialist trained on the target combination on DSSAT and stays below the specialists on the WOFOST and Cycles profit targets. Project page: https://agrimanager-framework.github.io
Figures & tables
| NN-RL | prompt- | multi- | schema | multi-obj + | |
|---|---|---|---|---|---|
| training | LLM-RL | simulator | shift | multi-env | |
| gym-DSSAT ( Gautron et al., 2022 ) | |||||
| WOFOSTGym ( Solow et al., 2025 ) | |||||
| CyclesGym ( Turchetta et al., 2022 ) | |||||
| CropGym ( Overweg et al., 2021 ) | |||||
| Wu et al. (2024a) |
| Setting | Varies | Train | Test | Objective | Scenarios |
|---|---|---|---|---|---|
| Tier 1: within-schema distributional shift | |||||
| weather-regime | weather | normal weather | drought, wet, hot, cold | profit | / |
| crop-variety | crop variety | 4 / 8 / 16 seen crops | 4 held-out crops | profit | / |
| price-regime | prices | non-dominant band | high-corn, high-soy | gross revenue | / |
| Tier 2: single-axis schema shift | |||||
| observation-schema | observation | full schema | subset, rename, superset, anonymized | profit | / |
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Simulator | Train | Validation (named groups) | Test (named groups) |
|---|---|---|---|---|
| T1.1 weather-regime | WOFOST | 1600 per crop | per crop: id, drought, wet, hot, cold | per crop: id, drought, wet, hot, cold |
| T1.2 cross-crop (4ID) | WOFOST | ID + OOD (= 768) | seen + held-out (= 1024), shared by 4ID/8ID/16ID | |
| T1.2 cross-crop (8ID) | WOFOST | ID + OOD (= 768) | shared T1.2 suite | |
| T1.2 cross-crop (16ID) | WOFOST | ID + OOD (= 768) | shared T1.2 suite | |
| T1.3 price-regime | Cycles | 1600 | paired: id_test, high_corn, high_soybean | paired, same regimes |
| T2.1 observation-schema | WOFOST | 1600 | shared scenarios: S1, S2a–d, S3, S4, S5 | shared scenarios, same variants |
| Transfer | Action menu | Objective terms | Site and weather | Decisions |
|---|---|---|---|---|
| WOFOST DSSAT | discrete levels free amounts; N and water may combine | unchanged | weather pool one DSSAT site | |
| WOFOST Cycles | water removed; N levels | water term dropped | weather pool Rock Springs years | |
| DSSAT WOFOST | free amounts discrete levels; one input per decision | unchanged | one DSSAT site weather pool | |
| DSSAT Cycles | water removed; free amounts 11 N levels | water term dropped | one DSSAT site Rock Springs years | |
| Cycles WOFOST | water added; N levels | water term added | Rock Springs years weather pool | |
| Cycles DSSAT | water added; 11 N levels free amounts | water term added | Rock Springs years one DSSAT site |
| Setting | Changed block | Delta relative to the template above |
|---|---|---|
| T1.1 weather-regime | None | Same WOFOST crop-growth schema; only latent weather regime changes. |
| T1.2 cross-crop traits | Context and observation | Crop name and trait descriptor change; profit objective and action menu stay fixed. |
| T1.3 price-regime | Task and objective context | Cycles planning prompt replaces the crop-growth prompt; gross-revenue objective uses ID/high-corn/high-soybean prices. |
| T2.1 observation schema | Observation | Observation fields are dropped, renamed, anonymized, or extended; objective and actions stay fixed. |
| T2.2 action menu | Action | Menu switches among lnpkw , lnpk , lnw , ln , and lw ; unavailable action families are stated explicitly. |
| T2.3 reward formulation | Objective | Objective block switches among yield, profit, water-stewardship, and nutrient-stewardship definitions. |
| LLM-RL (GRPO on VeRL) | |
|---|---|
| backbone | Qwen3-4B-Instruct-2507 |
| precision | bfloat16, FSDP 1 |
| optimizer | AdamW, lr |
| advantage | GRPO, per-group std norm |
| PPO clip | ; inner epochs |
| mini-batch | ; entropy ; KL off |
| Asset | Use | Version | License |
|---|---|---|---|
| DSSAT-CSM [ Jones et al., 2003 ] | crop simulator | dssat-pdi 4.8.0.24_2, data v4.8.0.28 | BSD-3-Clause |
| gym-DSSAT [ Gautron et al., 2022 ] | Gym wrapper for DSSAT | gym_dssat_pdi 63f2c52 ( gym-dssat 0.0.8) | BSD-3-Clause |
| WOFOST / PCSE [ de Wit et al., 2019 ] | crop simulator | modified PCSE 5.5.6 inside WOFOSTGym | EUPL 1.1 or later |
| WOFOSTGym [ Solow et al., 2025 ] | Gym wrapper for WOFOST | upstream 281f0af plus our patch (fork 253cf54) | MIT |
| Cycles [ Kemanian et al., 2024 ] | crop simulator | v0.12.9-alpha release binary | CC BY-NC-ND 4.0 |
| CyclesGym [ Turchetta et al., 2022 ] | Gym wrapper for Cycles | upstream 44e7dbc plus our patch (fork 2eb8758) | BSD-3-Clause |
| Target | Think | No-think | Untrained (think / no-think) | No-action | Reference | Gap |
|---|---|---|---|---|---|---|
| T1.1 weather-regime (profit-equivalent t/ha; not normalized) | ||||||
| chickpea id | / | |||||
| chickpea drought | / | |||||
| chickpea wet | / | |||||
| chickpea hot | / | |||||
| chickpea cold | / | |||||
| Target | Think | No-think | Untrained (think / no-think) | No-action | Reference | Gap |
|---|---|---|---|---|---|---|
| T2.1 observation schema | ||||||
| S1 | / | |||||
| S2a | / | |||||
| S2b | / | |||||
| S2c | / | |||||
| S2d | / | |||||
| Crop | Irrig. | Trigger | |||
|---|---|---|---|---|---|
| default | 60 | 20 | 20 | 80 | 0.31 |
| barley | 90 | 20 | 20 | 80 | 0.31 |
| cotton | 80 | 20 | 40 | 120 | 0.31 |
| maize | 120 | 20 | 20 | 100 | 0.31 |
| millet | 60 | 20 | 20 | 60 | 0.31 |
| potato | 120 | 40 | 80 | 180 | 0.37 |
| Family A ( lnpkw , lnpk ) | Family B ( lnpk , lw ) | ||||
|---|---|---|---|---|---|
| Test menu | Think | Masked PPO | Think | Masked PPO | Target-trained PPO |
| lnpkw | |||||
| lnw | |||||
| ln | |||||
| lw | |||||
| Target | Think (per seed) | No-think (per seed) | Untrained (think / no-think) |
|---|---|---|---|
| T1.1 weather-regime (gain over no-action, profit-equivalent t/ha) | |||
| chickpea id | / | ||
| chickpea drought | / | ||
| chickpea wet | / | ||
| chickpea hot | / | ||
| chickpea cold | / | ||
| Target | Think (per seed) | No-think (per seed) | Untrained (think / no-think) |
|---|---|---|---|
| T2.1 observation schema | |||
| S1 | / | ||
| S2a | / | ||
| S2b | / | ||
| S2c | / | ||
| S2d | / | ||
| Target | Think | PPO n1 | PPO n8 | A2C | DQN |
| T1.1 weather-regime | |||||
| chickpea id | – | – | |||
| chickpea drought | – | – | |||
| chickpea wet | – | – | |||
| chickpea hot | – | – | |||
| chickpea cold | – | – | |||
| Seen crops | Held-out crops | |||||||
| Policy | cotton | millet | rapeseed | rice | barley | groundnut | pigeonpea | seed onion |
| No-action | ||||||||
| Reference | ||||||||
| Untrained think | ||||||||
| Untrained no-think | ||||||||
| Think 4ID | ||||||||
| Trained | Untrained | |||
|---|---|---|---|---|
| Setting | think | no-think | think | no-think |
| T1.1 weather-regime | 0.000 (0.000) | 0.000 (0.000) | 0.003 (0.005) | 0.000 (0.000) |
| T1.2 crop-variety | 0.001 (0.006) | 0.000 (0.000) | 0.000 (0.000) | 0.000 (0.000) |
| T1.3 price-regime | 0.000 (0.000) | 0.000 (0.000) | 0.000 (0.000) | 0.000 (0.000) |
| T2.1 observation | 0.000 (0.001) | 0.000 (0.000) | 0.077 (0.438) | 0.000 (0.000) |
| T2.2 action menu | 0.000 (0.000) | 0.000 (0.000) | 0.003 (0.006) | 0.000 (0.000) |
| Cell | Think | No-think |
|---|---|---|
| T1.1 chickpea | 200 / 200 / 200 | 18 / 60 / 124 |
| T1.1 potato | 200 / 200 / 200 | 14 / 17 / 27 |
| T1.2 4ID | 200 / 200 / 200 | 18 / 33 / 13 |
| T1.2 8ID | 200 / 200 / 200 | 13 / 13 / 134 |
| T1.2 16ID | 200 / 200 / 200 | 21 / 160 / 19 |
| T1.3 (seeds r1 / r2 / r3) | 141 / 154 / 191 | 54 / 43 / 110 |
| Unified | Specialist | Untrained | Unified | ||
|---|---|---|---|---|---|
| Held-out tuple | think | no-think | think | think | specialist |
| WOFOST lnw profit | ( ) | ||||
| DSSAT profit | ( ) | ||||
| Cycles profit | ( ) | ||||
| WOFOST lnpkw nutrient | ( ) | ||||
| Think | No-think | ||||
|---|---|---|---|---|---|
| Backbone | Optimizer | peak step | loss | peak step | loss |
| Qwen3-4B-Instruct | GRPO | 800 | 0.00 | 200 | 1.32 |
| Qwen3-4B-Instruct | DrGRPO | 800 | 0.00 | 410 | 0.33 |
| Qwen3-4B-Instruct | PPO | 500 | 0.02 | 50 | 0.31 |
| Qwen2.5-3B-Instruct | GRPO | 740 | 0.02 | 360 | 1.53 |
| Tier | Setting | Supported finding |
|---|---|---|
| 1 | weather-regime | Think is above the untrained model in every seed and split and above PPO at matched updates, A2C and DQN (a single-seed PPO with eight gradient passes is higher on nine of ten targets; Appendix F.2 ); no-think stays near no-action. |
| 1 | crop-variety | Think is above the untrained model and PPO n1 on every coverage and split (PPO with eight gradient passes, three seeds, is ahead at 4ID and 8ID; Appendix F.2 ); no-think stays near no-action. |
| 1 | price-regime | Think and no-think have similar means (no observed advantage for reasoning), both above PPO n1 and the untrained model. |
| 2 | observation-schema | Transfer holds under renamed, anonymized, added, or dropped secondary fields; without the resource state, RL training leaves think below the untrained model on average (one of three seeds above it) in this ablation and training setup. |
| 2 | action-menu | Family A gains over the untrained model on every test menu in every seed, Family B only on its own training menu lw ; consistent with joint action coverage. |
| 2 | reward-formulation | A think policy trained on yield alone transfers to three unseen objectives, and multi-objective training adds a modest margin; multi-objective no-think training is unstable. |
Generalization in RL
Reinforcement learning generalization studies how agents transfer learned behavior to unseen tasks, environments, dynamics, and observations.
See all 98 papers