Ground-Compose-Reinforce: Grounding Language in Agentic Behaviours using Limited Data
Andrew C. Li, Toryn Q. Klassen, Andrew Wang, Parand A. Alamdari, Sheila A. McIlraith
TL;DR
Ground-Compose-Reinforce (GCR) presents a neurosymbolic RL framework that grounds high-level task specifications into executable behaviours by composing Reward Machines with limited data, eliminating the need for handcrafted rewards or external oracles. The method first learns symbol grounding from a small labeled dataset, then uses compositional RM structures to generate self-supervised rewards for RL, aided by a novel compositional reward shaping scheme built from primitive value functions. Results in GeoGrid and DrawerWorld show strong task elicitation and zero-shot generalization to unseen RM compositions, with reward shaping crucial for long-horizon tasks. An optional NL interface demonstrates zero-shot autoformalization of natural language rewards into RM specifications, highlighting a path toward NL-driven, data-efficient task specification for embodied agents.
Abstract
Grounding language in perception and action is a key challenge when building situated agents that can interact with humans, or other agents, via language. In the past, addressing this challenge has required manually designing the language grounding or curating massive datasets that associate language with the environment. We propose Ground-Compose-Reinforce, an end-to-end, neurosymbolic framework for training RL agents directly from high-level task specifications--without manually designed reward functions or other domain-specific oracles, and without massive datasets. These task specifications take the form of Reward Machines, automata-based representations that capture high-level task structure and are in some cases autoformalizable from natural language. Critically, we show that Reward Machines can be grounded using limited data by exploiting compositionality. Experiments in a custom Meta-World domain with only 350 labelled pretraining trajectories show that our framework faithfully elicits complex behaviours from high-level specifications--including behaviours that never appear in pretraining--while non-compositional approaches fail.
