↑↓ move Enter open ⌘K find from any page 256 of 256 tabs
Loading the recording…

Why actions need their own tokenizer

A vision-language-action model (VLA) is a vision-language model fine-tuned to output robot actions. The simplest way to make actions into tokens, used by RT-2 and the OpenVLA tab, cuts every dimension of every action into 256 bins and writes one token per number; a chunk of 50 actions with 7 numbers each, as on this page, would be 350 tokens. At high control rates consecutive actions are nearly equal, so each token is almost predictable from the ones before it. Pertsch et al. found that such per-dimension, per-timestep binning performs poorly when learning dexterous skills from high-frequency robot data, because next-token prediction then has little left to learn from each token.

FAST (Frequency-space Action Sequence Tokenization) compresses the chunk before tokenizing it, the way JPEG compresses an image: normalise, take a discrete cosine transform along time, round, and merge frequent runs with byte-pair encoding. The page runs physical-intelligence/fast's released FAST+ tokenizer (2048 tokens, 1792 merges) on the two chunks π0 predicted in the π0 tab's LIBERO episode, “pick up the black bowl between the plate and the ramekin and place it on the plate”. Each chunk is 50 actions × 7 numbers at 20 Hz; chunk 1 becomes 106 tokens and chunk 2 becomes 119.

Quantile normalisation

The Action chunk → [−1, 1] column normalises each of the 7 dimensions (the end effector's Δx, Δy and Δz, three rotation Δs and the gripper) with the dataset's 1st and 99th percentiles, and , as openpi does for π0-FAST:

Percentiles rather than the minimum and maximum keep a few outliers from squeezing every other value into a narrow range. Values beyond them are not clamped: 58 of chunk 1's 350 numbers lie past ±1, and 81 of chunk 2's, and FAST encodes them as they are. Normalising first lets one tokenizer with one rounding scale serve robots whose actions come in different units.

A cosine transform per joint

The DCT along time, per joint column rewrites each dimension's values as the weights of 50 cosines, slowest first, with the orthonormal DCT-II:

Frequency 0 is the dimension's mean times , and frequency completes cycles over the chunk. The transform is orthonormal, so it keeps the sum of squares (the energy) and its inverse is its transpose. Smooth motion puts almost all of its energy in the first few frequencies, which is what makes the DCT compress it, as it compresses the 8 × 8 blocks of a JPEG. The panel headed The first 6 frequencies redraws the joint from only the first rounded coefficients ( until the slider changes it) and gives the share of the energy they hold.

Scale and round

Each coefficient is multiplied by 10 and rounded to an integer (halves to even), so any coefficient smaller than 0.05 in size becomes 0:

This is the only step that loses anything. The scale trades length for precision: a larger one keeps more non-zero integers, and so more tokens. In chunk 1, 200 of the 350 integers are 0; in chunk 2, 192. The integers are then read frequency by frequency, all 7 dimensions of frequency 0 first, so the zeros of the high frequencies end up together at the end of the sequence.

Integers as text, then BPE

To reuse an ordinary text BPE, FAST writes each integer as one character: the integer plus 354 (the smallest rounded coefficient in FAST's training data was −354) is a Unicode code point, so 0 is “Ţ”, U+0162. The Integers → bytes → tokens column lists the first ones. Characters from 128 to 2047 take two bytes in UTF-8, so the 350 integers become 700 bytes, and the byte-level BPE of the GPT-2 tab writes each byte as one of its 256 printable stand-ins. Its pre-tokenizer cuts where letters meet digits, punctuation or spaces, but every character here is a letter, so each chunk is one word.

BPE starts from single bytes and repeatedly merges the adjacent pair with the lowest rank in its learned list of merges, everywhere that pair occurs, until no adjacent pair has a merge. The BPE merges strip steps through them: chunk 1's 700 bytes become 106 tokens in 102 merges, and chunk 2's become 119 in 97. The first merges join the two bytes of a 0, C5 A2, then pair zeros into runs of 2, 4, 8 and more, so the tail of zeros shrinks to a few tokens. Some intermediate pieces end halfway through an integer; later merges complete them. FAST+'s merges were learned, according to its paper, on 1M real robot action trajectories.

Decoding, and what π0-FAST does with the tokens

Decoding runs every step backwards: pieces → bytes → characters → integers − 354 → ÷ 10 → inverse DCT → robot units. The Decoding back panel draws the decoded joint over the original. Only the rounding lost anything: on chunk 1 at most 0.088 in normalised units, and 0.055 in the robot's units for any joint.

π0-FAST is π0's vision-language model trained to write these tokens one by one, as PaliGemma ids counted down from the end of its vocabulary, instead of producing a chunk with π0's flow-matching action expert. Pertsch et al. report that it matches the performance of diffusion VLAs while reducing training time by up to 5×. The price is paid at inference, where the tokens come out one at a time.

Where it came from

The discrete cosine transform is Ahmed, Natarajan and Rao's (1974), and its energy compaction made it the core of JPEG. BPE began as a data-compression algorithm and entered NLP with Sennrich et al. (2016); GPT-2 made it byte-level. RT-2 (2023) showed that a web-pretrained VLM fine-tuned on binned action tokens can control a robot, π0 (2024) replaced the tokens with a flow-matching action expert, and FAST (2025) brought tokens back by compressing them first. The episode on this page is task 0 of the LIBERO-Spatial suite of LIBERO (Liu et al., 2023), a simulated benchmark of manipulation tasks. The π0 tab shows the policy that produced the chunks and its FAST card, and the OpenVLA tab shows per-dimension binning.

Papers

  1. FAST: Efficient Action Tokenization for Vision-Language-Action Models Karl Pertsch et al. · arXiv 2025 Introduces FAST (quantile normalisation, DCT, scale and round, BPE) and the universal FAST+ tokenizer this tab runs.
  2. π0: A Vision-Language-Action Flow Model for General Robot Control Kevin Black et al. · arXiv 2024 The VLA whose LIBERO action chunks this tab tokenizes; π0-FAST is its autoregressive variant on FAST tokens.
  3. RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Control Anthony Brohan et al. · CoRL 2023 Actions written as text tokens, one per binned dimension, in a web-pretrained VLM: the tokenization FAST replaces.
  4. Discrete Cosine Transform N. Ahmed, T. Natarajan, K. R. Rao · IEEE Transactions on Computers 1974 Introduces the DCT and finds that its performance comes close to that of the Karhunen–Loève transform, the optimal one.
  5. Neural Machine Translation of Rare Words with Subword Units Rico Sennrich, Barry Haddow, Alexandra Birch · ACL 2016 Byte-pair encoding as a tokenizer: merge the most frequent adjacent pair, again and again, and apply the merges in order.
  6. LIBERO: Benchmarking Knowledge Transfer for Lifelong Robot Learning Bo Liu et al. · NeurIPS 2023 The simulated manipulation benchmark whose LIBERO-Spatial task 0 the page's episode comes from.

See also