Machine Learning Street Talk · Published 2026-09-21

Why More Data Cannot Replace Prior Structure - Alexander Mattick

Open on YouTube ↗

Summary

Overview

  • Speaker: Alexander Mattick
  • Channel: Machine Learning Street Talk
  • Main topic: Inference, density estimation, and structural priors in machine learning models
  • Purpose: Provide a deeply technical analysis of why information is expensive, how different generative models handle inference and density estimation, and why structural priors remain critical despite massive data and scaling trends. Alexander Mattick joins host Tim Scarfe to discuss the limitations of relying purely on data scaling without adequate prior structure in machine learning models. The discussion spans inference paradigms, Monte Carlo sampling, MCMC, energy-based models (EBMs), GFlowNets, normalizing flows, diffusion models, and the mathematical trade-offs between parametric and non-parametric or function-space approaches in deep learning, reinforcement learning, and control theory.

Topic Map

Information Cost and Inference Fundamentals

  • Explanation: Information is expensive, and constraints matter. Without prior structure or information, models face the steep cost of relearning everything from scratch.
  • Key claims:
    • Most information is very expensive.
    • Without prior information or constraints, models must relearn everything from scratch.
  • Examples:
    • Estimating pi using Monte Carlo sampling versus analytical geometric priors.
  • Terminology:
    • inference
    • prior information
    • constraints
    • Monte Carlo
    • rejection sampling
  • Why it matters: Establishes the core premise that data alone cannot compensate for missing structural priors.

Energy-Based Models (EBMs) vs Flow-Based Models

  • Explanation: EBMs model complex densities via unnormalized energy functions, making training easy due to the lack of partition function integrals, but making sampling during inference extremely slow and expensive via MCMC.
  • Key claims:
    • Energy-based models parameterize complex densities via unnormalized energy functions.
    • EBM training avoids complex partition function integrals, making them flexible.
    • EBM inference and sample generation require expensive MCMC optimization over unnormalized densities.
  • Examples:
    • Particle physics simulations where energy states determine probability distributions.
  • Terminology:
    • energy-based models
    • normalization constant
    • partition function
    • MCMC
    • unnormalized density
    • GFlowNets
    • normalizing flows
    • diffusion models
  • Why it matters: Highlights the computational bottlenecks of unnormalized density modeling during inference.

Diffusion Models and Flow Matching

  • Explanation: Diffusion models and flow matching amortize inference costs by learning vector fields that transport simple base distributions to complex target data distributions, avoiding expensive MCMC during inference.
  • Key claims:
    • Diffusion models and flow matching replace expensive MCMC inference with learned vector fields.
    • Optimal transport and flow matching reduce noise paths compared to standard diffusion.
    • Normalizing flows and flow matching inherit the normalization of base measures via transformations.
  • Examples:
    • Image generation via stochastic differential equations and score-based diffusion.
  • Terminology:
    • diffusion models
    • flow matching
    • stochastic differential equation
    • vector field
    • Fokker-Planck equation
    • optimal transport
    • Jacobian
    • score matching
  • Why it matters: Explains the dominant paradigm in modern generative modeling for efficient sample generation.

Deep Learning Theory, Function Space, and Scale

  • Explanation: Discusses the tension between parametric and functional views in deep learning, exploring neural tangent kernels (NTK), mean-field theory, and whether scaling alone solves the representation problem.
  • Key claims:
    • Deep learning theory bridges parametric and functional views via NTK and mean-field limits.
    • High-dimensional models face representation bottlenecks without inductive biases and constraints.
    • Raw scaling does not eliminate the need for structural priors and proper inference frameworks.
  • Examples:
    • Modular arithmetic networks and grokking phenomena analyzed through Fourier coefficients.
  • Terminology:
    • neural tangent kernel
    • mean-field theory
    • function space
    • over-parameterization
    • grokking
    • Fourier coefficients
    • universal approximation theorem
  • Why it matters: Provides theoretical grounding for understanding why neural networks generalize and how representation geometry evolves.

