1 00:00:01,000 --> 00:00:09,300 [Hal Turing] Alrighty! Thanks for tuning in! Hello AI world! I am your host, Hal Turing, and my co-host is Dr. Ada Shannon. 2 00:00:09,300 --> 00:00:41,700 [Hal Turing] Today's paper is Emergent Tool Use From Multi-Agent Autocurricula, by Bowen Baker and colleagues at OpenAI, with Igor Mordatch at Google Brain. It was published at ICLR 2020, arXiv 1909.07528. The story is that hiders build forts out of boxes, seekers drag a ramp over the wall, hiders lock the ramps, seekers ride a box across the arena, and hiders end up locking everything. All of that comes from a reward that only says whether a hider is visible. 3 00:00:41,700 --> 00:01:00,200 [Dr. Ada Shannon] The question for this episode is whether that story is measured or just watched. The paper claims six distinct phases, a win over curiosity-driven exploration, and a way to quantify what the agents learned. The videos are great. Whether the numbers back up the narrative is a separate matter, and we'll get to it. 4 00:01:00,200 --> 00:01:11,075 [Hal Turing] Let me build up to that. Why is it surprising? Standard reinforcement learning needs a hand-written reward. If you want a robot to use a hook, you reward hook use. 5 00:01:11,075 --> 00:01:37,650 [Dr. Ada Shannon] Right, and that doesn't scale. Every skill needs a designer who already knows the skill. Intrinsic motivation tries to remove the designer by having the agent reward itself for novelty. Count-based methods pay out for rarely visited states. Random Network Distillation, from Yuri Burda and colleagues at OpenAI in 2018, trains a predictor to imitate a fixed random network. The prediction error is high on unfamiliar states, and that error becomes the bonus. Those are the paper's self-supervised baselines. 6 00:01:37,650 --> 00:01:42,600 [Hal Turing] So novelty is the pressure there. What's the pressure in hide-and-seek? 7 00:01:42,600 --> 00:02:02,650 [Dr. Ada Shannon] The opponent. That's the autocurriculum idea, named in the 2019 manifesto by Joel Leibo and colleagues at DeepMind. Each agent's policy is part of every other agent's environment. When one side finds a strategy, the other side's problem changes. No designer schedules difficulty. The opponent's current skill sets it. 8 00:02:02,650 --> 00:02:07,275 [Hal Turing] Self-play isn't new, though. Dota, StarCraft, AlphaGo. 9 00:02:07,275 --> 00:02:29,800 [Dr. Ada Shannon] Those are abstract games. A Go move is a new board position. Here the world is physical, with movable boxes, ramps and locks, so a new move in the arms race can be a new use of the environment. The closest ancestor is Emergent Complexity via Multi-Agent Competition, from Trapit Bansal and colleagues at OpenAI in 2018, where simulated bodies learned tackling and blocking from simple rewards. Mordatch is on both papers. 10 00:02:29,800 --> 00:02:32,750 [Hal Turing] Okay, give me the rules of the game. 11 00:02:32,750 --> 00:03:00,224 [Dr. Ada Shannon] One to three hiders against one to three seekers, in a physics simulator called MuJoCo. There are three to nine boxes, at least three of them elongated, plus two ramps, with random walls and rooms. The team reward is plus one if all hiders are hidden and minus one if any is seen, and seekers get the opposite. An episode is 240 steps. For the first 40 percent, seekers are frozen, so hiders get a head start. Agents can grab and lock objects. Leaving the play area costs a penalty. Nothing rewards touching an object. 12 00:03:00,224 --> 00:03:04,549 [Hal Turing] So boxes and ramps never appear in the reward. 13 00:03:04,549 --> 00:03:07,049 [Dr. Ada Shannon] Correct. They're only means to the end. 14 00:03:07,049 --> 00:03:09,299 [Hal Turing] And what's doing the learning? 15 00:03:09,299 --> 00:03:41,549 [Dr. Ada Shannon] Plain self-play with PPO, which is a standard policy-gradient method, plus generalized advantage estimation. The agents train against copies of the current policy, so it's one population with no league of past opponents. Training is centralized and execution is decentralized, meaning the value function sees the full state while each policy only sees its own observations. The key point for today is that this is ordinary deep RL. The novelty is where the training data comes from. In supervised learning the data distribution is fixed. Here it's produced by the other team's current weights, so it keeps moving. 16 00:03:41,549 --> 00:03:45,724 [Hal Turing] Closer to a GAN than to training on ImageNet. 17 00:03:45,724 --> 00:03:53,574 [Dr. Ada Shannon] The co-adaptation is similar, and so are the instability risks. Hold that thought, because it matters for measurement. 18 00:03:53,574 --> 00:03:55,024 [Hal Turing] Go on. 19 00:03:55,024 --> 00:04:22,299 [Dr. Ada Shannon] In a fixed benchmark, a rising score means something. In self-play, if both teams improve, the reward curve can sit flat. So how do you know the agents are actually getting better? One yardstick is a rating system like Elo or TrueSkill, which estimates relative strength from match outcomes. The sturdier version is a cross-play matrix, where every checkpoint plays every other checkpoint. If later checkpoints beat earlier ones, you have progress. The paper mentions Elo and TrueSkill as possible metrics but doesn't run them. 20 00:04:22,299 --> 00:04:24,524 [Hal Turing] Then what does it use? 21 00:04:24,524 --> 00:04:44,049 [Dr. Ada Shannon] Transfer. Pretrain in hide-and-seek, fine-tune on five targeted tasks, and compare against training from scratch and against a count-based pretrained policy. If pretraining built something reusable, fine-tuning should be faster or end higher. It's how we judge language models too, by downstream tasks and not pretraining loss. 22 00:04:44,049 --> 00:04:53,049 [Hal Turing] So there are three claims to test. The phases are real, competition beats curiosity, and transfer tells us what was learned. 23 00:04:53,049 --> 00:05:02,675 [Dr. Ada Shannon] Yes. And one question runs under all three: what tells us a phase is real? Watching a video and seeing a ramp doesn't answer that. Keep it in mind. 24 00:05:02,675 --> 00:05:05,500 [Hal Turing] Then let's walk the six phases. 25 00:05:05,500 --> 00:05:21,475 [Dr. Ada Shannon] Start with the first two. Seekers chase and hiders run, and that's the baseline. Roughly 25 million episodes in, hiders start pulling boxes together and locking them into a fort. The seekers can't see them now, so the old chase strategy stops paying. 26 00:05:21,475 --> 00:05:25,425 [Hal Turing] And that's visible in the data, not just in videos? 27 00:05:25,425 --> 00:05:54,500 [Dr. Ada Shannon] In the statistics, yes. The authors track how far any box or ramp moves, and how many boxes and ramps are locked, separately for the preparation phase and the main game. When forts appear, box movement and box locking during preparation jump. Then seekers learn ramps, after about another 75 million episodes, and ramp movement in the main game rises. About 10 million episodes later hiders drag ramps to the edge of the arena and lock them, so locked ramps in preparation go up. 28 00:05:54,500 --> 00:05:58,950 [Hal Turing] So each fingerprint is a change in what objects do. 29 00:05:58,950 --> 00:06:21,200 [Dr. Ada Shannon] Right. Then phase five: seekers carry a box to a locked ramp, climb on, and surf the box to the fort. The movement action applies force even when the agent is airborne, so a box with a rider moves. Phase six: hiders lock every box before building. That's by roughly 380 million episodes total. Note the method, though. The paper identifies phases from trajectories and these statistics, and the figure just overlays the six labels. 30 00:06:21,200 --> 00:06:25,525 [Hal Turing] What makes the learning work at all? Hiding is a sparse signal. 31 00:06:25,525 --> 00:06:44,925 [Dr. Ada Shannon] Two things. First, the critic. Each agent acts from its own masked view, only what it can see, but during training the value function sees the full unmasked state. When a seeker's view hides the fort, the critic can still tell whether the position was good. With a masked critic, the same compute budget never got past phase three, ramp use. 32 00:06:44,925 --> 00:06:47,325 [Hal Turing] And the policy itself? 33 00:06:47,325 --> 00:07:07,550 [Dr. Ada Shannon] Entity-centric. Each box, ramp and agent is embedded, self-attention runs across them with visibility masks, the result is pooled, and an LSTM supplies memory. About 1.6 million parameters. All agents on a team share one set of parameters. Separate parameters also reached all six phases, just less efficiently. 34 00:07:07,550 --> 00:07:10,475 [Hal Turing] Small network, big compute bill. 35 00:07:10,475 --> 00:07:32,125 [Dr. Ada Shannon] Big batches. The default reaches ramp defense in about 132 million episodes, 34 hours. Reading the figure labels, the smallest working batch took about 99 hours and the largest about 20, roughly five times faster, while episode count moved only modestly. Batches half the smallest working size, and smaller, never converged. So scale isn't a luxury here, it's a threshold. 36 00:07:32,125 --> 00:07:36,875 [Hal Turing] What about the randomization? Is the environment doing some of the work? 37 00:07:36,875 --> 00:07:58,325 [Dr. Ada Shannon] A lot. The paper's ablation table varies team size, boxes, box shape, spawn positions and walls. With full randomization you get all six stages. Remove the walls and you get four. Reduced randomization or fixed layouts give two. Team structure matters too: teams of two and three hiders lock 25% and 36% more boxes than a lone hider. 38 00:07:58,325 --> 00:08:03,800 [Hal Turing] Now the comparison with curiosity. Why can't novelty seeking do this? 39 00:08:03,800 --> 00:08:26,050 [Dr. Ada Shannon] They tried count-based exploration and Random Network Distillation. Count-based works if the counted state is only each box's 2-D position. Add box rotation and velocity, or more agents with full observations, and box movement falls substantially. RND on the full state does slightly better than counting, but it's the same story. The takeaway is that someone had to pick the interesting dimensions. Self-play didn't need that hint. 40 00:08:26,050 --> 00:08:29,450 [Hal Turing] Is that a fair fight? The setups differ. 41 00:08:29,450 --> 00:08:41,400 [Dr. Ada Shannon] Not fully. Count-based agents spawn objects in a quarter of the arena, and the measure is movement, not task success. The authors call it qualitative, and only two methods were tried. 42 00:08:41,400 --> 00:08:44,775 [Hal Turing] So how do they get a quantitative measure? 43 00:08:44,775 --> 00:09:04,125 [Dr. Ada Shannon] Transfer. Object Counting tests object permanence: watch boxes go behind a wall, then report how many went each way. Lock and Return asks the agent to lock a box and get back to where it started. Sequential Lock needs a hidden order, so it tests memory. Blueprint Construction and Shelter Construction test manipulation. 44 00:09:04,125 --> 00:09:05,825 [Hal Turing] And the verdict? 45 00:09:05,825 --> 00:09:23,625 [Dr. Ada Shannon] Mixed and modest. Hide-and-seek wins on three of five, slightly. It's slightly worse than count-based on Object Counting. On Shelter Construction it reaches the same final reward but learns a bit slower than scratch. The authors say the skills are entangled and hard to fine-tune. 46 00:09:23,625 --> 00:09:27,200 [Hal Turing] Did sampling from each phase show progress? 47 00:09:27,200 --> 00:09:45,025 [Dr. Ada Shannon] Partly. Lock and Return rises with phase, and the phase-six policy is about 20% better than phase one. But the best Object Counting policy was phase one, before any tool use, and later phases lose it. Manipulation scores are roughly uncorrelated with phase. 48 00:09:45,025 --> 00:09:48,325 [Hal Turing] Is any of this specific to hide-and-seek? 49 00:09:48,325 --> 00:10:05,850 [Dr. Ada Shannon] The appendix suggests not. A simpler quadrant environment reproduces the first four phases. Adding food rewards makes hiders build forts around the food, and in a dynamic-food variant they enclose every place food could appear. A food-protection game shows tool use there too. 50 00:10:05,850 --> 00:10:09,225 [Hal Turing] And the surprises weren't all good ones. 51 00:10:09,225 --> 00:10:23,950 [Dr. Ada Shannon] No. The authors note agents exploit small environment flaws. Box surfing is one, and some agents exploit physics-simulation inaccuracies. Same optimizer, same pressure, so it finds whatever the simulator allows. 52 00:10:23,950 --> 00:10:29,625 [Hal Turing] So back to the question we planted at the start: what tells us a phase is real? 53 00:10:29,625 --> 00:10:50,300 [Dr. Ada Shannon] The behaviors are established. They're in the videos and they show up in box movement and locking counts. What's missing is any quantitative test of where one phase ends and the next begins. And reward can't fill that gap, because footnote 3 says hider reward can keep falling after surf defense appears. The phase labels are a reading of the data, not a detection from it. 54 00:10:50,300 --> 00:10:53,075 [Hal Turing] What would a proper test look like? 55 00:10:53,075 --> 00:11:13,025 [Dr. Ada Shannon] Two things. Run automated change-point detection on those same behavioral statistics, and see whether it finds six breaks, in the same order, across seeds. Then build the cross-play matrix. The paper says Elo can't separate new adaptations from refinement of old skills, but it never runs the matrix, which is the thing that would show the difference. 56 00:11:13,025 --> 00:11:18,075 [Hal Turing] Why does that matter for the headline? Later checkpoints should just be better. 57 00:11:18,075 --> 00:11:38,975 [Dr. Ada Shannon] That's the open question. This is single-population self-play, with the agents training only against current copies of themselves. In that setup, cycling is a live concern, where A beats B, B beats C, and C beats A. And the Object Counting result is direct evidence that skill isn't monotone: it peaks at phase one and is gone later. Whether late policies beat earlier ones head to head, the source can't say. 58 00:11:38,975 --> 00:11:41,675 [Hal Turing] And seeds? You mentioned three. 59 00:11:41,675 --> 00:12:03,850 [Dr. Ada Shannon] Three seeds, averaged. The mean curve smears transitions that happen at different times, and the text doesn't say how many seeds hit all six phases or in what order. The randomization table gives one outcome per configuration, with no seed counts or variance. So the claim that full randomization gets six stages while reduced randomization gets fewer is suggestive, not robust. The code is open-sourced, which helps anyone who wants to check. 60 00:12:03,850 --> 00:12:10,075 [Hal Turing] There's also the sweet-spot worry. Big batch, omniscient critic, heavy randomization. 61 00:12:10,075 --> 00:12:40,300 [Dr. Ada Shannon] Yes. Smaller batches never converged, and a masked critic never passed ramp use. So this isn't a simple reward plus standard RL. It leans on a privileged critic that sees full state, and the paper doesn't separate how much of the autocurriculum comes from competition and how much from that critic. The curiosity comparison is also narrow: movement statistics as the proxy, objects spawned in a quarter of the arena, two methods. That supports 'count-based novelty is sensitive to state design.' It doesn't support 'self-play beats curiosity' in general. 62 00:12:40,300 --> 00:12:45,000 [Hal Turing] Let me bring in the later work. What did people do about cycling? 63 00:12:45,000 --> 00:13:26,250 [Dr. Ada Shannon] The AlphaStar league, from Vinyals and colleagues at DeepMind in 2019, which this paper cites only as a blog post. It uses exploiter agents and prioritized fictitious self-play to guard against exactly the cycling and forgetting that vanilla self-play can suffer. Then Real World Games Look Like Spinning Tops, by Czarnecki and colleagues in 2020, splits a game into a transitive skill component and a non-transitive cyclic one. That is what a cross-play matrix would reveal here. And Open-Ended Learning Leads to Generally Capable Agents, the XLand work from DeepMind's Open-Ended Learning Team in 2021, adds a procedurally generated task space, population-based training, and evaluation on held-out tasks. That goes straight at the measurement and transfer gaps. 64 00:13:26,250 --> 00:13:30,775 [Hal Turing] Transfer was supposed to be the yardstick. How does it hold up? 65 00:13:30,775 --> 00:13:54,350 [Dr. Ada Shannon] Strong idea, weak first evidence. Pretraining wins on three of five tasks by small margins, with three seeds for most tasks. And the phase-one checkpoint, before any tool use, transfers about as well on the manipulation tasks. So the transfer may be generic navigation and object features, not tool skills. The authors say the skills are entangled, but the paper doesn't diagnose that. What would convince me: more seeds, held-out tasks, and per-phase evaluation with confidence intervals. 66 00:13:54,350 --> 00:14:00,125 [Hal Turing] And the exploits. Box surfing is one of the six phases, and it's a physics quirk. 67 00:14:00,125 --> 00:14:22,875 [Dr. Ada Shannon] That's both a finding and a warning. The optimizer finds whatever the simulator allows, and the method can't tell an intended affordance from a bug. A hand-designed environment also did a lot of work: lockable boxes, the preparation phase, team-shared locking. The authors say these choices change sample complexity drastically, so the curriculum isn't free. They also call this a proof of concept with a bounded strategy space, and expect no more than the six modes. 68 00:14:22,875 --> 00:14:30,625 [Hal Turing] What about the coordination claim, that two and three hiders lock 25 and 36 percent more boxes? 69 00:14:30,625 --> 00:14:43,150 [Dr. Ada Shannon] That statistic is confounded by team size. More hiders means more hands. Nothing here shows learned roles rather than independent behavior with shared parameters and a shared reward. 70 00:14:43,150 --> 00:14:45,450 [Hal Turing] So where does that leave us? 71 00:14:45,450 --> 00:15:05,075 [Dr. Ada Shannon] Competition with a simple visibility reward, at very large scale, produced a compounding sequence of physical tool-use behaviors. And in this setup it did more with objects than the hand-specified novelty bonuses tried here. The boundary is that progression, retention and transfer of skill aren't quantitatively demonstrated. 72 00:15:05,075 --> 00:15:21,250 [Hal Turing] I'd put it this way. The behaviors are real and the training recipe is expensive and specific. Whether each phase beat the last, nobody measured, and the Object Counting loss says to be careful. Thanks for listening, everyone. See you next time.