A correct velocity field still needs a numerical solver
BeginnerML 01C · Numerical Computation and Gradient ChecksInteractive plot
Description
Transport particles through a known velocity field and compare integration error at equal step counts.
Try this: Set the rate to zero: why is one Euler step exact? Then use a nonzero rate and compare steps with actual field evaluations.
Hints
The chapter section that uses this lab:
Lab · A correct velocity field still needs a numerical solver
- Mean endpoint error
- 0.189926
- Field evaluations / particle
- 4
- Exact endpoint from x₀=0
- 1.532
Step count and function evaluations are different costs. Reducing integration error cannot fix an incorrect learned field; this oracle example keeps field error at zero so the two issues stay separate.
Try this: Set the rate to zero: why is one Euler step exact? Then use a nonzero rate and compare steps with actual field evaluations.
Known field v(x,t)=λx+1, integrated from t=0 to 1. This isolates solver error relevant to flow-matching sampling; no velocity network is trained and no generation quality is measured. The dashed paths use the analytic solution.