Reinforcement Learning, Control, and Reward is Enough

  • Explanation: Examines Rich Sutton's 'Reward is Enough' hypothesis, contrasting unconstrained reward maximization with constrained policy optimization, safe RL, and model-based RL.
  • Key claims:
    • Reward-maximization hypothesis posits that intelligent behavior emerges from maximizing a scalar reward.
    • Unconstrained reinforcement learning suffers from exploration bottlenecks and sample inefficiency.
    • Constrained reinforcement learning and model-based RL require structural priors to ensure safety and stability.
  • Examples:
    • Robotics manipulation tasks requiring constraint satisfaction and safe policy updates.
  • Terminology:
    • reinforcement learning
    • reward function
    • policy gradient
    • Q-learning
    • SARSA
    • constrained policy optimization
    • CVaR constraints
    • model-based RL
  • Why it matters: Addresses the philosophical and practical limits of reward-driven agent architectures.

Key Points

Information is expensive

  • Explanation: Gathering and encoding prior information requires resources; ignoring priors forces models to waste compute relearning geometry from scratch.
  • Evidence: Curse of dimensionality in high-dimensional density estimation.
  • Practical implication: Engineers should incorporate structural priors rather than relying solely on larger models and raw data.

EBM training vs inference asymmetry

  • Explanation: EBMs are easy to train because they avoid computing the partition function, but inference/sampling is extremely slow because it requires MCMC.
  • Evidence: Unnormalized density functions and intractable normalizing constants.
  • Practical implication: Use flow matching or diffusion models where inference is amortized into a direct vector field integration.

The illusion of reward sufficiency

  • Explanation: While reward maximization is theoretically universal, real-world agents need explicit constraints, structural priors, and world models to operate efficiently and safely.
  • Evidence: Failure modes of unconstrained RL in robotics and safety-critical environments.
  • Practical implication: Combine reward maximization with structural constraints and safe policy optimization techniques.

Frameworks, Models & Processes

Generative Modeling Paradigm Hierarchy

  • How it works: Categorizes generative models by how they handle density estimation, sampling, and normalization.
  • Components:
    • Energy-Based Models (EBMs)
    • Variational Autoencoders (VAEs)
    • Normalizing Flows
    • Diffusion Models
    • Flow Matching
  • When to use: Choosing the appropriate generative model based on training speed, sampling efficiency, and density evaluation requirements.

Constrained Reinforcement Learning Framework

  • How it works: Optimizes agent policies while enforcing cumulative cost thresholds using primal-dual or projection methods.
  • Components:
    • Reward maximization objective
    • Constraint violation threshold
    • Dual variables / Lagrange multipliers
    • Policy projection update step
  • When to use: Training agents in safety-critical domains where exploration must avoid catastrophic failures.

Examples & Case Studies

Estimating pi using Monte Carlo rejection sampling inside a square/circle.

  • Illustrates: The inefficiency of sampling-based integration in high dimensions compared to analytical solutions.
  • Lesson: Sampling without structural guidance scales exponentially worse with dimensionality.

Coding agents (e.g., Codex) wiping local home directories due to unconstrained bash execution.

  • Illustrates: The danger of unconstrained agent architectures lacking proper safety boundaries and world models.
  • Lesson: Agents operating in open-ended environments require hard constraints and robust world models.

Actionable Takeaways

  • Immediate:
    • Understand the computational trade-offs between EBMs, diffusion models, and normalizing flows.
    • Recognize that data scaling cannot fully replace inductive biases and structural priors.
  • Strategic:
    • Incorporate physics-inspired and geometry-aware priors into neural network architectures.
    • Evaluate generative model selection based on inference cost and sample quality.
  • Questions to investigate:
    • How far can scale alone push language and world models without explicit structural priors?
    • What are the most robust ways to integrate safety constraints into deep RL policies?

Claims Worth Verifying

  • Energy-based models are fundamentally unfavorable for generative usage due to inference-time MCMC costs. (theoretical and computational claim)
  • Flow matching provides superior transport paths compared to standard diffusion models. (algorithmic efficiency claim)

Notable Quotes

"Information is very expensive. In fact, I would say most information is very, very expensive." (at 0:00) "Reward is enough." (at 1486:29)

