Derive The Training Target For Rectified Flow Video Models

Last updated: November 29, 2026

Quick Overview

For a flow matching model that interpolates linearly between data and Gaussian noise, derive the regression target the network learns, show how sampling works, and compare it to epsilon-prediction diffusion.

Luma AI
Machine Learning
Machine Learning Engineer
Luma AI
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Medium

0

0

0 solved


For a flow matching model that interpolates linearly between data and Gaussian noise, derive the regression target the network learns, show how sampling works, and compare it to epsilon-prediction diffusion.

Modern video foundation models are commonly trained with flow matching objectives on transformer backbones, and Luma's research loop expects candidates to reason about objectives from first principles. The interviewer checks the derivation, the sampling ODE, and practical choices like timestep sampling.

What the Interviewer Expects
  • Define the interpolation path and its time derivative
  • State the loss as velocity regression
  • Describe Euler (or higher order) ODE sampling
  • Relate velocity to noise and data predictions
  • Discuss timestep weighting and few-step sampling
Key Topics to Cover
Flow matching
Rectified flow
ODE sampling
Diffusion objectives
Noise schedules
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • Why do people sample t from a logit-normal rather than uniform?
  • How does resolution or video length change the ideal noise schedule shift?
  • What makes straighter paths easier to distill into few steps?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Data latent x0x_0 (a video latent), noise x1∼N(0,I)x_1 \sim \mathcal N(0, I), time t∈[0,1]t \in [0, 1] with t=0t = 0 data and t=1t = 1 noise....

Approach

Define a simple path between the two endpoints, differentiate it to get a target velocity, and train a network to regress that velocity given only the noisy point and time....


Submit Your Answer
Markdown supported

Related Questions