newsfilter
← Interviews
Y Combinator27 min

The ML Technique Every Founder Should Know

Ankit Gupta, Francois Chaubard

Interview, Fireside Chat
  • Diffusion is a fundamental machine learning framework capable of learning any probability distribution ($p_{data}$) across any domain given sufficient data.
  • It is particularly effective at mapping high-dimensional data to high-dimensional outputs even in low-data regimes (e.g., training on 30 images to generate 3 million dimensional outputs).
  • The core process involves adding noise to data samples sequentially to create a "noised" train of images, then training a model to reverse this denoising process.
  • DeepMind used diffusion-based procedures to achieve protein folding solutions, contributing to their recent Nobel Prize recognition.
  • Diffusion policies are currently driving advancements in autonomous driving, with results described as "insane" in performance metrics.
  • Weather forecasting models like GenCast utilize diffusion to achieve state-of-the-art accuracy globally.
  • The "DiffDoc" model leverages diffusion to predict small molecule binding to proteins, and newer AlphaFold versions heavily rely on this technology.
  • Evolution of diffusion began with the 2015 Joshi-Song-Sohl-Dickstein paper, which established the core components of modern diffusion.
  • Subsequent innovations focused on the loss function objective, progressing from predicting the actual data to predicting the added error, and finally to predicting velocity.
  • Predicting velocity (flow matching) is mathematically and computationally easier for the model to learn than predicting raw data or error terms.
  • The noise schedule is critical for stability; a "beta schedule" introduces a relatively constant amount of error per time step rather than a linear interpolation.
  • Flow Matching, introduced by Meta, simplifies the process by modeling a straight-line global velocity between noise and data, bypassing circuitous intermediate steps.
  • The core Flow Matching algorithm can be implemented in approximately five to ten lines of code, remaining agnostic to the underlying model architecture (RNN, UNET, Transformer).
  • Unlike autoregressive LLMs which predict one token at a time, diffusion models leverage randomness (stochasticity) and iterative refinement to generate outputs.
  • A limitation of current diffusion models is that the number of inference steps must match the training steps; increasing steps beyond the training count causes failure (e.g., outputting white noise).
  • Distillation techniques allow training a model to perform high-quality generation in fewer steps (e.g., 10 steps) by distilling from a 100-step model, but the reduced model still requires training with the reduced step count.
  • Francois Chaubard argues diffusion passes a "squint test" for AGI by mimicking biological features: leveraging randomness in neurons and emitting concepts via revision rather than linear token generation.
  • Diffusion has "eaten all of AI" except for two specific domains where it has not yet achieved state-of-the-art: autoregressive LLMs and games utilizing Monte Carlo Tree Search (MCTS) like AlphaGo.
  • Founders training models should integrate diffusion procedures into their training loops to improve latent spaces, regardless of the specific application domain.
  • Founders using models should anticipate rapid quality improvements driven by scaling data and compute, with applications expanding from images to DNA, robotics, and failure sampling.
  • Current trends indicate diffusion will be the primary technology for non-text AI applications, including video generation (Sora, Veo), code generation, and life sciences.