Language-Conditioned Change-point Detection to Identify Sub-Tasks in Robotics Domains

Divyanshu Raj, Chitta Baral, Nakul GopalanarXiv 2023 · DOI

Abstract

Identifying discrete sub-tasks within long-horizon robotic demonstrations is a critical step toward building generalizable and reusable robotic skills. This paper adapts video moment retrieval techniques to the robotics domain, treating sub-task identification as a language-conditioned change-point detection problem. By fusing visual features with the robot's discrete action history, the proposed model accurately segments complex trajectories based on natural language instructions. Experimental results on the ALFRED dataset demonstrate that incorporating action intent significantly improves segmentation accuracy, achieving an [email protected] score of 85.1%.

Introduction

In robotics, "long-horizon" tasks—such as "Go to the kitchen, find the yellow vase, and put it on the desk"—present significant challenges for standard end-to-end control policies. These "black box" approaches often fail to explicitly map specific instructions to corresponding segments of movement, making it difficult for robots to reuse sub-skills like "picking up an object" in novel contexts.

To address this lack of granularity, this research frames sub-task identification as a change-point detection problem. By enabling a robot to analyze a long demonstration and precisely locate the temporal boundaries of a specific sub-task (e.g., identifying that "pick up" occurred between seconds 10 and 15), the system can better categorize and learn individual skills for future deployment.

Methodology

The authors approach robot sub-task identification by leveraging video moment retrieval techniques, typically used in computer vision to find specific clips within long videos based on text queries.

Multi-Modal Feature Fusion

The core of the approach lies in a multi-modal feature extraction pipeline. As illustrated in Figure 1, the model integrates three distinct data streams:

  1. Visual Features: Semantic information is extracted via CLIP, while motion-based features are captured using SlowFast networks.
  2. Action Features: The sequence of discrete actions taken by the robot (e.g., MoveAhead, RotateLeft, PickUp) provides a history of intent.
  3. Language Features: CLIP embeddings are used to represent the natural language instructions.
The multi-modal feature fusion process, combining visual frames, discrete actions, and language embeddings into concatenated trajectory features.

Architecture and Training

The model adapts Moment-DETR, a transformer-based architecture. An encoder fuses the trajectory and language features, while a decoder predicts the "center" and "width" of the sub-task segment. Training is guided by a combination of L1 loss and generalized IoU (Intersection over Union) for boundary precision, supplemented by a saliency loss to highlight the most relevant moments within a demonstration.

Experimental Setup

The study utilizes the ALFRED (Action Learning From Realistic Environments and Directives) dataset. The researchers transformed ALFRED's 25,000 household task demonstrations into a change-point detection benchmark by mapping sequential low-level instructions to specific time-stamped segments. The resulting processed dataset contains 6.8k trajectories and 146.1k low-level language instructions.

Results and Discussion

The inclusion of discrete actions proved to be the "secret sauce" for performance. While video frames provide visual context, they often struggle to capture the subtle transition from "approaching an object" to "interacting with it." The best-performing model, utilizing CLIP, SlowFast, and action features, reached an [email protected] score of 85.1%, representing a 1.78% improvement over baseline methods.

Sample Complexity

A key finding of the study is the relationship between data volume and precision. As shown in Figure 2, the model is capable of learning basic segmentation with very little data (40.7% [email protected] with only 2% of the training set). However, achieving high-precision results (>80%) requires thousands of demonstrations. This highlights a significant hurdle for real-world deployment where high-quality demonstration data is often expensive to collect.

Performance metrics ([email protected] and [email protected]) as a function of the percentage of training data used, showing significant scaling with more demonstrations.

Conclusion

This work demonstrates that "moment retrieval" techniques from computer vision can be effectively ported to the robotics domain to identify sub-tasks. While the model excels at identifying segments in simulated environments like ALFRED, future work is needed to address real-world sensor noise and integrate these identified segments into active planning or reinforcement learning loops. Reducing the sample complexity required for high-precision segmentation remains a primary goal for making this technology viable for physical robotic systems.

