File size: 167,061 Bytes
dc72041
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
[
    {
        "type": "text",
        "text": "Improving and Generalizing Flow-Based Generative Models with Minibatch Optimal Transport ",
        "text_level": 1,
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Alexander Tong∗ Mila – Québec AI Institute, Université de Montréal ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "alexander.tong@mila.quebec ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Kilian Fatras∗ Mila – Québec AI Institute, McGill University ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "kilian.fatras@mila.quebec ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Nikolay Malkin∗ Mila – Québec AI Institute, Université de Montréal ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "nikolay.malkin@mila.quebec ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Guillaume Huguet Mila – Québec AI Institute, Université de Montréal ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "guillaume.huguet@mila.quebec ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Yanlei Zhang Mila – Québec AI Institute, Université de Montréal ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "yanlei.zhang@mila.quebec ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Jarrid Rector-Brooks Mila – Québec AI Institute, Université de Montréal ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "jarrid.rector-brooks@mila.quebec ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Guy Wolf   \nMila – Québec AI Institute, Université de Montréal   \nCanada CIFAR AI Chair ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "guy.wolf@umontreal.ca ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Yoshua Bengio   \nMila – Québec AI Institute, Université de Montréal   \nCIFAR Senior Fellow ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "yoshua.bengio@mila.quebec ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Reviewed on OpenReview: https: // openreview. net/ forum? id= CD9Snc73AW ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Abstract ",
        "text_level": 1,
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Continuous normalizing flows (CNFs) are an attractive generative modeling technique, but they have been held back by limitations in their simulation-based maximum likelihood training. We introduce the generalized conditional flow matching (CFM) technique, a family of simulation-free training objectives for CNFs. CFM features a stable regression objective like that used to train the stochastic flow in diffusion models but enjoys the efficient inference of deterministic flow models. In contrast to both diffusion models and prior CNF training algorithms, CFM does not require the source distribution to be Gaussian or require evaluation of its density. A variant of our objective is optimal transport CFM (OT-CFM), which creates simpler flows that are more stable to train and lead to faster inference, as evaluated in our experiments. Furthermore, we show that when the true OT plan is available, our OT-CFM method approximates dynamic OT. Training CNFs with CFM improves results on a variety of conditional and unconditional generation tasks, such as inferring single cell dynamics, unsupervised image translation, and Schrödinger bridge inference. The Python code is available at https://github.com/atong01/conditional-flow-matching. ",
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "1 Introduction ",
        "text_level": 1,
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "Generative modeling considers the problem of approximating and sampling from a probability distribution. Normalizing flows, which have emerged as a competitive generative modeling method, construct an invertible and efficiently differentiable mapping between a fixed (e.g., standard normal) distribution and the data distribution (Rezende & Mohamed, 2015). While original normalizing flow work specified this mapping as a static composition of invertible modules, continuous normalizing flows (CNFs) express the mapping by a neural ordinary differential equation (ODE) (Chen et al., 2018). Unfortunately, CNFs have been held back by difficulties in training and scaling to large datasets (Chen et al., 2018; Grathwohl et al., 2019; Onken et al., 2021). ",
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "Meanwhile, diffusion models, which are the current state of the art on many generative modeling tasks (Dhariwal & Nichol, 2021; Austin et al., 2021; Corso et al., 2023; Watson et al., 2022b), approximate a stochastic differential equation (SDE) that transforms a simple density to the data distribution. Diffusion models owe their success in part to their simple regression training objective, which does not require simulating the SDE during training. Recently, (Lipman et al., 2023; Albergo & Vanden-Eijnden, 2023; Liu, 2022) showed that CNFs could also be trained using a regression of the ODE’s drift similar to training of diffusion models, an objective called flow matching (FM). FM was shown to produce high-quality samples and stabilize CNF training, but made the assumption of a Gaussian source distribution, which was later relaxed in generalizations of FM to more general manifolds (Chen & Lipman, 2024), arbitrary sources (Pooladian et al., 2023), and couplings between source and target samples that are either part of the input data or are inferred using optimal transport. The first main contribution of the present paper is to propose a unifying conditional flow matching (CFM) framework for FM models with arbitrary transport maps, generalizing existing FM and diffusion modeling approaches (Table 1). ",
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "A major drawback of both CNF (ODE) and diffusion (SDE) models compared to other generative models (e.g., variational autoencoders (Kingma & Welling, 2014), (discrete-time) normalizing flows, and generative adversarial networks (Goodfellow et al., 2014)), is that integration of the ODE or SDE requires many passes through the network to generate a high-quality sample, resulting in a long inference time. This drawback has motivated work on enforcing an optimal transport (OT) property in neural ODEs (Tong et al., 2020; Finlay et al., 2020; Onken et al., 2021; Liu, 2022; Liu et al., 2023b), yielding straighter flows that can be integrated accurately in fewer neural network evaluations. Such regularizations have not yet been studied for the full generality of models trained with FM-like objectives, and their properties with regard to solving the dynamic optimal transport problem were not empirically evaluated. Our second main contribution is a variant of CFM called optimal transport conditional flow matching (OT-CFM) that approximates dynamic OT via CNFs. We show that OT-CFM not only improves the efficiency of training and inference, but also leads to more accurate OT flows than existing neural OT models based on ODEs (Tong et al., 2020; Finlay et al., 2020), SDEs (De Bortoli et al., 2021; Vargas et al., 2021), or input-convex neural networks (Makkuva et al., 2020). Furthermore, an entropic variant of OT-CFM can be used to efficiently train a CNF to match the probability flow of a Schrödinger bridge. We show that in the case where the true transport plan is sampleable, our methods approximate the dynamic OT maps and Schrödinger bridge probability flows for arbitrary source and target distributions with simulation-free training. ",
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "In summary, our contributions are: ",
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "(1) We introduce a generalized formulation of the recent conditional flow matching framework (§3.1), and prove its correctness encompassing many existing flow matching methods (Lipman et al., 2023; Albergo & Vanden-Eijnden, 2023; Liu et al., 2022a) (See Table 1).   \n(2) We consider a special case of CFM that draws source and target samples according to an optimal transport plan, allowing us to solve the dynamic OT and Schrödinger bridge problems in a simulation-free way, using only static OT maps between marginal distributions. We show that efficient minibatch approximations to the OT map still yield correct solutions to the generative modeling problem while incurring a low detriment to the dynamic OT solution (§3.2).   \n(3) We evaluate CFM and OT-CFM in experiments on single-cell dynamics, image generation, unsupervised image translation, and energy-based models. We show that the OT-CFM objective leads to more efficient training and decreases inference time while finding better approximate solutions to the dynamic OT ",
        "page_idx": 1
    },
    {
        "type": "image",
        "img_path": "images/dc40f4b609d7170e916c04dfda98d040800f9a274dbe55ca15b7497c77114b0f.jpg",
        "image_caption": [
            "Figure 1: Left: Conditional flows from FM (Lipman et al., 2023), I-CFM (§3.2.2), and OT-CFM (§3.2.3). Right: Learned flows (green) from moons (blue) to 8gaussians (black) using I-CFM (centre-right) and OT-CFM (far right). "
        ],
        "image_footnote": [],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "and Schrödinger bridge problems. For high-dimensional image generation, we also propose improved and reproducible training practices for flow-based models that significantly improve the performance of algorithms from past work (§5). ",
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "(4) We release a Python package, torchcfm, that unifies new and existing algorithms for training flow-based generative models under a shared interface and provides implementations of our main experiments. The Python code is available at https://github.com/atong01/conditional-flow-matching. ",
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "2 Background: Optimal transport and neural ODEs ",
        "text_level": 1,
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "Throughout the paper, we consider the setting of a pair of data distributions over $\\mathbb { R } ^ { d }$ with (possibly unknown) densities $q ( x _ { 0 } )$ and $q ( x _ { 1 } )$ (also denoted $q _ { 0 }$ , $q _ { 1 }$ ). Generative modeling considers the task of fitting a mapping $f$ from $\\mathbb { R } ^ { d }$ to $\\mathbb { R } ^ { d }$ that transforms $q _ { 0 }$ to $q _ { 1 }$ , that is, if $x _ { 0 }$ is distributed with density $q _ { 0 }$ then $f ( x _ { 0 } )$ is distributed with density $q _ { 1 }$ . This includes both the typical case when $q _ { 0 }$ is an easily sampled density, such as a Gaussian, and the case when $q _ { 0 }$ and $q _ { 1 }$ are empirical data distributions available as finite sets of samples. ",
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "2.1 ODEs and probability flows ",
        "text_level": 1,
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "A smooth1 time-varying vector field $u : [ 0 , 1 ] \\times \\mathbb { R } ^ { d }  \\mathbb { R } ^ { d }$ defines an ordinary differential equation: ",
        "page_idx": 2
    },
    {
        "type": "equation",
        "img_path": "images/c9dbfee0134062671265a15f7b32ae258f686dcd3b44346144f5c248e8ece2cd.jpg",
        "text": "$$\nd x = u _ { t } ( x ) d t ,\n$$",
        "text_format": "latex",
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "where we use the notation $u _ { t } ( x )$ interchangeably with $u ( t , x )$ . Denote by $\\phi _ { t } ( x )$ the solution of the ODE (1) with initial condition $\\phi _ { 0 } ( x ) = x$ ; that is, $\\phi _ { t } ( x )$ is the point $x$ transported along the vector field $u$ from time $0$ up to time $t$ . ",
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "Given a density $p _ { 0 }$ over $\\mathbb { R } ^ { d }$ , the integration map $\\phi _ { t }$ induces a pushforward $p _ { t } : = [ \\phi _ { t } ] _ { \\# } ( p _ { 0 } )$ , which is the density of points $x \\sim p _ { 0 }$ transported along $u$ from time $0$ to time $t$ . The time-varying density $p _ { t }$ , viewed as a function $p : [ 0 , 1 ] \\times \\mathbb { R } ^ { d }  \\mathbb { R }$ , is characterized by the well-known continuity equation: ",
        "page_idx": 2
    },
    {
        "type": "equation",
        "img_path": "images/ce819c83fd0ff42f0a6dd94b4195d1d0cd2a803d13b928e8101e4345735ad451.jpg",
        "text": "$$\n\\frac { \\partial p } { \\partial t } = - \\nabla \\cdot ( p _ { t } \\boldsymbol { u } _ { t } )\n$$",
        "text_format": "latex",
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "and the initial conditions $p _ { 0 }$ . Under these conditions, $u$ is said to be a probability flow $O D E$ for $p$ , and $p$ is the (marginal) probability path $^ 2$ generated by $u$ . ",
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "Approximating ODEs with neural networks. Suppose the probability path $p _ { t } ( x )$ and the vector field $u _ { t } ( x )$ generating it are known and $p _ { t } ( x )$ can be tractably sampled. If $v _ { \\theta } ( \\cdot , \\cdot ) : [ 0 , 1 ] \\times \\mathbb { R } ^ { d } \\to \\mathbb { R } ^ { d }$ is a time-dependent vector field parametrized as a neural network with weights $\\theta$ , $v _ { \\theta }$ can be regressed to $u$ via ",
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "the flow matching (FM) objective: ",
        "page_idx": 3
    },
    {
        "type": "equation",
        "img_path": "images/98d08a0c400a24c6ccef812c59b22fbd90a8ad9cb5ebecaf5f365aff2d4b8077.jpg",
        "text": "$$\n\\mathcal { L } _ { \\mathrm { F M } } ( \\theta ) : = \\mathbb { E } _ { t \\sim \\mathcal { U } ( 0 , 1 ) , x \\sim p _ { t } ( x ) } \\| v _ { \\theta } ( t , x ) - u _ { t } ( x ) \\| ^ { 2 } .\n$$",
        "text_format": "latex",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "Lipman et al. (2023) used a version of this objective with a stochastic regression target to fit ODEs that map a Gaussian density $q _ { 0 }$ to a target $q _ { 1 }$ . However, this objective becomes intractable for general source and target distributions. In §3, we develop generalizations that allow more flexible and efficient generative modeling. ",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "The case of Gaussian marginals. Consider the special case of an ODE whose marginal densities are Gaussian: $p _ { t } ( x ) = \\mathcal { N } ( x \\mid \\mu _ { t } , \\sigma _ { t } ^ { 2 } )$ . While the ODE that generates these marginal densities is not unique, one of the simplest is the one that satisfies ",
        "page_idx": 3
    },
    {
        "type": "equation",
        "img_path": "images/a4907985f06e59beb6e681876dec949d4c970253929a1af773e03ec57f657536.jpg",
        "text": "$$\n\\phi _ { t } ( x _ { 0 } ) = \\mu _ { t } + \\sigma _ { t } \\left( { \\frac { x _ { 0 } - \\mu _ { 0 } } { \\sigma _ { 0 } } } \\right) ,\n$$",
        "text_format": "latex",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "which is unique by the following theorem. ",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "Theorem 2.1 (Theorem 3 of Lipman et al. (2023)). The unique vector field whose integration map satisfies (4) has the form ",
        "page_idx": 3
    },
    {
        "type": "equation",
        "img_path": "images/c28418758c1bab01f26718221098457f77d5ddc82fc90f87be2abc0151a8a22d.jpg",
        "text": "$$\nu _ { t } ( x ) = \\frac { \\sigma _ { t } ^ { \\prime } } { \\sigma _ { t } } ( x - \\mu _ { t } ) + \\mu _ { t } ^ { \\prime } ,\n$$",
        "text_format": "latex",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "where $\\boldsymbol { \\sigma } _ { t } ^ { \\prime }$ and $\\mu _ { t } ^ { \\prime }$ denote the time derivative of $\\sigma _ { t }$ and $\\mu _ { t }$ , respectively, and the vector field u with initial conditions $\\mathcal { N } ( \\mu _ { 0 } , \\sigma _ { 0 } ^ { 2 } )$ generates the Gaussian probability path $p _ { t } ( x ) = \\mathcal { N } ( x \\mid \\mu _ { t } , \\sigma _ { t } ^ { 2 } )$ . ",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "2.2 Static and dynamic optimal transport ",
        "text_level": 1,
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "The (static) optimal transport problem seeks a mapping from one measure to another that minimizes a displacement cost. The case of greatest interest is the 2-Wasserstein distance between distributions $q _ { 0 }$ and $q _ { 1 }$ on $\\mathbb { R } ^ { d }$ with respect to the Euclidean distance cost $c ( x , y ) = \\| x - y \\|$ . The corresponding optimization problem is ",
        "page_idx": 3
    },
    {
        "type": "equation",
        "img_path": "images/0157541f06819aab278c6db74ad4ff4914dcdf85074d47df00fbcabe81364576.jpg",
        "text": "$$\nW ( q _ { 0 } , q _ { 1 } ) _ { 2 } ^ { 2 } = \\operatorname* { i n f } _ { \\pi \\in \\Pi } \\int _ { \\mathbb { R } ^ { d } \\times \\mathbb { R } ^ { d } } c ( x , y ) ^ { 2 } d \\pi ( x , y ) ,\n$$",
        "text_format": "latex",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "where $\\amalg$ denotes the set of all joint probability measures on $\\mathbb { R } ^ { d } \\times \\mathbb { R } ^ { d }$ whose marginals are $q _ { 0 }$ and $q _ { 1 }$ . For compactly supported distributions and for the ground cost $c ( x , y ) = \\| x - y \\|$ , the set of solutions of (6) is not empty Villani (2009), and $W _ { 2 }$ is a metric on the space of probability distributions on $\\mathbb { R } ^ { d }$ with finite second moment. ",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "The dynamic form of the 2-Wasserstein distance is defined by an optimization problem over vector fields $u _ { t }$ that transform one measure to the other: ",
        "page_idx": 3
    },
    {
        "type": "equation",
        "img_path": "images/946d2cea5f7a0e2746b74ac33e3913742d50805ba16b9841028e2f2822b31c47.jpg",
        "text": "$$\nW ( q _ { 0 } , q _ { 1 } ) _ { 2 } ^ { 2 } = \\operatorname* { i n f } _ { p _ { t } , u _ { t } } \\int _ { \\mathbb { R } ^ { d } } \\int _ { 0 } ^ { 1 } p _ { t } ( x ) \\| u _ { t } ( x ) \\| ^ { 2 } d t d x ,\n$$",
        "text_format": "latex",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "with $p _ { t } \\geq 0$ and subject to the boundary conditions $p _ { 0 } = q _ { 0 }$ , $p _ { 1 } = q _ { 1 }$ , and the continuity equation (2). The equivalence between the dynamic and static optimal transport formulations was first proven in Benamou $\\&$ Brenier (2000) under the assumptions that $q _ { 0 }$ and $q _ { 1 }$ are compactly supported distributions with bounded density. We refer to (Ambrosio & Gigli, 2013, Chapter2) for a recent overview on optimal transport the relation between the two formulations. ",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "Tong et al. (2020); Finlay et al. (2020) showed that CNFs with $L ^ { 2 }$ regularization approximate dynamic optimal transport. For general marginals, however, these models required integrating over and backpropagating through tens to hundreds of function evaluations, resulting in both numerical and efficiency issues. We aim to avoid these issues by directly regressing to the vector field in a simulation-free way. ",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "Optimal transport is also related to the Schrödinger bridge (SB) problem (Léonard, 2014b). We show in §3.2.4 that a variant of the algorithm we propose recovers the probability flow of the solution to a SB problem with a Brownian motion reference process. ",
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "3 Conditional flow matching: ODEs from static couplings ",
        "text_level": 1,
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "3.1 Vector fields generating mixtures of probability paths ",
        "text_level": 1,
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "Suppose that the marginal probability path $p _ { t } ( x )$ is a mixture of probability paths $p _ { t } ( x | z )$ that vary with some conditioning variable $z$ , that is, ",
        "page_idx": 4
    },
    {
        "type": "equation",
        "img_path": "images/6f8a9777f7ba8925c61455cd3344e57d50c471583b6af8f6451d2e65d875ccd7.jpg",
        "text": "$$\np _ { t } ( x ) = \\int p _ { t } ( x | z ) q ( z ) d z ,\n$$",
        "text_format": "latex",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "where $q ( z )$ is some distribution over the conditioning variable. If the probability path $p _ { t } ( x | z )$ is generated by the vector field $\\boldsymbol u _ { t } ( \\boldsymbol x | \\boldsymbol z )$ from initial conditions $p _ { 0 } ( x | z )$ (see §2.1), then the vector field ",
        "page_idx": 4
    },
    {
        "type": "equation",
        "img_path": "images/1cce44ebc08f67a5b9e6898fba337b1b218f840da71139957cfb89768363abff.jpg",
        "text": "$$\nu _ { t } ( x ) : = \\mathbb { E } _ { q ( z ) } \\frac { u _ { t } ( x | z ) p _ { t } ( x | z ) } { p _ { t } ( x ) }\n$$",
        "text_format": "latex",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "generates the probability path $p _ { t } ( x )$ , under some mild conditions: ",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "heorem 3.1. The marginal vector field (9) generates the probability path (8) from initial conditions $p _ { 0 } ( x )$ . ",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "All proofs appear in Appendix A. This result extends (Lipman et al., 2023, Theorem 1) to general conditioning variables and delineates some minor conditions on $q ( z )$ . ",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "A regression objective for mixtures. We are interested in the case where conditional probability paths $p _ { t } ( x | z )$ and vector fields $u _ { t } ( x | z )$ are known and have a simple form, and we wish to recover the vector field $u _ { t } ( x )$ , defined by (9), that generates the probability path $p _ { t } ( x )$ . Exact computation via (9) is generally intractable, as the denominator $p _ { t } ( x )$ is defined by an integral (8) that may be difficult to evaluate. Instead, we develop an unbiased stochastic objective for regression of a learned vector field to $u _ { t } ( x )$ , which generalizes the unconditional flow matching objective (3). ",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "Let $v _ { \\theta } ( \\cdot , \\cdot ) : [ 0 , 1 ] \\times \\mathbb { R } ^ { d } \\to \\mathbb { R } ^ { d }$ be a time-dependent vector field parametrized as a neural network with weights $\\theta$ . Define the conditional flow matching (CFM) objective: ",
        "page_idx": 4
    },
    {
        "type": "equation",
        "img_path": "images/b66c7024329a5a5db8326a1220fed947b50892843fc450c0109b7f2954d05ca7.jpg",
        "text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { \\mathrm { C F M } } ( \\theta ) : = \\mathbb { E } _ { t , q ( z ) , p _ { t } ( x | z ) } \\| v _ { \\theta } ( t , x ) - u _ { t } ( x | z ) \\| ^ { 2 } . } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "The CFM objective describes how to regress against the marginal vector field $u _ { t } ( x )$ given by (9) with access only to samples from the conditional probability path $p _ { t } ( x | z )$ and conditional vector fields $\\boldsymbol u _ { t } ( \\boldsymbol x | \\boldsymbol z )$ . This is formalized in the following theorem. ",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "Theorem 3.2. If $p _ { t } ( x ) > 0$ for al l $x \\in \\mathbb { R } ^ { d }$ and $t \\in [ 0 , 1 ]$ , then, up to a constant independent of $\\theta$ , ${ \\mathcal { L } } _ { \\mathrm { C F M } }$ and $\\mathcal { L } _ { \\mathrm { F M } }$ are equal, and hence ",
        "page_idx": 4
    },
    {
        "type": "equation",
        "img_path": "images/c569b68588727e9c2c5b133dec47c768f3fc95d7822ecdfe80cdd262b9c553c3.jpg",
        "text": "$$\n\\nabla _ { \\boldsymbol { \\theta } } \\mathcal { L } _ { \\mathrm { F M } } ( \\boldsymbol { \\theta } ) = \\nabla _ { \\boldsymbol { \\theta } } \\mathcal { L } _ { \\mathrm { C F M } } ( \\boldsymbol { \\theta } ) .\n$$",
        "text_format": "latex",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "The CFM objective is useful when the marginal vector field $u _ { t } ( x )$ is intractable but the conditional vector field $\\boldsymbol u _ { t } ( \\boldsymbol x | \\boldsymbol z )$ is tractable. As long as we can efficiently sample from $q ( z )$ and $p _ { t } ( x | z )$ and calculate $u _ { t } ( x | z )$ , we can use this stochastic objective to regress $v _ { \\theta }$ to the marginal vector field $u _ { t } ( x )$ . ",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "We discuss the variance arising from the stochastic regression target, and ways to reduce it, in §C.1, Proposition B.2, Proposition B.3. ",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "3.2 Sources of conditional probability paths ",
        "text_level": 1,
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "In this section, we introduce several forms of CFM depending on the choices of $q ( z )$ , $p _ { t } ( \\cdot | z )$ , and $\\boldsymbol { u } _ { t } ( \\cdot | \\boldsymbol { z } )$ . All of the CFM variants and related objectives from prior work are summarized in Table 1. ",
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "• §3.2.1: We interpret the algorithm of Lipman et al. (2023) (FM from a Gaussian) as a special case of CFM. • §3.2.2: We relax the Gaussian source requirement by letting the condition $z$ be a pair $( x _ { 0 } , x _ { 1 } )$ of an initial and a terminal point. In the basic form of CFM (I-CFM), we take the distribution $q ( z )$ to equal $q ( x _ { 0 } ) q ( x _ { 1 } )$ , allowing generative modeling with an arbitrary source distribution. ",
        "page_idx": 4
    },
    {
        "type": "table",
        "img_path": "images/ce9b439e19b95b6e7afafb5d4794dcd12cb6fec3bc27b76752b8568e93425bc5.jpg",
        "table_caption": [
            "Algorithm 1 Conditional Flow Matching "
        ],
        "table_footnote": [],
        "table_body": "<table><tr><td>Input: Efficiently samplable q(z), Pt(x|z),and computable ut(x|z) and initial network vo.</td></tr><tr><td>while Trainingdo</td></tr><tr><td>z~q(z);t~U(0,1); x~pt(x|z)</td></tr><tr><td>LcFM(θ)←|uθ(t,x)-ut(x|z)|l²</td></tr><tr><td>0 ←Update(0,VθLcFm(0)) returnvθ</td></tr></table>",
        "page_idx": 5
    },
    {
        "type": "table",
        "img_path": "images/35966003199535f7f1cc3f6db0ab48780a49a5d82dba01a898ebd419227d86f1.jpg",
        "table_caption": [
            "Table 1: Probability path definitions for existing methods which fit in the generalized conditional flow matching framework (top) and our newly defined paths (bottom). We define two new probability path objectives that can handle general source distributions and optimal transport flows. "
        ],
        "table_footnote": [],
        "table_body": "<table><tr><td>Probability Path</td><td>q(2)</td><td>μ(2)</td><td>σt</td><td>Cond. OT</td><td>Marginal OT</td><td>General source</td></tr><tr><td>Var. Exploding (Song&amp; Ermon, 2019)</td><td>q(𝑥1)</td><td>T1</td><td>01-t</td><td></td><td>×</td><td>×</td></tr><tr><td>Var.Preserving (Ho et al., 2020)</td><td>q(x1)</td><td>α1-t1</td><td>1-a²−t</td><td></td><td>×</td><td>×</td></tr><tr><td>Flow Matching (Lipman et al., 2023)</td><td>q(x1)</td><td>tx1</td><td>tσ-t+1</td><td>× √</td><td>×</td><td>×</td></tr><tr><td>Rectified Flow Liu (2022)</td><td>q(xo)q(x1)</td><td>tx1+(1-t)xo</td><td></td><td>√</td><td>×</td><td>√</td></tr><tr><td>Var.Pres.Stochastic Interpolant Albergo &amp; Vanden-Eijnden (2023)</td><td>q(xo)q(x1)</td><td>cos(1πt)𝑥0+sin(πt)𝑥1</td><td></td><td>√</td><td>×</td><td>√</td></tr><tr><td>Independent CFM</td><td>q(x0)q(x1)</td><td>tc1+(1-t)𝑥</td><td></td><td>√</td><td>×</td><td>√</td></tr><tr><td>(Ours) Optimal Transport CFM</td><td>π(xo,x1)</td><td>tx1+(1-t)x</td><td></td><td>√</td><td>√</td><td>√</td></tr><tr><td>(Ours)Schrodinger Bridge CFM</td><td>π2g²(x0,x1)</td><td>tx1+(1-t)xoσ√t(1-t)</td><td></td><td>√</td><td>√</td><td>√</td></tr></table>",
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "• $\\ S 3 . 2 . 3$ : We consider joint distributions $q ( z ) = q ( x _ { 0 } , x _ { 1 } )$ that are given by minibatch optimal transport maps, causing the learned flow to be an (approximate) OT flow.   \n• $\\ S 3 . 2 . 4$ : we consider $q ( z )$ given by an entropy-regularized OT map and show that the CFM objective with this $q ( z )$ solves the Schrödinger bridge problem. ",
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "3.2.1 FM from the Gaussian ",
        "text_level": 1,
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "Lipman et al. (2023) considered the problem of unconditional generative modeling given a training dataset. Identifying the condition $z$ with a single datapoint $z : = x _ { 1 }$ , and choosing a smoothing constant $\\sigma > 0$ , one sets ",
        "page_idx": 5
    },
    {
        "type": "equation",
        "img_path": "images/7c602eeb8e9184a4193736450c41c757e50c0237def786b286d558829431d14d.jpg",
        "text": "$$\n\\begin{array} { l } { p _ { t } ( x | z ) = \\mathcal { N } ( x \\mid t x _ { 1 } , ( t \\sigma - t + 1 ) ^ { 2 } ) , } \\\\ { u _ { t } ( x | z ) = \\displaystyle \\frac { x _ { 1 } - ( 1 - \\sigma ) x } { 1 - ( 1 - \\sigma ) t } , } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "which is a probability path from the standard normal distribution $( p _ { 0 } ( x | z ) = \\mathcal { N } ( x ; 0 , I ) )$ to a Gaussian distribution centered at $x _ { 1 }$ with standard deviation $\\sigma$ ( $p _ { 1 } ( x | z ) = \\mathcal { N } ( x ; x _ { 1 } , \\sigma ^ { 2 } ) )$ . If one sets $q ( z ) = q ( x _ { 1 } )$ to be the uniform distribution over the training dataset, the objective introduced by Lipman et al. (2023) is equivalent to the CFM objective (10) for this conditional probability path. ",
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "We emphasize that although the conditional probability path $p _ { t } ( x | z )$ is an optimal transport path from $p _ { 0 } ( x | z )$ to $p _ { 1 } ( x | z )$ , the marginal path $p _ { t } ( x )$ is not in general an OT path from the standard normal $p _ { 0 } ( x )$ to the data distribution $p _ { 1 } ( x )$ . ",
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "3.2.2 Basic form of CFM: Independent coupling ",
        "text_level": 1,
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "In the basic form of CFM (I-CFM), we identify $z$ with a pair of random variables, a source point $x _ { 0 }$ and a target point $x _ { 1 }$ , and set $q ( z ) = q ( x _ { 0 } ) q ( x _ { 1 } )$ to be the independent coupling. We let the conditionals be Gaussian flows between $x _ { 0 }$ and $x _ { 1 }$ with standard deviation $\\sigma$ , defined by ",
        "page_idx": 5
    },
    {
        "type": "equation",
        "img_path": "images/df15a84a85891e946d0afbb4241bff6c4a5a11d317c78bd73e3a6a8ea2a45044.jpg",
        "text": "$$\n\\begin{array} { l } { p _ { t } ( x | z ) = \\mathcal { N } ( x \\mid t x _ { 1 } + ( 1 - t ) x _ { 0 } , \\sigma ^ { 2 } ) , } \\\\ { u _ { t } ( x | z ) = x _ { 1 } - x _ { 0 } . } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "We note that the formulation of $\\boldsymbol u _ { t } ( \\boldsymbol x | \\boldsymbol z )$ follows from an application of Theorem 2.1 to the conditional probability path with $\\mu _ { t } = t x _ { 1 } + ( 1 - t ) x _ { 0 }$ and $\\sigma _ { t } = \\sigma$ . Furthermore, we note that $p _ { t } ( x | z )$ is efficiently samplable and $u _ { t }$ is efficiently computable, thus gradient descent on ${ \\mathcal { L } } _ { \\mathrm { C F M } }$ is also efficient. For this choice of $z$ , $p _ { t } ( \\cdot | z )$ , and $\\boldsymbol { u } _ { t } ( \\cdot | \\boldsymbol { z } )$ , we know the marginal boundary probabilities approach $q _ { 0 }$ and $q _ { 1 }$ respectively as $\\sigma  0$ . This is made explicit in the following Proposition: ",
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "",
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "Proposition 3.3. The marginal $p _ { t }$ corresponding to $q ( z ) = q ( x _ { 0 } ) q ( x _ { 1 } )$ and the $p _ { t } ( x | z ) , u _ { t } ( x | z )$ in (14) and (15) has boundary conditions $p _ { 1 } = q _ { 1 } * \\mathcal { N } ( x \\mid 0 , \\sigma ^ { 2 } )$ and $p _ { 0 } = q _ { 0 } * \\mathcal { N } ( x \\mid 0 , \\sigma ^ { 2 } )$ , where $^ *$ denotes the convolution operator. ",
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "In particular, as $\\sigma  0$ , the marginal vector field $u _ { t } ( x )$ approaches one that transports the distribution $q ( x _ { 0 } )$ to $q ( x _ { 1 } )$ and can thus be seen as a generative model of $x _ { 1 }$ . Note that there is no requirement for $q ( x _ { 0 } )$ to be Gaussian. Conditioning on $x _ { 0 }$ allows us to generalize flow matching to arbitrary source distributions with intractable densities. In the case of FM from a Gaussian, while each conditional flow is the dynamic optimal transport flow from $\\mathcal { N } ( x _ { 0 } , \\sigma ^ { 2 } )$ to $\\mathcal { N } ( x _ { 1 } , \\sigma ^ { 2 } )$ , the marginal vector field $u _ { t } ( x )$ is not necessarily an OT flow. ",
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "Connection with related Rectified Flow and Stochastic interpolants methods. We note that I-CFM is closely related to the algorithms proposed by Albergo $\\&$ Vanden-Eijnden (2023); Liu (2022). In the case where the conditional probability path $p _ { t }$ is a Dirac $( i . e . , \\sigma = 0 )$ ), I-CFM is equivalent to (Liu, 2022). Furthermore, if we consider the Gaussian mean $\\begin{array} { r } { \\mu _ { t } = \\cos ( \\frac { 1 } { 2 } \\pi t ) x _ { 0 } + \\sin ( \\frac { 1 } { 2 } \\pi t ) x _ { 1 } } \\end{array}$ instead of the linear interpolation, I-CFM would be equivalent to the variance preserving stochastic interpolant in Albergo $\\&$ Vanden-Eijnden (2023), which has also been further generalized. ",
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "Connection to FM from the Gaussian. There exists a set of conditional probability paths conditioned on $x _ { 1 }$ and $x _ { 0 } \\sim \\mathcal { N } ( 0 , 1 )$ that have an equivalent probability flow to the marginal $p _ { t }$ of flow matching from the Gaussian (§3.2.1), which is only conditioned on $x _ { 1 }$ . These paths are defined by ",
        "page_idx": 6
    },
    {
        "type": "equation",
        "img_path": "images/ed6a002948dd1cb476d6f3e0c3af14d3b7132803b00b70d860930e3b9fa455dd.jpg",
        "text": "$$\np _ { t } ( x | z ) = \\mathcal { N } ( x \\mid t x _ { 1 } + ( 1 - t ) x _ { 0 } , ( \\sigma t ) ^ { 2 } + 2 \\sigma t ( 1 - t ) ) .\n$$",
        "text_format": "latex",
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "Proposition B.1 states an equivalence between I-CFM with these paths and the objective from §3.2.1. ",
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "3.2.3 Optimal transport CFM ",
        "text_level": 1,
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "In this section, we present our second main contribution. The formulation in the previous section can readily be generalized to distributions $q ( z ) = q ( x _ { 0 } , x _ { 1 } )$ in which $x _ { 0 }$ and $x _ { 1 }$ are not independent, as long as $q ( z )$ has marginals $q ( x _ { 0 } )$ and $q ( x _ { 1 } )$ . Therefore, we propose to set $q ( z )$ to be the 2-Wasserstein optimal transport map $\\pi$ achieving the infimum in (6), namely, ",
        "page_idx": 6
    },
    {
        "type": "equation",
        "img_path": "images/a161670994a9ce0b334b2c59b724bfabd4ec932f87553f8049949c3686cb7661.jpg",
        "text": "$$\nq ( z ) : = \\pi ( x _ { 0 } , x _ { 1 } ) .\n$$",
        "text_format": "latex",
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "In this case, $z$ is still a tuple of points, but instead of $x _ { 0 } , x _ { 1 }$ being sampled independently from their marginal distributions, they are sampled jointly according to the optimal transport map $\\pi$ . We call this method optimal transport CFM (OT-CFM). If one uses the $p _ { t } ( x | z )$ defined by (14) and $u _ { t } ( x | z )$ in (15), OT-CFM is equivalent to dynamic optimal transport in the following sense. ",
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "Proposition 3.4. The results of Proposition 3.3 also hold for $q ( z )$ in (17). Furthermore, assuming regularity properties of $q _ { 0 }$ , $q _ { 1 }$ , and the optimal transport plan $\\pi$ , as $\\sigma ^ { 2 } \\to 0$ the marginal path $p _ { t }$ and field $u _ { t }$ minimize (7), i.e., $u _ { t }$ solves the dynamic optimal transport problem between $q _ { 0 }$ and $q _ { 1 }$ . ",
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "We consider two cases: (1) when the data set is small enough and we know the static optimal transport plan (e.g. single cell data). (2) when the data is too large (or continuous) (e.g. image data) and the static OT plan is computationally infeasible to determine exactly. In the first case we are able to extend the transport map to unseen data similar to the task presented in Bunne et al. (2023). In the second case we show an approximation with minibatch OT improves over a random plan in terms of generative modelling performance and training time. ",
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "Minibatch OT approximation. For large datasets, the transport plan $\\pi$ can be difficult to compute and store due to OT’s cubic time and quadratic memory complexity in the number of samples (Cuturi, 2013; Tong et al., 2020). Therefore, we rely on a minibatch OT approximation similar to Fatras et al. (2021b). Although minibatch OT incurs an error relative to the exact OT solution, it has been successfully used in many applications like domain adaptation or generative modeling (Damodaran et al., 2018; Genevay et al., 2018). Specifically, for each batch of data $( \\{ x _ { 0 } ^ { ( i ) } \\} _ { i = 1 } ^ { B } , \\{ x _ { 1 } ^ { ( i ) } \\} _ { i = 1 } ^ { B } )$ seen during training, we sample pairs of points from the joint distribution $\\pi _ { \\mathrm { b a t c h } }$ given by the OT plan between the source and target points in the batch. (The OT batch size need not match the optimization batch size, but we keep them equal for simplicity.) Thus, we solve a minibatch approximation of dynamic optimal transport. However, when the OT batch size equals the support size of $\\left( q _ { 0 } , q _ { 1 } \\right)$ , we recover exact OT and therefore, by Proposition 3.4, learn the exact dynamic optimal transport. We show empirically that the batch size can be much smaller than the full dataset size and still give good performance, which aligns with prior studies (Fatras et al., 2020; 2021a). Concurrently, a similar framework and theoretical results appeared in Pooladian et al. (2023). ",
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "",
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "3.2.4 Schrödinger bridge CFM ",
        "text_level": 1,
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "Recently, there has been significant effort in learning diffusion models with general source distributions, formulated as a Schrödinger bridge problem (De Bortoli et al., 2021; Vargas et al., 2021; Chen et al., 2022) or bridge matching Peluchetti (2023); Liu et al. (2022b); Ye et al. (2022). Here we show that SB-CFM, an entropic variant of OT-CFM, can be used to train an ODE to match the probability flow of a Schrödinger bridge with a Brownian motion reference process. ",
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "Let $\\scriptstyle p _ { \\mathrm { r e f } }$ be the standard Wiener process scaled by $\\sigma$ with initial-time marginal $p _ { \\mathrm { r e f } } ( x _ { 0 } ) = q ( x _ { 0 } )$ . The Schrödinger bridge problem (Schrödinger, 1932) seeks the process $\\pi$ that is closest to $\\scriptstyle p _ { \\mathrm { r e f } }$ while having initial and terminal marginal distributions specified by the data distribution $q ( x _ { 0 } )$ and $q ( x _ { 1 } )$ : ",
        "page_idx": 7
    },
    {
        "type": "equation",
        "img_path": "images/6cb9758f417cc33791c87a51fe525e85eda7abbbfe014f48b3c7f015bba0d9ff.jpg",
        "text": "$$\n\\pi ^ { * } : = \\underset { \\pi ( x _ { 0 } ) = q ( x _ { 0 } ) , \\pi ( x _ { 1 } ) = q ( x _ { 1 } ) } { \\arg \\operatorname* { m i n } } \\ \\mathrm { K L } ( \\pi \\| p _ { \\mathrm { r e f } } ) .\n$$",
        "text_format": "latex",
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "We define the joint distribution ",
        "page_idx": 7
    },
    {
        "type": "equation",
        "img_path": "images/b604b5d908d43fa5899b1564481e8cd670d77e631cffa7cc78cc6266c8b6d918.jpg",
        "text": "$$\nq ( z ) : = \\pi _ { 2 \\sigma ^ { 2 } } ( x _ { 0 } , x _ { 1 } )\n$$",
        "text_format": "latex",
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "where $\\pi _ { 2 \\sigma ^ { 2 } }$ is the solution of the entropy-regularized optimal transport problem (Cuturi, 2013) with cost $\\| x _ { 0 } - x _ { 1 } \\|$ and entropy regularization $\\lambda = 2 \\sigma ^ { 2 }$ (see (33) for the background on entropic OT). We set the conditional path distribution to be a Brownian bridge with diffusion scale $\\sigma$ between $x _ { 0 }$ and $x _ { 1 }$ , with probability path and generating vector field ",
        "page_idx": 7
    },
    {
        "type": "equation",
        "img_path": "images/1b848168d9b7f320f4d27cce7c1b0e9e4bde4ff1eeac6194568c3633501f2705.jpg",
        "text": "$$\n\\begin{array} { l } { p _ { t } ( x \\mid z ) = \\mathcal { N } ( x \\mid t x _ { 1 } + ( 1 - t ) x _ { 0 } , t ( 1 - t ) \\sigma ^ { 2 } ) } \\\\ { u _ { t } ( x \\mid z ) = \\displaystyle \\frac { 1 - 2 t } { 2 t ( 1 - t ) } ( x - ( t x _ { 1 } + ( 1 - t ) x _ { 0 } ) ) + ( x _ { 1 } - x _ { 0 } ) , } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "where $u _ { t }$ is computed by (5) as the vector field generating the probability path $p _ { t } ( x | z )$ . The marginal coupling $\\pi _ { 2 \\sigma ^ { 2 } }$ and $u _ { t } ( x | z )$ define $u _ { t } ( x )$ , which is approximated by the regression objective in Alg. 4. The solution of the SB is known to be the map which is the solution of the entropically-regularized OT problem, motivating the next proposition. ",
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "Proposition 3.5. The marginal vector field $u _ { t } ( x )$ defined by (19) and (21) generates the same marginal probability path as the solution $\\pi ^ { * }$ to the $S B$ problem in (18). ",
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "While we define SB-CFM with an entropic regularization coefficient of $\\varepsilon = 2 \\sigma ^ { 2 }$ , the flow still matches the marginals for any choice of $\\varepsilon$ . Interestingly, we recover OT-CFM when $\\varepsilon  0$ and I-CFM when $\\varepsilon \\to \\infty$ . A similar result was proven in a concurrent work Pooladian et al. (2023). ",
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "4 Related work ",
        "text_level": 1,
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "Simulation-free continuous-time modeling. Simulation-free training is common in stochastic flow models where backpropagating through the simulation is numerically challenging and has high variance (Li et al., 2020). While these diffusion models have recently achieved exceptional generative performance on many tasks (Sohl-Dickstein et al., 2015; Song & Ermon, 2019; 2020; Ho et al., 2020; Song et al., 2021b; Dhariwal & Nichol, 2021; Watson et al., 2022b), their simulation requires an inherently costly SDE simulation with many follow-up works to improve inference efficiency (Lu et al., 2022; Salimans & Ho, 2022; Watson et al., 2022a; ",
        "page_idx": 7
    },
    {
        "type": "table",
        "img_path": "images/59ae1b8a396f7d49e4d88fc89f2f1498a6ec874ffb6963f4e2765c1073e3f351.jpg",
        "table_caption": [
            "Table 2: Comparison of neural optimal transport methods over four distribution pairs ( $\\mu \\pm \\sigma$ over five seeds) in terms of fit (2-Wasserstein), optimal transport performance (normalized path energy), and runtime. ‘— indicates a method that requires a Gaussian source. Best in bold. CFM and RF models are trained on a single CPU core, other baselines are trained with a GPU and two CPUs. "
        ],
        "table_footnote": [],
        "table_body": "<table><tr><td>Dataset→</td><td colspan=\"2\">N→8gaussians</td><td colspan=\"2\">moons-→8gaussians</td><td colspan=\"2\">N→moons</td><td colspan=\"2\">N-→scurve</td><td>Avg.train time</td></tr><tr><td>Algorithm ↓Metric→</td><td>w</td><td>NPE</td><td>W</td><td>NPE</td><td>w</td><td>NPE</td><td>W</td><td>NPE</td><td>(x10²s)</td></tr><tr><td>OT-CFM</td><td>1.262±0.348</td><td>0.018±0.014</td><td>1.923±0.391</td><td>0.053±0.035</td><td>0.239±0.048</td><td>0.087±0.061</td><td>0.264±0.093</td><td>0.027±0.026</td><td>1.129±0.335</td></tr><tr><td>I-CFM</td><td>1.284±0.384</td><td>0.222±0.032</td><td>1.977±0.266</td><td>2.738±0.181</td><td>0.338±0.109</td><td>0.841±0.148</td><td>0.333±0.060</td><td>0.867±0.117</td><td>0.630±0.365</td></tr><tr><td>2-RF (Liu, 2022)</td><td>1.436±0.344</td><td>0.069±0.027</td><td>2.211±0.423</td><td>0.149±0.101</td><td>0.278±0.026</td><td>0.076±0.067</td><td>0.395±0.111</td><td>0.112±0.085</td><td>0.862±0.166</td></tr><tr><td>3-RF (Liu, 2022)</td><td>1.337±0.367</td><td>0.055±0.043</td><td>2.700±0.587</td><td>0.123±0.112</td><td>0.305±0.026</td><td>0.084±0.051</td><td>0.395±0.082</td><td>0.129±0.075</td><td>0.954±0.116</td></tr><tr><td>FM (Lipman et al., 2023)</td><td>1.062±0.196</td><td>0.174±0.030</td><td></td><td></td><td>0.246±0.077</td><td>0.778±0.144</td><td>0.377±0.099</td><td>0.772±0.081</td><td>0.708±0.370</td></tr><tr><td>Reg.CNF (Finlay et al., 2020)</td><td>1.144±0.075</td><td>0.274±0.060</td><td></td><td></td><td>0.376±0.040</td><td>0.620±0.088</td><td>0.581±0.195</td><td>0.586±0.503</td><td>8.021±3.288</td></tr><tr><td>CNF (Chen et al., 2018)</td><td>1.055±0.059</td><td>0.151±0.064</td><td></td><td></td><td>0.387±0.065</td><td>2.937±1.973</td><td>0.645±0.343</td><td>10.548±8.100</td><td>18.810±12.677</td></tr><tr><td>ICNN (Makkuva et al., 2020)</td><td>1.771±0.398</td><td>0.747±0.029</td><td>2.193±0.136</td><td>0.832±0.004</td><td>0.532±0.046</td><td>0.267±0.010</td><td>0.753±0.068</td><td>0.344±0.045</td><td>2.912±0.626</td></tr></table>",
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "Song et al., 2021a; Bao et al., 2022). These methods generally consider a simple Gaussian diffusion process, and do not consider generalizing the source distribution. Other works consider general source distributions but this makes optimization and inference more challenging, needing multiple iterations or other tricks to perform well (Wang et al., 2021; De Bortoli et al., 2021; Vargas et al., 2021). ",
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "Prior work considering simulation-free training of CNFs considers algorithms that are equivalent to CFM with Gaussian source distribution (Rozen et al., 2021; Ben-Hamu et al., 2022; Lipman et al., 2023) or independent samples from $q _ { 0 }$ , $q _ { 1 }$ (Albergo & Vanden-Eijnden, 2023; Albergo et al., 2023; Neklyudov et al., 2023). Recent work also studies Schrödinger bridges from unpaired samples (Shi et al., 2022) and regularization of flows using dynamic OT (Liu et al., 2023b). We also note the work Pooladian et al. (2023), concurrent with the preprint version of this paper. Other concurrent works explore various solutions to approximate Schrödinger bridges (Somnath et al., 2023; Shi et al., 2023; Liu et al., 2023a). ",
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "Dynamic optimal transport. There are a variety of methods that consider dynamic OT between continuous distributions with neural networks; however, these require constrained architectures (Leygonie et al., 2019; Makkuva et al., 2020; Bunne et al., 2022) or use a regularized CNF, which is challenging to optimize (Tong et al., 2020; Finlay et al., 2020; Onken et al., 2021; Huguet et al., 2022a). With our work it is possible to achieve optimal transport flows without either of these constraints. ",
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "5 Experiments ",
        "text_level": 1,
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "In this section we empirically evaluate the I-CFM, OT-CFM, and SB-CFM objectives, as well as algorithms from prior work, with respect to both optimal transport and generative modeling criteria. All experiment details can be found in Appendix E. ",
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "5.1 Low-dimensional data: Optimal transport and faster convergence ",
        "text_level": 1,
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "We evaluate how well various models perform dynamic optimal transport and generative modeling in low dimensions. We train ODEs mapping between four pairs of two-dimensional datasets: between a standard Gaussian and 8gaussians, moons, and scurve and between moons and 8gaussians. ",
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "OT-CFM approximates dynamic OT. To measure how well a model solves the OT problem we use normalized path energy (NPE), defined via the 2-Wasserstein distance as $\\mathrm { N P E } ( v _ { \\theta } ) ~ = ~ | \\mathrm { P E } ( v _ { \\theta } ) ~ -$ $W _ { 2 } ^ { 2 } ( q _ { 0 } , q _ { 1 } ) \\vert / W _ { 2 } ^ { 2 } ( q _ { 0 } , q _ { 1 } )$ , where the path energy (PE) is $\\begin{array} { r } { \\mathrm { P E } ( v _ { \\theta } ) = \\mathbb { E } _ { x ( 0 ) \\sim q ( x _ { 0 } ) } \\int _ { 0 } ^ { 1 } \\| v _ { \\theta } ( t , x ( t ) ) \\| ^ { 2 } d t } \\end{array}$ . Table 2 summarizes our results showing that OT-CFM flows generalize better to the test set and are very close to the dynamic OT paths as measured by normalized path energy. We find transforming moons 8gaussians to be particularly challenging to learn for I-CFM as compared to OT-CFM; the learned paths are depicted in Fig. 1 (bottom). Although OT-CFM uses a minibatch OT map, we find that OT-CFM requires surprisingly small batches to approximate the OT map well, suggesting some generalization advantages of the network optimization (Fig. D.2). ",
        "page_idx": 8
    },
    {
        "type": "image",
        "img_path": "images/817d0bdb712f61197d4553da5ac9f114ed7ad99a7a36875aa40379dabcae2a64.jpg",
        "image_caption": [
            "Figure 2: Left: OT-CFM trains faster, in terms of validation set error, than CFM and FM models. Right: With different ODE integrators, OT-CFM reduces the error for a fixed number of function evaluations during inference. "
        ],
        "image_footnote": [],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Table 3: Schrödinger bridge flow comparison, showing average error over flow time to ground truth averaged over 5 models for SB-CFM and 5 dynamics from DSB (De Bortoli et al., 2021). ",
        "page_idx": 9
    },
    {
        "type": "table",
        "img_path": "images/5486ade4f62605355541a4fab528927b509ed7800f37eee864e71deea2bbff1f.jpg",
        "table_caption": [],
        "table_footnote": [],
        "table_body": "<table><tr><td>Dataset ↓Alg.→</td><td>SB-CFM</td><td>DSB</td></tr><tr><td>N-→8gaussians</td><td>0.454 ± 0.164</td><td>1.440 ± 0.720</td></tr><tr><td>moons-→8gaussians</td><td>1.377 ± 0.229</td><td>2.407 ± 1.025</td></tr><tr><td>N→moons</td><td>0.283 ± 0.048</td><td>0.333 ± 0.129</td></tr><tr><td>N-→scurve</td><td>0.297 ± 0.064</td><td>0.383 ± 0.134</td></tr></table>",
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "OT-CFM yields faster training. By conditioning on minibatch optimal transport flows, OT-CFM is substantially easier to train, which we posit is due to the variance reduction of the conditional flow. In Fig. 2 (left), we evaluate the performance over time of OT-CFM against CFM and FM objectives. For the same number of steps OT-CFM has better performance on the validation set. In Table D.1, we compare the training times for various Neural OT methods whose performance can be seen in Table 2. Simulation-free optimization is significantly faster to train with equal or superior performance. ",
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "OT-CFM yields faster inference. We next evaluate the quality of samples during inference time. In Fig. 2 (right), we compare the quality of samples for different number of function evaluations (NFEs) across different flow matching objectives. In this experiment we sample from the source distribution test set and simulate the ODE over time for different solvers. We find that OT-CFM consistently requires fewer evaluations to achieve the same quality and achieves better quality with the same NFEs. This is consistent with previous work, which found OT paths lead to faster, higher quality inference in regularized CNFs (Finlay et al., 2020; Onken et al., 2021) and flow matching vs. standard variance-preserving and variance-exploding probability paths (Lipman et al., 2023). ",
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "SB-CFM reproduces Schrödinger bridge flows. There are a number of methods which theoretically converge to a Schrödinger bridge between two datasets. In Table 3 we compare SB-CFM and the diffusion Schrödinger bridge (DSB) method introduced in De Bortoli et al. (2021) on the quality of the learnt Schrödinger bridges based on the average 2-Wasserstein distance to ground truth Schrödinger bridge samples over 18 time steps. Furthermore, SB-CFM is also significantly faster than DSB (Table D.1). ",
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "5.2 Application to single-cell interpolation ",
        "text_level": 1,
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "As a specific application, we consider the task of single-cell trajectory interpolation. In this task we use leave-one-out validation over the timepoints. From times data at times $[ 0 , t - 1 ] , [ t + 1 , T ]$ we try to interpolate its distribution at time $t$ following the setup of Schiebinger et al. (2019); Tong et al. (2020); Huguet et al. (2022a). Low error means we model individual cells well, which is useful in a number of downstream tasks such as gene regulatory network inference (Aliee et al., 2021; Yeo et al., 2021). Following Huguet et al. (2022b), we repurpose the CITE-seq and Multiome datasets from a recent NeurIPS competition for this task (Burkhardt et al., 2022). We also include the Embryoid body data from Moon et al. (2019); Tong et al. (2020). Table 4 shows the average earth mover’s distance (1-Wasserstein) on left–out timepoints for three datasets. On all three datasets OT-CFM outperforms other methods and baselines on average. ",
        "page_idx": 9
    },
    {
        "type": "table",
        "img_path": "images/faf942357d4a5fd2b46b0b76ef33d159cf8484fe0fa8d6a89125c48a079d4449.jpg",
        "table_caption": [],
        "table_footnote": [],
        "table_body": "<table><tr><td>Algorithm↓Dataset→</td><td>Cite</td><td>EB</td><td>Multi</td></tr><tr><td>TrajectoryNet (Tong et al., 2020)*</td><td></td><td>0.848±-</td><td></td></tr><tr><td>Reg.CNF (Finlay et al., 2020)*</td><td></td><td>0.825 ±-</td><td></td></tr><tr><td>DSB (De Bortoli et al., 2021)</td><td>0.953 ± 0.140</td><td>0.862 ± 0.023</td><td>1.079 ± 0.117</td></tr><tr><td>I-CFM</td><td>0.965 ± 0.111</td><td>0.872 ± 0.087</td><td>1.085 ± 0.099</td></tr><tr><td>SB-CFM</td><td>1.067 ± 0.107</td><td>1.221 ± 0.380</td><td>1.129 ± 0.363</td></tr><tr><td>OT-CFM</td><td>0.882 ± 0.058</td><td>0.790 ± 0.068</td><td>0.937 ± 0.054</td></tr></table>",
        "page_idx": 10
    },
    {
        "type": "image",
        "img_path": "images/1b93a6cf11ee01011406d3be79a25ca143af523b955f5993ef59d2c9177345f2.jpg",
        "image_caption": [
            "Table 4: Single-cell comparison over three datasets averaged over leaving out intermediate timepoints measuring EMD to left out distribution following Tong et al. (2020). $^ *$ Indicates values taken from aforementioned work. ",
            "Figure 3: Left: Fréchet inception distance (FID) scores on CIFAR-10 for different numbers of training steps using a dopri5 adaptive solver. Right: FID scores on CIFAR-10 using Euler integration for various numbers of function evaluations (NFE) per sample after $4 0 0 \\mathrm { k }$ training steps. In both cases, OT-CFM outperforms I-CFM and FM models, showing the benefits of minibatch optimal transport. "
        ],
        "image_footnote": [],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "5.3 High-dimensional data: Lower-cost training and inference ",
        "text_level": 1,
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "We perform an experiment on unconditional CIFAR-10 generation from a Gaussian source to examine how OT-CFM performs in the high-dimensional image setting. We use a similar setup to that of Lipman et al. (2023), including the time-dependent U-Net architecture from Nichol & Dhariwal (2021) that is commonly used in diffusion models. We were not able to reproduce the results reported from Lipman et al. (2023) with the parameters specified in the paper.3 Therefore, we selected different training hyperparameters. ",
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "The main differences with Lipman et al. (2023) are that we use a constant learning rate, set to $2 \\times 1 0 ^ { - 4 }$ , instead of a linearly decreasing one (from $5 \\times 1 0 ^ { - 4 }$ to $1 0 ^ { - 8 }$ ). To prevent training instabilities and variance, we clip the gradient norm to 1 and rely on exponential moving average with a decay of 0.9999. Regarding the architecture, we used the same as Lipman et al. (2023), but with a smaller number of channels (128 instead of 256), leading to much faster training, as well as $1 0 \\%$ dropout. Furthermore, our batch size was 128 instead of 256, which leads to a reduced memory cost. ",
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "We train our OT-CFM, as well as I-CFM and the original FM, with this new training procedure and report the Fréchet inception distance (FID) in Table 5. In Fig. 3 (left), we show the FID over training time with the Dormand-Prince fifth-order adaptive solver (Hairer et al., 1993, dopri5) using a relative and absolute error threshold of $1 0 ^ { - 5 }$ similarly to Lipman et al. (2023), and in Fig. 3 (right), we present the FID as a function of the numbers of function evaluations (NFE) using Euler integration. ",
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "We find that: ",
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Table 5: FID score and number of function evaluations (NFE) for different ODE solvers: fixedstep Euler integration with 100 and 1000 steps and adaptive integration (dopri5). The adaptive solver is significantly better than the Euler solver in fewer steps. First three results are from Lipman et al. (2023) and fourth from Albergo & Vanden-Eijnden (2023). The fifth line is our reproduced results following Lipman et al. (2023)’s training procedure. We have run OT-FM, S.I. and VP-FM following our training procedure and we have denoted them (ours). The two last rows report the results of our proposed methos I-CFM and OT-CFM. ",
        "page_idx": 11
    },
    {
        "type": "table",
        "img_path": "images/325620c997f772f93744bfdd2c2616c2815d838ccc7f8bd84c8dc55df6307eda.jpg",
        "table_caption": [],
        "table_footnote": [],
        "table_body": "<table><tr><td rowspan=\"2\">NFE / sample → Algorithm↓</td><td>100</td><td>1000</td><td colspan=\"2\">Adaptive</td></tr><tr><td>FID</td><td>FID</td><td>FID</td><td>NFE</td></tr><tr><td>DDPM</td><td></td><td></td><td>7.48</td><td>274</td></tr><tr><td>OT-FM (reported)</td><td></td><td></td><td>6.35</td><td>142</td></tr><tr><td>VP-FM (reported)</td><td></td><td></td><td>8.06</td><td>183</td></tr><tr><td>S.I. (reported)</td><td></td><td></td><td>10.27</td><td></td></tr><tr><td>OT-FM (reproduced)</td><td>13.742</td><td>12.491</td><td>11.527</td><td>139.83</td></tr><tr><td>VP-FM (ours)</td><td>7.772</td><td>4.048</td><td>4.335</td><td>525.92</td></tr><tr><td>OT-FM (ours)</td><td>4.640</td><td>3.822</td><td>3.655</td><td>143.00</td></tr><tr><td>S.I. (ours)</td><td>4.488</td><td>4.132</td><td>4.009</td><td>146.12</td></tr><tr><td>I-CFM (ours)</td><td>4.461</td><td>3.643</td><td>3.659</td><td>146.42</td></tr><tr><td>OT-CFM (ours)</td><td>4.443</td><td>3.741</td><td>3.577</td><td>133.94</td></tr></table>",
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "• With improved hyperparameters, we achieve a significantly better FID with the FM training objective than the one reported by Lipman et al. (2023) at a lower cost.   \n• For a short computation budget, OT-CFM outperforms FM and (non-OT) I-CFM (Table 5, left).   \nAfter a long training time, all methods achieve similar performance at a high number of function evaluations using fixed-step ODE integration, but OT-CFM performs significantly better with a small number of function evaluations (i.e., allows more efficient inference), indicating straighter, easily integrable flows (Table 5, right). FM and I-CFM are equivalently computationally efficient per iteration and OT-CFM comes with a low $( < 1 \\%$ ) computational overhead during training. ",
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Our new training procedures, available at https://github.com/atong01/conditional-flow-matching, allow us to outperform the previous reported results from Lipman et al. (2023), while the results with our OT-CFM are state-of-the-art for simulation-free neural ODE training algorithms. ",
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "5.4 OT-CFM for unsupervised translation ",
        "text_level": 1,
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "We show how CFM can be used to learn a mapping between two unpaired datasets in high-dimensional space using the CelebA dataset (Liu et al., 2015; Sun et al., 2014), which consists of $\\sim 2 0 0 \\mathrm { k }$ images of faces together with 40 binary attribute annotations. For each attribute, we wish to learn an invertible mapping between images with and without the attribute (e.g., ‘not smiling’ ‘smiling’). ",
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "To reduce dimensionality, we first train a VAE on the images and encode them as 128-dimensional latent vectors. For each attribute, we learn a flow to map between the embeddings of images without the attribute and those of images with the attribute. After the CNF is learned, we push forward a held-out set of negative vectors by the CNF and compare them to the held-out positive vectors and vice versa. As a metric of divergence, we use maximum mean discrepancy (MMD) with a broad Gaussian kernel $\\mathrm { ' e x p } ( - \\| x - y \\| ^ { 2 } / ( 2 \\cdot 1 2 8 ) ) \\rangle$ . The results aggregated over all attributes are shown in Table 6, showing that OT-CFM discovers a better mapping than other methods. Although MMD is lower for larger $\\sigma$ , we found that the alignment is less natural when $\\sigma$ is large, and performance begins to degrade when $\\sigma > 1$ . Fig. E.1 shows several visualizations of the learned trajectories. ",
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Finally, while here we work in a latent space, future work should consider learning flows directly in image space, where GAN-based approaches (Zhu et al., 2017) continue to dominate. ",
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "5.5 Additional experiments and extensions ",
        "text_level": 1,
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "We present numerous other extensions, applications, and evaluations of CFM in Appendix D, notably: ",
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Table 6: MMD (in units of $1 0 ^ { - 3 }$ ) between target and transformed source samples of CelebA latent vectors. Mean and standard deviation over 40 attributes and both translation directions ( $-  +$ ) for each attribute. ‘Identity’ refers to performing no translation and treating source samples as approximate samples from the target. ",
        "page_idx": 12
    },
    {
        "type": "table",
        "img_path": "images/e359d78a45b8c5e465faa584ccaae77b79bfa6ae6031bfd6e49e337246babf65.jpg",
        "table_caption": [],
        "table_footnote": [],
        "table_body": "<table><tr><td>Algorithm↓</td><td>g=0.1</td><td>σ=0.3</td><td>σ=1</td></tr><tr><td>Identity</td><td>9.17 ± 5.68</td><td>9.17± 5.68</td><td>9.17± 5.68</td></tr><tr><td>I-CFM</td><td>4.85 ± 5.09</td><td>3.44± 2.03</td><td>1.59 ± 0.83</td></tr><tr><td>OT-CFM</td><td>2.81± 2.62</td><td>1.91 ± 1.30</td><td>1.04 ± 0.60</td></tr></table>",
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "OT-CFM reduces variance in the regression target. To accompany the theoretical results in §C.1, in §D.1 we empirically study the variance of the stochastic regression objective in (OT-)CFM. The results suggest an explanation for the faster convergence of models trained with OT-CFM. ",
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "Energy-based CFM. In §C.2 and $\\mathrm { \\{ D . 2 } $ we show how CFM can be used to fit samplers for unnormalized density functions, where exact samples from $q ( x _ { 0 } )$ or $q ( x _ { 1 } )$ are not available. ",
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "Extension to stochastic dynamics. Tong et al. (2024) extends CFM to allow learning stochastic dynamics from unpaired source and target data. ",
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "6 Conclusion ",
        "text_level": 1,
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "We have introduced a novel class of simulation-free objectives for learning continuous-time flows with a general source distribution. Our approach to training continuous normalizing flows and conditional flow models does not require integration over time during training. We have shown that lifting the static optimal transport problem to the dynamic setting leads to simulation-free solutions to the dynamic OT and SB problems, while also allowing more efficient training and inference of flow models by lowering variance of the objective and straightening flows. One limitation of CFM is that it requires closed-form conditional flows, which hinders its application to situations where we want to regularize the marginal vector field $u _ { t } ( x )$ based on prior information (Tong et al., 2020). In addition, the minibatch approximation to OT can incur error in high dimensions; subsequent work can consider the use of neural-network approximations to OT maps (Korotin et al., 2023b;a) in conjunction with CFM. We expect future work to overcome these limitations and hope that ideas from conditional flow matching will improve high-dimensional generative models. ",
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "Contribution statement ",
        "text_level": 1,
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "A.T. initially conceived the idea. Y.Z., G.H., and N.M. led the development of the theory. High-dimensional experiments and open-source code were led by A.T. and K.F. Additional experiments were contributed by Y.Z., J.R., G.H., N.M., and A.T. All authors contributed to designing the experiments. N.M. and A.T. drove the writing of the paper, with contributions from all other authors. G.W. and Y.B. guided the project. ",
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "Acknowledgments ",
        "text_level": 1,
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "We would like to thank Stefano Massaroli for productive conversations as well as thank Xinyu Yuan, Marco Jiralerspong, Tara Akhound-Sadegh and Joey Bose for their helpful comments and feedback on the manuscript. We are also grateful to the anonymous reviewers for suggesting numerous improvements. This research was enabled in part by compute resources provided by Mila (mila.quebec) and NVIDIA Corporation. The authors acknowledge funding from CIFAR, Genentech, Samsung, and IBM. In addition, K.F. acknowledges funding from NSERC (RGPIN-2019-06512) and G.W. acknowledges funding from NSERC Discovery grant 03267 and NIH grant R01GM135929. ",
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "References ",
        "text_level": 1,
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "Michael S. Albergo and Eric Vanden-Eijnden. Building normalizing flows with stochastic interpolants. International Conference on Learning Representations (ICLR), 2023. ",
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "Michael S. Albergo, Nicholas M. Boffi, and Eric Vanden-Eijnden. Stochastic interpolants: A unifying framework for flows and diffusions. arXiv preprint 2303.08797, 2023.   \nHananeh Aliee, Fabian J. Theis, and Niki Kilbertus. Beyond predictions in neural ODEs: Identification and interventions. arXiv preprint 2106.12430, 2021.   \nLuigi Ambrosio and Nicola Gigli. A User’s Guide to Optimal Transport, pp. 1–155. Springer Berlin Heidelberg, Berlin, Heidelberg, 2013.   \nJacob Austin, Daniel D. Johnson, Jonathan Ho, Daniel Tarlow, and Rianne van den Berg. Structured denoising diffusion models in discrete state-spaces. Neural Information Processing Systems (NeurIPS), 2021.   \nFan Bao, Chongxuan Li, Jun Zhu, and Bo Zhang. Analytic-dpm: An analytic estimate of the optimal reverse variance in diffusion probabilistic models. International Conference on Learning Representations (ICLR), 2022.   \nHeli Ben-Hamu, Samuel Cohen, Joey Bose, Brandon Amos, Aditya Grover, Maximilian Nickel, Ricky T. Q. Chen, and Yaron Lipman. Matching normalizing flows and probability paths on manifolds. International Conference on Machine Learning (ICML), 2022.   \nJean-David Benamou and Yann Brenier. A computational fluid mechanics solution to the Monge-Kantorovich mass transfer problem. Numerische Mathematik, 84(3):375–393, 2000.   \nYann Brenier. Polar factorization and monotone rearrangement of vector-valued functions. Communications on Pure and Applied Mathematics, 44(4):375–417, 1991.   \nCharlotte Bunne, Laetitia Meng-Papaxanthos, Andreas Krause, and Marco Cuturi. Proximal optimal transport modeling of population dynamics. Artificial Intelligence and Statistics (AISTATS), 2022.   \nCharlotte Bunne, Stefan G. Stark, Gabriele Gut, Jacobo Sarabia del Castillo, Mitch Levesque, Kjong-Van Lehmann, Lucas Pelkmans, Andreas Krause, and Gunnar Rätsch. Learning single-cell perturbation responses using neural optimal transport. Nature Methods, 20(11):1759–1768, Nov 2023. ISSN 1548-7105. doi: 10.1038/s41592-023-01969-x. URL https://doi.org/10.1038/s41592-023-01969-x.   \nDaniel Burkhardt, Jonathan Bloom, Robrecht Cannoodt, Malte D Luecken, Smita Krishnaswamy, Christopher Lance, Angela O Pisco, and Fabian J Theis. Multimodal single-cell integration across time, individuals, and batches. In NeurIPS Competitions, 2022.   \nRicky T. Q. Chen, Yulia Rubanova, Jesse Bettencourt, and David Duvenaud. Neural ordinary differential equations. Neural Information Processing Systems (NeurIPS), 2018.   \nRicky T.Q. Chen and Yaron Lipman. Flow matching on general geometries. International Conference on Learning Representations (ICLR), 2024.   \nTianrong Chen, Guan-Horng Liu, and Evangelos A. Theodorou. Likelihood training of Schrödinger bridge using forward-backward SDEs theory. International Conference on Learning Representations (ICLR), 2022.   \nGabriele Corso, Hannes Stärk, Bowen Jing, Regina Barzilay, and Tommi Jaakkola. DiffDock: Diffusion steps, twists, and turns for molecular docking. International Conference on Learning Representations (ICLR), 2023.   \nMarco Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. Neural Information Processing Systems (NIPS), 2013.   \nBharath Bhushan Damodaran, Benjamin Kellenberger, Remi Flamary, Devis Tuia, and Nicolas Courty. DeepJDOT: Deep joint distribution optimal transport for unsupervised domain adaptation. European Conference on Computer Vision (ECCV), 2018. ",
        "page_idx": 13
    },
    {
        "type": "text",
        "text": "Valentin De Bortoli, James Thornton, Jeremy Heng, and Arnaud Doucet. Diffusion Schrödinger bridge with applications to score-based generative modeling. Neural Information Processing Systems (NeurIPS), 2021. ",
        "page_idx": 14
    },
    {
        "type": "text",
        "text": "Prafulla Dhariwal and Alex Nichol. Diffusion models beat GANs on image synthesis. Neural Information Processing Systems (NeurIPS), 2021. ",
        "page_idx": 14
    },
    {
        "type": "text",
        "text": "Kilian Fatras, Younes Zine, Rémi Flamary, Rémi Gribonval, and Nicolas Courty. Learning with minibatch Wasserstein: Asymptotic and gradient properties. Artificial Intelligence and Statistics (AISTATS), 2020.   \nKilian Fatras, Thibault Sejourne, Rémi Flamary, and Nicolas Courty. Unbalanced minibatch optimal transport; applications to domain adaptation. International Conference on Machine Learning (ICML), 2021a.   \nKilian Fatras, Younes Zine, Szymon Majewski, Rémi Flamary, Rémi Gribonval, and Nicolas Courty. Minibatch optimal transport distances; analysis and applications. arXiv preprint 2101.01792, 2021b.   \nChris Finlay, Jörn-Henrik Jacobsen, Levon Nurbekyan, and Adam M. Oberman. How to train your neural ode: The world of jacobian and kinetic regularization. International Conference on Machine Learning (ICML), 2020.   \nRemi Flamary, Nicolas Courty, Alexandre Gramfort, Mokhtar Z Alaya, Aurelie Boisbunon, Stanislas Chambon, Laetitia Chapel, Adrien Corenflos, Kilian Fatras, Nemo Fournier, Leo Gautheron, Nathalie T H Gayraud, Hicham Janati, Alain Rakotomamonjy, Ievgen Redko, Antoine Rolet, Antony Schutz, Vivien Seguy, Danica J Sutherland, Romain Tavenard, Alexander Tong, and Titouan Vayer. POT: Python Optimal Transport. Journal of Machine Learning Research (JMLR), 22, 2021.   \nAude Genevay, Gabriel Peyre, and Marco Cuturi. Learning generative models with Sinkhorn divergences. Artificial Intelligence and Statistics (AISTATS), 2018.   \nIan J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. Neural Information Processing Systems (NIPS), 2014.   \nWill Grathwohl, Ricky T. Q. Chen, Jesse Bettencourt, Ilya Sutskever, and David Duvenaud. Ffjord: Freeform continuous dynamics for scalable reversible generative models. International Conference on Learning Representations (ICLR), 2019.   \nErnst Hairer, Syvert P Nørsett, and Gerhard Wanner. Solving ordinary differential equations I. Nonstiff problems. Springer, 1993.   \nJonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Neural Information Processing Systems (NeurIPS), 2020.   \nMatthew D. Hoffman and Andrew Gelman. The No-U-turn sampler: adaptively setting path lengths in Hamiltonian Monte Carlo. Journal of Machine Learning Research (JMLR), 15:1593–1623, 2011.   \nGuillaume Huguet, D. S. Magruder, Alexander Tong, Oluwadamilola Fasina, Manik Kuchroo, Guy Wolf, and Smita Krishnaswamy. Manifold interpolating optimal-transport flows for trajectory inference. Neural Information Processing Systems (NeurIPS), 2022a.   \nGuillaume Huguet, Alexander Tong, María Ramos Zapatero, Guy Wolf, and Smita Krishnaswamy. Geodesic Sinkhorn: Optimal transport for high-dimensional datasets. arXiv preprint 2211.00805, 2022b.   \nDiederik P. Kingma and Max Welling. Auto-encoding variational bayes. International Conference on Learning Representations (ICLR), 2014.   \nGünter Klambauer, Thomas Unterthiner, Andreas Mayr, and Sepp Hochreiter. Self-normalizing neural networks. Neural Information Processing Systems (NIPS), 2017.   \nAlexander Korotin, Lingxiao Li, Aude Genevay, Justin M Solomon, Alexander Filippov, and Evgeny Burnaev. Do neural optimal transport solvers work? a continuous wasserstein-2 benchmark. Neural Information Processing Systems (NeurIPS), 2021.   \nAlexander Korotin, Daniil Selikhanovych, and Evgeny Burnaev. Kenrnel neural optimal transport. International Conference on Learning Representations (ICLR), 2023a.   \nAlexander Korotin, Daniil Selikhanovych, and Evgeny Burnaev. Neural optimal transport. International Conference on Learning Representations (ICLR), 2023b.   \nErich L Lehmann and George Casella. Theory of point estimation. Springer Science & Business Media, 2006.   \nChristian Léonard. Some properties of path measures. In Catherine Donati-Martin, Antoine Lejay, and Alain Rouault (eds.), Séminaire de Probabilités XLVI, pp. 207–230. Springer, 2014a.   \nChristian Léonard. A survey of the Schrödinger problem and some of its connections with optimal transport. Discrete and Continuous Dynamical Systems, 34(4):1533–1574, 2014b.   \nJacob Leygonie, Jennifer She, Amjad Almahairi, Sai Rajeswar, and Aaron Courville. Adversarial computation of optimal transport maps. arXiv preprint 1906.09691, 2019.   \nXuechen Li, Ting-Kam Leonard Wong, Ricky T. Q. Chen, and David Duvenaud. Scalable gradients for stochastic differential equations. Artificial Intelligence and Statistics (AISTATS), 2020.   \nYaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. International Conference on Learning Representations (ICLR), 2023.   \nGuan-Horng Liu, Tianrong Chen, Oswin So, and Evangelos A Theodorou. Deep generalized Schrödinger bridge. Neural Information Processing Systems (NeurIPS), 2022a.   \nGuan-Horng Liu, Arash Vahdat, De-An Huang, Evangelos A. Theodorou, Weili Nie, and Anima Anandkumar. I2sb: Image-to-image schrödinger bridge. International Conference on Machine Learning (ICML), 2023a.   \nQiang Liu. Rectified flow: A marginal preserving approach to optimal transport. arXiv preprint 2209.14577, 2022.   \nXingchao Liu, Lemeng Wu, Mao Ye, and Qiang Liu. Let us build bridges: Understanding and extending diffusion generative models, 2022b.   \nXingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. International Conference on Learning Representations (ICLR), 2023b.   \nZiwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. International Conference on Computer Vision (ICCV), 2015.   \nIlya Loshchilov and Frank Hutter. Decoupled weight decay regularization. International Conference on Learning Representations (ICLR), 2019.   \nCheng Lu, Yuhao Zhou, Fan Bao, Jianfei Chen, Chongxuan Li, and Jun Zhu. Dpm-solver: A fast ode solver for diffusion probabilistic model sampling in around 10 steps. Neural Information Processing Systems (NeurIPS), 2022.   \nAshok Vardhan Makkuva, Amirhossein Taghvaei, Sewoong Oh, and Jason D. Lee. Optimal transport mapping via input convex neural networks. International Conference on Machine Learning (ICML), 2020.   \nAnton Mallasto, Augusto Gerolin, and Minh Ha Quang. Entropy-regularized 2-Wasserstein distance between Gaussian measures. Information Geometry, 5, 07 2022.   \nKevin R. Moon, David van Dijk, Zheng Wang, Scott Gigante, Daniel B. Burkhardt, William S. Chen, Kristina Yim, Antonia van den Elzen, Matthew J. Hirn, Ronald R. Coifman, Natalia B. Ivanova, Guy Wolf, and Smita Krishnaswamy. Visualizing structure and transitions in high-dimensional biological data. Nature Biotechnology, 37(12):1482–1492, 2019.   \nKirill Neklyudov, Daniel Severo, and Alireza Makhzani. Action matching: Learning stochastic dynamics from samples. International Conference on Machine Learning (ICML), 2023. ",
        "page_idx": 14
    },
    {
        "type": "text",
        "text": "",
        "page_idx": 15
    },
    {
        "type": "text",
        "text": "Alex Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic models. International Conference on Machine Learning (ICML), 2021. ",
        "page_idx": 16
    },
    {
        "type": "text",
        "text": "Derek Onken, Samy Wu Fung, Xingjian Li, and Lars Ruthotto. OT-Flow: Fast and accurate continuous normalizing flows via optimal transport. Association for the Advancement of Artificial Intelligence (AAAI), 2021.   \nAdam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. PyTorch: An imperative style, high-performance deep learning library. Neural Information Processing Systems (NeurIPS), 2019.   \nStefano Peluchetti. Non-denoising forward-time diffusions. arXiv preprint arXiv:2312.14589, 2023.   \nGabriel Peyré and Marco Cuturi. Computational optimal transport. Foundations and Trends in Machine Learning, 11(5-6):355–607, 2019.   \nAram-Alexandre Pooladian, Heli Ben-Hamu, Carles Domingo-Enrich, Brandon Amos, Yaron Lipman, and Ricky T.Q. Chen. Multisample flow matching: Straightening flows with minibatch couplings. International Conference on Learning Representations (ICLR), 2023.   \nDanilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. International Conference on Machine Learning (ICML), 2015.   \nNoam Rozen, Aditya Grover, Maximilian Nickel, and Yaron Lipman. Moser flow: Divergence-based generative modeling on manifolds. Neural Information Processing Systems (NeurIPS), 2021.   \nTim Salimans and Jonathan Ho. Progressive distillation for fast sampling of diffusion models. International Conference on Learning Representations (ICLR), 2022.   \nGeoffrey Schiebinger, Jian Shu, Marcin Tabaka, Brian Cleary, Vidya Subramanian, Aryeh Solomon, Joshua Gould, Siyan Liu, Stacie Lin, Peter Berube, Lia Lee, Jenny Chen, Justin Brumbaugh, Philippe Rigollet, Konrad Hochedlinger, Rudolf Jaenisch, Aviv Regev, and Eric S. Lander. Optimal-transport analysis of single-cell gene expression identifies developmental trajectories in reprogramming. Cell, 176(4):928–943.e22, 2019.   \nErwin Schrödinger. Sur la théorie relativiste de l’électron et l’interprétation de la mécanique quantique. Annales de l’Institut Henri Poincaré, 2(4):269–310, 1932.   \nYuyang Shi, Valentin De Bortoli, George Deligiannidis, and Arnaud Doucet. Conditional simulation using diffusion Schrödinger bridges. Uncertainty in Artificial Intelligence (UAI), 2022.   \nYuyang Shi, Valentin De Bortoli, Andrew Campbell, and Arnaud Doucet. Diffusion schrödinger bridge matching. Neural Information Processing Systems (NeurIPS), 2023.   \nJascha Sohl-Dickstein, Eric A. Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. International Conference on Machine Learning (ICML), 2015.   \nVignesh Ram Somnath, Matteo Pariset, Ya-Ping Hsieh, Maria Rodriguez Martinez, Andreas Krause, and Charlotte Bunne. Aligned diffusion schrödinger bridges. Uncertainty in Artificial Intelligence (UAI), 2023.   \nJiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. International Conference on Learning Representations (ICLR), 2021a.   \nYang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. Neural Information Processing Systems (NeurIPS), 2019.   \nYang Song and Stefano Ermon. Improved techniques for training score-based generative models. Neural Information Processing Systems (NeurIPS), 2020.   \nYang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. International Conference on Learning Representations (ICLR), 2021b.   \nYi Sun, Xiaogang Wang, and Xiaoou Tang. Deep learning face representation by joint identification-verification. Neural Information Processing Systems (NIPS), 2014.   \nAlexander Tong, Jessie Huang, Guy Wolf, David van Dijk, and Smita Krishnaswamy. TrajectoryNet: A dynamic optimal transport network for modeling cellular dynamics. International Conference on Machine Learning (ICML), 2020.   \nAlexander Tong, Nikolay Malkin, Kilian Fatras, Lazar Atanackovic, Yanlei Zhang, Guillaume Huguet, Guy Wolf, and Yoshua Bengio. Simulation-free schrödinger bridges via score and flow matching. Artificial Intelligence and Statistics (AISTATS), 2024.   \nFrancisco Vargas, Pierre Thodoroff, Neil D. Lawrence, and Austen Lamacraft. Solving Schrödinger bridges via maximum likelihood. Entropy, 23(9), 2021.   \nCédric Villani. Optimal transport, volume 338 of Grundlehren der mathematischen Wissenschaften [Fundamental Principles of Mathematical Sciences]. Springer-Verlag, Berlin, 2009.   \nGefei Wang, Yuling Jiao, Qian Xu, Yang Wang, and Can Yang. Deep generative learning via Schrödinger bridge. International Conference on Machine Learning (ICML), 2021.   \nDaniel Watson, William Chan, Jonathan Ho, and Mohammad Norouzi. Learning fast samplers for diffusion models by differentiating through sample quality. International Conference on Learning Representations (ICLR), 2022a.   \nJoseph L. Watson, David Juergens, Nathaniel R. Bennett, Brian L. Trippe, Jason Yim, Helen E. Eisenach, Woody Ahern, Andrew J. Borst, Robert J. Ragotte, Lukas F. Milles, Basile I. M. Wicky, Nikita Hanikel, Samuel J. Pellock, Alexis Courbet, William Sheffler, Jue Wang, Preetham Venkatesh, Isaac Sappington, Susana Vázquez Torres, Anna Lauko, Valentin De Bortoli, Emile Mathieu, Regina Barzilay, Tommi S. Jaakkola, Frank DiMaio, Minkyung Baek, and David Baker. Broadly applicable and accurate protein design by integrating structure prediction networks and diffusion generative models. bioRxiv preprint 2022.12.09.519842, 2022b.   \nMao Ye, Lemeng Wu, and Qiang Liu. First hitting diffusion models for generating manifold, graph and categorical data. Neural Information Processing Systems (NeurIPS), 2022.   \nGrace Hui Ting Yeo, Sachit D. Saksena, and David K. Gifford. Generative modeling of single-cell time series with PRESCIENT enables prediction of cell trajectories with interventions. Nature Communications, 12 (1):3222, 2021.   \nQinsheng Zhang and Yongxin Chen. Path integral sampler: a stochastic control approach for sampling. International Conference on Learning Representations (ICLR), 2022.   \nJun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. International Conference on Computer Vision (ICCV), 2017. ",
        "page_idx": 16
    },
    {
        "type": "text",
        "text": "",
        "page_idx": 17
    },
    {
        "type": "text",
        "text": "A Proofs of theorems ",
        "text_level": 1,
        "page_idx": 17
    },
    {
        "type": "text",
        "text": "Theorem 3.1. The marginal vector field (9) generates the probability path (8) from initial conditions $p _ { 0 } ( x )$ . ",
        "page_idx": 17
    },
    {
        "type": "text",
        "text": "Proof of Theorem 3.1. To verify this, we first check that $p _ { t }$ and $u _ { t }$ satisfy the continuity equation. ",
        "page_idx": 17
    },
    {
        "type": "text",
        "text": "We start with the derivative w.r.t. time of (8) ",
        "page_idx": 17
    },
    {
        "type": "equation",
        "img_path": "images/9dae90ae30766d1aab982b503c566a1916f588585a4543a1699abf1292592e66.jpg",
        "text": "$$\n\\frac { d } { d t } p _ { t } ( x ) = \\frac { d } { d t } \\int p _ { t } ( x | z ) q ( z ) d z\n$$",
        "text_format": "latex",
        "page_idx": 17
    },
    {
        "type": "text",
        "text": "by Leibniz Rule, ",
        "page_idx": 18
    },
    {
        "type": "text",
        "text": "since $\\boldsymbol { u } _ { t } ( \\cdot | \\boldsymbol { z } )$ generates $p _ { t } ( \\cdot | z )$ , ",
        "page_idx": 18
    },
    {
        "type": "text",
        "text": "exchanging the derivative and integral, ",
        "page_idx": 18
    },
    {
        "type": "text",
        "text": "Using (9), ",
        "page_idx": 18
    },
    {
        "type": "text",
        "text": "satisfying the continuity equation $\\begin{array} { r } { \\frac { d } { d t } p _ { t } ( x ) + \\mathrm { d i v } \\left( u _ { t } ( x ) p _ { t } ( x ) \\right) = 0 . } \\end{array}$ ",
        "page_idx": 18
    },
    {
        "type": "text",
        "text": "Theorem 3.2. If $p _ { t } ( x ) > 0$ for al l $x \\in \\mathbb { R } ^ { d }$ and $t \\in [ 0 , 1 ]$ , then, up to a constant independent of $\\theta$ , ${ \\mathcal { L } } _ { \\mathrm { C F M } }$ and $\\mathcal { L } _ { \\mathrm { F M } }$ are equal, and hence ",
        "page_idx": 18
    },
    {
        "type": "equation",
        "img_path": "images/9c0965549b125db4cca422e6d9c9ef97f09beea264dbd1f6edfe8fe6da3e5eb7.jpg",
        "text": "$$\n\\nabla _ { \\boldsymbol { \\theta } } \\mathcal { L } _ { \\mathrm { F M } } ( \\boldsymbol { \\theta } ) = \\nabla _ { \\boldsymbol { \\theta } } \\mathcal { L } _ { \\mathrm { C F M } } ( \\boldsymbol { \\theta } ) .\n$$",
        "text_format": "latex",
        "page_idx": 18
    },
    {
        "type": "text",
        "text": "Proof of Theorem 3.2. For this proof we need (8), (9) and the existence and exchange of many integrals. As in Lipman et al. (2023) we assume that $q$ , $p _ { t } ( x | z )$ are decreasing to zero at sufficient speed as $\\| x \\| \\to \\infty$ and that $u _ { t } , v _ { t } , \\nabla _ { \\theta } v _ { t }$ are bounded. ",
        "page_idx": 18
    },
    {
        "type": "equation",
        "img_path": "images/522fac0ef10a5e21590e12da08de63d472502cea0673462b40d546d5d8a45a62.jpg",
        "text": "$$\n\\begin{array} { r l } & { \\qquad \\nabla _ { \\theta } \\mathbb { E } _ { p _ { t } ( x ) } \\| v _ { \\theta } ( t , x ) - u _ { t } ( x ) \\| ^ { 2 } = \\nabla _ { \\theta } \\mathbb { E } _ { p _ { t } ( x ) } \\left( \\| v _ { \\theta } ( t , x ) \\| ^ { 2 } - 2 \\left. v _ { \\theta } ( t , x ) , u _ { t } ( x ) \\right. + \\| u _ { t } ( x ) \\| ^ { 2 } \\right) } \\\\ & { \\qquad = \\nabla _ { \\theta } \\mathbb { E } _ { p _ { t } ( x ) } \\left( \\| v _ { \\theta } ( t , x ) \\| ^ { 2 } - 2 \\left. v _ { \\theta } ( t , x ) , u _ { t } ( x ) \\right. \\right) } \\\\ & { \\nabla _ { \\theta } \\mathbb { E } _ { q ( z ) , p _ { t } ( x | z ) } \\| v _ { \\theta } ( t , x ) - u _ { t } ( x | z ) \\| ^ { 2 } = } \\\\ & { \\qquad \\nabla _ { \\theta } \\mathbb { E } _ { q ( z ) , p _ { t } ( x | z ) } \\left( \\| v _ { \\theta } ( t , x ) \\| ^ { 2 } - 2 \\left. v _ { \\theta } ( t , x ) , u _ { t } ( x | z ) \\right. + \\| u _ { t } ( x | z ) \\| ^ { 2 } \\right) } \\\\ & { \\qquad = \\mathbb { E } _ { q ( z ) , p _ { t } ( x | z ) } \\nabla _ { \\theta } \\left( \\| v _ { \\theta } ( t , x ) \\| ^ { 2 } - 2 \\left. v _ { \\theta } ( t , x ) , u _ { t } ( x | z ) \\right. \\right) } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 18
    },
    {
        "type": "text",
        "text": "By bilinearity of the 2-norm and since $u _ { t }$ is independent of $\\theta$ . Next, ",
        "page_idx": 18
    },
    {
        "type": "equation",
        "img_path": "images/cd0debe4af74a248c3c8bb823a65a747ce997c70630fa593e8be1f5c4c5e2d8f.jpg",
        "text": "$$\n\\begin{array} { l } { \\displaystyle \\mathbb { E } _ { p _ { t } ( x ) } \\| v _ { \\theta } ( t , x ) \\| ^ { 2 } = \\int \\| v _ { \\theta } ( t , x ) \\| ^ { 2 } p _ { t } ( x ) d x } \\\\ { \\displaystyle \\qquad = \\int \\int \\| v _ { \\theta } ( t , x ) \\| ^ { 2 } p _ { t } ( x | z ) q ( z ) d z d x } \\\\ { \\displaystyle \\qquad = \\mathbb { E } _ { q ( z ) , p _ { t } ( x | z ) } \\| v _ { \\theta } ( t , x ) \\| ^ { 2 } } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 18
    },
    {
        "type": "text",
        "text": "Finally, ",
        "page_idx": 18
    },
    {
        "type": "equation",
        "img_path": "images/eafe0d6ff95ca0977c8d67eb1a52ffc94c6ec56093eb4fe1e8680b2c9bbb4f05.jpg",
        "text": "$$\n\\begin{array} { r l } & { \\mathbb { E } _ { p _ { t } ( x ) } \\left. v _ { \\theta } ( t , x ) , u _ { t } ( x ) \\right. = \\displaystyle \\int \\left. v _ { \\theta } ( t , x ) , \\frac { \\int u _ { t } ( x | z ) p _ { t } ( x | z ) q ( z ) d z } { p _ { t } ( x ) } \\right. p _ { t } ( x ) d x } \\\\ & { \\quad \\quad \\quad \\quad \\quad = \\displaystyle \\int \\left. v _ { \\theta } ( t , x ) , \\int u _ { t } ( x | z ) p _ { t } ( x | z ) q ( z ) d z \\right. d x } \\\\ & { \\quad \\quad \\quad \\quad = \\displaystyle \\iint \\left. v _ { \\theta } ( t , x ) , u _ { t } ( x | z ) \\right. p _ { t } ( x | z ) q ( z ) d z d x } \\\\ & { \\quad \\quad \\quad = \\mathbb { E } _ { q ( z ) , p _ { t } ( x | z ) } \\left. v _ { \\theta } ( t , x ) , u _ { t } ( x | z ) \\right. } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 18
    },
    {
        "type": "text",
        "text": "Where we first substitute (9) then change the order of integration for the final equality. Since at all times the gradients of $\\mathcal { L } _ { \\mathrm { F M } }$ and ${ \\mathcal { L } } _ { \\mathrm { C F M } }$ are equal, $\\nabla _ { \\boldsymbol { \\theta } } \\mathcal { L } _ { \\mathrm { F M } } ( \\boldsymbol { \\theta } ) = \\nabla _ { \\boldsymbol { \\theta } } \\mathcal { L } _ { \\mathrm { C F M } } ( \\boldsymbol { \\theta } )$ □ ",
        "page_idx": 18
    },
    {
        "type": "text",
        "text": "Proposition 3.3. The marginal $p _ { t }$ corresponding to $q ( z ) = q ( x _ { 0 } ) q ( x _ { 1 } )$ and the $p _ { t } ( x | z ) , u _ { t } ( x | z )$ in (14) and (15) has boundary conditions $p _ { 1 } = q _ { 1 } * \\mathcal { N } ( x \\mid 0 , \\sigma ^ { 2 } )$ and $p _ { 0 } = q _ { 0 } * \\mathcal { N } ( x \\mid 0 , \\sigma ^ { 2 } )$ , where $^ *$ denotes the convolution operator. ",
        "page_idx": 18
    },
    {
        "type": "text",
        "text": "Proof of Proposition 3.3. We start with (8) to show the result of the lemma. We note that $q ( z ) = q ( ( x _ { 0 } , x _ { 1 } ) ) =$ $q ( x _ { 0 } ) q ( x _ { 1 } )$ ",
        "page_idx": 19
    },
    {
        "type": "equation",
        "img_path": "images/2921a602cfc356120f8cabeb3b6ed53837df6390d740b4356561a634357072a2.jpg",
        "text": "$$\n\\begin{array} { l } { p _ { t } ( x ) = \\displaystyle \\int p _ { t } ( x | z ) q ( z ) d z } \\\\ { \\displaystyle = \\int N ( x | t x _ { 1 } + ( 1 - t ) x _ { 0 } , \\sigma ^ { 2 } ) q ( ( x _ { 0 } , x _ { 1 } ) ) d ( x _ { 0 } , x _ { 1 } ) } \\\\ { \\displaystyle = \\iint \\mathcal { N } ( x | t x _ { 1 } + ( 1 - t ) x _ { 0 } , \\sigma ^ { 2 } ) q ( x _ { 0 } ) q ( x _ { 1 } ) d x _ { 0 } d x _ { 1 } } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 19
    },
    {
        "type": "text",
        "text": "evaluated at $i = 0 , 1$ respectively. Therefore, at $t = 0$ , ",
        "page_idx": 19
    },
    {
        "type": "equation",
        "img_path": "images/5ec06312604b630ae75f79fc8d20f93b699e655ab765bdf98880cbb9eb0c3954.jpg",
        "text": "$$\n\\begin{array} { l } { p _ { 0 } ( x ) = \\displaystyle \\iint \\mathcal { N } ( x | x _ { 0 } , \\sigma ^ { 2 } ) q ( x _ { 0 } ) q ( x _ { 1 } ) d x _ { 0 } d x _ { 1 } } \\\\ { \\displaystyle \\qquad = \\int \\mathcal { N } ( x | x _ { 0 } , \\sigma ^ { 2 } ) q ( x _ { 0 } ) d x _ { 0 } } \\\\ { \\displaystyle = q ( x _ { 0 } ) * \\mathcal { N } ( x | 0 , \\sigma ^ { 2 } ) . } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 19
    },
    {
        "type": "text",
        "text": "This is also true for $t = 1$ . ",
        "page_idx": 19
    },
    {
        "type": "text",
        "text": "Proposition 3.4. The results of Proposition 3.3 also hold for $q ( z )$ in (17). Furthermore, assuming regularity properties of $q _ { 0 }$ , $q _ { 1 }$ , and the optimal transport plan $\\pi$ , as $\\sigma ^ { 2 } \\to 0$ the marginal path $p _ { t }$ and field $u _ { t }$ minimize (7), i.e., $u _ { t }$ solves the dynamic optimal transport problem between $q _ { 0 }$ and $q _ { 1 }$ . ",
        "page_idx": 19
    },
    {
        "type": "text",
        "text": "Proof of Proposition 3.4. We will assume certain regularity conditions on $q _ { 0 }$ , $q _ { 1 }$ , and $\\pi$ to allow reduction to known results. We leave it to future work to determine which of these conditions are necessary and which are redundant with other conditions. However, because we are concerned with approximation of $u _ { t } ( x )$ with neural networks, which are typically smooth, results that relax the regularity assumptions may be vacuous in practice. ",
        "page_idx": 19
    },
    {
        "type": "text",
        "text": "Preliminaries. We assume that $q _ { 0 }$ and $q _ { 1 }$ are compactly supported and admit bounded densities with respect to the Lebesgue measure. Then the conditions for Brenier’s theorem (Brenier, 1991) are satisfied. By Brenier’s theorem, the optimal joint $\\pi$ is unique and is supported on the graph $( x , T ( x ) )$ of a Monge map $T : \\mathbb { R } ^ { d }  \\mathbb { R } ^ { d }$ , and $p _ { t } ( x )$ is equal to McCann’s interpolation (Peyré & Cuturi, 2019, Chapter 7) ",
        "page_idx": 19
    },
    {
        "type": "equation",
        "img_path": "images/2f68f1dda8545ee5860e1a0e0a143e044e713622fc68f4792707ae088291ea2f.jpg",
        "text": "$$\np _ { t } = ( ( 1 - t ) \\mathrm { I d } + t T ) _ { \\# } p _ { 0 } .\n$$",
        "text_format": "latex",
        "page_idx": 19
    },
    {
        "type": "text",
        "text": "In addition, we know that $T ( x )$ can be parameterized as the gradient of a convex function, i.e., $T ( x ) = \\nabla \\psi ( x )$ . This characterization of $T$ implies that the conditional probability paths, given by $\\phi _ { t } ( x ) = x + t ( T ( x ) - x )$ , do not cross, i.e., $p _ { t } ( x | x _ { 0 } , T ( x _ { 0 } ) ) = p _ { t } ( x )$ for all $( t , x )$ .4 It is known that the probability path $p _ { t } = [ \\phi _ { t } ] _ { \\# } p _ { 0 }$ and its associated vector field, given by $u _ { t } ( \\phi _ { t } ( x ) ) = T ( x ) - x$ , solve the optimal transport problem (Benamou & Brenier, 2000, Proposition 1.1). ",
        "page_idx": 19
    },
    {
        "type": "text",
        "text": "We assume that the induced marginals $p _ { t }$ have bounded densities with respect to Lebesgue measure and that $T$ is almost everywhere continuous in $x$ , which implies the same for $\\phi _ { t }$ . Injectivity of $\\phi _ { t }$ and noncrossing of paths implies $\\boldsymbol u _ { t } ( \\phi _ { t } ( \\boldsymbol x ) )$ is almost everywhere continuous in $\\phi _ { t } ( x )$ . ",
        "page_idx": 19
    },
    {
        "type": "text",
        "text": "Formal statement of the result. Denote by $p _ { t } ^ { \\sigma } ( x )$ , $p _ { t } ^ { \\sigma } ( x | z )$ the densities in Proposition 3.3, and by $p _ { t } ^ { \\sigma } ( x )$ . We will show that for $p _ { t }$ -almost every $x$ and almost every $t$ , ",
        "page_idx": 19
    },
    {
        "type": "equation",
        "img_path": "images/e9ae1b9351803747d93eb8df5c16f6380352c5ea027ed22fda4f6ff51ed16c4c.jpg",
        "text": "$$\nu _ { t } ( x ) = \\operatorname* { l i m } _ { \\sigma  0 } u _ { t } ( x ) = \\operatorname* { l i m } _ { \\sigma  0 } \\frac { \\mathbb { E } _ { z \\sim q ( z ) } p _ { t } ^ { \\sigma } ( x | z ) u _ { t } ( x | z ) } { p _ { t } ^ { \\sigma } ( x ) } .\n$$",
        "text_format": "latex",
        "page_idx": 19
    },
    {
        "type": "text",
        "text": "Proof. It suffices to show the equality for $x$ in the support of $p _ { t }$ , or in the image of the support of $q _ { 0 }$ under $\\phi _ { t }$ . We identify $z$ in the expectation with a pair $( x _ { 0 } , T ( x _ { 0 } ) )$ due to $q ( x _ { 0 } , x _ { 1 } ) = \\pi ( x _ { 0 } , x _ { 1 } )$ having support on the graph of the Monge map. Noting that ",
        "page_idx": 20
    },
    {
        "type": "equation",
        "img_path": "images/0021616da43d2f3fb56af62b581bd4c6079c31ea7c8cb11ee2ef6274e91e9717.jpg",
        "text": "$$\nu _ { t } \\Big ( x | \\big ( x _ { 0 } , T ( x _ { 0 } ) \\big ) \\Big ) = u _ { 0 } ( x _ { 0 } ) = T ( x _ { 0 } ) - x _ { 0 } \\quad \\forall x ,\n$$",
        "text_format": "latex",
        "page_idx": 20
    },
    {
        "type": "text",
        "text": "we see that (23) is equivalent to ",
        "page_idx": 20
    },
    {
        "type": "equation",
        "img_path": "images/d5006f9b4642faf6320ebdf94b5127eefa2700469f4ac1b9880560c7567afd55.jpg",
        "text": "$$\nu _ { 0 } \\big ( \\phi _ { t } ^ { - 1 } ( x ) \\big ) = \\operatorname* { l i m } _ { \\sigma  0 } \\frac { \\mathbb { E } _ { q ( x _ { 0 } ) } p _ { t } ^ { \\sigma } \\Big ( x | \\big ( x _ { 0 } , T ( x _ { 0 } ) \\big ) \\Big ) u _ { 0 } ( x _ { 0 } ) } { p _ { t } ^ { \\sigma } ( x ) } .\n$$",
        "text_format": "latex",
        "page_idx": 20
    },
    {
        "type": "text",
        "text": "By the same argument as in the proof of Proposition 3.3, we have that $p _ { t } ^ { \\sigma } = p _ { t } * \\mathcal { N } ( 0 , \\sigma ^ { 2 } )$ , by integration over $x _ { 0 }$ of the conditional equality $p _ { t } \\Big ( \\cdot | \\big ( x _ { 0 } , T ( x _ { 0 } ) \\big ) \\Big ) = \\mathcal { N } ( \\phi _ { t } ( x _ { 0 } ) , \\sigma ^ { 2 } ) = \\delta _ { \\phi _ { t } ( x _ { 0 } ) } * \\mathcal { N } ( 0 , \\sigma ^ { 2 } )$ . ",
        "page_idx": 20
    },
    {
        "type": "text",
        "text": "Symmetry of the Gaussian implies that ",
        "page_idx": 20
    },
    {
        "type": "equation",
        "img_path": "images/b9d97a303aa04a476a017b48a560a4aa02c8ccb4a167f48c52e100378656a372.jpg",
        "text": "$$\np _ { t } ^ { \\sigma } ( x | ( x _ { 0 } , T ( x _ { 0 } ) ) ) = p _ { t } ^ { \\sigma } ( \\phi _ { t } ( x _ { 0 } ) | ( \\phi _ { t } ^ { - 1 } ( x ) , T ( \\phi _ { t } ^ { - 1 } ( x ) ) ) ) .\n$$",
        "text_format": "latex",
        "page_idx": 20
    },
    {
        "type": "text",
        "text": "Therefore ",
        "page_idx": 20
    },
    {
        "type": "equation",
        "img_path": "images/ee725341be1424536a55d43bbfd30ce2a3a01c52f162fb5ae288cabd00af3bc1.jpg",
        "text": "$$\n\\begin{array} { r l } & { \\mathbb { E } _ { q ( x _ { 0 } ) } p _ { t } ^ { \\sigma } ( x | ( x _ { 0 } , T ( x _ { 0 } ) ) ) u _ { 0 } ( x _ { 0 } ) = \\mathbb { E } _ { q ( x _ { 0 } ) } \\left[ p _ { t } ^ { \\sigma } ( \\phi _ { t } ( x _ { 0 } ) | ( \\phi _ { t } ^ { - 1 } ( x ) , T ( \\phi _ { t } ^ { - 1 } ( x ) ) ) ) u _ { 0 } ( x _ { 0 } ) \\right] } \\\\ & { [ \\mathrm { b y ~ c h a n g e ~ o f ~ v a r i a b l e s ~ } x ^ { \\prime } = \\phi _ { t } ( x _ { 0 } ) ] = \\mathbb { E } _ { p _ { t } ( x ^ { \\prime } ) } \\left[ p _ { t } ^ { \\sigma } ( x ^ { \\prime } | ( \\phi _ { t } ^ { - 1 } ( x ) , T ( \\phi _ { t } ^ { - 1 } ( x ) ) ) ) u _ { 0 } ( \\phi _ { t } ^ { - 1 } ( x ^ { \\prime } ) ) \\right] } \\\\ & { \\qquad = \\mathbb { E } _ { p _ { t } ^ { \\sigma } ( x ^ { \\prime } | ( \\phi _ { t } ^ { - 1 } ( x ) , T ( \\phi _ { t } ^ { - 1 } ( x ) ) ) ) } \\left[ p _ { t } ( x ^ { \\prime } ) u _ { 0 } ( \\phi _ { t } ^ { - 1 } ( x ^ { \\prime } ) ) \\right] } \\\\ & { \\qquad = \\mathbb { E } _ { \\Delta x \\sim N ( 0 , \\sigma ^ { 2 } ) } \\left[ p _ { t } ( x + \\Delta x ) u _ { 0 } ( \\phi _ { t } ^ { - 1 } ( x + \\Delta x ) ) \\right] } \\\\ & { \\qquad = \\left( p _ { t } ( \\cdot ) u _ { 0 } ( \\phi _ { t } ^ { - 1 } ( \\cdot ) ) * \\mathcal { N } ( 0 , \\sigma ^ { 2 } ) \\right) ( x ) . } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 20
    },
    {
        "type": "text",
        "text": "The standard fact that $\\mathcal { N } ( 0 , \\sigma ^ { 2 } ) \\xrightarrow { \\sigma \\to 0 } \\delta _ { 0 }$ in distribution implies that if $f$ is a bounded, almost everywhere continuous, compactly supported function, then $( f * \\mathcal { N } ) ( x ) \\to f ( x )$ pointwise for almost every $x$ . By the hypotheses, $p _ { t }$ and $p _ { t } \\cdot ( u _ { 0 } \\circ \\phi _ { t } ^ { - 1 } )$ have this property. It follows that, for every $t$ and almost all $x$ , ",
        "page_idx": 20
    },
    {
        "type": "equation",
        "img_path": "images/1eaa0b1000279ea37156828e8c1407e86c40e2d4840d9c1642707d525f7050b4.jpg",
        "text": "$$\n\\begin{array} { r l r } {  { \\operatorname* { l i m } _ { \\sigma \\to 0 } \\frac { \\mathbb { E } _ { q ( x _ { 0 } ) } p _ { t } ^ { \\sigma } ( x | ( x _ { 0 } , T ( x _ { 0 } ) ) u _ { 0 } ( x _ { 0 } ) } { p _ { t } ^ { \\sigma } ( x ) } = \\operatorname* { l i m } _ { \\sigma \\to 0 } \\frac { \\big ( ( p _ { t } \\cdot ( u _ { 0 } \\circ \\phi _ { t } ^ { - 1 } ) ) * \\mathcal { N } ( 0 , \\sigma ^ { 2 } ) \\big ) ( x ) } { ( p _ { t } * \\mathcal { N } ( 0 , \\sigma ^ { 2 } ) ) ( x ) } } } \\\\ & { } & { \\quad = \\frac { ( p _ { t } \\cdot ( u _ { 0 } \\circ \\phi _ { t } ^ { - 1 } ) ) ( x ) } { p _ { t } ( x ) } } \\\\ & { } & { \\quad = u _ { 0 } ( \\phi _ { t } ^ { - 1 } ( x ) ) , } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 20
    },
    {
        "type": "text",
        "text": "which proves (24). ",
        "page_idx": 20
    },
    {
        "type": "text",
        "text": "Proposition 3.5. The marginal vector field $u _ { t } ( x )$ defined by (19) and (21) generates the same marginal probability path as the solution $\\pi ^ { * }$ to the $S B$ problem in (18). ",
        "page_idx": 20
    },
    {
        "type": "text",
        "text": "Proof of Proposition 3.5. Using Theorem 2.4 of Léonard (2014a), De Bortoli et al. (2021) showed that the initial and terminal marginals of $\\pi ^ { * }$ are the solution to the static OT problem ",
        "page_idx": 20
    },
    {
        "type": "equation",
        "img_path": "images/3bebe2eb757084a7c3d5c19fa8c7e828ab24f50ed610f892e1beb63199f88a46.jpg",
        "text": "$$\n\\pi ^ { * } ( x _ { 0 } , x _ { 1 } ) = \\arg \\operatorname* { m i n } \\mathrm { K L } ( \\pi ^ { * } ( x _ { 0 } , x _ { 1 } ) \\| p _ { \\mathrm { r e f } } ( x _ { 0 } , x _ { 1 } ) ) ,\n$$",
        "text_format": "latex",
        "page_idx": 20
    },
    {
        "type": "text",
        "text": "while the conditional path distributions $\\pi ^ { * } ( - | x _ { 0 } , x _ { 1 } )$ minimize ",
        "page_idx": 20
    },
    {
        "type": "equation",
        "img_path": "images/a1454d206d8f30f597234fbd96440ec6087d9c95bb206c16d985fa22c086d952.jpg",
        "text": "$$\n\\begin{array} { r } { \\mathbb { E } _ { x _ { 0 } , x _ { 1 } \\sim \\pi ^ { * } ( x _ { 0 } , x _ { 1 } ) } \\mathrm { K L } ( \\pi ^ { * } ( - | x _ { 0 } , x _ { 1 } ) | | p _ { \\mathrm { r e f } } ( - | x _ { 0 } , x _ { 1 } ) ) . } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 20
    },
    {
        "type": "text",
        "text": "The optimization problem for $\\pi ^ { * } ( x _ { 0 } , x _ { 1 } )$ is equivalent to the entropy-regularized optimal transport problem with optimum ${ \\frac { c ( x _ { 0 } , x _ { 1 } ) ^ { \\alpha } } { 2 \\sigma ^ { 2 } } } + \\mathrm { c o n s t } .$ $\\pi _ { 2 \\sigma ^ { 2 } }$ ., where , as observed by De Bortoli et al. (2021). (The key observation is that $c ( x , y ) = \\| x - y \\|$ and $\\alpha = 2$ .) The divergences between conditional path distributions $\\log p _ { \\mathrm { r e f } } ( x _ { 0 } , x _ { 1 } ) =$ are optimized by Brownian bridges with diffusion scale $\\sigma$ pinned at $x _ { 0 }$ and $x _ { 1 }$ , which are well-known to have marginal probability path $p _ { t }$ in (20), and, by (5), are generated by the vector fields $u _ { t }$ in (21). □ ",
        "page_idx": 20
    },
    {
        "type": "text",
        "text": "B Additional theoretical results ",
        "text_level": 1,
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "Proposition B.1. For any $\\sigma \\in \\mathbb { R } _ { + }$ conditional flow matching with conditional probability paths given by (16) has an equivalent marginal probability flow $p _ { t } ( x )$ to Lipman et al. (2023)’s flow matching. ",
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "Proof. To prove the proposition, we use the fact that the Gaussian family can be generated by location-scale transformations (see, e.g., Lehmann $\\&$ Casella, 2006), i.e., we can express any Gaussian $Z _ { 0 } \\sim \\mathcal { N } ( \\mu _ { 0 } , \\sigma _ { 0 } ^ { 2 } )$ as $Z _ { 0 } = \\mu _ { 0 } + \\sigma _ { 0 } Z$ where $Z \\sim { \\mathcal { N } } ( 0 , I )$ . Recall that the density $p _ { t } ( x )$ has the form $\\begin{array} { r } { p _ { t } ( x ) = \\int p _ { t } ( x | z ) q ( z ) d z } \\end{array}$ , to show the equivalence between the flow from FM and source conditional flow matching, we have to show that $p _ { t } ( x | x _ { 1 } )$ is the same for both methods, that is we show that CFM with variance $( \\sigma t ) ^ { 2 } + 2 \\sigma t ( 1 - t )$ is equivalent to FM with variance $( t \\sigma - t + 1 ) ^ { 2 }$ (12). Since $p _ { t } ( x | x _ { 0 } , x _ { 1 } )$ is $\\mathcal { N } ( t x _ { 1 } + ( 1 - t ) x _ { 0 } ) , \\sigma t ( \\sigma t - 2 t + 2 ) )$ we can write the random variable $X | X _ { 0 } , X _ { 1 }$ as ",
        "page_idx": 21
    },
    {
        "type": "equation",
        "img_path": "images/9b71e968a839ed7b0f614bbcbf048808c2bea4afed728f05ba3ac6707e5d72b6.jpg",
        "text": "$$\nX | X _ { 0 } , X _ { 1 } = t x _ { 1 } + ( 1 - t ) x _ { 0 } + ( \\sigma t ( \\sigma t - 2 t + 2 ) ) ^ { 1 / 2 } Z ,\n$$",
        "text_format": "latex",
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "where $Z \\sim { \\mathcal { N } } ( 0 , I )$ . Without conditioning on $X _ { 0 }$ , we have ",
        "page_idx": 21
    },
    {
        "type": "equation",
        "img_path": "images/0b1c279ec78db4d0f4e2da1a5d5b41db67fb357ac5106c924198fe4f8d3e6384.jpg",
        "text": "$$\nX | X _ { 1 } = t x _ { 1 } + ( 1 - t ) X _ { 0 } + ( \\sigma t ( \\sigma t - 2 t + 2 ) ) ^ { 1 / 2 } Z .\n$$",
        "text_format": "latex",
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "By assumption $X _ { 0 } \\sim { \\mathcal { N } } ( 0 , I ) $ , thus $X | X _ { 1 }$ is Gaussian, since a linear transformation of Gaussian distributions is also Gaussian. To define its distribution, we only have to define its expectation and variance. By linearity of expectation, we find ${ \\bf E } ( X \\vert X _ { 1 } ) = t x _ { 1 }$ , and by independence of $X _ { 0 }$ and $Z$ we have ",
        "page_idx": 21
    },
    {
        "type": "equation",
        "img_path": "images/e330016069293841f54927039e275ef02cef9daae5f7a8d758a0607509dfef6e.jpg",
        "text": "$$\n\\begin{array} { r } { \\mathrm { V a r } ( X | X _ { 1 } ) = ( 1 - t ) ^ { 2 } \\mathrm { V a r } ( X _ { 0 } ) + ( \\sigma t ( \\sigma t - 2 t + 2 ) ) \\mathrm { V a r } ( Z ) } \\\\ { = ( 1 - t ) ^ { 2 } + ( \\sigma t ( \\sigma t - 2 t + 2 ) ) = ( t \\sigma - t + 1 ) ^ { 2 } , } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "hence the flow from source conditional flow matching is the same as FM. ",
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "Proposition B.2. If $\\pi$ is a Monge map, the objective variance of OT-CFM goes to zero as $\\sigma  0$ , i.e., ",
        "page_idx": 21
    },
    {
        "type": "equation",
        "img_path": "images/56d15a5f3047959efe1a64f7a4949451bc42e1384bcb034145208eee5169639d.jpg",
        "text": "$$\n\\mathbb { E } _ { q ( z ) } \\| u _ { t } ( x | z ) - u _ { t } ( x ) \\| ^ { 2 } \\to 0 \\mathrm { ~ } a s \\sigma \\to 0\n$$",
        "text_format": "latex",
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "for $u _ { t } ( x | z )$ in (15). ",
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "Proof. This follows from a basic fact about the transport plan $\\pi$ . Specifically, that as $\\sigma  0$ , $D _ { \\mathrm { K L } } ( p _ { t } ( x | z ^ { i } ) \\| p _ { t } ( x | z ^ { j } ) ) \\ \\to \\ \\infty$ for an $t , x$ for two distinct $z ^ { i } , \\ z ^ { j }$ . This means that $p _ { t } ( x | z ) \\ = \\ p _ { t } ( x )$ for any $t , x , z$ therefore ",
        "page_idx": 21
    },
    {
        "type": "equation",
        "img_path": "images/5141741fab4dc50e83ce082f541d61df41b8ff42f943e7e85fa4110351ced3d2.jpg",
        "text": "$$\n\\begin{array} { c } { { u _ { t } ( x ) = \\mathbb { E } _ { q ( z ) } u _ { t } ( x | z ) p _ { t } ( x | z ) / p _ { t } ( x ) } } \\\\ { { = u _ { t } ( x | z ) } } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "Proposition B.3. The conditional vector field $u _ { t } ( x | \\bar { z } )$ defined by (26) converges to marginal vector field $u _ { t } ( x )$ defined by (9) as m goes to population size, i.e., ",
        "page_idx": 21
    },
    {
        "type": "equation",
        "img_path": "images/7d367087f15c5c249661695ee30a8fa75ec64c5e28abf6dd872a565e1202ae99.jpg",
        "text": "$$\n\\| u _ { t } ( x | \\bar { z } ) - u _ { t } ( x ) \\| ^ { 2 } \\to 0\n$$",
        "text_format": "latex",
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "as $m  | \\mathcal { X } |$ . ",
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "Proof. As $| z | \\to | \\mathcal { X } |$ , by definition, ",
        "page_idx": 21
    },
    {
        "type": "equation",
        "img_path": "images/ff2120fa6963a49eb7488fafb6ed711ab0957662477c7ea997490422c72b07d3.jpg",
        "text": "$$\n\\begin{array} { l } { { u _ { t } ( x | \\bar { z } ) = \\displaystyle \\frac { \\sum _ { i } ^ { m } u _ { t } ( x | z ^ { i } ) p _ { t } ( x | z ^ { i } ) q ( z ^ { i } ) } { \\sum _ { i } ^ { m } p _ { t } ( x | z ^ { i } ) q ( z ^ { i } ) } } } \\\\ { { \\ \\ \\qquad = \\displaystyle \\frac { \\sum _ { z \\in \\mathcal { X } } u _ { t } ( x | z ) p _ { t } ( x | z ) q ( z ) } { \\sum _ { z \\in \\mathcal { X } } p _ { t } ( x | z ) q ( z ) } } } \\\\ { { \\ \\qquad = \\displaystyle \\mathbb { E } _ { q ( z ) } \\frac { u _ { t } ( x | z ) p _ { t } ( x | z ) } { p _ { t } ( x ) } } } \\\\ { { \\ \\qquad = u _ { t } ( x ) } } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 21
    },
    {
        "type": "text",
        "text": "C Algorithm extensions ",
        "text_level": 1,
        "page_idx": 22
    },
    {
        "type": "text",
        "text": "In Alg. 1 we presented the general algorithm for conditional flow matching given $q ( z )$ , $p _ { t } ( x | z )$ , $\\boldsymbol u _ { t } ( \\boldsymbol x | \\boldsymbol z )$ . In Table 1 we presented a number of settings of these leading to interesting probability paths. In practice, we may wish to compute $q ( z )$ on the fly. Therefore in Alg. 2, Alg. 3, and Alg. 4, we give algorithms for the simplified conditional flow matching, and minibatch versions of OT conditional flow matching and Schrödinger bridge conditional flow matching. In general these consist of first sampling a batch of data from both the source and the target empirical distributions, then resampling pairs of data either randomly (CFM) or according to some OT plan (OT-CFM and SB-CFM). ",
        "page_idx": 22
    },
    {
        "type": "text",
        "text": "C.1 Variance reduction by averaging across batches ",
        "text_level": 1,
        "page_idx": 22
    },
    {
        "type": "text",
        "text": "An interesting consequence of introducing optimal transport to conditional flow matching is that it greatly reduces variance of the regression target. Informally, as $\\sigma  0$ , $\\mathbb { E } _ { x , t , z } \\| u _ { t } ( x | z ) - u _ { t } ( x ) \\| ^ { 2 } \\to 0$ for OT-CFM and SB-CFM, which is not true of previous probability paths in Table 1 (See Proposition B.2 for a precise statement). As flow models get larger, more powerful, and more costly, reducing objective variance, and thereby faster training may lead to significant cost savings (Watson et al., 2022b). To this end we also explore reducing the variance of the objective by averaging over a batch. This is not feasible in score matching where the flow conditioned on multiple datapoints is complex. Our CFM framework naturally extends from a pair of datapoints to a batch of pairs. Instead of conditioning on a single pair of datapoints we can condition on a batch of pairs. As the batch increases in size, we trade higher cost in computing the target for lower variance in the target as the batch size increases, the variance in the target goes to zero (see Proposition B.3 for a precise statement). ",
        "page_idx": 22
    },
    {
        "type": "text",
        "text": "As formalized in Proposition B.3, we can reduce variance in the target by averaging over multiple datapoints. Specifically, in this case we let $\\bar { z } : = \\{ z ^ { i } : = ( x _ { 0 } ^ { i } , x _ { 1 } ^ { i } ) \\} _ { i = 1 } ^ { m }$ , where $z ^ { i }$ are i.i.d. from $q ( z )$ and ",
        "page_idx": 22
    },
    {
        "type": "equation",
        "img_path": "images/0f1452102ebd7833299bf09adf4b5109a609ce24f87b2ebc7d5dd26654454f89.jpg",
        "text": "$$\n\\begin{array} { l } { p _ { t } ( x | \\bar { z } ) = \\frac { \\sum _ { i } ^ { m } p _ { t } ( x | z ^ { i } ) q ( z ^ { i } ) } { \\sum _ { i } ^ { m } q ( z ^ { i } ) } } \\\\ { u _ { t } ( x | \\bar { z } ) = \\frac { \\sum _ { i } ^ { m } u _ { t } ( x | z ^ { i } ) p _ { t } ( x | z ^ { i } ) q ( z ^ { i } ) } { p _ { t } ( x | \\bar { z } ) } } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 22
    },
    {
        "type": "text",
        "text": "It takes roughly $m$ times as long to compute the conditional target $u _ { t } ( x | \\bar { z } )$ but reduces the variance. As the evaluation and backpropagation through $v _ { \\theta }$ gets more difficult this tradeoff can be beneficial. ",
        "page_idx": 22
    },
    {
        "type": "text",
        "text": "C.2 Modeling energy functions ",
        "text_level": 1,
        "page_idx": 22
    },
    {
        "type": "text",
        "text": "If we have access to an energy function two (unnormalized) energy functions $\\mathcal { R } _ { \\{ 0 , 1 \\} } : \\mathbb { R } ^ { d }  \\mathbb { R } ^ { + }$ at the endpoints instead of i.i.d. samples $X _ { t } \\sim q _ { t } ( x _ { t } )$ , then the objective must be slightly modified. We formulate the Energy Conditional Flow Matching Objective as ",
        "page_idx": 22
    },
    {
        "type": "equation",
        "img_path": "images/25e9dc760dd42b048a116da829278f4aaed6fad4ed02bf1d66da6905a92125e9.jpg",
        "text": "$$\n\\mathcal { L } _ { \\mathrm { E C F M } } = \\mathbb { E } _ { t , \\hat { q } _ { 0 } ( x _ { 0 } ) , \\hat { q } _ { 1 } ( x _ { 1 } ) , p _ { t } ( x | x _ { 0 } , x _ { 1 } ) } \\left[ \\frac { R _ { 0 } ( x _ { 0 } ) R _ { 1 } ( x _ { 1 } ) } { \\hat { q } _ { 0 } ( x _ { 0 } ) \\hat { q } _ { 1 } ( x _ { 1 } ) } \\| v _ { \\theta } ( t , x ) - u _ { t } ( x | x _ { 0 } , x _ { 1 } ) \\| _ { 2 } ^ { 2 } \\right]\n$$",
        "text_format": "latex",
        "page_idx": 22
    },
    {
        "type": "text",
        "text": "We can use this object to train a flow which matches the energies without access to samples. This is formalized in the following theorem. ",
        "page_idx": 22
    },
    {
        "type": "text",
        "text": "Proposition C.1. Assuming that $\\hat { q } _ { \\{ 0 , 1 \\} } ( x ) , p _ { t } ( x ) > 0$ for al l $x \\in \\mathcal { X }$ and $t \\in [ 0 , 1 ]$ then the gradients of $\\mathcal { L } _ { \\mathrm { F M } }$ and $\\mathcal { L }$ ECFM with respect to $\\theta$ are equal up to some multiplicative constant $c$ . ",
        "page_idx": 22
    },
    {
        "type": "equation",
        "img_path": "images/f6e6f36332c4cb82822b098874005c611e48bafc36b6e4a1f5888c00e1869f15.jpg",
        "text": "$$\n\\nabla _ { \\boldsymbol { \\theta } } \\mathcal { L } _ { \\mathrm { F M } } ( \\boldsymbol { \\theta } ) = c \\nabla _ { \\boldsymbol { \\theta } } \\mathcal { L } _ { \\mathrm { E C F M } } ( \\boldsymbol { \\theta } )\n$$",
        "text_format": "latex",
        "page_idx": 22
    },
    {
        "type": "text",
        "text": "Algorithm 2 Simplified Conditional Flow Matching (I-CFM) ",
        "text_level": 1,
        "page_idx": 23
    },
    {
        "type": "text",
        "text": "Input: Empirical or samplable distributions $q _ { 0 } , q _ { 1 }$ , bandwidth $\\sigma$ , batchsize $b$ , initial network $v _ { \\theta }$ .   \nwhile Training do /\\* Sample batches of size b i.i.d. from the datasets \\*/ ${ \\pmb x } _ { 0 } \\sim q _ { 0 } ( { \\pmb x } _ { 0 } ) ; \\quad { \\pmb x } _ { 1 } \\sim q _ { 1 } ( { \\pmb x } _ { 1 } )$ $t \\sim \\mathcal { U } ( 0 , 1 )$ $\\mu _ { t }  t { \\pmb x } _ { 1 } + ( 1 - t ) { \\pmb x } _ { 0 }$ $x \\sim \\mathcal { N } ( \\mu _ { t } , \\sigma ^ { 2 } I )$ $\\mathcal { L } _ { \\mathrm { C F M } } ( \\theta ) \\gets | | v _ { \\theta } ( t , x ) - ( { \\pmb x } _ { 1 } - { \\pmb x } _ { 0 } ) | | ^ { 2 }$ $\\theta \\gets \\mathrm { U p d a t e } ( \\theta , \\nabla _ { \\theta } \\mathcal { L } _ { \\mathrm { C F M } } ( \\theta ) )$   \nreturn vθ ",
        "page_idx": 23
    },
    {
        "type": "text",
        "text": "Algorithm 3 Minibatch OT Conditional Flow Matching (OT-CFM) ",
        "text_level": 1,
        "page_idx": 23
    },
    {
        "type": "text",
        "text": "Input: Empirical or samplable distributions $q _ { 0 } , q _ { 1 }$ , bandwidth $\\sigma$ , batch size $b$ , initial network $v _ { \\theta }$ .   \nwhile Training do /\\* Sample batches of size b i.i.d. from the datasets \\*/ ${ \\pmb x } _ { 0 } \\sim q _ { 0 } ( { \\pmb x } _ { 0 } )$ ; ${ \\pmb x } _ { 1 } \\sim q _ { 1 } ( { \\pmb x } _ { 1 } )$ $\\pi  \\mathrm { O T } ( \\pmb { x } _ { 1 } , \\pmb { x } _ { 0 } )$ $( { \\pmb x } _ { 0 } , { \\pmb x } _ { 1 } ) \\sim \\pi$ $\\mathbf { \\boldsymbol { t } } \\sim \\mathcal { U } ( 0 , 1 )$ $\\mu _ { t }  t { \\pmb x } _ { 1 } + ( 1 - t ) { \\pmb x } _ { 0 }$ $\\pmb { x } \\sim \\mathcal { N } ( \\mu _ { t } , \\sigma ^ { 2 } I )$ $\\mathcal { L } _ { \\mathrm { C F M } } ( \\theta )  \\| v _ { \\theta } ( \\pmb { t } , \\pmb { x } ) - ( \\pmb { x } _ { 1 } - \\pmb { x } _ { 0 } ) \\| ^ { 2 }$ $\\theta \\gets \\mathrm { U p d a t e } ( \\theta , \\nabla _ { \\theta } \\mathcal { L } _ { \\mathrm { C F M } } ( \\theta ) )$   \nreturn $v _ { \\theta }$ ",
        "page_idx": 23
    },
    {
        "type": "text",
        "text": "Proof. Let $z _ { 0 } = \\int _ { X } R _ { 0 } ( x ) d x$ , and $z _ { 1 } = \\int _ { \\mathcal { X } } R _ { 1 } ( x ) d x$ then $q ( x _ { 0 } ) = \\mathcal { R } _ { 0 } ( x _ { 0 } ) / z _ { 0 }$ , similarly $q ( x _ { 1 } ) = \\mathcal { R } _ { 1 } ( x _ { 1 } ) / z _ { 1 }$ , then ",
        "page_idx": 23
    },
    {
        "type": "equation",
        "img_path": "images/649b2ec3c3e91c80279a5334d093b03a42f933f670bba628dd4eb7f09873e8e1.jpg",
        "text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { \\mathrm { E C F M } } ( \\theta ) = \\mathbb { E } _ { t , \\hat { q } _ { 0 } ( x _ { 0 } ) , \\hat { q } _ { 1 } ( x _ { 1 } ) , p _ { t } ( x | x _ { 0 } , x _ { 1 } ) } \\left[ \\frac { \\mathcal { R } _ { 0 } ( x _ { 0 } ) \\mathcal { R } _ { 1 } ( x _ { 1 } ) } { \\hat { q } _ { 0 } ( x _ { 0 } ) \\hat { q } _ { 1 } ( x _ { 1 } ) } \\| v _ { \\theta } ( t , x ) - u _ { t } ( x | x _ { 0 } , x _ { 1 } ) \\| _ { 2 } ^ { 2 } \\right] } \\\\ & { \\qquad = z _ { 0 } z _ { 1 } \\mathbb { E } _ { t , \\hat { q } _ { 0 } ( x _ { 0 } ) , \\hat { q } _ { 1 } ( x _ { 1 } ) , p _ { t } ( x | x _ { 0 } , x _ { 1 } ) } \\left[ \\frac { q _ { 0 } ( x _ { 0 } ) q _ { 0 } ( x _ { 1 } ) } { \\hat { q } _ { 0 } ( x _ { 0 } ) \\hat { q } _ { 1 } ( x _ { 1 } ) } \\| v _ { \\theta } ( t , x ) - u _ { t } ( x | x _ { 0 } , x _ { 1 } ) \\| _ { 2 } ^ { 2 } \\right] } \\\\ & { \\qquad = z _ { 0 } z _ { 1 } \\int _ { t , x _ { 0 } , x _ { 1 } , x } \\left[ q _ { 0 } ( x _ { 0 } ) q _ { 1 } ( x _ { 1 } ) \\| v _ { \\theta } ( t , x ) - u _ { t } ( x | x _ { 0 } , x _ { 1 } ) \\| _ { 2 } ^ { 2 } \\right] p _ { t } ( x | x _ { 0 } , x _ { 1 } ) d x _ { 0 } d x _ { 1 } d x } \\\\ & { \\qquad = z _ { 0 } z _ { 1 } \\mathcal { L } _ { \\mathrm { C F M } } ( \\theta ) } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 23
    },
    {
        "type": "text",
        "text": "where we use substitution for the first step and change the order of integration in the last step. With an application of Theorem 3.2 the gradients are equivalent up to a factor of $z _ { \\mathrm { 0 } } z _ { \\mathrm { 1 } }$ which does not depend on $x$ . □ ",
        "page_idx": 23
    },
    {
        "type": "text",
        "text": "Of course $\\mathcal { L } _ { \\mathrm { E C F M } }$ leaves the question of sampling open for high-dimensional spaces. Sampling uniformly does not scale well to high dimensions, so for practical reasons we may want a different sampling strategy. ",
        "page_idx": 23
    },
    {
        "type": "text",
        "text": "We use this objective in Fig. D.9 with a uniform proposal distribution as a toy example of this type of training. ",
        "page_idx": 23
    },
    {
        "type": "text",
        "text": "D Additional results ",
        "text_level": 1,
        "page_idx": 23
    },
    {
        "type": "text",
        "text": "We start this section by the definition of the entropy regularized OT problem: ",
        "page_idx": 23
    },
    {
        "type": "equation",
        "img_path": "images/504bff277f9d373d0998521ce84e22e398ba8c2c104fc4688b7dbe8d62c87a0e.jpg",
        "text": "$$\nW ( q _ { 0 } , q _ { 1 } ) _ { 2 , \\lambda } ^ { 2 } = \\operatorname * { i n f } _ { \\pi _ { \\lambda } \\in \\Pi } \\int _ { \\mathcal { X } ^ { 2 } } c ( x , y ) ^ { 2 } \\pi _ { \\lambda } ( d x , d y ) - \\lambda H ( \\pi ) ,\n$$",
        "text_format": "latex",
        "page_idx": 23
    },
    {
        "type": "text",
        "text": "Input: Empirical or samplable distributions $q _ { 0 } , q _ { 1 }$ , bandwidth $\\sigma$ , batch size $b$ , initial network $v _ { \\theta }$ .   \nwhile Training do /\\* Sample batches of size b i.i.d. from the datasets \\*/ ${ \\pmb x } _ { 0 } \\sim q _ { 0 } ( { \\pmb x } _ { 0 } ) ; \\quad { \\pmb x } _ { 1 } \\sim q _ { 1 } ( { \\pmb x } _ { 1 } )$ $\\pi _ { 2 \\sigma ^ { 2 } } \\gets \\mathrm { S i n k h o r n } ( x _ { 1 } , x _ { 0 } , 2 \\sigma ^ { 2 } )$ $( { \\pmb x } _ { 0 } , { \\pmb x } _ { 1 } ) \\sim \\pi _ { 2 \\sigma ^ { 2 } }$ $\\mathbf { \\boldsymbol { t } } \\sim \\mathcal { U } ( 0 , 1 )$ $\\mu _ { t }  t { \\pmb x } _ { 1 } + ( 1 - t ) { \\pmb x } _ { 0 }$ $\\pmb { x } \\sim \\mathcal { N } ( \\mu _ { t } , \\sigma ^ { 2 } t ( 1 - t ) I )$ ut(x|z) ← 1−2t2t(1−t) (x − (tx1 + (1 − t)x0)) + (x1 − x0) ▷ From (21) $\\mathcal { L } _ { \\mathrm { C F M } } ( \\theta ) \\gets | | v _ { \\theta } ( t , \\boldsymbol { x } ) - \\boldsymbol { u } _ { t } ( \\boldsymbol { x } | \\boldsymbol { z } ) | | ^ { 2 }$ $\\theta \\gets \\mathrm { U p d a t e } ( \\theta , \\nabla _ { \\theta } \\mathcal { L } _ { \\mathrm { C F M } } ( \\theta ) )$ ",
        "page_idx": 24
    },
    {
        "type": "text",
        "text": "return vθ ",
        "page_idx": 24
    },
    {
        "type": "image",
        "img_path": "images/0912f90607adb9cde0e157c2b68abbd62e2159730aef614261f2d9ee38c617d0.jpg",
        "image_caption": [
            "Figure D.1: Evaluation of regularization strength of $\\lambda _ { e }$ over 6 seeds in the range $[ 0 , 1 0 ^ { - 5 } , 1 0 ^ { 2 } ]$ . $\\lambda _ { e } = 0 . 1$ performs the best in terms of minimizing path length and test error. We call this model \"Regularized CNF\". "
        ],
        "image_footnote": [],
        "page_idx": 24
    },
    {
        "type": "text",
        "text": "where $\\lambda \\in \\mathbb { R } ^ { + }$ and $\\begin{array} { r } { H ( \\pi ) = \\int \\ln \\pi ( x , y ) d \\pi ( d x , d y ) } \\end{array}$ . ",
        "page_idx": 24
    },
    {
        "type": "text",
        "text": "Regularized CNF tuning Continuous normalizing flows with a path length penalty optimize a relaxed form of a dynamic optimal transport problem (Tong et al., 2020; Finlay et al., 2020; Onken et al., 2021). Where dynamic optimal transport solves for the optimal vector field in terms of average path length where the marginals at time $t = 0$ and $t = 1$ are constrained to equal two input marginals $q _ { 0 }$ and $q _ { 1 }$ . Instead of this pair of hard constraints, regularized CNFs instead set $q _ { 0 } : = \\mathcal { N } ( x \\mid 0 , 1 )$ and optimize a loss of the form ",
        "page_idx": 24
    },
    {
        "type": "equation",
        "img_path": "images/44fcd5fb7f2f22fe1c8245d48f6c0b2e0b897328312ef692d9ac930b60cef916.jpg",
        "text": "$$\nL ( x ( t ) ) = - \\log p ( x ( t ) ) + \\lambda _ { e } \\int _ { 0 } ^ { 1 } \\| v _ { \\theta } ( t , x ( t ) ) \\| ^ { 2 } d t\n$$",
        "text_format": "latex",
        "page_idx": 24
    },
    {
        "type": "table",
        "img_path": "images/7b519cc93d11ef1a784e13f2a44914aac7d63ead5ad2c42aa17308f58c887e59.jpg",
        "table_caption": [
            "Table D.1: Mean training time till convergence in $1 0 ^ { 3 }$ seconds over 5 seeds, with the exception of DSB, trained over 1 seed. CFM variants and DSB are trained on a single CPU with 5GB of memory where other baselines are given two CPUs and one GPU. CFM, with significantly fewer resources, still trains the fastest. "
        ],
        "table_footnote": [],
        "table_body": "<table><tr><td></td><td>N-→8gaussians</td><td>moons-→8gaussians</td><td>N→moons</td><td>N-→scurve</td><td>mean</td></tr><tr><td>OT-CFM</td><td>1.284 ± 0.028</td><td>1.587 ± 0.204</td><td>1.464 ± 0.158</td><td>1.499 ± 0.157</td><td>1.484 ± 0.192</td></tr><tr><td>CFM</td><td>0.993 ± 0.021</td><td>1.102 ± 0.171</td><td>1.059 ± 0.158</td><td>1.008 ± 0.106</td><td>1.046 ± 0.132</td></tr><tr><td>FM</td><td>0.839 ± 0.096</td><td></td><td>1.076 ± 0.126</td><td>1.127 ± 0.123</td><td>1.014 ± 0.170</td></tr><tr><td>SB-CFM</td><td>0.713 ± 0.386</td><td>0.794 ± 0.293</td><td>1.143 ± 0.389</td><td>1.230 ± 0.424</td><td>0.935 ± 0.397</td></tr><tr><td>Reg. CNF</td><td>2.684 ± 0.052</td><td></td><td>9.154 ± 1.535</td><td>9.022 ± 3.207</td><td>8.021 ± 3.288</td></tr><tr><td>CNF</td><td>1.512 ± 0.234</td><td></td><td>17.124 ± 4.398</td><td>27.416 ± 13.299</td><td>18.810 ± 12.677</td></tr><tr><td>ICNN</td><td>3.712 ± 0.091</td><td>3.046 ± 0.496</td><td>2.558 ± 0.390</td><td>2.200 ± 0.034</td><td>2.912 ± 0.626</td></tr><tr><td>DSB</td><td>5.418 ±-</td><td>5.682 ±-</td><td>5.428±-</td><td>5.560 ±-</td><td>5.522 ±-</td></tr></table>",
        "page_idx": 25
    },
    {
        "type": "text",
        "text": "where $\\begin{array} { r } { \\frac { d x } { d t } = v _ { \\theta } ( t , x ( t ) ) } \\end{array}$ and $\\log p ( x ( T ) )$ is defined as ",
        "page_idx": 25
    },
    {
        "type": "equation",
        "img_path": "images/8a29ff9059564cbcc7fd17f246445db556e2d4fb83c6f499ef65e18168df99fd.jpg",
        "text": "$$\n\\log p ( x ( T ) ) = p ( x ( 0 ) ) + \\int _ { 0 } ^ { T } { \\frac { \\partial \\log p ( x ( t ) ) } { \\partial t } } d t = p ( x ( 0 ) ) + \\int _ { 0 } ^ { T } - \\operatorname { t r } \\left( { \\frac { d v _ { \\theta } } { d x ( t ) } } \\right) d t\n$$",
        "text_format": "latex",
        "page_idx": 25
    },
    {
        "type": "text",
        "text": "where the second equality follows from the instantaneous change of variables theorem (Chen et al., 2018, Theorem 1). In practice it is difficult to pick a $\\lambda _ { e }$ which both produces flows with short paths and allows the model to fit the data well. We analyze the effect of this parameter over three datasets in Fig. D.1. In this figure we analyze the Normalized 2-Wasserstein to the target distribution (which approaches 1 with good fit), and the Normalized Path Energy (NPE). We find a tradeoff between short paths (Low NPE) and good fit (Low 2-Wasserstein). We choose $\\lambda _ { e } = 0 . 1$ as a good tradeoff across datasets, which has paths that are not too much longer than optimal but also fits the data well. ",
        "page_idx": 25
    },
    {
        "type": "text",
        "text": "Ablation results on batch size. Since we use Minibatch-OT for OT-CFM, when the minibatch size is equal to one, then OT-CFM is equivalent to CFM. This effect can be seen in Fig. D.2, where over four datasets, OT-CFM starts with equal path length and approximately equal 2-Wasserstein. Then the normalized path energy decreases surprisingly quickly plateauing after batchsize reaches ${ \\sim } 6 4$ . While the minibatch size needed to approximate the true dynamic optimal transport paths will vary with dataset (for example in the moon-8gaussian case we need a larger batch size) it is still somewhat surprising that such small batches are needed as this is less than $0 . 5 \\%$ of the entire 10k point dataset per batch. ",
        "page_idx": 25
    },
    {
        "type": "text",
        "text": "The effect of $\\sigma$ on fit and path length. Next we consider $\\sigma$ , the bandwidth parameter of the Gaussian conditional probability path. In Fig. D.3 we study the effect of $\\sigma$ on the fit (top) and the path energy (bottom). With $\\sigma > 1$ methods start to underfit with high 2-Wasserstein error and either very long or very short paths. As for specific models, SB-CFM becomes unstable with $\\sigma$ too small due to the lack of convergence for the static Sinkhorn optimization with small regularization. FM and CFM follow similar trends where they fit fairly well with $\\sigma \\leq 1$ but have paths that are significantly longer than optimal by 2-3x. OT-CFM maintains near optimal path energies and near optimal fit until $\\sigma > 1$ . ",
        "page_idx": 25
    },
    {
        "type": "text",
        "text": "Schrödinger bridge fit over simulation time. In Fig. D.7 we compare the fit of Diffusion Schrödinger Bridge model with SB-CFM conditioned on time. The Diffusion Schrödinger Bridge seems to outperform SB-CFM early in the trajectory, however fails to fit the bridge after many integration steps. ",
        "page_idx": 25
    },
    {
        "type": "text",
        "text": "D.1 Objective variance. ",
        "text_level": 1,
        "page_idx": 25
    },
    {
        "type": "text",
        "text": "We consider the variance of the objective $\\boldsymbol u _ { t } ( \\boldsymbol x | \\boldsymbol z )$ with respect to $z$ . While for any $x$ we have $\\mathbb { E } _ { q } ( z ) u _ { t } ( x | z ) =$ $u _ { t } ( x )$ , we find a lower second moment speeds up training. Specifically, we seek to understand the effect of the second moment which we call the objective variance defined as ",
        "page_idx": 25
    },
    {
        "type": "equation",
        "img_path": "images/8be63dad3401938f4133a67322d4769b8e7431f7ab6b0dc2a85857e930d4808c.jpg",
        "text": "$$\nO V = \\mathbb { E } _ { t \\sim U ( 0 , I ) , x \\sim p _ { t } ( x ) , z \\sim q ( z ) } \\| u _ { t } ( x | z ) - u _ { t } ( x ) \\| ^ { 2 }\n$$",
        "text_format": "latex",
        "page_idx": 25
    },
    {
        "type": "image",
        "img_path": "images/6c13371fdd64c6578127bcd3f58570bfee43da54c34998fba88b258ff531bf48.jpg",
        "image_caption": [
            "Figure D.2: $\\mu \\pm \\sigma$ of mean path length prediction error over 5 seeds. Lower is better. Introducing OT to CFM batches straightens paths lowering cost towards the optimal $W _ { 2 }$ as compared to a standard random conditional flow matching network over all batch sizes. "
        ],
        "image_footnote": [],
        "page_idx": 26
    },
    {
        "type": "image",
        "img_path": "images/1a4202973488719620336aa91b0c4a9ac74fb66bb7a870d581eeb1b16bf814fc.jpg",
        "image_caption": [
            "Figure D.3: Evaluation of the effect of $\\sigma$ for conditional flow matching models. When $\\sigma < 1$ OT-CFM outperforms the other flow matching methods. SB-CFM drops off in performance when $\\sigma$ is too small due to numerical issues in the discrete Sinkhorn solver. "
        ],
        "image_footnote": [],
        "page_idx": 26
    },
    {
        "type": "image",
        "img_path": "images/18eb5f0034d33b49e5650f1707f2d0551b2bba55df085429726796af40ec93c3.jpg",
        "image_caption": [
            "Figure D.4: Estimated Objective Variance (36) for different methods with batch size 512, $\\sigma = 0 . 1$ across datasets. OT-CFM and SB-CFM have significantly lower objective variance than CFM and FM which have roughly equivalent objective variance. "
        ],
        "image_footnote": [],
        "page_idx": 27
    },
    {
        "type": "image",
        "img_path": "images/368fc82229412e3a7dc4ff15e620d821a48a9598b0bb66e6217359fc9049ddd4.jpg",
        "image_caption": [
            "Figure D.5: Validation 2-Wasserstein distance against training time with variance reduction by aggregation either with no aggregation (Batchsize 1) or aggregation over a minibatch (Batchsize 512). Variance reduction leads to faster training, especially for CFM where the objective variance is naturally larger than OT-CFM which sees a small performance gain. "
        ],
        "image_footnote": [],
        "page_idx": 27
    },
    {
        "type": "image",
        "img_path": "images/f8e79e1230abf5b1da9ecf9c6dd8f2e8b60c98f50786ef712daa33be42169407.jpg",
        "image_caption": [
            "Figure D.6: Extended results from Fig. 2 (left) over two more datasets. OT-CFM is still consistently the fastest converging method. "
        ],
        "image_footnote": [],
        "page_idx": 27
    },
    {
        "type": "image",
        "img_path": "images/55b40fdd16153f131a9edc200d91f8bd2ec6bc077bd34dcae000ac4948306b7b.jpg",
        "image_caption": [
            "Figure D.7: 2-Wasserstein Error between trajectories and ground truth Schrödinger Bridge samples over simulation time. "
        ],
        "image_footnote": [],
        "page_idx": 28
    },
    {
        "type": "image",
        "img_path": "images/12aa3bc53e7b3c6742a7eb5def0d4eb89ae3b891abf196e1c41a9febc0f5edb6.jpg",
        "image_caption": [
            "Figure D.8: (left) Variance of the objective for varying batch size. OT-CFM has a lower variance across batch sizes. (right) Validation 2-Wasserstein performance with batch averaging as in $\\ S \\mathrm { C . 1 }$ . Reducing variance improves training efficiency. "
        ],
        "image_footnote": [],
        "page_idx": 28
    },
    {
        "type": "text",
        "text": "on training speed for different objectives in Table 1. We estimate the variance on a small data with a known $u _ { t } ( x )$ . We examine this estimated objective variance and its effect on training convergence in Fig. D.8, showing that either OT-CFM or variance reduced CFM with averaging over the batch results in lower variance of the objective. This in turn leads to faster training times as shown on the right. Averaging over a batch of data leads to faster training particularly for methods with high objective variance (CFM) and less so for those with low (OT-CFM), which already trains quickly. ",
        "page_idx": 28
    },
    {
        "type": "text",
        "text": "Variance in the conditional objective target $u _ { t } ( x | z )$ varies across models. In Fig. D.4 we study the objective variance across CFM objective functions. Here we estimate the objective variance in (36) as ",
        "page_idx": 28
    },
    {
        "type": "equation",
        "img_path": "images/737dd7d12609fad952b4e31d9d7434ea341238c157569cd44b101dc8d66b5e62.jpg",
        "text": "$$\n\\mathbb { E } _ { x , t , z } \\Vert u _ { t } ( x | z ) - v _ { \\theta } ( t , x ) \\Vert ^ { 2 }\n$$",
        "text_format": "latex",
        "page_idx": 28
    },
    {
        "type": "text",
        "text": "after training has converged. After training has converged $v _ { \\theta }$ should be very close to $u _ { t } ( x )$ so we use it as an empirical estimator of $u _ { t } ( x )$ to compute the variance. We find that across all datasets OT-CFM and SB-CFM have at least an order of magnitude lower variance than CFM and FM objectives. This correlates with faster training as measured by lower validation error in fewer steps for lower variance models as seen in Fig. 2 (left). ",
        "page_idx": 28
    },
    {
        "type": "text",
        "text": "We examine the objective variance OV by conditioning $u _ { t } ( x | z )$ on a batch of pairs of data points, $\\bar { z } : =$ $\\{ z ^ { i } : = ( x _ { 0 } ^ { i } , x _ { 1 } ^ { i } ) \\} _ { i = 1 } ^ { m }$ , we can reduce the variance of the OV objective to $0$ for all models as batchsize goes to population size. For the batchsize $m$ range from 1 to the number of the population, we uniformly sample $m$ pairs of points $z ^ { i }$ and compute the probability $p _ { t } ( x | \\bar { z } )$ and the objective $u _ { t } ( x | \\bar { z } )$ from (25) and (26). ",
        "page_idx": 28
    },
    {
        "type": "text",
        "text": "We also find that averaging over batches makes the network acheive a lower validation error in fewer steps and in less walltime (Fig. D.5). ",
        "page_idx": 28
    },
    {
        "type": "image",
        "img_path": "images/f952c6be9db3a33617c7e34879463176d9960813ace61f1694912a455a7614da.jpg",
        "image_caption": [
            "Figure D.9: Flows (green) from (a) moons to (b) 8-Gaussians unnormalized density function learned using CFM with RWIS. "
        ],
        "image_footnote": [],
        "page_idx": 29
    },
    {
        "type": "text",
        "text": "D.2 Energy-based CFM ",
        "text_level": 1,
        "page_idx": 29
    },
    {
        "type": "text",
        "text": "We show how CFM and OT-CFM can be adapted to the case where we do not have access to samples from the target distribution, but only an unnormalized density (equivalently, energy function) of the target, $R ( x _ { 1 } )$ (Fig. D.9). We consider the 10-dimensional funnel dataset from Hoffman & Gelman (2011). We aim to learn a flow from the 10-dimensional standard Gaussian to the energy function of the funnel. We consider two algorithms, each of which has certain advantages: ",
        "page_idx": 29
    },
    {
        "type": "text",
        "text": "(1) Reweighted importance sampling (RWIS): We construct a weighted batch of target points $x _ { 1 }$ by sampling $x _ { 1 } \\sim \\mathcal { N } ( \\mathbf { 0 } , \\mathbf { I } )$ and assigning it a weight of $R ( x _ { 1 } ) / \\mathcal { N } ( x _ { 1 } ; \\mathbf { 0 } , \\mathbf { I } )$ normalized to sum to 1 over the batch. The FM and CFM objectives handle weighted samples in a trivial way (by simply using the weights as $q ( x _ { 1 } )$ in Table 1), while OT-CFM treats the weights as target marginals in constructing the OT plan between $x _ { 0 }$ and $x _ { 1 }$ . We expect RWIS to perform well when batches are large and the proposal and target distributions are sufficiently similar; otherwise, numerical explosion of the importance weights can hinder learning.   \n(2) MCMC: We use samples from a long-run Metropolis-adjusted Langevin MCMC chain on the target density as approximate target samples. We expect this method to perform well when the MCMC mixes well; otherwise, modes of the target density may be missed. ",
        "page_idx": 29
    },
    {
        "type": "text",
        "text": "As an evaluation metric, we use the estimation bias of the log-partition function using a reweighted variational bound, following prior work that studied the problem using SDE modeling (Zhang & Chen, 2022). The computation of this metric for CNFs is given in §E.6. ",
        "page_idx": 29
    },
    {
        "type": "text",
        "text": "The results are shown in Table D.2. When an adaptive ODE integrator is used, all algorithms achieve similar results (no pair of mean log-partition function estimates is statistically distinguishable with $p < 0 . 1$ under a Welch’s $t$ -test) but OT-CFM is about twice as efficient as CFM and FM. However, with a fixed computation budget for ODE integration, OT-CFM performs significantly better. ",
        "page_idx": 29
    },
    {
        "type": "text",
        "text": "E Experiment and implementation details ",
        "text_level": 1,
        "page_idx": 29
    },
    {
        "type": "text",
        "text": "E.1 Physical experimental setup ",
        "text_level": 1,
        "page_idx": 29
    },
    {
        "type": "text",
        "text": "All experiments were performed on a shared heterogenous high-performance-computing cluster. This cluster is primarily composed of GPU nodes with RTX8000, A100, and V100 Nvidia GPUs. Since the network and nodes are shared, other users may cause high variance in the training times of models. However, we believe that the striking difference between the convergence times in Table D.1 and combined with the CFM training setup with a single CPU and the baseline models trained with two CPUS and a GPU, paints a clear picture as to how efficient CFM training is. Qualitatively, we feel that most CFMs converge quite a bit more rapidly than these metrics would suggest, often converging to a near optimal validation performance in minutes. ",
        "page_idx": 29
    },
    {
        "type": "table",
        "img_path": "images/26520aa7300ef2599e56c440a6a05b703374392747ccc2bcb534b36499e891b6.jpg",
        "table_caption": [
            "Table D.2: Energy-based CFM results on the 10-dimensional funnel dataset: log-partition function estimation bias (mean and standard deviation over 10 runs) and time to generate 6000 samples from the trained ODE. With adaptive integration, OT-CFM requires fewer function evaluations. With a fixed-interval solver, OT-CFM has lower discretization error, leading to a better estimate. PIS baseline is from Zhang & Chen (2022). "
        ],
        "table_footnote": [],
        "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">RWIS</td><td colspan=\"2\">MCMC</td></tr><tr><td>log 2</td><td>S time</td><td>log 2</td><td>S time</td></tr><tr><td colspan=\"5\">adaptive Dormand-Prince (tolerance O.O1) integration</td></tr><tr><td>CFM OT-CFM</td><td>-0.068±0.041 -0.076 ± 0.098</td><td>26.6 ± 8.4s 13.3 ± 1.7s</td><td>0.029 ± 0.037 0.009 ± 0.045</td><td>34.6 ± 6.0s 12.8 ± 1.2s</td></tr><tr><td>FM</td><td>-0.033±0.057</td><td>26.5 ± 7.7s</td><td>0.027 ± 0.031</td><td>30.9 ± 5.8s</td></tr><tr><td></td><td></td><td>Euler (N=10) integration</td><td></td><td></td></tr><tr><td>CFM</td><td>0.281 ± 0.202</td><td>4.0 ± 0.8s</td><td>0.336 ± 0.030</td><td>3.7 ± 0.7s</td></tr><tr><td>OT-CFM</td><td>-0.039±0.030</td><td>4.2 ± 0.6s</td><td>0.146±0.107</td><td>4.1 ± 0.8s</td></tr><tr><td>FM</td><td>0.176±0.044</td><td>4.1 ± 0.7s</td><td>0.334±0.066</td><td>3.9 ± 0.6s</td></tr><tr><td></td><td colspan=\"4\"></td></tr><tr><td>PIS (SDE)</td><td colspan=\"4\">Euler-Maruyama (N=100) integration -0.018 ± 0.020</td></tr></table>",
        "page_idx": 30
    },
    {
        "type": "text",
        "text": "E.2 2D, single-cell, and Schrödinger bridge experimental setup ",
        "text_level": 1,
        "page_idx": 30
    },
    {
        "type": "text",
        "text": "For all experiments we use the same architecture implemented in PyTorch (Paszke et al., 2019). We concatenate the flattened input $x \\in \\mathbb { R } ^ { d }$ and the time $t$ as the $d + 1$ inputs to a network with three hidden layers of width 64 interspersed with SELU activations (Klambauer et al., 2017) followed by a linear output layer of width $d$ . This forms our $v _ { \\theta }$ for all experiments. For all 2D and single-cell experiments we train for 1000 epochs and implement early stopping on the validation loss which checks the loss on a validation set every 10 epochs and stops training if there is no improvement for 30 epochs. We also set a time limit of 100 minutes for each CFM model. This is hit almost exclusively for SB-CFM models with small $\\sigma$ which are unstable to train due to instabilities and non-convergence of the Sinkhorn (Cuturi, 2013) transport plan optimization. We use the AdamW (Loshchilov & Hutter, 2019) optimizer with weight decay $1 0 ^ { - 5 }$ with batchsize 512 by default in 2D experiments and 128 in the single cell datasets. For OT-CFM and SB-CFM we use exact linear programming EMD and Sinkhorn algorithms from the python optimal transport package (Flamary et al., 2021) For evaluation of trajectories unless otherwise noted we use the Runge-Kutta45 (rk4) ODE solver with 101 timesteps from 0 to 1. ",
        "page_idx": 30
    },
    {
        "type": "text",
        "text": "E.3 Variance reduction by averaging ",
        "text_level": 1,
        "page_idx": 30
    },
    {
        "type": "text",
        "text": "We tackle the exploration of the effects of reducing variance of the target $\\boldsymbol u _ { t } ( \\boldsymbol x | \\boldsymbol z )$ from two directions. The first is for small example where we can compute the ground truth $u _ { t } ( x )$ quickly, and the second is in the setting of trained models where we can estimate $u _ { t } ( x )$ with $v _ { \\boldsymbol { \\theta } } ( t , \\boldsymbol { x } )$ after $v _ { \\theta }$ has converged. ",
        "page_idx": 30
    },
    {
        "type": "text",
        "text": "We first consider the convergence of each flow matching objective (OT-CFM, CFM, FM, SB-CFM) to zero as a function of the batch size relative to the dataset size. This is done by first sampling $t , x , z$ then computing the true objective variance across many samples. This appears in Fig. D.8. ",
        "page_idx": 30
    },
    {
        "type": "text",
        "text": "We next consider the effect of averaging over a batch to reduce the variance of the objective in Fig. D.8 (right). Here Batchsize refers to the size of the batch we are averaging over. We aggregate this into a single target so that the model sees a single $d$ dimensional target vector for one sampled $x , t$ . This means that we can compare different aggregation sizes fairly. ",
        "page_idx": 30
    },
    {
        "type": "text",
        "text": "E.4 Schrödinger bridge evaluation setup ",
        "text_level": 1,
        "page_idx": 31
    },
    {
        "type": "text",
        "text": "To evaluate how well Schrödinger Bridge models actually model a Schrödinger Bridge, we constrain ourselves to a small example with 1000 points. We note that the closed-form Schrödinger marginals are known for discrete densities, for Gaussians (Mallasto et al., 2022), and can be constructed for two approximate datasets (Korotin et al., 2021), which present other ways of evaluating Schrödinger bridge performance. For any time $t$ we can sample from the ground truth Schrödinger bridge density $p _ { t } ( x )$ as ",
        "page_idx": 31
    },
    {
        "type": "equation",
        "img_path": "images/bd34a851223c99bac8a44549cd545efdd60475bd9b905998a3efe0571189ec95.jpg",
        "text": "$$\n\\begin{array} { c } { ( x _ { 0 } , x _ { 1 } ) \\sim \\pi _ { 2 \\sigma ^ { 2 } } } \\\\ { X _ { t } \\sim \\mathcal N ( x \\mid t x _ { 1 } + ( 1 - t ) x _ { 0 } , \\sigma t ( 1 - t ) ) } \\end{array}\n$$",
        "text_format": "latex",
        "page_idx": 31
    },
    {
        "type": "text",
        "text": "We sample trajectories of length 20 from $t = 0$ to $t = 1$ by integrating over time from $t = 0$ to $t = 1$ . At each of the 18 intermediate timepoints we compute the 2-Wasserstein distance between a sample of size 1000 from the trajectories at that time and the ground truth $X _ { t }$ as above at that time. We reported the average across the 18 intermediate timepoints in Table 3 and plot the 2-Wasserstein distance over time in Fig. D.7. ",
        "page_idx": 31
    },
    {
        "type": "text",
        "text": "SB-CFM Model We train SB-CFM with $\\sigma = 1$ and batchsize=512 for each of the datasets. We save 1000 trajectories from a test set integrated with the tsit5 solver with atol=rtol=1e-4. ",
        "page_idx": 31
    },
    {
        "type": "text",
        "text": "Diffusion Schrödinger bridge model implementation details We use the implementation from De Bortoli et al. (2021). Only the networks were changed for a fair comparison with CFM. The forward and backward networks are composed of an MLP with three hidden layers of size 64, with SELU activations in between layers. We used a time and a positional encoders composed of two layers of size 16 and 32 with LeakyReLU activations has inputs to the score network. The architectures are the same for the 2D examples and the single-cell examples (except for the input dimension). During training, we set the variance ( $\\gamma$ in the author’s code) to 0.001 and did 20 steps to discretize the Langevin dynamic. We trained for 10k iterations with 10k particles and batch size of 512, for 20 iterative proportional fitting steps, and a learning rate set to 0.0001. For the interpolation task we used the tenth timepoint from the Langevin dynamic with the backward network trained to go from the distribution at time $t - 1$ to $t + 1$ . All trajectories are evaluated from the backward dynamic. We use $\\sigma = 1$ and batchsize=512. ",
        "page_idx": 31
    },
    {
        "type": "text",
        "text": "E.5 Single-cell experimental setup ",
        "text_level": 1,
        "page_idx": 31
    },
    {
        "type": "text",
        "text": "We strove to be consistent with the experimental setup of Tong et al. (2020). For the Embryoid body (EB) data, we use the same processed artifact which contains the first 100 principal components of the data. For our tests we truncate to the first five dimensions, then whiten (subtract mean and divide by standard deviation) each dimension. For the Embryoid body dataset which consists of 5 timepoints collected over 30 days we train separate models leaving out times $1 , 2 , 3$ in turn. We train a CFM over the full time scale (0-4). During testing we push forward all points $X _ { t - 1 }$ to time $t$ as a distribution to test against. ",
        "page_idx": 31
    },
    {
        "type": "text",
        "text": "For the Cite and Multi datasets these are sourced from the Multimodal Single-cell Integration challenge at NeurIPS 2022, a NeurIPS challenge hosted on Kaggle where the task was multi-modal prediction (Burkhardt et al., 2022). In this competition they used this data to investigate the predictability of RNA from chromatin accessibility and protein expression from RNA. Here, we repurpose this data for the task of time series interpolation. Both of these datasets consist of four timepoints from CD34+ hematopoietic stem and progenitor cells (HSPCs) collected on days 2, 3, 4, and 7. For more information and the raw data see the competition site.5 We preprocess this data slightly to remove patient specific effects by focusing on a single donor (donor 13176), then we again compute the first five principal components and again whiten each dimension to further normalize the data. ",
        "page_idx": 31
    },
    {
        "type": "text",
        "text": "E.6 Energy-based CFM ",
        "text_level": 1,
        "page_idx": 31
    },
    {
        "type": "text",
        "text": "The 10-dimensional funnel dataset is defined by $\\mathbf { x } _ { 0 } \\sim \\mathcal { N } ( 0 , I )$ , $\\mathbf { x } _ { 1 , \\dots , 9 } \\sim \\mathcal { N } ( \\mathbf { 0 } , \\exp ( \\mathbf { x } _ { 0 } ) \\mathbf { I } )$ . We attempted to mimic the SDE model architecture from Zhang & Chen (2022) for the flow model $v _ { \\boldsymbol { \\theta } } ( t , \\boldsymbol { x } )$ . The time step $t$ is encoded with 128-dimensional Fourier features, then both $x$ and $t$ are independently processed with two-layer MLPs. The two representations are concatenated and processed through another three-layer MLP to make the prediction. All MLPs use GELU activation and have 128 units per hidden layer. We trained all models with $\\sigma = 0 . 0 5$ and learning rate $1 0 ^ { - 2 }$ , the highest at which they were table, for 1500 batches of size 300, to be consistent with the settings from Zhang $\\&$ Chen (2022). ",
        "page_idx": 31
    },
    {
        "type": "text",
        "text": "",
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "The importance-weighted estimate of the log-partition function is defined ",
        "page_idx": 32
    },
    {
        "type": "equation",
        "img_path": "images/4b8fffe074e3aec7a6d0a01f94c6a3d0bcff0f4a17c62f7b3271bbb2ee423bde.jpg",
        "text": "$$\n\\log \\hat { Z } = \\log \\frac { 1 } { K } \\sum _ { i = 1 } ^ { K } \\frac { R ( x _ { 1 } ^ { ( i ) } ) } { \\mathcal { N } ( x _ { 0 } ^ { ( i ) } ; 0 , \\mathbf { I } ) } \\left| \\frac { \\partial x _ { 1 } } { \\partial x _ { 0 } } \\right| _ { x _ { 0 } = x _ { 0 } ^ { ( i ) } } ,\n$$",
        "text_format": "latex",
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "where $x _ { 0 } ^ { ( i ) }$ are independent samples from the source distribution and $x _ { 1 } ^ { ( i ) }$ is $x _ { 0 } ^ { ( i ) }$ pushed forward by the flow (note that the Jacobian can be computed by differentiating the ODE integrator). We used $K = 6 0 0 0$ samples. ",
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "For MCMC, to be consistent with Zhang & Chen (2022), we generated 15000 samples, each of which was seen 30 times in training. We used 1000 steps of Metropolis-adjusted Langevin sampling with $\\epsilon$ linearly decaying from 0.1 to 0. ",
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "The flow network used to generate Fig. D.9 followed similar settings to those used in §5.1. ",
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "E.7 Unsupervised translation ",
        "text_level": 1,
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "We trained a vanilla convolutional VAE, with about 7 million parameters in the encoder, on CelebA faces scaled to $1 2 8 \\times 1 2 8$ resolution. ",
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "For the flow network $v _ { \\boldsymbol { \\theta } } ( t , \\boldsymbol { x } )$ , we used a MLP with four hidden layers of 512 units and leaky ReLU activations taking the 129-dimensional concatenation of $x$ and $t$ as input. All models CFM and OT-CFM were trained for 5000 batches of size 256 and the Adam optimizer with learning rate $1 0 ^ { - 3 }$ . Integration was performed using the Dormand-Prince integrator with tolerance $1 0 ^ { - 3 }$ . For each attribute, 1000 positive and negative images each were used as a held-out test set. ",
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "Fig. E.1 shows some examples of the learned trajectories. ",
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "E.8 Unconditional CIFAR-10 experiments ",
        "text_level": 1,
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "For the CIFAR-10 experiments we followed the setup as described in Lipman et al. (2023). All methods were trained with the same setup, only differeing in the choice of probability path. Since code has not been released for this work, there are a few parameters which may differ. We summarize the setup here, where the exact parameter choices can be seen in the source code. ",
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "We used the Adam optimizer with $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } = 0 . 9 9 9$ , $\\epsilon = 1 0 ^ { - 8 }$ , and no weight decay. To reproduce Lipman et al. (2023), we used the UNet architecture from Dhariwal $\\&$ Nichol (2021) with channels $= 2 5 6$ , depth $= 2$ channels multiple $= [ 1 , 2 , 2 , 2 ]$ , heads $= 4$ , heads channels $= 6 4$ , attention resolution $= 1 6$ , dropout $= 0 . 0$ , batch size per $\\mathrm { \\ g p u = 1 2 8 }$ , $\\mathrm { \\ g p u s } = 2$ , epochs $= 2 0 0 0$ , maximum learning rate $= 5 \\times 1 0 ^ { - 4 }$ , minimum learning rate $= 0$ , with a learning schedule that increases linearly from the minimum to the maximum learning rate over the first 200 epochs, and decays linearly from back to the minimum after that. We $\\mathrm { u s e } \\sigma = 1 0 ^ { - 6 }$ . For sampling, we use Euler integration using the torchdyn package and dopri5 from the torchdiffeq package. Since the dopri5 solver is an adaptive step size solver, it uses a different number of steps for each integration. We use a batch size of 500 for a 100 total batches and average the number of function evaluations (NFE) over batches. ",
        "page_idx": 32
    },
    {
        "type": "text",
        "text": "For our improved models we use the same parameters as above except we use channels $= 1 2 8$ , dropout = 0.1, a single A100 GPU, steps=400000, $\\sigma = 0$ , constant learning rate of $2 \\times 1 0 ^ { - 4 }$ , gradient clipping with norm $= 1 . 0$ , and exponential moving average weights with decay = 0.9999. ",
        "page_idx": 32
    },
    {
        "type": "image",
        "img_path": "images/efd96d88926137e31a2c3b9929df7d0a84bbb181f6547eb97b907db4d93862e6.jpg",
        "image_caption": [
            "Figure E.1: Image-to-image translation in the latent space of CelebA images: An OT-CNF is trained to translate between latent encodings of images that are negative and positive for a given attribute. The first column is a reconstructed encoding $x _ { 0 }$ of a real negative image. The next ten columns are decodings of images along the flow trajectory with initial condition $x _ { 0 }$ , with $x _ { 1 }$ shown in the right column. Top row: not smiling smiling, not male male, showing the preservation of image structure and other attributes. Bottom row: no mustache mustache, not wearing necktie wearing necktie, showing partial failure modes. Both features are well-predicted by the latent vector, but infrequent in the dataset and highly correlated with other attributes, such as ‘male’, leading to unpredictable behaviour for out-of-distribution samples and modification of attributes different from the target. "
        ],
        "image_footnote": [],
        "page_idx": 33
    }
]