Transporter and CLIPort: where and what
In Part 1 we looked at how a robot learns from demonstrations: a policy takes the camera image and outputs the action as numbers — coordinates or joint angles. Such policies need dozens of demonstrations per skill, and most of them can't follow a command given in words. But in many tasks the robot takes an object from a table and puts it somewhere else on the same table: a cube into a bowl, a part into a socket. In such tasks an action is a point in the very image the robot sees: pick here, place there. In this lesson we'll look at how a network learns to connect words with images (CLIP), how to output an action as a point in the image of the table and how many demonstrations that takes (Transporter), and how to combine the two so that the robot follows a command given in words (CLIPort).
Images and captions in one space
To carry out the command “put the blue cube in the bowl”, the robot has to connect the words with what it sees. The classical route is an object detector. It's a network that finds objects from a predefined list of classes in an image, such as “cup”, “bowl” and “cube”, and draws a box labeled with the class name around each one. It's trained on images in which people outlined and labeled every object by hand. A detector can't name anything outside its list: to tell a blue cube from a purple one or to recognize a new object, it needs new labeled images and has to be retrained.
Words and images already came up in lesson 1.6: a transformer turns both into tokens — the frame is cut into patches, the command into words, and each piece becomes a vector. But we didn't look at how to tie a word vector to an image vector so that “cube” in the command points to the cube in the frame. That's what we'll take apart here, using CLIP as the example.
CLIP (Radford et al., OpenAI, 2021) learns from 400 million image–caption pairs from the internet. It has two encoder networks: one turns an image into a vector, an embedding, the other does the same for a caption, and the two vectors have the same length. A vector is a list of numbers — CLIP's have hundreds — and it's convenient to picture it as an arrow: in the contrastive learning diagram below a vector has two numbers, so the arrows lie on a plane. The similarity of two vectors shows whether the arrows point the same way. The vectors are scaled to length 1 and multiplied with a dot product, the same way attention in lesson 1.6 compared a query with the keys. For vectors of length 1 the dot product is the cosine of the angle between the arrows: 1 if they point the same way, 0 at a right angle, −1 if they point in opposite directions.
The network learns to guess which caption belongs to which image. The networks are trained on batches: a batch is the set of pairs taken for one training step, and CLIP's batch holds 32,768 of them. For a batch of N pairs, the similarity of every image with every caption is computed, which gives an N × N table, the similarity matrix. Its diagonal holds the N correct pairs: each image with its own caption. In the other N² − N cells an image is paired with someone else's caption.
A training step slightly changes the weights of both networks so that the similarity on the diagonal goes up and in the other cells goes down. The arrows of an image and its caption turn toward each other — that's how the vectors of correct pairs are pulled together. The arrows of an image and the other captions turn away from each other — that's how the vectors of wrong pairs are pushed apart. This is contrastive learning: the model learns by contrasting the correct pairs with the wrong ones.
After training, words and images live in one space. To find an object, it's enough to describe it in words: the image whose vector is closest to the text vector wins. This way CLIP, without a single labeled ImageNet image, classifies 76.2% of ImageNet images correctly — as well as a ResNet-50 trained on its 1.28 million labeled images.
Let's check this in miniature. The lab has objects of four shapes and six colors, and each caption is two words, a color and a shape, such as “red cube”. One combination is missing from training entirely: the model will never see a purple cube.
The rows of the matrix are captions and the columns are images. The brighter the cell, the closer the caption and image vectors. The diagonal is outlined: it holds the correct pairs.
Search by description
The purple cube has a dashed outline: it was not in training.
Under the hood: the contrastive objective and our small model
Let a batch hold pairs, let be the normalized vector of the -th image, the normalized vector of the -th caption, and the temperature. Similarity is the dot product, and the objective is two cross-entropies: for each image, pick out its caption among , and for each caption, its image:
In CLIP the image encoder is a ResNet or a ViT, and the text encoder is a transformer. CLIP's batch holds 32,768 pairs; the temperature is learned along with the networks, starting from 0.07.
In the lab an image is 16 × 16 pixels, and a network with one hidden layer encodes it: 768 → 48 → 16. A caption vector is the sum of the vectors of two words, a color and a shape, with 16 numbers per word. The vectors are normalized, . A batch holds 16 different pairs, and each image is randomly shifted, rescaled and given noise; training takes 600 Adam steps. The matrix in the scene shows eight pairs the model hasn't seen in this exact form: their images are drawn anew.
The model never saw a purple cube, yet it found one. A caption vector is the sum of word vectors, and the network learned to encode the color and the shape of an image separately: it saw purple on the ball, the bowl and the can, and cubes in five other colors. For CLIP, scale does the same job: 400 million pairs contain almost any combination of attributes. That is exactly what a robot needs — to understand words that are not in its demonstrations.
CLIP links words with images: the model in the lab found a purple cube it had never seen. But CLIP compares the whole image with the text and doesn't say where on the table to pick the object up or where to put it.
An action is a cell in the image: how to get from the image the place to reach for
An action is a cell in the image
The policies we looked at in Part 1 output an action as numbers: from the whole image the network computes the object's coordinates. If the cube moves, the network has to notice the shift and recompute the numbers, and it learns this from hundreds of examples with the cube in different places.
Transporter (Zeng et al., Google, 2020) notices that in tabletop pick-and-place tasks the action already lies in the image. Depth cameras look at the table, and their images are fused into a top-down view that matches the table: every pixel is a spot where the robot can lower its gripper. So instead of computing coordinates, you can score every pixel: how good is it to pick here. The result is a map, and the robot picks where it is brightest.
The map is computed by a fully convolutional network: the same weights slide over the whole image. Move the cube, and the peak of the map moves with it. This is translation equivariance: there's no need to learn every position of the cube separately.
The map is trained as a classifier: every cell of the table is a separate class, and the correct answer is the cell where the operator picked in the demonstration. A softmax is computed over the scores of all cells: it turns them into probabilities that sum to 1. Training raises the probability of the correct cell at the expense of the others. So the map is a probability distribution over places on the table. If the operator picked one cube in some demonstrations and the other in the rest, the probability is split between them: the map has two peaks rather than one in the middle.
Ada is the home humanoid robot the course labs are built around. More about her in lesson 0.1.
Let's try it on Ada's table. In a demonstration, the operator picks up the red cube. We'll train two models on the demonstrations. The first is a map: a single 5 × 5 filter slides over the 24 × 24 table grid and scores every cell. The second is coordinate regression: a network looks at the whole image and outputs two numbers, like the Part 1 policies. Then we'll test both models on 30 new scenes in which the objects lie elsewhere.
The table is shown from above: squares are cubes, the ring is a bowl, the disk is a ball.
The whole “where to pick” map. The same table from above, 24 × 24 cells: the darker the cell, the higher the “pick here” score. The large scene shows only its peak.
Under the hood: the map, softmax over cells and equivariance
The network outputs a score for every cell . The probability of picking in a cell is a softmax over all cells, and the training objective is the cross-entropy with the cell where the operator picked:
The last equation is equivariance: if shifts the image , the map shifts the same way. In Transporter the map is computed by a deep fully convolutional network over a top-down view fused from three RGB-D cameras. Here the map is computed by a single 5 × 5 filter over three colors: 75 weights and a bias. Coordinate regression is computed by a multilayer perceptron (MLP): two fully connected layers, 1728 → 32 → 2, look at the whole table grid. It has about 55 thousand weights and is trained on mean squared error. Both models train right here, with 120 and 300 Adam steps.
The map picked the red cube in new scenes after one demonstration, while regression kept missing even after twenty: it has to learn how every position of the cube turns into numbers. The Transporter paper shows the same at scale. On the block insertion task the map gets 100% from one demonstration, and a convolutional network with regression gets 8% even with a thousand demonstrations.
With two cubes the difference is even starker: the map has two peaks, and the robot picks one of them, while regression outputs the mean — a point between the cubes. This is the multimodality from lesson 1.3, only now you can see it in the image. Picking the object up is only half the task. Where do you put it down?
Where to place: template matching
Placing a part into a socket means finding the position and rotation at which the part matches the slot. Transporter searches for them the way you look for a familiar fragment in a photo. For every pixel of the top-down view a network computes several numbers that describe what is at that spot. These numbers are called features, and the whole image made of them is a feature map. From it Transporter takes a crop: a square piece around the point where the robot picked the object. The crop contains the object itself and its immediate surroundings. The crop is laid over every place in the scene, and the object goes where the match is best. To find the rotation, the crop is rotated through 36 angles in 10° steps, and a map is built for each angle.
The real Transporter learns the features of the crop and of the scene from demonstrations. In the interactive we set them by hand: the cells of the socket's slot get +1, and the cells of the walls around it get −1. The part is shaped like an L of five squares. For each position of the part we look at how much of it lands in the slot and how much lands on the walls. The more lands in the slot and the less on the walls, the brighter that spot is on the map. The brightest spot is where the part fits best.
Under the hood: transport as feature correlation
Let be the features of the crop around the pick point and the features of the whole scene. The score for placing at pose (a shift and a rotation) is their cross-correlation:
and are two fully convolutional networks, trained with the same cross-entropy over the poses where the operator placed the object. Rotation is searched explicitly: the input is rotated through angles, and the score becomes an H × W × 36 map. So the network doesn't learn rotation as a number; it compares rotated copies. In the interactive the features are set by hand, the scene is a 32 × 32 grid, and the part covers 80 cells.
How many demonstrations you need
Maps and template matching give Transporter a kind of generalization that networks outputting numbers lack. The chart below shows the share of successful attempts on tasks from the paper as a function of the number of demonstrations. The paper compares Transporter with two such networks, and both are built on an MLP.
MLP stands for multilayer perceptron. It's the simplest neural network: it has several fully connected layers, and every neuron in a layer receives all the outputs of the previous layer. Conv. MLP is the convolutional network with regression mentioned above, the one that inserted the block into the socket in 8% of attempts even after a thousand demonstrations. Its convolutional layers process the top-down view of the table, and the MLP outputs where to pick and where to place as numbers. GT-State MLP gets as input not an image but the exact state of the scene (ground truth state): the positions and rotations of all objects. In the classical stack from lesson 0.1 such poses come from the perception and state estimation modules. GT-State MLP gets them perfectly accurate, as if perception never made a mistake, and still learns more slowly than Transporter.
Horizontal axis: the number of demonstrations; vertical axis: the share of successful attempts. The data come from Table 2 of the Transporter paper (2020).
Transporter picks and places by maps and learns from dozens of demonstrations. But it knows no words: if there are three cubes on the table, it will pick the one that was picked most often in the demonstrations. How do you add a command to the maps?
CLIPort: CLIP picks what to grasp, Transporter picks where
CLIP knows words but gives no location. Transporter gives a location but knows no words. CLIPort (Shridhar, Manuelli, Fox, 2021) joins them as two streams. The semantic stream takes CLIP features tied to the text of the command and answers what to pick. The spatial stream is the Transporter network, and it answers where to pick and where to place. The two streams merge into one map: where to pick and where to place.
The main thing CLIP brings is words that never appeared in the demonstrations. In the paper the colors are split: the robot is trained on yellow, brown, gray and cyan objects and tested on orange, purple, pink and white ones. One model for 10 tasks works no worse than a separate model for each, and on a real Franka arm a single model learned 9 tasks from just 179 image–action pairs.
Let's build CLIPort in miniature. The “Where” map comes from a pick filter that learns to pick up cubes. The “What” map comes from the mini-CLIP from Lab 1: for each cell it takes a window, a small square of the table around the cell, and compares it with the text of the command. The “Final” map is the product of the two. The robot's demonstrations only contain commands with three colors: red, blue and green. For comparison, we take a model that learns words from these demonstrations alone: it adds a separate filter for each word to the pick filter.
This is how the model sees the table from above: three cubes of different colors and a bowl. The ring marks the cell where the model picks. It is green if the model picks the named cube and red if it picks the wrong object.
All three maps show the same table from above, 24 × 24 cells. The “Where” map comes from the pick filter, which does not take the command into account. The “What” map shows how much the window of the table around each cell resembles the text of the command, according to mini-CLIP. In CLIPort the “Final” map is the product of the first two: it is the “where to pick” map, as in Lab 2. Models without CLIP have no “What” map. The “no words” model picks by the “Where” map, and the “words from demos” model builds the final map with a filter to which the word's filter is added.
Under the hood: how the real CLIPort works and what we simplified
CLIPort's semantic stream consists of CLIP's frozen image encoder (ResNet-50) and its text encoder. The text features are multiplied with the image features at three decoder levels. Lateral connections pass the spatial stream's features into the semantic stream at several levels, and at the end, for the pick map, the features of the two streams are added. CLIP gets only color: it was trained without depth, while the spatial stream sees RGB-D. Training uses the same cross-entropy over pick and place poses: 200 thousand steps on a single GPU over two days.
Our fusion is simpler: the probabilities of the two maps are multiplied, , . The “what” map is the mini-CLIP similarity between the text vector and the vector of the 16 × 16 window around each cell. The “where” filter learns from nine demonstrations to pick the named cube, but it never sees the command. The “words from demos” model adds a word filter to the shared filter; a word that never appeared in the demonstrations has no such filter.
The model that learned words from the robot's demonstrations knows three colors, and purple means nothing to it. CLIPort knows purple from CLIP, even though the robot never once picked up a purple cube. The demonstrations teach it the main thing — picking cubes up and putting them down — and the words come from a model trained on a huge set of pairs from the internet. This division of labor became the foundation of the models that followed.
What remains of these ideas
Separate “what” and “where” streams are gone, but the ideas stayed. An encoder trained on image–text pairs sits in almost every vision-language-action model (VLA, Part 3). In OpenVLA, an open VLA from 2024 (lesson 3.5), the image is encoded jointly by DINOv2 and SigLIP, a successor of CLIP. π0 (Physical Intelligence policy, 2024; lesson 3.6) is built on Google's vision-language model PaliGemma with its own SigLIP encoder.
The action as a point in the image came back too. RoboPoint (2024), a vision-language model fine-tuned on points, marks on the frame where to reach and where to place, following a command. Gemini Robotics-ER, a 2025 model from Google DeepMind (lesson 3.7), points at objects and predicts grasps, trajectories and 3D bounding boxes. That's the Transporter map, only now it comes from a large model that understands language.
But a table map works when the task boils down to pick-and-place and the scene is visible from above. Turning a tap, putting a cup on a shelf 30 cm up or opening a drawer can't be described by a pixel map of the table: you need three dimensions and rotations about every axis. That's what the next lesson is about.
Eight common misconceptions
Lesson takeaways
- CLIP learns from 400 million image–caption pairs to guess which caption goes with which image. Words and images end up in one space, and you can find an object by its description, even by a combination of words that never appeared in training.
- Transporter outputs an action as a pixel map of the top-down view. The network is translation-equivariant, so one demonstration is enough for the map where even a thousand fall short for coordinate regression.
- A map can have several peaks: if there are two identical cubes on the table, the robot picks one of them, not a point between them.
- Transporter finds where to place by template matching: it compares the crop around the picked object with the scene at 36 rotations and puts the object where the match is best.
- CLIPort combines “what” from CLIP and “where” from Transporter. One model learns many tasks and, thanks to CLIP, understands words that never appeared in the robot's demonstrations.
Open questions
Why does Transporter work with a top-down view rather than the camera frame as is?
In a camera frame, perspective distorts sizes and distances: the same cube looks bigger closer to the camera, and a pixel doesn't correspond to a single spot on the table. A top-down view fused from depth camera images matches the table, so every pixel is an action, and moving an object is the same shift in the image. Without that, equivariance doesn't work.
The robot has to put a cup on a shelf 30 cm up. What is a table map missing?
Height and rotations about every axis: a pixel map of the top-down view only sets a spot on the plane and a rotation about the vertical. For such tasks Transporter adds regression of the remaining degrees of freedom, while PerAct from lesson 2.2 moves to a 3D grid and searches for the next pose among voxels.
Paper guide
- Read closelySection 3 and Figure 2: the two streams and how the text is mixed with the image. Section 4: seen and unseen colors and objects, one model for 10 tasks.
- Safe to skipThe description of each task in the appendix and the augmentation details.
- Question to keep in mindWhy does the semantic stream get only color, while the spatial stream gets color and depth? What would change if CLIP saw depth?
A. Zeng et al., “Transporter Networks: Rearranging the Visual World for Robotic Manipulation”, CoRL 2020 — pick maps, transport as correlation and the Ravens benchmark.
A. Radford et al., “Learning Transferable Visual Models From Natural Language Supervision”, ICML 2021 — CLIP: contrastive learning and zero-shot transfer.
Resources
- Transporter NetworksProject page: videos and the code of the Ravens benchmark
- CLIPortProject page, videos with a real arm, and code
- CLIP: Connecting text and imagesOpenAI's post with zero-shot transfer examples
- OpenCLIPOpen CLIP models of different sizes and training code
- RoboPointA vision-language model that marks action points on the frame following a command
The robot now picks and places on a command in words: the action is a cell in the top-down view of the table plus a rotation of the gripper about the vertical. But from above, the top and bottom shelves are the same cell, and the gripper takes a drawer handle from the side. A table map can't describe such actions.
Lesson 2.2 · PerAct: how to choose a gripper pose in 3D — three coordinates and three angles