This AI Entrepreneur Is Developing Agents That Can Plan Ahead for the Unexpected
Danijar Hafner's office in San Francisco's SoMa district is mostly empty. His new startup is still in stealth mode, and it doesn't even have its name on the door. When a reporter visited earlier this year, only one other person was there, and there was hardly any furniture. But what the office lacks in decorations, it makes up for in robots. Human-like machines of various shapes and sizes hang like puppets from racks that run down the center of the wide-open space.
Hafner, 31, won't say much about his new company yet, but he describes it as a continuation of his long-time work to help AI navigate environments it hasn't seen in training. The humanoids, which he imports from China, are the next step in this work and its physical form. Their ability to react in new situations will be key to getting robots into human spaces. For example, if you want to send a robot into someone's home, it needs to handle a floor plan and furniture it's never seen before.
To achieve this, Hafner uses something called model-based reinforcement learning. He develops world models, which are AI models designed to imitate physical reality, and trains agents within them. The agent treats the model as a real-world simulation and learns how to act there. It then uses those experiences to make predictions (or to dream or imagine, as Hafner might say) about future outcomes. That allows agents, or the robots they're embedded in, to navigate unfamiliar situations in real life.
Unlike other efforts, Hafner's technique enables agents and the robots they control to perform very complicated tasks without the real-world trial-and-error training that's traditionally been used in robotics.
Hafner grew up in a rural town in northeastern Germany, where his parents were both classical musicians. He learned programming from a neighbor, and in high school he began taking online courses about AI, which quickly became a passion. "I was always fascinated with how thinking works," he says. AI offered him a way to emulate it on a computer.
In 2015, as a second-year undergraduate studying engineering at Hasso Plattner Institute in Potsdam, he won a role as a student researcher at Google Brain. From there, he went on to a dozen internships and other positions at the company, including stints with Google Brain and Google DeepMind (the two have since merged under DeepMind) in the UK, Canada, and the US. He worked with industry legends including Geoffrey Hinton, who is often called one of the godfathers of AI, and Ashish Vaswani, coauthor of the groundbreaking research paper "Attention Is All You Need," which described the transformer technology used by today's large language models.
One of Hafner's former managers and coauthors at Google, Timothy Lillicrap, describes him as a standout among standouts. "I get to interact with a lot of really smart people in research at Google, and he easily sits in the top half of 1%," Lillicrap says. "In many cases he would build, single-handedly, things it would take entire teams of engineers to build."
Over the years, Hafner has honed and proved his approach by pitting agents trained within his world models against popular video games. His first breakthrough was PlaNet, a model that allowed agents to execute actions by planning ahead. His Dreamer 2 was the first agent to hit human-level performance playing Atari 2600 games using a world model. Dreamer 3 was the first one to solve the Minecraft Diamond challenge, successfully mining in-game gems on its own. And Dreamer 4 went a step beyond that by learning to mine diamonds from an offline data set of recorded gameplay videos, without ever interacting with the game directly.
More recently, he's begun to migrate his agents out of the virtual world and into physical reality. His DayDreamer project used the Dreamer algorithm to let robots operate themselves in novel environments and react to new experiences (such as being pushed over) without any specific training.
Today, Hafner is working on his new startup, which he left Google DeepMind to form in the fall of 2025. Though he's coy about his next steps, it's clear he's dreaming big: "I was interested in solving a problem," he hints, "that would change the world."