Add dataset card and documentation for ReMemBench
#1
by nielsr HF Staff - opened
README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- robotics
|
| 4 |
+
tags:
|
| 5 |
+
- manipulation
|
| 6 |
+
- imitation-learning
|
| 7 |
+
- visuomotor-policies
|
| 8 |
+
- short-term-memory
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# ReMemBench: Scaling Short-Term Memory of Visuomotor Policies for Long-Horizon Tasks
|
| 12 |
+
|
| 13 |
+
[**[Project Page]**](https://shahrutav.github.io/short-term-memory/)   [**[Paper]**](https://huggingface.co/papers/2606.16178)   [**[GitHub]**](https://github.com/ShahRutav/ReMemBench)
|
| 14 |
+
|
| 15 |
+
ReMemBench is a benchmark consisting of eight diverse household manipulation tasks spanning four categories of short-term memory, designed to foster general memory mechanisms in robotic visuomotor policies. Built upon [RoboCasa](https://robocasa.ai/), it provides expert teleoperated demonstrations for training and evaluating policies in long-horizon tasks.
|
| 16 |
+
|
| 17 |
+
## Task Categories
|
| 18 |
+
|
| 19 |
+
Tasks are organized by memory type. Each task is provided with 50 expert demonstrations for training.
|
| 20 |
+
|
| 21 |
+
| Task Name | Memory Category | Task Variants |
|
| 22 |
+
|-----------|----------------|---------------|
|
| 23 |
+
| **Retrieve Fruit**<br/>Remember fruit location (out of view). | **Spatial Memory**<br/>*Recall object locations* | `MemFruitInSinkLeftFar`<br/>`MemFruitInSinkRightFar` |
|
| 24 |
+
| **Retrieve Oil**<br/>Remember oil bottle location among distractors. | **Spatial Memory**<br/>*Recall object locations* | `MemRetrieveOilsFromCounterLL`<br/>`MemRetrieveOilsFromCounterLR`<br/>`MemRetrieveOilsFromCounterRL`<br/>`MemRetrieveOilsFromCounterRR` |
|
| 25 |
+
| **Cook Meat**<br/>Remember cooking duration while waiting. | **Prospective Memory**<br/>*Retain intentions over delay* | `MemHeatPot` |
|
| 26 |
+
| **Cook Meat and Vegetable**<br/>Remember multiple timed actions. | **Prospective Memory**<br/>*Retain intentions over delay* | `MemHeatPotMultiple` |
|
| 27 |
+
| **Wash and Return to Container**<br/>Remember which saucer (left/right) the fruit came from. | **Object-Associative Memory**<br/>*Recall associations* | `MemWashAndReturnLeft`<br/>`MemWashAndReturnRight` |
|
| 28 |
+
| **Wash and Return to Original Spot**<br/>Remember original countertop location. | **Object-Associative Memory**<br/>*Recall associations* | `MemWashAndReturnSameLocation` |
|
| 29 |
+
| **Microwave Breadsticks**<br/>Remember count of breadsticks moved. | **Object-Set Memory**<br/>*Maintain/update sets* | `MemPutKBreadInMicrowave` |
|
| 30 |
+
| **Relocate Bowls**<br/>Remember count of bowls among distractors. | **Object-Set Memory**<br/>*Maintain/update sets* | `MemPutKBowlInCabinet` |
|
| 31 |
+
|
| 32 |
+
## Data Downloading
|
| 33 |
+
|
| 34 |
+
You can download the dataset using the `huggingface-cli`:
|
| 35 |
+
|
| 36 |
+
```bash
|
| 37 |
+
huggingface-cli download Rutav/ReMemBench-Dataset \
|
| 38 |
+
--repo-type dataset \
|
| 39 |
+
--local-dir ReMemBench-Dataset \
|
| 40 |
+
--local-dir-use-symlinks False
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
## Dataset Structure
|
| 44 |
+
|
| 45 |
+
The dataset is organized by task name, with each task containing demonstration sessions in HDF5 format.
|
| 46 |
+
|
| 47 |
+
### File Structure
|
| 48 |
+
```
|
| 49 |
+
ReMemBench-Dataset/
|
| 50 |
+
βββ MemFruitInSinkLeftFar/
|
| 51 |
+
βββ MemHeatPot/
|
| 52 |
+
β βββ [timestamp]/
|
| 53 |
+
β β βββ demo.hdf5
|
| 54 |
+
β β βββ demo_im128.hdf5 # Image version
|
| 55 |
+
βββ ...
|
| 56 |
+
βββ task_embeds_clip_v3.pickle
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
### HDF5 File Structure (`demo_im128.hdf5`)
|
| 60 |
+
- **`actions`**: (T, 12) - [7D arm, 4D base, 1D mode]
|
| 61 |
+
- **`obs`**:
|
| 62 |
+
- `robot0_joint_pos_cos` / `robot0_joint_pos_sin`: (T, 7) - Joint position encoding
|
| 63 |
+
- `robot0_gripper_qpos`: (T, 2) - Gripper position
|
| 64 |
+
- `robot0_agentview_center_image`: (T, 128, 128, 3) - RGB third-person view
|
| 65 |
+
- `robot0_eye_in_hand_image`: (T, 128, 128, 3) - RGB eye-in-hand view
|
| 66 |
+
- **`rewards`**, **`dones`**, **`states`**: Standard simulation signals
|
| 67 |
+
|
| 68 |
+
## Exploring the Data
|
| 69 |
+
|
| 70 |
+
To visualize demonstrations, use the `replay_dataset.py` script from the [official repository](https://github.com/ShahRutav/ReMemBench):
|
| 71 |
+
|
| 72 |
+
```bash
|
| 73 |
+
python robocasa/scripts/replay_dataset.py \
|
| 74 |
+
--hdf5_path ReMemBench-Dataset/MemHeatPot/[timestamp]/demo_im128.hdf5 \
|
| 75 |
+
--episode_idx 0 \
|
| 76 |
+
--render
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
## Converting to LeRobot Dataset Format
|
| 80 |
+
|
| 81 |
+
A conversion script is provided in the repository to port the data to [LeRobot](https://github.com/huggingface/lerobot) format:
|
| 82 |
+
|
| 83 |
+
```bash
|
| 84 |
+
python robocasa/scripts/port_to_lerobot.py \
|
| 85 |
+
--dataset_path ReMemBench-Dataset/MemHeatPot/[timestamp]/demo_im128.hdf5 \
|
| 86 |
+
--repo_name your_hf_username/MemHeatPot
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
## Citation
|
| 90 |
+
|
| 91 |
+
```bibtex
|
| 92 |
+
@article{shah2024scaling,
|
| 93 |
+
title={Scaling Short-Term Memory of Visuomotor Policies for Long-Horizon Tasks},
|
| 94 |
+
author={Shah, Rutav and others},
|
| 95 |
+
journal={arXiv preprint arXiv:2606.16178},
|
| 96 |
+
year={2024}
|
| 97 |
+
}
|
| 98 |
+
```
|