Skip to content

AgiBotWorld-Beta (LeRobot v3.0): unnormalized quaternions in ee_base/ee_camera + undocumented 18-dim pose layout #164

Open

Description

@PHM-Audit

Hi AgiBot World team,

Thanks for open-sourcing the dataset and the LeRobot conversion. We ran a deterministic physics-consistency validation on a public AgiBotWorld-Beta episode (OpenWAM/AgiBotWorld-Beta, task 676, LeRobot v3.0, 751 frames, 6 sub-episodes). One data-level finding and two documentation-level findings:

1. dim[3:7] of ee_base / ee_camera shows quaternion-like values that are NOT unit-normalized

info.json declares observation.state.ee_base / ee_camera (and the action.* counterparts) as shape=[18] without documenting the per-dimension layout. The values at dim[3:7] strongly behave like quaternions:

  • ee_base: norm min=1.000000, median=1.006959, max=1.395016; 663/751 frames (88%) deviate from 1 by >1e-3, 339 frames (45%) by >1e-2
  • ee_camera: norm median=1.248122 (25% deviation!), max=1.333676; 737/751 frames (98%) deviate by >1e-3

If dim[3:7] are indeed quaternions, consumers that assume unit quaternions (most SLAM/optimization backends, e.g. Ceres-style autodiff pipelines, and many visualization tools) will produce silently scaled/incorrect rotations. For reference, another public embodied dataset we validated (JD Gen-EgoData) has quaternion norms of exactly 1.000000 across all frames, so unit normalization is achievable at export time.

Suggest: (a) normalize quaternions in the conversion pipeline, or (b) document explicitly that they are not normalized and require re-normalization downstream. Both fine — silent is the problem.

2. The 18-dim layout of ee_base/ee_camera is undocumented

info.json only gives shape=[18]. We can infer dim[0:3] is position (range 0.18-0.86 m) and dim[3:7] quaternion-like, but the remaining 11 dims are ambiguous (rotation matrix rows? velocity? force?). A per-dimension layout table in info.json or the dataset card would remove guesswork for every consumer.

3. robot_velocity / dex semantics

observation.state.robot_velocity (shape=[3]) is all-zero in the tested episode while observation.state.joint moves up to 1.16 rad/frame — presumably a mobile-base velocity (x, y, theta) that legitimately stays zero for a tabletop task, and dex (shape=[12]) is an all-zero placeholder for the dexterous hand. Both are fine as data, but the semantics are undocumented — consumers cannot distinguish "channel legitimately zero" from "channel broken". Suggest a one-line semantic note per channel in info.json.

Positive confirmation: timestamps are strictly monotonic within each episode_index (exact 1/15 s), joint values are rad-like and physically plausible (|max| 2.32), no NaN/Inf anywhere, episode segmentation is clean. The conversion pipeline is solid — the gaps are metadata/documentation only.

Happy to contribute a validation module (quaternion normalization check, per-dimension layout linter, cross-channel timestamp alignment) that runs on any LeRobot-format AgiBot episode.

Environment: py3.12, pandas/pyarrow; tested OpenWAM/AgiBotWorld-Beta 676.tar.gz (HF public mirror).

Best,
PHM-Audit

