Action Chunking with Transformers

Also known as: ACT

On this page 7

Action Chunking with Transformers (ACT) is an imitation learning algorithm for robot manipulation that uses a transformer to predict a chunk of future actions, rather than a single action, from camera images and the current joint positions. In Embodied AI, it is one of the best-known policies for learning fine-grained, bimanual skills from a small number of human demonstrations.

ACT was introduced in 2023 together with ALOHA, a low-cost bimanual teleoperation system. Its central idea is that predicting many steps at once reduces compounding errors and makes behavior smoother, which matters most in precise contact-rich tasks such as inserting a battery or opening a small container.

How ACT predicts action chunks

An ACT policy maps an observation to a sequence of k target joint positions, where k is the chunk size. With a control rate of 50 Hz and a typical chunk of 100 steps, one prediction covers about two seconds of motion. The robot does not need to decide anew at every control cycle, so the effective decision horizon shrinks by a factor of k.

The architecture combines a convolutional image encoder with a transformer encoder-decoder. The table below summarizes the main components in the original design.

ComponentRoleTypical choice
Image backboneExtracts visual features from each cameraResNet-18 per camera view
Proprioception inputProvides current joint positions14 values for two 7-axis arms
Transformer encoderFuses image tokens, joints and style variableSeveral self-attention layers
Transformer decoderProduces the action chunk from fixed queriesOne query per future step
CVAE encoderCompresses a demonstration into a latent styleUsed only during training
Main components of the original ACT architecture

ACT is trained as a conditional variational autoencoder (CVAE). During training, an extra encoder sees the demonstrated action sequence and produces a latent variable that captures the style of a particular demonstration. At test time the latent is set to the prior mean, so the policy behaves deterministically while still having learned from varied human motion.

Why chunking and temporal ensembling help

Action chunking addresses the compounding error problem of behavior cloning, in which small mistakes push the robot into states never seen in the demonstrations. Fewer decisions per episode mean fewer chances for errors to accumulate. Chunking also tolerates pauses and non-Markovian behavior in human demonstrations, which single-step policies tend to imitate poorly.

Executing whole chunks open-loop can cause jerky transitions, so ACT uses temporal ensembling. The policy is queried at every step, and the overlapping predictions for the current moment are averaged with exponential weights that favor older or newer predictions depending on a tuning constant.

StrategyHow it runsBenefitDrawback
Single-step policyPredicts and executes one action per cycleMaximal reactivityStrong compounding error
Open-loop chunkExecutes all k actions, then predicts againLow compute loadAbrupt switches between chunks
Temporal ensemblingAverages overlapping chunks every cycleSmooth and precise motionInference at full control rate
Partial chunk executionExecutes part of a chunk before replanningBalances reactivity and smoothnessExtra tuning parameter
Execution strategies for predicted chunks

The chunk size is a key hyperparameter. Very short chunks bring back compounding error, while very long chunks make the policy slow to react to disturbances, such as an object that slips in the gripper.

ACT sits between simple behavior cloning and large generalist models: it is a task-specific policy trained from scratch on tens of demonstrations. Its closest relatives in Embodied AI differ mainly in how they represent the action distribution and how much data they need.

Policy familyAction representationTypical data scaleLanguage input
ACTDeterministic chunk from a CVAEAbout 50 demonstrations per taskNo (original form)
Diffusion policyChunk sampled by iterative denoisingTens to hundreds of demonstrationsOptional
Vision-language-action modelTokens or continuous chunksVery large multi-robot datasetsYes
Plain behavior cloningSingle action per stepVaries widelyUsually no
ACT and neighboring policy families

Diffusion policy handles multimodal demonstrations better, for example when operators sometimes grasp from the left and sometimes from the right. ACT, by contrast, is fast at inference and simple to train, which is why it remains a common baseline. Several later generalist models, including Pi0, adopted action chunking as a core idea.

Training and deploying an ACT policy

A typical ACT workflow starts with teleoperated demonstrations, often collected with a leader-follower setup like ALOHA, in which an operator moves leader arms and follower arms copy them. The recorded joint positions become the training targets. Open-source toolkits such as LeRobot provide reference implementations.

  • Data collection: usually 50 or more demonstrations per task, recorded with several cameras, including wrist views.
  • Loss function: an L1 reconstruction loss on actions plus a weighted KL divergence term for the CVAE.
  • Training cost: hours rather than days on a single modern GPU for a single task.
  • Inference: fast enough for a 50 Hz control loop on consumer GPU hardware.

Success depends heavily on demonstration quality. Consistent, unhurried operator motion and good camera coverage of the contact area usually matter more than adding network capacity.

Limitations of Action Chunking with Transformers

ACT learns one narrow skill at a time and generalizes poorly beyond the conditions in its demonstrations. Changes in lighting, object appearance or camera position can sharply reduce success rates. The deterministic output also averages conflicting strategies, which can produce a hesitant motion between two valid options.

Because the original form has no language conditioning, one network does not easily switch between tasks on command. These limits explain why research has moved toward larger multi-task models, while ACT remains valuable for data-efficient single-task learning.

Explained without jargon

Imagine teaching someone to tie a knot by showing them a few times. A beginner who decides each tiny finger movement separately will hesitate and drift off course. Someone who plans a short sequence of moves at once works more smoothly.

Action Chunking with Transformers teaches a robot in that second way. It watches people control the robot, then learns to plan the next second or two of movement in one go, from what its cameras see. That makes its motions steadier and more precise, even after only a few dozen examples.

A typical use case

A university robotics lab wants a two-arm robot to put a small battery into a remote control. A student uses a leader-follower teleoperation rig to record 60 demonstrations, each about 20 seconds long, with three cameras: one overhead and one on each wrist.

The team trains an ACT policy with a chunk size of 100 steps at 50 Hz and temporal ensembling enabled. After roughly five hours of training on one GPU, the policy inserts the battery in most trials when the remote is placed in the same area as during data collection. When the remote is moved to an unfamiliar spot, success drops noticeably, so the team records extra demonstrations with varied placements and retrains, which restores reliable performance.