# KlaskTron-IL: A Contact-Rich Adversarial Imitation Learning Benchmark with a Validated Sim-to-Real Bridge

Robotics.world

> KlaskTron is a sub-$2,500 open-hardware robot that plays the tabletop game Klask: two CoreXY gantries drive magnetic pegs beneath the board at 50 Hz, an overhead camera and EKF estimate the 12D…

**arXiv**: 2611.03091 · Preprint · not peer-reviewed

**Published**: 2026-11-02

**Authors**: Nicklas Sohm, Aswin Ramachandran, Raffaello D'Andrea

## In plain words

KlaskTron is a sub-$2,500 open-hardware robot that plays the tabletop game Klask: two CoreXY gantries drive magnetic pegs beneath the board at 50 Hz, an overhead camera and EKF estimate the 12D state, and a learned actuator model lets policies trained in Isaac Lab run on the physical robot with zero-shot transfer.

## AI summary

KlaskTron-IL: A Contact-Rich Adversarial Imitation Learning Benchmark with a Validated Sim-to-Real Bridge

## Overview

- **Research area:** Robotics — imitation learning (IL), adversarial multi-agent reinforcement learning, and sim-to-real transfer; specifically benchmark and dataset infrastructure built on the open-hardware KlaskTron platform from ETH Zürich's IDSC.
- **Technical level:** Intermediate. The core ideas are stated in plain terms (a dataset with three tiers plus diagnostic baselines), but the paper assumes familiarity with behavioral cloning, GAIL, PPO, and covariate shift.
- **Scope (one sentence):** The paper releases a tiered imitation-learning dataset collected on a real two-player adversarial robot game and reports diagnostic baselines (BC, GAIL, BC-bootstrapped RL) that each fail in a specific, interpretable way, plus one zero-shot hardware deployment of a behavior-cloning policy.

## What This Paper Is About

KlaskTron is a sub-$2,500 open-hardware robot that plays the tabletop game Klask: two CoreXY gantries drive magnetic pegs beneath the board at 50 Hz, an overhead camera and EKF estimate the 12D state, and a learned actuator model lets policies trained in Isaac Lab run on the physical robot with zero-shot transfer. This paper asks what happens when standard imitation learning methods are run on that platform — a setting where contact is fast and frequent and an opponent, rather than only the learner's own errors, shapes the state distribution. The goal is not to solve the game but to build a benchmark whose failures are diagnostic and whose improvements have a demonstrated path to real hardware.

## Key Contributions

1. **A multi-tier IL dataset on a physical adversarial platform:** 80,591 human demonstration timesteps (111 episodes) recorded on the real robot via EKF-based state estimation, a 322,364-timestep symmetry-augmented version (444 episodes, mirrored across the x and y axes), and a 5,000,000-timestep synthetic expert file (34,649 episodes) generated by a PPO policy that itself transfers zero-shot to hardware. All tiers share the same 12D state / 4D joint-action format; the synthetic file is released as one file and the scaling study uses prefixes at 80k, 250k, 1M, and 5M steps.
2. **Diagnostic baselines that fail informatively:** BC, GAIL, and BC+RL each expose one named failure mode — BC's data-scaling plateau, GAIL's interpretable but weak-gradient discriminator, and an asymmetric BC-prior × reward-density interaction.
3. **A demonstrated zero-shot hardware path for an imitation-learned policy:** the strongest BC baseline (trained on the 5M-step Tier 3 prefix) was deployed on the physical robot without fine-tuning and compared against the PPO expert over 7.3 minutes of matched play (21,818 steps at 50 Hz).
4. **Released artifacts:** dataset under CC-BY-4.0 and code under Apache-2.0, including the Isaac Lab environment, training pipelines for all baselines, the evaluation harness, per-experiment configuration files, and the inherited actuator model and PPO expert.

## Main Findings

