--- license: apache-2.0 language: - en task_categories: - image-text-to-text - reinforcement-learning - robotics tags: - embodied-ai - planning - vision-language-model - alfred - ai2-thor - embodiedbench - eb-alfred - insync pretty_name: InSync EB-ALFRED training data size_categories: - 10K Junwei Yu1*, Tsung-Han Wu1*, Zirui Wang1, Fangzhou Zhao1, Guanyou Li1, Joseph E. Gonzalez1, Adam Yala1,2, David M. Chan1†, XuDong Wang1,3†‡, Trevor Darrell1†
1UC Berkeley, 2UCSF, 3Duke University · *equal contribution, †equal advising, ‡project lead [Code](https://github.com/InSync-robotics/InSync) · [Project page](https://InSync-robotics.github.io) · [Models and data](https://huggingface.co/insync-robotics) ## What this is InSync keeps a System 2 VLM planner in sync with the System 1 low-level policy that executes its commands. The planner is trained with reinforcement learning: a rule-based world-state verifier checks every command against the world state during training, and verified inconsistencies are penalised in the reward; System 1 stays frozen. On EB-ALFRED the planner (Qwen3.5-4B or Gemma-4-E4B-it) is first fine-tuned on expert traces (SFT) and then trained with RL from a buffer of start states. This repository holds those two inputs. The code that reads them is the `embodiedbench/` directory of the [code repository](https://github.com/InSync-robotics/InSync); its `README.md` has the setup and the evaluation, and its `TRAINING.md` the SFT and RL recipes. The released EB-ALFRED planners are [`ebalfred-qwen35-insync`](https://huggingface.co/insync-robotics/ebalfred-qwen35-insync) and [`ebalfred-gemma4-e4b-insync`](https://huggingface.co/insync-robotics/ebalfred-gemma4-e4b-insync). ## Files | File | Rows / count | Size | What | |---|---|---|---| | `traces.jsonl` | 19,819 rows | 244 MB | SFT traces from 4,005 expert replays: one planner decision point per row (frame, prompt, target plan) | | `frames_a.tar` | 59,246 frames of 6,573 replayed episodes | 2.51 GB | the render the traces were cut from; unpacks to `frames_a//` | | `buffer.jsonl` | 3,618 rows | 17.9 MB | RL start states from 1,577 expert replays | | `keep_states.jsonl` | 88 rows | 0.44 MB | start states that `insync_eb.buffer --keep-states` carries over when the buffer is rebuilt; all 88 are also in `buffer.jsonl` | | `manifest.json` | | | counts, exact sizes and SHA-256 of the four files above | | `SHA256SUMS` | | | checksums of the four files and of `manifest.json` | `frames_a.tar` holds, for each replayed episode, the frame after every executed action (`step_000.jpg` is the first observation; JPEG, 500×500) and `episode.json`, the replay record written by `insync_eb.replay` (plan, skill list, and per action the feedback, success and simulator snapshot). `traces.jsonl` points to 19,819 of the frames, which is all that SFT reads from the archive; RL does not use it (the pool renders its own frames). `episode.json` is what `insync_eb.traces` and `insync_eb.buffer` read when the traces and the buffer are rebuilt. One further episode failed to render: its directory holds an `error.json` and no frames. The archive is a plain ustar file with sorted members, numeric owner 0 and one fixed modification time. 2,533 of the episodes are failed or unsolved replays (`status` and `task_success` in `episode.json`); no released file uses them. Besides the six snapshot fields `insync_eb.replay` writes (`held`, `pos`, `rot`, `horizon`, `open_ids`, `sliced_ids`), the snapshots carry six fields of the original build that the code does not read (`cur_receptacle`, `error`, `frame_md5`, `held_id`, `last_success`, `sliced_flag`; `frame_md5` is missing in 723 episodes). ## How it was made The expert plans of ALFRED-train are translated into EB-ALFRED skills (`insync_eb.prepare_alfred`, 6,574 plans) and replayed twice in AI2-THOR through EmbodiedBench's EB-ALFRED environment (`insync_eb.replay`), saving the frame and a simulator snapshot after every action. An episode is used only if it was solved and both renders replayed it identically (for the traces, also only if the two renders agree on the frames at the cuts). A trace row (`insync_eb.traces`) is one decision point of such an episode, cut at the first step, after every rejected action and at up to four other steps: the frame, EmbodiedBench's planner prompt for the executed history, and the remaining expert actions as the target plan. An RL start state (`insync_eb.buffer`) is an episode prefix the policy continues from: the episode's place in the replay split plus the executed history; the environment pool restores it by replaying that history in the simulator. All episodes are from the ALFRED train split; none is one of the 130 ALFRED `valid_seen` trajectories behind EB-ALFRED's 300 evaluation episodes. As in ALFRED's seen split, scenes and tasks recur: 93 of the 128 ALFRED tasks (type, objects, receptacle, scene) of those episodes, covering 224 of the 300, also occur here with other trajectories. `frames_a` is the first of the two renders; the second is not part of this release. ## Use with the code The commands are those of `embodiedbench/TRAINING.md` in the code repository, with the paths of this layout. Run them from the repository's `embodiedbench/` directory with `PYTHONPATH=.`, after the setup in `embodiedbench/README.md`. `` is the directory this repository was downloaded to. ```bash hf download insync-robotics/ebalfred-insync-data --repo-type dataset --local-dir tar -xf /frames_a.tar -C # /frames_a//step_NNN.jpg (cd && sha256sum -c SHA256SUMS) # optional ``` **SFT** (`serve` environment). Each row names its frame in `image`, relative to this directory. `insync_eb.sft` looks for a relative path in the working directory first and then next to the `--data` file, so with `frames_a/` extracted next to `traces.jsonl` the commands work from any directory; a missing frame stops the run before training. ```bash hf download Qwen/Qwen3.5-4B --revision 851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a --local-dir base_qwen hf download google/gemma-4-E4B-it --revision ee0ef6023621cff504d758262d4e04895a5af4a2 --local-dir base_gemma torchrun --nproc_per_node=3 -m insync_eb.sft --data /traces.jsonl --base base_qwen --out sft_qwen --bs 2 --accum 11 torchrun --nproc_per_node=8 -m insync_eb.sft --data /traces.jsonl --base base_gemma --out sft_gemma --bs 2 --accum 4 ``` These are the base revisions and effective batches (processes × `--bs` × `--accum`: 66 for Qwen, 64 for Gemma) of the reported SFT models; on another number of GPUs, keep the product. **RL** (`embench` environment). The pool replays ALFRED-train episodes, so RL also needs ALFRED-train and the replay split that `prepare_alfred` writes. The command must report 6,574 translated plans: the states of `buffer.jsonl` index into this split, and the pool refuses a buffer whose tasks do not match it. ```bash export EB_ROOT= python -m insync_eb.prepare_alfred --alfred $ALFRED --out plans.jsonl # 6,574 translated expert plans # once: a pool that serves /frame, and the parquet built from it; then stop that pool python -m insync_eb.pool --buffer /buffer.jsonl --frames frames_rl --workers 45 --displays 1.1,1.2,1.3 --session-workers 0 python -m insync_eb.rl_dataset --buffer /buffer.jsonl --out rl_data/train.parquet # writes rl_data/train_val.parquet too # the training pool: --lam 0.5 for InSync, --lam 0 for GRPO python -m insync_eb.pool --buffer /buffer.jsonl --frames frames_rl --workers 45 --displays 1.1,1.2,1.3 --lam 0.5 ``` RL training (`scripts/train_rl.sh`) and checkpoint merging are in `embodiedbench/TRAINING.md`, evaluation in `embodiedbench/README.md`. `keep_states.jsonl` is needed only to rebuild the buffer, which also takes a second render (`frames_b`) made with `insync_eb.replay`. With the two original renders, the defaults of this command rebuild `buffer.jsonl`: 3,618 states, 65 of them carried over from `keep_states.jsonl`. ```bash python -m insync_eb.buffer --frames-a /frames_a --frames-b frames_b --keep-states /keep_states.jsonl --out buffer.jsonl ``` ## Fields ### `traces.jsonl` One JSON object per line. | Field | Type | Content | |---|---|---| | `task` | string | ALFRED-train trajectory, `train//`; SFT holds out 3 % of the episodes by this field | | `cut` | int | number of actions executed before this decision point | | `kind` | string | `turn0`: the first step of the episode (4,005 rows); `failcut`: the step right after a rejected action (1,141); `cut`: another step (14,673) | | `image` | string | the frame at this point, relative to this directory: `frames_a//step_NNN.jpg`, where `NNN` is `cut` and `` is `task` without `train/` and with `/` replaced by `__` | | `weight` | float | sampling weight: 1/T for an episode of T executed actions, doubled when the previous action was a pick-up, open, close or put-down, or was rejected | | `prompt` | string | EmbodiedBench's planner prompt for the executed history: action list, history with feedback, task instruction | | `target` | string | JSON string in the evaluator's output format, with the keys `visual_state_description`, `reasoning_and_reflection`, `language_plan` and `executable_plan` (a list of `{action_id, action_name}`): the remaining expert actions | `visual_state_description` in `target` is empty, as `insync_eb.traces` writes it; the reported SFT models were trained on exactly these targets. No field holds model-written text: `reasoning_and_reflection` is one of seven rule-based sentences (`reflection()` in `insync_eb/traces.py`), `language_plan` joins the action names of `executable_plan`, and the task instructions are ALFRED's human annotations. ### `buffer.jsonl` and `keep_states.jsonl` One start state per line; `state_idx` in the RL code is the 0-based line index in `buffer.jsonl`. | Field | Type | Content | |---|---|---| | `shard`, `episode_num` | string, int | the episode's place in the replay split written by `insync_eb.prepare_alfred` (shards `replay_000`, … of 150 episodes) | | `task` | string | ALFRED-train trajectory, as in the traces; the pool checks it against the split | | `task_type` | string | ALFRED task type (seven types) | | `skills` | list of strings | the episode's EB-ALFRED action list; an action id is an index into it | | `instruction` | string | the task instruction (the first ALFRED annotation of the trajectory) | | `kind` | string | `turn0`: empty history; `failcut`: the history ends in a rejected action; `cut`: another prefix | | `k` | int | number of actions in the history | | `hist` | list | the executed prefix, one `{action, action_id, feedback, success}` per action | ## Licence and attribution The files of this repository are released under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0), the licence of the InSync code. They are derived from the projects below, and the terms of those projects continue to apply to their material. | Source | Licence | What comes from it | |---|---|---| | [ALFRED](https://github.com/askforalfred/alfred) | MIT, Copyright (c) 2019 ALFRED | the expert demonstrations whose plans are replayed, the trajectory identifiers and the task instructions | | [AI2-THOR](https://github.com/allenai/ai2thor) | Apache-2.0 | the simulator the frames are rendered with | | [EmbodiedBench](https://github.com/EmbodiedBench/EmbodiedBench) (commit `9be4e98`) | no repository-wide licence at this commit; its `embodiedbench/envs/eb_alfred/` directory carries the ALFRED licence | the EB-ALFRED environment (skill names, feedback strings) and the planner prompt text in `prompt` | The planner prompt text in the `prompt` field is EmbodiedBench's and remains the property of the EmbodiedBench authors.
ALFRED licence notice (MIT) ```text MIT License Copyright (c) 2019 ALFRED Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```
## Citation If you use this data, please cite InSync, and ALFRED, AI2-THOR and EmbodiedBench, which it is built on. ```bibtex @misc{yu2026insync, title = {InSync: Aligning System 1 and System 2 in Agentic Robotics via Reinforcement Learning}, author = {Yu, Junwei and Wu, Tsung-Han and Wang, Zirui and Zhao, Fangzhou and Li, Guanyou and Gonzalez, Joseph E. and Yala, Adam and Chan, David M. and Wang, XuDong and Darrell, Trevor}, year = {2026}, howpublished = {alphaXiv}, url = {https://www.alphaxiv.org/abs/2612.insync} } ``` ## Acknowledgements InSync builds on [verl](https://github.com/verl-project/verl), [vLLM](https://github.com/vllm-project/vllm), [EmbodiedBench](https://github.com/EmbodiedBench/EmbodiedBench), [RoboLab](https://github.com/NVlabs/RoboLab), [VoLoAgent](https://github.com/NVlabs/VoLoAgent), [openpi](https://github.com/Physical-Intelligence/openpi) (π0.5), [Cosmos3](https://github.com/NVIDIA/cosmos-framework) and [LIBERO-PRO](https://github.com/Zxy-MLlab/LIBERO-PRO). We thank their authors. We thank Dengyuhan Dai for helping with figure design. We thank Zhiyang Jiang for the support throughout this project. We thank Yutian Chen, Junyi Zhang, Letian Fu, Berke Gökmen, Fiona Ryan, Heekyung (Anne) Lee, and Kumar Krishna Agrawal for their helpful discussions and feedback.