# Do We Still Need Reinforcement Learning When We Can Read the World Model?

> PS-RWM uses an LLM coding agent to read environment source code and write executable policies without task-specific RL training. On MiniGrid DoorKey, it reached an 80% success target in 1,789 development steps versus DreamerV3's 400,000, though results vary by task.

- arXiv: https://arxiv.org/abs/2611.34656
- Authors: Mingchao Zhang, Miduo Cui, Kangze He, Yuanjun Li, Dapeng Li, Ce Zhang, Chuanchen Luo, Xue Yan, Mingzhe Xing, Zhumin Chen, Hangyu Mao, Bin Zhang, Zhiwei Xu
- Published: 2026-11-27
- Topic: RL & post-training
- Visual carousel: https://instaxiv.com/p/2611.34656
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Can a coding agent turn simulator code into a policy?

**>200× fewer** DoorKey 8×8 steps to 80% success vs DreamerV3

## The world model becomes code the agent can read

![Figure 1](https://cdn.instaxiv.com/figures/2611.34656/figure1.webp)

Source code makes the world model readable: it specifies transitions and rewards. PS-RWM uses an LLM coding agent to turn that code into an executable policy, rather than using it only for planning or optimization. (Figure 1)

## How an executable policy takes shape

1. **Read the implementation**: Trace how actions change state, what the agent observes, what earns reward and what ends an episode.
2. **Write decision code**: Translate those mechanics into a policy; offline versions may also fit non-neural models to fixed experience.
3. **Refine, then evaluate**: Use online rollouts or offline records to revise. Final policies are evaluated on held-out seeds, and those scores are hidden from the coding agent.

## Source access is for construction, not execution

**During development:** The coding agent can inspect source code and use online feedback or a fixed offline dataset to revise candidate policies.

**During execution:** Frozen programs use the same public observation/action interface as RL baselines, without privileged environment state or further LLM inference.

Knowledge changes how the policy is built, not what it sees while acting.

## A representative episode shows coordinated tactics

![Figure 4](https://cdn.instaxiv.com/figures/2611.34656/figure4.webp)

Rows are allied units; columns are steps. (a) PS-RWM, (b) QMIX; cells show actions, outlines targets. Here, Stalkers move away from enemies while Zealots focus fire, more coherently than QMIX in this episode. (Figure 4)

## The executable rules explain the coordination

1. **Stalkers kite**: Retreat when the nearest visible enemy Zealot is within 2.8 map units; for fewer than four steps after an attack, the threshold widens to 5.7.
2. **Zealots focus fire**: Rank visible enemy Stalkers by health, shields and distance, converging on one target; attack if in range, otherwise approach.

## Competitive on most online tasks, not all

![Figure 3](https://cdn.instaxiv.com/figures/2611.34656/figure3.webp)

Solid curves show RL; shading is three-run SD; Box2D plots training returns. PS-RWM beat model-free RL in 15/16. QMIX and MBVD led on 8m_vs_9m, SeqWM on Speaker–Listener, DreamerV3 on BipedalWalker. (Figure 3)

## MiniGrid DoorKey reaches the target with fewer steps

| Method | Steps to 80% success |
| --- | --- |
| DreamerV3 (3/3) | 400,000 |
| **PS-RWM (3/3) (>200× fewer)** | **1,789** |

_DoorKey 8×8; target 80% success. PS-RWM counts all development steps; RL uses first qualifying checkpoint. Main sample-efficiency table._

## Zero demonstrations is not zero knowledge

**M=0 input:** The BabyAI construction received no demonstration trajectories, transitions or dataset summaries.

**100-seed evaluation:** With environment code and task description still available, PS-RWM averaged 100.00% success across six BabyAI tasks on 100 held-out seeds.

Zero demonstrations does not mean zero environment knowledge.

## Offline D4RL results split by task family

**Maze2D, 3 tasks:** PS-RWM averaged 176.9 D4RL normalized score; CQL, the strongest listed baseline, averaged 62.0.

**MuJoCo, 9 tasks:** PS-RWM averaged 59.9 versus CQL's 80.6. The D4RL baseline scores come from prior work, not same-run reruns.

Strong offline maze scores coexist with weaker MuJoCo locomotion performance.

## Kitchen-partial: readable code raises completion

| Method | D4RL norm. score | Full completion (%) |
| --- | --- | --- |
| PS-RWM, no source | 40.92 ± 12.88 | 3.00 ± 5.20 |
| **PS-RWM, with source** | **96.17 ± 2.84** | **92.33 ± 5.69** |

_Kitchen-partial; same full dataset, goals, interface; no environment interaction. Three policies/condition, evaluated on same 100 seeds. Main table._

## Combat control survived removal of intermediate rewards

**QMIX, sparse setting:** On SMAC 3s5z_vs_3s6z, separately trained QMIX averaged 0.00% wins across three seeds.

**PS-RWM, sparse source:** Synthesized separately from the sparse-reward implementation, PS-RWM averaged 100.00% wins over three runs; terminal outcome rewards remained.

The source exposed combat mechanics without dense damage and kill rewards.

## What this evidence does not settle

- **Model fidelity**: A readable simulator may still differ from the real dynamics; code access alone cannot guarantee a reliable controller.
- **Precise control**: On D4RL, PS-RWM trails the strongest listed averages on MuJoCo locomotion and Adroit manipulation.
- **Interaction is not total cost**: Environment steps are not total computation: policy construction also consumes coding-agent tokens, with estimated inference costs reported separately.

Best used when: Use it when environment rules are inspectable and interaction is costly; validate independently and keep RL available for precision-heavy tasks.

## Key takeaways

- Readable world models can supply executable decision logic, not only predictions for planning.
- For programmable environments, test policy synthesis as a low-interaction alternative and count coding-agent inference alongside environment steps.
- The open question is whether it stays reliable with incomplete models, changing environments and precision-heavy control.

## Links

- arXiv: https://arxiv.org/abs/2611.34656
- PDF: https://arxiv.org/pdf/2611.34656

## Citation

```bibtex
@article{zhang2026do,
  title   = {Do We Still Need Reinforcement Learning When We Can Read the World Model?},
  author  = {Zhang, Mingchao and Cui, Miduo and He, Kangze and Li, Yuanjun and Li, Dapeng and Zhang, Ce and Luo, Chuanchen and Yan, Xue and Xing, Mingzhe and Chen, Zhumin and Mao, Hangyu and Zhang, Bin and others},
  journal = {arXiv preprint arXiv:2611.34656},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.34656}
}
```
