# Perceiver-Actor: A Multi-Task Transformer for Robotic Manipulation

Mohit Shridhar, Lucas Manuelli, Dieter Fox · arXiv · 2022-9-12

- **Problem** Transformer agents for 6-DoF behavior cloning need far more demonstrations than robots can easily collect when they operate on raw 2D images.
- **Method** Voxelizes RGB-D observations and discretized actions, encodes voxel patches and a CLIP language embedding with a Perceiver, and predicts per-voxel Q-values trained with cross-entropy.
- **Results** Trained one multi-task agent on 18 RLBench tasks with 249 variations, with an average improvement of 2.83× over C2FARM-BC at 100 demonstrations per task.

![Figure 2: PERACT Overview. PERACT is a language-conditioned behavior-cloning agent trained with supervised learning to detect actions. PERACT takes as input a…](https://refivu.com/papers/36489f39-2d0a-49d5-8c29-68447645c8d7/figures/figure-c8db19c32dd4552c746e5fbc63421c08.png?thumb=512)

**Figure 2** . PERACT Overview. PERACT is a language-conditioned behavior-cloning agent trained with supervised learning to detect actions. PERACT takes as input a language goal and a voxel grid reconstructed from RGB-D sensors. The voxels are split into 3D patches, and the language goal is encoded with a pre-trained language model. These language and voxel features are appended together as a sequence and encoded with a Perceiver transformer \[1\]. Despite the extremely long input sequence, Perceiver uses a small set of latent vectors to encode the input (see Appendix Figure 6 for an illustration). These encodings are upsampled back to the original voxel dimensions with a decoder and reshaped with linear layers to predict a discretized translation, rotation, gripper open, and collision avoidance action. This action is executed with a motion-planner after which the new observation is used to predict the next discrete action in an observe-act loop until termination.

[Original paper](https://arxiv.org/abs/2209.05451v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mohit Shridhar, Lucas Manuelli, Dieter Fox · Perceiver-Actor: A Multi-Task Transformer for Robotic Manipulation · Original paper figure · Extracted the figure area from page 4 of the original PDF.

## Why image-based manipulation agents need so much data

Transformers have spread from language and vision into domains that do not naturally involve sequences, which makes a general architecture attractive for robots as well. Robotic manipulation is different because demonstrations are both scarce and costly, so the architecture alone does not guarantee data efficiency. Pixel-level Transformers are less data efficient than models that build the 2D structure of images into the design through convolutions or patches, so the problem formulation matters as much as the backbone.

Behavior-cloning agents that map 2D images directly to 6-DoF actions show the same inefficiency. Gato and BC-Z reach impressive multi-task ability, but collecting their data takes weeks or even months.

C2FARM takes another route: it voxelizes the observation and action space and learns with 3D ConvNets, but it is trained with reinforcement learning, and its coarse-to-fine scheme gives a receptive field that cannot cover the whole scene at the finest level.

## Voxels, language and a Perceiver in one agent

PERACT is a language-conditioned behavior-cloning agent. It takes a language goal and a voxelized RGB-D reconstruction of the scene, and predicts the next discretized translation, rotation, gripper state and collision setting.

The voxel formulation gives a structural prior for 6-DoF actions. It also makes it natural to fuse observations from several views and to augment the data in 6-DoF. The authors tie this formulation to learning action-centric representations, meaning perceptual features organized around the actions the agent can take.

PERACT is trained as a classifier with supervised learning, which places it close to CLIPort, except that its observations and actions are 3D voxels rather than 2D image pixels. At run time it works in an observe-act loop: each predicted action is executed by a motion-planner, and the new observation drives the next prediction until the episode terminates.

## From demonstrations to keyframes and voxel targets

Each demonstration is a sequence of actions paired with observations and an English language goal. An action holds the 6-DoF pose, the gripper open state and a collision-avoidance flag. Observations are RGB-D images from any number of cameras; the simulated experiments use four cameras and the real-world experiments use a single front camera.

Predicting continuous actions directly is inefficient and noisy, so only keyframes are kept. An action counts as a keyframe when the joint velocities are near zero and the gripper open state has not changed. Each datapoint then becomes a prediction of the next keyframe action.

Translation is the voxel closest to the center of the gripper fingers, and rotation is binned into 5 degree steps on each of the three axes. The gripper open state is binary. The collide flag is binary and selects whether the motion-planner avoids everything in the voxel grid or nothing at all, because tasks mix contact motions such as pulling a drawer open with non-contact motions such as reaching a handle.

## How voxels become per-voxel Q-values

The language goal is encoded with CLIP's language encoder. The language encodings are fine-tuned with a linear layer and appended to the voxel encodings, and learned positional embeddings mark voxel and token positions. The authors chose CLIP so that future work could use vision features aligned with language.

The voxel grid is turned into 5 × 5 × 5 patches with a 3D convolution whose kernel size and stride are both 5. A 100 × 100 × 100 grid therefore gives (100/5)³ = 8000 patches. A standard Transformer with O(n²) self-attention over that many patches is hard to fit on a commodity GPU, which is why the Perceiver is used.

The Perceiver cross-attends the input to a small set of randomly initialized, learned latent vectors, applies self-attention among the latents, and cross-attends the latents back to the input size. By default there are 2048 latents of dimension 512. The Perceiver uses 6 self-attention layers, and a 3D convolution with tri-linear upsampling decodes the patch encodings into 64-dimensional voxel features, with a skip connection from the encoder as in UNets.

The chosen action maximizes each Q-function, as in \\\[ T\_{trans} = \\arg\\max\_{(x,y,z)} Q\_{trans}((x,y,z)\\mid v,l) \\\] and in the analogous forms for rotation, gripper open and collide.

## Training with a classification loss

Each Q-function is turned into a softmax over its candidates, and the loss is the sum of cross-entropy terms for translation, rotation, gripper open and collide, each against its one-hot target. The loss is \\\[ L\_{total} = -E\_{Y\_{trans}}\[\\log V\_{trans}\] - E\_{Y\_{rot}}\[\\log V\_{rot}\] - E\_{Y\_{open}}\[\\log V\_{open}\] - E\_{Y\_{collide}}\[\\log V\_{collide}\] \\\], which is minimized, with each V being the softmax of the corresponding Q-function.

For robustness, the observation and the keyframe action are both perturbed with translation and rotation noise.

For multi-task training, each batch first samples a set of tasks uniformly and then picks one input-action tuple per sampled task. Longer-horizon tasks therefore need more steps to cover all their input-action pairs, while every task receives equal weight in the gradient updates.

## Simulation setup and evaluation protocol

Simulation runs in CoppelaSim, interfaced through PyRep, with a Franka Panda that has a parallel gripper.

The study uses 18 RLBench tasks, and the figure shows examples of the simulated and real-world tasks used. Each task has between 2 and 60 variations, and in total there are 249 variations. Variations are sampled during data generation and kept consistent during evaluation, and some tasks were modified to add variations. The number of extracted keyframes ranges from 2 to 17, and every keyframe of an episode shares one templated language goal.

Train and test objects are the same, so unseen objects were not tested. At test time the agent still faces novel object poses, randomly sampled goals and scenes with different colors, shapes, sizes and categories.

Each evaluation episode scores 0 for failure or 100 for complete success, with no partial credit. Each agent is evaluated on 25 episodes per task, which is 25 × 18 = 450 episodes in total, for agents trained on 10 or 100 demonstrations per task. An episode runs until an oracle signals task completion or until a maximum of 25 steps.

## Multi-task results against the baselines

Image-BC is an image-to-action agent in the style of BC-Z. It conditions FiLM layers on CLIP language features and takes RGB-D images, with either a CNN or a ViT vision encoder. C2FARM-BC is the 3D fully-convolutional network of James et al., trained here with cross-entropy behavior cloning instead of reinforcement learning, with language features at the bottleneck.

Its two voxelization levels reach a finest resolution of 0.47 cm, versus 1 cm for PERACT.

The introduction states that PERACT outperforms image-to-action agents by 34× and 3D ConvNet baselines by 2.8×.

With insufficient demonstrations, Image-BC scores near zero on most tasks. The authors attribute this to single-view observations and to having to learn hand-eye coordination from scratch. Image-BC is also disadvantaged because the voxel formulation makes multi-view fusion, 6-DoF action representations and 3D data augmentation natural, which are hard to obtain in image-based methods.

For a number of tasks, C2FARM-BC performs worse with more demonstrations. The authors attribute this to insufficient capacity, and they note that additional demonstrations bring additional task variants to fit, which may hurt performance.

With 10 demonstrations PERACT reaches more than 65% on tasks with few variations, such as open drawer with 3 variations. Tasks with many variations, such as stack blocks with 60 variations, need substantially more data to cover concepts like a teal color block.

## Ablations and the global receptive field

The agent without language conditioning, PERACT (w/o Lang), does not know which task to perform and performs at chance.

On open drawer, removing the skip connection slightly slows training, removing the Perceiver Transformer prevents good performance with the global receptive field, and replacing the extracted keyframes with random or fixed-interval keyframes leads to zero performance.

Appendix G varies the number of Perceiver latents, the voxelization resolution and the data augmentation. More latents generally help with more tasks, while short-horizon tasks need fewer; some tasks are solvable on a 32³ grid, but high-precision tasks need the full 100³ grid.

The open drawer task has three variants, top, middle and bottom drawer, and the handles look identical. A limited receptive field makes these hard to tell apart, so the experiment compares PERACT with several C2FARM-BC voxelization schemes trained on 100 demonstrations. Only PERACT achieves more than 70% success, whereas every C2FARM-BC version the authors tested sits around ∼ 33%, which the authors read as chance, and so the global receptive field appears necessary for this task.

The variant labels denote voxel levels: \[16, 16\] indicates two levels of 16³ grids, and \[64\] a single 64³ level without the coarse-to-fine scheme.

## Real-robot evidence on a Franka Panda

On a Franka Emika Panda, a multi-task PERACT agent was trained from scratch, with no sim-to-real transfer or pre-training, on 7 tasks with 18 unique variations from 53 demonstrations.

The most common failures involved incorrect gripper open predictions, which lead the agent into unseen states. The authors propose HG-DAgger style corrections as future work, and they also note that the agent exploited dataset biases.

## Limits of the evidence

Generalization to unseen objects was not tested, because train and test objects are the same.

Training took 16 days on 8 NVIDIA V100 GPUs, so the compute cost of the agent is substantial.

## Paper info

- **Authors**: Mohit Shridhar, Lucas Manuelli, Dieter Fox
- **Venue**: arXiv · Preprint
- **First published**: 2022-9-12
- **Added**: 2026-11-4
- **Updated**: 2022-11-11
- **Version**: v2
- **arXiv**: 2209.05451
- **Category**: cs.RO · cs.AI · cs.CL · cs.CV · cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2209.05451v2) · [PDF ↗](https://arxiv.org/pdf/2209.05451v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Transformers have revolutionized vision and natural language processing with their ability to scale with large datasets. But in robotic manipulation, data is both limited and expensive. Can manipulation still benefit from Transformers with the right problem formulation? We investigate this question with PerAct, a language-conditioned behavior-cloning agent for multi-task 6-DoF manipulation. PerAct encodes language goals and RGB-D voxel observations with a Perceiver Transformer, and outputs discretized actions by \`\`detecting the next best voxel action''. Unlike frameworks that operate on 2D images, the voxelized 3D observation and action space provides a strong structural prior for efficiently learning 6-DoF actions. With this formulation, we train a single multi-task Transformer for 18 RLBench tasks (with 249 variations) and 7 real-world tasks (with 18 variations) from just a few demonstrations per task. Our results show that PerAct significantly outperforms unstructured image-to-action agents and 3D ConvNet baselines for a wide range of tabletop tasks.

## Quote from the paper

Mohit Shridhar, Lucas Manuelli, Dieter Fox (2022). Perceiver-Actor: A Multi-Task Transformer for Robotic Manipulation. arXiv:2209.05451v2. https://arxiv.org/abs/2209.05451v2

**BibTeX**

```
@misc{shridhar2022perceiver,
  title = {{Perceiver-Actor: A Multi-Task Transformer for Robotic Manipulation}},
  author = {Mohit Shridhar and Lucas Manuelli and Dieter Fox},
  year = {2022},
  eprint = {2209.05451},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.05451v2}
}
```

## Other paper commentary

- [CogACT: A Foundational Vision-Language-Action Model for Synergizing Cognition and Action in Robotic Manipulation](https://refivu.com/en/papers/52aadf90-b60a-4301-8fb3-f8cf89016dc5-cogact-a-foundational-vision-language-action-model-for.md)
- [SafeLab: An Interactive High-Fidelity Benchmark for Embodied Safety in Scientific Robotics](https://refivu.com/en/papers/be991429-89d9-451a-b63f-ed2c214300b0-safelab-an-interactive-high-fidelity-benchmark-for-embodied.md)
- [What Does a Skill Vocabulary Cost? A Closed-Loop Decomposition over Demonstrated Motions](https://refivu.com/en/papers/5436c87a-99ef-46a3-afc4-ed0b0a217c6b-what-does-a-skill-vocabulary-cost-a-closed.md)
- [Roboclock: A Unified Benchmark for Time-Aware Robotic Intelligence](https://refivu.com/en/papers/d28d7b22-274f-4e81-9d24-a3d9cc69084a-roboclock-a-unified-benchmark-for-time-aware-robotic.md)
- [The cyborg fly: reflexes survive engineered actuators, coordination needs stand-ins](https://refivu.com/en/papers/7ee56916-27c9-439c-be7d-f45cd51b88f4-the-cyborg-fly-reflexes-survive-engineered-actuators.md)
- [What Must a Model Tell a Planner? Outcome Interfaces for Risk-Aware Planning After Robot Damage](https://refivu.com/en/papers/cf59043a-79f8-46e1-ae50-8eb9c875193e-what-must-a-model-tell-a-planner-outcome.md)
- [Train for the Worst, Plan for the Best: Understanding Token Ordering in Masked Diffusions](https://refivu.com/en/papers/64d5ed83-79ac-4425-8629-7aff772bd0c4-train-for-the-worst-plan-for-the-best.md)
- [Learning to (Learn at Test Time): RNNs with Expressive Hidden States](https://refivu.com/en/papers/6a02f8bd-d757-4f00-9d97-6829bf6db29f-learning-to-learn-at-test-time-rnns-with.md)
- [Reinforcement Learning via Self-Distillation](https://refivu.com/en/papers/020d237b-90b6-4f93-9da6-e25bde98d4ec-reinforcement-learning-via-self-distillation.md)
- [Self-Distilled Reasoner: On-Policy Self-Distillation for Large Language Models](https://refivu.com/en/papers/733bb47f-1989-4658-a978-6131bad900ad-self-distilled-reasoner-on-policy-self-distillation-for.md)
- [CAMR: Compatibility-Aware Memory Replay for Continual Learning in Large Language Models](https://refivu.com/en/papers/24445413-cb2e-4d23-a34a-5020794de1e7-camr-compatibility-aware-memory-replay-for-continual.md)
- [SmolVLA: A Vision-Language-Action Model for Affordable and Efficient Robotics](https://refivu.com/en/papers/39053767-ba8f-472c-b05c-af9ccbcac6d4-smolvla-a-vision-language-action-model-for-affordable.md)

## Terms in this paper

- [Success rate](https://refivu.com/en/terms/0964df1dc5eb-success-rate)
- [cross-entropy loss](https://refivu.com/en/terms/14067bdf8b9f-cross-entropy-loss)
- [CLIP](https://refivu.com/en/terms/b5b5b48d5f4e-clip)
- [behavior cloning](https://refivu.com/en/terms/555c96e41eec-behavior-cloning)
- [Transformers](https://refivu.com/en/terms/ab75807099b0-transformers)
- [keyframe](https://refivu.com/en/terms/e370272d4f67-keyframe)
- [Q-function](https://refivu.com/en/terms/6aa5c03fbd00-q-function)
- [Multi-task](https://refivu.com/en/terms/b68d82382c68-multi-task)
- [RLBench](https://refivu.com/en/terms/fd082b3b30c8-rlbench)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/36489f39-2d0a-49d5-8c29-68447645c8d7-perceiver-actor-a-multi-task-transformer-for-robotic)
