Executable Worlds for Agents, Physical Priors for World Models

15 minute read

Published:

TL;DR: this round is about making the world around an agent less imaginary. EnvFactory synthesizes executable tool environments for agentic RL instead of training only on over-specified traces. OpenComputer builds verifier-grounded desktop software worlds where computer-use agents can be scored by application state, not just screenshots or LLM judgment. PH-Dreamer puts a Port-Hamiltonian structure inside a visual world model, so latent imagination is pressured to respect energy and smoothness instead of only predicting reward.

What I Am Watching This Round

The last few issues leaned hard into “inspect before acting”: exploration checkpoints, evidence graphs, trace diagnosis, and state surfaces. That thread is still useful, but it can become too comfortable. This time I looked for papers where the environment itself becomes a training or evaluation object.

Three May 18-19 arXiv papers fit that criterion. EnvFactory is about creating many small, verified tool worlds from real online resources. OpenComputer is about desktop tasks whose rewards can be checked by hard-coded state verifiers. PH-Dreamer is a world-model paper rather than an LLM-agent paper, but it asks the same deeper question: what structure should the simulator carry before a policy trusts it?

I used paper figures for mechanisms and curves, and rebuilt dense numeric tables in Markdown where the table is easier to read than a screenshot.

Paper Notes

EnvFactory: Scaling Tool-Use Agents via Executable Environments Synthesis and Robust RL

Authors: Minrui Xu, Zilin Wang, Mengyi Deng, Zhiwei Li, Zhicheng Yang, Xiao Zhu, Yinhong Liu, Boyu Zhu, Baiyu Huang, Chao Chen, Heyuan Deng, Fei Mi, Lifeng Shang, Xingshan Zeng, Zhijiang Guo
Institutions: LARK, HKUST(GZ); University of Cambridge; UCL; Huawei Technologies Co., Ltd
Date: May 18, 2026
Links: arXiv, arXiv HTML

Quick idea: EnvFactory automates two things agentic RL usually lacks: executable stateful tool environments and realistic multi-turn queries. It discovers authentic tool ecosystems, reconstructs verified sandbox environments, samples tool-dependency topologies, and turns rigid instruction lists into natural user requests with implicit intent.

Why it matters: tool-use agents are often trained in environments that are either too expensive to call, too fake to trust, or too scripted to teach actual interaction. A good tool agent has to infer missing intent, ask for clarification, update state through tool calls, and survive multi-turn ambiguity. EnvFactory is useful because it treats the environment as part of the dataset, not as a passive API list.

EnvFactory environment generation

The left side of this figure shows the EnvGen loop: a Search Agent proposes and searches for real sources, a Code Agent implements databases and tool code, and a Test Agent generates unit tests and error reports. The right side summarizes the resulting environment mix by domain and tool count. The figure supports the paper’s main claim that the training substrate is executable and verified, though it still depends on the reliability of automated source discovery and code generation.

EnvFactory query generation

QueryGen is the part I found more interesting than the headline scores. Instead of sampling isolated tools, it builds a tool dependency graph, samples coherent tool chains, generates executable trajectories, and then refines queries so the user request is less like an answer key. That matters because many agent datasets accidentally train agents to follow over-detailed instructions rather than infer what a human actually meant.

The method has four concrete steps. First, EnvGen recovers a tool interface, database state, execution policy, and verifier for a candidate environment. Second, a Test Agent validates metadata consistency, imports, execution behavior, and state transitions; failing environments go through a debug-fix-retry loop. Third, QueryGen samples tool dependencies and produces trajectories with agents and simulated users. Fourth, training uses SFT on user-interaction trajectories and GRPO-based RL on tool-call trajectories.

Selected main results show why the paper is not only an environment-synthesis story:

