File size: 4,261 Bytes
2c5f81b
 
 
 
 
 
 
 
 
 
7550c95
 
 
 
b418915
7550c95
2c5f81b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
tags:
- robotics
- action-tokenizer
- bimanual
- yam
---

# BiCAT-tokenizer

<video controls playsinline preload="metadata" width="100%">
  <source src="https://huggingface.co/MAGIClab1224/BiCAT-tokenizer/resolve/main/bicat_teaser.mp4" type="video/mp4">
</video>

[Download the teaser video](https://huggingface.co/MAGIClab1224/BiCAT-tokenizer/resolve/main/bicat_teaser.mp4?download=true)

Bimanual Temporal Tokenizer (BTT) trained on action-only data from YAM bimanual
robots. It turns a 32-step chunk of 14-D joint actions into discrete tokens and
decodes them back.

Training output layout follows the praxis codec trainer:

```
β”œβ”€β”€ checkpoints/step_500000/pretrained_model/   # weights to load (EMA)
β”œβ”€β”€ checkpoints/step_500000/training_state/     # optimizer / EMA / RNG, for resuming
β”œβ”€β”€ train_config.yaml                           # full resolved training config
└── train_metrics.jsonl                         # training loss every 200 steps
```

## Model

| | |
|---|---|
| Action | 14-D absolute joint positions: per arm 6 joints + 1 gripper (0–1), left arm first |
| Chunk | `action_horizon` 32 at 30 fps |
| Tokens | 8 latent steps per arm, FSQ levels `[8, 8, 6, 5]` (1920 codes per token) |
| Architecture | shared per-arm causal conv encoder (strides 2, 2), 6-layer joint query decoder, `model_dim` 256 |
| Arm convention | right arm multiplied by `right_arm_sign = [-1, 1, 1, 1, -1, -1, 1]` before sharing the left-arm frame |
| Normalization | `shared_action_min = [-2.5587, -0.3006, -0.2976, -1.8269, -1.8539, -2.8455, 0.0]`, `shared_action_max = [1.5094, 3.1508, 3.1848, 2.1506, 1.8423, 2.9560, 1.0]` (extrema of the cleaned training data, both arms pooled) |

The normalization range differs from earlier BiCAT tokenizers, so token ids are
not interchangeable with them.

## Training data

| Source | Robot | Episodes kept | Frames kept |
|---|---|---|---|
| MolmoAct2-BimanualYAM-Dataset | `bi_yam_follower` | 32,225 / 32,246 | 76,010,338 |
| lerobot/abc_130k_v3_train | `yam_bimanual` | 128,589 / 129,225 | 380,396,445 |

Only the `action` column is used (no images). Episodes were dropped if they
were shorter than 32 frames, contained non-finite values, had a single-frame
arm-joint jump above 1.0 rad, or had an extreme value outside the 0.01–99.99
percentile envelope of all episodes.

Sources are mixed in their natural frame ratio (about 1 : 5), so every kept
frame is equally likely to be sampled.

## Training

| | |
|---|---|
| Steps | 500,000 |
| Batch | 2048 per GPU Γ— 4 B200 = 8192 |
| Samples | 4.10 B chunk starts β‰ˆ 9.0 epochs over 456.4 M frames |
| Optimizer | lr 5e-5 constant, 200 warmup steps, betas (0.9, 0.95), grad clip 1.0 |
| EMA | decay 0.995 (saved `pretrained_model` holds EMA weights) |
| Precision | bf16 |
| Final training loss | 0.00123 |

## Reconstruction error

200,000 random 32-frame chunks per source from the kept episodes, EMA weights,
fp32, raw action space. These episodes were also used for training, so this is
training-set reconstruction, not held-out generalization.

| Metric | MolmoAct2 | abc_130k_v3 |
|---|---|---|
| MSE (all 14 dims) | 0.00314 | 0.00324 |
| Joint RMSE | 0.060 rad | 0.061 rad |
| Joint MAE | 0.043 rad | 0.045 rad |
| Joint error, 99th percentile | 0.193 rad | 0.188 rad |
| Gripper RMSE | 0.022 | 0.023 |

Per-joint RMSE is 1.3–1.6 % of the normalization range (gripper about 2.2 %).
The wrist rotation (joint 5) has the largest error. A small tail of chunks
reconstructs poorly (max joint error 1.8–1.9 rad).

## Usage

With the praxis codebase:

```python
from praxis.codecs.factory import make_codec

codec = make_codec({
    "name": "btt",
    "kind": "tokens",
    "pretrained_path": "checkpoints/step_500000/pretrained_model",
}).eval()

tokens = codec.tokenize(actions)    # actions: (B, 32, 14) float tensor
recon = codec.detokenize(tokens)    # (B, 32, 14)
```

Training config: `train_omnibicat_btt_500k` (praxis).

## Citation

```bibtex
@misc{liu2026bicat,
  title={BiCAT: Bimanual Coordination Action Tokenization},
  author={Xuanwei Liu and Guipu Cao and Zhongyi Luo and Jiafei Duan},
  year={2026},
  eprint={2611.23499},
  archivePrefix={arXiv},
  primaryClass={cs.RO},
  url={https://arxiv.org/abs/2611.23499}
}
```