ep int64 0 118 | side stringclasses 2
values | frames int64 466 750 | DROP int64 3 158 | drop_s float64 0.1 5.27 | drop_pct float64 0.5 22.9 | kept int64 393 655 | trail int64 0 161 | trail_s float64 0 5.37 | interior_max int64 0 47 | interior_max_s float64 0 1.57 | interior_runs int64 0 2 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0 | left | 626 | 87 | 2.9 | 13.9 | 539 | 26 | 0.87 | 0 | 0 | 0 |
1 | left | 668 | 72 | 2.4 | 10.8 | 596 | 102 | 3.4 | 0 | 0 | 0 |
2 | left | 665 | 94 | 3.13 | 14.1 | 571 | 59 | 1.97 | 2 | 0.07 | 0 |
3 | left | 643 | 98 | 3.27 | 15.2 | 545 | 28 | 0.93 | 0 | 0 | 0 |
4 | left | 641 | 85 | 2.83 | 13.3 | 556 | 56 | 1.87 | 6 | 0.2 | 0 |
5 | left | 612 | 95 | 3.17 | 15.5 | 517 | 45 | 1.5 | 0 | 0 | 0 |
6 | left | 739 | 106 | 3.53 | 14.3 | 633 | 57 | 1.9 | 3 | 0.1 | 0 |
7 | left | 747 | 102 | 3.4 | 13.7 | 645 | 33 | 1.1 | 11 | 0.37 | 0 |
8 | left | 700 | 95 | 3.17 | 13.6 | 605 | 57 | 1.9 | 0 | 0 | 0 |
9 | left | 745 | 114 | 3.8 | 15.3 | 631 | 32 | 1.07 | 20 | 0.67 | 1 |
10 | left | 712 | 107 | 3.57 | 15 | 605 | 51 | 1.7 | 3 | 0.1 | 0 |
11 | left | 683 | 151 | 5.03 | 22.1 | 532 | 38 | 1.27 | 1 | 0.03 | 0 |
12 | left | 652 | 105 | 3.5 | 16.1 | 547 | 46 | 1.53 | 1 | 0.03 | 0 |
13 | left | 689 | 158 | 5.27 | 22.9 | 531 | 102 | 3.4 | 0 | 0 | 0 |
14 | left | 651 | 118 | 3.93 | 18.1 | 533 | 70 | 2.33 | 0 | 0 | 0 |
15 | left | 750 | 128 | 4.27 | 17.1 | 622 | 0 | 0 | 6 | 0.2 | 0 |
16 | left | 718 | 90 | 3 | 12.5 | 628 | 25 | 0.83 | 0 | 0 | 0 |
17 | left | 731 | 112 | 3.73 | 15.3 | 619 | 27 | 0.9 | 6 | 0.2 | 0 |
18 | left | 743 | 115 | 3.83 | 15.5 | 628 | 48 | 1.6 | 0 | 0 | 0 |
19 | left | 670 | 98 | 3.27 | 14.6 | 572 | 27 | 0.9 | 0 | 0 | 0 |
20 | left | 707 | 100 | 3.33 | 14.1 | 607 | 42 | 1.4 | 4 | 0.13 | 0 |
21 | left | 750 | 105 | 3.5 | 14 | 645 | 80 | 2.67 | 7 | 0.23 | 0 |
22 | left | 750 | 126 | 4.2 | 16.8 | 624 | 111 | 3.7 | 2 | 0.07 | 0 |
23 | left | 750 | 111 | 3.7 | 14.8 | 639 | 20 | 0.67 | 0 | 0 | 0 |
24 | left | 727 | 108 | 3.6 | 14.9 | 619 | 71 | 2.37 | 2 | 0.07 | 0 |
25 | left | 717 | 117 | 3.9 | 16.3 | 600 | 42 | 1.4 | 7 | 0.23 | 0 |
26 | left | 684 | 106 | 3.53 | 15.5 | 578 | 45 | 1.5 | 5 | 0.17 | 0 |
27 | left | 747 | 111 | 3.7 | 14.9 | 636 | 79 | 2.63 | 0 | 0 | 0 |
28 | left | 750 | 101 | 3.37 | 13.5 | 649 | 77 | 2.57 | 4 | 0.13 | 0 |
29 | left | 632 | 102 | 3.4 | 16.1 | 530 | 56 | 1.87 | 4 | 0.13 | 0 |
30 | left | 714 | 104 | 3.47 | 14.6 | 610 | 39 | 1.3 | 1 | 0.03 | 0 |
31 | left | 630 | 94 | 3.13 | 14.9 | 536 | 48 | 1.6 | 2 | 0.07 | 0 |
32 | left | 694 | 98 | 3.27 | 14.1 | 596 | 51 | 1.7 | 3 | 0.1 | 0 |
33 | left | 611 | 105 | 3.5 | 17.2 | 506 | 69 | 2.3 | 5 | 0.17 | 0 |
34 | left | 618 | 130 | 4.33 | 21 | 488 | 36 | 1.2 | 0 | 0 | 0 |
35 | left | 614 | 91 | 3.03 | 14.8 | 523 | 52 | 1.73 | 1 | 0.03 | 0 |
36 | left | 605 | 88 | 2.93 | 14.5 | 517 | 64 | 2.13 | 6 | 0.2 | 0 |
37 | left | 623 | 89 | 2.97 | 14.3 | 534 | 53 | 1.77 | 0 | 0 | 0 |
38 | left | 591 | 100 | 3.33 | 16.9 | 491 | 29 | 0.97 | 8 | 0.27 | 0 |
39 | left | 625 | 93 | 3.1 | 14.9 | 532 | 72 | 2.4 | 3 | 0.1 | 0 |
40 | left | 662 | 86 | 2.87 | 13 | 576 | 45 | 1.5 | 6 | 0.2 | 0 |
41 | left | 750 | 95 | 3.17 | 12.7 | 655 | 161 | 5.37 | 3 | 0.1 | 0 |
42 | left | 684 | 106 | 3.53 | 15.5 | 578 | 74 | 2.47 | 1 | 0.03 | 0 |
43 | left | 581 | 83 | 2.77 | 14.3 | 498 | 36 | 1.2 | 3 | 0.1 | 0 |
44 | left | 661 | 111 | 3.7 | 16.8 | 550 | 59 | 1.97 | 0 | 0 | 0 |
45 | left | 618 | 111 | 3.7 | 18 | 507 | 65 | 2.17 | 0 | 0 | 0 |
46 | left | 617 | 108 | 3.6 | 17.5 | 509 | 77 | 2.57 | 0 | 0 | 0 |
47 | left | 750 | 138 | 4.6 | 18.4 | 612 | 72 | 2.4 | 0 | 0 | 0 |
48 | left | 750 | 121 | 4.03 | 16.1 | 629 | 98 | 3.27 | 1 | 0.03 | 0 |
49 | left | 605 | 83 | 2.77 | 13.7 | 522 | 31 | 1.03 | 12 | 0.4 | 0 |
50 | left | 626 | 97 | 3.23 | 15.5 | 529 | 65 | 2.17 | 0 | 0 | 0 |
51 | left | 636 | 108 | 3.6 | 17 | 528 | 58 | 1.93 | 4 | 0.13 | 0 |
52 | left | 750 | 100 | 3.33 | 13.3 | 650 | 120 | 4 | 0 | 0 | 0 |
53 | left | 694 | 115 | 3.83 | 16.6 | 579 | 44 | 1.47 | 0 | 0 | 0 |
54 | left | 624 | 114 | 3.8 | 18.3 | 510 | 54 | 1.8 | 5 | 0.17 | 0 |
55 | left | 646 | 121 | 4.03 | 18.7 | 525 | 34 | 1.13 | 1 | 0.03 | 0 |
56 | left | 683 | 118 | 3.93 | 17.3 | 565 | 38 | 1.27 | 3 | 0.1 | 0 |
57 | left | 668 | 109 | 3.63 | 16.3 | 559 | 42 | 1.4 | 3 | 0.1 | 0 |
58 | left | 630 | 107 | 3.57 | 17 | 523 | 39 | 1.3 | 1 | 0.03 | 0 |
59 | right | 569 | 59 | 1.97 | 10.4 | 510 | 22 | 0.73 | 4 | 0.13 | 0 |
60 | right | 615 | 3 | 0.1 | 0.5 | 612 | 23 | 0.77 | 47 | 1.57 | 2 |
61 | right | 585 | 73 | 2.43 | 12.5 | 512 | 20 | 0.67 | 1 | 0.03 | 0 |
62 | right | 478 | 40 | 1.33 | 8.4 | 438 | 25 | 0.83 | 0 | 0 | 0 |
63 | right | 477 | 46 | 1.53 | 9.6 | 431 | 18 | 0.6 | 0 | 0 | 0 |
64 | right | 497 | 50 | 1.67 | 10.1 | 447 | 35 | 1.17 | 0 | 0 | 0 |
65 | right | 491 | 41 | 1.37 | 8.4 | 450 | 0 | 0 | 1 | 0.03 | 0 |
66 | right | 509 | 34 | 1.13 | 6.7 | 475 | 34 | 1.13 | 1 | 0.03 | 0 |
67 | right | 471 | 40 | 1.33 | 8.5 | 431 | 43 | 1.43 | 3 | 0.1 | 0 |
68 | right | 533 | 63 | 2.1 | 11.8 | 470 | 38 | 1.27 | 15 | 0.5 | 1 |
69 | right | 524 | 57 | 1.9 | 10.9 | 467 | 44 | 1.47 | 3 | 0.1 | 0 |
70 | right | 548 | 53 | 1.77 | 9.7 | 495 | 65 | 2.17 | 3 | 0.1 | 0 |
71 | right | 534 | 25 | 0.83 | 4.7 | 509 | 24 | 0.8 | 15 | 0.5 | 1 |
72 | right | 471 | 21 | 0.7 | 4.5 | 450 | 47 | 1.57 | 0 | 0 | 0 |
73 | right | 481 | 30 | 1 | 6.2 | 451 | 48 | 1.6 | 0 | 0 | 0 |
74 | right | 520 | 46 | 1.53 | 8.8 | 474 | 55 | 1.83 | 5 | 0.17 | 0 |
75 | right | 495 | 25 | 0.83 | 5.1 | 470 | 25 | 0.83 | 8 | 0.27 | 0 |
76 | right | 559 | 43 | 1.43 | 7.7 | 516 | 28 | 0.93 | 4 | 0.13 | 0 |
77 | right | 522 | 25 | 0.83 | 4.8 | 497 | 38 | 1.27 | 3 | 0.1 | 0 |
78 | right | 514 | 28 | 0.93 | 5.4 | 486 | 26 | 0.87 | 9 | 0.3 | 0 |
79 | right | 560 | 37 | 1.23 | 6.6 | 523 | 44 | 1.47 | 1 | 0.03 | 0 |
80 | right | 517 | 53 | 1.77 | 10.3 | 464 | 43 | 1.43 | 0 | 0 | 0 |
81 | right | 512 | 52 | 1.73 | 10.2 | 460 | 32 | 1.07 | 3 | 0.1 | 0 |
82 | right | 493 | 27 | 0.9 | 5.5 | 466 | 39 | 1.3 | 2 | 0.07 | 0 |
83 | right | 564 | 23 | 0.77 | 4.1 | 541 | 51 | 1.7 | 0 | 0 | 0 |
84 | right | 532 | 21 | 0.7 | 3.9 | 511 | 52 | 1.73 | 2 | 0.07 | 0 |
85 | right | 617 | 44 | 1.47 | 7.1 | 573 | 40 | 1.33 | 6 | 0.2 | 0 |
86 | right | 550 | 24 | 0.8 | 4.4 | 526 | 46 | 1.53 | 0 | 0 | 0 |
87 | right | 562 | 35 | 1.17 | 6.2 | 527 | 46 | 1.53 | 0 | 0 | 0 |
88 | right | 597 | 42 | 1.4 | 7 | 555 | 43 | 1.43 | 4 | 0.13 | 0 |
89 | right | 574 | 42 | 1.4 | 7.3 | 532 | 30 | 1 | 4 | 0.13 | 0 |
90 | right | 617 | 29 | 0.97 | 4.7 | 588 | 43 | 1.43 | 0 | 0 | 0 |
91 | right | 607 | 23 | 0.77 | 3.8 | 584 | 51 | 1.7 | 3 | 0.1 | 0 |
92 | right | 635 | 66 | 2.2 | 10.4 | 569 | 45 | 1.5 | 7 | 0.23 | 0 |
93 | right | 550 | 31 | 1.03 | 5.6 | 519 | 36 | 1.2 | 11 | 0.37 | 0 |
94 | right | 599 | 84 | 2.8 | 14 | 515 | 82 | 2.73 | 6 | 0.2 | 0 |
95 | right | 603 | 63 | 2.1 | 10.4 | 540 | 91 | 3.03 | 14 | 0.47 | 0 |
96 | right | 589 | 68 | 2.27 | 11.5 | 521 | 44 | 1.47 | 0 | 0 | 0 |
97 | right | 586 | 42 | 1.4 | 7.2 | 544 | 34 | 1.13 | 0 | 0 | 0 |
98 | right | 559 | 23 | 0.77 | 4.1 | 536 | 24 | 0.8 | 14 | 0.47 | 0 |
99 | right | 530 | 25 | 0.83 | 4.7 | 505 | 32 | 1.07 | 4 | 0.13 | 0 |
phi_so101_8bin_v1 — opening-pause trim table
Companion to BrutalCaesar/phi_so101_8bin_v1.
This is not a dataset. It is a 119-row table plus the script that produced it. The original dataset is unmodified and remains authoritative. Applying this table excludes each episode's pre-teleop dead air as a chunk start point, without deleting a single frame from disk.
Why
Every episode begins with the arm sitting still while the operator has not yet moved the leader. Measured: 8,722 of 72,518 frames (12.0%). Left-side episodes averaged 3.53 s of dead air (72-158 frames), right-side 1.38 s (3-103 frames).
Those frames are a problem for a single-timestep policy like ACT. The arm is stationary and the scene
is static, so every dead frame is a near-identical observation, yet the recorded action differs
depending on how long the operator happened to wait. Worse, at inference the policy has no clock: it
predicts "hold still", nothing moves, so the next observation is the same, so it predicts "hold still"
again. That is an absorbing state and the arm can freeze for the whole rollout. With chunk_size=50
(50 frames) the risk is concentrated on the left side, where the shortest pause is 72 frames.
How the cut is defined
DROP = the first frame index where any joint has moved more than 1.0° from its start pose:
DROP = argmax_t ( max_j |action[t,j] - action[0,j]| > 1.0 )
Cumulative, so it is immune to per-frame jitter, and because it takes the first crossing it can never extend past the beginning of real motion into an interior pause.
A per-frame movement threshold was tried and rejected. Servo jitter plus the operator's hand resting on the leader exceeds 0.1°/frame from frame 1 in 57 of 119 episodes, so a per-frame test reports a 1-frame pause where the arm has in fact not moved for 100+ frames.
Evidence the cut is safe
Changing the threshold by 20× moves the total cut by only 1.5 percentage points:
| threshold | frames dropped |
|---|---|
| 0.5° | 8,404 (11.6%) |
| 1.0° | 8,722 (12.0%) |
| 2.0° | 8,849 (12.2%) |
| 5.0° | 9,185 (12.7%) |
| 10.0° | 9,471 (13.1%) |
The boundary is sharp, so it lands on genuine dead air rather than slow task motion.
What is deliberately NOT trimmed
- Interior pauses. Only 4 of 119 episodes have any interior static run ≥ 0.5 s. Deleting interior frames would be actively harmful: an action chunk is N contiguous frames, so removing interior frames teaches trajectories with teleport jumps no arm can execute.
- Trailing pauses. Present in 117 of 119 episodes (left mean 1.9 s, right 1.2 s). These sit at the end pose with the object already in the box, so they do not recreate the opening absorbing state, and stopping when the task is done is desirable.
How to use it
Trim at the sampler, not the data. Exclude the first DROP frames of each episode as chunk start
points:
import csv
from torch.utils.data import DataLoader, SubsetRandomSampler
import torch
from lerobot.datasets.lerobot_dataset import LeRobotDataset
drop = {}
with open("deadtime_per_episode.csv") as f:
for r in csv.DictReader(f):
drop[int(r["ep"])] = int(r["DROP"])
ds = LeRobotDataset("BrutalCaesar/phi_so101_8bin_v1", episodes=my_episodes,
delta_timestamps=my_delta_timestamps)
froms = list(ds.meta.episodes["dataset_from_index"])
tos = list(ds.meta.episodes["dataset_to_index"])
a2r = ds.absolute_to_relative_idx
idx = []
for ep in ds.episodes:
lo, hi, d = int(froms[ep]), int(tos[ep]), drop[int(ep)]
assert 0 <= d < (hi - lo)
idx.extend(a2r[i] for i in range(lo + d, hi))
loader = DataLoader(ds, batch_size=8, num_workers=6,
sampler=SubsetRandomSampler(idx, generator=torch.Generator().manual_seed(1000)))
Apply it to both train and validation splits. Untrimmed validation contains ~12% frames whose correct answer is "do not move", which is trivially easy and deflates the reported loss. Trimmed validation reads higher but means something, and is not numerically comparable to untrimmed validation.
deadtime.py regenerates the table from the parquet files and reports the sensitivity analysis above.
Effect on ACT training
Measured on 2 cameras (physical wrist excluded), 80k steps, batch 8, lr 1e-5, seed 1000, chunk 50/75/100.
Comparison uses eval-mode scoring on both splits (dropout off, z=0), paired on identical frames.
| chunk | untrimmed val L1 | trimmed val L1 | neutral baseline |
|---|---|---|---|
| 50 | 0.1653 | 0.1782 | ~0.189 |
| 75 | 0.2072 | 0.2067 | ~0.237 |
| 100 | 0.2389 | 0.2385 | ~0.274 |
The neutral baseline is what validation would read if the trim changed only the exam and not the model (untrimmed best ÷ 0.873, since 12.7% of val frames were removed and scored near zero). All three came in under it, so the model improved on matched-difficulty frames.
Caveats, stated plainly. Single seed, so these margins are not established. And the real purpose of the trim, stopping the arm freezing at episode start, can only be verified on hardware.
Contents
| file | what it is |
|---|---|
deadtime_per_episode.csv |
119 rows: ep, side, frames, DROP, drop_s, drop_pct, kept, trail, trail_s, interior_max, interior_max_s, interior_runs |
deadtime.py |
the audit script that produced it, including the threshold sensitivity check |
Produced for the Φ (Physical Hardware Intelligence) robotics SIG at Northeastern Silicon Valley.
- Downloads last month
- 10