ModelEnvsTasksBFCL multi-turnMCP-Atlas passtau2-Bench avgVitaBench avgOverall avg
Qwen3-1.7B base--16.751.0314.611.3316.27
Qwen3-1.7B EnvFactory852,57528.383.0915.117.3319.74
Qwen3-4B base--33.504.1225.257.6724.09
Qwen3-4B EnvFactory852,57548.509.9730.1316.0030.77
Qwen3-8B base--41.255.1532.3016.7029.23
Qwen3-8B EnvFactory852,57549.0013.7533.6718.6733.40

The cleanest signal is BFCL multi-turn: the 4B model rises from 33.50 to 48.50, and the 8B model from 41.25 to 49.00. MCP-Atlas also improves across sizes. The tau2-Bench and VitaBench gains are less uniform, which is a useful warning: environment synthesis helps most when the target task resembles stateful tool interaction.

EnvFactory scaling analysis

The scaling figure compares environment count, training tasks, and BFCL-v3 multi-turn performance. EnvFactory is trying to show that fewer but better verified environments can beat larger synthetic corpora. I would read this as evidence for data efficiency, not proof that 85 environments are enough for open-ended deployment.

The direct-RL ablation is also worth keeping:

ModelBFCL single-turnBFCL multi-turntau2-BenchVitaBench
Qwen3-1.7B79.4816.7514.671.33
EnvFactory-1.7B RL79.5318.3318.281.67
Qwen3-4B85.1533.5025.337.67
EnvFactory-4B RL85.2641.3824.8312.74
Qwen3-8B84.3141.2532.3316.70
EnvFactory-8B RL84.4244.3529.0817.00

My judgment: I would track EnvFactory because it moves agentic RL away from brittle API demos and toward repeatable environment construction. The weak point is verification scope. A generated sandbox can pass unit tests while still missing messy real-world edge cases, so I would want provenance logs and held-out real APIs before treating this as a deployment-grade training substrate.

Connection to tracked themes: agentic training, tool-use agents, executable environments, synthetic data quality, and verifiable rewards.

OpenComputer: Verifiable Software Worlds for Computer-Use Agents

Authors: Jinbiao Wei, Qianran Ma, Yilun Zhao, Xiao Zhou, Kangqi Ni, Guo Gan, Arman Cohan
Institutions: not specified
Date: May 19, 2026
Links: arXiv, arXiv HTML

Quick idea: OpenComputer builds desktop-agent tasks around application-state verifiers. Instead of asking an LLM judge whether a screenshot looks correct, it creates software worlds with executable initial state, structured success criteria, full trajectory logs, and partial-credit rewards computed from real application state.

Why it matters: computer-use agents can look almost right while being wrong in the exact cell, hidden panel, file metadata, browser state, or terminal log that matters. Pixels are a weak reward interface. OpenComputer is interesting because it treats verifiers as first-class software artifacts and lets tasks be generated only when the target state can be checked.

OpenComputer pipeline

The pipeline has four phases. It first builds app-specific verifier endpoints, then improves them through execution-grounded disagreement analysis, then synthesizes realistic user goals that can be instantiated and checked, and finally runs agents in fresh desktop sandboxes. The figure is useful because it makes the reward boundary explicit: the system scores final software state, not the model’s story about what happened.

OpenComputer verifier endpoint example

This endpoint example shows what “verifier-grounded” means in practice. A task is tied to an application endpoint, expected checks, JSON-validity constraints, and failure cases. The caveat is that verifier engineering becomes the bottleneck: if the endpoint cannot inspect the decisive state, the task either has to be rejected or the verifier stack must be extended.

The released benchmark has a concrete scale:

ApplicationsTasksAvg verifier endpoints / appAvg checks / taskAvg seed files / task
331,00017.76.91.3

The method is not just “generate prompts.” For each candidate desktop goal, the system checks complexity, data generatability, and state inspectability. A finalized task is a tuple of user-facing instruction, sandbox initialization, and executable success criteria. That tuple is the important object: it can support evaluation now and trajectory collection or RL later.

Representative benchmark results:

ModelOSWorld-VerifiedOpenComputer successAvg stepsTime / stepAvg reward
GPT-5.475.0%68.3%19.016.5 s88.4%
Claude-Sonnet-4.672.5%64.4%31.520.8 s76.6%
Kimi-K2.673.1%58.8%35.733.0 s70.7%
Qwen-3.5-27B56.2%32.3%33.157.3 s59.4%
Gemini-3-Flash-16.4%25.49.0 s37.0%
EvoCUA-8B46.1%10.9%67.09.7 s38.1%
Qwen-3.5-9B41.8%7.8%39.317.8 s31.7%
GUI-OWL-1.5-8B52.3%5.7%73.69.43 s27.8%

The frontier models do much better than open models, but even the strongest row leaves a sizable gap. The average reward is higher than binary success, which means agents often make partial progress but miss some state checks. That is exactly the kind of signal a training environment should preserve.

The verifier loop also has evidence behind it:

MetricValue
Verifier issues fixed in 1 round47
Fixed in 2 rounds15
Fixed in 3 rounds6
Not fixed within budget8
Agreement before evolution85.2%
Agreement after evolution94.1% (+8.9%)

I like this ablation because it admits that verifiers are imperfect. The system has to debug its own checking layer before it can claim reliable rewards. That is more honest than treating a reward script as ground truth forever.

A smaller GUI-versus-CLI comparison is also informative:

SettingModelSuccess rateTime per task
GUIGPT-5.475.2%288 s
GUIClaude Sonnet 4.673.0%622 s
CLIClaude Sonnet 4.667.2%141 s

My judgment: OpenComputer is worth following because it makes desktop-agent evaluation more like software testing. The risk is coverage. Hard-coded verifiers are precise where they exist, but they may steer the benchmark toward tasks that are easy to inspect. The next question is whether verifier coverage can expand without turning the benchmark into another hand-maintained test suite.

Connection to tracked themes: computer-use agents, verifiable software worlds, partial-credit rewards, GUI/CLI workflows, and auditable state.

PH-Dreamer: A Physics-Driven World Model via Port-Hamiltonian Generative Dynamics

Authors: Xueyu Luan, Chenwei Shi
Institutions: not specified
Date: May 18, 2026
Links: arXiv, arXiv HTML

Quick idea: PH-Dreamer modifies a recurrent visual world model with Port-Hamiltonian structure. It biases latent transitions toward energy routing with flow and dissipation, learns an explicit Hamiltonian signal from proprioceptive observations, and regularizes actor-critic learning toward lower energy and smoother control.

Why it matters: “world model” is often shorthand for a latent simulator that predicts enough reward to train a policy. That can work, but it does not guarantee that imagined dynamics preserve physical structure. PH-Dreamer is interesting because it asks the simulator to carry a physics prior, not only a statistical one.

PH-Dreamer architecture part A

This architecture panel shows the implicit structural constraint inside the RSSM-style transition. The point is not to hand-code full physics, but to regularize the projected latent phase space so the transition has an energy-like organization. The caveat is that this is still an inductive bias inside a learned model; it is not a proof of physically correct rollouts.

PH-Dreamer architecture part B

The second architecture panel shows the explicit Hamiltonian estimator and energy-guided actor-critic component. The world model estimates an energy signal from proprioceptive observations, and the policy objective uses energy gradients and Lagrangian-style penalties to favor lower-energy, smoother trajectories. This is the paper’s key move: physical structure affects both representation learning and control.

The paper evaluates on DeepMind Control Suite tasks: Cheetah Run, Reacher Easy, Hopper Hop, Walker Stand, Walker Walk, and Walker Run. The central comparison isolates R2Dreamer because PH-Dreamer keeps a similar perceptual backbone while replacing generic recurrent dynamics with Port-Hamiltonian dynamics. Broader baselines include DreamerV3, DreamerPro, Dreamer-InfoNCE, and HRSSM.

Selected asymptotic returns at 500k steps:

MethodCheetah RunWalker StandReacher EasyHopper HopWalker WalkWalker RunAvg
DreamerV3689.9947.8951.2245.7951.5624.3735.1
Dreamer-InfoNCE691.3934.1963.4212.3904.2484.7698.3
HRSSM647.9962.8868.1236.7941.6515.8695.5
DreamerPro398.0960.4964.6291.6937.2527.5679.9
R2Dreamer701.1972.2970.8297.9959.8673.4762.5
PH-Dreamer798.6974.7985.1314.8967.2694.8789.2

The result is not a huge leap on every task, but it is consistent across the six listed tasks. I would read this as evidence that the physics prior is helpful under this benchmark and backbone, not as a general claim that Port-Hamiltonian structure is always the right prior.

PH-Dreamer phase space A

The phase-space visualization compares projected latent trajectories. PH-Dreamer’s trajectory is more compact than the baseline on the shown rollout, which supports the claim that the latent dynamics are less diffuse. The authors are careful not to claim a closed-loop boundedness guarantee, and that caution matters.

PH-Dreamer phase space B

This companion view reinforces the same point from another task slice. The useful signal is not visual neatness alone; it is paired with the Log Phase Volume measurement below. A compact latent space is only meaningful if task performance stays high, which is why the return table and phase-volume table have to be read together.

Log Phase Volume on four task groups:

MethodCheetah RunWalker domainReacher EasyHopper Hop
R2Dreamer14.27626.11517.59321.224
PH-Dreamer13.22725.02316.18519.439
Relative reduction7.35%4.18%8.00%8.41%

The explicit energy analysis is also important:

PH-Dreamer energy alignment

This figure compares predicted Hamiltonians with MuJoCo ground-truth mechanical energy across the six DMC tasks. The visible temporal tracking supports the claim that the learned energy model is not only a decorative auxiliary head. A caveat: ground-truth simulator energy is available here, while many real robotic or video settings would have noisier physical state access.

For policy behavior, the paper defines a total energy proxy and mean squared jerk:

E_proxy = alpha * sum_t sum_i |tau_i,t * qdot_M(i),t| * dt
        + beta  * sum_t sum_i tau_i,t^2 * dt

J = 1 / ((T - 1) * n_dof) * sum_{t=2..T} sum_j ((qddot_j,t - qddot_j,t-1) / dt)^2
MethodTotal energy consumption, lower is betterMean squared jerk, lower is better
HRSSM125.4345.12
DreamerV3132.8948.64
DreamerPro128.3646.87
R2Dreamer122.1044.05
PH-Dreamer without implicit component117.5240.19
PH-Dreamer without explicit component121.8443.63
PH-Dreamer112.5839.92

My judgment: PH-Dreamer is useful because it gives “world model” a more disciplined meaning: not only predict latent futures, but preserve a physically interpretable structure that changes control behavior. The limitation is scope. The evidence is from MuJoCo-style continuous control, where proprioception and simulator energy are accessible. I would want to see contact-rich manipulation, pixels-only settings, and action-conditioned video prediction before treating this as a general recipe.

Connection to tracked themes: world models, physical inductive bias, latent dynamics, energy-aware control, and evaluation beyond reward.

Reading Priority and Next Questions

My priority order is OpenComputer, EnvFactory, then PH-Dreamer. OpenComputer is closest to a deployment bottleneck: if the reward cannot inspect exact software state, computer-use agents will keep learning from blurry supervision. EnvFactory is the more direct training-data paper, and I would watch whether its generated environments can be audited against real APIs. PH-Dreamer is the conceptual bridge to embodied world models: simulator structure matters before the policy sees a reward.

Next questions I would track:

  • Can verifier generation for desktop agents scale without narrowing the benchmark to what is easy to inspect?
  • Can executable tool environments preserve provenance from real online sources through code generation, tests, and RL trajectories?
  • Can agentic RL use partial-credit verifier signals without overfitting to reward scripts?
  • Can physics-structured world models help in contact-heavy or pixel-only settings where clean energy labels are unavailable?