Zero-Shot Instruction Following in RL via Structured LTL Representations
Mathias Jackermeier, Mattia Giuri, Jacques Cloete, Alessandro Abate
TL;DR
This work tackles zero-shot instruction following in multi-task reinforcement learning by using formal task specifications in linear temporal logic (LTL). The authors introduce StructLTL, which represents LTL instructions as sequences of Boolean formulae derived from transitions in Büchi automata (LDBA), and learns a structured task representation with a hierarchical DNF encoder and a temporal attention mechanism to reason about future subgoals. Trained with PPO and curriculum learning, StructLTL demonstrates strong generalisation to unseen LTL formulas and outperforms state-of-the-art baselines on ZoneEnv and Warehouse tasks, particularly on complex specifications. The method advances compositional generalisation for temporally extended RL tasks and offers a scalable approach for safe, instruction-following agents in high-dimensional environments, with avenues for real-world labelling function learning and safety-focused extensions.
Abstract
We study instruction following in multi-task reinforcement learning, where an agent must zero-shot execute novel tasks not seen during training. In this setting, linear temporal logic (LTL) has recently been adopted as a powerful framework for specifying structured, temporally extended tasks. While existing approaches successfully train generalist policies, they often struggle to effectively capture the rich logical and temporal structure inherent in LTL specifications. In this work, we address these concerns with a novel approach to learn structured task representations that facilitate training and generalisation. Our method conditions the policy on sequences of Boolean formulae constructed from a finite automaton of the task. We propose a hierarchical neural architecture to encode the logical structure of these formulae, and introduce an attention mechanism that enables the policy to reason about future subgoals. Experiments in a variety of complex environments demonstrate the strong generalisation capabilities and superior performance of our approach.
