Skip to content

7 minute read

Compute the change, not the frame

In simulated grasps, reusing features for the unchanged parts of each frame cut CPU time by 80% and let the gripper correct 9 ms sooner.

With the cache off, the detector computes features for the whole image every time the camera delivers a frame. With the cache on, it checks each patch and carries forward features it can still use. To see whether those savings reach the gripper, we gave the object a sideways push during the approach.

Watch the gripper correct its reach

Gripper response · 25 Hz
These paired MuJoCo simulations start from the same pose and receive the same push. Each panel shows the camera input for that run. The camera captures one frame every 40 ms. The times above the images come from gripper motion sampled every millisecond.

At 0:15, the can slides sideways on the packing bench. The gripper follows it after 52 ms with the cache off and 43 ms with it on. Look at the readouts above the two views. Nine milliseconds fits inside a single video frame. Both grippers set the can upright on the saucer and finished the seven-second sequence.

We ran four matched pushes at each workstation. The corrective command arrived earlier with caching in all 12 pairs, by a median of 9 ms at each station. An earlier command only helps the reach if the gripper starts moving sooner. We checked that against the gripper’s sideways velocity.

Gripper motion after a matched pushMuJoCo · 25 Hz
Each bar is the median time from the push to sustained sideways movement; the cross-hatched box is the time caching saved. A pair enters this chart only when both runs cross the motion threshold. The gain at right is the median of the differences within those pairs.

Across the eight pairs with measurable motion in both runs, caching brought the first correction forward by a median of 9 ms. In the other four, at least one gripper stayed below the threshold during the observation window. Those four still count toward placement success. With the cache on and with it off, the gripper finished all 12 placements.

The three objects shared the same contact shape. At 25 Hz the gripper keeps following its previous command while the CPU processes the next image. We applied that measured delay to each new command, rounded up to the next millisecond. To count as a correction, sideways speed had to reach 20 mm/s in the push direction, rise at least 15 mm/s above its pre-push value and hold for three milliseconds. We watched for this until 1.24 seconds into the run. A successful placement required a lift and an upright, settled landing within 40 mm of the saucer center, without a drop or a gripper collision.

An earlier test on a plain bowl-and-plate tabletop used a 192 × 192 camera. Across 60 matched pushes the median motion advantage was 2 ms. Both modes made all 60 placements.

Where the next frame gets its features

Look at frame 71 of the café grasp. The cup is in the air. The detector has just recomputed 52 of 540 tiles around the cup, fingers and shadow. Another 374 tiles still carry features from the opening frame. Select the upper-left tile, then step forward to follow one patch of background through the reach.

Which tiles did the detector refresh?MuJoCo · 30 Hz

Coffee counter

Loading the measured frames…

Parts bench

Loading the measured frames…

Packing station

Loading the measured frames…
The cross marks the detected center. Select a tile on the moving cup, then one on the counter, and compare the last frame that supplied each feature. The fixed camera views combine the moving gripper and objects with generated photographic backgrounds and textures.
Coffee counter · tile updates
The five-second café grasp from the viewer, played at half speed. The right panel outlines each recomputed tile in orange. Watch the outlines move from the rim to the fingers and their shadow as the cup lifts.

For this experiment the fixed camera produced 150 images over five seconds at 30 Hz. We divided each 480 × 288 image into 16 × 16 tiles. On the first frame the encoder computed them all. On subsequent frames an exact RGB match let it reuse the stored feature. Even a one-level change in one pixel channel triggered a fresh computation for that tile. As the cup moved, this refreshed both its new position and the patch of counter it uncovered.

The encoder measures rust-red and sage-green contrast. The original detector also picked up warm tones in the espresso machine and cartons, so we adjusted the color test and used the same settings at all three stations. For each color we sum its strength and its horizontal and vertical moments across the tiles to estimate the centers of the object and saucer. The controller uses those two positions to guide the grasp. A cup edge measured this instant and a counter tile measured a second ago can both contribute to the same command.

