Y Combinator27 min
The ML Technique Every Founder Should Know
Ankit Gupta, Francois Chaubard
Interview, Fireside Chat
- Newer diffusion approaches distinct from autoregressive LLMs are predicted to become prevalent, with image generation quality improving by a factor of one thousand over the last five years, scaling from Midjourney to models like Sora, Veo, and Flux.
- The fundamental math of diffusion is expected to simplify and require less code, contrasting with typical ML trends, while engineering challenges involving 100 billion parameter models and thousands of data centers remain the primary scaling hurdles.
- Flow matching, introduced by Meta's Yaron Lipman, is forecast to simplify the process by using a straight-line global velocity rather than a circuitous noising path, reducing inference costs and allowing the model to be abstracted across distribution types like proteins, text, and images.
- Diffusion models are expected to successfully operate in low data regimes, mapping from high dimensions to high dimensions even with as few as 30 images to generate a 3 million dimensional space, while predicting data velocity is anticipated to be easier for models than predicting actual data.
- Applications beyond image and video generation are predicted to see success in protein folding, weather forecasting (e.g., GenCast), robotics policies (e.g., Rose the Robot), metabolomics, DNA analysis, and small molecule binding (e.g., DiffDoc).
- The speaker anticipates a new wave of companies will emerge to build on diffusion for training or application, potentially redefining the economy, though MCTS remains state-of-the-art for game playing and autoregressive LLMs still outperform in text generation.
- Scaling up diffusion through increased time, money, and data is expected to drive continuous improvements, with modern models achieving FID scores around 8 or 10 compared to earlier higher scores.
- Architectural trends show a shift from UNETs to diffusion transformers utilizing cross-attention mechanisms, while continuous and discrete diffusion LLMs are predicted to become major research topics for code and text generation.
- Techniques like distillation are expected to be necessary to compress representation and allow fewer steps at test time, though the model must still be trained with the target number of steps to avoid failure.
- Specific parameters such as beta min to beta max control signal retention (Alpha) and noise addition (Beta), with the beta schedule ensuring a relatively constant amount of error per time step to maintain stability.
- Failure sampling capabilities enabled by diffusion will be used to identify potential system failures or bad outcomes, while the ability to emit concepts in chunks rather than one token at a time is seen as a key step toward biological intelligence.
- The "squint test" for general intelligence requires recursion and concept emission, which diffusion partially provides, whereas LLMs remain bottlenecked by a one-token-at-a-time action space preventing recursive concept revision.
- Current state-of-the-art performance has been achieved in video generation (Sora, Veo), protein folding (AlphaFold), and weather forecasting, with DeepMind's Nobel Prize for protein folding attributed to diffusion procedures.
- Research at conferences like NeurIPS has widely discussed diffusion and non-autoregressive approaches, with flow matching and isotropic Gaussian noise serving as standard components in modern implementations.
- Interpretations of diffusion via stochastic differential equations, statistical mechanics, and probabilistic graphical models are considered valid, though the underlying math is viewed as simpler than these frameworks suggest.
- Models like Flux, SD3, Sora, and Veo represent the latest advancements, building upon the baseline set by Midjourney, with video generation effectively described as images stapled together using the same diffusion principles.
- The speaker expects that applying diffusion to domains like self-driving cars, robotics, and life sciences will result in effective systems, though MCTS and autoregressive LLMs remain superior in their specific domains.
- Engineering rather than mathematical complexity is identified as the main barrier, with 100 billion parameter models and vast data centers required to make simple mathematical procedures work at scale.
- The beta schedule is critical for stability, as the instantaneous amount of error added at the beginning of a linear schedule is very small, and alpha bar weights follow a specific mathematical shape resembling one minus sigmoid.
- KL divergence minimization is noted as the specific training objective for the original non-equilibrium thermodynamics paper implementation, while Euler steps are used for iterative refinement during the test phase of flow matching models.
- The speaker advises founders to consider diffusion procedures as a fundamental piece of their training loop, even for tasks not directly generating data, due to the versatility of the core procedure across different applications.