1. Home
  2. Machine Learning Street Talk

Sep 21

Why perfect world models still fail control

Alexander Mattick

134 min → 2:23

Overview

Alexander Mattick explores the evolution of generative modeling, the limits of infinite scaling, and why applying AI to the physical world requires prior engineering knowledge and mathematical constraints.

3 things to know

Flow matching uses reversible paths without reversible networks, says Mattick

Alexander Mattick explains that flow matching models data transitions as a continuous path that is naturally reversible even when the neural network is not, letting standard models like Transformers train stably.

More

Traditional normalizing flows require mathematically restrictive, strictly invertible neural architectures to map a simple base distribution (e.g., a Gaussian) to a target distribution. This path is inherently invertible even if the neural network describing the vector field itself is not, allowing arbitrary architectures (like Transformers or U-Nets) to define the path and enabling stable, simulation-free training.

▶ Watch at 27:53

Mattick says diffusion models shift computing cost to training

Diffusion models break complex generation into many simple noise-removal steps, Alexander Mattick explains, replacing slow sampling with a predictable solving process that shifts computing costs to training.

More

By breaking a complex generative task into many simple denoising steps, they replace expensive MCMC sampling with a predictable ODE/SDE solving process, effectively shifting the computational burden from inference to training.

▶ Watch at 10:00

Energy-based models train cheaply but generate slowly, Mattick says

Alexander Mattick says energy-based models are cheap to train and quickly compare which of two states is more likely, but generating new samples requires slow, repeated sampling.

More

This makes them highly flexible and cheap to train because they avoid calculating $Z$. They are exceptionally efficient for relative inference (comparing if state A is more likely than state B, as the $Z$ cancels out in ratios), but generating new samples remains computationally expensive due to the need for iterative MCMC.

▶ Watch at 31:19

Also in this episode

Mattick says reward penalties fail to keep AI safe

Using negative reward penalties to discourage dangerous AI behavior is fragile and easy to exploit, says Alexander Mattick, whereas constrained reinforcement learning sets separate mathematical safety limits.

More

This is highly fragile and prone to exploitation. Constrained RL explicitly models safety boundaries as separate mathematical constraints (e.g., ensuring cumulative safety costs stay below a threshold), separating "what to achieve" from "what to avoid."

▶ Watch at 1:48:25

A perfect world model never solves control alone, says Mattick

Alexander Mattick points out that a perfect world model only predicts what happens next, leaving the expensive computing problem of searching and planning for the right action unsolved.

More

A "World Model" predicts the next state of an environment given the current state and action. Control requires search, planning, or policy optimization over the model's predictions, which remains a highly computationally expensive bottleneck.

▶ Watch at 1:51:55

Small design choices matter less in giant networks, Mattick says

At massive scale, Alexander Mattick observes, small architectural choices matter less because giant neural networks stop acting like sets of individual weights and behave like continuous mathematical spaces.

More

To analyze how massive neural networks generalize, researchers split into two camps: the Parametric View, which tracks how individual parameters optimize along loss landscapes, and the Functional View (e.g., Mean-Field Limit and Neural Tangent Kernel), which views the network as an infinite-width continuous density.

▶ Watch at 1:05:34

Mattick: Simple probability shortcuts miss complex real-world data patterns

Alexander Mattick explains that early variational inference bypassed impossible high-dimensional math by using simple shapes like Gaussians, which fail to capture complex, multi-peaked real-world data.

More

Traditional probabilistic models require calculating a normalizing constant (the partition function, $Z$) to ensure a probability density integrates to 1. In high dimensions, calculating this is mathematically intractable.

▶ Watch at 4:15

Mattick: High dimensions drop rejection sampling acceptance near zero

Alexander Mattick notes that while rejection sampling avoids normalizing probability densities, its acceptance rate drops near zero in high dimensions as the sampling volume grows exponentially.

More

Classical sampling methods like Rejection Sampling and Markov Chain Monte Carlo (MCMC) bypass explicit density normalization. MCMC works but is computationally slow during sample generation.

▶ Watch at 5:32

Quotes