Compressed Summary

  • Information and inference costs dictate model efficiency.
  • Energy-based models suffer from expensive MCMC inference.
  • Diffusion models and flow matching amortize generation via vector fields.
  • Deep learning theory balances parametric scaling and functional geometry.
  • Reward maximization alone is insufficient without structural constraints and world models.
  • Keywords: inference, energy-based models, diffusion, flow matching, reinforcement learning
  • Core insight: Raw data scaling cannot replace structural priors and inductive biases when tackling complex inference and control problems.

Core insights

6
Tradeoffhigh noveltymoderate evidence

Energy-based models exhibit a structural train/inference asymmetry: training is tractable precisely because it avoids evaluating the partition function, while sampling requires expensive MCMC over an unnormalized density. The intractable normalization is not eliminated, only relocated to inference time.

Why it matters

It reframes model-family choice as a decision about where the intractable computation lives in the lifecycle (training vs serving). Systems where serving cost dominates should not adopt families whose intractability is deferred to inference.

Generalization

For any model or agent, identify where the tractability bottleneck sits, and let that placement drive architecture, caching, and amortization decisions rather than assuming a family is uniformly cheap.

EBM training avoids complex partition function integrals, making them flexible.
Open source video
EBM inference and sample generation require expensive MCMC optimization over unnormalized densities.
Open source video
Mechanismmedium noveltymoderate evidence

Diffusion and flow matching are amortization mechanisms: the iterative MCMC-style work is replaced by a learned vector field that transports a simple base distribution to the target, so sampling becomes direct integration rather than per-sample optimization.

Why it matters

This is the concrete recipe for turning an expensive search/sampling procedure into a deployable, low-latency generator, which is the core reason this paradigm dominates modern generative modeling.

Generalization

Any expensive inference-time search (planning, retrieval, verification loops) can potentially be amortized into a learned function that approximates the search result in one pass, trading training cost for serving latency.

Diffusion models and flow matching replace expensive MCMC inference with learned vector fields.
Open source video
Use flow matching or diffusion models where inference is amortized into a direct vector field integration.
Open source video
Mental Modelmedium noveltymoderate evidence

Prior structure is treated as a first-class substitutable resource for data: without priors or constraints, models must relearn geometry from scratch, and the curse of dimensionality makes raw data scaling an inefficient path to recovering that geometry.

Why it matters

It gives an engineering rationale for spending effort on inductive biases, constraints, and decomposition instead of assuming larger datasets and larger models will converge on the same behavior more cheaply.

Generalization

Before scaling data/compute on a problem, ask whether the missing capability is information that could be encoded directly as structure (constraints, geometry, invariances) at far lower cost.

Raw scaling does not eliminate the need for structural priors and proper inference frameworks.
Open source video
Gathering and encoding prior information requires resources; ignoring priors forces models to waste compute relearning geometry from scratch.
Open source video
Failure Modemedium noveltymoderate evidence

Unconstrained reward maximization is theoretically universal but practically bottlenecked: unconstrained RL suffers exploration and sample-inefficiency problems, and constrained RL / model-based RL reintroduce structural priors to get safety and stability.

Why it matters

It challenges the 'reward is enough' design premise for agentic systems, implying that safety constraints and world models are load-bearing components, not optional refinements.

Generalization

For open-ended agents, a single scalar objective is insufficient for reliable behavior; explicit constraint machinery (e.g., CVaR-style constraints) and internal models should be separate architectural elements.

Unconstrained reinforcement learning suffers from exploration bottlenecks and sample inefficiency.
Open source video
Constrained reinforcement learning and model-based RL require structural priors to ensure safety and stability.
Open source video
Architecturemedium noveltyweak evidence

Generative model families can be organized along three explicit axes - how they estimate density, how they sample, and how they handle normalization - making the family hierarchy a design-selection tool rather than a taxonomy.

Why it matters

It turns 'which generative model' into a structured decision over normalization handling and sampling cost instead of a benchmark-driven choice.

Generalization

