#4749·lerobot

Reading LeRobotDataset for pre-training dataset analysis — two conventions that make it hard, and a request

Author: aslansdCreated Sep 24, 2026Updated Sep 28, 2026
Labelsquestionpoliciesdatasettraining

Summary

I have been building a tool that reads a LeRobotDataset and reports distributional properties of the demonstrations before any training — whether there are competing strategies, coverage gaps, or channels carrying no signal. It reads the on-disk format directly (meta/info.json plus the parquet files) rather than importing lerobot, so it needs only pyarrow and runs on a CPU. v2.1 and v3.0 layouts both work; episodes are separated on the episode_index column.

Repository: https://github.com/aslansd/raftaar · Apache-2.0

I have run it over aloha_sim_transfer_cube_human, aloha_sim_insertion_human, pusht, an SO-100 community dataset and droid (50 episodes each). Two things came up that are about the format rather than about any dataset, and one question I cannot answer from the outside.

1. There is no way to identify the gripper channel generically

Segmenting an episode into phases is much more informative when the gripper is known, since open/close transitions are natural boundaries. I currently find it by matching feature names against a list (gripper, grip, jaw, …), which works on the datasets above but is guesswork.

The failure is instructive: on pusht — a 2-D pushing task with no gripper at all — an earlier version fell back to "the last channel is the gripper", picked the agent's y coordinate, and segmented phases on it. It reported a confident, meaningless result. I have since made it refuse rather than guess, but a format-level convention would remove the guess entirely.

Would a semantic or role annotation per feature in info.json be something you would consider? Even an optional one would let downstream tooling stop pattern-matching on names.

2. Joint space versus task space is not declared

To compare "did these two episodes take different routes", I need position-like columns. For ee_x/ee_y/ee_z datasets that is unambiguous. For a joint-space arm I fall back to the first three joints, which is defensible but is not a position — and the distinction changes how any result should be read. There is currently nothing in info.json that says which space the state is in.

3. The request: does anyone know a dataset that definitely contains two competing strategies?

This is what I actually need. The failure mode I care most about is a dataset where operators solved the same task two incompatible ways — half reaching around an obstacle one side, half the other — because a regression policy trained on it converges to the average, and the average is a path nobody demonstrated.

I can generate this synthetically and detect it reliably. On the five hub datasets above my detector is quiet, and I cannot currently tell whether that is because those datasets are genuinely unimodal or because thresholds tuned on synthetic data do not transfer. Those two possibilities look identical from where I am sitting.

So: does anyone know of a hub dataset that is known to contain multimodal or inconsistent demonstrations? Even one, with a rough idea of which episodes differ, would let me calibrate against reality instead of against my own simulator. I would publish the result either way, including if it turns out the method does not transfer.

Happy to move this under the LeRobot org or contribute it as a script in-tree if that is more useful than a separate package.