“There's a difference between being able to predict the future and being able to actually make inferences for what is the correct action to take... I can give you a perfect world model of chess, and you still cannot solve it.”

▶ Watch at 1:51:55

“The trick is that such a path, a gradient flow, is necessarily invertible, even if the function giving you the vector field is not. Just walk the same path backward.”

▶ Watch at 27:53

“You can have a controller which in expectation is really nice, but has one really huge failure case... on average, something which tracks perfectly and has one huge error where the robot clocks you on the head is the same as something which slightly wanders.”

▶ Watch at 1:11:18

23 more quotes

“The difficult thing when we try to do inference is we always have this... the density has to be normalized at some point.”

▶ Watch at 3:52

“A unimodal fit misses both true modes... now you are very constrained by the actual density.”

▶ Watch at 4:15

“Curse of dimensionality... the grid grows exponentially. Ten samples per axis become 1,000.”

▶ Watch at 5:32

“Being unnormalized makes EBMs quite easy to train... but this comes at a steep cost during sample generation.”

▶ Watch at 10:00

“Most of deep learning is actually doing inference... if you fit a categorical distribution (like a large language model)... that is just a decomposition of your final density.”

▶ Watch at 11:35

“You lose the breadth of the density... in reinforcement learning, one of the best things you can do to improve performance is to say 'I don't actually want a point estimate, I want some breadth to do better exploration.'”

▶ Watch at 12:57

“Continuous-time normalizing flows frame the problem of finding a density as... doing gradient descent in a continuous domain. This is the cheapest thing because you no longer do any sampling at all.”

▶ Watch at 13:50

“If the series of transforms applied to the base measure is invertible, we can use this to essentially inherit the normalization of the base measure.”

▶ Watch at 27:01

“Both [EBMs and Diffusion] are fundamentally generative models... The interesting thing is you can maybe use them in settings where you don't need to be generative, but fundamentally they are still generative.”

▶ Watch at 29:32

“The nice thing about energy-based models is that you can do certain things cheaper... Namely, the very big one is you can do comparisons between data points.”

▶ Watch at 31:19

“It's like saying, 'Well, this movie is a five.' Well, five out of five? Five out of ten? Five out of a hundred? It doesn't tell you enough to actually figure out whether it's a good sample or a bad sample.”

▶ Watch at 32:19

“All of these methods... try to have a huge density (like an entire sentence) and decompose it into smaller parts which we can actually handle.”

▶ Watch at 33:50

“Flow matching still frames sampling as a reparameterization problem, but now fixes the degree of freedom in the path a priori.”

▶ Watch at 1:00:54

“First, it allows us to give supervision on every part of the flow without needing to simulate the entire ODE.”

▶ Watch at 1:01:17

“While the latents themselves don't hold any information... if you enforce the fact that the change from latent one to latent two should be really small, then you would expect the big structures to appear first.”

▶ Watch at 1:02:29

“At huge scales, all of these perform a lot less like parameterized models of a specific architecture and more like function spaces.”

▶ Watch at 1:05:34

“A function with a billion parameters is much closer than a function with 50 parameters to being at this infinite scaling domain.”

▶ Watch at 1:06:51

“I don't want my open-heart surgery robot to do exploration on... anyone else either. So, I think that the real-world complexity of not allowing too much exploration in a practical sense, but also to give really hard guarantees, becomes difficult to do in pure reinforcement learning.”

▶ Watch at 1:34:52

“Average error can hide a failure... You can have a controller which in expectation is really, really nice, but has one really, really huge failure case where it has the robot clock you on the head.”

▶ Watch at 1:35:18

“If you model constraints, you basically get rid of this correlation problem... Ultimately, you're doing a lot of work to not write down a constraint.”

▶ Watch at 1:37:34

“We want to be gathering as much information we've already paid for and gathered with our blood, sweat, and tears... There is no point in basically starting from nowhere.”

▶ Watch at 1:41:13

“What you gain is of course the ability to more accurately... talk with an engineer. He will be much more easy to talk with when you talk about constraints than when you talk about tuning a specific weight of a reward function.”

▶ Watch at 1:48:25