What the cache saved on each decision

Processing one frame at a fixed cameraMuJoCo · 30 Hz
Each station contributes 450 frames from three paired grasps, including three cold starts. Timing starts with RGB in memory and ends when the motor command is ready. The cached bars include the time spent checking every tile.

At each station the exact cache reused about 85% of the tiles. That left the CPU to process the moving fingers, the object and the newly exposed work surface. Both controllers still ran at 30 Hz in this experiment. The shorter processing time shows how much of the interval between images was freed up.

We checked that the gripper and object states matched before comparing the detectors. Across all 1,350 paired observations, every tile descriptor, detected center and motor command matched exactly. Both modes completed all nine placements.

We also checked how well the detector located the object itself. In the three episodes in the viewer, the median distance between its estimate and the center of the visible target pixels was 8.5 pixels for the cup, 1.3 for the bushing and 7.0 for the can. We scored the estimate against the visible pixels in the simulator’s object mask. The controller located the target from RGB alone.

When is a change small enough to ignore?

On the same three camera sequences, we added independent noise of −1, 0 or +1 to each RGB channel. Exact matching now refreshed every tile. Across 450 frames, full computation took 4.62 seconds and caching took 4.69 seconds. The commands stayed identical, but checking the cache cost 1.5% more time overall. Exact reuse preserves features for this tile-local encoder. A model that mixes information across patches needs its own test.

The response test at the top used a more tolerant rule. It kept a tile while every channel was within 12 RGB levels of its last encoding. That allows a slight feature error. On the earlier bowl task with camera shake, changing light and noise, a six-level tolerance cost 0.6% in processing time. At twelve levels, eight fresh pairs took 5.09 seconds of processing with the cache off and 1.78 seconds with it on. Both modes placed the bowl on all eight attempts.

When the fingers hide the bowl

On the original bowl-and-plate tabletop, we fitted a guard to partly block the camera as the fingers closed. At 45° from overhead, the median peak obstruction with caching was 73% of the bowl’s pixels. Both modes placed it on all ten attempts. At 60°, both missed on all ten. Caching still saved about 65% of image-to-command time at each angle. Watch where the bowl lands in the two replays below.

Camera angle · guarded grasp replay
We replayed the recorded bowl and gripper positions from a common viewpoint against the café backdrop. The angle labels identify the tabletop cameras the controller used during the grasps. At 45° the bowl lands upright. At 60° it tips over beside the saucer.

How much can a wrist camera reuse?

Eight seconds into a recording of a physical ALOHA robot making coffee, the overhead camera sees the machine, the counter and a gripper holding a coffee pod. The pod fills much of the left wrist view. As that wrist turns, the background moves across the image too. We replayed all 1,100 frames from each of the three cameras and timed the same color-and-contrast encoder, with the same twelve-level tolerance, on each view.

ALOHA coffee · synchronized camera views
The overhead camera shows the coffee machine, a clear cup and a gripper holding a pod. The left wrist sees the pod up close. The right wrist faces the work surface.
One instant from episode 0 of the ALOHA static coffee dataset. The large image is the overhead camera. On the right, the left wrist is above and the right wrist below. Each view shows frame 400, at 8.00 seconds.
Feature processing across the recorded viewsALOHA recording
The bars add up CPU time over the same 22 seconds of recorded activity. Each comparison starts from identical decoded frames and includes the cache check.

The overhead view gave the cache the largest saving. Even at the right wrist, where the saving was smallest, a frame was still cheaper to process on average with caching. The twelve-level tolerance did change the features slightly. Across the three views, relative feature error was 0.83% to 1.19% against full recomputation.

The next grasp

The recordings answer the compute question for moving cameras. To find out whether a physical arm corrects sooner, we need a live grasp. We would timestamp the frame that first shows the bowl move, the corrective command and the first change in sideways velocity from the joint sensors, then check where the bowl lands.