Modeling Long-horizon Tasks as Sequential Interaction Landscapes

Sören Pirk, Karol Hausman, Alexander Toshev, Mohi Khansari

TL;DR

Planning and executing long-horizon manipulation tasks remains one of robotics' toughest challenges due to combinatorial complexity and environmental uncertainty. This paper proposes a two-layer framework that translates visual observations directly into abstract action symbols using a sequence-to-sequence model, which then triggers low-level dynamical motion primitives. By decoupling high-level sequence reasoning from continuous geometric control, the system executes multi-step tasks and dynamically adapts to disruptions in closed-loop operation on a physical 7-DoF robot arm.

What Problem Does This Paper Address?

End-to-end sensorimotor policies (mapping directly from raw pixels to motor torques) struggle when tasks span hundreds of steps across diverse objects. In these settings, the policy must resolve both the combinatorial “what to do next” and the continuous physical “how to do it” under severe partial observability.

Purely symbolic or geometric planners often lack visual grounding and fail when real-world objects deviate from rigid assumptions. Conversely, video-prediction-based visual foresight is computationally bounded to only a few future frames. The authors tackle this gap: how can an agent learn structured, long-term sequential dependencies between subtasks purely from demonstration videos while retaining closed-loop visual adaptability?

Methods

The authors adopt a two-tier hierarchical framework that mirrors neural machine translation:

[Camera Frames] ──> [ResNet50 Embedding (16-D)] 
                ──> [Seq2Seq LSTM] ──> [Action Symbols (2 Hz)]
                                              │
               ┌──────────────────────────────┘
               ▼
   [Parametric DSP Primitives (20 Hz)] ──> [Robot Arm Controls]
        ▲
        └── [Mask R-CNN Object Poses]
  1. Visual Embedding: A pretrained ResNet50 with an added 16-dimensional classification bottleneck compresses raw input frames into continuous compact embeddings representing the current scene state.
  2. High-Level Symbolic Translation: A sequence-to-sequence model (encoder-decoder LSTM with a 256-dimensional latent space) treats manipulation as translation, mapping sliding windows of past visual embeddings into discrete action symbols (e.g., open door, move cup, approach ball).
  3. Low-Level Motor Execution: Action symbols trigger Dynamical Systems Policies (DSPs)—parameterized motion primitives trained from roughly five kinesthetic demonstrations. A visual perception module (Mask R-CNN) extracts 6D Cartesian object poses, parameterizing the DSP so primitives can be reused across different positions and objects.
  4. Dual-Rate Control: The low-level DSP runs at 20 Hz to handle real-time compliance and trajectory execution, while the high-level symbolic translation runs at 2 Hz, constantly monitoring incoming frames and dynamically switching or re-queuing primitives if the environment changes.

Datasets

The authors evaluated their pipeline on two distinct experimental setups:

  • Robotic Manipulation Dataset: 791 teleoperated demonstration sequences (130–890 frames each) of a 7-DoF arm interacting with a cup, a ball, and a sliding cabinet. Tasks span four tiers of complexity: from moving a ball into a cup (Manipulation C), to opening/closing cabinet doors and handling both objects (Manipulation ABCDEF).
  • Block Stacking Dataset: 287 sequences (150–450 frames each) of human demonstrations assembling five uniquely colored Tetris-like blocks into a predefined stack.
  • Novel Annotation Pipeline: To eliminate tedious manual labeling, the authors embedded Bluetooth-enabled Inertial Measurement Units (IMUs) inside each block, fusing linear acceleration and angular velocity to automatically extract discrete action symbols whenever an object was manipulated.

Key Insights and Ideas

  • Combinatorial "Interaction Landscapes": Factoring complex tasks into discrete action symbols insulates high-level planning from low-level physical minutiae (e.g., exact grasp poses), turning an intractable continuous optimization problem into an efficient sequence translation problem.
  • Seq2Seq Outperforms Standard Recurrent Baselines on Task Grammar: While a standard attention-augmented LSTM achieves competitive raw frame-to-frame symbol classification, it often predicts illegal sequence transitions. The sequence-to-sequence encoder-decoder model accurately captures the underlying "grammar" of the task (e.g., recognizing that the cabinet door must be opened before a cup can be placed inside).
  • Closed-Loop Failure Recovery: Because the 2 Hz planner continually re-evaluates scene embeddings, execution is not an open-loop script. If an adversarial human interferes mid-task—for instance, taking a ball out of a cup and hiding it back inside the cabinet—the model dynamically re-predicts the necessary retrieval symbols to get the plan back on track.

Key Results

  • Sequence Prediction Accuracy: On the Manipulation ABCDEF task, the Seq2Seq model achieved an 18.02% structure error (sequence length 20), vastly outperforming a standard many-to-many LSTM baseline (45.23% structure error).
  • Physical Robot Execution: Across 20 trials per task setting on the 7-DoF arm:
  • Manipulation C: 90.0% success rate.
  • Manipulation ABC: 85.0% success rate.
  • Manipulation ABCD: 80.0% success rate.
  • Manipulation ABCDEF: 80.0% success rate.
  • In the most complex scenario (ABCDEF), the system successfully recovered from unexpected symbol execution slips or environmental disturbances in 8 out of 20 trials, converting would-be failures into successful executions.

Limitations and Future Work

  • Supervision Overhead: The approach relies on discrete action annotations per video frame. While embedded IMUs automated this for rigid blocks, scaling to arbitrary deformable or un-instrumented objects remains an open question.
  • Goal Conditioning: The current network is not explicitly conditioned on a goal state or language instruction; it implicitly executes the task distribution demonstrated during training. Conditioning predictions on goal images or task embeddings is a natural next step.
  • Horizon Limits: While effectively scaling beyond single-step primitives, scaling to hundreds of distinct subtasks will likely require hierarchical sequence models or Transformers tailored for long contexts.

Summary updated

BibTeX
@inproceedings{pirk2020modeling,
  author = {Sören Pirk and Karol Hausman and Alexander Toshev and Mohi Khansari},
  title = {{Modeling Long-horizon Tasks as Sequential Interaction Landscapes}},
  booktitle = {Conference on Robot Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=fDHw1ARcpu},
}
Figure