Grounding Language Plans in Demonstrations Through Counterfactual Perturbations
Yanwei Wang, Tsun-Hsuan Wang, Jiayuan Mao, Michael Hagenow, Julie Shah
TL;DR
The paper addresses grounding common-sense language plans from LLMs into embodied robot behavior by introducing GLiDE, which represents task structure as discrete mode families and grounds language-based plans through end-to-end learning. It augments a small set of demonstrations with counterfactual perturbations, prompts LLMs to extract a $K$-mode plan and a feasibility matrix $F^K$, and trains a differentiable mode classifier $\phi(s)$ along with per-mode policies, optionally using a pseudo-attractor to improve robustness. Key contributions include demonstration augmentation with counterfactuals, explanation-based learning to recover mode boundaries, and a grounding operator that enables interpretable replanning and reactive policies across 2D navigation, Robosuite tasks, and real-robot experiments. The approach enhances interpretability and reactivity in imitation learning and offers a pathway to grounding semantic language in physical action spaces with limited labeled data, potentially improving robustness under perturbations in embodied AI.
Abstract
Grounding the common-sense reasoning of Large Language Models (LLMs) in physical domains remains a pivotal yet unsolved problem for embodied AI. Whereas prior works have focused on leveraging LLMs directly for planning in symbolic spaces, this work uses LLMs to guide the search of task structures and constraints implicit in multi-step demonstrations. Specifically, we borrow from manipulation planning literature the concept of mode families, which group robot configurations by specific motion constraints, to serve as an abstraction layer between the high-level language representations of an LLM and the low-level physical trajectories of a robot. By replaying a few human demonstrations with synthetic perturbations, we generate coverage over the demonstrations' state space with additional successful executions as well as counterfactuals that fail the task. Our explanation-based learning framework trains an end-to-end differentiable neural network to predict successful trajectories from failures and as a by-product learns classifiers that ground low-level states and images in mode families without dense labeling. The learned grounding classifiers can further be used to translate language plans into reactive policies in the physical domain in an interpretable manner. We show our approach improves the interpretability and reactivity of imitation learning through 2D navigation and simulated and real robot manipulation tasks. Website: https://yanweiw.github.io/glide
