S$^{2}$-Diffusion: Generalizing From Instance-Level to Category-Level Skills in Robot Manipulation

Quantao Yang, Michael C. Welle, Danica Kragic, Olov Andersson · DOI

TL;DR

This paper introduces S$^{2}$-Diffusion, a novel approach that enables robots to generalize manipulation skills from specific examples to entire categories of objects and tasks. By combining semantic understanding from language models with spatial information from depth estimation, S$^{2}$-Diffusion allows robots to perform tasks like scooping or wiping on new instances they haven't seen before, without retraining. This is a significant step towards more adaptable and human-like robotic capabilities.

What Problem Does This Paper Address?

Current robot learning methods, particularly imitation learning, often struggle with generalization. When a robot learns a skill from demonstrations, it typically learns to perform that exact task with the specific objects and environment shown. If you try to teach a robot to scoop rice, it might learn to scoop rice perfectly, but then fail if you ask it to scoop cereal. This is because the learned skill is "instance-level" – tied to the specific training example – rather than "category-level," which would understand the general concept of scooping granular material. This limitation requires extensive retraining for every new object or slight variation, making robots brittle and impractical for real-world, dynamic environments. Humans, on the other hand, can easily transfer skills like "scooping" from rice to cereal, demonstrating a much higher level of generalization.

Methods

The core of S$^{2}$-Diffusion lies in its innovative representation of observations for a diffusion policy. Instead of relying solely on raw RGB images, S$^{2}$-Diffusion leverages two powerful pre-trained Vision-Language Models (VLMs):

  • Grounded-SAM2: This model performs open-vocabulary semantic segmentation. It can identify and segment objects based on text descriptions (e.g., "scoop rice," "wipe whiteboard"), even for categories not explicitly seen during its own training. This provides a semantic understanding of the scene.
  • Depth Anything V2: This model estimates depth from a single RGB image, providing crucial spatial information about the scene's geometry.

These two models work together to create a Spatial-Semantic Representation. This representation combines the semantic masks from Grounded-SAM2 with the depth information from Depth Anything V2. This fused representation is then fed into a denoising diffusion policy, which learns to predict robot actions. The diffusion policy is trained to denoise random actions, gradually producing a clean action sequence. By conditioning this denoising process on the rich spatial-semantic representation (along with robot proprioception), the policy learns to focus on task-relevant features and ignore irrelevant variations like object color or background texture, thus enabling generalization.

Datasets

The paper uses existing datasets for training and evaluation:

  • RoboCasa: A large-scale simulation environment providing expert demonstrations for various everyday tasks (e.g., serving mugs, closing doors, scooping). The authors used this for simulation experiments.
  • SAPIEN: Another simulator used for specific tasks like "HangMug" and "InsertPencil."
  • Real-world demonstrations: The authors collected their own demonstrations for whiteboard-wiping and bowl-to-bowl scooping tasks using a Franka Panda manipulator. These demonstrations were used to train the S$^{2}$-Diffusion policy and its baselines.

Key Insights and Ideas

  • Semantic + Spatial = Generalization: The paper strongly suggests that combining semantic understanding (what is it?) with spatial understanding (where is it and what's its shape?) is key to achieving category-level generalization in robot manipulation.
  • Leveraging Foundation Models: The success hinges on the power of large, pre-trained VLMs like Grounded-SAM2 and Depth Anything V2. These models provide robust, generalizable features that can be adapted to new tasks and objects with minimal task-specific training data.
  • Instance-Level Training for Category-Level Skills: The core idea is to train on a few specific instances of a task and achieve generalization to many unseen instances within the same category, without needing to collect demonstrations for every single variation.
  • Open-Vocabulary is Crucial: The ability to use text prompts to define what to segment (e.g., "cereal bowl") allows the system to adapt to new object categories on the fly, rather than being limited to a predefined set of object classes.

Key Results

  • Simulation: S$^{2}$-Diffusion consistently achieved the highest success rates across various tasks in RoboCasa, outperforming baseline methods like BC-RNN, BC-Transformer, and the original Diffusion Policy. For instance, on the "ServeMug" task, S$^{2}$-Diffusion achieved a 0.80 success rate, significantly higher than the baseline's 0.15.
  • Real-World Whiteboard Wiping: When trained on red scribbles, the baseline diffusion policy failed completely on green scribbles (0% success), while S$^{2}$-Diffusion maintained a high success rate.
  • Real-World Bowl-to-Bowl Scooping: S$^{2}$-Diffusion showed strong generalization to unseen granular materials (choco-cereal, hearts-cereal, mixed-cereal) after being trained on rice, achieving success rates around 0.8, whereas the baseline diffusion policy often achieved 0% success.
  • Ablation Studies: Removing either the semantic or spatial component significantly degraded performance, highlighting the importance of both modalities. The full S$^{2}$-Diffusion model outperformed models trained with only semantic or only spatial information.
  • Robustness: The method demonstrated robustness to variations in object color and background, and even showed promise in handling transparent objects.

Limitations and Future Work

  • Category Boundaries: The method struggles to generalize across different categories of tasks (e.g., from bowl-to-bowl scooping to sand-pile-to-container). Future work could explore how to bridge these broader category gaps.
  • VLM Dependency: The performance is dependent on the quality of the pre-trained VLMs and the accuracy of the text prompts used for segmentation. Poor semantic or spatial estimates can hinder generalization. Fine-tuning VLMs jointly with the policy is suggested as a future direction.
  • Nuanced Skills: More complex functional goals might require finer-grained skill ontologies beyond simple category distinctions.
  • Real-time Efficiency: While the method is described as efficient and real-time viable, further exploration of computational trade-offs for mobile deployment could be beneficial.

Summary updated

BibTeX
@article{yang2025s,
  author = {Quantao Yang and Michael C. Welle and Danica Kragic and Olov Andersson},
  title = {{S$^\{2\}$-Diffusion: Generalizing From Instance-Level to Category-Level Skills in Robot Manipulation}},
  journal = {IEEE Robotics and Automation Letters},
  year = {2025},
  doi = {10.1109/lra.2025.3625497},
}
Figure