- **BC hits a data-scaling plateau, not a data-scarcity wall.** Across a roughly 60× range of synthetic demonstrations (80k to 5M), mean performance is statistically flat: all four scales sit about 0.015 goal differential per episode below the expert, with overlapping 95% confidence intervals over n = 5 seeds per scale. Meanwhile held-out predictive R² on expert states rises monotonically — 0.44 / 0.57 / 0.62 / 0.67 at 80k / 250k / 1M / 5M with disjoint 95% CIs — a pattern the authors read as compounding error rather than insufficient data. Occupancy plots show the BC peg collapsing to the board boundaries, a textbook covariate-shift signature.
- **GAIL learns a real feature with a uselessly narrow gradient.** Sweeping only peg–ball distance while fixing all other state variables produces a perfectly monotonic change in the discriminator's raw logit (Spearman ρ = −1.0), confirming the discriminator discovered that ball proximity is expert-like — and validating the `distance_player_ball` shaping term used to train the expert. But the logit span is only 0.00 to 0.09, mapping to sigmoid outputs between 0.50 and 0.52. Training was numerically stable (discriminator loss ≈ 0.68, accuracy 55–60%), yet gameplay collapsed to passive center-seeking with a self-play goals ratio of 1.14.
- **The GAIL result is explicitly confounded.** The authors note expert and generator action scales differ markedly (±0.2 versus ±1.0 m/s), so the discriminator may separate them on action magnitude alone. They present the sweep as a state-sensitivity analysis, not a causal account of the rollout failure or a claim about GAIL in general.
- **BC bootstrapping helps only under sparse rewards.** In a 2×2 factorial (random vs. BC-pretrained initialization × sparse vs. dense reward), BC initialization under sparse goals reduced peg-in-goal terminations from 34% to 13% (a 62% relative reduction), extended episodes from 97.9 to 136.3 steps (+38.4, 95% CI [+2.2, +74.5]), and lifted scoring from 0.123 to 0.138 per episode. Only the episode-length contrast cleared 95% confidence at n = 5.
- **The sparse-reward benefit is unstable across seeds.** Two of five randomly initialized runs collapsed into self-scoring (0.564, 0.485) while three did not (0.176–0.290); every BC-initialized seed stayed at or below 0.240.
- **Under dense rewards, the prior does nothing measurable.** Peg-in-goal (0.051 → 0.067), episode length (153.2 → 149.9), and goal scoring (0.130 → 0.128) all move within noise, and every 95% interval contains zero. A preliminary single-seed result suggesting the BC prior *hurt* dense-reward performance did not survive a change of evaluation opponent or added seeds.
- **The BC policy transfers to hardware with smaller sim-to-real shift than the PPO expert.** Using the 1-Wasserstein distance over eight derived geometric features plus commanded speed (normalized by each feature's 1–99% range), BC-5M scored 0.05 versus 0.15 for the expert. Two behavioral differences appeared on hardware with disjoint 95% CIs: BC-5M engaged the ball 31% less often and re-engaged more slowly after losing contact (90th percentile 5.6 s vs. 3.4 s) — consistent with the weak recovery seen in simulation.
- **A hardware caveat applies to both deployed policies.** Realized peg speed on the robot is roughly half the simulated value at equal command, a property of the inherited actuator model rather than of the IL policy; it leaves the BC-versus-PPO comparison intact but means absolute simulated speeds should not be read literally on hardware.
- **Only BC's commands stay near the validated actuator range.** The PPO expert is clipped at ±0.2 m/s, with 16.6% of its commands exactly on that bound; BC is effectively unclipped, with 4.1% of commands exceeding 0.2 m/s (max 0.331 m/s); GAIL and BC+RL optimize at ±1.0 m/s, and GAIL saturates at exactly ±1.0 on 99.65% of steps — five times the range the deployed actuator model was identified on. This is why only BC is flagged hardware-compatible.
- **Baseline head-to-head numbers.** BC: 0.102 goals/episode, 0.157 player-in-goal; GAIL: 0.116 and 0.201; BC+RL sparse: 0.138 and 0.130; BC+RL dense: 0.128 and 0.067. In the 1,000-episode-per-repeat evaluation, GAIL's self-play goals ratio was 1.137 ± 0.043 versus BC's 1.053 ± 0.278, with GAIL also showing a lower timeout rate (0.309 ± 0.005 vs. 0.472 ± 0.024).
- **The synthetic expert is strong but not a ceiling.** The generating PPO policy reaches an Elo of 1283 (61.8% win rate against a 1200 baseline), wins 10% of games against a recreational human, and shows 0.5–1.5 cm offensive targeting errors, making its action distribution meaningfully different from human play.

## Methodology in Plain English

The team started from an existing robot platform and its digital twin. Because a learned actuator network sits between the simulator and the motors, a policy trained in simulation can be pushed to hardware without retraining — this was already validated for the inherited PPO expert. The authors then built the imitation-learning layer on top.

Data came from two sources. Human play was recorded directly on the physical robot during a lab tournament with recreational-to-intermediate players, using the same EKF/AprilTag state estimator that runs at inference time, so the recordings capture exactly what a deployed policy would see. Because the board is bilaterally symmetric, each human trajectory was mirrored across both axes to produce a four-times-larger augmented set. Separately, the zero-shot-validated PPO expert played itself in simulation to produce a large synthetic trace, sliced into 80k, 250k, 1M, and 5M prefixes for a scaling study.

On the methods side, they trained a small two-layer MLP by behavior cloning with entropy regularization and L2 penalty (hyperparameters tuned with Optuna), ran GAIL with a potential-based shaping reward net, PPO generator, and stabilization tricks including freezing the discriminator when its accuracy on generated samples exceeded 0.75, and ran a 2×2 ablation crossing random versus BC-pretrained initialization with sparse versus dense rewards. To understand *why* things failed, they did more than report scores: they plotted where the peg spends time, and they probed the GAIL discriminator by holding every state variable fixed and sweeping a single one.

Finally, to test whether the hardware path survives imitation learning, they took the BC policy trained on 5M synthetic steps, ran it on the robot with no fine-tuning and the same command limit as the expert, and compared its hardware rollout statistics against its own simulated rollouts and against the PPO expert's, all under an identical metric.

## Why This Matters

Most imitation-learning benchmarks are cooperative: the environment does not actively work against the agent. KlaskTron-IL inserts a genuine opponent into the dynamics, so the state distribution a policy visits is shaped by adversarial play rather than only by its own mistakes. That matters because it changes which failure modes dominate — the paper's central claim is that BC's bottleneck here is covariate shift, not dataset size, and that the usual instinct to collect more demonstrations does not fix it.

The second differentiator is the bridge. Because a single actuator model links simulator and robot, a method that beats these baselines while respecting the 12D state / 2D velocity interface and the ±0.2 m/s identification range inherits a demonstrated path to physical hardware. The authors demonstrate this for one BC policy zero-shot, which they present as the benchmark's defining feature: progress translates to a real artifact rather than to better simulator numbers.

Real-world applications:

- **Contact-rich manipulation and control**, where fast intermittent contact and compounding error are the dominant difficulty rather than data volume.
- **Competitive robotic games and sports platforms** — air hockey, table tennis, foosball-style systems — where an opponent is part of the dynamics and reaction time is bounded.
- **Low-cost research testbeds:** the platform uses off-the-shelf components and 3D-printed parts for under $2,500, putting adversarial multi-agent hardware within reach of labs that cannot afford industrial stacks.
- **Sim-to-real pipelines for learned controllers**, where a learned actuator model — rather than domain randomization — carries the transfer.

Industry relevance: the paper offers a reproducible, openly licensed (CC-BY-4.0 data, Apache-2.0 code) way to stress-test an IL algorithm against adversarial and contact-rich conditions before committing to hardware, and it gives a concrete operational rule — keep commands inside the identified actuator range — for deciding whether a trained policy is deployable at all. The GAIL result also has a practical engineering use: probing a discriminator can substitute for hand-tuning reward shaping terms when reward engineering is the bottleneck, even if the discriminator is too weak to serve as a reward source.

## Future Directions

- **Break the covariate-shift plateau.** The authors expect DAgger variants, distributionally-robust BC, or diffusion policies to be needed, and note that isolating the opponent's contribution to the flat closed-loop gap remains future work.
- **Give the discriminator memory.** It currently sees single-frame state–action pairs, limiting it to static spatial features; adding observation history or using more expressive (e.g., diffusion-based) discriminators is the natural next step.
- **Make the sparse-reward benefit reliable.** The open question is consistency rather than average gain, since two of five random seeds collapsed and three did not; KL-regularized fine-tuning and advantage-weighted regression are named as candidates for scaling the demonstration prior with reward-signal strength.
- **Widen the hardware-validated envelope and restore the full game.** GAIL and BC+RL were never deployed and command five times the validated range; the biscuit obstacles were deliberately omitted, and a visuomotor/image dataset is absent from the current release despite the simulator being able to render images.

## Target Audience

Robotics and ML researchers working on imitation learning, sim-to-real transfer, or adversarial multi-agent RL who want a benchmark where failure modes are isolated rather than merely difficult. It is also useful for engineers evaluating whether a learned policy is deployable — the action-range criterion and the discriminator-probing technique transfer directly. Readers mainly interested in hardware design should note that the platform, simulator, and actuator model are inherited from concurrent work; this paper's contributions are the dataset tiers, the baselines, and the evaluation protocol.

## Authors’ abstract

KlaskTron is an open-hardware physical platform for two-player adversarial reinforcement learning, with a learned actuator model that supports zero-shot sim-to-real transfer of trained policies. Building on this platform, we contribute KlaskTron-IL: a multi-tier imitation learning dataset (80k human demonstration timesteps collected directly on the physical robot, 320k symmetry-augmented timesteps, and synthetic expert trajectories up to 5M steps generated by the…

[The full abstract on arXiv](https://arxiv.org/abs/2611.03091)

[Read the original paper](https://arxiv.org/abs/2611.03091)

## Related papers

- [KlaskTron: An Open-Source Platform for Physical Adversarial Multi-Agent RL](https://robotics.world/paper/klasktron-an-open-source-platform-for-physical-adversarial-multi-agent-2611.03138) 2026-11-02 · cs.RO · Also by Aswin Ramachandran, Raffaello D'Andrea
- [How High Can GPT-6 Astra Climb in Contact-Rich Manipulation? PhysLadder: A Hierarchical, Matched Sim-Real Benchmark for Physical Interaction](https://robotics.world/paper/how-high-can-gpt-6-astra-climb-in-contact-rich-manipulation-physladder-2610.34527) 2026-10-25 · cs.RO · Key terms of the title in common
- [Morphometric Imitation: From Morphology and Contact Aware Hand Retargeting to Sim-to-Real Visuomotor Policy](https://robotics.world/paper/morphometric-imitation-from-morphology-and-contact-aware-hand-2609.28660) 2026-09-23 · cs.RO · Key terms of the title in common
- [Proprioception-Anchored Cross-Modal Pretraining for Zero-Shot Sim-to-Real Contact-Rich Assembly](https://robotics.world/paper/proprioception-anchored-cross-modal-pretraining-for-zero-shot-sim-to-2609.07534) 2026-09-07 · cs.RO · Key terms of the title in common
- [TacPAC: Tactile Prediction and Real-Time Action Correction in World-Action Models for Contact-Rich Manipulation](https://robotics.world/paper/tacpac-tactile-prediction-and-real-time-action-correction-in-world-2609.05266) 2026-09-04 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/klasktron-il-a-contact-rich-adversarial-imitation-learning-benchmark-2611.03091
