Long-Horizon Visual Imitation Learning via Plan and Code Reflection
On the map: Offline RL and imitation learning from data → Robot manipulation imitation learning
Abstract (arXiv)
Learning from long-horizon demonstrations with complex action sequences presents significant challenges for visual imitation learning, particularly in understanding temporal relationships of actions and spatial relationships between objects. In this paper, we propose a new agent framework that incorporates two dedicated reflection modules to enhance both plan and code generation. The plan generation module produces an initial action sequence, which is then verified by the plan reflection module to ensure temporal coherence and spatial alignment with the demonstration video. The code generation module translates the plan into executable code, while the code reflection module verifies and refines the generated code to ensure correctness and consistency with the generated plan. These two reflection modules jointly enable the agent to detect and correct errors in both the plan generation and code generation, improving performance in tasks with intricate temporal and spatial dependencies. To support systematic evaluation, we introduce LongVILBench, a benchmark comprising 300 human demonstrations with action sequences of up to 18 steps. LongVILBench emphasizes temporal and spatial complexity across multiple task types. Experimental results demonstrate that existing methods perform poorly on this benchmark, whereas our new framework establishes a strong baseline for long-horizon visual imitation learning.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Robot manipulation imitation learning, one of 13 directions in Offline RL and imitation learning from data. Builds on 41 of its 53 references that are in the map. First posted on arXiv 4 Sep 2025.
Builds on
41 of 53 references.
Closest ancestors · 4
Same direction, newest first
- 2025FMimic: Foundation Models are Fine-grained Action Learners from Human Videos28 Jul
- 2024VIEW: Visual Imitation Learning with Waypoints27 Apr
- 2019Third-Person Visual Imitation Learning via Decoupled Hierarchical Controller21 Nov
- 2019Relay Policy Learning: Solving Long-Horizon Tasks via Imitation and Reinforcement Learning25 Oct
Other references · 37
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Controlcited by 3,080
- 2024OpenVLA: An Open-Source Vision-Language-Action Modelcited by 2,887
- 2023Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyondcited by 2,224
- 2023PaLM-E: An Embodied Multimodal Language Modelcited by 2,071
- 2024Octo: An Open-Source Generalist Robot Policycited by 1,484
- 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,210
- 2023VoxPoser: Composable 3D Value Maps for Robotic Manipulation with Language Modelscited by 750
- 2019RLBench: The Robot Learning Benchmark & Learning Environmentcited by 689
25 more
- 2019MediaPipe: A Framework for Building Perception Pipelinescited by 583
- 2023EmbodiedGPT: Vision-Language Pre-Training via Embodied Chain of Thoughtcited by 279
- 2017One-Shot Visual Imitation Learning via Meta-Learningcited by 228
- 2021AGQA: A Benchmark for Compositional Spatio-Temporal Reasoningcited by 120
- 2020Transformers for One-Shot Visual Imitationcited by 78
- 2023GPT-4V(ision) for Robotics: Multimodal Task Planning from Human Demonstrationcited by 77
- 2024Vision-Language Models Can Self-Improve Reasoning via Reflectioncited by 69
- 2024ExACT: Teaching AI Agents to Explore with Reflective-MCTS and Exploratory Learningcited by 62
- 2024Multi-modal Agent Tuning: Building a VLM-Driven Agent for Efficient Tool Usagecited by 51
- 2023CLOVA: A Closed-Loop Visual Assistant with Tool Usage and Updatecited by 43
- 2025Reflective Planning: Vision-Language Models for Multi-Stage Long-Horizon Robotic Manipulationcited by 42
- 2023Demo2Code: From Summarizing Demonstrations to Synthesizing Code via Extended Chain-of-Thoughtcited by 39
- 2024VLM See, Robot Do: Human Demo Video to Robot Action Plan via Vision Language Modelcited by 37
- 2023Pretrained Language Models as Visual Planners for Human Assistancecited by 28
- 2025LoHoVLA: A Unified Vision-Language-Action Model for Long-Horizon Embodied Taskscited by 26
- 2025ManipBench: Benchmarking Vision-Language Models for Low-Level Robot Manipulationcited by 24
- 2025Iterative Tool Usage Exploration for Multimodal Agents via Step-wise Preference Tuningcited by 19
- 2020Modeling Long-horizon Tasks as Sequential Interaction Landscapescited by 14
- 2025Robotic Programmer: Video Instructed Policy Code Generation for Robotic Manipulationcited by 11
- 2024FetchBench: A Simulation Benchmark for Robot Fetchingcited by 9
- 2023Robust Visual Imitation Learning with Inverse Dynamics Representationscited by 8
- 2024VLMimic: Vision Language Models are Visual Imitation Learner for Fine-grained Actionscited by 8
- 2025REMAC: Self-Reflective and Self-Evolving Multi-Agent Collaboration for Long-Horizon Robot Manipulationcited by 8
- 2022Imitrob: Imitation Learning Dataset for Training and Evaluating 6D Object Pose Estimatorscited by 3
- 2020Understanding Action Sequences based on Video Captioning for Learning-from-Observationcited by 2
Built on by
Citing papers per year: 2025: 1.
1 paper.
- 2025A Survey on Agentic Multimodal Large Language Modelscited by 23
- 2025A Survey on Agentic Multimodal Large Language Models13 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025OSVI-WM: One-Shot Visual Imitation for Unseen Tasks using World-Model-Guided Trajectory Generation
- 2025ManiLong-Shot: Interaction-Aware One-Shot Imitation Learning for Long-Horizon Manipulation
- 2023MimicPlay: Long-Horizon Imitation Learning by Watching Human Play
- 2021The Surprising Effectiveness of Representation Learning for Visual Imitation
- 2025From Watch to Imagine: Steering Long-horizon Manipulation via Human Demonstration and Future Envisionment
- 2026ICLR: In-Context Imitation Learning with Visual Reasoning
- 2025Learning Compositional Behaviors from Demonstration and Language
- 2026Learning Task and Motion Plans from Real Demonstrations with Hybrid Flow Matching