NBDI: A Simple and Effective Termination Condition for Skill Extraction from Task-Agnostic Demonstrations

Myunsoo Kim, Hayeong Lee, Seong-Woong Shim, JunHo Seo, Byung-Jun Lee

TL;DR

NBDI (Novelty-based Decision Point Identification) improves hierarchical reinforcement learning by replacing arbitrary fixed-length skills with variable-length ones. By using state-action novelty to identify critical "decision points"—like crossroads in a maze or the completion of a subtask—NBDI allows agents to switch skills at exactly the right moment, significantly boosting performance and exploration in complex, long-horizon tasks.

The Problem with Fixed-Length Skills

In reinforcement learning (RL), solving long-horizon tasks often requires "temporal abstraction"—grouping primitive actions into higher-level "skills." While recent methods have successfully extracted these skills from offline datasets, they typically rely on fixed-length skills (e.g., every skill lasts exactly 10 steps).

This practice is a double-edged sword. If a skill is too short, the agent makes too many decisions, slowing down learning. If it's too long, the agent might "overshoot" a critical junction, such as a doorway or a point where a robot needs to change its grip. The classic "Option Framework" theoretically allows for flexible termination, but it is notoriously difficult to optimize in high-dimensional, continuous spaces. The authors aim to find a simple, unsupervised way to determine when a skill should end based on the inherent structure of the environment.

Introducing NBDI

The core of the paper is NBDI, which uses state-action novelty as a signal for skill termination.

  1. Novelty Estimation: The authors use an Intrinsic Curiosity Module (ICM) trained on task-agnostic offline data. The ICM’s prediction error serves as a proxy for novelty: if the model can't predict the next state given a state-action pair, that pair is "novel."
  2. Decision Point Identification: High novelty indicates a critical decision point. The authors decompose novelty $\chi(s, a)$ into two components:
  3. State Novelty $\chi(s)$: Identifies rare or hard-to-reach states, encouraging the agent to stop and "re-think" in unfamiliar territory.
  4. Conditional Action Novelty $\chi(a|s)$: Identifies states where many different actions were taken in the training data (e.g., a junction where some trajectories went left and others went right).
  5. Skill Extraction: They train a low-level policy and a termination distribution that triggers a stop when novelty exceeds a certain threshold.
  6. Downstream RL: Finally, they use these variable-length skills in a high-level RL agent to solve new, unseen tasks.
Visualization of critical decision points in the kitchen environment. High novelty scores occur when a subtask is finished and multiple new options become available.

Key Insights

  • Novelty as a Stop Sign: Traditionally, novelty is used as a reward to encourage exploration. NBDI flips this, using novelty as a signal to terminate a skill, allowing the high-level policy to take control at points of high uncertainty or high branching.
  • The "Aha" Moment of Junctions: Prediction errors are highest at "crossroads" or during complex manipulations. By stopping here, the agent avoids being locked into a "straight-line" skill when it actually needs to turn or change its strategy.
  • Robustness to Layout Changes: Because NBDI can use local observations, the termination condition remains effective even if the global environment changes significantly (e.g., moving from a small training maze to a massive test maze).

Experimental Results

The authors evaluated NBDI on several challenging benchmarks using task-agnostic demonstrations from the D4RL library, including Maze Navigation, a Kitchen manipulation environment, and Sparse Block Stacking.

NBDI consistently outperformed baselines that use fixed-length skills (like SPiRL) or other variable-length methods:

  • Maze 40x40: NBDI achieved a success rate of 0.25, a 177% improvement over SPiRL (0.09).
  • Kitchen: NBDI completed an average of 3.67 subtasks, whereas SPiRL managed 3.0 and flat RL baselines failed completely.
  • Block Stacking: NBDI stacked an average of 1.12 blocks in a sparse reward setting, outperforming SPiRL’s 0.67.

Limitations and Future Work

  • Data Dependency: The quality of the "decision points" depends heavily on the diversity of the offline dataset. If the demonstrations are too narrow or purely random, the novelty signal becomes noisy and less meaningful.
  • Threshold Sensitivity: While the authors provide percentile-based guidance, the novelty threshold still requires some environment-specific tuning to avoid terminating skills too frequently (which ruins temporal abstraction).
  • Future Directions: The authors suggest applying this novelty-based termination to purely offline skill execution settings, where the agent must solve tasks without any further online interaction.

Summary updated

BibTeX
@inproceedings{kim2025nbdi,
  author = {Myunsoo Kim and Hayeong Lee and Seong-Woong Shim and JunHo Seo and Byung-Jun Lee},
  title = {{NBDI: A Simple and Effective Termination Condition for Skill Extraction from Task-Agnostic Demonstrations}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=8ino4CdB6w},
}
Figure