Khaos Robot Skill Segmentation
A transformer that labels every timestep of a bimanual trajectory with a skill and flags skill boundaries. Skills are defined by gripper phases (approach, left hold, right hold, dual hold, retreat, transition).
robo_skill_segmentation v1, from Khaos (a local-first library of pre-trained models for domain-specific tasks). This is the first release of the artifact.
Model
- Architecture: SkillSegmenter: 4-layer transformer (dim 128, 4 heads) with per-step boundary and 6-way skill heads, wrapped with input standardization
- Parameters: 927,267
- Format: ONNX (
model.onnx) plus PyTorch weights (model.pt) andmanifest.json - Training data: fletxcher/khaos-robo_skill_segmentation
Results
Measured on the held-out test split of the training dataset.
| Metric | Value |
|---|---|
| boundary_threshold | 0.7500 |
| test_skill_accuracy | 0.9532 |
| test_skill_macro_f1 | 0.9315 |
| test_boundary_f1_tol3 | 0.8488 |
| test_majority_accuracy | 0.2706 |
| test_unseen_task_skill_accuracy | 0.9177 |
| test_unseen_task_skill_macro_f1 | 0.8903 |
| test_unseen_task_boundary_f1_tol3 | 0.8134 |
| test_unseen_task_majority_accuracy | 0.2170 |
Segmentation results
Skill labels are silver (derived from gripper phases), so these numbers measure how well the model recovers that structure. Boundary scores use a 3-step tolerance.
| Split | Episodes | Skill accuracy | Macro F1 | Boundary precision | Boundary recall | Boundary F1 | Majority-class accuracy |
|---|---|---|---|---|---|---|---|
| test | 90 | 0.953 | 0.932 | 0.794 | 0.912 | 0.849 | 0.271 |
| test_unseen_task | 156 | 0.918 | 0.890 | 0.784 | 0.845 | 0.813 | 0.217 |
Training
{
"epochs": 60,
"batch": 32,
"lr": 0.0005,
"architecture": "SkillSegmenter"
}
Best epoch 31, trained in 2.9 minutes on a single consumer GPU (RTX 3050 8 GB).
Intended use
Splitting demonstrations into skill segments for imitation learning or analysis.
Limitations
- Labels are silver, derived from a gripper heuristic: the model recovers grasp structure, not task semantics.
- Single robot platform (ALOHA).
Usage
pip install khaos
khaos serve ./robo_skill_segmentation
License
Trained on public SEC filings and openly licensed data; released under Apache-2.0.