“If you go to BMW and say 'I have a robot, it does the right thing 90% of the time, the other 10% it does something else,' they will say 'No, I will not pay you that money'... Because the level of safety you need in the real world is much higher than what people actually think.”

▶ Watch at 2:02:04

Full summary

Episode Overview

  • Understanding the Generative Landscape: This episode traces the evolution of generative modeling and probabilistic inference, highlighting the historical trade-offs between expressivity (model complexity) and efficiency (computational cost of training versus sampling).
  • Comparing Key Paradigms: The discussion contrasts classical approaches like Variational Inference, MCMC, and Energy-Based Models with modern generative frameworks, specifically comparing the mechanics of Diffusion Models and Continuous Normalizing Flows (Flow Matching).
  • The Limits of Infinite Scaling: The conversation bridges deep learning theory with practical control, examining how overparameterized networks behave as continuous function spaces and how theoretical limits affect our ability to guarantee system safety.
  • Translating AI to the Physical World: The episode critiques pure reinforcement learning and "reward shaping" in safety-critical domains, advocating for explicit mathematical constraints and prior engineering knowledge to bridge the gap between academic benchmarks and industrial reliability.

Key Concepts

  • The Normalization Bottleneck: Traditional probabilistic models require calculating a normalizing constant (the partition function, $Z$) to ensure a probability density integrates to 1. In high dimensions, calculating this is mathematically intractable. Early Variational Inference bypassed this using simple parameterized families (like Gaussians), but failed to capture complex, multimodal real-world distributions.
  • The Curse of Dimensionality in Sampling: Classical sampling methods like Rejection Sampling and Markov Chain Monte Carlo (MCMC) bypass explicit density normalization. However, rejection sampling suffers exponentially in high dimensions because the "envelope" volume grows, dropping acceptance rates to near zero. MCMC works but is computationally slow during sample generation.
  • The Mechanics of Energy-Based Models (EBMs): EBMs parameterize an unnormalized "energy" function $E(x)$, where lower energy states represent higher probability. This makes them highly flexible and cheap to train because they avoid calculating $Z$. They are exceptionally efficient for relative inference (comparing if state A is more likely than state B, as the $Z$ cancels out in ratios), but generating new samples remains computationally expensive due to the need for iterative MCMC.
  • Diffusion Models as Path-Based Solvers: Diffusion models frame generative modeling as a continuous sequence of latent variables. By breaking a complex generative task into many simple denoising steps, they replace expensive MCMC sampling with a predictable ODE/SDE solving process, effectively shifting the computational burden from inference to training.
  • Flow Matching and Continuous Normalizing Flows: Traditional normalizing flows require mathematically restrictive, strictly invertible neural architectures to map a simple base distribution (e.g., a Gaussian) to a target distribution. Continuous Normalizing Flows (like Flow Matching) model this transition as a continuous gradient flow. This path is inherently invertible even if the neural network describing the vector field itself is not, allowing arbitrary architectures (like Transformers or U-Nets) to define the path and enabling stable, simulation-free training.
  • Parametric vs. Functional Perspectives in Theory: To analyze how massive neural networks generalize, researchers split into two camps: the Parametric View, which tracks how individual parameters optimize along loss landscapes, and the Functional View (e.g., Mean-Field Limit and Neural Tangent Kernel), which views the network as an infinite-width continuous density. At scale, micro-architectural choices matter less, and systems behave like continuous function spaces.
  • Constrained Reinforcement Learning (Safe RL): Traditional RL maximizes cumulative rewards and uses negative penalties to discourage dangerous behaviors (reward shaping). This is highly fragile and prone to exploitation. Constrained RL explicitly models safety boundaries as separate mathematical constraints (e.g., ensuring cumulative safety costs stay below a threshold), separating "what to achieve" from "what to avoid."
  • Prediction vs. Control in World Models: A "World Model" predicts the next state of an environment given the current state and action. However, having a perfect world model does not automatically solve the control problem. Control requires search, planning, or policy optimization over the model's predictions, which remains a highly computationally expensive bottleneck.

