Papers › Behavior Transformers: Cloning k modes with one stone

Behavior Transformers: Cloning k modes with one stone

22 Jun 2022arXiv:2206.11251archive 2025-07-28

Nur Muhammad Mahi Shafiullah, Zichen Jeff Cui, Ariuntuya Altanzaya, Lerrel Pinto

While behavior learning has made impressive progress in recent times, it lags behind computer vision and natural language processing due to its inability to leverage large, human-generated datasets. Human behaviors have wide variance, multiple modes, and human demonstrations typically do not come with reward labels. These properties limit the applicability of current methods in Offline RL and Behavioral Cloning to learn from large, pre-collected datasets. In this work, we present Behavior Transformer (BeT), a new technique to model unlabeled demonstration data with multiple modes. BeT retrofits standard transformer architectures with action discretization coupled with a multi-task action correction inspired by offset prediction in object detection. This allows us to leverage the multi-modal modeling ability of modern transformers to predict multi-modal continuous actions. We experimentally evaluate BeT on a variety of robotic manipulation and self-driving behavior datasets. We show that BeT significantly improves over prior state-of-the-art work on solving demonstrated tasks while capturing the major modes present in the pre-collected datasets. Finally, through an extensive ablation study, we analyze the importance of every crucial component in BeT. Videos of behavior generated by BeT are available at https://notmahi.github.io/bet

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2206.11251")

Code

Syntology Ran 0 of 11 code samples harvested from 2 repositories linked to this paper; 11 have no recorded run.

By repository: official repository: 5 samples from 1 repository, 0 ran; community (archive-listed): 6 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

notmahi/bet officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 0 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

focal_loss notmahi/bet/models/libraries/loss_fn.py official repository unverified MIT (permissive) · f840d01c761c3844 · report
mlp notmahi/bet/models/mlp.py official repository unverified MIT (permissive) · aee85acbd82e6f57 · report
random_noise notmahi/bet/dataloaders/augmentations.py official repository unverified MIT (permissive) · 1fdf23b4c59d9dd5 · report
random_noise_affine notmahi/bet/dataloaders/augmentations.py official repository unverified MIT (permissive) · 94dcf41e723717c4 · report
soft_cross_entropy notmahi/bet/models/libraries/loss_fn.py official repository unverified MIT (permissive) · 5c2032b53ba9edf4 · report
get_environment_name skandermoalla/bet-reproduction/compute_metrics.py community (archive-listed) unverified MIT (permissive) · 91252b98bc18bdc0 · report
get_train_and_eval_log skandermoalla/bet-reproduction/compute_metrics.py community (archive-listed) unverified MIT (permissive) · 0055bdefa26803c4 · report
mlp skandermoalla/bet-reproduction/models/mlp.py community (archive-listed) unverified MIT (permissive) · 15820c0b4be13799 · report
process_cv_run_idxs skandermoalla/bet-reproduction/run_on_env.py community (archive-listed) unverified MIT (permissive) · a468c0a9de16ef38 · report
process_tags skandermoalla/bet-reproduction/compute_metrics.py community (archive-listed) unverified MIT (permissive) · 8de152f617bedf07 · report
soft_cross_entropy skandermoalla/bet-reproduction/models/libraries/loss_fn.py community (archive-listed) unverified MIT (permissive) · 9e05fa1b88b3794c · report

Tasks

Object DetectionOffline RL

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections