Robotics Warehouse Logistics
Warehouse robots trained with reinforcement learning usually only work in the layout they were trained on. I trained one shared policy for a team of simulated robots that keeps delivering when the shelves and drop-off points move.
The warehouse in 3D
RWARE's evaluation warehouse, the task the paper is scored on, with a trained policy driving all four robots live in your browser. Pick a policy from the menu; the scores, other layouts and a side-by-side comparison are in the top-down demos further down.

2026 specialist
Trained on this warehouse alone: the best of my policies here, and lost on any other layout.
Drag to turn the view, scroll to zoom, middle-drag to move it.Drag to turn the view, pinch to zoom, two fingers to move it.
About this model: the real simulator and policies, with shapes drawn for the page
These are the networks themselves, not recordings: I ported the RWARE simulator to JavaScript, checked it against the Python package step for step, and exported each policy's weights, so every move is computed in your browser. The simulator decides every position, heading, load and request. RWARE gives robots and shelves no shape, so the low drive units (an empty RWARE robot can drive under a shelf), the racks of bins that turn green when requested, and the motion between whole-cell steps are drawn for this page. The still shown while the view loads is a real step of the 2026 specialist from a fixed seed.
The problem
RWARE is a multi-agent grid world in which robots cooperate to carry requested shelves to delivery points. Policies trained in it tend to overfit to one floor plan. In the paper, Developing Layout-Agnostic Policies via Transfer Learning in RWARE, I asked whether a single shared policy could transfer across randomly generated layouts without being retrained for each one. (The paper calls a requested shelf a box, and the 2025 sections below keep its wording.)
At a glance
- Course
- ECE 408, University of Arizona
- When
- Spring 2025, revisited in 2026
- Team
- Solo project
- Simulator
- RWARE, a multi-agent grid world
- Method
- One shared PPO policy, in PyTorch
I trained the agents with Proximal Policy Optimization (PPO) in PyTorch. Every agent runs the same small network: two fully connected hidden layers of 64 units with ReLU activations, and a softmax over the available actions. The hard part is the reward. An agent is paid only when a requested box reaches a delivery point, which takes a long chain of correct moves, so early training gets almost no signal to learn from.
How a robot decides, and how it learns
No one tells a robot the right move. It tries moves, and the network that picks them is adjusted so the moves that led to deliveries become more likely. The same network drives every robot, so whatever one robot learns, they all learn.
Making the task learnable
Three techniques worked together over 20,000 training episodes. Reward shaping gave the robots something to learn from before their first delivery. A delivery is worth +1; for the first 200 episodes an agent also got +0.001 for picking up a box, and for the next 200 it got that bonus only when the pickup happened near requested boxes.
The numbers
| Training episodes | 20,000 |
|---|---|
| Delivery reward | +1 |
| Pickup bonus | +0.001first 200 episodes |
| Curriculum | 4 phasesphases 1 to 3: 5,000 each |
| Task-specific pass | 100 episodes |
A four-phase curriculum made the task harder in steps. Phase 1 (5,000 episodes) uses a few shelves, every box requested and many delivery points. Phase 2 (5,000 episodes) cuts the number of requested boxes every 500 episodes. Phase 3 (5,000 episodes) reduces the delivery points to two, and phase 4 places shelves and delivery points at random. Throughout, domain randomization sampled a new layout at the start of every episode, within the limits of the current phase, so the policy could not memorize paths.
After the curriculum came a short task-specific pass: 100 more episodes on the target layout, with no shaping and no randomization.
What the 2025 policy did
Training took about 30 hours on a single NVIDIA RTX 4080 Super. I then evaluated the policy for 100 episodes on RWARE's default tiny four-agent task (10 × 11 cells, the evaluation task in the demos) and compared it with published results from methods trained for far more episodes than mine.


The policy's mean return was 39.02 on the 10 × 11 layout, against 45.11 reported for SEAC, the method the RWARE authors list as state of the art. Its max return, 51.0, was above the 49.42 reported for the MAPPO baseline. Per agent, the average individual reward was 9.755 and the maximum 16.0.
Around episode 8,000 the agents settled into a circular search: sweep, grab a requested box, drop it at a delivery point, return to the sweep. Not everything went to plan. Some agents gamed the shaped reward by holding a requested box without moving for a whole episode, and a few late episodes still ended with almost no deliveries.
2026: a stronger policy
In 2026 I came back to see how far the same idea could go with a fuller training method. The task, what each robot can see and the one shared policy are unchanged; how it learns is not. A value network, used only in training, estimates how good a situation is, and judging each action against that estimate rather than the raw return of one episode is far less noisy. 40 to 48 simulated warehouses run in parallel on CPU workers, each batch of experience feeds several gradient steps on the GPU (7,500 to 10,000 simulation steps per second on my desktop), and an entropy bonus keeps the robots trying new things for longer. There is no shaping and no curriculum: the only reward is +1 for a delivery.
The numbers
| Warehouses in parallel | 40 to 48 |
|---|---|
| Simulation steps per second | 7,500 to 10,000 |
| Training per policy | 40 million stepsone to one and a half hours |
| Scored over | 100 episodes500 steps, 4 requested shelves |
| Reward | +1 per delivery |
Each policy below trained for 40 million simulation steps (one to one and a half hours) and was scored over 100 episodes of 500 steps with 4 requested shelves, the same episode length and request count as RWARE's default task. The table gives mean deliveries per episode.
| policy | default task | random layouts | edge-delivery layouts |
|---|---|---|---|
| Generalist, 128 units | 42.2 | 18.4 | 30.5 |
| Earlier generalist, 64 units | 32.1 | 11.0 | 24.2 |
| Specialist, 64 units | 51.1 | under 1 | under 1 |
| Random actions | 0.1 | 0.6 | 0.4 |
The generalist trained on a mix of the default warehouse, fully random layouts and layouts with delivery points on the edge, with hidden layers 128 units wide instead of 64; the earlier 64-unit run used a slightly different mix of layouts.
The specialist keeps the original 64-unit size and trained on the default warehouse alone: its best episode there delivered 61 and its worst 44. Three specialist runs with different random seeds scored 46.1, 42.8 and 43.2 at the 20-million-step mark, so it is not a lucky seed. It learned that one floor plan by heart, and on any other layout it scores under 1.
What limits the generalist is what a robot can see: only the 3 by 3 cells around it, not the delivery points. In the default warehouse they never move, so position is enough; in a random layout the robots have to find them by carrying a shelf around, which is why those scores are lower.
Two policies, same warehouse
Two copies of the warehouse with the same layout, starting positions, requests and random seed, so the policy is the only difference. It opens on the 2026 specialist against the 2026 generalist on the evaluation task, where the specialist delivers more. Switch the layout to Phase 4 and the specialist all but stops delivering while the generalist keeps going: that is the gap the project set out to close.
Each robot's last 24 cells, in its own color, fading with age.
From above: the numbers, and your own layouts
The same simulator and policies seen from above, as RWARE draws its grid, with what the 3D view leaves out: the score, what one robot can see and what its network wants to do next, the curriculum's other layouts, and an editor for your own.
Each robot's last 24 cells, in its own color, fading with age.
Robot 1: next action
The dashed square is everything this robot can see. Click a robot to follow it.Tap a robot to follow it.
ClickTap a cell to change it: floor, shelf, delivery point.
The robots can run either 2026 policy, the 2025 network from the paper, or random actions. Phase 1, 3 and 4 draw fresh layouts from my 2025 curriculum generators and New layout draws another; in phase 1 nearly every shelf is requested and every edge cell is a delivery point, so deliveries climb much faster. With Edit layout you place shelves and delivery points yourself, in a layout no policy has seen. Under Show, Paths traces each robot's last 24 cells, and Traffic colors each cell by how often a robot stood on it this episode, with a red bar wherever a robot was blocked by another robot or by carrying a shelf into a cell where a shelf stands.
What I took from it
Test on layouts the policy has never seen. The 2026 specialist is the best policy I have on the evaluation warehouse and scores under 1 everywhere else; judged only where it trained, it would have looked like the answer.
Watch what the agents actually do, not only the score. They will find ways to collect a reward without doing the job, as the 2025 robots did by holding a box all episode, and the shaped reward is what they gamed. The 2026 runs went the other way: no shaping at all, a value estimate to judge each move against and experience from dozens of warehouses at once, and they learned from the delivery reward alone.
And share one policy across the fleet. Whatever one robot learns, all of them get, and the policy scales with the size of the fleet.
Where it goes next
None of this is built or tested. The cheapest first step: add the delivery points' positions to what each robot sees and retrain the generalist. Nobody gets that in a real warehouse, which is the point. Its score on random layouts would be the most that memory or communication could ever buy, and a test of whether not seeing the delivery points is what holds the generalist back.
Then memory and talk. Every policy here is a plain feed-forward network that forgets what it saw at the next step; an LSTM could remember a delivery point or a requested shelf passed a few hundred steps earlier, which is what the random layouts punish. Robots could also send each other a short learned message every step, so the first to find a delivery point tells the rest, with attention between robots (as in a transformer or a graph network) as a ready-made channel.
The biggest change would be a manager and its workers. One extra agent with a bird's-eye view, reading the floor as an image with a small convolutional network and keeping an LSTM memory of which shelves it has handed out and which robot is on which errand, sends each robot a target, and each robot's small local policy learns to reach it. That is a new agent, a new kind of action and a target added to every robot's view.
Harder warehouses would need new rules in the simulator. Stacked storage, where boxes on top must be moved to reach one lower down, makes the order of picks matter, so the robots would have to plan several moves ahead. Human workers on the floor would turn collisions into a hard safety constraint rather than a penalty, enforced by a check that refuses any move into a cell a person might enter or by training methods built for constraints, and the 3 by 3 view would likely have to grow to see people coming.
Where else this applies
The pieces of this problem turn up wherever a fleet runs errands: one shared policy, agents that see only what is near them, pay only when a job is finished, and a layout that keeps changing. Sidewalk and campus delivery robots face the random-layout problem with the goals moving every trip, and an order dispatcher is the manager-and-workers idea with a real job title. In an autonomous supply chain, warehouses, trucks and stores can each be an agent that sees only its own stock and its neighbors' orders; a policy that keeps working when a supplier drops out is one that keeps working when the shelves move, at a much larger scale.
RWARE is a tidy grid: robots move one cell a step, never slip, break down or run out of battery, and a delivery takes no time. Real delivery robots and supply chains add continuous space, delays and failures, so a policy trained here is a starting point for those problems, not a solution to them.
Want the details behind this one, or to talk about similar work?