Introduction
Reinforcement Learning (RL) has long struggled with the "long-horizon" problem. While an agent might excel at a single, discrete task like "open a door," executing a complex sequence—such as "go to the kitchen, find an apple, microwave it, and put it on the table"—often leads to a combinatorial explosion of possible actions. To address this, researchers utilize skills: temporally extended actions that serve as reusable building blocks. However, autonomously discovering these skills from expert demonstrations remains a significant challenge in the field.
A new framework, LAST (LAnguage-guided Skill Training), introduces a novel approach to this problem. By leveraging the common-sense reasoning of Large Language Models (LLMs) alongside the mathematical rigor of Information Theory, LAST discovers reusable, semantically meaningful skills that significantly accelerate learning in complex environments.
The Segmentation-Merging Trade-off
The core difficulty in skill discovery lies in the segmentation-merging trade-off. If a trajectory is segmented too finely (e.g., every individual step is a skill), the agent fails to achieve meaningful abstraction. Conversely, if segments are too broad (e.g., the entire trajectory is treated as one skill), the resulting behavior is too specific to be reused in different contexts.
Existing methods often struggle with this balance, frequently getting trapped in local optima. Furthermore, the search space for slicing a long sequence of actions is exponential. Without a strong prior, an agent cannot distinguish whether "walking three steps" is a meaningful skill or if "walking to the fridge" is the appropriate level of abstraction.
The LAST Framework
LAST addresses these challenges through a three-step pipeline designed to refine raw trajectories into compressed, generalizable skills.
1. Initial Segmentation with LLMs
Rather than starting from scratch, LAST utilizes LLMs (such as GPT-4) to provide a "rough draft" segmentation. By providing the task goal and the sequence of actions, the LLM generates a fine-grained initial segmentation (typically 1-5 actions per segment) accompanied by language descriptions. This step drastically narrows the search space by providing a high-resolution starting point based on human-like reasoning.
2. Temporal Variational Inference
In the refinement stage, a hierarchical model determines which of the LLM's initial segments should be merged into larger, more reusable skills. This process employs a Multi-modal Variational Encoder, which analyzes the entire trajectory, to train a Causal Encoder. Because the Causal Encoder only observes the past, it ensures the agent can effectively deploy these discovered skills during online testing when future actions are unknown.
3. Minimum Description Length (MDL) Objective
To prevent the model from simply memorizing specific trajectories, LAST incorporates an auxiliary loss based on the Minimum Description Length (MDL) principle. This objective encourages the model to find the "shortest description" of the data. In practice, this forces the agent to identify common patterns—reusable skills—that can efficiently describe a wide variety of trajectories. This simplicity bias ensures that the discovered skills are fundamental to the environment rather than overfit to specific demonstrations.
Experimental Evaluation
Researchers evaluated LAST on two primary benchmarks: BabyAI, a grid-world navigation environment, and ALFRED, a challenging household simulation involving high-dimensional visual inputs and long-horizon tasks.
Key Results
- Zero-shot Success: On BabyAI, LAST achieved a 43% average success rate on new tasks, outperforming state-of-the-art baselines such as LOVE (37%) and LISA (36%).
- Solving Long-Horizon Tasks: In the ALFRED environment, standard RL (such as SAC) failed to solve any complex downstream tasks. In contrast, LAST achieved positive success rates across five out of six complex task categories, including difficult sequences like "Pick, clean, then place."
- Semantic Grounding: The discovered skills proved to be highly interpretable. Because the initial segments were grounded in language, the resulting latent skills aligned with human concepts. For instance, one discovered skill consistently represented "taking something out of an open receptacle," regardless of the specific object involved.
Insights and Future Directions
LAST demonstrates that LLMs are most effective when used as heuristic guides rather than absolute oracles. By assuming that a skill will never split an LLM-generated segment—only merge them—the complexity of the inference problem becomes manageable.
While the current framework relies on discrete action tokens and high-performing LLMs, future iterations could expand this to continuous robotic control. Additionally, the integration of Video Foundation Models could allow for initial segmentation directly from visual observations, potentially removing the dependency on text-based action descriptions. By bridging the gap between high-level linguistic reasoning and low-level motor control, LAST provides a robust path forward for autonomous agents in complex, real-world environments.
Summary updated