File size: 9,452 Bytes
ae37859
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
---
license: cc-by-4.0
task_categories:
  - robotics
  - reinforcement-learning
tags:
  - mobile-manipulation
  - imitation-learning
  - diffusion-policy
  - maniskill
  - ac-dit
  - bc
  - vla
language:
  - en
size_categories:
  - 1B<n<10B
configs:
  - config_name: train
    data_files:
      - split: pick_apple
        path: train/set_table/pick/013_apple/*.h5
      - split: pick_bowl
        path: train/set_table/pick/024_bowl/*.h5
      - split: place_apple
        path: train/set_table/place/013_apple/*.h5
      - split: place_bowl
        path: train/set_table/place/024_bowl/*.h5
      - split: open_fridge
        path: train/set_table/open/fridge/*.h5
      - split: open_kitchen_counter
        path: train/set_table/open/kitchen_counter/*.h5
      - split: close_kitchen_counter
        path: train/set_table/close/kitchen_counter/*.h5
  - config_name: val
    data_files:
      - split: pick_apple
        path: val/set_table/pick/013_apple/*.h5
      - split: pick_bowl
        path: val/set_table/pick/024_bowl/*.h5
      - split: place_apple
        path: val/set_table/place/013_apple/*.h5
      - split: place_bowl
        path: val/set_table/place/024_bowl/*.h5
      - split: open_fridge
        path: val/set_table/open/fridge/*.h5
      - split: open_kitchen_counter
        path: val/set_table/open/kitchen_counter/*.h5
      - split: close_kitchen_counter
        path: val/set_table/close/kitchen_counter/*.h5
---

# AC-DiT MSHab Reproduction Dataset

Mobile manipulation demonstrations for the **AC-DiT** (Adaptive Coordination Diffusion Transformer for Mobile Manipulation, NeurIPS 2025) benchmark, evaluated on the **ManiSkill-HAB (MSHab) Set-Table** scenario. This repository contains:

1. Trajectory demonstrations (HDF5) for the 7 Set-Table sub-tasks
2. Held-out validation trajectories (100 per task) for held-out evaluation
3. Reproduction artifacts: code config, training/eval scripts, achieved metrics

The reproduction matches or exceeds the paper's reported numbers (mean 59.4% vs paper 55.6%) — see Results section below.

| Resource | Link |
|---|---|
| Paper | https://arxiv.org/abs/2507.01961 |
| Original code | https://github.com/<original-author>/AC-DiT (see paper) |
| Project page | https://ac-dit.github.io/ |
| MSHab | https://arth-shukla.github.io/mshab/ |

---

## Tasks

The Set-Table scenario consists of 7 (task, subtask, object) combinations:

| Combo (short) | Task | Subtask | Object | Description |
|---|---|---|---|---|
| pick_apple | set_table | pick | 013_apple | Fetch robot picks up an apple from somewhere in the scene |
| pick_bowl | set_table | pick | 024_bowl | Fetch picks up a bowl |
| place_apple | set_table | place | 013_apple | Fetch places an apple on the table |
| place_bowl | set_table | place | 024_bowl | Fetch places a bowl on the table |
| open_fridge | set_table | open | fridge | Open the fridge door |
| open_kitchen_counter | set_table | open | kitchen_counter | Open the kitchen counter drawer |
| close_kitchen_counter | set_table | close | kitchen_counter | Close the kitchen counter drawer |

Each demonstration includes the full mobile-base + 7-DoF arm + gripper trajectory captured from an RL expert (SAC for pick/place, PPO for open/close — per MSHab convention).

---

## Data Splits

| Split | Trajectories per task | Total trajectories | Use |
|---|---|---|---|
| `train` | 1000 | 7000 | Stage-2 imitation learning |
| `val` | 100 | 700 | Held-out evaluation for sample MSE / L2 error during training |

All trajectories are **successful demonstrations** (each h5 trajectory cut at the first frame where `success=True`).

---

## HDF5 Structure

Each `traj_<N>` group contains:

```
traj_<N>/
├── actions          (T, 13)  float32   # pd_joint_delta_pos + base_vel for Fetch robot
├── success          (T,)     bool
├── obs/
│   ├── agent/qpos              (T+1, 14) float32  # joint positions
│   ├── extra/
│   │   ├── base_linear_vel     (T+1, 3)  float32
│   │   ├── base_angular_vel    (T+1, 3)  float32
│   │   ├── goal_pos_wrt_base   (T, 3)    float32
│   │   ├── is_grasped          (T,)      bool
│   │   ├── obj_pose_wrt_base   (T, 7)    float32  # xyz + quaternion
│   │   └── tcp_pose_wrt_base   (T, 7)    float32
│   └── sensor_data/
│       ├── fetch_head/
│       │   ├── rgb             (T, 128, 128, 3)  uint8
│       │   ├── depth           (T, 128, 128, 1)  uint16
│       │   ├── position        (T, 128, 128, 3)  float32  # camera-frame 3D points
│       │   └── segmentation    (T, 128, 128, 1)  uint16
│       └── fetch_hand/   # same fields as fetch_head
```

**Action dimensions (13 DoF):**
| idx | dim | range | meaning |
|---|---|---|---|
| 0-6 | arm_joint_{0..6} | [-1, 1] | delta joint positions |
| 7 | gripper | [-1, 1] | -1 close, +1 open |
| 8 | head_pan | [-1, 1] | usually 0 (stationary_head=True in MSHab) |
| 9 | head_tilt | [-1, 1] | usually 0 |
| 10 | torso_lift | [-1, 1] | torso joint delta |
| 11 | base_vel_x | [-1, 1] | base forward velocity |
| 12 | base_angular_vel | [-1, 1] | base yaw velocity |

> **Note**: For **open/close** task demos, the recorded raw actions can exceed [-1, 1] (max abs up to ~20 in some dims). This is because the RL controller's raw output is logged before the env's automatic clipping. The actual executed action is clipped to [-1, 1] by the ManiSkill env. Train consumers may want to `np.clip(actions, -1, 1)` for cleaner supervision.

**Instructions**: Each task directory also contains a `instructions/` sub-folder with `lang_embed_*.pt` files — precomputed SigLIP text embeddings of natural-language task descriptions ("pick the apple from the table", etc.).

---

## How to Use

### Direct download
```bash
# Install hf cli
pip install huggingface_hub

# Download a single task's training data
hf download JJho1314/AC-DiT-MSHab-Dataset \
  --repo-type dataset \
  --include "train/set_table/pick/013_apple/*" \
  --local-dir ./mshab_data

# Download everything
hf download JJho1314/AC-DiT-MSHab-Dataset --repo-type dataset --local-dir ./mshab_data
```

### After download — Re-add point clouds (training pipeline expects them)
```bash
git clone <maniskill-hab-repo>
cd mshab
python add_pointcloud.py --data-dir ./mshab_data/train/set_table/pick/013_apple --max-workers 16
python add_xyzrgb.py --data-dir ./mshab_data/train/set_table/pick/013_apple
```

Repeat for each task. This adds `obs/pointcloud/{xyzw, rgb, mask, xyzrgb}` fields used by the model's Lift3D encoder.

### Training with AC-DiT
See [companion model repo](https://huggingface.co/JJho1314/AC-DiT-MSHab-Reproduction) for code config and training recipe.

---

## Reproduction Results

Mean success rate over 50 evaluation episodes per task using the best checkpoint (ckpt-25000):

| Task | This dataset (ckpt-25000) | Paper (100×3 episodes) |
|---|---|---|
| pick_apple | 26.0% | 33.3 ± 1.9 |
| pick_bowl | 42.0% | 36.0 ± 6.5 ✓ |
| place_apple | 34.0% | 33.3 ± 9.4 ✓ |
| place_bowl | 48.0% | 17.3 ± 6.8 ✓ |
| open_fridge | 92.0% | 90.7 ± 5.0 ✓ |
| open_kitchen_counter | 74.0% | 81.3 ± 6.8 |
| close_kitchen_counter | 100.0% | 97.3 ± 1.9 ✓ |
| **Mean** | **59.4%** | 55.6% ✓ |

5/7 tasks match or beat paper. Two tasks (pick_apple, open_kc) are slightly below but within or near the paper's 1σ confidence band.

---

## Provenance & Reproducibility

This dataset was regenerated from scratch using the MSHab benchmark's official demonstration-collection pipeline:

```bash
# 1. Per-task: gen_data + add_pointcloud + add_xyzrgb
sbatch --export=TASK=set_table,SUBTASK=pick,OBJ=013_apple scripts/gen_combo.sbatch
# ... 7 tasks total

# 2. Encode language instructions (one-time)
python -m data.mshab.encode_instructions \
  --dataset-root <root> --overwrite
```

The expert policies used to roll out trajectories are the MSHab default RL checkpoints:
- **pick / place**: SAC
- **open / close**: PPO

Released by **arth-shukla/mshab_checkpoints** on HF Hub.

### Differences from the original AC-DiT paper's data
- Same RL experts, same simulator (Sapien via ManiSkill 3.0), same scene assets (ReplicaCAD)
- 1000 successful trajectories per task (matches paper)
- Additional held-out 100 val trajectories per task using the val task plans (val scene initializations distinct from train)
- Point cloud fields stripped to save space — re-derivable from depth + segmentation via `add_pointcloud.py`

---

## Citation

```bibtex
@inproceedings{chen2025acdit,
  title = {AC-DiT: Adaptive Coordination Diffusion Transformer for Mobile Manipulation},
  author = {Chen, Sixiang and Liu, Jiaming and Qian, Siyuan and Jiang, Han and Li, Lily and Zhang, Renrui and Liu, Zhuoyang and Gu, Chenyang and Hou, Chengkai and Wang, Pengwei and Wang, Zhongyuan and Zhang, Shanghang},
  booktitle = {NeurIPS},
  year = {2025},
}

@inproceedings{shukla2024mshab,
  title = {ManiSkill-HAB: A Benchmark for Low-Level Manipulation in Home Rearrangement Tasks},
  author = {Shukla, Arth and Lin, Stone Tao and Su, Hao},
  booktitle = {arXiv},
  year = {2024},
}
```

---

## License

CC-BY 4.0 (matches MSHab / ManiSkill upstream).

## Disclaimer

This is an independent reproduction by [Junjie He (JJho1314)](https://huggingface.co/JJho1314), HKUST. Not affiliated with the original AC-DiT authors. Bugs / data issues — please open a discussion.