Quotes

  • At 0:03:52 - "The difficult thing when we try to do inference is we always have this... the density has to be normalized at some point." - Explaining the fundamental mathematical bottleneck of calculating partition functions in high-dimensional probabilistic inference.
  • At 0:04:15 - "A unimodal fit misses both true modes... now you are very constrained by the actual density." - Highlighting how simple variational inference approaches fail when applied to complex, multimodal real-world data.
  • At 0:05:32 - "Curse of dimensionality... the grid grows exponentially. Ten samples per axis become 1,000." - Visualizing why grid-based and naive rejection sampling methods fail as dimensions scale up.
  • At 0:10:00 - "Being unnormalized makes EBMs quite easy to train... but this comes at a steep cost during sample generation." - Summarizing the core trade-off of Energy-Based Models: easy training paired with slow, expensive MCMC sampling.
  • At 0:11:35 - "Most of deep learning is actually doing inference... if you fit a categorical distribution (like a large language model)... that is just a decomposition of your final density." - Reframing modern autoregressive models as high-dimensional density estimators, proving inference is central to AI.
  • At 0:12:57 - "You lose the breadth of the density... in reinforcement learning, one of the best things you can do to improve performance is to say 'I don't actually want a point estimate, I want some breadth to do better exploration.'" - Explaining why predicting full probability densities is vastly superior to predicting simple point estimates.
  • At 0:13:50 - "Continuous-time normalizing flows frame the problem of finding a density as... doing gradient descent in a continuous domain. This is the cheapest thing because you no longer do any sampling at all." - Describing the conceptual breakthrough of Flow Matching in translating sampling into a deterministic, geometric optimization problem.
  • At 0:27:01 - "If the series of transforms applied to the base measure is invertible, we can use this to essentially inherit the normalization of the base measure." - Explaining why invertibility is the mathematical foundation of traditional normalizing flows.
  • At 0:27:53 - "The trick is that such a path—a gradient flow—is necessarily invertible, even if the function giving you the vector field is not. Just walk the same path backward." - Highlighting how continuous-time path tracking in Flow Matching bypasses the architectural limitations of discrete normalizing flows.
  • At 0:29:32 - "Both [EBMs and Diffusion] are fundamentally generative models... The interesting thing is you can maybe use them in settings where you don't need to be generative, but fundamentally they are still generative." - Clarifying that even when EBMs are used for evaluation rather than generation, they mathematically describe a complete probability distribution.
  • At 0:31:19 - "The nice thing about energy-based models is that you can do certain things cheaper... Namely, the very big one is you can do comparisons between data points." - Explaining the practical advantage of EBMs in calculating relative likelihoods directly without the partition function.
  • At 0:32:19 - "It's like saying, 'Well, this movie is a five.' Well, five out of five? Five out of ten? Five out of a hundred? It doesn't tell you enough to actually figure out whether it's a good sample or a bad sample." - An intuitive analogy explaining why unnormalized energy models struggle with absolute evaluation without a normalizing constant.
  • At 0:33:50 - "All of these methods... try to have a huge density (like an entire sentence) and decompose it into smaller parts which we can actually handle." - Framing different modern generative architectures as various ways of breaking high-dimensional distributions into learnable steps.
  • At 1:00:54 - "Flow matching still frames sampling as a reparameterization problem, but now fixes the degree of freedom in the path a priori." - Explaining how flow matching simplifies trajectories by removing path ambiguity.
  • At 1:01:17 - "First, it allows us to give supervision on every part of the flow without needing to simulate the entire ODE." - Pointing out the immense computational and training advantages of flow matching.
  • At 1:02:29 - "While the latents themselves don't hold any information... if you enforce the fact that the change from latent one to latent two should be really small, then you would expect the big structures to appear first." - Explaining why low-frequency, macro structures naturally resolve before high-frequency textures in continuous flow generation.
  • At 1:05:34 - "At huge scales, all of these perform a lot less like parameterized models of a specific architecture and more like function spaces." - Observing how scaling causes neural networks to behave like continuous mathematical fields rather than parameterized networks.
  • At 1:06:51 - "A function with a billion parameters is much closer than a function with 50 parameters to being at this infinite scaling domain." - Explaining how overparameterization simplifies theoretical mathematical analysis.
  • At 1:11:18 - "You can have a controller which in expectation is really nice, but has one really huge failure case... on average, something which tracks perfectly and has one huge error where the robot clocks you on the head is the same as something which slightly wanders." - Illustrating why average-case performance guarantees are dangerous in physical, safety-critical systems.
  • At 1:34:52 - "I don't want my open-heart surgery robot to do exploration on... anyone else either. So, I think that the real-world complexity of not allowing too much exploration in a practical sense, but also to give really hard guarantees, becomes difficult to do in pure reinforcement learning." - Stressing why trial-and-error exploration is unacceptable in physical systems where damage is intolerable.
  • At 1:35:18 - "Average error can hide a failure... You can have a controller which in expectation is really, really nice, but has one really, really huge failure case where it has the robot clock you on the head." - Reinforcing the limitation of optimizing for expected values when $L_\infty$ (worst-case) guarantees are required.
  • At 1:37:34 - "If you model constraints, you basically get rid of this correlation problem... Ultimately, you're doing a lot of work to not write down a constraint." - Arguing that engineers waste effort manually tuning complex reward terms instead of stating physical limitations as mathematical constraints.
  • At 1:41:13 - "We want to be gathering as much information we've already paid for and gathered with our blood, sweat, and tears... There is no point in basically starting from nowhere." - Critiquing the tabula rasa paradigm of RL and advocating for the integration of prior engineering and physical knowledge.
  • At 1:48:25 - "What you gain is of course the ability to more accurately... talk with an engineer. He will be much more easy to talk with when you talk about constraints than when you talk about tuning a specific weight of a reward function." - Highlighting the communication benefit of using physical constraints, which map directly to an engineer's domain expertise.
  • At 1:51:55 - "There's a difference between being able to predict the future and being able to actually make inferences for what is the correct action to take... I can give you a perfect world model of chess, and you still cannot solve it." - Explaining that planning and decision-making (control) are distinct from predicting transition dynamics (representation).
  • At 2:02:04 - "If you go to BMW and say 'I have a robot, it does the right thing 90% of the time, the other 10% it does something else,' they will say 'No, I will not pay you that money'... Because the level of safety you need in the real world is much higher than what people actually think." - Contrasting academic benchmarks with the rigorous reliability requirements of industrial manufacturing.

Takeaways

  • Shift the Computational Burden Strategically: Evaluate whether your generative application requires fast training or fast sampling. Use Energy-Based Models if you only need relative comparisons between data points, and use flow-based or diffusion models if fast, structured sample generation is the goal.
  • Leverage Flow Matching for Straight-Line Efficiency: When designing continuous generative models, use Flow Matching to pre-define straight paths between noise and data. This simplifies the vector field, allowing numerical ODE solvers to generate samples in significantly fewer steps.
  • Avoid Reward Shaping for Safety Constraints: Instead of adding arbitrary negative penalties to a reinforcement learning reward function to prevent bad behavior, model safety limits as explicit mathematical constraints. This decouples the task goal from physical boundaries and prevents policy exploitation.
  • Rely on Prior Engineering Knowledge: Reject the "tabula rasa" (start from scratch) approach when deploying systems in the real world. Hardcode known physical limits, kinematics, and safety bounds directly into your system's action space or controller.
  • Optimize for Worst-Case, Not Just Average-Case, Performance: In safety-critical applications (such as robotics or medical systems), do not rely on average accuracy metrics ($L_2$ error). Plan and test specifically against $L_\infty$ (worst-case) failure modes to avoid singular, catastrophic failures.
  • Decouple World Modeling from Control Planning: Remember that training a highly accurate predictive model of an environment does not solve the control problem. Allocate separate computational and algorithmic resources (like Model Predictive Control) to search and plan actions through your predictive model.
  • Exploit Infinite-Width Simplifications in Theory: When analyzing neural network optimization and generalization, use infinite-width limits (such as the Mean-Field regime or Neural Tangent Kernels) to treat parameters as continuous distributions, which simplifies the complex math of finite-dimensional optimization.
  • Prioritize Global Structure First in Generative Trajectories: When designing iterative sampling processes, ensure your trajectories naturally resolve low-frequency, macro structures (e.g., layout or general shape) before attempting to compute high-frequency details (e.g., textures or noise).
  • Assess "World Models" by Their Training Loop: Look closely at how data is collected to evaluate claims about "world models." Clarify whether a system is doing Model-Based RL (actively exploring and collecting data online) or offline learning (predicting temporal transitions on static datasets).
  • Design Composable Safety Limits: Use constrained RL to make control systems modular. Because constraints represent physical limits (e.g., maximum temperature or torque bounds), they can be updated or transferred to new tasks without having to rebuild or re-tune the entire reward function.
  • Bridge the Gap Between Academic Benchmarks and Industrial Standards: Recognize that a 90% success rate on an academic benchmark is often an industrial failure. Design systems with deterministic fallback mechanisms to handle the remaining percentage safely.
  • Predict Probability Densities to Enable Intelligent Exploration: When building agents for complex environments, train them to predict the full probability density rather than a simple point estimate. This provides the agent with uncertainty estimates, allowing for safer exploration and better anomaly detection.

