A Framework and Benchmark for LLM-RL Generalization in Agricultural Management
Website · Paper · Models & Data · Training logs · Docs
Farms differ in what a manager can observe, which actions are available, and which objective counts. AgriManager studies whether one language-model policy trained with reinforcement learning can generalize across these differences. We call a change in the observation, action or objective schema between training and deployment a schema shift, written Σ = (ΣO, ΣA, ΣR), and study it alongside the familiar distribution shift in weather, crops and prices.
- Framework. Three process-based crop simulators (DSSAT, WOFOST and Cycles) behind one text interface. The schema is written in the prompt, so a single policy can read a new observation set, action menu or objective. RL training runs on VeRL (GRPO by default; DrGRPO and PPO also tested) with Qwen and Llama backbones.
- Benchmark. Eight settings in three tiers: Within Schema (weather, crop, price), Single-Axis Schema (observation, action menu, objective) and Compositional Schema (cross-simulator transfer, unified policy). Every setting has a frozen held-out test suite with manifests, generation configs, seeds and disjointness audits.
- Unified training and evaluation. LLM agents and neural-network policies (PPO, A2C, DQN, MaskablePPO) are trained in one framework on the same simulators, and every policy, scripted baselines included, is scored on the same held-out scenarios and reported in the same tables. A new policy of any kind can be compared directly with everything in the paper.
This repository accompanies the NeurIPS 2026 Evaluations and Datasets track paper AgriManager: A Framework and Benchmark for LLM-RL Generalization in Agricultural Management (arXiv:2611.28844).
Every checkpoint scored in the paper, its training run, and the test split it was scored on. Models and datasets are on the AgriManager-Framework Hugging Face organization; training curves are on Weights & Biases.
| Tier | Setting | Models | Training curves | Test set |
|---|---|---|---|---|
| Tier 1 · Within Schema | T1.1 Weather regime | Models | Training curves | Test set |
| T1.2 Crop variety | Models | Training curves | Test set | |
| T1.3 Price regime | Models | Training curves | Test set | |
| Tier 2 · Single-Axis Schema | T2.1 Observation schema | Models | Training curves | Test set |
| T2.2 Action menu | Models | Training curves | Test set | |
| T2.3 Objective | Models | Training curves | Test set | |
| Tier 3 · Compositional Schema | T3.1 Cross-simulator transfer | Models | Training curves | Test set |
| T3.2 Unified policy | Models | Training curves | Test set | |
| Exploratory | Other backbones and RL algorithms | Models | Training curves | — |
Per-run results (every scored episode) are in the schema-results-* datasets of the
Datasets collection; the tables behind every
number in the paper are in results/tables/.
| I want to | Read |
|---|---|
| Install the code and simulators | docs/getting-started/install.md |
| Run something in five minutes on a CPU | docs/getting-started/quickstart.md |
| Understand the eight settings | docs/benchmark/README.md |
| Score my own policy on the held-out test suite | docs/guides/evaluation.md |
| Reproduce a table or figure of the paper | docs/guides/reproduce.md |
| Know how the test suite was built and audited | docs/benchmark/test_suite.md |
| Download released checkpoints and data | docs/release/models_and_data.md |
| Read the known limitations | docs/faq.md |
The full documentation index is docs/README.md.
git clone --recursive https://github.com/AgriManager-Framework/AgriManager.git
cd AgriManager
conda create -n agrimanager python=3.12 -y # or: uv venv --seed -p 3.12 && source .venv/bin/activate
conda activate agrimanager
bash install.sh --cpu # CPU only: WOFOST + Cycles, baselines, dataset building, tests
bash install.sh --gpu # full stack for GRPO training and model scoring (CUDA 12.8)Both modes pin every dependency: the VeRL submodule, WOFOST-Gym and CycleGym at
fixed commits (cloned into ../AgriManagerExternal/), and the Python packages
(requirements/cpu.txt with requirements/locks/agrimanager-py312-cpu.lock.txt,
or requirements/locks/agrimanager-py312-cu128.lock.txt).
install.sh does not build the DSSAT runtime; follow
docs/getting-started/install_dssat.md
for DSSAT-backed settings. Hardware needs and environment variables are listed
in docs/getting-started/install.md.
bash smoke_tests/wofost_gym/run_cpu_quickstart.shThis builds eight maize scenarios from the public maize weather pool and scores
two scripted policies on them (no-action and the scripted agronomic reference).
It needs install.sh --cpu but no GPU and no model download. See
docs/getting-started/quickstart.md for
the expected output and the next steps.
agrimanager/ Python package
├── adapter/ VeRL adapter: agent loop, interactions, trainer, reward
├── checkpoint/ publishing checkpoints and scoring them on the test suite
├── env/ environment adapters (wofost_gym, gym_dssat, cycles_gym)
├── model_interface/ provider configs, models, server helpers
├── nn_ppo/ numeric baselines (PPO, MaskablePPO, A2C, DQN)
└── rollout/ batched rollouts and scripted baselines
entrypoints/ stable commands: dataset build, train, eval, tools
experiments/ one directory per benchmark setting, with fixed run scripts
smoke_tests/ small end-to-end checks per simulator
integrations/ AgriManager-side tools for external simulators
analysis/test_suite/ scripts that turn scored test-suite runs into the paper's tables
results/ the paper's tables (CSV), figures and the list of scored checkpoints
tests/ unit tests (pytest)
docs/ documentation
requirements/ pinned dependencies (CPU list, CPU and CUDA lock files)
install.sh environment bootstrap (--cpu | --gpu)
If you use AgriManager, please cite the paper. A machine-readable entry is in CITATION.cff.
@inproceedings{gui2026agrimanager,
title = {AgriManager: A Framework and Benchmark for {LLM-RL} Generalization
in Agricultural Management},
author = {Gui, Chi and Zheng, Junwen and Nigam, Ritwik and Yang, Qianlan and
Lang, Meagan and Dongre, Vardhan and Barr, Jeremiah and
Wang, Yu-Xiong and Adve, Vikram S.},
booktitle = {Advances in Neural Information Processing Systems (NeurIPS),
Evaluations and Datasets Track},
year = {2026},
eprint = {2611.28844},
archivePrefix = {arXiv},
}Please also cite the simulators and frameworks AgriManager builds on; see docs/reference/upstream_citations.md.
The code is licensed under the Apache License 2.0 (see also NOTICE). The datasets we publish are licensed under CC BY 4.0, and the released model weights under Apache-2.0, except checkpoints fine-tuned from a base model whose license says otherwise (Llama 3.2, Qwen2.5-3B). Simulators and wrappers are not vendored; each keeps its own license, listed in THIRD_PARTY_NOTICES.md. The native Cycles simulator binary that CycleGym downloads at install time is distributed under CC BY-NC-ND 4.0.
Developer conventions (experiment layout, run scripts, configs) are in CONTRIBUTING.md.