When comparing any set of inference or modeling approaches, decompose the comparison into orthogonal axes (representation, normalization, sampling procedure, cost location) to expose the real trade-off.

Categorizes generative models by how they handle density estimation, sampling, and normalization.
Open source video
Empirical Resultmedium noveltyweak evidence

Representation geometry is observed to change during training: grokking-style phenomena in modular-arithmetic networks are analyzed through Fourier coefficients, connecting parametric dynamics to structured, frequency-based representations.

Why it matters

It suggests that measurable internal structure (frequency content, basis alignment) can be used as an instrument for detecting when a model has internalized structure versus memorized, which is directly usable for monitoring and evaluation.

Generalization

Use spectral or basis-decomposition diagnostics as concrete observables for tracking whether a model is learning structure or surface statistics.

Modular arithmetic networks and grokking phenomena analyzed through Fourier coefficients.
Open source video

Deep dives

5

Lifecycle cost of intractability in generative models

Research question

How should the placement of intractable computation (training vs inference) drive generative model selection for latency-critical systems?

Why

It reframes model-family choice as a lifecycle-cost allocation decision rather than a uniform cost assumption, which is critical for serving-latency-critical systems.

EBM training avoids complex partition function integrals, making them flexible.
Open source video
EBM inference and sample generation require expensive MCMC optimization over unnormalized densities.
Open source video
Source video

Amortization of expensive inference via learned vector fields

Research question

What are the accuracy, latency, and robustness trade-offs when replacing per-sample MCMC with amortized vector fields in diffusion and flow matching?

Why

This is the concrete recipe for turning expensive search/sampling into deployable low-latency generators, and understanding its limits is essential for choosing between amortized and per-sample methods.

Diffusion models and flow matching replace expensive MCMC inference with learned vector fields.
Open source video
Optimal transport and flow matching reduce noise paths compared to standard diffusion.
Open source video
Source video

Prior structure as a first-class resource versus data scaling

Research question

Under what conditions can explicit structural priors substitute for data/compute scaling, and what are the cost trade-offs?

Why

It challenges the scaling-first assumption and provides an engineering rationale for investing in inductive biases, constraints, and decomposition instead of assuming larger datasets will converge.

Without prior structure or information, models face the steep cost of relearning everything from scratch.
Open source video
Establishes the core premise that data alone cannot compensate for missing structural priors.
Open source video
Source video

Robustness of amortized inference under distribution shift

Research question

At what distribution shift does amortized inference (learned vector fields) degrade relative to per-sample MCMC?

Why

Amortization is often presented as a strict improvement, but its robustness under shift is unclear; knowing the failure point informs when to fall back to MCMC.

Diffusion models and flow matching replace expensive MCMC inference with learned vector fields.
Open source video
Source video

Decomposing the contributions of prior structure vs inference framework

Research question

How much of a representation bottleneck can prior structure remove versus how much requires better inference frameworks?

Why

Without this decomposition, teams cannot know whether to invest in priors or in inference algorithms; this is a key resource-allocation question.

Without prior structure or information, models face the steep cost of relearning everything from scratch.
Open source video
Establishes the core premise that data alone cannot compensate for missing structural priors.
Open source video
Source video

Article ideas

4

The Intractability Is Not Eliminated, Only Relocated: A Lifecycle-Cost Framework for Generative Model Selection

Choosing a generative model family is a decision about where to place the intractable computation (training vs inference), and systems should choose based on serving-cost dominance rather than benchmark performance.

Angle

Engineering trade-offs between EBM, diffusion, flow matching, and normalizing flows based on where the partition function or MCMC burden sits.

Source video

Amortization Is Not Free: The Hidden Costs of Replacing MCMC with Learned Vector Fields

While diffusion and flow matching amortize inference, they shift cost to training and introduce robustness risks under distribution shift that are often ignored.

Angle

Comparing amortized inference vs per-sample MCMC on accuracy, latency, and robustness.

Source video

Stop Scaling Data, Start Encoding Geometry: Why Structural Priors Are a Cheaper Resource

Data scaling is an inefficient way to recover missing geometry; explicit priors, constraints, and inductive biases should be budgeted as first-class architectural components.

