mlsanityData to 14 Oct 2026

Long-Horizon Visual Imitation Learning via Plan and Code Reflection

arXiv 2509.05368 ↗First posted 4 Sep 2025cs.RO cs.AI cs.LGcited by 1

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

  1. 2025FMimic: Foundation Models are Fine-grained Action Learners from Human Videos28 Jul
  2. 2024VIEW: Visual Imitation Learning with Waypoints27 Apr
  3. 2019Third-Person Visual Imitation Learning via Decoupled Hierarchical Controller21 Nov
  4. 2019Relay Policy Learning: Solving Long-Horizon Tasks via Imitation and Reinforcement Learning25 Oct

Other references · 37

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  4. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  5. 2023RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Controlcited by 3,080
  6. 2024OpenVLA: An Open-Source Vision-Language-Action Modelcited by 2,887
  7. 2023Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyondcited by 2,224
  8. 2023PaLM-E: An Embodied Multimodal Language Modelcited by 2,071
  9. 2024Octo: An Open-Source Generalist Robot Policycited by 1,484
  10. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,210
  11. 2023VoxPoser: Composable 3D Value Maps for Robotic Manipulation with Language Modelscited by 750
  12. 2019RLBench: The Robot Learning Benchmark & Learning Environmentcited by 689
25 more
  1. 2019MediaPipe: A Framework for Building Perception Pipelinescited by 583
  2. 2023EmbodiedGPT: Vision-Language Pre-Training via Embodied Chain of Thoughtcited by 279
  3. 2017One-Shot Visual Imitation Learning via Meta-Learningcited by 228
  4. 2021AGQA: A Benchmark for Compositional Spatio-Temporal Reasoningcited by 120
  5. 2020Transformers for One-Shot Visual Imitationcited by 78
  6. 2023GPT-4V(ision) for Robotics: Multimodal Task Planning from Human Demonstrationcited by 77
  7. 2024Vision-Language Models Can Self-Improve Reasoning via Reflectioncited by 69
  8. 2024ExACT: Teaching AI Agents to Explore with Reflective-MCTS and Exploratory Learningcited by 62
  9. 2024Multi-modal Agent Tuning: Building a VLM-Driven Agent for Efficient Tool Usagecited by 51
  10. 2023CLOVA: A Closed-Loop Visual Assistant with Tool Usage and Updatecited by 43
  11. 2025Reflective Planning: Vision-Language Models for Multi-Stage Long-Horizon Robotic Manipulationcited by 42
  12. 2023Demo2Code: From Summarizing Demonstrations to Synthesizing Code via Extended Chain-of-Thoughtcited by 39
  13. 2024VLM See, Robot Do: Human Demo Video to Robot Action Plan via Vision Language Modelcited by 37
  14. 2023Pretrained Language Models as Visual Planners for Human Assistancecited by 28
  15. 2025LoHoVLA: A Unified Vision-Language-Action Model for Long-Horizon Embodied Taskscited by 26
  16. 2025ManipBench: Benchmarking Vision-Language Models for Low-Level Robot Manipulationcited by 24
  17. 2025Iterative Tool Usage Exploration for Multimodal Agents via Step-wise Preference Tuningcited by 19
  18. 2020Modeling Long-horizon Tasks as Sequential Interaction Landscapescited by 14
  19. 2025Robotic Programmer: Video Instructed Policy Code Generation for Robotic Manipulationcited by 11
  20. 2024FetchBench: A Simulation Benchmark for Robot Fetchingcited by 9
  21. 2023Robust Visual Imitation Learning with Inverse Dynamics Representationscited by 8
  22. 2024VLMimic: Vision Language Models are Visual Imitation Learner for Fine-grained Actionscited by 8
  23. 2025REMAC: Self-Reflective and Self-Evolving Multi-Agent Collaboration for Long-Horizon Robot Manipulationcited by 8
  24. 2022Imitrob: Imitation Learning Dataset for Training and Evaluating 6D Object Pose Estimatorscited by 3
  25. 2020Understanding Action Sequences based on Video Captioning for Learning-from-Observationcited by 2

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025OSVI-WM: One-Shot Visual Imitation for Unseen Tasks using World-Model-Guided Trajectory Generation
  2. 2025ManiLong-Shot: Interaction-Aware One-Shot Imitation Learning for Long-Horizon Manipulation
  3. 2023MimicPlay: Long-Horizon Imitation Learning by Watching Human Play
  4. 2021The Surprising Effectiveness of Representation Learning for Visual Imitation
  5. 2025From Watch to Imagine: Steering Long-horizon Manipulation via Human Demonstration and Future Envisionment
  6. 2026ICLR: In-Context Imitation Learning with Visual Reasoning
  7. 2025Learning Compositional Behaviors from Demonstration and Language
  8. 2026Learning Task and Motion Plans from Real Demonstrations with Hybrid Flow Matching