Tokenizing Robot Actions: Quantile Binning, Vocabulary Reuse, and Why 256 Bins

Part three of the transformer study notes: how continuous robot actions become discrete tokens via per-dimension quantile binning, reusing a pretrained LLM's existing vocabulary, action-chunked autoregressive sequence layout, cross-entropy training, and the quantization error introduced at detokenization.

In this article

  • The problem: actions are continuous, tokens aren't
  • One bin index per action dimension
  • Quantile binning vs. uniform-range binning
  • Reusing an LLM's existing vocabulary
  • From one action to a chunk of tokens
  • Why naive per-dimension tokenization breaks at high control frequency
  • Training: cross-entropy, same as language modeling
  • Detokenizing at inference, and its precision limit
  • When discretizing is the wrong call
  • Mistakes I made learning this
  • Glossary