--- license: apache-2.0 base_model: insync-robotics/ebalfred-gemma4-e4b-sft base_model_relation: finetune datasets: - insync-robotics/ebalfred-insync-data library_name: transformers pipeline_tag: image-text-to-text tags: - insync - eb-alfred - embodiedbench - embodied-ai - planning - reinforcement-learning --- # InSync EB-ALFRED Planner (Gemma-4-E4B-it) > [!Note] > This repository contains the InSync EB-ALFRED planner, trained with InSync RL from our Gemma-4-E4B-it SFT model ([`ebalfred-gemma4-e4b-sft`](https://huggingface.co/insync-robotics/ebalfred-gemma4-e4b-sft)): the full merged weights (bf16), config, tokenizer and chat template in the Hugging Face Transformers format, compatible with Transformers and vLLM. > > Paper: [alphaXiv](https://www.alphaxiv.org/abs/2612.insync) · Code: [InSync-robotics/InSync](https://github.com/InSync-robotics/InSync) · Project page: [InSync-robotics.github.io](https://InSync-robotics.github.io) This is a Gemma-4-E4B-it System 2 planner for EB-ALFRED. Given EmbodiedBench's prompt and the current frame, it writes a plan in EmbodiedBench's JSON plan schema for EB-ALFRED's skill executor (System 1), and replans from the feedback when an action fails. InSync trains a System 2 planner with reinforcement learning so that it stays consistent with what its System 1 policy actually executed. A rule-based world-state verifier checks every command against the world state before and after execution, and verified inconsistencies are penalised in the reward (R = S − λV). The verifier is used only in training; System 1 stays frozen. ## Highlights - **EB-ALFRED success rate:** 80.7%, +6.4 over GRPO and +11.0 over GiGPO on the same base model. - **Planning inconsistency:** 2.83 verified inconsistencies per 100 actions, 5.0× fewer than GRPO. - **Zero-shot transfer:** 53.7% on EB-Habitat without Habitat training. ## Model Overview - Type: vision-language model, used as a System 2 planner - Fine-tuned from: [`ebalfred-gemma4-e4b-sft`](https://huggingface.co/insync-robotics/ebalfred-gemma4-e4b-sft), our SFT of [google/gemma-4-E4B-it](https://huggingface.co/google/gemma-4-E4B-it) - Training stage: google/gemma-4-E4B-it → SFT ([`ebalfred-gemma4-e4b-sft`](https://huggingface.co/insync-robotics/ebalfred-gemma4-e4b-sft)) → InSync RL (this model); the SFT model is the KL reference - System 1: EB-ALFRED's symbolic skill executor (AI2-THOR) - Input: EmbodiedBench's EB-ALFRED prompt (task, skill list, feedback history) and the current frame - Output: a plan in EmbodiedBench's JSON plan schema - Training data: [`ebalfred-insync-data`](https://huggingface.co/datasets/insync-robotics/ebalfred-insync-data) (19,819 SFT traces, 3,618 RL start states) - Reward: task success minus λ = 0.5 per verified inconsistency, with a success floor of 0.2 ## Benchmark Results All columns are Gemma-4-E4B-it planners. SR: task success (%). Inc.: verified inconsistencies per 100 executed actions. 300 episodes per benchmark; greedy decoding. | | **InSync** | GiGPO | GRPO | SFT | |---|:---:|:---:|:---:|:---:| | EB-ALFRED SR (%) ↑ | **80.7** | 69.7 | 74.3 | 55.7 | | EB-ALFRED Inc. ↓ | **2.83** | 12.19 | 14.24 | 16.86 | | EB-Habitat SR (%) ↑ (zero-shot) | **53.7** | 39.7 | 39.3 | 38.3 | For reference, on EB-ALFRED: | Model | SR (%) | Inc. | |---|:---:|:---:| | GPT-6-Astra (proprietary) | 89.0 | 0.16 | | GPT-5.6 (proprietary) | 78.3 | 0.54 | | RoboAgent-3B | 67.0 | – | | WAP-7B | 62.7 | – | | RoboGPT-R1-3B (Qwen2.5-VL) | 55.3 | – | ## Quickstart The evaluation scripts of the [code](https://github.com/InSync-robotics/InSync) serve the model with vLLM and run EmbodiedBench. After [Setup](https://github.com/InSync-robotics/InSync/blob/HEAD/embodiedbench/README.md#setup): ```bash hf download insync-robotics/ebalfred-gemma4-e4b-insync --local-dir planner MODEL_DIR=planner OUT=eval/planner EB_ROOT=$EB_ROOT PYBIN=/bin/python \ VLLM=/bin/vllm VLLM_GPUS=0,1 X_DISPLAYS=1.0 bash scripts/eval_alfred.sh ``` `$OUT/summary.json` holds SR and Inc. with bootstrap 95% CIs. EB-Habitat and all options: [Evaluation](https://github.com/InSync-robotics/InSync/blob/HEAD/embodiedbench/README.md#evaluation). ## Best Practices 1. **Thinking off.** The model was trained and evaluated with `"chat_template_kwargs": {"enable_thinking": false}`. 2. **Greedy, schema-constrained decoding.** Decode greedily and constrain the output to EmbodiedBench's JSON plan schema (`patches/apply.sh --eb` writes it to `configs/plan_schema.json`), as the evaluation does. 3. **Temperature 0.** This repository's `generation_config.json` keeps Gemma's sampling defaults; set `temperature=0`. 4. **Images.** Use one `<|image|>` placeholder per image when you build vLLM requests yourself: vLLM's Gemma 4 processor expands the image tokens itself. ## Citation If you find our work helpful, feel free to cite us. ```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. ## License Apache-2.0. The weights derive from [google/gemma-4-E4B-it](https://huggingface.co/google/gemma-4-E4B-it) and remain subject to its terms.