Angle

Economic argument for priors vs data, with examples from information theory and representation bottlenecks.

Source video

Reward Is Not Enough: Why Constraint Machinery and World Models Belong in the Agent Architecture

Unconstrained reward maximization is theoretically universal but practically insufficient; reliable agents require separate constraint modules and internal models.

Angle

Architectural separation of reward maximization from constraint satisfaction and world modeling, with implications for testing and verification.

Source video

Project ideas

4

Intractability Placement Benchmark

new

For a given density estimation task, model families that place intractability at training time (diffusion, flow matching) achieve lower serving latency at equal sample quality compared to families that place it at inference time (EBMs) when serving latency is the dominant constraint.

Proof of concept

Implement a small-scale image density estimation benchmark comparing EBM with MCMC sampling vs diffusion/flow matching, measuring sample quality (FID) and per-sample latency.

Measurement

Latency-quality Pareto frontier; ratio of training cost to serving cost.

Source video

Amortized Inference Robustness Suite

beyond-evals

Amortized samplers (diffusion, flow matching) degrade in sample quality more rapidly than per-sample MCMC under controlled distribution shift, and the degradation correlates with the magnitude of shift.

Proof of concept

Train a flow matching model on a base distribution, then evaluate on shifted distributions (e.g., different modes, noise levels), comparing to MCMC sampling from an energy-based model on the same shifted data.

Measurement

KL divergence or FID between generated and true shifted distributions; relative performance drop.

Source video

Prior Structure vs Data Scaling Ablation

new

For a given task with known structure (e.g., rotational invariance in images), encoding that structure as an explicit prior reduces the amount of training data needed to reach a target performance by at least an order of magnitude compared to a data-scaling-only approach.

Proof of concept

Choose a task where structure is known (e.g., classification of rotated digits). Compare a model with an explicit equivariance prior vs a standard model trained on increasingly large datasets, measuring data efficiency.

Measurement

Data multiplier: how many more samples the baseline needs to match the prior-augmented model.

Source video

Constraint Module Separation for Safe RL

gatehouse

Separating constraint satisfaction (e.g., CVaR constraints) from reward maximization in an agent architecture improves safety and sample efficiency over unconstrained or single-objective constrained RL on safety-critical control tasks.

Proof of concept

Implement a modular agent with a reward-maximizing policy and a separate constraint module, compare against unconstrained PPO and constrained PPO on a safety-gym task.

Measurement

Constraint violation rate, sample efficiency to reach a target reward, and stability across seeds.

Source video

Architectural implications

3

Intractability in generative models is relocatable between training and inference rather than removable.

Before

Treat a model family's compute cost as a single budget with no distinction between fit-time and serve-time difficulty.

After

Explicitly choose where the intractable operation lives (partition function, MCMC, iterative sampling) and design amortization or caching around that boundary.

Consequence

Serving-latency-critical systems push intractability to training; flexible density modelers accept inference-time MCMC. This decision drives infrastructure and SLA design.

Source video

Structural priors and constraints are treated as an alternative to data/compute scaling.

Before

Assume more data and larger models will absorb missing structure.

After

Treat priors, inductive biases, and constraints as explicitly budgeted architectural components chosen when the geometry is known or cheap to encode.

Consequence

Shifts engineering effort from data pipelines toward constraint specification and representation design.

Source video

Reward is treated as insufficient as a standalone objective for real-world agents.

Before

Design the agent loop around a single scalar reward with unconstrained maximization.

After

Separate constraint satisfaction and world-model components from the reward-maximization component.

Consequence

Agent architectures gain first-class safety/constraint modules, which changes verification, testing, and failure-handling design.

Source video

Tradeoffs and failure modes

3

EBM flexibility vs inference cost

Benefit

Flexible parameterization of complex densities via unnormalized energy functions, with no partition function integral during training.

Cost or risk

Sampling and generation require expensive MCMC optimization at inference, making serving slow and costly.

EBM inference and sample generation require expensive MCMC optimization over unnormalized densities.
Open source video
Source video

Amortized inference via learned vector fields