Activity

  1. kittimzhe commented on Oct 28, 2026

    @kittimzhe

    Independent confirmation with numbers to the digit — we ran an open-source LeRobot-native QC tool (embodied-lake, elake score) over task 676 (tabular part stream-extracted from 676.tar.gz; 751 frames, 6 sub-episodes) and its new quaternion_nonunit rule reproduces finding 1 exactly:

    channel deviating frames (>1e-3) norm median matches issue
    observation.state.ee_base[3:7] 663/751 (88%) 1.0070 ✅ (663/751, 1.006959)
    observation.state.ee_camera[3:7] 737/751 (98%) 1.2481 ✅ (737/751, 1.248122)

    Two extensions beyond the report:

    1. action.ee_base[3:7] / action.ee_camera[3:7] have the same non-unit norms (663/751 @ 1.0070, 737/751 @ 1.2481) — so the fix needs to cover the action counterparts, not just observations.
    2. The frozen channels in finding 3 show up independently: observation.state.dex (12 dims all-zero), robot_velocity (3 dims all-zero), plus waist (2 dims) and robot (2 dims) never change across the episode — consistent with the placeholder interpretation.

    The rule (xyz+quat layout at dims [3:7]; components ≤1.5; stable norm CV < 0.2; median in [0.95, 1.6]) was calibrated so joint-angle groups don't false-positive: real aloha qpos[3:7] measures median norm 0.59 / CV 0.55 and stays silent, as do three other real Hub corpora. Happy to share the exact command/episode extraction (the tabular files sit at the head of each task tarball, so validation doesn't require downloading the videos) if anyone wants to re-run across more tasks.

  2. PHM-Audit commented on Oct 28, 2026

    @PHM-Audit
    Author

    Excellent — independent cross-tool replication to the digit (663/751 @ 1.0070, 737/751 @ 1.2481 against our reported 1.006959 / 1.248122) is exactly what this finding needed; between elake and our audit stream the numbers no longer depend on any single toolchain.

    The two extensions are welcome and correct the scope of our report:

    1. Action channels — we missed the action.*[3:7] counterparts entirely; the fix should indeed cover both observation and action ends, same normalization defect.
    2. Frozen channels — independent confirmation of the all-zero dex/robot_velocity and static waist/robot dims matches our placeholder reading.

    Also good discipline on the rule calibration: bounding by layout, component range, and norm CV so real qpos[3:7] groups stay silent is the difference between a rule and a false-positive generator. Following the thread — our raw detection records are available if useful for cross-checking.

  3. kittimzhe commented on Oct 28, 2026

    @kittimzhe

    Cross-task update: we re-ran the validation on a different task (705, 18 sub-episodes / 786 frames each) and the quaternion issue is not a task-676 artifact:

    • observation.state.dex[3:7] (the dexterous-hand channel — all-zero in task 676, populated here): norm deviates from 1 in 786/786 frames, median 1.1148, CV 0.001 — an extremely stable non-unit quaternion-like group
    • plus observation.state.gripper dims [0, 1] frozen at min for all frames of all 18 sub-episodes

    So the pattern holds across tasks and across channels (ee_base/ee_camera in 676, dex in 705) — supporting the "normalize in the conversion pipeline, or document per-dim layout + non-unit semantics" ask.

    For anyone who wants to audit more tasks cheaply: we packaged the tabular-head extraction + QC into a small script (scripts/validate_hub_tarball.py) — it streams a task tarball only up to the end of the tabular section (meta sits right after the data parquet) and cancels the download there, so auditing a task costs MBs instead of GBs. Happy to run it over more tasks and summarize if useful.

  4. PHM-Audit commented on Oct 28, 2026

    @PHM-Audit
    Author

    Cross-task confirmation is the strongest part of this thread: dex (populated in 705, all-zero in 676) deviating in 786/786 frames with CV 0.001 is the key number — that stability rules out data noise or marginal drift; it is a deterministic transformation defect, which is exactly why it belongs in the conversion pipeline fix (normalize at write time) rather than downstream cleaning. The frozen gripper dims on top make the layout-documentation ask concrete.

    Also, the streaming-audit script (cancelling the download after the tabular head) is a genuinely useful contribution on its own — MB-scale auditing is what makes a community-wide sweep of the corpus realistic. Running it across more tasks would turn this from two-task evidence into a coverage map; that summary would be the most useful single artifact for the maintainers deciding fix scope.

  5. PHM-Audit commented on Nov 12, 2026

    @PHM-Audit
    Author

    @kittimzhe your independent elake-based reproduction was the first third-party verification of the physics findings in this thread. If you are open to a ~15-minute trial of the dpc-bench robotics rule set (github.com/PHM-Audit/dpc-bench) against your own dataset, your results as an independent tester would be valuable third-party feedback. Published only with your consent; critical results quoted as-is.

  6. kittimzhe commented on Nov 17, 2026

    @kittimzhe

    @PHM-Audit Following up on the coverage-map suggestion — we swept a batch of task tarballs with the streaming auditor (smallest-first; tabular head only, MBs per task). Result: 7/7 successfully scanned tasks show the non-unit quaternion defect — it is corpus-wide, not task-specific:

    task sub-eps affected channels (norm median) deviating frames
    676 6 ee_base (1.007) · ee_camera (1.248) 663/751 · 737/751
    705 18 dex (1.115) 786/786
    604 49 ee_base (1.006) · ee_camera (1.316) 5,380/7,474 · 7,474/7,474
    727 114 ee_base (1.050) · ee_camera (1.038) 7,670/8,696 · 8,476/8,696
    568 16 ee_camera (1.236) 2,277/2,277
    719 88 ee_base (1.007) · ee_camera (1.274) 9,795/11,130 · 11,130/11,130
    737 82 ee_camera (1.277) 24,034/24,034

    Patterns across ~55k frames:

    • ee_camera[3:7] is affected in 7/7 tasks (medians 1.04–1.32); ee_base[3:7] in 5/7; dex[3:7] in the one task where that channel is populated (705)
    • action.* mirrors observation.state.* wherever present (same medians to 4 decimals) — consistent with your read that it's a deterministic transformation defect at write time, in both ends of the pipeline
    • Deviating-frame ratios are >88% in every hit channel; the handful of unit-norm frames look like boundary/idle frames, not a different convention

    Honest accounting: 5 further tasks (619, 730, 446, 677, 429) are unscanned, not clean — 4 hit our 240s streaming cap (their tabular data section is large enough that the head isn't cheap) and 1 stream truncated mid-read; they're recorded as failures in the snapshot JSON, and we can extend the sweep (the 227-task corpus is sweepable with more patience or a partial-download API).

    Given 7/7, the conversion-pipeline normalization ask looks unambiguous at this point. If it's useful we can keep sweeping toward full 227-task coverage and maintain the map as the fix lands (post-fix tarballs should re-score clean on the same rule).

  7. PHM-Audit commented on Nov 17, 2026

    @PHM-Audit
    Author

    @kittimzhe Cross-checked your numbers against our 2026-10-27 report on this issue: task 676 (663/751 @1.007, 737/751 @1.248) and task 705 (786/786) match bit-for-bit. Two independent implementations (your elake streaming auditor; our internal rule-table cross-check, not a distributed tool) agreeing on this sample is evidence that the rule is recomputable on the tested subset.

    On the sweep question: we consider breadth sufficient for the ask, subject to your review — 7/7 tasks, ~55k frames, >88% deviating-frame ratios per hit channel, and the honest failure accounting (unscanned != clean) carry the conversion-pipeline normalization request as well as anything recorded for this corpus so far. The higher-value next step looks like the fix anchor: freeze the current 7-task snapshot as the pre-fix baseline, and re-score post-fix tarballs with the same rule-set over the same frame sets. A "7/7 pre-fix -> 0/7 clean post-fix" delta would be the strongest closure this issue can have. Full-227 coverage would strengthen the map but is not a blocker for the ask — async background filler works if you have spare cycles.

    Thanks for the disciplined failure recording — explicit "recorded as failures, not clean" is exactly the accounting this kind of corpus work needs.

  8. kittimzhe commented on Nov 18, 2026

    @kittimzhe

    @PHM-Audit Adopted — the fix-anchor protocol is now frozen in-repo: baselines/agibot-164/ contains the pre-fix snapshot JSON, the exact rule-set + thresholds, the per-task/per-channel baseline table, and a re-score protocol with an explicit pass criterion (zero quaternion_nonunit findings on channels hit in the baseline; channels not hit pre-fix are exempt from the 0/7 claim).

    We'll treat the sweep as done per your review (breadth sufficient; full-227 as background filler if cycles allow) and stand by to re-score post-fix tarballs on the same frame sets — that 7/7 → 0/7 delta will be posted here the day the fix lands. Thanks for the careful cross-check; two independent implementations agreeing bit-for-bit on the tested subset is exactly the recomputability property the fix will be judged against.

  9. PHM-Audit commented on Nov 18, 2026

    @PHM-Audit
    Author

    @kittimzhe Verified the frozen artifacts in baselines/agibot-164/ against our 2026-10-27 report and the 2026-11-17 sweep comment.

    Consistent: the README baseline table matches the recorded values in those two sources (676: 663/751 @1.007 / 737/751 @1.248; 705: 786/786 @1.115; the sweep-table rows for 604/727/568/719/737), thresholds and the pass criterion are spelled out in the README, and the unscanned task IDs (619, 730, 446, 677, 429) with failure records match our accounting.

    One gap before a fix lands: in the frozen prefix-sweep.json, the seven scanned tasks (604, 727, 568, 719, 737 — the five failures carry no output) show quaternion_findings: [] with qc: PASS (0 issue(s)), while the README table records e.g. task 604 at 5,380/7,474 on ee_base and 7,474/7,474 on ee_camera. For the seven scanned tasks, the snapshot does not reproduce the baseline numbers it is meant to freeze — so, assuming the rule-set stays unchanged, a post-fix run returning 0 findings would not form a like-for-like delta against it, per the re-score protocol's own step that output changes require pre-fix re-runs (README.md, "Post-fix re-score protocol").

    Possible cause, unverified from the snapshot alone: the sweep runner may not be persisting per-rule findings into this JSON field. Re-running the pre-fix sweep with findings persisted, or re-emitting prefix-sweep.json from the 2026-11-17 run's raw output, should pin the baseline (to be confirmed on re-run). Happy to cross-check the re-emitted snapshot against the table once posted.

  10. kittimzhe commented on Nov 18, 2026

    @kittimzhe

    @PHM-Audit Baseline v2 addendum: the background filler was more productive than expected — retrying the five previously-unscanned tasks with a longer streaming budget added 2 more tasks, both affected:

    task sub-eps channels (norm median) deviating frames
    619 376 ee_base (1.004) · ee_camera (1.185) 29,904/36,080 · 36,080/36,080
    429 138 ee_base (1.002) · ee_camera (1.324) 14,828/25,758 · 25,758/25,758

    Running total: 9/9 scanned tasks affected, ~117,000 frames (was 7/7 / ~55k). ee_camera[3:7] remains 9/9; ee_base[3:7] now 6/9 with medians tightly clustered at 1.002–1.007 where it is hit — consistent with a normalization step applied with a different (also imperfect) reference than ee_camera's.

    Baseline frozen at baselines/agibot-164/ (prefix-sweep-v2.json, thresholds, re-score protocol). Remaining unscanned: 730, 446, 677 — all recorded as streaming-budget failures, not clean. Ready for the post-fix re-score whenever the corrected tarballs land.

  11. PHM-Audit commented on Nov 18, 2026

    @PHM-Audit
    Author

    @kittimzhe Cross-referenced the 9/9 sweep in our ledger. Three pooling notes (all point estimates from three tasks under one pipeline — treat spread comparisons as indicative, not inferential):

    1. The ee_base hit-band is narrow across tasks (676: 1.0070, 619: 1.004, 429: 1.002 — spread 0.005, possibly near rounding resolution), while ee_camera spans 1.185–1.324 (roughly an order of magnitude wider; point estimates, no error bounds).
    2. The unstable ee_base/ee_camera ratio (1.240 / 1.180 / 1.322) is inconsistent with, at point-estimate level, the strong shared-defect form where the two channels' deviations keep a fixed ratio across tasks; under a shared defect with per-task independent scaling, this evidence has little discriminating power.
    3. Frame-coverage patterns (~100% vs 83%/58% in 619/429; 88%/98% in task 676, same metric definition as our 2026-10-27 report) are compatible with the two-reference reading but do not discriminate it from thresholding and scene-content effects.

    So we would not commit to model selection at n=3. A cleaner pre-registered criterion is physical: absent other defects, a corrected reference should bring each channel's median quaternion norm (using the aggregation already defined in your baseline protocol) toward 1.000, within the tolerance already frozen in your thresholds — provisionally treating a channel that stays outside the frozen band as a first signal that its reference was not fully corrected. That gives the post-fix re-score a pre-registered, threshold-anchored criterion: the norms either return to the unit band or they do not.

    Baselines/agibot-164/ v2 acknowledged on our side. We await the upstream corrected tarballs for the post-fix re-score.

  12. kittimzhe commented on Nov 18, 2026

    @kittimzhe

    @PHM-Audit Adopted — the pre-registered physical criterion is now the protocol (baselines/agibot-164 amended): post-fix verdict per channel is three-band — unit band restored (median |norm−1| ≤ 1e-3) / residual (1e-3 < |norm−1| ≤ 1e-2) / uncorrected (> 1e-2), superseding the looser "no finding" pass. A hit-channel landing in residual/uncorrected gets flagged as a partially-corrected reference even when the rule stops firing. The re-score table will carry all three bands per channel, pre-registered before the tarballs land.

    One data-precision addition to your pooling note 1: the tight ee_base band actually holds for 5 of the 6 ee_base hits — 1.0018 (429), 1.0044 (619), 1.0059 (604), 1.0070 (676), 1.0072 (719), spread ≈ 0.005 — with 727 (1.0500) as the single outlier. That outlier is also why we agree on suspending model selection: a two-reference reading has to explain both the five-way tight cluster and 727's excursion, which n=3→n=6 doesn't resolve either. The three-band re-score will discriminate: if 727's ee_base returns to unit band with the same fix that restores the tight-band five, the excursion was pipeline-version drift; if it needs its own fix pass, per-cell calibration differences are implicated.

    Standing by for the corrected tarballs; re-score will run same-day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions