All models

BAMM

A text-to-motion transformer that predicts masked motion tokens autoregressively and finds the motion length itself.

Diffusion and generative · 3,378 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 3,378 operations (2.6 MB) and is drawn when you ask.

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
347.4M
Operations
3,378
Framework
PyTorch
Recurrent
Yes
Published
ECCV 2024
Cited by
32 (as of 27 October 2026)
Authors
Ekkasit Pinyoanuntapong, Muhammad Usama Saleem, Pu Wang and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14808
Graph hash
724411c54d5555ccc1173f829b6de8223e320bbca42f992c783c93d8db7d6f98
Skeleton hash
f17e1d54269bd29ee34876171d3537a5e8f15795ce86c19bb0752379c76b5643
Architecture hash
10ffb821619245738c3ab5b20d4e1a3dd3adaf5de3a6f80632b40fa8b95adcb4
Diagram SHA-256
6c64dc74a44756a8b901de444c501145f5f67805348b64d93611c69841201632
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

BAMM, the Bidirectional Autoregressive Motion Model, generates 3D human motion from a text description. It targets a trade-off the paper describes: denoising models, whether diffusion or masked, need the motion length in advance, while autoregressive models predict where the motion ends but give up generation quality and editing ability.

The model has two parts: a motion tokenizer that turns 3D human motion into discrete tokens, and a masked self-attention transformer that predicts randomly masked tokens autoregressively. Unlike other masked models, it does not replace input tokens with a mask token; it changes the attention mask instead, so a masked position can attend to itself, everything on its left, and the unmasked tokens on its right. The text enters as an embedding from a pre-trained CLIP model, and an end token marks where the motion stops.

At inference, decoding is cascaded: a unidirectional autoregressive pass predicts the motion length together with a coarse motion, and part of the tokens are then masked and regenerated bidirectionally. A second refinement transformer based on residual vector quantization can refine the result further. The same masking supports editing without task-specific training. The paper's experiments use the HumanML3D and KIT-ML datasets, where the authors report that BAMM surpassed the methods they compared against. The released code is developed from the MoMask codebase.

Key idea. The paper unifies generative masked modeling and autoregressive modeling in one transformer, so text-to-motion generation predicts its own motion length while keeping bidirectional context.

  • bamm
  • bidirectional autoregressive motion model
  • text-to-motion
  • human motion generation
  • 3d human motion
  • motion tokenizer
  • masked motion model
  • motion editing
  • motion inpainting

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{pinyoanuntapong2024bammbidirectionalautoregressivemotion,
      title={BAMM: Bidirectional Autoregressive Motion Model}, 
      author={Ekkasit Pinyoanuntapong and Muhammad Usama Saleem and Pu Wang and Minwoo Lee and Srijan Das and Chen Chen},
      year={2024},
      eprint={2403.19435},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2403.19435}, 
}