Summary updated

Abstract

In this work, we present an approach to identify sub-tasks within a demonstrated robot trajectory using language instructions. We identify these sub-tasks using language provided during demonstrations as guidance to identify sub-segments of a longer robot trajectory. Given a sequence of natural language instructions and a long trajectory consisting of image frames and discrete actions, we want to map an instruction to a smaller fragment of the trajectory. Unlike previous instruction following works which directly learn the mapping from language to a policy, we propose a language-conditioned change-point detection method to identify sub-tasks in a problem. Our approach learns the relationship between constituent segments of a long language command and corresponding constituent segments of a trajectory. These constituent trajectory segments can be used to learn subtasks or sub-goals for planning or options as demonstrated by previous related work. Our insight in this work is that the language-conditioned robot change-point detection problem is similar to the existing video moment retrieval works used to identify sub-segments within online videos. Through extensive experimentation, we demonstrate a $1.78_{\pm 0.82}\%$ improvement over a baseline approach in accurately identifying sub-tasks within a trajectory using our proposed method. Moreover, we present a comprehensive study investigating sample complexity requirements on learning this mapping, between language and trajectory sub-segments, to understand if the video retrieval-based methods are realistic in real robot scenarios.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
ALFRED · Transformed ALFRED datasetLanguage-conditioned change-point detection with trajectory t_2 (videos and discrete actions)[email protected]2.1%split: test · trajectory=videos-and-discrete-actions
Source quote
L147: We have done two ablation studies to understand how to best detect the changepoint. The first study is shown in Table \ref{tab:my-table-2} in which we have shown the impact of defining our trajectory in different ways. We defined trajectory in two ways, where first the trajectory t_1 is just represented by videos v and the trajectory feature is the same as video feature E-t1 = E_v \in \mathcal{R} ((L_v/2) × 2816), and the second trajectory t_2 is defined as the combination of videos v and discrete actions a, where L_v = L_a, trajectory feature E-t2 \in \mathcal{R} ((l_v/2) × 3328). We have used the first trajectory definition t1 as our baseline result here. We observe that there has been 2.1% improvement in the mean value for [email protected] and 2.1% improvement for [email protected] for changepoint detection. We also show significant improvement for highlight detection with 3.2% improvement for mAP and 5.2% improvement for HIT@1. This shows the significance of discrete actions discussed in natural language in detecting sub-segments of a trajectory.
ALFRED · Transformed ALFRED datasetLanguage-conditioned change-point detection with trajectory t_2 (videos and discrete actions)[email protected]2.1%split: test · trajectory=videos-and-discrete-actions
Source quote
L147: We have done two ablation studies to understand how to best detect the changepoint. The first study is shown in Table \ref{tab:my-table-2} in which we have shown the impact of defining our trajectory in different ways. We defined trajectory in two ways, where first the trajectory t_1 is just represented by videos v and the trajectory feature is the same as video feature E-t1 = E_v \in \mathcal{R} ((L_v/2) × 2816), and the second trajectory t_2 is defined as the combination of videos v and discrete actions a, where L_v = L_a, trajectory feature E-t2 \in \mathcal{R} ((l_v/2) × 3328). We have used the first trajectory definition t1 as our baseline result here. We observe that there has been 2.1% improvement in the mean value for [email protected] and 2.1% improvement for [email protected] for changepoint detection. We also show significant improvement for highlight detection with 3.2% improvement for mAP and 5.2% improvement for HIT@1. This shows the significance of discrete actions discussed in natural language in detecting sub-segments of a trajectory.
BibTeX
@misc{raj2023language,
  author = {Divyanshu Raj and Chitta Baral and Nakul Gopalan},
  title = {{Language-Conditioned Change-point Detection to Identify Sub-Tasks in Robotics Domains}},
  year = {2023},
  eprint = {2309.00743},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.00743},
}
Figure