Skip to content
Robotics.world

Research

ObstaDiff: Generalizable Diffusion Policy Learning via Obstacle-aware Representations

Imitation-learning policies often work well on clean tabletop scenes but struggle when a target is surrounded by unstructured obstacles such as stems, leaves, and foliage.

The paper’s first page · arXiv:2609.10918
arXiv
2609.10918 · accepted · CORL
Published
2026-09-10
Authors
Jiawen Wang, Kevin Yao, Khalid Jawed

In plain words

Imitation-learning policies often work well on clean tabletop scenes but struggle when a target is surrounded by unstructured obstacles such as stems, leaves, and foliage. Standard visual encoders mix target, obstacle, and background information into one latent representation, so the policy receives no explicit signal about what to reach and what to avoid.

AI summary

Overview

Research area: Robotics, specifically visual imitation learning, diffusion policies, and obstacle-aware manipulation in cluttered agricultural environments.
Technical level: Intermediate. The paper assumes familiarity with imitation learning, diffusion models, and visuomotor policies, but its main ideas are accessible without following the full mathematical formulation.
Scope: The paper introduces ObstaDiff, a diffusion-policy framework that uses a structured target–obstacle–background representation to improve obstacle-aware reaching and generalization in a real greenhouse testbed.

What This Paper Is About

Imitation-learning policies often work well on clean tabletop scenes but struggle when a target is surrounded by unstructured obstacles such as stems, leaves, and foliage. Standard visual encoders mix target, obstacle, and background information into one latent representation, so the policy receives no explicit signal about what to reach and what to avoid. ObstaDiff addresses this by converting eye-in-hand RGB-D observations into separate target, obstacle, background, and depth channels, then learning an alignment policy that approaches the target while accounting for nearby obstacles.

Key Contributions

  1. Obstacle-aware structured representation. The paper introduces a target–obstacle–background (TOB) observation built from three binary semantic masks plus a normalized depth image. A lightweight structured encoder processes the semantic and depth channels separately, preserving their roles instead of treating the input as a generic RGB-D image.
  2. Modular decomposed policy framework. Manipulation is split into a learned diffusion-based alignment stage and a replay-based interaction stage. The alignment policy drives the robot toward a target-centered bottleneck pose, after which a data-driven nearest-neighbor rule selects a demonstrated interaction trajectory from a replay library. Changing the replay library allows different close-range objectives without retraining the alignment policy.
  3. Real-robot validation in a cluttered greenhouse setting. ObstaDiff is evaluated on 61 real-robot trials per method, or 366 executions across six methods, covering target-pose, obstacle-layout, and target-appearance generalization. It achieves 75.41% mean task success and an 8.20% mean obstacle collision rate.

Main Findings

  • Best overall success rate: ObstaDiff reaches 75.41% mean task success across 61 pooled trials, compared with 45.90% for ACT (RGB) and 49.18% for DP (RGB).
  • Lowest average collision rate: ObstaDiff records an 8.20% mean obstacle collision rate, versus 14.75% for ACT (RGB) and 26.23% for DP (RGB).
  • Best in every generalization setting: ObstaDiff achieves 75.00% success on Target-Pose Generalization (20 trials), 71.43% on Obstacle-Layout Generalization (21 trials), and 80.00% on Target-Appearance Generalization (20 trials). Its corresponding collision rates are 5.00%, 19.05%, and 0.00%.
  • Depth alone does not solve obstacle avoidance: Adding depth to the standard Diffusion Policy encoder, DP (RGB-D), raises mean success only from 49.18% to 50.82%, one additional successful trial out of 61, and leaves the mean collision rate unchanged at 26.23%. DP (RGB) and DP (RGB-D) have identical collision counts in every setting: 7/20, 7/21, and 2/20.
  • TOB without the structured encoder also does not help: DP (TOB), which uses the same four-channel TOB input as ObstaDiff but the standard encoder, reaches 45.90% mean success and a 27.87% collision rate. Under obstacle-layout shift it records 38.10% success and a 38.10% collision rate, both 8/21. The paper attributes the remaining 29.5-point success gap between DP (TOB) and ObstaDiff to the structured encoder.
  • TOB affects non-diffusion policies differently: ACT (TOB) reduces mean collision rate from 14.75% to 11.48% and improves smoothness from 1.16 to 0.77, but mean success falls from 45.90% to 40.98%. The authors conclude that lower validation loss or structured input alone does not guarantee higher task success.
  • Faster successful approaches: ObstaDiff has a mean task completion time of 15.57 s over successful target-pose trials, compared with 18.17–20.77 s for the baseline methods. Its trajectory smoothness value is 1.13; ACT (TOB) is smoother at 0.77, while the other baselines range from 1.19 to 1.35.
  • Qualitative behavior: Baseline policies tend to move directly toward the target and contact nearby plants in cluttered layouts. ObstaDiff more often aligns with target-centered free space before entering the bottleneck region.
  • DP3 is not quantitatively evaluated: The authors report that DP3 could not be deployed reliably with a moving eye-in-hand camera and dense foliage because of unstable point-cloud registration, cropping, and sampling. No DP3 numerical results are reported.

Methodology in Plain English

