Beyond Needle(s) in the Embodied Haystack: Environment, Architecture, and Training Considerations for Long Context Reasoning
Bosung Kim, Prithviraj Ammanabrolu
TL;DR
Real-world embodied reasoning requires reasoning over long temporal horizons, and current models struggle with extreme long-context dependencies. The authors introduce $\infty$-Thor to generate, train, and evaluate long-horizon embodied tasks and present the NiEH benchmark for multimodal, memory-intensive QA. Key contributions include a scalable trajectory-generation framework, a static NiEH QA task, a large paired trajectory dataset, and architectural strategies such as interleaved Goal–State–Action modeling, long-context extensions (YaRN, LongRoPE), and Context Parallelism. Experimental results show substantial gains from longer-context exposure during training and provide insights into model behavior and training strategies under long-horizon conditions. Overall, the work lays a reproducible foundation for robust long-horizon reasoning and planning in embodied AI, with open simulators and datasets to drive future progress.
Abstract
We introduce $\infty$-THOR, a new framework for long-horizon embodied tasks that advances long-context understanding in embodied AI. $\infty$-THOR provides: (1) a generation framework for synthesizing scalable, reproducible, and unlimited long-horizon trajectories; (2) a novel embodied QA task, Needle(s) in the Embodied Haystack, where multiple scattered clues across extended trajectories test agents' long-context reasoning ability; and (3) a long-horizon dataset and benchmark suite featuring complex tasks that span hundreds of environment steps, each paired with ground-truth action sequences. To enable this capability, we explore architectural adaptations, including interleaved Goal-State-Action modeling, context extension techniques, and Context Parallelism, to equip LLM-based agents for extreme long-context reasoning and interaction. Experimental results and analyses highlight the challenges posed by our benchmark and provide insights into training strategies and model behaviors under long-horizon conditions. Our work provides a foundation for the next generation of embodied AI systems capable of robust, long-term reasoning and planning.