Benefit

Sampling becomes direct vector field integration, avoiding per-sample MCMC and giving efficient inference.

Cost or risk

The expensive computation is moved into training of the vector field; quality depends on the learned field, and optimal-transport variants exist precisely to reduce the noise path length.

Optimal transport and flow matching reduce noise paths compared to standard diffusion.
Open source video
Source video

Reward-maximization universality vs real-world deployment

Benefit

A single scalar reward is theoretically sufficient to elicit intelligent behavior.

Cost or risk

Unconstrained maximization hits exploration bottlenecks and sample inefficiency; safety and stability require added priors and constraints.

While reward maximization is theoretically universal, real-world agents need explicit constraints, structural priors, and world models to operate efficiently and safely.
Open source video
Source video

Open questions

4

How much of a representation bottleneck can prior structure remove versus how much requires better inference frameworks?

Why unresolved

The summary asserts both priors and proper inference matter but gives no decomposition of their relative contribution.

Research direction

Controlled experiments that hold inference fixed while varying structural priors (and vice versa) to attribute performance to each factor.

Source video

At what distribution shift does amortized inference (learned vector fields) degrade relative to per-sample MCMC?

Why unresolved

Amortization is presented as the mechanism replacing MCMC, but the summary does not address robustness of the amortized solution.

Research direction

Benchmark amortized samplers against MCMC under distribution shift and quantify the accuracy/latency frontier.

Source video

Which constraint formulations (e.g., CVaR constraints) most effectively restore stability in unconstrained RL at acceptable cost?

Why unresolved

Constrained policy optimization and CVaR are named as terminology but no comparative evidence is provided.

Research direction

Empirical comparison of constrained policy optimization variants on safety-critical control tasks.

Source video

Can spectral/basis diagnostics (e.g., Fourier coefficients) reliably detect whether a model learned structure versus memorized surface statistics?

Why unresolved

Grokking and Fourier analysis are cited as an example but not established as a general-purpose diagnostic.

Research direction

Validate frequency-domain observables as training-time monitors across tasks beyond modular arithmetic.

Source video

Key claims

7
comparativeVerification needed

EBM training avoids partition function integrals but inference requires expensive MCMC over unnormalized densities.

Evidence

EBM training avoids complex partition function integrals, making them flexible.

Question

Does the training/inference cost asymmetry hold across EBM variants and standard benchmark density estimation tasks?

Source video
causalVerification needed

Diffusion and flow matching replace MCMC inference with learned vector fields, amortizing inference cost.

Evidence

Diffusion models and flow matching replace expensive MCMC inference with learned vector fields.

Question

What accuracy is lost by amortizing sampling into a vector field versus running MCMC directly?

Source video
causalVerification needed

Without prior information or constraints, models must relearn everything from scratch.

Evidence

Without prior information or constraints, models must relearn everything from scratch.

Question

Can data scaling recover performance equivalent to explicit priors given comparable compute, and at what data cost?

Source video
factualVerification needed

High-dimensional models face representation bottlenecks without inductive biases and constraints.

Evidence

High-dimensional models face representation bottlenecks without inductive biases and constraints.

Question

What is the dimensionality at which missing inductive bias becomes the dominant bottleneck in practice?

Source video
comparativeVerification needed

Optimal transport and flow matching reduce noise paths compared to standard diffusion.

Evidence

Optimal transport and flow matching reduce noise paths compared to standard diffusion.

Question

How much does shortened transport path improve sample quality or reduce sampling steps?

Source video
factualVerification needed

Normalizing flows and flow matching inherit the normalization of base measures via transformations.

Evidence

Normalizing flows and flow matching inherit the normalization of base measures via transformations.

Question

Does inherited normalization constrain expressivity or expressibility of the learned transformation?

Source video
causalVerification needed

Unconstrained reinforcement learning suffers from exploration bottlenecks and sample inefficiency.

Evidence

Unconstrained reinforcement learning suffers from exploration bottlenecks and sample inefficiency.

Question

Which environments most strongly exhibit exploration bottleneck under unconstrained reward maximization?

Source video

Connections

5