The robot used a 7-DoF Sawyer arm with an eye-in-hand Intel RealSense D455 RGB-D camera. The target was a pepper fruit, and the surrounding obstacle plants created narrow, irregular passages.

The researchers first collected 90 expert alignment demonstrations using the Sawyer’s gravity-compensation teaching mode. All demonstrations used a purple pepper target and were evenly distributed across three obstacle configurations, with 30 target-pose demonstrations per configuration. A separate replay library contained 26 trajectories from the bottleneck pose to task completion, defined as touching the target pepper.

For perception, a fine-tuned YOLOv8s-Worldv2 open-vocabulary detector identified the target and obstacle regions. MobileSAM refined detected obstacle boxes into pixel-accurate masks. The resulting labels formed three binary masks: background, obstacle, and target. These masks were concatenated with a normalized depth image to produce a four-channel input at 240 × 320 resolution.

Instead of feeding this input to a standard image backbone such as ResNet-18, ObstaDiff uses a structured encoder with two branches. The semantic branch processes the three masks, and the depth branch processes the depth channel. Each branch uses four convolutional blocks followed by spatial softmax, which converts feature maps into keypoint-like coordinates rather than dense image features. The semantic branch outputs 64 values, the depth branch outputs 32 values, and these are concatenated with the 7-D end-effector pose to form a 103-D conditioning vector per observation step. With two observation steps, the diffusion policy receives a 206-D conditioning vector.

The alignment policy is a conditional diffusion policy trained to predict a 16-action sequence. At deployment, the first 8 actions are executed before re-planning. The policy is trained with the same 90 demonstrations, two observation steps, 250 epochs, and 100 diffusion steps for training and inference across the diffusion variants.

To switch from alignment to interaction, ObstaDiff compares the current target state, represented by the target center in image coordinates and a target depth estimate, against the initial target states stored in the replay library. A replay entry becomes eligible once the live target depth has entered its acceptable range at least once. Among eligible entries, the system selects the one with the smallest normalized image-plane error and begins replaying its interaction trajectory. This avoids relying on eye-in-hand depth during close-range contact, where depth measurements can be unreliable.

The evaluation used three settings. Target-Pose Generalization used 10 target positions and two orientations, giving 20 trials. Obstacle-Layout Generalization used three obstacle orderings and seven obstacle positions, giving 21 trials. Target-Appearance Generalization used two unseen green pepper varieties with 10 poses each, giving 20 trials. The primary metric was task success rate; the paper also reports obstacle collision rate, task completion time over successful target-pose trials, and trajectory smoothness over successful target-pose trials.

Why This Matters

The paper shows that how visual observations are structured can matter more than simply adding depth or semantic channels. By making target and obstacle roles explicit, ObstaDiff improves both task success and collision avoidance under target-pose shifts, obstacle rearrangements, and unseen target appearances. The decomposed design also offers a practical deployment pattern: learned visual alignment handles the approach, while replay handles close-range interaction where depth sensing is less reliable.

Real-world applications include:

  • Greenhouse harvesting: Reaching a specific fruit through dense foliage while avoiding stems and neighboring plants.
  • Crop inspection and phenotyping: Touching or closely inspecting a selected fruit or plant part in a cluttered canopy.
  • Household assistance: Reaching objects on cluttered shelves or counters without disturbing surrounding items.
  • Logistics and bin picking: Approaching a target item in unstructured clutter where collisions with neighboring objects matter.

For industry, the work is relevant to agricultural robotics, warehouse automation, and service robotics. It suggests that task-structured perception can reduce reliance on hand-engineered pipelines and improve safety-related behavior, measured here as a lower obstacle collision rate. The replay-based interaction stage also points to a modular way to adapt a single learned alignment policy to different close-range tasks.

Future Directions

  • Autonomous target selection and task planning: The current system relies on human- or prompt-specified targets. The authors propose integrating vision-language models for autonomous target selection.
  • Mobile manipulation: The paper lists extension to mobile manipulation as future work.
  • Learning contact-rich interaction: Only the alignment stage is learned; interaction is replayed from demonstrations. Learning or adapting the interaction stage would extend the method beyond obstacle-aware approach behavior.
  • Broader evaluation and point-cloud comparison: The evaluation is limited to one indoor greenhouse testbed, three obstacle plant species, and one target crop. Comparing with point-cloud policies in the moving eye-in-hand regime remains open.

Target Audience

This paper is most useful for robotics researchers and graduate students working on imitation learning, diffusion policies, and visuomotor manipulation. It is also relevant to engineers building agricultural robotics or cluttered-scene manipulation systems, and to practitioners interested in structured perception representations that improve generalization and obstacle avoidance without relying on hand-engineered planning pipelines.

Authors’ abstract

Imitation learning has achieved impressive results in robotic manipulation, yet most existing approaches assume clean backgrounds and lack explicit mechanisms for obstacle-aware motion generation. Extending such policies to cluttered, real-world scenes with unstructured obstacles remains a key generalization challenge. We present ObstaDiff, a decomposed diffusion-policy framework with a lightweight obstacle-aware visual encoder. ObstaDiff extracts a structured…

The full abstract on arXiv
Read the original paper

Related papers