Watch the full episode 2 hr 14 min

Read along with the audio summary

A robot controller that tracks perfectly on average, except for one catastrophic error where it clocks you on the head, has the exact same average error as a robot that just slightly wanders. This episode, which came out on September 21, 2026, features a deep technical discussion on generative modeling and probabilistic inference. By the end, you will learn how modern artificial intelligence balances model complexity with computational efficiency, and how to translate these systems safely into the physical world.

Why traditional probability models hit a mathematical wall.

To make sure all probabilities add up to one, traditional models have to calculate a normalizing constant, known as the partition function. Early variational inference tried to bypass this bottleneck by fitting simple, single-peaked shapes like Gaussian bell curves, which completely miss the mark when real-world data has multiple peaks.

How high dimensions break classical sampling.

Classical sampling methods try to dodge that impossible math, only to run into the curse of dimensionality. Take rejection sampling, where a grid with just ten samples per axis explodes into a thousand samples in three dimensions, causing acceptance rates to drop to near zero.

How Energy-Based Models trade slow generation for fast comparisons.

Knowing a movie is rated a five means nothing unless you know if the scale is out of five or a hundred. Energy-Based Models work like this by assigning lower energy to higher probability states without ever calculating that normalizing scale. Because the missing scale cancels out in a ratio, you can use Energy-Based Models if you only need relative comparisons between data points, while saving flow-based or diffusion models for fast sample generation.

Turning impossible leaps into simple, predictable steps.

Instead of taking one massive, expensive leap, diffusion models break generation down into a continuous sequence of small denoising steps. By doing this, diffusion shifts the heavy computational burden away from sample generation and onto the training phase.

Why walking a continuous path frees up neural network design.

Traditional normalizing flows map simple noise to complex data, but they require strictly reversible neural networks so the math can run backward. Continuous Normalizing Flows, such as Flow Matching, bypass this by modeling the transition as a smooth, continuous path that you can simply walk backward, even if the neural network guiding the path is not reversible itself.

Why massive neural networks stop acting like discrete parts.

A model with a billion parameters is much closer to an infinite scaling domain than a model with fifty parameters. When you analyze network optimization, use infinite-width limits like the Mean-Field regime or Neural Tangent Kernels to treat parameters as continuous distributions and simplify the math.

Keeping robots safe by separating goals from boundaries.

Traditional reinforcement learning discourages dangerous behavior by subtracting points from a reward, a fragile method that models easily exploit. Constrained reinforcement learning fixes this by treating safety limits, like maximum torque or temperature, as separate mathematical boundaries rather than part of the goal.

Why predicting the future is not enough to control it.

You can have a perfect world model that knows every rule of chess, and still have no idea what move to make next. When you build these systems, allocate separate computational resources, like Model Predictive Control, to actively search and plan actions through your predictive model.

Whether you are generating data or controlling machines, success comes down to choosing where to spend your compute and where to set hard mathematical boundaries. If you go to BMW and say, "I have a robot, it does the right thing 90% of the time, the other 10% it does something else," they will say, "No, I will not pay you that money."

More from Machine Learning Street Talk

Related Episodes