ZHANGYUXUAN-zR commited on
Commit
0d73a55
·
verified ·
1 Parent(s): 9d181fe

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +160 -0
  2. parse/dev/3RBY8fKjHeu/3RBY8fKjHeu_middle.json +0 -0
  3. parse/dev/83LJRUzXWj/83LJRUzXWj_middle.json +0 -0
  4. parse/dev/EbMuimAbPbs/EbMuimAbPbs.md +442 -0
  5. parse/dev/Fkckkr3ya8/Fkckkr3ya8_content_list.json +0 -0
  6. parse/dev/Fkckkr3ya8/Fkckkr3ya8_middle.json +0 -0
  7. parse/dev/NHeAUKlTO8/NHeAUKlTO8.md +404 -0
  8. parse/dev/NHeAUKlTO8/NHeAUKlTO8_content_list.json +2243 -0
  9. parse/dev/NHeAUKlTO8/NHeAUKlTO8_middle.json +0 -0
  10. parse/dev/NHeAUKlTO8/NHeAUKlTO8_model.json +0 -0
  11. parse/dev/T8wHz4rnuGL/T8wHz4rnuGL.md +0 -0
  12. parse/dev/T8wHz4rnuGL/T8wHz4rnuGL_content_list.json +0 -0
  13. parse/dev/UKd6dpVGdu/UKd6dpVGdu.md +347 -0
  14. parse/dev/UKd6dpVGdu/UKd6dpVGdu_middle.json +0 -0
  15. parse/dev/WcZUevpX3H3/WcZUevpX3H3.md +251 -0
  16. parse/dev/WcZUevpX3H3/WcZUevpX3H3_content_list.json +1096 -0
  17. parse/dev/WcZUevpX3H3/WcZUevpX3H3_middle.json +0 -0
  18. parse/dev/WcZUevpX3H3/WcZUevpX3H3_model.json +0 -0
  19. parse/dev/ex60CCi5GS/ex60CCi5GS.md +272 -0
  20. parse/dev/ex60CCi5GS/ex60CCi5GS_content_list.json +1167 -0
  21. parse/dev/iC4UHbQ01Mp/iC4UHbQ01Mp.md +301 -0
  22. parse/dev/iC4UHbQ01Mp/iC4UHbQ01Mp_model.json +0 -0
  23. parse/dev/kxXvopt9pWK/kxXvopt9pWK.md +322 -0
  24. parse/dev/kxXvopt9pWK/kxXvopt9pWK_content_list.json +1494 -0
  25. parse/dev/kxXvopt9pWK/kxXvopt9pWK_model.json +0 -0
  26. parse/dev/rwE8SshAlxw/rwE8SshAlxw.md +464 -0
  27. parse/dev/rwE8SshAlxw/rwE8SshAlxw_content_list.json +0 -0
  28. parse/dev/rwE8SshAlxw/rwE8SshAlxw_middle.json +0 -0
  29. parse/dev/rwE8SshAlxw/rwE8SshAlxw_model.json +0 -0
  30. parse/dev/tGHi1HFNBx1/tGHi1HFNBx1.md +0 -0
  31. parse/dev/tGHi1HFNBx1/tGHi1HFNBx1_content_list.json +0 -0
  32. parse/dev/tGHi1HFNBx1/tGHi1HFNBx1_middle.json +0 -0
  33. parse/dev/tGHi1HFNBx1/tGHi1HFNBx1_model.json +0 -0
  34. parse/dev/voV_TRqcWh/voV_TRqcWh.md +299 -0
  35. parse/dev/voV_TRqcWh/voV_TRqcWh_content_list.json +1408 -0
  36. parse/dev/voV_TRqcWh/voV_TRqcWh_middle.json +0 -0
  37. parse/dev/voV_TRqcWh/voV_TRqcWh_model.json +0 -0
  38. parse/dev/w1UbdvWH_R3/w1UbdvWH_R3.md +0 -0
  39. parse/dev/w1UbdvWH_R3/w1UbdvWH_R3_content_list.json +0 -0
  40. parse/dev/w1UbdvWH_R3/w1UbdvWH_R3_middle.json +0 -0
  41. parse/dev/w1UbdvWH_R3/w1UbdvWH_R3_model.json +0 -0
  42. parse/train/8vXYx6d8Wc/8vXYx6d8Wc_layout.pdf +3 -0
  43. parse/train/8vXYx6d8Wc/8vXYx6d8Wc_origin.pdf +3 -0
  44. parse/train/8vXYx6d8Wc/8vXYx6d8Wc_span.pdf +3 -0
  45. parse/train/AjZCiKuWQ9n/AjZCiKuWQ9n_layout.pdf +3 -0
  46. parse/train/AjZCiKuWQ9n/AjZCiKuWQ9n_origin.pdf +3 -0
  47. parse/train/AjZCiKuWQ9n/AjZCiKuWQ9n_span.pdf +3 -0
  48. parse/train/B1MIBs05F7/B1MIBs05F7_layout.pdf +3 -0
  49. parse/train/B1MIBs05F7/B1MIBs05F7_origin.pdf +3 -0
  50. parse/train/B1MIBs05F7/B1MIBs05F7_span.pdf +3 -0
.gitattributes CHANGED
@@ -3689,3 +3689,163 @@ parse/train/SJxbu6VKDr/SJxbu6VKDr_layout.pdf filter=lfs diff=lfs merge=lfs -text
3689
  parse/train/rkhlb8lCZ/rkhlb8lCZ_layout.pdf filter=lfs diff=lfs merge=lfs -text
3690
  parse/train/rkhlb8lCZ/rkhlb8lCZ_origin.pdf filter=lfs diff=lfs merge=lfs -text
3691
  parse/train/rkhlb8lCZ/rkhlb8lCZ_span.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3689
  parse/train/rkhlb8lCZ/rkhlb8lCZ_layout.pdf filter=lfs diff=lfs merge=lfs -text
3690
  parse/train/rkhlb8lCZ/rkhlb8lCZ_origin.pdf filter=lfs diff=lfs merge=lfs -text
3691
  parse/train/rkhlb8lCZ/rkhlb8lCZ_span.pdf filter=lfs diff=lfs merge=lfs -text
3692
+ parse/train/B1esx6EYvr/B1esx6EYvr_origin.pdf filter=lfs diff=lfs merge=lfs -text
3693
+ parse/train/B1esx6EYvr/B1esx6EYvr_layout.pdf filter=lfs diff=lfs merge=lfs -text
3694
+ parse/train/rJe04p4YDB/rJe04p4YDB_span.pdf filter=lfs diff=lfs merge=lfs -text
3695
+ parse/train/rJe04p4YDB/rJe04p4YDB_origin.pdf filter=lfs diff=lfs merge=lfs -text
3696
+ parse/train/rJe04p4YDB/rJe04p4YDB_layout.pdf filter=lfs diff=lfs merge=lfs -text
3697
+ parse/train/Syez3j0cKX/Syez3j0cKX_layout.pdf filter=lfs diff=lfs merge=lfs -text
3698
+ parse/train/Syez3j0cKX/Syez3j0cKX_origin.pdf filter=lfs diff=lfs merge=lfs -text
3699
+ parse/train/Syez3j0cKX/Syez3j0cKX_span.pdf filter=lfs diff=lfs merge=lfs -text
3700
+ parse/train/H1eJxngCW/H1eJxngCW_layout.pdf filter=lfs diff=lfs merge=lfs -text
3701
+ parse/train/H1eJxngCW/H1eJxngCW_span.pdf filter=lfs diff=lfs merge=lfs -text
3702
+ parse/train/H1eJxngCW/H1eJxngCW_origin.pdf filter=lfs diff=lfs merge=lfs -text
3703
+ parse/train/ueGDv64HmO/ueGDv64HmO_origin.pdf filter=lfs diff=lfs merge=lfs -text
3704
+ parse/train/ueGDv64HmO/ueGDv64HmO_layout.pdf filter=lfs diff=lfs merge=lfs -text
3705
+ parse/train/ueGDv64HmO/ueGDv64HmO_span.pdf filter=lfs diff=lfs merge=lfs -text
3706
+ parse/train/BkGiPoC5FX/BkGiPoC5FX_origin.pdf filter=lfs diff=lfs merge=lfs -text
3707
+ parse/train/BkGiPoC5FX/BkGiPoC5FX_layout.pdf filter=lfs diff=lfs merge=lfs -text
3708
+ parse/train/BkGiPoC5FX/BkGiPoC5FX_span.pdf filter=lfs diff=lfs merge=lfs -text
3709
+ parse/train/BklmtJBKDB/BklmtJBKDB_span.pdf filter=lfs diff=lfs merge=lfs -text
3710
+ parse/train/BklmtJBKDB/BklmtJBKDB_layout.pdf filter=lfs diff=lfs merge=lfs -text
3711
+ parse/train/BklmtJBKDB/BklmtJBKDB_origin.pdf filter=lfs diff=lfs merge=lfs -text
3712
+ parse/train/JkfYjnOEo6M/JkfYjnOEo6M_layout.pdf filter=lfs diff=lfs merge=lfs -text
3713
+ parse/train/JkfYjnOEo6M/JkfYjnOEo6M_origin.pdf filter=lfs diff=lfs merge=lfs -text
3714
+ parse/train/JkfYjnOEo6M/JkfYjnOEo6M_span.pdf filter=lfs diff=lfs merge=lfs -text
3715
+ parse/train/rknt2Be0-/rknt2Be0-_layout.pdf filter=lfs diff=lfs merge=lfs -text
3716
+ parse/train/rknt2Be0-/rknt2Be0-_origin.pdf filter=lfs diff=lfs merge=lfs -text
3717
+ parse/train/rknt2Be0-/rknt2Be0-_span.pdf filter=lfs diff=lfs merge=lfs -text
3718
+ parse/train/r1IRctqxg/r1IRctqxg_span.pdf filter=lfs diff=lfs merge=lfs -text
3719
+ parse/train/r1IRctqxg/r1IRctqxg_layout.pdf filter=lfs diff=lfs merge=lfs -text
3720
+ parse/train/r1IRctqxg/r1IRctqxg_origin.pdf filter=lfs diff=lfs merge=lfs -text
3721
+ parse/train/ByxT7TNFvH/ByxT7TNFvH_origin.pdf filter=lfs diff=lfs merge=lfs -text
3722
+ parse/train/ByxT7TNFvH/ByxT7TNFvH_layout.pdf filter=lfs diff=lfs merge=lfs -text
3723
+ parse/train/ByxT7TNFvH/ByxT7TNFvH_span.pdf filter=lfs diff=lfs merge=lfs -text
3724
+ parse/train/BJg_roAcK7/BJg_roAcK7_origin.pdf filter=lfs diff=lfs merge=lfs -text
3725
+ parse/train/BJg_roAcK7/BJg_roAcK7_span.pdf filter=lfs diff=lfs merge=lfs -text
3726
+ parse/train/BJg_roAcK7/BJg_roAcK7_layout.pdf filter=lfs diff=lfs merge=lfs -text
3727
+ parse/train/HkL7n1-0b/HkL7n1-0b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3728
+ parse/train/HkL7n1-0b/HkL7n1-0b_span.pdf filter=lfs diff=lfs merge=lfs -text
3729
+ parse/train/HkL7n1-0b/HkL7n1-0b_layout.pdf filter=lfs diff=lfs merge=lfs -text
3730
+ parse/train/H1kG7GZAW/H1kG7GZAW_span.pdf filter=lfs diff=lfs merge=lfs -text
3731
+ parse/train/H1kG7GZAW/H1kG7GZAW_layout.pdf filter=lfs diff=lfs merge=lfs -text
3732
+ parse/train/H1kG7GZAW/H1kG7GZAW_origin.pdf filter=lfs diff=lfs merge=lfs -text
3733
+ parse/train/AjZCiKuWQ9n/AjZCiKuWQ9n_span.pdf filter=lfs diff=lfs merge=lfs -text
3734
+ parse/train/AjZCiKuWQ9n/AjZCiKuWQ9n_layout.pdf filter=lfs diff=lfs merge=lfs -text
3735
+ parse/train/AjZCiKuWQ9n/AjZCiKuWQ9n_origin.pdf filter=lfs diff=lfs merge=lfs -text
3736
+ parse/train/ByBAl2eAZ/ByBAl2eAZ_span.pdf filter=lfs diff=lfs merge=lfs -text
3737
+ parse/train/ByBAl2eAZ/ByBAl2eAZ_layout.pdf filter=lfs diff=lfs merge=lfs -text
3738
+ parse/train/ByBAl2eAZ/ByBAl2eAZ_origin.pdf filter=lfs diff=lfs merge=lfs -text
3739
+ parse/train/BJg_2JHKvH/BJg_2JHKvH_origin.pdf filter=lfs diff=lfs merge=lfs -text
3740
+ parse/train/BJg_2JHKvH/BJg_2JHKvH_span.pdf filter=lfs diff=lfs merge=lfs -text
3741
+ parse/train/BJg_2JHKvH/BJg_2JHKvH_layout.pdf filter=lfs diff=lfs merge=lfs -text
3742
+ parse/train/PxMfDdPnTfV/PxMfDdPnTfV_span.pdf filter=lfs diff=lfs merge=lfs -text
3743
+ parse/train/PxMfDdPnTfV/PxMfDdPnTfV_layout.pdf filter=lfs diff=lfs merge=lfs -text
3744
+ parse/train/PxMfDdPnTfV/PxMfDdPnTfV_origin.pdf filter=lfs diff=lfs merge=lfs -text
3745
+ parse/train/rkxacs0qY7/rkxacs0qY7_origin.pdf filter=lfs diff=lfs merge=lfs -text
3746
+ parse/train/rkxacs0qY7/rkxacs0qY7_layout.pdf filter=lfs diff=lfs merge=lfs -text
3747
+ parse/train/rkxacs0qY7/rkxacs0qY7_span.pdf filter=lfs diff=lfs merge=lfs -text
3748
+ parse/train/n646avOVJ7q/n646avOVJ7q_origin.pdf filter=lfs diff=lfs merge=lfs -text
3749
+ parse/train/n646avOVJ7q/n646avOVJ7q_layout.pdf filter=lfs diff=lfs merge=lfs -text
3750
+ parse/train/n646avOVJ7q/n646avOVJ7q_span.pdf filter=lfs diff=lfs merge=lfs -text
3751
+ parse/train/uV7hcsjqM-/uV7hcsjqM-_layout.pdf filter=lfs diff=lfs merge=lfs -text
3752
+ parse/train/uV7hcsjqM-/uV7hcsjqM-_origin.pdf filter=lfs diff=lfs merge=lfs -text
3753
+ parse/train/uV7hcsjqM-/uV7hcsjqM-_span.pdf filter=lfs diff=lfs merge=lfs -text
3754
+ parse/train/r1lWUoA9FQ/r1lWUoA9FQ_origin.pdf filter=lfs diff=lfs merge=lfs -text
3755
+ parse/train/r1lWUoA9FQ/r1lWUoA9FQ_span.pdf filter=lfs diff=lfs merge=lfs -text
3756
+ parse/train/r1lWUoA9FQ/r1lWUoA9FQ_layout.pdf filter=lfs diff=lfs merge=lfs -text
3757
+ parse/train/8vXYx6d8Wc/8vXYx6d8Wc_origin.pdf filter=lfs diff=lfs merge=lfs -text
3758
+ parse/train/8vXYx6d8Wc/8vXYx6d8Wc_span.pdf filter=lfs diff=lfs merge=lfs -text
3759
+ parse/train/8vXYx6d8Wc/8vXYx6d8Wc_layout.pdf filter=lfs diff=lfs merge=lfs -text
3760
+ parse/train/HJlxIJBFDr/HJlxIJBFDr_span.pdf filter=lfs diff=lfs merge=lfs -text
3761
+ parse/train/HJlxIJBFDr/HJlxIJBFDr_origin.pdf filter=lfs diff=lfs merge=lfs -text
3762
+ parse/train/HJlxIJBFDr/HJlxIJBFDr_layout.pdf filter=lfs diff=lfs merge=lfs -text
3763
+ parse/train/SJlDDnVKwS/SJlDDnVKwS_span.pdf filter=lfs diff=lfs merge=lfs -text
3764
+ parse/train/SJlDDnVKwS/SJlDDnVKwS_layout.pdf filter=lfs diff=lfs merge=lfs -text
3765
+ parse/train/SJlDDnVKwS/SJlDDnVKwS_origin.pdf filter=lfs diff=lfs merge=lfs -text
3766
+ parse/train/WoLQsYU8aZ/WoLQsYU8aZ_origin.pdf filter=lfs diff=lfs merge=lfs -text
3767
+ parse/train/WoLQsYU8aZ/WoLQsYU8aZ_span.pdf filter=lfs diff=lfs merge=lfs -text
3768
+ parse/train/WoLQsYU8aZ/WoLQsYU8aZ_layout.pdf filter=lfs diff=lfs merge=lfs -text
3769
+ parse/train/jlgCDIrAv0_/jlgCDIrAv0__origin.pdf filter=lfs diff=lfs merge=lfs -text
3770
+ parse/train/jlgCDIrAv0_/jlgCDIrAv0__span.pdf filter=lfs diff=lfs merge=lfs -text
3771
+ parse/train/jlgCDIrAv0_/jlgCDIrAv0__layout.pdf filter=lfs diff=lfs merge=lfs -text
3772
+ parse/train/HyzdRiR9Y7/HyzdRiR9Y7_origin.pdf filter=lfs diff=lfs merge=lfs -text
3773
+ parse/train/HyzdRiR9Y7/HyzdRiR9Y7_layout.pdf filter=lfs diff=lfs merge=lfs -text
3774
+ parse/train/HyzdRiR9Y7/HyzdRiR9Y7_span.pdf filter=lfs diff=lfs merge=lfs -text
3775
+ parse/train/JOxB9h40A-1/JOxB9h40A-1_span.pdf filter=lfs diff=lfs merge=lfs -text
3776
+ parse/train/JOxB9h40A-1/JOxB9h40A-1_layout.pdf filter=lfs diff=lfs merge=lfs -text
3777
+ parse/train/JOxB9h40A-1/JOxB9h40A-1_origin.pdf filter=lfs diff=lfs merge=lfs -text
3778
+ parse/train/ByquB-WC-/ByquB-WC-_origin.pdf filter=lfs diff=lfs merge=lfs -text
3779
+ parse/train/ByquB-WC-/ByquB-WC-_layout.pdf filter=lfs diff=lfs merge=lfs -text
3780
+ parse/train/ByquB-WC-/ByquB-WC-_span.pdf filter=lfs diff=lfs merge=lfs -text
3781
+ parse/train/SyXNErg0W/SyXNErg0W_origin.pdf filter=lfs diff=lfs merge=lfs -text
3782
+ parse/train/SyXNErg0W/SyXNErg0W_layout.pdf filter=lfs diff=lfs merge=lfs -text
3783
+ parse/train/SyXNErg0W/SyXNErg0W_span.pdf filter=lfs diff=lfs merge=lfs -text
3784
+ parse/train/B1MIBs05F7/B1MIBs05F7_layout.pdf filter=lfs diff=lfs merge=lfs -text
3785
+ parse/train/B1MIBs05F7/B1MIBs05F7_span.pdf filter=lfs diff=lfs merge=lfs -text
3786
+ parse/train/B1MIBs05F7/B1MIBs05F7_origin.pdf filter=lfs diff=lfs merge=lfs -text
3787
+ parse/train/rygxdA4YPS/rygxdA4YPS_layout.pdf filter=lfs diff=lfs merge=lfs -text
3788
+ parse/train/rygxdA4YPS/rygxdA4YPS_span.pdf filter=lfs diff=lfs merge=lfs -text
3789
+ parse/train/rygxdA4YPS/rygxdA4YPS_origin.pdf filter=lfs diff=lfs merge=lfs -text
3790
+ parse/train/BkisuzWRW/BkisuzWRW_layout.pdf filter=lfs diff=lfs merge=lfs -text
3791
+ parse/train/BkisuzWRW/BkisuzWRW_span.pdf filter=lfs diff=lfs merge=lfs -text
3792
+ parse/train/BkisuzWRW/BkisuzWRW_origin.pdf filter=lfs diff=lfs merge=lfs -text
3793
+ parse/train/J64lDCrYGi/J64lDCrYGi_layout.pdf filter=lfs diff=lfs merge=lfs -text
3794
+ parse/train/J64lDCrYGi/J64lDCrYGi_span.pdf filter=lfs diff=lfs merge=lfs -text
3795
+ parse/train/J64lDCrYGi/J64lDCrYGi_origin.pdf filter=lfs diff=lfs merge=lfs -text
3796
+ parse/train/xLExSzfIDmo/xLExSzfIDmo_origin.pdf filter=lfs diff=lfs merge=lfs -text
3797
+ parse/train/xLExSzfIDmo/xLExSzfIDmo_span.pdf filter=lfs diff=lfs merge=lfs -text
3798
+ parse/train/xLExSzfIDmo/xLExSzfIDmo_layout.pdf filter=lfs diff=lfs merge=lfs -text
3799
+ parse/train/rkhxwltab/rkhxwltab_origin.pdf filter=lfs diff=lfs merge=lfs -text
3800
+ parse/train/rkhxwltab/rkhxwltab_layout.pdf filter=lfs diff=lfs merge=lfs -text
3801
+ parse/train/rkhxwltab/rkhxwltab_span.pdf filter=lfs diff=lfs merge=lfs -text
3802
+ parse/train/BJx040EFvH/BJx040EFvH_origin.pdf filter=lfs diff=lfs merge=lfs -text
3803
+ parse/train/BJx040EFvH/BJx040EFvH_layout.pdf filter=lfs diff=lfs merge=lfs -text
3804
+ parse/train/BJx040EFvH/BJx040EFvH_span.pdf filter=lfs diff=lfs merge=lfs -text
3805
+ parse/train/K_Mnsw5VoOW/K_Mnsw5VoOW_span.pdf filter=lfs diff=lfs merge=lfs -text
3806
+ parse/train/K_Mnsw5VoOW/K_Mnsw5VoOW_origin.pdf filter=lfs diff=lfs merge=lfs -text
3807
+ parse/train/K_Mnsw5VoOW/K_Mnsw5VoOW_layout.pdf filter=lfs diff=lfs merge=lfs -text
3808
+ parse/train/HklRwaEKwB/HklRwaEKwB_origin.pdf filter=lfs diff=lfs merge=lfs -text
3809
+ parse/train/HklRwaEKwB/HklRwaEKwB_layout.pdf filter=lfs diff=lfs merge=lfs -text
3810
+ parse/train/HklRwaEKwB/HklRwaEKwB_span.pdf filter=lfs diff=lfs merge=lfs -text
3811
+ parse/train/rkePU0VYDr/rkePU0VYDr_origin.pdf filter=lfs diff=lfs merge=lfs -text
3812
+ parse/train/rkePU0VYDr/rkePU0VYDr_span.pdf filter=lfs diff=lfs merge=lfs -text
3813
+ parse/train/rkePU0VYDr/rkePU0VYDr_layout.pdf filter=lfs diff=lfs merge=lfs -text
3814
+ parse/train/S1l-C0NtwS/S1l-C0NtwS_span.pdf filter=lfs diff=lfs merge=lfs -text
3815
+ parse/train/S1l-C0NtwS/S1l-C0NtwS_origin.pdf filter=lfs diff=lfs merge=lfs -text
3816
+ parse/train/S1l-C0NtwS/S1l-C0NtwS_layout.pdf filter=lfs diff=lfs merge=lfs -text
3817
+ parse/train/S1eALyrYDH/S1eALyrYDH_span.pdf filter=lfs diff=lfs merge=lfs -text
3818
+ parse/train/S1eALyrYDH/S1eALyrYDH_layout.pdf filter=lfs diff=lfs merge=lfs -text
3819
+ parse/train/S1eALyrYDH/S1eALyrYDH_origin.pdf filter=lfs diff=lfs merge=lfs -text
3820
+ parse/train/B1e-kxSKDH/B1e-kxSKDH_origin.pdf filter=lfs diff=lfs merge=lfs -text
3821
+ parse/train/B1e-kxSKDH/B1e-kxSKDH_layout.pdf filter=lfs diff=lfs merge=lfs -text
3822
+ parse/train/B1e-kxSKDH/B1e-kxSKDH_span.pdf filter=lfs diff=lfs merge=lfs -text
3823
+ parse/train/rJxcBpNKPr/rJxcBpNKPr_layout.pdf filter=lfs diff=lfs merge=lfs -text
3824
+ parse/train/rJxcBpNKPr/rJxcBpNKPr_origin.pdf filter=lfs diff=lfs merge=lfs -text
3825
+ parse/train/rJxcBpNKPr/rJxcBpNKPr_span.pdf filter=lfs diff=lfs merge=lfs -text
3826
+ parse/train/JrsfBJtDFdI/JrsfBJtDFdI_span.pdf filter=lfs diff=lfs merge=lfs -text
3827
+ parse/train/JrsfBJtDFdI/JrsfBJtDFdI_layout.pdf filter=lfs diff=lfs merge=lfs -text
3828
+ parse/train/JrsfBJtDFdI/JrsfBJtDFdI_origin.pdf filter=lfs diff=lfs merge=lfs -text
3829
+ parse/train/HyMTkQZAb/HyMTkQZAb_layout.pdf filter=lfs diff=lfs merge=lfs -text
3830
+ parse/train/HyMTkQZAb/HyMTkQZAb_origin.pdf filter=lfs diff=lfs merge=lfs -text
3831
+ parse/train/HyMTkQZAb/HyMTkQZAb_span.pdf filter=lfs diff=lfs merge=lfs -text
3832
+ parse/train/rkgW0oA9FX/rkgW0oA9FX_origin.pdf filter=lfs diff=lfs merge=lfs -text
3833
+ parse/train/rkgW0oA9FX/rkgW0oA9FX_span.pdf filter=lfs diff=lfs merge=lfs -text
3834
+ parse/train/rkgW0oA9FX/rkgW0oA9FX_layout.pdf filter=lfs diff=lfs merge=lfs -text
3835
+ parse/train/B1Yy1BxCZ/B1Yy1BxCZ_span.pdf filter=lfs diff=lfs merge=lfs -text
3836
+ parse/train/B1Yy1BxCZ/B1Yy1BxCZ_layout.pdf filter=lfs diff=lfs merge=lfs -text
3837
+ parse/train/B1Yy1BxCZ/B1Yy1BxCZ_origin.pdf filter=lfs diff=lfs merge=lfs -text
3838
+ parse/train/aHK-onEhYRg/aHK-onEhYRg_layout.pdf filter=lfs diff=lfs merge=lfs -text
3839
+ parse/train/aHK-onEhYRg/aHK-onEhYRg_origin.pdf filter=lfs diff=lfs merge=lfs -text
3840
+ parse/train/aHK-onEhYRg/aHK-onEhYRg_span.pdf filter=lfs diff=lfs merge=lfs -text
3841
+ parse/train/BJe7h34YDS/BJe7h34YDS_origin.pdf filter=lfs diff=lfs merge=lfs -text
3842
+ parse/train/BJe7h34YDS/BJe7h34YDS_span.pdf filter=lfs diff=lfs merge=lfs -text
3843
+ parse/train/BJe7h34YDS/BJe7h34YDS_layout.pdf filter=lfs diff=lfs merge=lfs -text
3844
+ parse/train/Kai3KkCOCp/Kai3KkCOCp_span.pdf filter=lfs diff=lfs merge=lfs -text
3845
+ parse/train/Kai3KkCOCp/Kai3KkCOCp_layout.pdf filter=lfs diff=lfs merge=lfs -text
3846
+ parse/train/Kai3KkCOCp/Kai3KkCOCp_origin.pdf filter=lfs diff=lfs merge=lfs -text
3847
+ parse/train/SyfdsjA9FX/SyfdsjA9FX_span.pdf filter=lfs diff=lfs merge=lfs -text
3848
+ parse/train/SyfdsjA9FX/SyfdsjA9FX_origin.pdf filter=lfs diff=lfs merge=lfs -text
3849
+ parse/train/SyfdsjA9FX/SyfdsjA9FX_layout.pdf filter=lfs diff=lfs merge=lfs -text
3850
+ parse/train/Bkeuz20cYm/Bkeuz20cYm_layout.pdf filter=lfs diff=lfs merge=lfs -text
3851
+ parse/train/Bkeuz20cYm/Bkeuz20cYm_origin.pdf filter=lfs diff=lfs merge=lfs -text
parse/dev/3RBY8fKjHeu/3RBY8fKjHeu_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/83LJRUzXWj/83LJRUzXWj_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/EbMuimAbPbs/EbMuimAbPbs.md ADDED
@@ -0,0 +1,442 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Flamingo: a Visual Language Model for Few-Shot Learning
2
+
3
+ Jean-Baptiste Alayrac\*,‡ Jeff Donahue\* Pauline Luc\* Antoine Miech\*
4
+
5
+ Iain Barr† Yana Hasson† Karel Lenc† Arthur Mensch† Katie Millican†
6
+
7
+ Malcolm Reynolds† Roman Ring† Eliza Rutherford† Serkan Cabi Tengda Han
8
+
9
+ Zhitao Gong Sina Samangooei Marianne Monteiro Jacob Menick
10
+
11
+ Sebastian Borgeaud Andrew Brock Aida Nematzadeh Sahand Sharifzadeh
12
+
13
+ Mikolaj Binkowski Ricardo Barreira Oriol Vinyals Andrew Zisserman
14
+
15
+ Karen Simonyan\*,‡
16
+
17
+ \* Equal contributions, ordered alphabetically, † Equal contributions, ordered alphabetically, ‡ Equal senior contributions
18
+
19
+ # DeepMind
20
+
21
+ # Abstract
22
+
23
+ Building models that can be rapidly adapted to novel tasks using only a handful of annotated examples is an open challenge for multimodal machine learning research. We introduce Flamingo, a family of Visual Language Models (VLM) with this ability. We propose key architectural innovations to: (i) bridge powerful pretrained vision-only and language-only models, (ii) handle sequences of arbitrarily interleaved visual and textual data, and (iii) seamlessly ingest images or videos as inputs. Thanks to their flexibility, Flamingo models can be trained on large-scale multimodal web corpora containing arbitrarily interleaved text and images, which is key to endow them with in-context few-shot learning capabilities. We perform a thorough evaluation of our models, exploring and measuring their ability to rapidly adapt to a variety of image and video tasks. These include open-ended tasks such as visual question-answering, where the model is prompted with a question which it has to answer; captioning tasks, which evaluate the ability to describe a scene or an event; and close-ended tasks such as multiple-choice visual question-answering. For tasks lying anywhere on this spectrum, a single Flamingo model can achieve a new state of the art with few-shot learning, simply by prompting the model with task-specific examples. On numerous benchmarks, Flamingo outperforms models fine-tuned on thousands of times more task-specific data.
24
+
25
+ ![](images/500fea4496e438926bc70a717688f49aef7e0ec0799bbdcc53a49ceb3646c261.jpg)
26
+ Figure 1: Selected examples of inputs and outputs obtained from Flamingo-80B. Flamingo can rapidly adapt to various image/video understanding tasks with few-shot prompting (top). Out of the box, Flamingo is also capable of multi-image visual dialogue (bottom). More examples in Appendix C.
27
+
28
+ ![](images/67d3c4f598fa5f712a5a0d97a635ffbeefb2449fa69c58e60a16d12063b978e9.jpg)
29
+ Figure 2: Flamingo results overview. Left: Our largest model, dubbed Flamingo, outperforms state-of-the-art fine-tuned models on 6 of the 16 tasks we consider with no fine-tuning. For the 9 tasks with published few-shot results, Flamingo sets the new few-shot state of the art. Note: We omit RareAct, our 16th benchmark, as it is a zero-shot benchmark with no available fine-tuned results to compare to. Right: Flamingo performance improves with model size and number of shots.
30
+
31
+ # 1 Introduction
32
+
33
+ One key aspect of intelligence is the ability to quickly learn to perform a new task given a short instruction [33, 70]. While initial progress has been made towards a similar capability in computer vision, the most widely used paradigm still consists of first pretraining on a large amount of supervised data, before fine-tuning the model on the task of interest [66, 118, 143]. However, successful finetuning often requires many thousands of annotated data points. In addition, it often requires careful per-task hyperparameter tuning and is also resource intensive. Recently, multimodal vision-language models trained with a contrastive objective [50, 85] have enabled zero-shot adaptation to novel tasks, without the need for fine-tuning. However, because these models simply provide a similarity score between a text and an image, they can only address limited use cases such as classification, where a finite set of outcomes is provided beforehand. They crucially lack the ability to generate language, which makes them less suitable to more open-ended tasks such as captioning or visual questionanswering. Others have explored visually-conditioned language generation [17, 114, 119, 124, 132] but have not yet shown good performance in low-data regimes.
34
+
35
+ We introduce Flamingo, a Visual Language Model (VLM) that sets a new state of the art in few-shot learning on a wide range of open-ended vision and language tasks, simply by being prompted with a few input/output examples, as illustrated in Figure 1. Of the 16 tasks we consider, Flamingo also surpasses the fine-tuned state of the art on 6 tasks, despite using orders of magnitude less task-specific training data (see Figure 2). To achieve this, Flamingo takes inspiration from recent work on large language models (LMs) which are good few-shot learners [11, 18, 42, 86]. A single large LM can achieve strong performance on many tasks using only its text interface: a few examples of a task are provided to the model as a prompt, along with a query input, and the model generates a continuation to produce a predicted output for that query. We show that the same can be done for image and video understanding tasks such as classification, captioning, or question-answering: these can be cast as text prediction problems with visual input conditioning. The difference from a LM is that the model must be able to ingest a multimodal prompt containing images and/or videos interleaved with text. Flamingo models have this capability—they are visually-conditioned autoregressive text generation models able to ingest a sequence of text tokens interleaved with images and/or videos, and produce text as output. Flamingo models leverage two complementary pre-trained and frozen models: a vision model which can “perceive” visual scenes and a large LM which performs a basic form of reasoning. Novel architecture components are added in between these models to connect them in a way that preserves the knowledge they have accumulated during computationally intensive pre-training. Flamingo models are also able to ingest high-resolution images or videos thanks to a Perceiver-based [48] architecture that can produce a small fixed number of visual tokens per image/video, given a large and variable number of visual input features.
36
+
37
+ A crucial aspect for the performance of large LMs is that they are trained on a large amount of text data. This training provides general-purpose generation capabilities that allows these LMs to perform well when prompted with task examples. Similarly, we demonstrate that the way we train the Flamingo models is crucial for their final performance. They are trained on a carefully chosen mixture of complementary large-scale multimodal data coming only from the web, without using any data annotated for machine learning purposes. After this training, a Flamingo model can be directly adapted to vision tasks via simple few-shot learning without any task-specific tuning.
38
+
39
+ ![](images/f1607ad89c4ea7b40f8723498b439571ecfb75b7d7f622105db2d86667955992.jpg)
40
+ Figure 3: Flamingo architecture overview. Flamingo is a family of visual language models (VLMs) that take as input visual data interleaved with text and produce free-form text as output.
41
+
42
+ Contributions. In summary, our contributions are the following: (i) We introduce the Flamingo family of VLMs which can perform various multimodal tasks (such as captioning, visual dialogue, or visual question-answering) from only a few input/output examples. Thanks to architectural innovations, the Flamingo models can efficiently accept arbitrarily interleaved visual data and text as input and generate text in an open-ended manner. (ii) We quantitatively evaluate how Flamingo models can be adapted to various tasks via few-shot learning. We notably reserve a large set of heldout benchmarks which have not been used for validation of any design decisions or hyperparameters of the approach. We use these to estimate unbiased few-shot performance. (iii) Flamingo sets a new state of the art in few-shot learning on a wide array of 16 multimodal language and image/video understanding tasks. On 6 of these 16 tasks, Flamingo also outperforms the fine-tuned state of the art despite using only 32 task-specific examples, around 1000 times less task-specific training data than the current state of the art. With a larger annotation budget, Flamingo can also be effectively fine-tuned to set a new state of the art on five additional challenging benchmarks: VQAv2, VATEX, VizWiz, MSRVTTQA, and HatefulMemes.
43
+
44
+ # 2 Approach
45
+
46
+ This section describes Flamingo: a visual language model that accepts text interleaved with images/videos as input and outputs free-form text. The key architectural components shown in Figure 3 are chosen to leverage pretrained vision and language models and bridge them effectively. First, the Perceiver Resampler (Section 2.1) receives spatio-temporal features from the Vision Encoder (obtained from either an image or a video) and outputs a fixed number of visual tokens. Second, these visual tokens are used to condition the frozen LM using freshly initialised cross-attention layers (Section 2.2) that are interleaved between the pretrained LM layers. These new layers offer an expressive way for the LM to incorporate visual information for the next-token prediction task. Flamingo models the likelihood of text $y$ conditioned on interleaved images and videos $x$ as follows:
47
+
48
+ $$
49
+ p ( \boldsymbol y | \boldsymbol x ) = \prod _ { \ell = 1 } ^ { L } p ( \boldsymbol y _ { \ell } | \boldsymbol y _ { \angle \ell } , \boldsymbol x _ { \le \ell } ) ,
50
+ $$
51
+
52
+ where $y _ { \ell }$ is the $\ell$ -th language token of the input text, $y _ { < \ell }$ is the set of preceding tokens, $x _ { \le \ell }$ is the set of images/videos preceding token $y _ { \ell }$ in the interleaved sequence and $p$ is parametrized by a Flamingo model. The ability to handle interleaved text and visual sequences (Section 2.3) makes it natural to use Flamingo models for in-context few-shot learning, analogously to GPT-3 with few-shot text prompting. The model is trained on a diverse mixture of datasets as described in Section 2.4.
53
+
54
+ ![](images/88258190e789163c53cdf24613ff85d84b6075a3d7a575194ef67f24043af676.jpg)
55
+ Figure 4: GATED XATTN-DENSE layers. To condition the LM on visual inputs, we insert new cross-attention layers between existing pretrained and frozen LM layers. The keys and values in these layers are obtained from the vision features while the queries are derived from the language inputs. They are followed by dense feed-forward layers. These layers are gated so that the LM is kept intact at initialization for improved stability and performance.
56
+
57
+ # 2.1 Visual processing and the Perceiver Resampler
58
+
59
+ Vision Encoder: from pixels to features. Our vision encoder is a pretrained and frozen NormalizerFree ResNet (NFNet) [10] – we use the F6 model. We pretrain the vision encoder using a contrastive objective on our datasets of image and text pairs, using the two-term contrastive loss from Radford et al. [85]. We use the output of the final stage, a 2D spatial grid of features that is flattened to a 1D sequence. For video inputs, frames are sampled at 1 FPS and encoded independently to obtain a 3D spatio-temporal grid of features to which learned temporal embeddings are added. Features are then flattened to 1D before being fed to the Perceiver Resampler. More details on the contrastive model training and performance are given in Appendix B.1.3 and Appendix B.3.2, respectively.
60
+
61
+ Perceiver Resampler: from varying-size large feature maps to few visual tokens. This module connects the vision encoder to the frozen language model as shown in Figure 3. It takes as input a variable number of image or video features from the vision encoder and produces a fixed number of visual outputs (64), reducing the computational complexity of the vision-text cross-attention. Similar to Perceiver [48] and DETR [13], we learn a predefined number of latent input queries which are fed to a Transformer and cross-attend to the visual features. We show in our ablation studies (Section 3.3) that using such a vision-language resampler module outperforms a plain Transformer and an MLP. We provide an illustration, more architectural details, and pseudo-code in Appendix A.1.1.
62
+
63
+ # 2.2 Conditioning frozen language models on visual representations
64
+
65
+ Text generation is performed by a Transformer decoder, conditioned on the visual representations produced by the Perceiver Resampler. We interleave pretrained and frozen text-only LM blocks with blocks trained from scratch that cross-attend to the visual output from the Perceiver Resampler.
66
+
67
+ Interleaving new GATED XATTN-DENSE layers within a frozen pretrained LM. We freeze the pretrained LM blocks, and insert gated cross-attention dense blocks (Figure 4) between the original layers, trained from scratch. To ensure that at initialization, the conditioned model yields the same results as the original language model, we use a tanh-gating mechanism [41]. This multiplies the output of a newly added layer by $\operatorname { t a n h } ( \alpha )$ before adding it to the input representation from the residual connection, where $\alpha$ is a layer-specific learnable scalar initialized to 0 [4]. Thus, at initialization, the model output matches that of the pretrained LM, improving training stability and final performance. In our ablation studies (Section 3.3), we compare the proposed GATED XATTN-DENSE layers against recent alternatives [22, 68] and explore the effect of how frequently these additional layers are inserted to trade off between efficiency and expressivity. See Appendix A.1.2 for more details.
68
+
69
+ Varying model sizes. We perform experiments across three models sizes, building on the 1.4B, 7B, and 70B parameter Chinchilla models [42]; calling them respectively Flamingo-3B, Flamingo-9B and
70
+
71
+ Flamingo-80B. For brevity, we refer to the last as Flamingo throughout the paper. While increasing the parameter count of the frozen LM and the trainable vision-text GATED XATTN-DENSE modules, we maintain a fixed-size frozen vision encoder and trainable Perceiver Resampler across the different models (small relative to the full model size). See Appendix B.1.1 for further details.
72
+
73
+ # 2.3 Multi-visual input support: per-image/video attention masking
74
+
75
+ The image-causal modelling introduced in Equation (1) is obtained by masking the full text-to-image cross-attention matrix, limiting which visual tokens the model sees at each text token. At a given text token, the model attends to the visual tokens of the image that appeared just before it in the interleaved sequence, rather than to all previous images (formalized and illustrated in Appendix A.1.3). Though the model only directly attends to a single image at a time, the dependency on all previous images remains via self-attention in the LM. This single-image cross-attention scheme importantly allows the model to seamlessly generalise to any number of visual inputs, regardless of how many are used during training. In particular, we use only up to 5 images per sequence when training on our interleaved datasets, yet our model is able to benefit from sequences of up to 32 pairs (or “shots”) of images/videos and corresponding texts during evaluation. We show in Section 3.3 that this scheme is more effective than allowing the model to cross-attend to all previous images directly.
76
+
77
+ # 2.4 Training on a mixture of vision and language datasets
78
+
79
+ We train the Flamingo models on a mixture of three kinds of datasets, all scraped from the web: an interleaved image and text dataset derived from webpages, image-text pairs, and video-text pairs.
80
+
81
+ M3W: Interleaved image and text dataset. The few-shot capabilities of Flamingo models rely on training on interleaved text and image data. For this purpose, we collect the MultiModal MassiveWeb (M3W) dataset. We extract both text and images from the HTML of approximately 43 million webpages, determining the positions of images relative to the text based on the relative positions of the text and image elements in the Document Object Model (DOM). An example is then constructed by inserting <image> tags in plain text at the locations of the images on the page, and inserting a special $\mathtt { < E O C > }$ (end of chunk) token (added to the vocabulary and learnt) prior to any image and at the end of the document. From each document, we sample a random subsequence of $L = 2 5 6$ tokens and take up to the first $N = 5$ images included in the sampled sequence. Further images are discarded in order to save compute. More details are provided in Appendix A.3.
82
+
83
+ Pairs of image/video and text. For our image and text pairs we first leverage the ALIGN [50] dataset, composed of 1.8 billion images paired with alt-text. To complement this dataset, we collect our own dataset of image and text pairs targeting better quality and longer descriptions: LTIP (Long Text & Image Pairs) which consists of 312 million image and text pairs. We also collect a similar dataset but with videos instead of still images: VTP (Video & Text Pairs) consists of 27 million short videos (approximately 22 seconds on average) paired with sentence descriptions. We align the syntax of paired datasets with the syntax of M3W by prepending <image> and appending $\mathtt { < E O C > }$ to each training caption (see Appendix A.3.3 for details).
84
+
85
+ Multi-objective training and optimisation strategy. We train our models by minimizing a weighted sum of per-dataset expected negative log-likelihoods of text, given the visual inputs:
86
+
87
+ $$
88
+ \sum _ { m = 1 } ^ { M } \lambda _ { m } \cdot \mathbb { E } _ { ( x , y ) \sim \mathcal { D } _ { m } } \left[ - \sum _ { \ell = 1 } ^ { L } \log p ( y _ { \ell } | y _ { < \ell } , x _ { \le \ell } ) \right] ,
89
+ $$
90
+
91
+ where $\mathcal { D } _ { m }$ and $\lambda _ { m }$ are the $m$ -th dataset and its weighting, respectively. Tuning the per-dataset weights $\lambda _ { m }$ is key to performance. We accumulate gradients over all datasets, which we found outperforms a “round-robin” approach [17]. We provide further training details and ablations in Appendix B.1.2.
92
+
93
+ # 2.5 Task adaptation with few-shot in-context learning
94
+
95
+ Once Flamingo is trained, we use it to tackle a visual task by conditioning it on a multimodal interleaved prompt. We evaluate the ability of our models to rapidly adapt to new tasks using incontext learning, analogously to GPT-3 [11], by interleaving support example pairs in the form of $( i m a g e , t e x t )$ or (??????????, ????????), followed by the query visual input, to build a prompt (details in
96
+
97
+ Table 1: Comparison to the state of the art. A single Flamingo model reaches the state of the art on a wide array of image (I) and video (V) understanding tasks with few-shot learning, significantly outperforming previous best zero- and few-shot methods with as few as four examples. More importantly, using only 32 examples and without adapting any model weights, Flamingo outperforms the current best methods – fine-tuned on thousands of annotated examples – on seven tasks. Best few-shot numbers are in bold, best numbers overall are underlined.
98
+
99
+ <table><tr><td>Method</td><td></td><td>FTShot</td><td> OAAYA</td><td> ZAAO</td><td> Cco</td><td>(A) VOAASS</td><td>VA XIA</td><td>() ZIMZ</td><td>T3</td><td>MA ITLTTI</td><td>(A)VOA!</td><td>J oo</td><td>JS TAIY</td><td>( [PiI</td><td>[T vY</td><td></td><td> VOAXAN</td><td>R eeeeY</td></tr><tr><td rowspan="4">Zero/Few shot SOTA</td><td rowspan="4">X</td><td rowspan="4"></td><td></td><td></td><td>[124]</td><td>[58]</td><td></td><td></td><td></td><td>[58]</td><td>[135]</td><td></td><td></td><td>[79]</td><td></td><td></td><td> grrreieee</td><td></td></tr><tr><td></td><td>[34]</td><td>[114]</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>[143]</td><td></td><td></td><td></td><td></td><td></td><td>[85]</td></tr><tr><td></td><td>43.3</td><td>38.2</td><td>32.2</td><td>35.2</td><td>=</td><td>-</td><td></td><td>19.2 0</td><td>12.2 0</td><td>-</td><td>39.4</td><td>11.6 0</td><td>-</td><td></td><td>[85] 66.1 (0)</td><td>40.7</td></tr><tr><td>x)</td><td>(16)</td><td>(4) 49.2</td><td>(0)</td><td>0 27.5</td><td>40.1</td><td></td><td></td><td></td><td></td><td></td><td>0</td><td></td><td></td><td></td><td></td><td></td><td>0</td></tr><tr><td rowspan="4">Flamingo-3B</td><td></td><td>0</td><td>41.2</td><td></td><td>73.0</td><td></td><td></td><td>28.9</td><td>60.6</td><td>11.0</td><td>32.7</td><td>55.8 64.6</td><td>39.6</td><td>46.1</td><td>30.1 32.7</td><td>21.3 22.4</td><td>53.7 53.6</td><td>58.4</td></tr><tr><td>X X</td><td>4 32</td><td>43.3</td><td>53.2 57.1</td><td>85.0 99.0</td><td>33.0</td><td>50.0 59.2</td><td>34.0</td><td>72.0 71.2</td><td>14.9 25.6</td><td>35.7 37.7</td><td>76.7</td><td>41.3 41.6</td><td>47.3</td><td></td><td></td><td></td><td>1</td></tr><tr><td>X</td><td></td><td>45.9 44.7</td><td>51.8</td><td>79.4</td><td>42.6 30.2</td><td>39.5</td><td>45.5 28.8</td><td>61.5</td><td>13.7</td><td>35.2</td><td>55.0</td><td>41.8</td><td>47.3 48.0</td><td>30.6 31.8</td><td>26.1 23.0</td><td>56.3 57.0</td><td>57.9 -</td></tr><tr><td>X</td><td>0 4</td><td>49.3</td><td>56.3</td><td>93.1</td><td>36.2</td><td>51.7</td><td>34.9</td><td>72.6</td><td>18.2</td><td>37.7</td><td>70.8</td><td>42.8</td><td>50.4</td><td>33.6</td><td>24.7</td><td>62.7</td><td>-</td></tr><tr><td rowspan="3">Flamingo-9B</td><td></td><td></td><td>51.0</td><td>60.4</td><td>106.3</td><td>47.2</td><td>57.4</td><td>44.0</td><td>72.8</td><td>29.4</td><td>40.7</td><td>77.3</td><td>41.2</td><td>50.4</td><td>32.6</td><td>28.4</td><td>63.5</td><td>-</td></tr><tr><td>X</td><td>32 0</td><td>50.6</td><td>56.3</td><td>84.3</td><td>35.6</td><td>46.7</td><td>31.6</td><td>67.2</td><td>17.4</td><td>40.7</td><td>60.1</td><td>39.7</td><td>52.0</td><td>35.0</td><td>26.7</td><td>46.4</td><td>60.8</td></tr><tr><td>美</td><td>4</td><td>57.4</td><td>63.1</td><td>103.2 41.7</td><td>56.0</td><td></td><td>39.6</td><td>75.1</td><td>23.9</td><td>44.1</td><td>74.5</td><td>42.4</td><td>55.6</td><td>36.5</td><td>30.8</td><td>68.6</td><td>-</td></tr><tr><td rowspan="3">Flamingo</td><td>X</td><td>32</td><td>57.8</td><td>67.6</td><td>113.8</td><td>52.3</td><td>65.1</td><td>49.8</td><td>75.4</td><td>31.0</td><td>45.3</td><td>86.8</td><td>42.2</td><td>55.6</td><td>37.9</td><td>33.5</td><td>70.0</td><td>-</td></tr><tr><td></td><td></td><td>54.4</td><td>80.2</td><td>143.3</td><td>47.9</td><td>76.3</td><td>57.2</td><td>67.4 [150]</td><td>46.8</td><td>35.4 [135]</td><td>138.7 [132]</td><td>36.7</td><td>75.2</td><td>54.7</td><td>25.2</td><td>79.1</td><td></td></tr><tr><td>√</td><td>(X)</td><td>[34] (10K)</td><td>[140] (444K)</td><td>[124] [28] (500K) (27K)</td><td>[153] (500K)</td><td></td><td>[65] (20K)</td><td>(30K)</td><td>[51] (130K)</td><td>(6K)</td><td>(10K)</td><td>[128] (46K)</td><td>[79] (123K)</td><td>[137] (20K)</td><td>[129] (38K)</td><td>[62] (9K)</td><td></td></tr></table>
100
+
101
+ Appendix A.2). We perform open-ended evaluations using beam search for decoding, and closeended evaluations using our model’s log-likelihood to score each possible answer. We explore zero-shot generalization by prompting the model with two text-only examples from the task, with no corresponding images. Evaluation hyperparameters and additional details are given in Appendix B.1.5.
102
+
103
+ # 3 Experiments
104
+
105
+ Our goal is to develop models that can rapidly adapt to diverse and challenging tasks. For this, we consider a wide array of 16 popular multimodal image/video and language benchmarks. In order to validate model design decisions during the course of the project, 5 of these benchmarks were used as part of our development (DEV) set: COCO, OKVQA, VQAv2, MSVDQA and VATEX. Performance estimates on the DEV benchmarks may be biased, as a result of model selection. We note that this is also the case for prior work which makes use of similar benchmarks to validate and ablate design decisions. To account for this, we report performance on an additional set of 11 benchmarks, spanning captioning, video question-answering, as well as some less commonly explored capabilities such as visual dialogue and multi-choice question-answering tasks. The evaluation benchmarks are described in Appendix B.1.4. We keep all evaluation hyperparameters fixed across all benchmarks. Depending on the task, we use four few-shot prompt templates we describe in more detail in Appendix B.1.5. We emphasize that we do not validate any design decisions on these 11 benchmarks and use them solely to estimate unbiased few-shot learning performance of our models.
106
+
107
+ Concretely, estimating few-shot learning performance of a model involves prompting it with a set of support samples and evaluating it on a set of query samples. For the DEV benchmarks that are used both to validate design decisions and hyperparameters, as well as to report final performance, we therefore use four subsets: validation support, validation query, test support and test query. For other benchmarks, we need only the latter two. We report in Appendix B.1.4 how we form these subsets.
108
+
109
+ We report the results of the Flamingo models on few-shot learning in Section 3.1. Section 3.2 gives Flamingo fine-tuned results. An ablation study is given in Section 3.3. Appendix B.2 provides more results including Flamingo’s performance on the ImageNet and Kinetics700 classification tasks, and on our contrastive model’s performance. Appendix C includes additional qualitative results.
110
+
111
+ # 3.1 Few-shot learning on vision-language tasks
112
+
113
+ Few-shot results. Results are given in Table 1. Flamingo outperforms by a large margin all previous zero-shot or few-shot methods on the 16 benchmarks considered. This is achieved with as few as four examples per task, demonstrating practical and efficient adaptation of vision models to new tasks. More importantly, Flamingo is often competitive with state-of-the-art methods additionally fine-tuned on up to hundreds of thousands of annotated examples. On six tasks, Flamingo even outperforms the fine-tuned SotA despite using a single set of model weights and only 32 task-specific examples. Finally, despite having only used the DEV benchmarks for design decisions, our results generalize well to the other benchmarks, confirming the generality of our approach.
114
+
115
+ Table 2: Comparison to SotA when fine-tuning Flamingo. We fine-tune Flamingo on all nine tasks where Flamingo does not achieve SotA with few-shot learning. Flamingo sets a new SotA on five of them, outperfoming methods (marked with $\dagger .$ ) that use tricks such as model ensembling or domain-specific metric optimisation (e.g., CIDEr optimisation).
116
+
117
+ <table><tr><td rowspan="2">Method</td><td colspan="2">VQAV2 test-std</td><td rowspan="2">COCO</td><td rowspan="2">VATEX test</td><td colspan="2">VizWiz</td><td rowspan="2">MSRVTTQA test</td><td colspan="2" rowspan="2">VisDial valid|test-std</td><td rowspan="2">YouCook2</td><td colspan="2" rowspan="2">TextVQA valid|test-std</td><td rowspan="2">HatefulMemes test seen</td></tr><tr><td>test-dev</td><td>test</td><td>test-dev</td><td>test-std</td><td>valid</td></tr><tr><td>32 shots</td><td>67.6</td><td>:</td><td>113.8</td><td>65.1</td><td>49.8</td><td>-</td><td>31.0</td><td>56.8</td><td>-</td><td>86.8</td><td>36.0</td><td>·</td><td>70.0</td></tr><tr><td>Fine-tuned</td><td>82.0</td><td>82.1</td><td>138.1</td><td>84.2</td><td>65.7</td><td>65.4</td><td>47.4</td><td>61.8</td><td>59.7</td><td>118.6</td><td>57.1</td><td>54.1</td><td>86.6</td></tr><tr><td rowspan="2">SotA</td><td>81.3</td><td>81.3</td><td>149.6</td><td>81.4</td><td>57.21</td><td>60.6</td><td>46.8</td><td>75.2</td><td>75.4</td><td>138.7</td><td>54.7</td><td>73.7</td><td>84.6</td></tr><tr><td>[133]</td><td>[133]</td><td>[119]</td><td>[153]</td><td>[65]</td><td>[65]</td><td>[51]</td><td>[79]</td><td>[123]</td><td>[132]</td><td>[137]</td><td>[84]</td><td>[152]</td></tr></table>
118
+
119
+ <table><tr><td>setting</td><td colspan="2">Ablated</td><td>Flamingo-3B Changed original value value</td><td></td><td>Param. Step count↓ time↓</td><td>CoCo CIDEr↑</td><td>OKVQA top1个</td><td>VQAv2 top1个</td><td>MSVDQA top1个</td><td>VATEX CIDEr↑</td><td>Overall score↑</td></tr><tr><td colspan="3"></td><td>Flamingo-3B model w/o Video-Text pairs</td><td>3.2B</td><td>1.74s</td><td>86.5 84.2</td><td>42.1 43.0</td><td>55.8 53.9</td><td>36.3 34.5</td><td>53.4 46.0</td><td>70.7 67.3</td></tr><tr><td>i</td><td>Training data</td><td>All data</td><td>w/o Image-Text pairs Image-Text pairs→LAION w/oM3W</td><td>3.2B 3.2B 3.2B 3.2B</td><td>1.42s 0.95s 1.74s</td><td>66.3 79.5</td><td>39.2 41.4</td><td>51.6 53.5</td><td>32.0 33.9</td><td>41.6 47.6</td><td>60.9 66.4</td></tr><tr><td>(ii)</td><td>Optimisation</td><td>Accumulation</td><td>Round Robin</td><td>3.2B</td><td>1.02s 1.68s</td><td>54.1 76.1</td><td>36.5 39.8</td><td>52.7 52.1</td><td>31.4 33.2</td><td>23.5 40.8</td><td>53.4 62.9</td></tr><tr><td></td><td>Tanh gating</td><td>√</td><td>X</td><td>3.2B</td><td>1.74s</td><td>78.4</td><td>40.5</td><td>52.9</td><td>35.9</td><td>47.5</td><td>66.5</td></tr><tr><td>(iv)</td><td>Cross-attention architecture</td><td>GATED XATTN-DENSE</td><td>VANILLA XATTN</td><td>2.4B</td><td>1.16s 1.74s</td><td>80.6 79.2</td><td>41.5</td><td>53.4 50.8</td><td>32.9 32.2</td><td>50.7 47.8</td><td>66.9 63.1</td></tr><tr><td></td><td>Cross-attention</td><td></td><td>GRAFTING Single in middle</td><td>3.3B 2.0B</td><td>0.87s</td><td>71.5</td><td>36.1 38.1</td><td>50.2</td><td>29.1</td><td>42.3</td><td>59.8</td></tr><tr><td>(v)</td><td>frequency</td><td>Every</td><td>Every 4th Every 2nd</td><td>2.3B 2.6B</td><td>1.02s 1.24s</td><td>82.3 83.7</td><td>42.7 41.0</td><td>55.1 55.8</td><td>34.6 34.5</td><td>50.8 49.7</td><td>68.8 68.2</td></tr><tr><td>(vi)</td><td>Resampler</td><td>Perceiver</td><td>MLP Transformer</td><td>3.2B 3.2B</td><td>1.85s 1.81s</td><td>78.6 83.2</td><td>42.2 41.7</td><td>54.7 55.6</td><td>35.2 31.5</td><td>44.7 48.3</td><td>66.6 66.7</td></tr><tr><td>(vii)</td><td>Vision encoder</td><td>NFNet-F6</td><td>CLIP ViT-L/14 NFNet-F0</td><td>3.1B</td><td>1.58s 1.45s</td><td>76.5 73.8</td><td>41.6</td><td>53.4 52.8</td><td>33.2 31.1</td><td>44.5 42.9</td><td>64.9 62.7</td></tr><tr><td>(vii)</td><td></td><td></td><td>X(random init)</td><td>2.9B 3.2B</td><td>2.42s</td><td>74.8</td><td>40.5 31.5</td><td>45.6</td><td>26.9</td><td>50.1</td><td>57.8</td></tr><tr><td></td><td>Freezing LM</td><td>√</td><td>X (pretrained)</td><td>3.2B</td><td>2.42s</td><td>81.2</td><td>33.7</td><td>47.4</td><td>31.0</td><td>53.9</td><td>62.7</td></tr></table>
120
+
121
+ Table 3: Ablation studies. Each row should be compared to the baseline Flamingo run (top row). Step time measures the time spent to perform gradient updates on all training datasets.
122
+
123
+ Scaling with respect to parameters and shots. As shown in Figure 2, the larger the model, the better the few-shot performance, similar to GPT-3 [11]. The performance also improves with the number of shots. We further find that the largest model better exploits larger numbers of shots. Interestingly, even though our Flamingo models were trained with sequences limited to only 5 images on M3W, they are still able to benefit from up to 32 images or videos during inference. This demonstrates the flexibility of the Flamingo architecture for processing a variable number of videos or images.
124
+
125
+ # 3.2 Fine-tuning Flamingo as a pretrained vision-language model
126
+
127
+ While not the main focus of our work, we verify that when given more data, Flamingo models can be adapted to a task by fine-tuning their weights. In Table 2, we explore fine-tuning our largest model, Flamingo, for a given task with no limit on the annotation budget. In short, we do so by fine-tuning the model on a short schedule with a small learning rate by additionally unfreezing the vision backbone to accommodate a higher input resolution (details in Appendix B.2.2). We find that we can improve results over our previously presented in-context few-shot learning results, setting a new state of the art on five additional tasks: VQAv2, VATEX, VizWiz, MSRVTTQA, and HatefulMemes.
128
+
129
+ # 3.3 Ablation studies
130
+
131
+ In Table 3, we report our ablation results using Flamingo-3B on the validation subsets of the five DEV benchmarks with 4 shots. Note that we use smaller batch sizes and a shorter training schedule compared to the final models. The Overall score is obtained by dividing each benchmark score by its state-of-the-art (SotA) performance from Table 1 and averaging the results. More details and results are given in Appendix B.3 and Table 10.
132
+
133
+ Importance of the training data mixture. As shown in row (i), getting the right training data plays a crucial role. In fact, removing the interleaved image-text dataset M3W leads to a decrease of more than $1 7 \%$ in performance while removing the conventional paired image-text pairs also decreases performance (by $9 . 8 \%$ ), demonstrating the need for different types of datasets. Moreover, removing our paired video-text dataset negatively affects performance on all video tasks. We ablate replacing our image-text pairs (ITP) by the publicly available LAION-400M dataset [96], which leads to a slight degradation in performance. We show in row (ii) the importance of our gradient accumulation strategy compared to using round-robin updates [17].
134
+
135
+ Visual conditioning of the frozen LM. We ablate the use of the 0-initialized tanh gating when merging the cross-attention output to the frozen LM output in row (iii). Without it, we see a drop of $4 . 2 \%$ in our overall score. Moreover, we have noticed that disabling the 0-initialized tanh gating leads to training instabilities. Next, we ablate different conditioning architectures in row (iv). VANILLA XATTN, refers to the vanilla cross-attention from the original Transformer decoder [115]. In the GRAFTING approach from [68], the frozen LM is used as is with no additional layers inserted, and a stack of interleaved self-attention and cross-attention layers that take the frozen LM output are learnt from scratch. Overall, we show that our GATED XATTN-DENSE conditioning approach works best.
136
+
137
+ Compute/Memory vs. performance trade-offs. In row (v), we ablate the frequency at which we add new GATED XATTN-DENSE blocks. Although adding them at every layer is better, it significantly increases the number of trainable parameters and time complexity of the model. Notably, inserting them every fourth block accelerates training by $6 6 \%$ while only decreasing the overall score by $1 . 9 \%$ In light of this trade-off, we maximize the number of added layers under hardware constraints and add a GATED XATTN-DENSE every fourth layer for Flamingo-9B and every seventh for Flamingo-80B. We further compare in row (vi) the Perceiver Resampler to a MLP and a vanilla Transformer given a parameter budget. Both underperform the Perceiver Resampler while also being slower.
138
+
139
+ Vision encoder. In row (vii), we compare our NFNet-F6 vision encoder pretrained with contrastive learning (details in Appendix B.1.3) to the publicly available CLIP ViT-L/14 [85] model trained at 224 resolution. Our NFNet-F6 has a $+ 5 . 8 \%$ advantage over the CLIP ViT-L/14 and $+ 8 . 0 \%$ over a smaller NFNet-F0 encoder, which highlights the importance of using a strong vision backbone.
140
+
141
+ Freezing LM components prevents catastrophic forgetting. We verify the importance of freezing the LM layers at training in row (viii). If trained from scratch, we observe a large performance decrease of $- 1 2 . 9 \%$ . Interestingly, fine-tuning our pretrained LM also leads to a drop in performance of $- 8 . 0 \%$ . This indicates an instance of “catastrophic forgetting” [71], in which the model progressively forgets its pretraining while training on a new objective. In our setting, freezing the language model is a better alternative to training with the pre-training dataset (MassiveText) in the mixture.
142
+
143
+ # 4 Related work
144
+
145
+ Language modelling and few-shot adaptation. Language modelling has recently made substantial progress following the introduction of Transformers [115]. The paradigm of first pretraining on a vast amount of data followed by an adaptation on a downstream task has become standard [11, 23, 32, 44, 52, 75, 87, 108]. In this work, we build on the 70B Chinchilla language model [42] as the base LM for Flamingo. Numerous works have explored techniques to adapt language models to novel tasks using a few examples. These include adding small adapter modules [43], fine-tuning a small part of the LM [141], showing in-context examples in the prompt [11], or optimizing the prompt [56, 60] through gradient descent. In this paper, we take inspiration from the in-context [11] few-shot learning technique instead of more involved few-shot learning approaches based on metric learning [24, 103, 112, 117] or meta-learning [6, 7, 27, 31, 91, 155].
146
+
147
+ When language meets vision. These LM breakthroughs have been influential for vision-language modelling. In particular, BERT [23] inspired a large body of vision-language work [16, 28, 29, 38, 59, 61, 66, 101, 106, 107, 109, 118, 121, 142, 143, 151]. We differ from these approaches as Flamingo models do not require fine-tuning on new tasks. Another family of vision-language models is based on contrastive learning [2, 5, 49, 50, 57, 74, 82, 85, 138, 140, 146]. Flamingo differs from contrastive models as it can generate text, although we build and rely upon them for our vision encoder. Similar to our work are VLMs able to generate text in an autoregressive manner [19, 25, 45, 67, 116]. Concurrent works [17, 58, 119, 124, 154] also propose to formulate numerous vision tasks as text generation problems. Building on top of powerful pretrained language models has been explored in several recent works. One recent line of work [26, 68, 78, 114, 136, 144] proposes to freeze the pretrained LM weights to prevent catastrophic forgetting [71]. We follow this idea by freezing the
148
+
149
+ Chinchilla LM layers [42] and adding learnable layers within the frozen LM. We differ from prior work by introducing the first LM that can ingest arbitrarily interleaved images, videos, and text.
150
+
151
+ Web-scale vision and language training datasets. Manually annotated vision and language datasets are costly to obtain and thus relatively small (10k-100k) in scale [3, 15, 69, 122, 129, 139]. To alleviate this lack of data, numerous works [14, 50, 98, 110] automatically scrape readily available paired vision-text data. In addition to such paired data, we show the importance of also training on entire multimodal webpages containing interleaved images and text as a single sequence. Concurrent work CM3 [1] proposes to generate HTML markup from pages, while we simplify the text prediction task by only generating plain text. We emphasize few-shot learning and vision tasks while CM3 [1] primarily evaluates on language-only benchmarks in a zero-shot or fine-tuned setup.
152
+
153
+ # 5 Discussion
154
+
155
+ Limitations. First, our models build on pretrained LMs, and as a side effect, directly inherit their weaknesses. For example, LM priors are generally helpful, but may play a role in occasional hallucinations and ungrounded guesses. Furthermore, LMs generalise poorly to sequences longer than the training ones. They also suffer from poor sample efficiency during training. Addressing these issues can accelerate progress in the field and enhance the abilities of VLMs like Flamingo.
156
+
157
+ Second, the classification performance of Flamingo lags behind that of state-of-the-art contrastive models [82, 85]. These models directly optimize for text-image retrieval, of which classification is a special case. In contrast, our models handle a wider range of tasks, such as open-ended ones. A unified approach to achieve the best of both worlds is an important research direction.
158
+
159
+ Third, in-context learning has significant advantages over gradient-based few-shot learning methods, but also suffers from drawbacks depending on the characteristics of the application at hand. We demonstrate the effectiveness of in-context learning when access is limited to only a few dozen examples. In-context learning also enables simple deployment, requiring only inference, generally with no hyperparameter tuning needed. However, in-context learning is known to be highly sensitive to various aspects of the demonstrations [80, 148], and its inference compute cost and absolute performance scale poorly with the number of shots beyond this low-data regime. There may be opportunities to combine few-shot learning methods to leverage their complementary benefits. We discuss the limitations of our work in more depth in Appendix D.1.
160
+
161
+ Societal impacts. In terms of societal impacts, Flamingo offers a number of benefits while carrying some risks. Its ability to rapidly adapt to a broad range of tasks have the potential to enable non-expert users to obtain good performance in data-starved regimes, lowering the barriers to both beneficial and malicious applications. Flamingo is exposed to the same risks as large language models, such as outputting offensive language, propagating social biases and stereotypes, as well as leaking private information [42, 126]. Its ability to additionally handle visual inputs poses specific risks such as gender and racial biases relating to the contents of the input images, similar to a number of visual recognition systems [12, 21, 37, 97, 147]. We refer the reader to Appendix D.2 for a more extensive discussion of the societal impacts of our work, both positive and negative; as well as mitigation strategies and early investigations of risks relating to racial or gender bias and toxic outputs. Finally we note that, following prior work focusing on language models [72, 81, 111], the few-shot capabilities of Flamingo could be useful for mitigating such risks.
162
+
163
+ Conclusion. We proposed Flamingo, a general-purpose family of models that can be applied to image and video tasks with minimal task-specific training data. We also qualitatively explored interactive abilities of Flamingo such as “chatting” with the model, demonstrating flexibility beyond traditional vision benchmarks. Our results suggest that connecting pre-trained large language models with powerful visual models is an important step towards general-purpose visual understanding.
164
+
165
+ Acknowledgments and Disclosure of Funding. This research was funded by DeepMind. We would like to thank many colleagues for useful discussions, suggestions, feedback, and advice, including: Samuel Albanie, Relja Arandjelovic, Kareem Ayoub, Lorrayne Bennett, Adria Recasens Continente, ´ Tom Eccles, Nando de Freitas, Sander Dieleman, Conor Durkan, Aleksa Gordic, Raia Hadsell, ´ Will Hawkins, Lisa Anne Hendricks, Felix Hill, Jordan Hoffmann, Geoffrey Irving, Drew Jaegle, Koray Kavukcuoglu, Agustin Dal Lago, Mateusz Malinowski, Sona Mokrá, Gaby Pearl, Toby Pohlen, ˇ Jack Rae, Laurent Sifre, Francis Song, Maria Tsimpoukelli, Gregory Wayne, and Boxi Wu.
166
+
167
+ References [1] Armen Aghajanyan, Bernie Huang, Candace Ross, Vladimir Karpukhin, Hu Xu, Naman Goyal, Dmytro Okhonko, Mandar Joshi, Gargi Ghosh, Mike Lewis, and Luke Zettlemoyer. CM3: A causal masked multimodal model of the internet. arXiv:2201.07520, 2022. [2] Jean-Baptiste Alayrac, Adria Recasens, Rosalia Schneider, Relja Arandjelovic, Jason Rama- ´ puram, Jeffrey De Fauw, Lucas Smaira, Sander Dieleman, and Andrew Zisserman. Selfsupervised multimodal versatile networks. Conference on Neural Information Processing Systems, 2020. [3] Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C. Lawrence Zitnick, and Devi Parikh. VQA: Visual question answering. In International Conference on Computer Vision, 2015. [4] Thomas Bachlechner, Bodhisattwa Prasad Majumder, Henry Mao, Gary Cottrell, and Julian McAuley. ReZero is all you need: Fast convergence at large depth. In Uncertainty in Artificial Intelligence, 2021. [5] Max Bain, Arsha Nagrani, Gül Varol, and Andrew Zisserman. Frozen in time: A joint video and image encoder for end-to-end retrieval. In International Conference on Computer Vision, 2021. [6] Luca Bertinetto, João F. Henriques, Jack Valmadre, Philip Torr, and Andrea Vedaldi. Learning feed-forward one-shot learners. Conference on Neural Information Processing Systems, 2016.
168
+ [7] Luca Bertinetto, Joao F. Henriques, Philip H. S. Torr, and Andrea Vedaldi. Meta-learning with differentiable closed-form solvers. arXiv:1805.08136, 2018. [8] James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/google/jax. [9] John S. Bridle. Probabilistic interpretation of feedforward classification network outputs, with relationships to statistical pattern recognition. In Neurocomputing, 1990.
169
+ [10] Andrew Brock, Soham De, Samuel L. Smith, and Karen Simonyan. High-performance large-scale image recognition without normalization. arXiv:2102.06171, 2021.
170
+ [11] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. In Conference on Neural Information Processing Systems, 2020.
171
+ [12] Joy Buolamwini and Timnit Gebru. Gender shades: Intersectional accuracy disparities in commercial gender classification. In ACM Conference on Fairness, Accountability, and Transparency, 2018.
172
+ [13] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European Conference on Computer Vision, 2020.
173
+ [14] Soravit Changpinyo, Piyush Sharma, Nan Ding, and Radu Soricut. Conceptual 12M: Pushing web-scale image-text pre-training to recognize long-tail visual concepts. In IEEE Computer Vision and Pattern Recognition, 2021.
174
+ [15] Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollár, and C Lawrence Zitnick. Microsoft COCO captions: Data collection and evaluation server. arXiv:1504.00325, 2015.
175
+
176
+ [16] Yen-Chun Chen, Linjie Li, Licheng Yu, Ahmed El Kholy, Faisal Ahmed, Zhe Gan, Yu Cheng, and Jingjing Liu. UNITER: Universal image-text representation learning. In European Conference on Computer Vision, 2020.
177
+
178
+ [17] Jaemin Cho, Jie Lei, Hao Tan, and Mohit Bansal. Unifying vision-and-language tasks via text generation. In International Conference on Machine Learning, 2021.
179
+
180
+ [18] Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, and Noah Fiedel. PaLM: Scaling language modeling with pathways. arXiv:2204.02311, 2022.
181
+
182
+ [19] Wenliang Dai, Lu Hou, Lifeng Shang, Xin Jiang, Qun Liu, and Pascale Fung. Enabling multimodal generation on clip via vision-language knowledge distillation. In ACL Findings, 2022.
183
+
184
+ [20] Abhishek Das, Satwik Kottur, Khushi Gupta, Avi Singh, Deshraj Yadav, José MF Moura, Devi Parikh, and Dhruv Batra. Visual dialog. In IEEE Computer Vision and Pattern Recognition, 2017.
185
+
186
+ [21] Terrance De Vries, Ishan Misra, Changhan Wang, and Laurens Van der Maaten. Does object recognition work for everyone? In IEEE Computer Vision and Pattern Recognition, 2019.
187
+
188
+ [22] Karan Desai and Justin Johnson. VirTex: Learning visual representations from textual annotations. In IEEE Computer Vision and Pattern Recognition, 2021.
189
+
190
+ [23] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. arXiv:1810.04805, 2018.
191
+
192
+ [24] Carl Doersch, Ankush Gupta, and Andrew Zisserman. CrossTransformers: spatially-aware few-shot transfer. Conference on Neural Information Processing Systems, 2020.
193
+
194
+ [25] Jeffrey Donahue, Lisa Anne Hendricks, Sergio Guadarrama, Marcus Rohrbach, Subhashini Venugopalan, Kate Saenko, and Trevor Darrell. Long-term recurrent convolutional networks for visual recognition and description. In IEEE Computer Vision and Pattern Recognition, 2015.
195
+
196
+ [26] Constantin Eichenberg, Sidney Black, Samuel Weinbach, Letitia Parcalabescu, and Anette Frank. MAGMA–multimodal augmentation of generative models through adapter-based finetuning. arXiv:2112.05253, 2021.
197
+
198
+ [27] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, 2017.
199
+
200
+ [28] Tsu-Jui Fu, Linjie Li, Zhe Gan, Kevin Lin, William Yang Wang, Lijuan Wang, and Zicheng Liu. VIOLET: End-to-end video-language transformers with masked visual-token modeling. arXiv:2111.12681, 2021.
201
+
202
+ [29] Zhe Gan, Yen-Chun Chen, Linjie Li, Chen Zhu, Yu Cheng, and Jingjing Liu. Large-scale adversarial training for vision-and-language representation learning. In Conference on Neural Information Processing Systems, 2020.
203
+
204
+ [30] Timnit Gebru, Jamie Morgenstern, Briana Vecchione, Jennifer Wortman Vaughan, Hanna Wallach, Hal Daumé III, and Kate Crawford. Datasheets for datasets. Communications of the ACM, 2021.
205
+
206
+ [31] Jonathan Gordon, John Bronskill, Matthias Bauer, Sebastian Nowozin, and Richard E. Turner. Meta-learning probabilistic inference for prediction. arXiv:1805.09921, 2018.
207
+
208
+ [32] Alex Graves. Generating sequences with recurrent neural networks. arXiv:1308.0850, 2013.
209
+
210
+ [33] Thomas L. Griffiths, Frederick Callaway, Michael B. Chang, Erin Grant, Paul M. Krueger, and Falk Lieder. Doing more with less: meta-reasoning and meta-learning in humans and machines. Current Opinion in Behavioral Sciences, 2019.
211
+
212
+ [34] Liangke Gui, Borui Wang, Qiuyuan Huang, Alex Hauptmann, Yonatan Bisk, and Jianfeng Gao. KAT: A knowledge augmented transformer for vision-and-language. arXiv:2112.08614, 2021.
213
+
214
+ [35] Danna Gurari, Qing Li, Abigale J. Stangl, Anhong Guo, Chi Lin, Kristen Grauman, Jiebo Luo, and Jeffrey P. Bigham. VizWiz grand challenge: Answering visual questions from blind people. In IEEE Computer Vision and Pattern Recognition, 2018.
215
+
216
+ [36] Adi Haviv, Ori Ram, Ofir Press, Peter Izsak, and Omer Levy. Transformer language models without positional encodings still learn positional information. arXiv:2203.16634, 2022.
217
+
218
+ [37] Lisa Anne Hendricks, Kaylee Burns, Kate Saenko, Trevor Darrell, and Anna Rohrbach. Women also snowboard: Overcoming bias in captioning models. In European Conference on Computer Vision, 2018.
219
+
220
+ [38] Lisa Anne Hendricks, John Mellor, Rosalia Schneider, Jean-Baptiste Alayrac, and Aida Nematzadeh. Decoupling the role of data, attention, and losses in multimodal transformers. Annual Meeting of the Association for Computational Linguistics, 2021.
221
+
222
+ [39] Dan Hendrycks and Kevin Gimpel. Gaussian error linear units (GELUs). arXiv:1606.08415, 2016.
223
+
224
+ [40] Tom Hennigan, Trevor Cai, Tamara Norman, and Igor Babuschkin. Haiku: Sonnet for JAX, 2020. URL http://github.com/deepmind/dm-haiku.
225
+
226
+ [41] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural Computation, 1997.
227
+
228
+ [42] Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, Eric Noland Tom Hennigan, Katie Millican, George van den Driessche, Bogdan Damoc, Aurelia Guy, Simon Osindero, Karen Simonyan, Erich Elsen, Jack W. Rae, Oriol Vinyals, and Laurent Sifre. Training compute-optimal large language models. arXiv:2203.15556, 2022.
229
+
230
+ [43] Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. Parameter-efficient transfer learning for NLP. In International Conference on Machine Learning, 2019.
231
+
232
+ [44] Jeremy Howard and Sebastian Ruder. Universal language model fine-tuning for text classification. arXiv:1801.06146, 2018.
233
+
234
+ [45] Xiaowei Hu, Zhe Gan, Jianfeng Wang, Zhengyuan Yang, Zicheng Liu, Yumao Lu, and Lijuan Wang. Scaling up vision-language pre-training for image captioning. arXiv:2111.12233, 2021.
235
+
236
+ [46] Lun Huang, Wenmin Wang, Jie Chen, and Xiao-Yong Wei. Attention on attention for image captioning. In International Conference on Computer Vision, 2019.
237
+
238
+ [47] Md Amirul Islam, Matthew Kowal, Sen Jia, Konstantinos G. Derpanis, and Neil D. B. Bruce. Global pooling, more than meets the eye: Position information is encoded channel-wise in CNNs. In International Conference on Computer Vision, 2021.
239
+
240
+ [48] Andrew Jaegle, Felix Gimeno, Andy Brock, Oriol Vinyals, Andrew Zisserman, and Joao Carreira. Perceiver: General perception with iterative attention. In International Conference on Machine Learning, 2021.
241
+
242
+ [49] Aashi Jain, Mandy Guo, Krishna Srinivasan, Ting Chen, Sneha Kudugunta, Chao Jia, Yinfei Yang, and Jason Baldridge. MURAL: multimodal, multitask retrieval across languages. arXiv:2109.05125, 2021.
243
+ [50] Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc V. Le, YunHsuan Sung, Zhen Li, and Tom Duerig. Scaling up visual and vision-language representation learning with noisy text supervision. arXiv:2102.05918, 2021.
244
+ [51] Alex Jinpeng Wang, Yixiao Ge, Rui Yan, Yuying Ge, Xudong Lin, Guanyu Cai, Jianping Wu, Ying Shan, Xiaohu Qie, and Mike Zheng Shou. All in one: Exploring unified video-language pre-training. arXiv:2203.07303, 2022.
245
+ [52] Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv:1602.02410, 2016.
246
+ [53] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv:2001.08361, 2020.
247
+ [54] Douwe Kiela, Hamed Firooz, Aravind Mohan, Vedanuj Goswami, Amanpreet Singh, Pratik Ringshia, and Davide Testuggine. The Hateful Memes Challenge: Detecting hate speech in multimodal memes. Conference on Neural Information Processing Systems, 2020.
248
+ [55] Hugo Larochelle. Few-shot classification by recycling deep learning. Invited Talk at the S2D-OLAD Workshop, ICLR 2021, 2021. URL https://slideslive.com/38955350/ fewshot-classification-by-recycling-deep-learning.
249
+ [56] Brian Lester, Rami Al-Rfou, and Noah Constant. The power of scale for parameter-efficient prompt tuning. arXiv:2104.08691, 2021.
250
+ [57] Junnan Li, Ramprasaath Selvaraju, Akhilesh Gotmare, Shafiq Joty, Caiming Xiong, and Steven Chu Hong Hoi. Align before fuse: Vision and language representation learning with momentum distillation. In Conference on Neural Information Processing Systems, 2021.
251
+ [58] Junnan Li, Dongxu Li, Caiming Xiong, and Steven Hoi. BLIP: Bootstrapping language-image pre-training for unified vision-language understanding and generation. arXiv:2201.12086, 2022.
252
+ [59] Linjie Li, Yen-Chun Chen, Yu Cheng, Zhe Gan, Licheng Yu, and Jingjing Liu. HERO: Hierarchical encoder for video+language omni-representation pre-training. arXiv:2005.00200, 2020.
253
+ [60] Xiang Lisa Li and Percy Liang. Prefix-tuning: Optimizing continuous prompts for generation. arXiv:2101.00190, 2021.
254
+ [61] Xiujun Li, Xi Yin, Chunyuan Li, Pengchuan Zhang, Xiaowei Hu, Lei Zhang, Lijuan Wang, Houdong Hu, Li Dong, Furu Wei, Yejin Choi, and Jianfeng Gao. Oscar: Object-semantics aligned pre-training for vision-language tasks. In European Conference on Computer Vision, 2020.
255
+ [62] Phillip Lippe, Nithin Holla, Shantanu Chandra, Santhosh Rajamanickam, Georgios Antoniou, Ekaterina Shutova, and Helen Yannakoudakis. A multimodal framework for the detection of hateful memes. arXiv:2012.12871, 2020.
256
+ [63] Jiachang Liu, Dinghan Shen, Yizhe Zhang, Bill Dolan, Lawrence Carin, and Weizhu Chen. What makes good in-context examples for GPT-3? arXiv:2101.06804, 2021.
257
+ [64] Siqi Liu, Zhenhai Zhu, Ning Ye, Sergio Guadarrama, and Kevin Murphy. Optimization of image description metrics using policy gradient methods. In International Conference on Computer Vision, 2017.
258
+ [65] Yu Liu, Lianghua Huang, Liuyihang Song, Bin Wang, Yingya Zhang, and Pan Pan. Enhancing textual cues in multi-modal transformers for VQA. VizWiz Challenge 2021, 2021.
259
+ [66] Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. ViLBERT: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. Conference on Neural Information Processing Systems, 2019.
260
+ [67] Huaishao Luo, Lei Ji, Botian Shi, Haoyang Huang, Nan Duan, Tianrui Li, Jason Li, Taroon Bharti, and Ming Zhou. UniVL: A unified video and language pre-training model for multimodal understanding and generation. arXiv:2002.06353, 2020.
261
+ [68] Ziyang Luo, Yadong Xi, Rongsheng Zhang, and Jing Ma. VC-GPT: Visual conditioned GPT for end-to-end generative vision-and-language pre-training. arXiv:2201.12723, 2022.
262
+ [69] Kenneth Marino, Mohammad Rastegari, Ali Farhadi, and Roozbeh Mottaghi. OK-VQA: A visual question answering benchmark requiring external knowledge. In IEEE Computer Vision and Pattern Recognition, 2019.
263
+ [70] Ellen M. Markman. Categorization and naming in children: Problems of induction. MIT Press, 1989.
264
+ [71] Michael McCloskey and Neil J. Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. The Psychology of Learning and Motivation, 1989.
265
+ [72] Jacob Menick, Maja Trebacz, Vladimir Mikulik, John Aslanides, Francis Song, Martin Chadwick, Mia Glaese, Susannah Young, Lucy Campbell-Gillingham, Geoffrey Irving, and Nat McAleese. Teaching language models to support answers with verified quotes. arXiv:2203.11147, 2022.
266
+ [73] Antoine Miech, Jean-Baptiste Alayrac, Ivan Laptev, Josef Sivic, and Andrew Zisserman. RareAct: A video dataset of unusual interactions. arxiv:2008.01018, 2020.
267
+ [74] Antoine Miech, Jean-Baptiste Alayrac, Lucas Smaira, Ivan Laptev, Josef Sivic, and Andrew Zisserman. End-to-end learning of visual representations from uncurated instructional videos. In IEEE Computer Vision and Pattern Recognition, 2020.
268
+ [75] Tomas Mikolov, Martin Karafiát, Lukas Burget, Jan Cernocky, and Sanjeev Khudanpur. \` Recurrent neural network based language model. Interspeech, 2010.
269
+ [76] Sewon Min, Xinxi Lyu, Ari Holtzman, Mikel Artetxe, Mike Lewis, Hannaneh Hajishirzi, and Luke Zettlemoyer. Rethinking the role of demonstrations: What makes in-context learning work? arXiv:2202.12837, 2022.
270
+ [77] Margaret Mitchell, Simone Wu, Andrew Zaldivar, Parker Barnes, Lucy Vasserman, Ben Hutchinson, Elena Spitzer, Inioluwa Deborah Raji, and Timnit Gebru. Model cards for model reporting. In ACM Conference on Fairness, Accountability, and Transparency, 2019.
271
+ [78] Ron Mokady, Amir Hertz, and Amit H. Bermano. ClipCap: CLIP prefix for image captioning. arXiv:2111.09734, 2021.
272
+ [79] Vishvak Murahari, Dhruv Batra, Devi Parikh, and Abhishek Das. Large-scale pretraining for visual dialog: A simple state-of-the-art baseline. In European Conference on Computer Vision, 2020.
273
+ [80] Ethan Perez, Douwe Kiela, and Kyunghyun Cho. True few-shot learning with language models. Conference on Neural Information Processing Systems, 2021.
274
+ [81] Ethan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, and Geoffrey Irving. Red teaming language models with language models. arXiv:2202.03286, 2022.
275
+ [82] Hieu Pham, Zihang Dai, Golnaz Ghiasi, Hanxiao Liu, Adams Wei Yu, Minh-Thang Luong, Mingxing Tan, and Quoc V. Le. Combined scaling for zero-shot transfer learning. arXiv:2111.10050, 2021.
276
+ [83] Ofir Press, Noah Smith, and Mike Lewis. Train short, test long: Attention with linear biases enables input length extrapolation. In International Conference on Learning Representations, 2022.
277
+
278
+ [84] Yixuan Qiao, Hao Chen, Jun Wang, Yihao Chen, Xianbin Ye, Ziliang Li, Xianbiao Qi, Peng Gao, and Guotong Xie. Winner team Mia at TextVQA Challenge 2021: Vision-and-language representation learning with pre-trained sequence-to-sequence model. arXiv:2106.15332, 2021.
279
+
280
+ [85] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. arXiv:2103.00020, 2021.
281
+
282
+ [86] Jack W. Rae, Sebastian Borgeaud, Trevor Cai, Katie Millican, Jordan Hoffmann, Francis Song, John Aslanides, Sarah Henderson, Roman Ring, Susannah Young, Eliza Rutherford, Tom Hennigan, Jacob Menick, Albin Cassirer, Richard Powell, George van den Driessche, Lisa Anne Hendricks, Maribeth Rauh, Po-Sen Huang, Amelia Glaese, Johannes Welbl, Sumanth Dathathri, Saffron Huang, Jonathan Uesato, John Mellor, Irina Higgins, Antonia Creswell, Nat McAleese, Amy Wu, Erich Elsen, Siddhant Jayakumar, Elena Buchatskaya, David Budden, Esme Sutherland, Karen Simonyan, Michela Paganini, Laurent Sifre, Lena Martens, Xiang Lorraine Li, Adhiguna Kuncoro, Aida Nematzadeh, Elena Gribovskaya, Domenic Donato, Angeliki Lazaridou, Arthur Mensch, Jean-Baptiste Lespiau, Maria Tsimpoukelli, Nikolai Grigorev, Doug Fritz, Thibault Sottiaux, Mantas Pajarskas, Toby Pohlen, Zhitao Gong, Daniel Toyama, Cyprien de Masson d’Autume, Yujia Li, Tayfun Terzi, Vladimir Mikulik, Igor Babuschkin, Aidan Clark, Diego de Las Casas, Aurelia Guy, Chris Jones, James Bradbury, Matthew Johnson, Blake Hechtman, Laura Weidinger, Iason Gabriel, William Isaac, Ed Lockhart, Simon Osindero, Laura Rimell, Chris Dyer, Oriol Vinyals, Kareem Ayoub, Jeff Stanway, Lorrayne Bennett, Demis Hassabis, Koray Kavukcuoglu, and Geoffrey Irving. Scaling language models: Methods, analysis & insights from training Gopher. arXiv:2112.11446, 2021.
283
+
284
+ [87] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv:1910.10683, 2019.
285
+
286
+ [88] Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. ZeRO: Memory optimizations toward training trillion parameter models. In International Conference for High Performance Computing, Networking, Storage and Analysis, 2020.
287
+
288
+ [89] Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with clip latents. arXiv:2204.06125, 2022.
289
+
290
+ [90] Steven J. Rennie, Etienne Marcheret, Youssef Mroueh, Jarret Ross, and Vaibhava Goel. Self-critical sequence training for image captioning. In IEEE Computer Vision and Pattern Recognition, 2017.
291
+
292
+ [91] James Requeima, Jonathan Gordon, John Bronskill, Sebastian Nowozin, and Richard E. Turner. Fast and flexible multi-task classification using conditional neural adaptive processes. Conference on Neural Information Processing Systems, 2019.
293
+
294
+ [92] Laria Reynolds and Kyle McDonell. Prompt programming for large language models: Beyond the few-shot paradigm. In Extended Abstracts of the 2021 CHI Conference on Human Factors in Computing Systems, 2021.
295
+
296
+ [93] Rachel Rudinger, Jason Naradowsky, Brian Leonard, and Benjamin Van Durme. Gender bias in coreference resolution. arXiv:1804.09301, 2018.
297
+
298
+ [94] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li FeiFei. ImageNet large scale visual recognition challenge. International Journal of Computer Vision, 2015.
299
+
300
+ [95] Victor Sanh, Albert Webson, Colin Raffel, Stephen H. Bach, Lintang Sutawika, Zaid Alyafeai, Antoine Chaffin, Arnaud Stiegler, Teven Le Scao, Arun Raja, Manan Dey, M. Saiful Bari, Canwen Xu, Urmish Thakker, Shanya Sharma Sharma, Eliza Szczechla, Taewoon Kim, Gunjan
301
+
302
+ Chhablani, Nihal Nayak, Debajyoti Datta, Jonathan Chang, Mike Tian-Jian Jiang, Han Wang, Matteo Manica, Sheng Shen, Zheng Xin Yong, Harshit Pandey, Rachel Bawden, Thomas Wang, Trishala Neeraj, Jos Rozen, Abheesht Sharma, Andrea Santilli, Thibault Fevry, Jason Alan Fries, Ryan Teehan, Stella Biderman, Leo Gao, Tali Bers, Thomas Wolf, and Alexander M. Rush. Multitask Prompted Training Enables Zero-Shot Task Generalization. In International Conference on Learning Representations, 2022.
303
+ [96] Christoph Schuhmann, Richard Vencu, Romain Beaumont, Robert Kaczmarczyk, Clayton Mullis, Aarush Katta, Theo Coombes, Jenia Jitsev, and Aran Komatsuzaki. Laion-400m: Open dataset of clip-filtered 400 million image-text pairs. arXiv:2111.02114, 2021.
304
+ [97] Carsten Schwemmer, Carly Knight, Emily D. Bello-Pardo, Stan Oklobdzija, Martijn Schoonvelde, and Jeffrey W. Lockhart. Diagnosing gender bias in image recognition systems. Socius, 2020.
305
+ [98] Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. Conceptual Captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In Annual Meeting of the Association for Computational Linguistics, 2018.
306
+ [99] Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-LM: Training multi-billion parameter language models using model parallelism. arXiv:2104.08691, 2019.
307
+ [100] Amanpreet Singh, Vivek Natarajan, Meet Shah, Yu Jiang, Xinlei Chen, Dhruv Batra, Devi Parikh, and Marcus Rohrbach. Towards VQA models that can read. In IEEE Computer Vision and Pattern Recognition, 2019.
308
+ [101] Amanpreet Singh, Ronghang Hu, Vedanuj Goswami, Guillaume Couairon, Wojciech Galuba, Marcus Rohrbach, and Douwe Kiela. FLAVA: A foundational language and vision alignment model. arXiv:2112.04482, 2021.
309
+ [102] Lucas Smaira, João Carreira, Eric Noland, Ellen Clancy, Amy Wu, and Andrew Zisserman. A short note on the Kinetics-700-2020 human action dataset. arXiv:2010.10864, 2020.
310
+ [103] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. Conference on Neural Information Processing Systems, 2017.
311
+ [104] David R So, Wojciech Manke, Hanxiao Liu, Zihang Dai, Noam Shazeer, and Quoc V. Le. ´ Primer: Searching for efficient transformers for language modeling. arXiv:2109.08668, 2021.
312
+ [105] Emma Strubell, Ananya Ganesh, and Andrew McCallum. Energy and policy considerations for deep learning in NLP. arXiv:1906.02243, 2019.
313
+ [106] Weijie Su, Xizhou Zhu, Yue Cao, Bin Li, Lewei Lu, Furu Wei, and Jifeng Dai. VL-BERT: Pre-training of generic visual-linguistic representations. arXiv:1908.08530, 2019.
314
+ [107] Chen Sun, Austin Myers, Carl Vondrick, Kevin Murphy, and Cordelia Schmid. VideoBERT: A joint model for video and language representation learning. In International Conference on Computer Vision, 2019.
315
+ [108] Ilya Sutskever, James Martens, and Geoffrey E. Hinton. Generating text with recurrent neural networks. In International Conference on Machine Learning, 2011.
316
+ [109] Hao Tan and Mohit Bansal. LXMERT: Learning cross-modality encoder representations from transformer. In Conference on Empirical Methods in Natural Language Processing, 2019.
317
+ [110] Bart Thomee, David A Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. YFCC100M: The new data in multimedia research. Communications of the ACM, 2016.
318
+ [111] Romal Thoppilan, Daniel De Freitas, Jamie Hall, Noam Shazeer, Apoorv Kulshreshtha, Heng-Tze Cheng, Alicia Jin, Taylor Bos, Leslie Baker, Yu Du, YaGuang Li, Hongrae Lee, Huaixiu Steven Zheng, Amin Ghafouri, Marcelo Menegali, Yanping Huang, Maxim Krikun, Dmitry Lepikhin, James Qin, Dehao Chen, Yuanzhong Xu, Zhifeng Chen, Adam Roberts,
319
+
320
+ Maarten Bosma, Vincent Zhao, Yanqi Zhou, Chung-Ching Chang, Igor Krivokon, Will Rusch, Marc Pickett, Pranesh Srinivasan, Laichee Man, Kathleen Meier-Hellstern, Meredith Ringel Morris, Tulsee Doshi, Renelito Delos Santos, Toju Duke, Johnny Soraker, Ben Zevenbergen, Vinodkumar Prabhakaran, Mark Diaz, Ben Hutchinson, Kristen Olson, Alejandra Molina, Erin Hoffman-John, Josh Lee, Lora Aroyo, Ravi Rajakumar, Alena Butryna, Matthew Lamm, Viktoriya Kuzmina, Joe Fenton, Aaron Cohen, Rachel Bernstein, Ray Kurzweil, Blaise AgueraArcas, Claire Cui, Marian Croak, Ed Chi, and Quoc Le. LaMDA: Language models for dialog applications. arXiv:2201.08239, 2022.
321
+
322
+ [112] Yonglong Tian, Yue Wang, Dilip Krishnan, Joshua B. Tenenbaum, and Phillip Isola. Rethinking few-shot image classification: a good embedding is all you need? In European Conference on Computer Vision, 2020.
323
+
324
+ [113] Hugo Touvron, Andrea Vedaldi, Matthijs Douze, and Hervé Jégou. Fixing the train-test resolution discrepancy. Conference on Neural Information Processing Systems, 2019.
325
+
326
+ [114] Maria Tsimpoukelli, Jacob Menick, Serkan Cabi, SM Eslami, Oriol Vinyals, and Felix Hill. Multimodal few-shot learning with frozen language models. Conference on Neural Information Processing Systems, 2021.
327
+
328
+ [115] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Conference on Neural Information Processing Systems, 2017.
329
+
330
+ [116] Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In International Conference on Computer Vision, 2015.
331
+
332
+ [117] Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Koray Kavukcuoglu, and Daan Wierstra. Matching networks for one shot learning. Conference on Neural Information Processing Systems, 2016.
333
+
334
+ [118] Jianfeng Wang, Xiaowei Hu, Zhe Gan, Zhengyuan Yang, Xiyang Dai, Zicheng Liu, Yumao Lu, and Lijuan Wang. UFO: A unified transformer for vision-language representation learning. arXiv:2111.10023, 2021.
335
+
336
+ [119] Peng Wang, An Yang, Rui Men, Junyang Lin, Shuai Bai, Zhikang Li, Jianxin Ma, Chang Zhou, Jingren Zhou, and Hongxia Yang. Unifying architectures, tasks, and modalities through a simple sequence-to-sequence learning framework. arXiv:2202.03052, 2022.
337
+
338
+ [120] Thomas Wang, Adam Roberts, Daniel Hesslow, Teven Le Scao, Hyung Won Chung, Iz Beltagy, Julien Launay, and Colin Raffel. What language model architecture and pretraining objective work best for zero-shot generalization? arXiv:2204.05832, 2022.
339
+
340
+ [121] Wenhui Wang, Hangbo Bao, Li Dong, and Furu Wei. VLMo: Unified vision-language pre-training with mixture-of-modality-experts. arXiv:2111.02358, 2021.
341
+
342
+ [122] Xin Wang, Jiawei Wu, Junkun Chen, Lei Li, Yuan-Fang Wang, and William Yang Wang. VATEX: A large-scale, high-quality multilingual dataset for video-and-language research. In International Conference on Computer Vision, 2019.
343
+
344
+ [123] Yue Wang, Shafiq Joty, Michael Lyu, Irwin King, Caiming Xiong, and Steven Hoi. VD-BERT: A unified vision and dialog transformer with BERT. In Conference on Empirical Methods in Natural Language Processing, 2020.
345
+
346
+ [124] Zirui Wang, Jiahui Yu, Adams Wei Yu, Zihang Dai, Yulia Tsvetkov, and Yuan Cao. SimVLM: Simple visual language model pretraining with weak supervision. arXiv:2108.10904, 2021.
347
+
348
+ [125] Jason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V. Le. Finetuned language models are zero-shot learners. arXiv:2109.01652, 2021.
349
+
350
+ [126] Laura Weidinger, John Mellor, Maribeth Rauh, Conor Griffin, Jonathan Uesato, Po-Sen Huang, Myra Cheng, Mia Glaese, Borja Balle, Atoosa Kasirzadeh, Zac Kenton, Sasha Brown, Will Hawkins, Tom Stepleton, Courtney Biles, Abeba Birhane, Julia Haas, Laura Rimell, Lisa Anne Hendricks, William Isaac, Sean Legassick, Geoffrey Irving, and Iason Gabriel. Ethical and social risks of harm from language models. arXiv:2112.04359, 2021.
351
+
352
+ [127] Mitchell Wortsman, Gabriel Ilharco, Samir Yitzhak Gadre, Rebecca Roelofs, Raphael GontijoLopes, Ari S. Morcos, Hongseok Namkoong, Ali Farhadi, Yair Carmon, Simon Kornblith, and Ludwig Schmidt. Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. arXiv:2203.05482, 2022.
353
+
354
+ [128] Bo Wu, Shoubin Yu, Zhenfang Chen, Joshua B. Tenenbaum, and Chuang Gan. STAR: A Benchmark for Situated Reasoning in Real-World Videos. In Conference on Neural Information Processing Systems, 2021.
355
+
356
+ [129] Junbin Xiao, Xindi Shang, Angela Yao, and Tat-Seng Chua. Next-QA: Next phase of questionanswering to explaining temporal actions. In IEEE Computer Vision and Pattern Recognition, 2021.
357
+
358
+ [130] Dejing Xu, Zhou Zhao, Jun Xiao, Fei Wu, Hanwang Zhang, Xiangnan He, and Yueting Zhuang. Video question answering via gradually refined attention over appearance and motion. In ACM Multimedia, 2017.
359
+
360
+ [131] Hanwei Xu, Yujun Chen, Yulun Du, Nan Shao, Yanggang Wang, Haiyu Li, and Zhilin Yang. Zeroprompt: Scaling prompt-based pretraining to 1,000 tasks improves zero-shot generalization. arXiv:2201.06910, 2022.
361
+
362
+ [132] Hu Xu, Gargi Ghosh, Po-Yao Huang, Prahal Arora, Masoumeh Aminzadeh, Christoph Feichtenhofer, Florian Metze, and Luke Zettlemoyer. VLM: Task-agnostic video-language model pre-training for video understanding. arXiv:2105.09996, 2021.
363
+
364
+ [133] Ming Yan, Haiyang Xu, Chenliang Li, Junfeng Tian, Bin Bi, Wei Wang, Weihua Chen, Xianzhe Xu, Fan Wang, Zheng Cao, Zhicheng Zhang, Qiyu Zhang, Ji Zhang, Songfang Huang, Fei Huang, Luo Si, and Rong Jin. Achieving human parity on visual question answering. arXiv:2111.08896, 2021.
365
+
366
+ [134] Shen Yan, Xuehan Xiong, Anurag Arnab, Zhichao Lu, Mi Zhang, Chen Sun, and Cordelia Schmid. Multiview transformers for video recognition. arXiv:2201.04288, 2022.
367
+
368
+ [135] Antoine Yang, Antoine Miech, Josef Sivic, Ivan Laptev, and Cordelia Schmid. Just ask: Learning to answer questions from millions of narrated videos. In International Conference on Computer Vision, 2021.
369
+
370
+ [136] Zhengyuan Yang, Zhe Gan, Jianfeng Wang, Xiaowei Hu, Yumao Lu, Zicheng Liu, and Lijuan Wang. An empirical study of GPT-3 for few-shot knowledge-based VQA. In National Conference on Artificial Intelligence (AAAI), 2021.
371
+
372
+ [137] Zhengyuan Yang, Yijuan Lu, Jianfeng Wang, Xi Yin, Dinei Florencio, Lijuan Wang, Cha Zhang, Lei Zhang, and Jiebo Luo. TAP: Text-aware pre-training for text-VQA and text-caption. In IEEE Computer Vision and Pattern Recognition, 2021.
373
+
374
+ [138] Lewei Yao, Runhui Huang, Lu Hou, Guansong Lu, Minzhe Niu, Hang Xu, Xiaodan Liang, Zhenguo Li, Xin Jiang, and Chunjing Xu. FILIP: Fine-grained interactive language-image pre-training. arXiv:2111.07783, 2021.
375
+
376
+ [139] Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Annual Meeting of the Association for Computational Linguistics, 2014.
377
+
378
+ [140] Lu Yuan, Dongdong Chen, Yi-Ling Chen, Noel Codella, Xiyang Dai, Jianfeng Gao, Houdong Hu, Xuedong Huang, Boxin Li, Chunyuan Li, Ce Liu, Mengchen Liu, Zicheng Liu, Yumao Lu, Yu Shi, Lijuan Wang, Jianfeng Wang, Bin Xiao, Zhen Xiao, Jianwei Yang, Michael Zeng, Luowei Zhou, and Pengchuan Zhang. Florence: A new foundation model for computer vision. arXiv:2111.11432, 2021.
379
+
380
+ [141] Elad Ben Zaken, Shauli Ravfogel, and Yoav Goldberg. BitFit: Simple parameter-efficient fine-tuning for transformer-based masked language-models. arXiv:2106.10199, 2021.
381
+
382
+ [142] Rowan Zellers, Ximing Lu, Jack Hessel, Youngjae Yu, Jae Sung Park, Jize Cao, Ali Farhadi, and Yejin Choi. MERLOT: Multimodal neural script knowledge models. Conference on Neural Information Processing Systems, 2021.
383
+
384
+ [143] Rowan Zellers, Jiasen Lu, Ximing Lu, Youngjae Yu, Yanpeng Zhao, Mohammadreza Salehi, Aditya Kusupati, Jack Hessel, Ali Farhadi, and Yejin Choi. MERLOT reserve: Neural script knowledge through vision and language and sound. In IEEE Computer Vision and Pattern Recognition, 2022.
385
+
386
+ [144] Andy Zeng, Adrian Wong, Stefan Welker, Krzysztof Choromanski, Federico Tombari, Aveek Purohit, Michael Ryoo, Vikas Sindhwani, Johnny Lee, Vincent Vanhoucke, and Pete Florence. Socratic models: Composing zero-shot multimodal reasoning with language. arXiv:2204.00598, 2022.
387
+
388
+ [145] Xiaohua Zhai, Alexander Kolesnikov, Neil Houlsby, and Lucas Beyer. Scaling vision transformers. arXiv:2106.04560, 2021.
389
+
390
+ [146] Xiaohua Zhai, Xiao Wang, Basil Mustafa, Andreas Steiner, Daniel Keysers, Alexander Kolesnikov, and Lucas Beyer. LiT: Zero-shot transfer with locked-image text tuning. arXiv:2111.07991, 2021.
391
+
392
+ [147] Dora Zhao, Angelina Wang, and Olga Russakovsky. Understanding and evaluating racial biases in image captioning. In IEEE Computer Vision and Pattern Recognition, 2021.
393
+
394
+ [148] Zihao Zhao, Eric Wallace, Shi Feng, Dan Klein, and Sameer Singh. Calibrate before use: Improving few-shot performance of language models. In International Conference on Machine Learning, 2021.
395
+
396
+ [149] Luowei Zhou, Chenliang Xu, and Jason J. Corso. Towards automatic learning of procedures from web instructional videos. In National Conference on Artificial Intelligence (AAAI), 2018.
397
+
398
+ [150] Luowei Zhou, Hamid Palangi, Lei Zhang, Houdong Hu, Jason Corso, and Jianfeng Gao. Unified vision-language pre-training for image captioning and VQA. In National Conference on Artificial Intelligence (AAAI), 2020.
399
+
400
+ [151] Linchao Zhu and Yi Yang. ActBERT: Learning global-local video-text representations. In IEEE Computer Vision and Pattern Recognition, 2020.
401
+
402
+ [152] Ron Zhu. Enhance multimodal transformer with external label and in-domain pretrain: Hateful meme challenge winning solution. arXiv:2012.08290, 2020.
403
+
404
+ [153] Xinxin Zhu, Longteng Guo, Peng Yao, Shichen Lu, Wei Liu, and Jing Liu. Vatex video captioning challenge 2020: Multi-view features and hybrid reward strategies for video captioning. arXiv:1910.11102, 2019.
405
+
406
+ [154] Xizhou Zhu, Jinguo Zhu, Hao Li, Xiaoshi Wu, Xiaogang Wang, Hongsheng Li, Xiaohua Wang, and Jifeng Dai. Uni-Perceiver: Pre-training unified architecture for generic perception for zero-shot and few-shot tasks. arXiv:2112.01522, 2021.
407
+
408
+ [155] Luisa Zintgraf, Kyriacos Shiarli, Vitaly Kurin, Katja Hofmann, and Shimon Whiteson. Fast context adaptation via meta-learning. In International Conference on Machine Learning, 2019.
409
+
410
+ # Checklist
411
+
412
+ 1. For all authors...
413
+
414
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
415
+ (b) Did you describe the limitations of your work? [Yes] See Section 5.
416
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 5 for a brief discussion and Appendix D.2 for the full discussion.
417
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
418
+
419
+ 2. If you are including theoretical results...
420
+
421
+ (a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
422
+
423
+ 3. If you ran experiments...
424
+
425
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [No] The code and the data are proprietary.
426
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 3 and Appendix B.
427
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] We do not observe large enough variance in our training runs to justify the computation cost incurred by multiple training runs. For the largest models, it is not feasible within our compute budget.
428
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] Details can be found in Appendix B.1.2. In short, our largest run was trained on 1536 TPU chips for 15 days.
429
+
430
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
431
+
432
+ (a) If your work uses existing assets, did you cite the creators? [Yes] We properly cited the prior methods on which our work is based, as well as prior datasets when appropriate (e.g., ALIGN).
433
+ (b) Did you mention the license of the assets? [N/A] The assets we used are previous work for which we cited papers. We do mention the license of all visual assets we use for the figures of the paper in Appendix G.
434
+ (c) Did you include any new assets either in the supplemental material or as a URL? [No]
435
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] Our data was automatically scraped from million of webpages. See Datasheets [30] in Appendix F.
436
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes] See Datasheets [30] in Appendix F.
437
+
438
+ 5. If you used crowdsourcing or conducted research with human subjects...
439
+
440
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
441
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
442
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/dev/Fkckkr3ya8/Fkckkr3ya8_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/Fkckkr3ya8/Fkckkr3ya8_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/NHeAUKlTO8/NHeAUKlTO8.md ADDED
@@ -0,0 +1,404 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PartialFormer: Modeling Part Instead of Whole for Machine Translation
2
+
3
+ Anonymous EMNLP submission
4
+
5
+ # Abstract
6
+
7
+ The parameter redundancy problem in Transformer models has been widely acknowledged in the literature. To address this weakness, we introduce PartialFormer, a parameter-efficient Transformer architecture for machine translation. Compared to previous parameter-efficient Transformer architecture, PartialFormer modifies the modeling strategy of the feed-forward network to allow it to spare tremendous parameters while maintaining large hidden dimension. Additionally, PartialFormer applies two efficient scaling strategies, namely depth scaling and width scaling, to improve performance within a given parameter budget. To efficiently benefit from these scaling strategies, PartialFormer is further enhanced by two costeffective modifications: 1) a head scaling strategy for efficient width scaling and 2) a residuallike attention calculation for better depth scaling. Extensive experiments on 9 translation tasks validate the effectiveness of our PartialFormer approach.
8
+
9
+ ![](images/87577d14d81bfcc2eba8bcf72cc758b909e4169ed43a7f8857f2625ad2502291.jpg)
10
+ Figure 1: Illustration of our idea.
11
+
12
+ # 1 Introduction
13
+
14
+ The Transformer model (Vaswani et al., 2017) has emerged as a cornerstone in the natural language processing (NLP) domain, overshadowing convolutional neural networks (Gehring et al., 2017) and recurrent neural networks (Sutskever et al., 2014) by virtue of its minimal inductive bias, superior scalability, and proficiency in modeling extended sequences. Nonetheless, its substantial computational and parametric requisites pose significant challenges to its deployment and training, warranting an ongoing trend in the research community toward eliminating redundant parameters and computations in the Transformer model (Dehghani et al., 2019; Lan et al., 2020; Reid et al., 2021; Li et al., 2022; Ahmed et al., 2017; Yan et al., 2020; Wu et al., 2020; Mehta et al., 2019, 2021).
15
+
16
+ it is noteworthy that these approaches ignore the importance of feed-forward networks (FFN). Feedforward networks consume significant parametric and computational overhead due to the inherent large feature space and hidden dimension. To cut down FFNs’ overhead, previous studies (Mehta et al., 2021; Wu et al., 2020; Ge et al., 2022) just adopt smaller hidden dimension, e.g., equal to or even lower than the size of feature space. That leads to a question: Are current lightweight FFNs optimal?
17
+
18
+ Despite their success in improving the parametric and computational efficiency of the Transformer,
19
+
20
+ To address this concern, we turn to the insights provided by Geva et al. (2021), who depicted FFNs as a collection of key-value memories, where the number of memories is equal to the number of hidden dimensions in FFNs. This finding underscores the significance of hidden dimension in FFNs. Drawing inspiration from this finding and the successful application of large hidden sizes in FFNs as evidenced by Meta’s 4B model (Tran et al., 2021)1, we postulate that a truly efficient lightweight FFN should maintain, if not enlarge, the hidden dimension while reducing parameters.
21
+
22
+ To this end, we propose PartialFormer, an innovative approach to Transformer architecture. The central design of PartialFormer is the Partial-Level Gated Feed-Forward Networks (PG-FFN). We designed the PG-FFN as a set of smaller FFNs in unison, each producing lower-dimensional hidden features, yet collectively matching or exceeding the hidden dimension of a conventional larger FFN. Moreover, we further equipped PartialFormer with two cost-effective operations: a head scaling strategy for efficient width scaling, and a residual-like attention calculation for stable optimization. These techniques empower PartialFormer to achieve deeper layer stacking or increased width within the same parameter budget.
23
+
24
+ The strength of PartialFormer has been affirmed through rigorous empirical evaluations on $9 \ \mathrm { m a }$ chine translation tasks. Remarkably, even while maintaining similar parameter consumption, our PartialFormer consistently surpasses the vanilla Transformer, employing the same layer depth and embedding width, by an average of 1.29 BLEU points across all 6 WMT’17 machine translations. Furthermore, it achieved a BLEU score of 29.56 on the challenging WMT’14 En-De task with only 68 million parameters, showcasing its effectiveness and efficiency. Our work with PartialFormer thus marks an important step towards the goal of optimized Transformer architectures, marrying performance with efficiency in a manner that has potential for broad impact in NLP applications.
25
+
26
+ # 2 Preliminary: Transformer
27
+
28
+ In this section, we present some prior knowledge about the Transformer. Typically, Transformer block always consists of a multi-head self-attention and a feed-forward network. Let $X \in \mathbb { R } ^ { T \times d }$ be a $T \times d$ input matrix of $T$ tokens. Each multi-head self-attention component owns $H$ heads. For simplicity, we ignore the layer-normalization operation and residual connection.
29
+
30
+ Multi-Head Self-Attention MHSA aims to model the global dependency among tokens. MHSA computes as follows:
31
+
32
+ $$
33
+ \begin{array} { r c l } { { { \cal A } ^ { i } } } & { { = } } & { { \mathrm { S o f t m a x } ( \displaystyle \frac { Q ^ { i } ( K ^ { i } ) ^ { \top } } { \sqrt { d _ { k } } } ) , } } \\ { { \mathrm { h e a d } _ { i } } } & { { = } } & { { { \cal A } ^ { i } V ^ { i } , } } \\ { { X } } & { { = } } & { { \displaystyle \sum _ { i = 1 } ^ { H } \mathrm { h e a d } _ { i } W _ { i } ^ { O } , } } \end{array}
34
+ $$
35
+
36
+ where $Q ^ { i } , K ^ { i } , V ^ { i }$ denote the query, key and value of $i$ -th head, which are derived from input with three learnable matrics $W _ { i } ^ { Q } , W _ { i } ^ { K } , W _ { i } ^ { V } \ \in \ \mathbb { R } ^ { d \times d _ { k } }$ as follows: $Q ^ { i } \ : = \ : X W _ { i } ^ { Q } , K ^ { i } \ : = \ : X W _ { i } ^ { K } , V ^ { i } \ : =$
37
+
38
+ $X W _ { i } ^ { V }$ , respectively. $W _ { i } ^ { O } \in \mathbb { R } ^ { d _ { k } \times d }$ is a learnable matrix. $A ^ { i }$ and headi denote the attention matrix and representation of $i$ -th head, respectively.
39
+
40
+ Feed-Forward Network Feed-forward network is responsible for improving the expressiveness of the whole representation space by adopting an "expansion-activation-reduction" mapping strategy. It computes as follows:
41
+
42
+ $$
43
+ X = \mathrm { R e L U } ( X W _ { 1 } + b _ { 1 } ) W _ { 2 } + b _ { 2 } ,
44
+ $$
45
+
46
+ where $W _ { 1 } ~ \in ~ \mathbb { R } ^ { d \times d _ { \mathrm { f n } } } , W _ { 2 } ~ \in ~ \mathbb { R } ^ { d _ { \mathrm { f n } } \times d } , b _ { 1 } ~ \in$ $\mathbb { R } ^ { d _ { \mathrm { f f n } } } , b _ { 2 } \in \mathbb { R } ^ { d }$ as learnable matrices and $d _ { \mathrm { { f f n } } }$ denotes the hidden dimension in FFN that is usually set to $4 d$ .
47
+
48
+ # 3 PartialFormer
49
+
50
+ # 3.1 Overall Architecture
51
+
52
+ Figure 2 illustrates the overall architecture of PartialFormer, encompassing both an encoder and a decoder. Although the foundational structure adheres to the design of the vanilla Transformer (Vaswani et al., 2017), there are some notable modifications.
53
+
54
+ Encoder. Different from vanilla Transformer, each encoder layer in PartialFormer consists of a unified sub-layer that integrates the PG-FFNs into the multi-head self-attention mechanism rather than separate two sub-layers.
55
+
56
+ Decoder. Each decoder layer is composed of two types of sub-layers, both of which integrate the multi-head attention mechanism with PG-FFNs. The sub-layers differ based on the type of multihead attention mechanisms employed, specifically whether it’s a decoder self-attention or an encoderdecoder cross-attention mechanism.
57
+
58
+ # 3.2 Information Flow in Unified Sub-Layer
59
+
60
+ Taking the Encoder as an instance. Each unified sub-layer first computes the multiple attention scores via Eq. (5), then obtains the multiple head features $\{ \mathrm { h e a d } ^ { i } | 1 \leq i \leq H \}$ via Eq. (2), which is the same as vanilla Transformer. Then, using multiple small FFNs, it processes these head features and ultimately combines the representations via a fusion function according to Eq. (7). That is to say, the PG-FFN is encapsulated into the multiheadattention mechanism.
61
+
62
+ ![](images/f547cefb32e903685c4ce5bcb23dff57d1f371265a2596bde12acbe0dee13f9d.jpg)
63
+ Figure 2: (a) Architecture of Transformer. (b) Architecture of PartialFormer. (c) Details of Self-AFFN Block. All architecture are based on pre-normalization strategy. We omit the layer normalization operation, residual connection, softmax operation and scale coefficient for simplicity.
64
+
65
+ $$
66
+ \begin{array} { l l l } { { A ^ { i } } } & { { = } } & { { \displaystyle \mathrm { S o f t m a x } ( \frac { Q ^ { i } ( K ^ { i } ) ^ { \top } } { \sqrt { d _ { k } } } + A _ { G } ^ { i } ) , } } \\ { { O ^ { i } } } & { { = } } & { { \displaystyle \mathrm { P G } \mathrm { - } \mathrm { F F N } ( \mathrm { h e a d } ^ { i } ) , } } \\ { { X } } & { { = } } & { { \displaystyle \sum _ { i = 1 } ^ { H } O ^ { i } W _ { i } ^ { O } } } \end{array}
67
+ $$
68
+
69
+ # 3.3 Partial-Level Gated FFN
70
+
71
+ Intuition Previous studies (Wu et al., 2020; Mehta et al., 2021; Ge et al., 2022) have commonly reduced the parameters in feed-forward networks by decreasing the hidden dimension (e.g., 2048 to 256). In contrast, we tackle this issue through a matrix factorization approach. Our key idea involves utilizing a collection of small FFNs to model smaller input features, rather than relying on a single large FFN.
72
+
73
+ Assume a FFN with mappings of $1 0 2 4 \mathrm { - } { > } 4 0 9 6 \mathrm { - }$ ${ > } 1 0 2 4$ , which consumes around 8.4 million parameters. By decomposing this into 8 smaller FFNs with mappings of $1 2 8 \mathrm { - } > 5 1 2 \mathrm { - } > 1 2 8$ , we can retain the same hidden dimension, such as $8 ^ { * } 5 1 2$ , while using only 1.05 million parameters. This approach significantly reduces parameters while maintaining the crucial desired hidden dimension, as emphasized in previous studies (Geva et al., 2021; Tran et al., 2021).
74
+
75
+ Furthermore, we have observed that the Transformer architecture inherently consists of multiple smaller subspaces, namely “heads” within the multi-head attention (MHA) mechanism. These heads act as sub-components of the original inputs and retain substantial information from the original data. As a result, PG-FFNs should naturally be constructed based on the MHA mechanism.
76
+
77
+ Calculation of PG-FFNs While group transformation operations could be used to instantiate our idea, they are not optimal on GPUs due to their low I/O efficiency (Ma et al., 2018), causing significant inference latency. To address this, we propose sharing parameters across each FFN within different heads, thereby eliminating the need for group transformation operations.
78
+
79
+ However, directly sharing weights may result in homogeneous representations across different heads, which may potentially hinder the performance (Li et al., 2018). To mitigate this, we further introduce a head-specific gated mechanism. The core idea is to use a set of diverse masks to filter the information of different heads so that the head representation will be more diverse. Formally, given a set of smaller features $\{ \mathrm { h e a d } ^ { i } | 1 \leq i \leq H \}$ and diverse masks $\{ G ^ { i } | 1 \leq i \leq H \}$ , the Eq. (6) can rewritten as:
80
+
81
+ $$
82
+ O ^ { i } = G ^ { i } \odot \mathrm { F F N } ( \mathrm { h e a d } ^ { i } ) ,
83
+ $$
84
+
85
+ where $\mathrm { F F N } ( \cdot )$ is the same as Eq. (4).
86
+
87
+ Generating $\{ G ^ { i } | 1 \le i \le H \}$ In our preliminary experiments, we observed significant diversity in the features generated by different parameters from sub-layer inputs, e.g., $\{ V ^ { 1 } , \ldots , V ^ { H } \}$ . Motivated by this finding, we generate diverse masks in the following manner:
88
+
89
+ $$
90
+ G ^ { i } = \sigma ( X W _ { i } ^ { G } ) ,
91
+ $$
92
+
93
+ where $W _ { i } ^ { G }$ is a learnable matrix and $\sigma$ denotes the activation function, e.g., ReLU, Sigmoid and Tanh. We compare them in Table 8.
94
+
95
+ # 3.4 Efficient Scaling Strategy
96
+
97
+ Though PG-FFN offers the advantage of reducing lots of parameters when applied directly to the transformer, it also leads to performance degradation. Thus, a crucial aspect of this study is to determine how to effectively utilize the spared parameters. In this work, we adopt a hybrid scaling strategy, combining both width scaling and depth scaling, which has been validated in computer vision, e.g., EfficientNet (Tan and Le, 2019).
98
+
99
+ # 3.4.1 Enabling Efficient Depth Scaling for PartialFormer
100
+
101
+ Wang et al. (2019); Dong et al. (2021); Wang et al. (2022) have shown that the original location of FFNs plays an essential role in optimizing transformers, e.g., alleviating Token Uniformity. Thus, we need to consider the impact brought by the change of FFNs. While the densely residual connection is an efficient way to alleviate it, they are typically either based on feature level (e.g., DLCL (Wang et al., 2019)) or coupled with the network structure (e.g., Realformer (He et al., 2021)).
102
+
103
+ To this end, we design a new variant of the residual connection integrated into the attention calculation, while also decoupling from the network architecture. Specifically, the calculation of attention maps consists of two parts: 1) $A _ { G }$ , the global part, and 2) $A _ { L }$ , the local part. The calculation of $A _ { L }$ remains the same as in the vanilla Transformer, while $A _ { G }$ is computed once by using the original embedding as input through Eq. (1). Inspired by He et al. (2021), to efficiently fuse these components, we add them together and apply a Softmax function, as shown in Eq. (5).
104
+
105
+ In addition to the benefit of efficient depth scaling (See Appendix F), this approach provides remarkable flexibility in combining different attention mechanisms, specifically tailored to address specific conditions. For instance, it allows for the utilization of local attention to calculate $A _ { G }$ when dealing with small datasets (see Appendix D).
106
+
107
+ # 3.4.2 Head Scaling: An Efficient Width Scaling for PartialFormer
108
+
109
+ Existing approach to width scaling, which is based on the embedding size, necessitates the simultaneous scaling of both the encoder and decoder for machine translation tasks. This is primarily because researchers commonly employ shared encoder and decoder embedding. However, taking cues from the achievements of depth scaling, it may be more advantageous to adopt a distinct method for scaling width, similar to the approach used for scaling depth. Here we show how PartialFormer has inherent superiority to achieve so.
110
+
111
+ The width of a Transformer model typically refers to the widest part of the Transformer. In this context, both the vanilla Transformer and previous lightweight Transformer models have widths that are related to the embedding dimension, such as $4 d$ or $d$ . Therefore, by increasing the embedding size, we can effectively enlarge their width. However, the width definition in PartialFormer is different and can be expressed as $w = H \times d _ { \mathrm { f f n } }$ , where $w$ denotes the width of model and $d _ { \mathrm { { f f n } } }$ is associated with the head dimension $d _ { k }$ . Consequently, we can expand the width by either increasing the number of heads or enlarging $d _ { k }$ . A comparison between these approaches is presented in Table 7. Notably, if the head dimension and number of heads are independent of the embedding dimension, PartialFormer allows for easy scaling of width in different ways within the encoder and decoder components.
112
+
113
+ ![](images/dcc02863d4f889023bf37de14a7d7d957b53cd0fca0d0347221602cad1538aa8.jpg)
114
+ Figure 3: Comparison of ways to generate subspaces in Transformer and PartialFormer.
115
+
116
+ To this end, we propose a new scaling mechanism, namely head scaling, that scales the width of PartialFormer by directly adding more heads and increasing head dimension, as illustrated in Figure 3. Given the head dimension $d _ { k }$ , the embedding dimension $d$ , and the number of heads $H$ , we consider two strategies to generate $H$ attention heads:
117
+
118
+ (a) Simple strategy: We employ three learnable matrices, each with a shape of $d \times ( d _ { k } \times H )$ , to directly obtain the expected number of $Q$ , $K$ , and $V$ .
119
+
120
+ (b) Complex strategy: we employ a two-step process. First, we generate an intermediate quantity of $Q$ and $K$ , and then use a powerful MLP network to expand the attention maps to the desired number. This innovative design draws inspiration from the inherent redundancy found within the attention map (Michel et al., 2019; Clark et al., 2019; Voita et al., 2019), allowing for more heads in PartialFormer under the same parameter budget. We show the comparisons in Table 6.
121
+
122
+ ![](images/5bd9198300e5fd500b403dbe34b7b2366bd59237b2fedae9ea0ef1a734622101.jpg)
123
+
124
+ ![](images/fa37f7a5a3a2beb8d9f67b378d00f636a4c0fffb083e25cf799ff2241f27f30b.jpg)
125
+
126
+ <table><tr><td>Type</td><td>Model</td><td>N-M</td><td>ddk</td><td></td><td></td><td></td><td>H MACs Param</td><td>BLEU</td><td>COMET-22</td></tr><tr><td rowspan="4">Multi-Branch Architecture</td><td>Weighted Transformer (Ahmed et al.,2017)</td><td>6-6</td><td>1024</td><td></td><td></td><td></td><td>211M</td><td>28.90</td><td></td></tr><tr><td>Multi-Unit Transformer (Yan et al.,2020)</td><td>6-6</td><td></td><td></td><td></td><td></td><td>130M</td><td>29.30</td><td></td></tr><tr><td>MAT (Fan et al., 2020)</td><td>6-6</td><td></td><td></td><td></td><td></td><td>206M</td><td>29.90</td><td></td></tr><tr><td>Multi-Path Transformer (Lin et al., 2022)</td><td>6-6</td><td></td><td></td><td></td><td></td><td>193M</td><td>29.68</td><td></td></tr><tr><td>Lightweight Architecture</td><td>Evolved Transformer (So et al., 2019) Delight (Mehta et al., 2021)</td><td></td><td></td><td></td><td></td><td></td><td>64M</td><td>28.20</td><td></td></tr><tr><td rowspan="5">Weight Sharing</td><td></td><td></td><td>640</td><td></td><td></td><td></td><td>54M</td><td>28.00</td><td></td></tr><tr><td>Universal Transformer (Dehghani et al.,2019)</td><td></td><td>1024</td><td></td><td>=</td><td></td><td>65M</td><td>28.90</td><td></td></tr><tr><td>SubFormer (Reid et al., 2021)</td><td></td><td>-</td><td></td><td>=</td><td></td><td>63M</td><td>28.50</td><td></td></tr><tr><td>SubFormer-big (Reid et al., 2021)</td><td></td><td></td><td></td><td></td><td></td><td>197M</td><td>29.30</td><td></td></tr><tr><td>ODE Transformer (RK4) (Li et al., 2022) ODE Transformer (RK4) (Li et al., 2022)</td><td>6-6 24-6</td><td>512 512</td><td></td><td>=</td><td></td><td>62M 118M</td><td>29.03 29.80</td><td></td></tr><tr><td rowspan="3">Other Comparisons</td><td></td><td></td><td></td><td>64</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>RealFormer (He et al., 2021) DMAN (Fan et al., 2021)</td><td>18-18</td><td>512 512</td><td></td><td>8 8</td><td></td><td>151M</td><td>29.35</td><td></td></tr><tr><td>Mega-Softmax (Ma et al.,2022)</td><td>6-6 6-6</td><td>512</td><td></td><td></td><td></td><td>63M 67M</td><td>29.10 29.01</td><td></td></tr><tr><td rowspan="7">Our System</td><td>Transformer</td><td></td><td></td><td>64</td><td>1</td><td></td><td></td><td></td><td></td></tr><tr><td>PartialFormer (w/o Head Scaling)</td><td>24-6</td><td>512</td><td>8-8</td><td></td><td>11.1B</td><td>118M</td><td>29.05</td><td>83.60</td></tr><tr><td>PartialFormer</td><td>24-6</td><td>512</td><td>64 24-16</td><td>8-8</td><td>8.8B</td><td>66M</td><td>28.86 30.09</td><td>83.35 84.17</td></tr><tr><td></td><td>24-6</td><td>512</td><td>64</td><td></td><td>12.2B</td><td>115M</td><td></td><td></td></tr><tr><td>Transformer</td><td>6-6</td><td>512</td><td>64 45</td><td>8-8</td><td>9.9B</td><td>62M</td><td>27.43</td><td>82.19</td></tr><tr><td>Transformer PartialFormer (w/o Head Scaling)</td><td>24-6 24-6</td><td>360 360</td><td>45</td><td>8-8 8-8</td><td>6.3B 5.2B</td><td>62M 36M</td><td>28.00 27.88</td><td>82.72 82.49</td></tr><tr><td></td><td></td><td>360</td><td>45</td><td>24-16</td><td>6.8B</td><td>61M</td><td>29.23</td><td></td></tr><tr><td></td><td>PartialFormer PartialFormer</td><td>24-6 24-6</td><td>360</td><td>45 30-16</td><td></td><td>6.9B</td><td>68M</td><td>29.56</td><td>83.74 83.94</td></tr></table>
127
+
128
+ Table 1: Results on the WMT’14 En-De task. MACs denote the multiplication-addition operations. We compute them via 20 source and target tokens following Mehta et al. (2021).
129
+
130
+ # 4 Experimental Setups
131
+
132
+ In our evaluation, we assess the performance of PartialFormer across 9 machine translation tasks2. More details are given in Appendix A
133
+
134
+ Dataset. We evaluate our approach on three widely-used datasets: WMT’14 English-German (En-De), WMT’14 English-French (En-Fr), and WMT’16 English-Romanian (En-Ro). Besides, to further validate the effectiveness of PartialFormer, we also evaluate PartialFormer on six translation tasks from WMT’17 benchmark. We preprocess the raw data following the standard strategy.
135
+
136
+ Architectures and Selected Baselines. We use a 24-6 encoder-decoder PartialFormer architecture for its strong performance, on all 9 machine translation tasks. Detailed configurations are provided in the results tables. We compare our approach with various baselines, including vanilla Transformer models, multi-branch architecture, lightweight architecture, weight-sharing methods, and other strong baselines.
137
+
138
+ Training & Evaluation. We train all the models on GeForce RTX 3090 cards via Fairseq (Ott et al., 2019) toolkit. For evaluation, we utilized multi-BLEU (Papineni et al., 2002) and COMET22 (Rei et al., 2022) scores. Beam sizes were 4, 4, and 5 for En-De, En-Fr, and En-Ro tasks respectively. Length_penalty of 0.6, 0.8, and 1.3 were applied to En-De, En-Fr, and En-Ro tasks respectively. For the WMT’17 benchmark, beam size and Length_penalty were set to 4 and 1, respectively. We used an ensemble of the last ten checkpoints.
139
+
140
+ # 5 Experiments
141
+
142
+ Results of WMT’14 En-De Table 1 presents the results for the WMT’14 En-De task. Note that we also provide a “strong” baseline which also benefits from deep model stacking. Even though the performance of PartialFormer (w/o Head Scaling) is slightly inferior to that of the Transformer model (27.88 vs. 28.00 and 28.86 vs. 29.05), it outshines the latter in terms of parameter efficiency, consuming significantly fewer parameters (36M vs. 62M, 66M vs. 118M). We attribute this phenomenon to our PG-FFN, which leverages a group of compact FFNs. This approach enables PG-FFN to maintain high hidden dimension, while drastically reducing parameter consumption.
143
+
144
+ Upon utilizing our head scaling technique to amplify the capacity, our Partialformer delivers a BLEU score 29.56 and 30.09 on two configurations, respectively. This surpasses the standard Transformer by 1.56 BLEU points (29.56 vs. 28.00) and
145
+
146
+ Table 2: Results on the WMT’14 En-Fr task.
147
+
148
+ <table><tr><td>Model</td><td>N</td><td>ddk</td><td>HParam BLEU</td></tr><tr><td>Weighted Transformer (2017)</td><td>6</td><td></td><td>- 211M 41.40</td></tr><tr><td>Evolved Transformer (2019)</td><td>=</td><td></td><td>64M 40.60</td></tr><tr><td>Delight (2021)</td><td>-640</td><td></td><td>54M 40.50</td></tr><tr><td>ODE Transformer (2022)</td><td>6</td><td>=</td><td>69M 42.56</td></tr><tr><td>ODE Transformer (2022)</td><td>24</td><td></td><td>123M 43.28</td></tr><tr><td>Multi-Path Transformer (2022)</td><td>=</td><td></td><td>168M 42.44</td></tr><tr><td>Transformer</td><td>24 512 64</td><td>8-8</td><td>120M 42.33</td></tr><tr><td>PartialFormer (w/o Head Scaling) 24 512 648-8</td><td></td><td></td><td>68M 41.68</td></tr><tr><td>PartialFormer</td><td></td><td>24 512 64 24-18</td><td>119M 43.10</td></tr><tr><td>PartialFormer</td><td></td><td>24 512 64 24-24</td><td>127M 43.29</td></tr><tr><td>Transformer</td><td>6 512 64</td><td>8-8</td><td>63M 40.79</td></tr><tr><td>Transformer</td><td>24 360 45</td><td>8-8</td><td>64M 40.96</td></tr><tr><td>PartialFormer(w/o Head Scaling) 24 360 45</td><td></td><td>8-8</td><td>38M 40.44</td></tr><tr><td>PartialFormer</td><td></td><td>24 360 45 24-18</td><td>63M 42.16</td></tr><tr><td>PartialFormer</td><td></td><td>24 360 45 24-24</td><td>67M 42.39</td></tr></table>
149
+
150
+ 1.04 BLEU points (30.09 vs. 29.05) within a similar model capacity. The enhancement here can be attributed to the head scaling method, which allows PartialFormer to possess a larger hidden dimension, thereby bolstering its capacity for memory storage (Geva et al., 2021). These observations are further confirmed by the COMET-22 scores.
151
+
152
+ Moreover, PartialFormer can even surpass all selected multi-branch Transformers while using fewer parameters. Notably, PartialFormer $N =$ $2 4 , d \ = \ 5 1 2 )$ outperforms the latest multi-path Transformer (Lin et al., 2022) by 0.41 BLEU points with 78M fewer parameters. This highlights the efficiency of building a multi-branch network based on inherent subspaces. Additionally, PartialFormer excels over previous lightweight approaches and outperforms state-of-the-art weight-sharing methods, e.g., ODE Transformer (Li et al., 2022), and other strong baselines, e.g., Mega (Ma et al., 2022). Notably, both ODE Transformer and Mega utilize relative position encoding (Shaw et al., 2018).
153
+
154
+ Results of WMT’14 En-Fr Table 2 presents the results of PartialFormer on the WMT’14 En-Fr task. Similar to the findings in the En-De task, PartialFormer demonstrates a similar phenomenon. Notably, PartialFormer achieves comparable results to Transformer $( N = 2 4 , d = 5 1 2 )$ (42.39 vs. 42.33) while utilizing 53M fewer parameters (67M vs. 120M). This highlights the remarkable parameter efficiency of PartialFormer.
155
+
156
+ Results of WMT’16 En-Ro Table 3 presents the results on the test set of the WMT’16 En-Ro task. Notably, PartialFormer achieves the highest BLEU points among all selected baselines. It is particularly remarkable that PartialFormer achieves similar results to ODE Transformer while utilizing 178M fewer parameters. This highlights the exceptional efficiency of PartialFormer.
157
+
158
+ Table 3: Results on the WMT’16 En-Ro task.
159
+
160
+ <table><tr><td>Model</td><td>N</td><td>ddk</td><td>H Param BLEU</td></tr><tr><td>Delight (Mehta et al., 2021)</td><td>- 640-</td><td>■</td><td>53M 34.70</td></tr><tr><td>Subformer (Reid et al.,2021)</td><td>■</td><td>- ■ -</td><td>48M 34.70</td></tr><tr><td>ODE Transformer (Li et al.,2022)</td><td>6 1024 64 16-16</td><td></td><td>226M 35.28</td></tr><tr><td>Transformer</td><td>24 512 64</td><td>8-8</td><td>111M 35.00</td></tr><tr><td>PartialFormer (w/o Head Scaling)</td><td>24 512</td><td>64 8-8</td><td>59M 35.07</td></tr><tr><td>PartialFormer</td><td>24</td><td>320 4024-24</td><td>48M 35.30</td></tr></table>
161
+
162
+ Table 4: Results on the WMT’17 benchmark. PartialFormer has the same depth and $d$ as the Transformer but consumes 1M fewer parameters on average.
163
+
164
+ <table><tr><td rowspan="2">Model</td><td colspan="2">Fi←→En</td><td colspan="2">De←→En</td><td colspan="2">Lv← →En</td><td rowspan="2">Avg.</td></tr><tr><td>Fi→En En→FiDe→En En-→DeLv-→En En→Lv</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Transformer</td><td>26.07</td><td>22.14</td><td>35.04</td><td>28.59</td><td>17.59</td><td>16.23</td><td>24.27</td></tr><tr><td>PartialFormer</td><td>27.48</td><td>23.35</td><td>35.60</td><td>29.91</td><td>19.65</td><td>17.37</td><td>25.56</td></tr></table>
165
+
166
+ Results of WMT’17 Benchmark Table 4 presents the WMT’17 benchmark results, showing that PartialFormer consistently outperforms Transformer by an average of 1.29 BLEU points in all six translation tasks. This finding is consistent with the observed performance in the En-De task.
167
+
168
+ # 6 Analysis
169
+
170
+ # 6.1 Ablation Studies
171
+
172
+ Table 5 presents an ablation study of PartialFormer on the WMT’14 En-De task, demonstrating the critical role of each component. Omitting any element causes performance decline, underscoring the holistic design. The PG-FFN removal (#3 vs. #4) results in a large performance drop of 2.05 BLEU points, despite a mere 16 million parameters reduction. This evidence corroborates previous findings (Dong et al., 2021) on the subpar performance of pure attention networks sans FFN, highlighting the essential role of PG-FFN in PartialFormer.
173
+
174
+ Besides, Table 5 shows the results of different PartialFormer configurations on the WMT’14 En-De task. The encoder-decoder PartialFormer achieves the highest performance, reaching 29.56 BLEU points, indicating the effectiveness of our approach in enhancing both the encoder and the decoder. Employing our concept to either the encoder or the decoder individually also improves performance, yet the encoder-decoder configuration persistently surpasses others, marking the greatest performance improvement.
175
+
176
+ Table 5: Ablation studies on WMT’14 En-De task.
177
+
178
+ <table><tr><td># Model</td><td>Param BLEU</td></tr><tr><td>1 Transformer (N = 24,d = 360)</td><td>62M 28.00</td></tr><tr><td>2 Pure Attention (N= 24,d = 360)</td><td>31M 25.70</td></tr><tr><td>3 PartialFormer</td><td>68M 29.56</td></tr><tr><td>4 w/o Partial-level Gated FFN</td><td>52M 27.51</td></tr><tr><td>5 w/o Residual-like Attention Calculation</td><td>66M 29.26</td></tr><tr><td>6 w/o Head Scaling</td><td>36M 27.88</td></tr><tr><td>7 PartialFormer (encoder only)</td><td>67M 29.15</td></tr><tr><td>8 PartialFormer (decoder only)</td><td>63M 28.80</td></tr></table>
179
+
180
+ Table 7: Comparison of different width scaling strategy on the En-De task.
181
+
182
+ <table><tr><td>Model</td><td>Param BLEU</td></tr><tr><td>PartialFormer (w/o Head Scaling)</td><td>36M 27.88</td></tr><tr><td>+ Simple Head Scaling</td><td>68M 29.33</td></tr><tr><td>+ Complex Head Scaling</td><td>68M 29.56</td></tr></table>
183
+
184
+ Table 6: Comparison of head scaling strategy on WMT’14 En-De task.
185
+
186
+ # 6.2 Comparison of Head Scaling Strategy
187
+
188
+ Table 6 presents the results of PartialFormer on the En-De task test set with varying head scaling techniques. Both simple and complex strategies effectively utilize additional parameters to enhance PartialFormer’s performance. Notably, the complex head scaling technique, allowing for more parameters allocated to additional heads, demonstrates superior performance.
189
+
190
+ # 6.3 Discussions on Width Scaling Strategies
191
+
192
+ Table 7 presents the results of analyzing three key ways to increase the width in PartialFormer: 1) $d _ { k }$ , 2) $H$ , and 3) $d$ , on the En-De task’s test set. Notably, the findings indicate that both increasing $H$ and adding $d _ { k }$ can effectively enhance the capacity of PartialFormer. Additionally, enlarging $d$ can be beneficial for performance improvements when it is small, e.g., less than 360. However, beyond a certain threshold, further increments of $d$ become redundant and do not lead to performance gains. This aligns with previous studies (Mehta et al., 2021; Baevski and Auli, 2019) highlighting redundant information in the embedding layer.
193
+
194
+ # 6.4 Comparison of Gating Strategy
195
+
196
+ Table 8 presents a comparison of various activation functions used in PG-FFN. The results indicate that the default choice, ReLU activation, yields the best performance. One explanation is that the ReLU activation provides hard masks for filtering the information of different heads, compared to other activation functions. Such hard masks can make different heads more diverse.
197
+
198
+ <table><tr><td>Model</td><td>Seting</td><td>H d</td><td>dk Param</td><td>BLEU</td></tr><tr><td rowspan="7">PartialFormer</td><td>Basic</td><td>|30-16 360</td><td>45 68M</td><td>29.56</td></tr><tr><td>Varying Encoder H</td><td>|24-16 360 45 16-16 360 45</td><td>61M 51M</td><td>29.23 29.02</td></tr><tr><td>Varying Decoder H</td><td>[16-24 360 45 16-30360 45</td><td>56M 60M</td><td>28.85 29.20</td></tr><tr><td></td><td>|30-16 360 30</td><td>49M</td><td>28.70</td></tr><tr><td>Varying dh</td><td>30-16 360 60 30-16 360 90</td><td>86M 124M</td><td>29.68</td></tr><tr><td></td><td></td><td></td><td>30.00</td></tr><tr><td>Varying d</td><td>|30-16 180 45 30-16 270 45 30-16 450 45</td><td>35M 51M 84M</td><td>27.61 28.80 29.41</td></tr></table>
199
+
200
+ # 6.5 Efficiency Analysis
201
+
202
+ Table 9 exhibits the inference efficiency on the test set of En-De task. It is evident that PartialFormer incurs a reasonable increase in inference cost, which remains within acceptable limits.
203
+
204
+ # 6.6 Analysis on Behaviours of FFN
205
+
206
+ Metric. Following Zhang et al. (2022), we examine FFN behaviors across four aspects: activation neuron count (namely $n _ { \mathrm { a c t . } } )$ ), FFNs’ hidden dimension, activation-neuron ratio (activations divided by hidden dimension, namely $R _ { \mathrm { a c t . } }$ ), and FFN efficiency (activations divided by parameters, namely $\eta _ { \mathrm { { f f i n } } } )$ . Notably, for PartialFormer, the hidden dimension represents the concatenation of hidden dimensions from all smaller FFNs.
207
+
208
+ Results. Figure 4(a-c) exhibits the results on the En-De test set. It is evident that PartialFormer has a lower activation ratio than the vanilla Transformer, as shown in Figure 4(b). This indicates that PGFFNs based on matrix factorization present lower utilization of the hidden dimension compared to the vanilla FFNs. However, our PG-FFN is parameter consumption friendly, enabling larger hidden layer dimensions with the same parameter budget (e.g., 5400 vs. 1440). Despite lower utilization of hidden dimension, it can still own more activated neurons, as depicted in Figure 4(a). Additionally, our PGFFN exhibits higher efficiency compared to vanilla FFNs, as shown in Figure 4(c). Multiple small FFNs, like “Swarm Intelligence” (Bonabeau et al., 1999), outperform large FFNs by leveraging the collective strength of weak individuals.
209
+
210
+ Table 8: Comparison of activation functions in PGFFNs.
211
+
212
+ <table><tr><td>Model</td><td>Param BLEU</td></tr><tr><td>PG-FFNs</td><td>68M 29.56</td></tr><tr><td>PG-FFNs with Sigmoid activation</td><td>68M 29.21</td></tr><tr><td>PG-FFNs with Tanh activation</td><td>68M 29.03</td></tr></table>
213
+
214
+ Table 9: Efficiency comparison between Transformer and PartialFormer in inference.
215
+
216
+ <table><tr><td>Model</td><td colspan="4">Param Speed (Tok./s)Memory BLEU</td></tr><tr><td>Transformer</td><td>62M</td><td>4325</td><td>3.0G</td><td>28.00</td></tr><tr><td>PartialFormer (w/o head scaling)</td><td>66M</td><td>3634</td><td>3.2G</td><td>28.86</td></tr><tr><td>PartialFormer</td><td>68M</td><td>3023</td><td>3.3G</td><td>29.56</td></tr></table>
217
+
218
+ # 6.7 Analysis on Head Diversity
219
+
220
+ Metric. We select the same metric, namely $D _ { o u t p u t }$ , as that in Li et al. (2018) to measure the diversity among head features. In this metric, a larger value indicates a higher level of diversity.
221
+
222
+ Results. From Figure 4(d), we can observe that PartialFormer exhibits more diverse head features compared to the vanilla Transformer, even though the vanilla Transformer already demonstrates diverse features. This aligns with previous study (Li et al., 2018), which demonstrates the positive impact of head feature diversity on the Transformer model’s performance. Thus, we conclude that the insertion of FFNs into attention mechanism may be a more optimal design.
223
+
224
+ # 7 Related Work
225
+
226
+ Lightweight Transformers Many methods have been proposed to improve the parameter efficiency of Transformer architecture. The first line is to directly cut down redundant computations and parameters via a more efficient design such as adopting more efficient transformation operations (Mehta et al., 2019, 2021), integrating different but complementary patterns (Wu et al., 2020) and neural architecture search (So et al., 2019). Another research direction for improving parameter efficiency in the Transformer is weight sharing. The popular cross-layer sharing method is utilized by the Universal Transformer (Dehghani et al., 2019). Reid et al. (2021) propose better performance by freeing the first and last encoder layers and widening the intermediate layers. Li et al. (2022) introduce an ordinary differential equation-inspired weightsharing method for more precise results. Different from these work, our study focus on the design of efficient lightweight FFN.
227
+
228
+ ![](images/5cec8e8c7564f86b66a2a3fde975639ff37eeaac9506bd16cdd39ff8be563e0f.jpg)
229
+ Figure 4: Analysis on behaviours of FFNs and head diversity in Transformer and PartialFormer.
230
+
231
+ Multi-Branch Transformer The multi-branch strategy is widely used in Transformer design. Weighted Transformer (Ahmed et al., 2017) employs a multi-branch FFN, while Multi-attentive Transformer (Fan et al., 2020), Multi-units Transformer (Yan et al., 2020), and Multi-Path Transformer (Lin et al., 2022) extend this concept to different components of the Transformer. Our work introduces a pure multi-branch architecture based on natural subspaces.
232
+
233
+ Scaling Strategy in Transformer Deepening (Bapna et al., 2018; Wang et al., 2019) and widening (Vaswani et al., 2017; Wu et al., 2021) Transformer have been well-acknowledged as two strategies to improve the capacity of Transformer in literature. In this work, PartialFormer adopts two alternative strategies to improve capacity, adding a number of heads and head dimensions.
234
+
235
+ # 8 Conclusion
236
+
237
+ In this paper, we present PartialFormer, a new parameter-efficient Transformer architecture that offers an alternative approach to the design of the lightweight FFN. By employing multiple small FFNs and leveraging matrix factorization techniques, PartialFormer effectively reduces the number of parameters in the FFN. Moreover, we propose two innovative operations to further efficiently enhance the model capabilities. Experimental results across various machine translation tasks showcase the significant performance improvements achieved by PartialFormer, while maintaining comparable parameter consumption.
238
+
239
+ # Limitations
240
+
241
+ Despite the potential advantages of Partialformer in terms of parameter utilization and performance within a limited parameter budget, it is important to note that the existing conclusions regarding its effectiveness have not been thoroughly examined in the context of large-scale datasets and a higher number of parameters. Further research is needed to validate the claims and assess the scalability of Partialformer in more challenging scenarios.
242
+
243
+ # References
244
+
245
+ Karim Ahmed, Nitish Shirish Keskar, and Richard Socher. 2017. Weighted transformer network for machine translation. CoRR.
246
+
247
+ Alexei Baevski and Michael Auli. 2019. Adaptive input representations for neural language modeling. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019.
248
+
249
+ Ankur Bapna, Mia Chen, Orhan Firat, Yuan Cao, and Yonghui Wu. 2018. Training deeper neural machine translation models with transparent attention. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 3028– 3033, Brussels, Belgium. Association for Computational Linguistics.
250
+
251
+ Eric Bonabeau, Marco Dorigo, and Guy Theraulaz. 1999. Swarm Intelligence: From Natural to Artificial Systems. Oxford University Press.
252
+
253
+ Kevin Clark, Urvashi Khandelwal, Omer Levy, and Christopher D. Manning. 2019. What does BERT look at? an analysis of BERT’s attention. In Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 276–286, Florence, Italy. Association for Computational Linguistics.
254
+
255
+ Yann N. Dauphin, Angela Fan, Michael Auli, and David Grangier. 2017. Language modeling with gated convolutional networks. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, volume 70 of Proceedings of Machine Learning Research, pages 933–941. PMLR.
256
+
257
+ Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. 2019. Universal transformers. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019.
258
+
259
+ Yihe Dong, Jean-Baptiste Cordonnier, and Andreas Loukas. 2021. Attention is not all you need: pure attention loses rank doubly exponentially with depth. In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, pages 2793–2803.
260
+
261
+ Yang Fan, Shufang Xie, Yingce Xia, Lijun Wu, Tao Qin, Xiang-Yang Li, and Tie-Yan Liu. 2020. Multi-branch attentive transformer. ArXiv, abs/2006.10270.
262
+
263
+ Zhihao Fan, Yeyun Gong, Dayiheng Liu, Zhongyu Wei, Siyuan Wang, Jian Jiao, Nan Duan, Ruofei Zhang, and Xuanjing Huang. 2021. Mask attention networks: Rethinking and strengthen transformer. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1692–1701, Online. Association for Computational Linguistics.
264
+
265
+ Tao Ge, Si-Qing Chen, and Furu Wei. 2022. EdgeFormer: A parameter-efficient transformer for ondevice seq2seq generation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 10786–10798, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
266
+
267
+ Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. 2017. Convolutional sequence to sequence learning. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, pages 1243–1252.
268
+
269
+ Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. 2021. Transformer feed-forward layers are keyvalue memories. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 5484–5495, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
270
+
271
+ Ruining He, Anirudh Ravula, Bhargav Kanagal, and Joshua Ainslie. 2021. RealFormer: Transformer likes residual attention. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pages 929–943, Online. Association for Computational Linguistics.
272
+
273
+ Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. 2020. ALBERT: A lite BERT for self-supervised learning of language representations. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020.
274
+
275
+ Bei Li, Quan Du, Tao Zhou, Yi Jing, Shuhan Zhou, Xin Zeng, Tong Xiao, JingBo Zhu, Xuebo Liu, and Min Zhang. 2022. ODE transformer: An ordinary differential equation-inspired model for sequence generation. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8335–8351, Dublin, Ireland. Association for Computational Linguistics.
276
+
277
+ Jian Li, Zhaopeng Tu, Baosong Yang, Michael R. Lyu, and Tong Zhang. 2018. Multi-head attention with disagreement regularization. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2897–2903, Brussels, Belgium. Association for Computational Linguistics.
278
+
279
+ Ye Lin, Shuhan Zhou, Yanyang Li, Anxiang Ma, Tong Xiao, and Jingbo Zhu. 2022. Multi-path transformer is better: A case study on neural machine translation. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 5646–5656, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
280
+
281
+ Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. 2018. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In Computer Vision – ECCV 2018: 15th European Conference, Munich, Germany, September 8–14, 2018, Proceedings, Part XIV, page 122–138, Berlin, Heidelberg. SpringerVerlag.
282
+
283
+ Xuezhe Ma, Chunting Zhou, Xiang Kong, Junxian He, Liangke Gui, Graham Neubig, Jonathan May, and Luke Zettlemoyer. 2022. Mega: Moving average equipped gated attention. CoRR.
284
+
285
+ Sachin Mehta, Marjan Ghazvininejad, Srinivasan Iyer, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2021. Delight: Deep and light-weight transformer. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021.
286
+
287
+ Sachin Mehta, Rik Koncel-Kedziorski, Mohammad Rastegari, and Hannaneh Hajishirzi. 2019. Define: Deep factorized input word embeddings for neural sequence modeling. ArXiv, abs/1911.12385.
288
+
289
+ Paul Michel, Omer Levy, and Graham Neubig. 2019. Are sixteen heads really better than one? Advances in neural information processing systems, 32.
290
+
291
+ Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. 2019. fairseq: A fast, extensible toolkit for sequence modeling. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (Demonstrations), pages 48–53, Minneapolis, Minnesota. Association for Computational Linguistics.
292
+
293
+ Kishore Papineni, Salim Roukos, Todd Ward, and WeiJing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311–318, Philadelphia, Pennsylvania, USA. Association for Computational Linguistics.
294
+
295
+ Ricardo Rei, José G. C. de Souza, Duarte Alves, Chrysoula Zerva, Ana C Farinha, Taisiya Glushkova, Alon Lavie, Luisa Coheur, and André F. T. Martins. 2022. COMET-22: Unbabel-IST 2022 submission for the metrics shared task. In Proceedings of the Seventh Conference on Machine Translation (WMT), pages 578–585, Abu Dhabi, United Arab Emirates (Hybrid). Association for Computational Linguistics.
296
+
297
+ Machel Reid, Edison Marrese-Taylor, and Yutaka Matsuo. 2021. Subformer: Exploring weight sharing for parameter efficiency in generative transformers. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 4081–4090, Punta Cana, Dominican Republic. Association for Computational Linguistics.
298
+
299
+ Peter Shaw, Jakob Uszkoreit, and Ashish Vaswani. 2018. Self-attention with relative position representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pages 464–468, New Orleans, Louisiana. Association for Computational Linguistics.
300
+
301
+ Noam Shazeer. 2020. Glu variants improve transformer. arXiv preprint arXiv:2002.05202.
302
+
303
+ David R. So, Quoc V. Le, and Chen Liang. 2019. The evolved transformer. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, pages 5877–5886.
304
+
305
+ Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. 2014. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December 8-13 2014, Montreal, Quebec, Canada, pages 3104–3112.
306
+
307
+ Mingxing Tan and Quoc Le. 2019. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning, pages 6105–6114. PMLR.
308
+
309
+ Chau Tran, Shruti Bhosale, James Cross, Philipp Koehn, Sergey Edunov, and Angela Fan. 2021. Facebook AI’s WMT21 news translation task submission. In Proceedings of the Sixth Conference on Machine Translation, pages 205–215, Online. Association for Computational Linguistics.
310
+
311
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 5998–6008.
312
+
313
+ Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. 2019. Analyzing multi-head self-attention: Specialized heads do the heavy lifting, the rest can be pruned. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5797–5808, Florence, Italy. Association for Computational Linguistics.
314
+
315
+ Peihao Wang, Wenqing Zheng, Tianlong Chen, and Zhangyang Wang. 2022. Anti-oversmoothing in deep vision transformers via the fourier domain analysis: From theory to practice. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022.
316
+
317
+ Qiang Wang, Bei Li, Tong Xiao, Jingbo Zhu, Changliang Li, Derek F. Wong, and Lidia S. Chao. 2019. Learning deep transformer models for machine translation. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1810–1822, Florence, Italy. Association for Computational Linguistics.
318
+
319
+ Lijun Wu, Juntao Li, Yue Wang, Qi Meng, Tao Qin, Wei Chen, Min Zhang, Tie-Yan Liu, et al. 2021. R-drop: Regularized dropout for neural networks. Advances in Neural Information Processing Systems, 34:10890– 10905.
320
+
321
+ Zhanghao Wu, Zhijian Liu, Ji Lin, Yujun Lin, and Song Han. 2020. Lite transformer with long-short range attention. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020.
322
+
323
+ Jianhao Yan, Fandong Meng, and Jie Zhou. 2020. Multiunit transformers for neural machine translation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1047–1059, Online. Association for Computational Linguistics.
324
+
325
+ Zhengyan Zhang, Yankai Lin, Zhiyuan Liu, Peng Li, Maosong Sun, and Jie Zhou. 2022. MoEfication: Transformer feed-forward layers are mixtures of experts. In Findings of the Association for Computational Linguistics: ACL 2022, pages 877–890, Dublin, Ireland. Association for Computational Linguistics.
326
+
327
+ # A Detailed Setups of Experiments
328
+
329
+ # A.1 Dataset
330
+
331
+ Table 10 displays the statistics of all the 9 translation task.
332
+
333
+ # A.2 Training Details
334
+
335
+ Table 11 and 12 exhibits the training details on all translation tasks.
336
+
337
+ # B Metric Definition
338
+
339
+ # B.1 Measurement of Head Diversity
340
+
341
+ Following Li et al. (2018), we measure the head diversity as follows:
342
+
343
+ $$
344
+ D _ { \mathrm { o u t p u t } } = \exp ( - \frac { 1 } { H ^ { 2 } } \sum _ { i = 1 } ^ { H } \sum _ { j = 1 } ^ { H } \frac { | O ^ { i } \cdot O ^ { j } | } { \| O ^ { i } \| \| O ^ { j } \| } )
345
+ $$
346
+
347
+ During evaluation, we calculate the metric on all samples and average the values to obtain the final result.
348
+
349
+ # C More Comparison with Previous Lightweight Transformer
350
+
351
+ Table 13 presents a comprehensive comparison of previous lightweight Transformer models on the En-De task’s test set, with a specific focus on operating within a smaller parameter budget. The results prominently showcase the outstanding performance of PartialFormer, even when faced with constraints on model capacity. This outcome further emphasizes the superior capabilities of PartialFormer in scenarios with limited resources.
352
+
353
+ # D PartialFormer with Different $A _ { G }$ for Small Dataset
354
+
355
+ Table 14 showcases the results of PartialFormer on the WMT’16 En-Ro task, a small-scale translation dataset, specifically when $A _ { G }$ is calculated using local attention (Shaw et al., 2018). Notably, these results reveal that by adopting such an approach, PartialFormer achieves an impressive BLEU score of 35.76. We hope this can shed lights on the area of model integration.
356
+
357
+ # E PartialFormer with GLU and Weight Sharing
358
+
359
+ In this section, we investigate the integration of PartialFormer with two prominent techniques to enhance parameter efficiency: 1) the weight sharing method (Lan et al., 2020), and 2) gated linear units (Dauphin et al., 2017). To ensure the utilization of the latest advancements, we employ a state-of-the-art weight sharing method called ODE Transformer (Li et al., 2022), known for its effectiveness in promoting parameter efficiency in Transformer architectures. Additionally, we incorporate Swi-GLU (Shazeer, 2020), a widely adopted GLUvariant that has served as a foundational component in numerous expressive Transformer architectures.
360
+
361
+ Table 10: The details of datasets of 9 translation tasks.
362
+
363
+ <table><tr><td rowspan="2">Dataset</td><td colspan="3">Sentence</td><td rowspan="2">BPE</td><td rowspan="2">Vocab</td></tr><tr><td>Train</td><td>Dev</td><td>Test</td></tr><tr><td>WMT&#x27;14 En-De</td><td>4.5M</td><td>2999 26815</td><td>3003</td><td>32K 32K</td><td>34040 37288</td></tr><tr><td>WMT&#x27;14 En-Fr WMT&#x27;16 En-Ro</td><td>36M 0.6M</td><td>1999</td><td>3003 1999</td><td>20K</td><td>19064</td></tr><tr><td>WMT&#x27;17 En-De</td><td>5.9M</td><td>7998</td><td>3004</td><td>32K</td><td>35488</td></tr><tr><td>WMT&#x27;17 De-En</td><td>5.9M</td><td>7998</td><td>3004</td><td>32K</td><td>35448</td></tr><tr><td>WMT&#x27;17 En-Fi</td><td>2.7M</td><td>4225</td><td>3002</td><td>32K</td><td>32584</td></tr><tr><td>WMT&#x27;17Fi-En</td><td>2.7M</td><td>4225</td><td>3002</td><td>32K</td><td>32584</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>WMT&#x27;17 En-Lv WMT&#x27;17Lv-En</td><td>4.5M 4.5M</td><td>2003 2003</td><td>2001 2001</td><td>20K 20K</td><td>32368 32368</td></tr></table>
364
+
365
+ Table 11: The training setups of WMT’14 En-De, WMT’16 En-Ro and WMT’14 En-Fr tasks.
366
+
367
+ <table><tr><td colspan="4">Hyper-parameter WMT&#x27;14 En-De WMT&#x27;16En-Ro WMT&#x27;14 En-Fr</td></tr><tr><td>GPUs</td><td>8</td><td>4</td><td>8</td></tr><tr><td>Batch Size</td><td>4096</td><td>4096</td><td>4096</td></tr><tr><td>Update Frequency</td><td>2</td><td>1</td><td>8</td></tr><tr><td>Optimer</td><td>Adam</td><td>Adam</td><td>Adam</td></tr><tr><td>Adamβ</td><td>(0.9,0.997)</td><td>(0.9, 0.997)</td><td>(0.9, 0.997)</td></tr><tr><td>LR</td><td>0.0020</td><td>0.0020</td><td>0.0020</td></tr><tr><td>LR scheduler</td><td>inverse sqrt</td><td>inverse sqrt</td><td>inverse sqrt</td></tr><tr><td>InitialLR</td><td>1e-7</td><td>1e-7</td><td>le-7</td></tr><tr><td>Total updates</td><td>50K</td><td>25K</td><td>100K</td></tr><tr><td>Warmup updates</td><td>16000</td><td>8000</td><td>16000</td></tr><tr><td>Weight decay</td><td>0.0000</td><td>0.0000</td><td>0.0000</td></tr><tr><td>Label smoothing</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Dropout</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Attention dropout</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>ReLU dropout</td><td>0.1</td><td>0.1</td><td>0.1</td></tr></table>
368
+
369
+ Table 12: The training setups of WMT’17 benchmark.
370
+
371
+ <table><tr><td colspan="3">Hyper-parameterI En-{De,Lv} {De,Lv}-En</td><td>En-Fi</td><td>Fi-En</td></tr><tr><td>GPUs</td><td>8</td><td>8</td><td>8</td><td>8</td></tr><tr><td>Batch Size</td><td>4096</td><td>4096</td><td>4096</td><td>4096</td></tr><tr><td>Update Frequency</td><td>2</td><td>1</td><td>1</td><td>4</td></tr><tr><td>Optimer</td><td>Adam</td><td>Adam</td><td>Adam</td><td>Adam</td></tr><tr><td>Adamβ</td><td>(0.9, 0.997)</td><td>(0.9, 0.997)</td><td>(0.9,0.997) (0.9,0.997)</td><td></td></tr><tr><td>LR</td><td>0.0020</td><td>0.0020</td><td>0.0020</td><td>0.0020</td></tr><tr><td>LR scheduler</td><td>inverse sqrt</td><td>inverse sqrt</td><td>inverse sqrt</td><td>inverse sqrt</td></tr><tr><td>Initial LR</td><td>1e-7</td><td>1e-7</td><td>1e-7</td><td>le-7</td></tr><tr><td>Total updates</td><td>50K/17K</td><td>50K/17K</td><td>40K</td><td>10K</td></tr><tr><td>Warmup updates</td><td>16000</td><td>16000</td><td>16000</td><td>16000</td></tr><tr><td>Weight decay</td><td>0.0000</td><td>0.0000</td><td>0.0000</td><td>0.0000</td></tr><tr><td>Label smoothing</td><td>0.1</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Dropout</td><td>0.1</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Attention dropout</td><td>0.1</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>ReLU dropout</td><td>0.1</td><td>0.1</td><td>0.1</td><td>0.1</td></tr></table>
372
+
373
+ Table 15 displays the results of combining PartialFormer with weight sharing and gated linear units. Despite the integration of these two techniques, the performance gains are marginal. This could be attributed to the fact that PartialFormer already possesses high parameter efficiency, leaving little room for additional enhancements from other technologies. In other words, PartialFormer is inherently a high parameter efficiency architecture.
374
+
375
+ Table 13: Comparison with state-of-the-art models of smaller capacities on the En-De task.
376
+
377
+ <table><tr><td>Model</td><td>Param BLEU</td></tr><tr><td>DELIGHT (Mehta et al., 2021) EdgeFormer (Ge et al., 2022) Lite Transformer (Wu et al.,2020) PartialFormer</td><td>23M 26.70 - 26.90 - 26.50 27M 27.50</td></tr><tr><td>Evolved Transformer (So et al., 2019) DELIGHT (Mehta et al., 2021) ODE Transformer (Li et al., 2022) PartialFormer</td><td>48M 27.70 37M 27.60 37M 28.24 36M 28.35</td></tr></table>
378
+
379
+ Table 14: Results of several PartialFormer variants on the En-De task.
380
+
381
+ <table><tr><td>AG</td><td>AL</td><td>Param</td><td>BLEU</td></tr><tr><td>RPR</td><td>MHSA</td><td>62M</td><td>35.76</td></tr></table>
382
+
383
+ Table 15: Results of PartialFormer variants on the EnDe task.
384
+
385
+ <table><tr><td>Model</td><td>Param</td><td>BLEU</td></tr><tr><td>PartialFormer</td><td>67M</td><td>29.56</td></tr><tr><td>PartialFormer + Weight Sharing</td><td>67M</td><td>29.71</td></tr><tr><td>GLU-based PartialFormer</td><td>67M</td><td>29.67</td></tr></table>
386
+
387
+ # F Analysis on Token Uniformity
388
+
389
+ Following (Dong et al., 2021; Wang et al., 2022), we measure the token uniformity among token representations. We use pearson correlation to compute it.
390
+
391
+ From Figure 5, we can observe that PartialFormer owns a lower token uniformity among token representations than the vanilla Transformer, revealing that PartialFormer can benefit from depth scaling efficiently (Dong et al., 2021; Wang et al., 2022).
392
+
393
+ # G Preliminary Experiments on Language Modeling
394
+
395
+ We also evaluate the effectiveness of PartialFormer on the language modeling task. We can see that
396
+
397
+ ![](images/517907196c26506a55372a37e562c0ab840c57819add59a61bb59d3cc5f52ae6.jpg)
398
+ Figure 5: Comparison of token uniformity (lower is better) in Transformer and PartialFormer.
399
+
400
+ PartialFormer can also show better results compared to strong baseline, e.g., Adaptive Input Transformer (Baevski and Auli, 2019). We will present more comprehensive experiments in the future.
401
+
402
+ <table><tr><td>Model</td><td>Depth 0 (M) Test PPL</td></tr><tr><td>Adaptive Input</td><td>8 147M 21.11</td></tr><tr><td>PartialFormer</td><td>16 143M 19.87</td></tr></table>
403
+
404
+ Table 16: Results on the WikiText-103 dataset.
parse/dev/NHeAUKlTO8/NHeAUKlTO8_content_list.json ADDED
@@ -0,0 +1,2243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "PartialFormer: Modeling Part Instead of Whole for Machine Translation ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 121,
8
+ 89,
9
+ 877,
10
+ 110
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous EMNLP submission ",
17
+ "bbox": [
18
+ 361,
19
+ 153,
20
+ 643,
21
+ 170
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 263,
31
+ 252,
32
+ 339,
33
+ 268
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The parameter redundancy problem in Transformer models has been widely acknowledged in the literature. To address this weakness, we introduce PartialFormer, a parameter-efficient Transformer architecture for machine translation. Compared to previous parameter-efficient Transformer architecture, PartialFormer modifies the modeling strategy of the feed-forward network to allow it to spare tremendous parameters while maintaining large hidden dimension. Additionally, PartialFormer applies two efficient scaling strategies, namely depth scaling and width scaling, to improve performance within a given parameter budget. To efficiently benefit from these scaling strategies, PartialFormer is further enhanced by two costeffective modifications: 1) a head scaling strategy for efficient width scaling and 2) a residuallike attention calculation for better depth scaling. Extensive experiments on 9 translation tasks validate the effectiveness of our PartialFormer approach. ",
40
+ "bbox": [
41
+ 144,
42
+ 279,
43
+ 458,
44
+ 592
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "image",
50
+ "img_path": "images/87577d14d81bfcc2eba8bcf72cc758b909e4169ed43a7f8857f2625ad2502291.jpg",
51
+ "image_caption": [
52
+ "Figure 1: Illustration of our idea. "
53
+ ],
54
+ "image_footnote": [],
55
+ "bbox": [
56
+ 521,
57
+ 249,
58
+ 872,
59
+ 373
60
+ ],
61
+ "page_idx": 0
62
+ },
63
+ {
64
+ "type": "text",
65
+ "text": "1 Introduction ",
66
+ "text_level": 1,
67
+ "bbox": [
68
+ 117,
69
+ 605,
70
+ 258,
71
+ 620
72
+ ],
73
+ "page_idx": 0
74
+ },
75
+ {
76
+ "type": "text",
77
+ "text": "The Transformer model (Vaswani et al., 2017) has emerged as a cornerstone in the natural language processing (NLP) domain, overshadowing convolutional neural networks (Gehring et al., 2017) and recurrent neural networks (Sutskever et al., 2014) by virtue of its minimal inductive bias, superior scalability, and proficiency in modeling extended sequences. Nonetheless, its substantial computational and parametric requisites pose significant challenges to its deployment and training, warranting an ongoing trend in the research community toward eliminating redundant parameters and computations in the Transformer model (Dehghani et al., 2019; Lan et al., 2020; Reid et al., 2021; Li et al., 2022; Ahmed et al., 2017; Yan et al., 2020; Wu et al., 2020; Mehta et al., 2019, 2021). ",
78
+ "bbox": [
79
+ 115,
80
+ 631,
81
+ 487,
82
+ 887
83
+ ],
84
+ "page_idx": 0
85
+ },
86
+ {
87
+ "type": "text",
88
+ "text": "it is noteworthy that these approaches ignore the importance of feed-forward networks (FFN). Feedforward networks consume significant parametric and computational overhead due to the inherent large feature space and hidden dimension. To cut down FFNs’ overhead, previous studies (Mehta et al., 2021; Wu et al., 2020; Ge et al., 2022) just adopt smaller hidden dimension, e.g., equal to or even lower than the size of feature space. That leads to a question: Are current lightweight FFNs optimal? ",
89
+ "bbox": [
90
+ 512,
91
+ 425,
92
+ 882,
93
+ 601
94
+ ],
95
+ "page_idx": 0
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "Despite their success in improving the parametric and computational efficiency of the Transformer, ",
100
+ "bbox": [
101
+ 115,
102
+ 889,
103
+ 487,
104
+ 919
105
+ ],
106
+ "page_idx": 0
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "To address this concern, we turn to the insights provided by Geva et al. (2021), who depicted FFNs as a collection of key-value memories, where the number of memories is equal to the number of hidden dimensions in FFNs. This finding underscores the significance of hidden dimension in FFNs. Drawing inspiration from this finding and the successful application of large hidden sizes in FFNs as evidenced by Meta’s 4B model (Tran et al., 2021)1, we postulate that a truly efficient lightweight FFN should maintain, if not enlarge, the hidden dimension while reducing parameters. ",
111
+ "bbox": [
112
+ 512,
113
+ 605,
114
+ 882,
115
+ 797
116
+ ],
117
+ "page_idx": 0
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "To this end, we propose PartialFormer, an innovative approach to Transformer architecture. The central design of PartialFormer is the Partial-Level Gated Feed-Forward Networks (PG-FFN). We designed the PG-FFN as a set of smaller FFNs in unison, each producing lower-dimensional hidden features, yet collectively matching or exceeding the hidden dimension of a conventional larger FFN. Moreover, we further equipped PartialFormer with two cost-effective operations: a head scaling strategy for efficient width scaling, and a residual-like attention calculation for stable optimization. These techniques empower PartialFormer to achieve deeper layer stacking or increased width within the same parameter budget. ",
122
+ "bbox": [
123
+ 512,
124
+ 800,
125
+ 882,
126
+ 878
127
+ ],
128
+ "page_idx": 0
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "",
133
+ "bbox": [
134
+ 115,
135
+ 84,
136
+ 487,
137
+ 244
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "The strength of PartialFormer has been affirmed through rigorous empirical evaluations on $9 \\ \\mathrm { m a }$ chine translation tasks. Remarkably, even while maintaining similar parameter consumption, our PartialFormer consistently surpasses the vanilla Transformer, employing the same layer depth and embedding width, by an average of 1.29 BLEU points across all 6 WMT’17 machine translations. Furthermore, it achieved a BLEU score of 29.56 on the challenging WMT’14 En-De task with only 68 million parameters, showcasing its effectiveness and efficiency. Our work with PartialFormer thus marks an important step towards the goal of optimized Transformer architectures, marrying performance with efficiency in a manner that has potential for broad impact in NLP applications. ",
144
+ "bbox": [
145
+ 115,
146
+ 246,
147
+ 487,
148
+ 504
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 Preliminary: Transformer ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 117,
158
+ 516,
159
+ 374,
160
+ 532
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "In this section, we present some prior knowledge about the Transformer. Typically, Transformer block always consists of a multi-head self-attention and a feed-forward network. Let $X \\in \\mathbb { R } ^ { T \\times d }$ be a $T \\times d$ input matrix of $T$ tokens. Each multi-head self-attention component owns $H$ heads. For simplicity, we ignore the layer-normalization operation and residual connection. ",
167
+ "bbox": [
168
+ 115,
169
+ 542,
170
+ 485,
171
+ 670
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Multi-Head Self-Attention MHSA aims to model the global dependency among tokens. MHSA computes as follows: ",
178
+ "bbox": [
179
+ 115,
180
+ 681,
181
+ 487,
182
+ 728
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "equation",
188
+ "img_path": "images/7c441977fe83d11be8c5f52b13101ae5a5b225910c133ee20c093ad3cc23298c.jpg",
189
+ "text": "$$\n\\begin{array} { r c l } { { { \\cal A } ^ { i } } } & { { = } } & { { \\mathrm { S o f t m a x } ( \\displaystyle \\frac { Q ^ { i } ( K ^ { i } ) ^ { \\top } } { \\sqrt { d _ { k } } } ) , } } \\\\ { { \\mathrm { h e a d } _ { i } } } & { { = } } & { { { \\cal A } ^ { i } V ^ { i } , } } \\\\ { { X } } & { { = } } & { { \\displaystyle \\sum _ { i = 1 } ^ { H } \\mathrm { h e a d } _ { i } W _ { i } ^ { O } , } } \\end{array}\n$$",
190
+ "text_format": "latex",
191
+ "bbox": [
192
+ 171,
193
+ 740,
194
+ 426,
195
+ 843
196
+ ],
197
+ "page_idx": 1
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "where $Q ^ { i } , K ^ { i } , V ^ { i }$ denote the query, key and value of $i$ -th head, which are derived from input with three learnable matrics $W _ { i } ^ { Q } , W _ { i } ^ { K } , W _ { i } ^ { V } \\ \\in \\ \\mathbb { R } ^ { d \\times d _ { k } }$ as follows: $Q ^ { i } \\ : = \\ : X W _ { i } ^ { Q } , K ^ { i } \\ : = \\ : X W _ { i } ^ { K } , V ^ { i } \\ : =$ ",
202
+ "bbox": [
203
+ 115,
204
+ 853,
205
+ 485,
206
+ 921
207
+ ],
208
+ "page_idx": 1
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "$X W _ { i } ^ { V }$ , respectively. $W _ { i } ^ { O } \\in \\mathbb { R } ^ { d _ { k } \\times d }$ is a learnable matrix. $A ^ { i }$ and headi denote the attention matrix and representation of $i$ -th head, respectively. ",
213
+ "bbox": [
214
+ 512,
215
+ 83,
216
+ 882,
217
+ 131
218
+ ],
219
+ "page_idx": 1
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "Feed-Forward Network Feed-forward network is responsible for improving the expressiveness of the whole representation space by adopting an \"expansion-activation-reduction\" mapping strategy. It computes as follows: ",
224
+ "bbox": [
225
+ 510,
226
+ 147,
227
+ 882,
228
+ 227
229
+ ],
230
+ "page_idx": 1
231
+ },
232
+ {
233
+ "type": "equation",
234
+ "img_path": "images/cf5e95409afb2a05ddc65b05d7b7309f126f4b470121703ae326a2c3e4c441a0.jpg",
235
+ "text": "$$\nX = \\mathrm { R e L U } ( X W _ { 1 } + b _ { 1 } ) W _ { 2 } + b _ { 2 } ,\n$$",
236
+ "text_format": "latex",
237
+ "bbox": [
238
+ 568,
239
+ 244,
240
+ 823,
241
+ 263
242
+ ],
243
+ "page_idx": 1
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "where $W _ { 1 } ~ \\in ~ \\mathbb { R } ^ { d \\times d _ { \\mathrm { f n } } } , W _ { 2 } ~ \\in ~ \\mathbb { R } ^ { d _ { \\mathrm { f n } } \\times d } , b _ { 1 } ~ \\in$ $\\mathbb { R } ^ { d _ { \\mathrm { f f n } } } , b _ { 2 } \\in \\mathbb { R } ^ { d }$ as learnable matrices and $d _ { \\mathrm { { f f n } } }$ denotes the hidden dimension in FFN that is usually set to $4 d$ . ",
248
+ "bbox": [
249
+ 510,
250
+ 278,
251
+ 882,
252
+ 343
253
+ ],
254
+ "page_idx": 1
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "3 PartialFormer ",
259
+ "text_level": 1,
260
+ "bbox": [
261
+ 512,
262
+ 361,
263
+ 668,
264
+ 378
265
+ ],
266
+ "page_idx": 1
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "3.1 Overall Architecture ",
271
+ "text_level": 1,
272
+ "bbox": [
273
+ 514,
274
+ 392,
275
+ 719,
276
+ 407
277
+ ],
278
+ "page_idx": 1
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "Figure 2 illustrates the overall architecture of PartialFormer, encompassing both an encoder and a decoder. Although the foundational structure adheres to the design of the vanilla Transformer (Vaswani et al., 2017), there are some notable modifications. ",
283
+ "bbox": [
284
+ 510,
285
+ 416,
286
+ 882,
287
+ 495
288
+ ],
289
+ "page_idx": 1
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "Encoder. Different from vanilla Transformer, each encoder layer in PartialFormer consists of a unified sub-layer that integrates the PG-FFNs into the multi-head self-attention mechanism rather than separate two sub-layers. ",
294
+ "bbox": [
295
+ 512,
296
+ 511,
297
+ 882,
298
+ 590
299
+ ],
300
+ "page_idx": 1
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "Decoder. Each decoder layer is composed of two types of sub-layers, both of which integrate the multi-head attention mechanism with PG-FFNs. The sub-layers differ based on the type of multihead attention mechanisms employed, specifically whether it’s a decoder self-attention or an encoderdecoder cross-attention mechanism. ",
305
+ "bbox": [
306
+ 510,
307
+ 606,
308
+ 884,
309
+ 718
310
+ ],
311
+ "page_idx": 1
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "3.2 Information Flow in Unified Sub-Layer ",
316
+ "text_level": 1,
317
+ "bbox": [
318
+ 510,
319
+ 734,
320
+ 863,
321
+ 750
322
+ ],
323
+ "page_idx": 1
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "Taking the Encoder as an instance. Each unified sub-layer first computes the multiple attention scores via Eq. (5), then obtains the multiple head features $\\{ \\mathrm { h e a d } ^ { i } | 1 \\leq i \\leq H \\}$ via Eq. (2), which is the same as vanilla Transformer. Then, using multiple small FFNs, it processes these head features and ultimately combines the representations via a fusion function according to Eq. (7). That is to say, the PG-FFN is encapsulated into the multiheadattention mechanism. ",
328
+ "bbox": [
329
+ 510,
330
+ 759,
331
+ 884,
332
+ 919
333
+ ],
334
+ "page_idx": 1
335
+ },
336
+ {
337
+ "type": "image",
338
+ "img_path": "images/f547cefb32e903685c4ce5bcb23dff57d1f371265a2596bde12acbe0dee13f9d.jpg",
339
+ "image_caption": [
340
+ "Figure 2: (a) Architecture of Transformer. (b) Architecture of PartialFormer. (c) Details of Self-AFFN Block. All architecture are based on pre-normalization strategy. We omit the layer normalization operation, residual connection, softmax operation and scale coefficient for simplicity. "
341
+ ],
342
+ "image_footnote": [],
343
+ "bbox": [
344
+ 146,
345
+ 80,
346
+ 855,
347
+ 231
348
+ ],
349
+ "page_idx": 2
350
+ },
351
+ {
352
+ "type": "equation",
353
+ "img_path": "images/211d625e8544aca492ddda9a58f15d486d9de4fcfe10d50f6677ae909151a31c.jpg",
354
+ "text": "$$\n\\begin{array} { l l l } { { A ^ { i } } } & { { = } } & { { \\displaystyle \\mathrm { S o f t m a x } ( \\frac { Q ^ { i } ( K ^ { i } ) ^ { \\top } } { \\sqrt { d _ { k } } } + A _ { G } ^ { i } ) , } } \\\\ { { O ^ { i } } } & { { = } } & { { \\displaystyle \\mathrm { P G } \\mathrm { - } \\mathrm { F F N } ( \\mathrm { h e a d } ^ { i } ) , } } \\\\ { { X } } & { { = } } & { { \\displaystyle \\sum _ { i = 1 } ^ { H } O ^ { i } W _ { i } ^ { O } } } \\end{array}\n$$",
355
+ "text_format": "latex",
356
+ "bbox": [
357
+ 159,
358
+ 341,
359
+ 436,
360
+ 444
361
+ ],
362
+ "page_idx": 2
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "3.3 Partial-Level Gated FFN ",
367
+ "text_level": 1,
368
+ "bbox": [
369
+ 117,
370
+ 458,
371
+ 356,
372
+ 474
373
+ ],
374
+ "page_idx": 2
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "Intuition Previous studies (Wu et al., 2020; Mehta et al., 2021; Ge et al., 2022) have commonly reduced the parameters in feed-forward networks by decreasing the hidden dimension (e.g., 2048 to 256). In contrast, we tackle this issue through a matrix factorization approach. Our key idea involves utilizing a collection of small FFNs to model smaller input features, rather than relying on a single large FFN. ",
379
+ "bbox": [
380
+ 115,
381
+ 482,
382
+ 487,
383
+ 626
384
+ ],
385
+ "page_idx": 2
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "Assume a FFN with mappings of $1 0 2 4 \\mathrm { - } { > } 4 0 9 6 \\mathrm { - }$ ${ > } 1 0 2 4$ , which consumes around 8.4 million parameters. By decomposing this into 8 smaller FFNs with mappings of $1 2 8 \\mathrm { - } > 5 1 2 \\mathrm { - } > 1 2 8$ , we can retain the same hidden dimension, such as $8 ^ { * } 5 1 2$ , while using only 1.05 million parameters. This approach significantly reduces parameters while maintaining the crucial desired hidden dimension, as emphasized in previous studies (Geva et al., 2021; Tran et al., 2021). ",
390
+ "bbox": [
391
+ 115,
392
+ 629,
393
+ 487,
394
+ 788
395
+ ],
396
+ "page_idx": 2
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "Furthermore, we have observed that the Transformer architecture inherently consists of multiple smaller subspaces, namely “heads” within the multi-head attention (MHA) mechanism. These heads act as sub-components of the original inputs and retain substantial information from the original data. As a result, PG-FFNs should naturally be constructed based on the MHA mechanism. ",
401
+ "bbox": [
402
+ 115,
403
+ 791,
404
+ 487,
405
+ 919
406
+ ],
407
+ "page_idx": 2
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "Calculation of PG-FFNs While group transformation operations could be used to instantiate our idea, they are not optimal on GPUs due to their low I/O efficiency (Ma et al., 2018), causing significant inference latency. To address this, we propose sharing parameters across each FFN within different heads, thereby eliminating the need for group transformation operations. ",
412
+ "bbox": [
413
+ 510,
414
+ 312,
415
+ 884,
416
+ 441
417
+ ],
418
+ "page_idx": 2
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "However, directly sharing weights may result in homogeneous representations across different heads, which may potentially hinder the performance (Li et al., 2018). To mitigate this, we further introduce a head-specific gated mechanism. The core idea is to use a set of diverse masks to filter the information of different heads so that the head representation will be more diverse. Formally, given a set of smaller features $\\{ \\mathrm { h e a d } ^ { i } | 1 \\leq i \\leq H \\}$ and diverse masks $\\{ G ^ { i } | 1 \\leq i \\leq H \\}$ , the Eq. (6) can rewritten as: ",
423
+ "bbox": [
424
+ 512,
425
+ 443,
426
+ 882,
427
+ 618
428
+ ],
429
+ "page_idx": 2
430
+ },
431
+ {
432
+ "type": "equation",
433
+ "img_path": "images/3e9fcb327568b67be70a66f5b6b558aefe5f7f80109bbfe14475d1b82301b3ce.jpg",
434
+ "text": "$$\nO ^ { i } = G ^ { i } \\odot \\mathrm { F F N } ( \\mathrm { h e a d } ^ { i } ) ,\n$$",
435
+ "text_format": "latex",
436
+ "bbox": [
437
+ 588,
438
+ 624,
439
+ 803,
440
+ 644
441
+ ],
442
+ "page_idx": 2
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "where $\\mathrm { F F N } ( \\cdot )$ is the same as Eq. (4). ",
447
+ "bbox": [
448
+ 512,
449
+ 651,
450
+ 786,
451
+ 667
452
+ ],
453
+ "page_idx": 2
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "Generating $\\{ G ^ { i } | 1 \\le i \\le H \\}$ In our preliminary experiments, we observed significant diversity in the features generated by different parameters from sub-layer inputs, e.g., $\\{ V ^ { 1 } , \\ldots , V ^ { H } \\}$ . Motivated by this finding, we generate diverse masks in the following manner: ",
458
+ "bbox": [
459
+ 510,
460
+ 674,
461
+ 882,
462
+ 771
463
+ ],
464
+ "page_idx": 2
465
+ },
466
+ {
467
+ "type": "equation",
468
+ "img_path": "images/15f3089edac678e7a70aca209000c82f48faffe36ed7df3c40b5bd0095a3bec7.jpg",
469
+ "text": "$$\nG ^ { i } = \\sigma ( X W _ { i } ^ { G } ) ,\n$$",
470
+ "text_format": "latex",
471
+ "bbox": [
472
+ 631,
473
+ 784,
474
+ 759,
475
+ 804
476
+ ],
477
+ "page_idx": 2
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "where $W _ { i } ^ { G }$ is a learnable matrix and $\\sigma$ denotes the activation function, e.g., ReLU, Sigmoid and Tanh. We compare them in Table 8. ",
482
+ "bbox": [
483
+ 510,
484
+ 808,
485
+ 882,
486
+ 857
487
+ ],
488
+ "page_idx": 2
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "3.4 Efficient Scaling Strategy ",
493
+ "text_level": 1,
494
+ "bbox": [
495
+ 512,
496
+ 868,
497
+ 756,
498
+ 883
499
+ ],
500
+ "page_idx": 2
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "Though PG-FFN offers the advantage of reducing lots of parameters when applied directly to the transformer, it also leads to performance degradation. Thus, a crucial aspect of this study is to determine how to effectively utilize the spared parameters. In this work, we adopt a hybrid scaling strategy, combining both width scaling and depth scaling, which has been validated in computer vision, e.g., EfficientNet (Tan and Le, 2019). ",
505
+ "bbox": [
506
+ 510,
507
+ 888,
508
+ 882,
509
+ 920
510
+ ],
511
+ "page_idx": 2
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "",
516
+ "bbox": [
517
+ 115,
518
+ 85,
519
+ 487,
520
+ 197
521
+ ],
522
+ "page_idx": 3
523
+ },
524
+ {
525
+ "type": "text",
526
+ "text": "3.4.1 Enabling Efficient Depth Scaling for PartialFormer ",
527
+ "text_level": 1,
528
+ "bbox": [
529
+ 115,
530
+ 209,
531
+ 457,
532
+ 239
533
+ ],
534
+ "page_idx": 3
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "Wang et al. (2019); Dong et al. (2021); Wang et al. (2022) have shown that the original location of FFNs plays an essential role in optimizing transformers, e.g., alleviating Token Uniformity. Thus, we need to consider the impact brought by the change of FFNs. While the densely residual connection is an efficient way to alleviate it, they are typically either based on feature level (e.g., DLCL (Wang et al., 2019)) or coupled with the network structure (e.g., Realformer (He et al., 2021)). ",
539
+ "bbox": [
540
+ 115,
541
+ 244,
542
+ 487,
543
+ 404
544
+ ],
545
+ "page_idx": 3
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "To this end, we design a new variant of the residual connection integrated into the attention calculation, while also decoupling from the network architecture. Specifically, the calculation of attention maps consists of two parts: 1) $A _ { G }$ , the global part, and 2) $A _ { L }$ , the local part. The calculation of $A _ { L }$ remains the same as in the vanilla Transformer, while $A _ { G }$ is computed once by using the original embedding as input through Eq. (1). Inspired by He et al. (2021), to efficiently fuse these components, we add them together and apply a Softmax function, as shown in Eq. (5). ",
550
+ "bbox": [
551
+ 115,
552
+ 406,
553
+ 487,
554
+ 599
555
+ ],
556
+ "page_idx": 3
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "In addition to the benefit of efficient depth scaling (See Appendix F), this approach provides remarkable flexibility in combining different attention mechanisms, specifically tailored to address specific conditions. For instance, it allows for the utilization of local attention to calculate $A _ { G }$ when dealing with small datasets (see Appendix D). ",
561
+ "bbox": [
562
+ 115,
563
+ 600,
564
+ 487,
565
+ 712
566
+ ],
567
+ "page_idx": 3
568
+ },
569
+ {
570
+ "type": "text",
571
+ "text": "3.4.2 Head Scaling: An Efficient Width Scaling for PartialFormer ",
572
+ "text_level": 1,
573
+ "bbox": [
574
+ 115,
575
+ 722,
576
+ 438,
577
+ 755
578
+ ],
579
+ "page_idx": 3
580
+ },
581
+ {
582
+ "type": "text",
583
+ "text": "Existing approach to width scaling, which is based on the embedding size, necessitates the simultaneous scaling of both the encoder and decoder for machine translation tasks. This is primarily because researchers commonly employ shared encoder and decoder embedding. However, taking cues from the achievements of depth scaling, it may be more advantageous to adopt a distinct method for scaling width, similar to the approach used for scaling depth. Here we show how PartialFormer has inherent superiority to achieve so. ",
584
+ "bbox": [
585
+ 115,
586
+ 759,
587
+ 487,
588
+ 919
589
+ ],
590
+ "page_idx": 3
591
+ },
592
+ {
593
+ "type": "text",
594
+ "text": "",
595
+ "bbox": [
596
+ 510,
597
+ 85,
598
+ 724,
599
+ 99
600
+ ],
601
+ "page_idx": 3
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "The width of a Transformer model typically refers to the widest part of the Transformer. In this context, both the vanilla Transformer and previous lightweight Transformer models have widths that are related to the embedding dimension, such as $4 d$ or $d$ . Therefore, by increasing the embedding size, we can effectively enlarge their width. However, the width definition in PartialFormer is different and can be expressed as $w = H \\times d _ { \\mathrm { f f n } }$ , where $w$ denotes the width of model and $d _ { \\mathrm { { f f n } } }$ is associated with the head dimension $d _ { k }$ . Consequently, we can expand the width by either increasing the number of heads or enlarging $d _ { k }$ . A comparison between these approaches is presented in Table 7. Notably, if the head dimension and number of heads are independent of the embedding dimension, PartialFormer allows for easy scaling of width in different ways within the encoder and decoder components. ",
606
+ "bbox": [
607
+ 512,
608
+ 102,
609
+ 882,
610
+ 390
611
+ ],
612
+ "page_idx": 3
613
+ },
614
+ {
615
+ "type": "image",
616
+ "img_path": "images/dcc02863d4f889023bf37de14a7d7d957b53cd0fca0d0347221602cad1538aa8.jpg",
617
+ "image_caption": [
618
+ "Figure 3: Comparison of ways to generate subspaces in Transformer and PartialFormer. "
619
+ ],
620
+ "image_footnote": [],
621
+ "bbox": [
622
+ 554,
623
+ 401,
624
+ 845,
625
+ 489
626
+ ],
627
+ "page_idx": 3
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "To this end, we propose a new scaling mechanism, namely head scaling, that scales the width of PartialFormer by directly adding more heads and increasing head dimension, as illustrated in Figure 3. Given the head dimension $d _ { k }$ , the embedding dimension $d$ , and the number of heads $H$ , we consider two strategies to generate $H$ attention heads: ",
632
+ "bbox": [
633
+ 512,
634
+ 548,
635
+ 884,
636
+ 659
637
+ ],
638
+ "page_idx": 3
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "(a) Simple strategy: We employ three learnable matrices, each with a shape of $d \\times ( d _ { k } \\times H )$ , to directly obtain the expected number of $Q$ , $K$ , and $V$ . ",
643
+ "bbox": [
644
+ 519,
645
+ 669,
646
+ 884,
647
+ 732
648
+ ],
649
+ "page_idx": 3
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "(b) Complex strategy: we employ a two-step process. First, we generate an intermediate quantity of $Q$ and $K$ , and then use a powerful MLP network to expand the attention maps to the desired number. This innovative design draws inspiration from the inherent redundancy found within the attention map (Michel et al., 2019; Clark et al., 2019; Voita et al., 2019), allowing for more heads in PartialFormer under the same parameter budget. We show the comparisons in Table 6. ",
654
+ "bbox": [
655
+ 519,
656
+ 744,
657
+ 884,
658
+ 919
659
+ ],
660
+ "page_idx": 3
661
+ },
662
+ {
663
+ "type": "image",
664
+ "img_path": "images/5bd9198300e5fd500b403dbe34b7b2366bd59237b2fedae9ea0ef1a734622101.jpg",
665
+ "image_caption": [],
666
+ "image_footnote": [],
667
+ "bbox": [
668
+ 942,
669
+ 546,
670
+ 996,
671
+ 921
672
+ ],
673
+ "page_idx": 3
674
+ },
675
+ {
676
+ "type": "image",
677
+ "img_path": "images/fa37f7a5a3a2beb8d9f67b378d00f636a4c0fffb083e25cf799ff2241f27f30b.jpg",
678
+ "image_caption": [],
679
+ "image_footnote": [],
680
+ "bbox": [
681
+ 941,
682
+ 84,
683
+ 1000,
684
+ 393
685
+ ],
686
+ "page_idx": 3
687
+ },
688
+ {
689
+ "type": "table",
690
+ "img_path": "images/9aa275f7ace2c79b5c2c5a7dc70d49149ab74115c6153312184c088c3919ccca.jpg",
691
+ "table_caption": [],
692
+ "table_footnote": [
693
+ "Table 1: Results on the WMT’14 En-De task. MACs denote the multiplication-addition operations. We compute them via 20 source and target tokens following Mehta et al. (2021). "
694
+ ],
695
+ "table_body": "<table><tr><td>Type</td><td>Model</td><td>N-M</td><td>ddk</td><td></td><td></td><td></td><td>H MACs Param</td><td>BLEU</td><td>COMET-22</td></tr><tr><td rowspan=\"4\">Multi-Branch Architecture</td><td>Weighted Transformer (Ahmed et al.,2017)</td><td>6-6</td><td>1024</td><td></td><td></td><td></td><td>211M</td><td>28.90</td><td></td></tr><tr><td>Multi-Unit Transformer (Yan et al.,2020)</td><td>6-6</td><td></td><td></td><td></td><td></td><td>130M</td><td>29.30</td><td></td></tr><tr><td>MAT (Fan et al., 2020)</td><td>6-6</td><td></td><td></td><td></td><td></td><td>206M</td><td>29.90</td><td></td></tr><tr><td>Multi-Path Transformer (Lin et al., 2022)</td><td>6-6</td><td></td><td></td><td></td><td></td><td>193M</td><td>29.68</td><td></td></tr><tr><td>Lightweight Architecture</td><td>Evolved Transformer (So et al., 2019) Delight (Mehta et al., 2021)</td><td></td><td></td><td></td><td></td><td></td><td>64M</td><td>28.20</td><td></td></tr><tr><td rowspan=\"5\">Weight Sharing</td><td></td><td></td><td>640</td><td></td><td></td><td></td><td>54M</td><td>28.00</td><td></td></tr><tr><td>Universal Transformer (Dehghani et al.,2019)</td><td></td><td>1024</td><td></td><td>=</td><td></td><td>65M</td><td>28.90</td><td></td></tr><tr><td>SubFormer (Reid et al., 2021)</td><td></td><td>-</td><td></td><td>=</td><td></td><td>63M</td><td>28.50</td><td></td></tr><tr><td>SubFormer-big (Reid et al., 2021)</td><td></td><td></td><td></td><td></td><td></td><td>197M</td><td>29.30</td><td></td></tr><tr><td>ODE Transformer (RK4) (Li et al., 2022) ODE Transformer (RK4) (Li et al., 2022)</td><td>6-6 24-6</td><td>512 512</td><td></td><td>=</td><td></td><td>62M 118M</td><td>29.03 29.80</td><td></td></tr><tr><td rowspan=\"3\">Other Comparisons</td><td></td><td></td><td></td><td>64</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>RealFormer (He et al., 2021) DMAN (Fan et al., 2021)</td><td>18-18</td><td>512 512</td><td></td><td>8 8</td><td></td><td>151M</td><td>29.35</td><td></td></tr><tr><td>Mega-Softmax (Ma et al.,2022)</td><td>6-6 6-6</td><td>512</td><td></td><td></td><td></td><td>63M 67M</td><td>29.10 29.01</td><td></td></tr><tr><td rowspan=\"7\">Our System</td><td>Transformer</td><td></td><td></td><td>64</td><td>1</td><td></td><td></td><td></td><td></td></tr><tr><td>PartialFormer (w/o Head Scaling)</td><td>24-6</td><td>512</td><td>8-8</td><td></td><td>11.1B</td><td>118M</td><td>29.05</td><td>83.60</td></tr><tr><td>PartialFormer</td><td>24-6</td><td>512</td><td>64 24-16</td><td>8-8</td><td>8.8B</td><td>66M</td><td>28.86 30.09</td><td>83.35 84.17</td></tr><tr><td></td><td>24-6</td><td>512</td><td>64</td><td></td><td>12.2B</td><td>115M</td><td></td><td></td></tr><tr><td>Transformer</td><td>6-6</td><td>512</td><td>64 45</td><td>8-8</td><td>9.9B</td><td>62M</td><td>27.43</td><td>82.19</td></tr><tr><td>Transformer PartialFormer (w/o Head Scaling)</td><td>24-6 24-6</td><td>360 360</td><td>45</td><td>8-8 8-8</td><td>6.3B 5.2B</td><td>62M 36M</td><td>28.00 27.88</td><td>82.72 82.49</td></tr><tr><td></td><td></td><td>360</td><td>45</td><td>24-16</td><td>6.8B</td><td>61M</td><td>29.23</td><td></td></tr><tr><td></td><td>PartialFormer PartialFormer</td><td>24-6 24-6</td><td>360</td><td>45 30-16</td><td></td><td>6.9B</td><td>68M</td><td>29.56</td><td>83.74 83.94</td></tr></table>",
696
+ "bbox": [
697
+ 134,
698
+ 82,
699
+ 865,
700
+ 379
701
+ ],
702
+ "page_idx": 4
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "4 Experimental Setups ",
707
+ "text_level": 1,
708
+ "bbox": [
709
+ 117,
710
+ 442,
711
+ 329,
712
+ 458
713
+ ],
714
+ "page_idx": 4
715
+ },
716
+ {
717
+ "type": "text",
718
+ "text": "In our evaluation, we assess the performance of PartialFormer across 9 machine translation tasks2. More details are given in Appendix A ",
719
+ "bbox": [
720
+ 115,
721
+ 472,
722
+ 487,
723
+ 519
724
+ ],
725
+ "page_idx": 4
726
+ },
727
+ {
728
+ "type": "text",
729
+ "text": "Dataset. We evaluate our approach on three widely-used datasets: WMT’14 English-German (En-De), WMT’14 English-French (En-Fr), and WMT’16 English-Romanian (En-Ro). Besides, to further validate the effectiveness of PartialFormer, we also evaluate PartialFormer on six translation tasks from WMT’17 benchmark. We preprocess the raw data following the standard strategy. ",
730
+ "bbox": [
731
+ 115,
732
+ 532,
733
+ 485,
734
+ 661
735
+ ],
736
+ "page_idx": 4
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "Architectures and Selected Baselines. We use a 24-6 encoder-decoder PartialFormer architecture for its strong performance, on all 9 machine translation tasks. Detailed configurations are provided in the results tables. We compare our approach with various baselines, including vanilla Transformer models, multi-branch architecture, lightweight architecture, weight-sharing methods, and other strong baselines. ",
741
+ "bbox": [
742
+ 115,
743
+ 675,
744
+ 487,
745
+ 819
746
+ ],
747
+ "page_idx": 4
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "Training & Evaluation. We train all the models on GeForce RTX 3090 cards via Fairseq (Ott et al., 2019) toolkit. For evaluation, we utilized multi-BLEU (Papineni et al., 2002) and COMET22 (Rei et al., 2022) scores. Beam sizes were 4, 4, and 5 for En-De, En-Fr, and En-Ro tasks respectively. Length_penalty of 0.6, 0.8, and 1.3 were applied to En-De, En-Fr, and En-Ro tasks respectively. For the WMT’17 benchmark, beam size and Length_penalty were set to 4 and 1, respectively. We used an ensemble of the last ten checkpoints. ",
752
+ "bbox": [
753
+ 115,
754
+ 833,
755
+ 487,
756
+ 879
757
+ ],
758
+ "page_idx": 4
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "",
763
+ "bbox": [
764
+ 512,
765
+ 443,
766
+ 884,
767
+ 570
768
+ ],
769
+ "page_idx": 4
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "5 Experiments ",
774
+ "text_level": 1,
775
+ "bbox": [
776
+ 512,
777
+ 586,
778
+ 653,
779
+ 602
780
+ ],
781
+ "page_idx": 4
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "Results of WMT’14 En-De Table 1 presents the results for the WMT’14 En-De task. Note that we also provide a “strong” baseline which also benefits from deep model stacking. Even though the performance of PartialFormer (w/o Head Scaling) is slightly inferior to that of the Transformer model (27.88 vs. 28.00 and 28.86 vs. 29.05), it outshines the latter in terms of parameter efficiency, consuming significantly fewer parameters (36M vs. 62M, 66M vs. 118M). We attribute this phenomenon to our PG-FFN, which leverages a group of compact FFNs. This approach enables PG-FFN to maintain high hidden dimension, while drastically reducing parameter consumption. ",
786
+ "bbox": [
787
+ 512,
788
+ 613,
789
+ 882,
790
+ 838
791
+ ],
792
+ "page_idx": 4
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "Upon utilizing our head scaling technique to amplify the capacity, our Partialformer delivers a BLEU score 29.56 and 30.09 on two configurations, respectively. This surpasses the standard Transformer by 1.56 BLEU points (29.56 vs. 28.00) and ",
797
+ "bbox": [
798
+ 512,
799
+ 840,
800
+ 884,
801
+ 919
802
+ ],
803
+ "page_idx": 4
804
+ },
805
+ {
806
+ "type": "table",
807
+ "img_path": "images/ef516f59f7c37f70affe22e5042b2981e8a0fb1ac32cdfc198f823be48f5f15f.jpg",
808
+ "table_caption": [
809
+ "Table 2: Results on the WMT’14 En-Fr task. "
810
+ ],
811
+ "table_footnote": [],
812
+ "table_body": "<table><tr><td>Model</td><td>N</td><td>ddk</td><td>HParam BLEU</td></tr><tr><td>Weighted Transformer (2017)</td><td>6</td><td></td><td>- 211M 41.40</td></tr><tr><td>Evolved Transformer (2019)</td><td>=</td><td></td><td>64M 40.60</td></tr><tr><td>Delight (2021)</td><td>-640</td><td></td><td>54M 40.50</td></tr><tr><td>ODE Transformer (2022)</td><td>6</td><td>=</td><td>69M 42.56</td></tr><tr><td>ODE Transformer (2022)</td><td>24</td><td></td><td>123M 43.28</td></tr><tr><td>Multi-Path Transformer (2022)</td><td>=</td><td></td><td>168M 42.44</td></tr><tr><td>Transformer</td><td>24 512 64</td><td>8-8</td><td>120M 42.33</td></tr><tr><td>PartialFormer (w/o Head Scaling) 24 512 648-8</td><td></td><td></td><td>68M 41.68</td></tr><tr><td>PartialFormer</td><td></td><td>24 512 64 24-18</td><td>119M 43.10</td></tr><tr><td>PartialFormer</td><td></td><td>24 512 64 24-24</td><td>127M 43.29</td></tr><tr><td>Transformer</td><td>6 512 64</td><td>8-8</td><td>63M 40.79</td></tr><tr><td>Transformer</td><td>24 360 45</td><td>8-8</td><td>64M 40.96</td></tr><tr><td>PartialFormer(w/o Head Scaling) 24 360 45</td><td></td><td>8-8</td><td>38M 40.44</td></tr><tr><td>PartialFormer</td><td></td><td>24 360 45 24-18</td><td>63M 42.16</td></tr><tr><td>PartialFormer</td><td></td><td>24 360 45 24-24</td><td>67M 42.39</td></tr></table>",
813
+ "bbox": [
814
+ 115,
815
+ 83,
816
+ 485,
817
+ 281
818
+ ],
819
+ "page_idx": 5
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "1.04 BLEU points (30.09 vs. 29.05) within a similar model capacity. The enhancement here can be attributed to the head scaling method, which allows PartialFormer to possess a larger hidden dimension, thereby bolstering its capacity for memory storage (Geva et al., 2021). These observations are further confirmed by the COMET-22 scores. ",
824
+ "bbox": [
825
+ 115,
826
+ 334,
827
+ 487,
828
+ 445
829
+ ],
830
+ "page_idx": 5
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "Moreover, PartialFormer can even surpass all selected multi-branch Transformers while using fewer parameters. Notably, PartialFormer $N =$ $2 4 , d \\ = \\ 5 1 2 )$ outperforms the latest multi-path Transformer (Lin et al., 2022) by 0.41 BLEU points with 78M fewer parameters. This highlights the efficiency of building a multi-branch network based on inherent subspaces. Additionally, PartialFormer excels over previous lightweight approaches and outperforms state-of-the-art weight-sharing methods, e.g., ODE Transformer (Li et al., 2022), and other strong baselines, e.g., Mega (Ma et al., 2022). Notably, both ODE Transformer and Mega utilize relative position encoding (Shaw et al., 2018). ",
835
+ "bbox": [
836
+ 115,
837
+ 448,
838
+ 487,
839
+ 673
840
+ ],
841
+ "page_idx": 5
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "Results of WMT’14 En-Fr Table 2 presents the results of PartialFormer on the WMT’14 En-Fr task. Similar to the findings in the En-De task, PartialFormer demonstrates a similar phenomenon. Notably, PartialFormer achieves comparable results to Transformer $( N = 2 4 , d = 5 1 2 )$ (42.39 vs. 42.33) while utilizing 53M fewer parameters (67M vs. 120M). This highlights the remarkable parameter efficiency of PartialFormer. ",
846
+ "bbox": [
847
+ 115,
848
+ 683,
849
+ 487,
850
+ 827
851
+ ],
852
+ "page_idx": 5
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "Results of WMT’16 En-Ro Table 3 presents the results on the test set of the WMT’16 En-Ro task. Notably, PartialFormer achieves the highest BLEU points among all selected baselines. It is particularly remarkable that PartialFormer achieves similar results to ODE Transformer while utilizing 178M fewer parameters. This highlights the exceptional efficiency of PartialFormer. ",
857
+ "bbox": [
858
+ 115,
859
+ 840,
860
+ 487,
861
+ 919
862
+ ],
863
+ "page_idx": 5
864
+ },
865
+ {
866
+ "type": "table",
867
+ "img_path": "images/5c2a5805346b018b4ec5d09819b07940be90ae7ad6d9c59587516b038884b09a.jpg",
868
+ "table_caption": [
869
+ "Table 3: Results on the WMT’16 En-Ro task. "
870
+ ],
871
+ "table_footnote": [],
872
+ "table_body": "<table><tr><td>Model</td><td>N</td><td>ddk</td><td>H Param BLEU</td></tr><tr><td>Delight (Mehta et al., 2021)</td><td>- 640-</td><td>■</td><td>53M 34.70</td></tr><tr><td>Subformer (Reid et al.,2021)</td><td>■</td><td>- ■ -</td><td>48M 34.70</td></tr><tr><td>ODE Transformer (Li et al.,2022)</td><td>6 1024 64 16-16</td><td></td><td>226M 35.28</td></tr><tr><td>Transformer</td><td>24 512 64</td><td>8-8</td><td>111M 35.00</td></tr><tr><td>PartialFormer (w/o Head Scaling)</td><td>24 512</td><td>64 8-8</td><td>59M 35.07</td></tr><tr><td>PartialFormer</td><td>24</td><td>320 4024-24</td><td>48M 35.30</td></tr></table>",
873
+ "bbox": [
874
+ 510,
875
+ 82,
876
+ 882,
877
+ 177
878
+ ],
879
+ "page_idx": 5
880
+ },
881
+ {
882
+ "type": "table",
883
+ "img_path": "images/c52c5b24d0a72f2aa7681da7be04aec21454d96e68ecced2e642021a4b12f7aa.jpg",
884
+ "table_caption": [
885
+ "Table 4: Results on the WMT’17 benchmark. PartialFormer has the same depth and $d$ as the Transformer but consumes 1M fewer parameters on average. "
886
+ ],
887
+ "table_footnote": [],
888
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">Fi←→En</td><td colspan=\"2\">De←→En</td><td colspan=\"2\">Lv← →En</td><td rowspan=\"2\">Avg.</td></tr><tr><td>Fi→En En→FiDe→En En-→DeLv-→En En→Lv</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Transformer</td><td>26.07</td><td>22.14</td><td>35.04</td><td>28.59</td><td>17.59</td><td>16.23</td><td>24.27</td></tr><tr><td>PartialFormer</td><td>27.48</td><td>23.35</td><td>35.60</td><td>29.91</td><td>19.65</td><td>17.37</td><td>25.56</td></tr></table>",
889
+ "bbox": [
890
+ 510,
891
+ 215,
892
+ 880,
893
+ 272
894
+ ],
895
+ "page_idx": 5
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "",
900
+ "bbox": [
901
+ 512,
902
+ 351,
903
+ 882,
904
+ 398
905
+ ],
906
+ "page_idx": 5
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "Results of WMT’17 Benchmark Table 4 presents the WMT’17 benchmark results, showing that PartialFormer consistently outperforms Transformer by an average of 1.29 BLEU points in all six translation tasks. This finding is consistent with the observed performance in the En-De task. ",
911
+ "bbox": [
912
+ 512,
913
+ 410,
914
+ 882,
915
+ 505
916
+ ],
917
+ "page_idx": 5
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "6 Analysis ",
922
+ "text_level": 1,
923
+ "bbox": [
924
+ 512,
925
+ 518,
926
+ 616,
927
+ 535
928
+ ],
929
+ "page_idx": 5
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "6.1 Ablation Studies ",
934
+ "text_level": 1,
935
+ "bbox": [
936
+ 514,
937
+ 544,
938
+ 685,
939
+ 558
940
+ ],
941
+ "page_idx": 5
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "Table 5 presents an ablation study of PartialFormer on the WMT’14 En-De task, demonstrating the critical role of each component. Omitting any element causes performance decline, underscoring the holistic design. The PG-FFN removal (#3 vs. #4) results in a large performance drop of 2.05 BLEU points, despite a mere 16 million parameters reduction. This evidence corroborates previous findings (Dong et al., 2021) on the subpar performance of pure attention networks sans FFN, highlighting the essential role of PG-FFN in PartialFormer. ",
946
+ "bbox": [
947
+ 512,
948
+ 565,
949
+ 882,
950
+ 740
951
+ ],
952
+ "page_idx": 5
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "Besides, Table 5 shows the results of different PartialFormer configurations on the WMT’14 En-De task. The encoder-decoder PartialFormer achieves the highest performance, reaching 29.56 BLEU points, indicating the effectiveness of our approach in enhancing both the encoder and the decoder. Employing our concept to either the encoder or the decoder individually also improves performance, yet the encoder-decoder configuration persistently surpasses others, marking the greatest performance improvement. ",
957
+ "bbox": [
958
+ 512,
959
+ 744,
960
+ 884,
961
+ 919
962
+ ],
963
+ "page_idx": 5
964
+ },
965
+ {
966
+ "type": "table",
967
+ "img_path": "images/93cfd48be6417dc2e3c597283972c9a8475ef9781923e69061999bcfa23a2631.jpg",
968
+ "table_caption": [
969
+ "Table 5: Ablation studies on WMT’14 En-De task. "
970
+ ],
971
+ "table_footnote": [],
972
+ "table_body": "<table><tr><td># Model</td><td>Param BLEU</td></tr><tr><td>1 Transformer (N = 24,d = 360)</td><td>62M 28.00</td></tr><tr><td>2 Pure Attention (N= 24,d = 360)</td><td>31M 25.70</td></tr><tr><td>3 PartialFormer</td><td>68M 29.56</td></tr><tr><td>4 w/o Partial-level Gated FFN</td><td>52M 27.51</td></tr><tr><td>5 w/o Residual-like Attention Calculation</td><td>66M 29.26</td></tr><tr><td>6 w/o Head Scaling</td><td>36M 27.88</td></tr><tr><td>7 PartialFormer (encoder only)</td><td>67M 29.15</td></tr><tr><td>8 PartialFormer (decoder only)</td><td>63M 28.80</td></tr></table>",
973
+ "bbox": [
974
+ 115,
975
+ 83,
976
+ 487,
977
+ 216
978
+ ],
979
+ "page_idx": 6
980
+ },
981
+ {
982
+ "type": "table",
983
+ "img_path": "images/712ef1cb5dac6390e41e477ea9889f0995225bd2494b259ec69c56436e46a23e.jpg",
984
+ "table_caption": [
985
+ "Table 7: Comparison of different width scaling strategy on the En-De task. "
986
+ ],
987
+ "table_footnote": [
988
+ "Table 6: Comparison of head scaling strategy on WMT’14 En-De task. "
989
+ ],
990
+ "table_body": "<table><tr><td>Model</td><td>Param BLEU</td></tr><tr><td>PartialFormer (w/o Head Scaling)</td><td>36M 27.88</td></tr><tr><td>+ Simple Head Scaling</td><td>68M 29.33</td></tr><tr><td>+ Complex Head Scaling</td><td>68M 29.56</td></tr></table>",
991
+ "bbox": [
992
+ 131,
993
+ 255,
994
+ 470,
995
+ 326
996
+ ],
997
+ "page_idx": 6
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "6.2 Comparison of Head Scaling Strategy ",
1002
+ "text_level": 1,
1003
+ "bbox": [
1004
+ 117,
1005
+ 391,
1006
+ 455,
1007
+ 407
1008
+ ],
1009
+ "page_idx": 6
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "Table 6 presents the results of PartialFormer on the En-De task test set with varying head scaling techniques. Both simple and complex strategies effectively utilize additional parameters to enhance PartialFormer’s performance. Notably, the complex head scaling technique, allowing for more parameters allocated to additional heads, demonstrates superior performance. ",
1014
+ "bbox": [
1015
+ 115,
1016
+ 413,
1017
+ 487,
1018
+ 542
1019
+ ],
1020
+ "page_idx": 6
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "6.3 Discussions on Width Scaling Strategies ",
1025
+ "text_level": 1,
1026
+ "bbox": [
1027
+ 115,
1028
+ 556,
1029
+ 472,
1030
+ 571
1031
+ ],
1032
+ "page_idx": 6
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Table 7 presents the results of analyzing three key ways to increase the width in PartialFormer: 1) $d _ { k }$ , 2) $H$ , and 3) $d$ , on the En-De task’s test set. Notably, the findings indicate that both increasing $H$ and adding $d _ { k }$ can effectively enhance the capacity of PartialFormer. Additionally, enlarging $d$ can be beneficial for performance improvements when it is small, e.g., less than 360. However, beyond a certain threshold, further increments of $d$ become redundant and do not lead to performance gains. This aligns with previous studies (Mehta et al., 2021; Baevski and Auli, 2019) highlighting redundant information in the embedding layer. ",
1037
+ "bbox": [
1038
+ 115,
1039
+ 579,
1040
+ 487,
1041
+ 788
1042
+ ],
1043
+ "page_idx": 6
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "6.4 Comparison of Gating Strategy ",
1048
+ "text_level": 1,
1049
+ "bbox": [
1050
+ 117,
1051
+ 801,
1052
+ 405,
1053
+ 816
1054
+ ],
1055
+ "page_idx": 6
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "Table 8 presents a comparison of various activation functions used in PG-FFN. The results indicate that the default choice, ReLU activation, yields the best performance. One explanation is that the ReLU activation provides hard masks for filtering the information of different heads, compared to other activation functions. Such hard masks can make different heads more diverse. ",
1060
+ "bbox": [
1061
+ 115,
1062
+ 824,
1063
+ 485,
1064
+ 919
1065
+ ],
1066
+ "page_idx": 6
1067
+ },
1068
+ {
1069
+ "type": "table",
1070
+ "img_path": "images/85fa36cc0ecfc2175111c8fe8e4148f293588ade13da0ca4226fc522fef358b9.jpg",
1071
+ "table_caption": [],
1072
+ "table_footnote": [],
1073
+ "table_body": "<table><tr><td>Model</td><td>Seting</td><td>H d</td><td>dk Param</td><td>BLEU</td></tr><tr><td rowspan=\"7\">PartialFormer</td><td>Basic</td><td>|30-16 360</td><td>45 68M</td><td>29.56</td></tr><tr><td>Varying Encoder H</td><td>|24-16 360 45 16-16 360 45</td><td>61M 51M</td><td>29.23 29.02</td></tr><tr><td>Varying Decoder H</td><td>[16-24 360 45 16-30360 45</td><td>56M 60M</td><td>28.85 29.20</td></tr><tr><td></td><td>|30-16 360 30</td><td>49M</td><td>28.70</td></tr><tr><td>Varying dh</td><td>30-16 360 60 30-16 360 90</td><td>86M 124M</td><td>29.68</td></tr><tr><td></td><td></td><td></td><td>30.00</td></tr><tr><td>Varying d</td><td>|30-16 180 45 30-16 270 45 30-16 450 45</td><td>35M 51M 84M</td><td>27.61 28.80 29.41</td></tr></table>",
1074
+ "bbox": [
1075
+ 512,
1076
+ 83,
1077
+ 880,
1078
+ 271
1079
+ ],
1080
+ "page_idx": 6
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "",
1085
+ "bbox": [
1086
+ 512,
1087
+ 334,
1088
+ 880,
1089
+ 365
1090
+ ],
1091
+ "page_idx": 6
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "text": "6.5 Efficiency Analysis ",
1096
+ "text_level": 1,
1097
+ "bbox": [
1098
+ 512,
1099
+ 376,
1100
+ 704,
1101
+ 392
1102
+ ],
1103
+ "page_idx": 6
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Table 9 exhibits the inference efficiency on the test set of En-De task. It is evident that PartialFormer incurs a reasonable increase in inference cost, which remains within acceptable limits. ",
1108
+ "bbox": [
1109
+ 510,
1110
+ 398,
1111
+ 882,
1112
+ 461
1113
+ ],
1114
+ "page_idx": 6
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "6.6 Analysis on Behaviours of FFN ",
1119
+ "text_level": 1,
1120
+ "bbox": [
1121
+ 514,
1122
+ 473,
1123
+ 798,
1124
+ 487
1125
+ ],
1126
+ "page_idx": 6
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Metric. Following Zhang et al. (2022), we examine FFN behaviors across four aspects: activation neuron count (namely $n _ { \\mathrm { a c t . } } )$ ), FFNs’ hidden dimension, activation-neuron ratio (activations divided by hidden dimension, namely $R _ { \\mathrm { a c t . } }$ ), and FFN efficiency (activations divided by parameters, namely $\\eta _ { \\mathrm { { f f i n } } } )$ . Notably, for PartialFormer, the hidden dimension represents the concatenation of hidden dimensions from all smaller FFNs. ",
1131
+ "bbox": [
1132
+ 512,
1133
+ 493,
1134
+ 884,
1135
+ 637
1136
+ ],
1137
+ "page_idx": 6
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Results. Figure 4(a-c) exhibits the results on the En-De test set. It is evident that PartialFormer has a lower activation ratio than the vanilla Transformer, as shown in Figure 4(b). This indicates that PGFFNs based on matrix factorization present lower utilization of the hidden dimension compared to the vanilla FFNs. However, our PG-FFN is parameter consumption friendly, enabling larger hidden layer dimensions with the same parameter budget (e.g., 5400 vs. 1440). Despite lower utilization of hidden dimension, it can still own more activated neurons, as depicted in Figure 4(a). Additionally, our PGFFN exhibits higher efficiency compared to vanilla FFNs, as shown in Figure 4(c). Multiple small FFNs, like “Swarm Intelligence” (Bonabeau et al., 1999), outperform large FFNs by leveraging the collective strength of weak individuals. ",
1142
+ "bbox": [
1143
+ 512,
1144
+ 646,
1145
+ 884,
1146
+ 919
1147
+ ],
1148
+ "page_idx": 6
1149
+ },
1150
+ {
1151
+ "type": "table",
1152
+ "img_path": "images/64231890cc92e8206071cce0994a9dc5a1ced39e9ca288d638c13f00cf8d0e3c.jpg",
1153
+ "table_caption": [
1154
+ "Table 8: Comparison of activation functions in PGFFNs. "
1155
+ ],
1156
+ "table_footnote": [],
1157
+ "table_body": "<table><tr><td>Model</td><td>Param BLEU</td></tr><tr><td>PG-FFNs</td><td>68M 29.56</td></tr><tr><td>PG-FFNs with Sigmoid activation</td><td>68M 29.21</td></tr><tr><td>PG-FFNs with Tanh activation</td><td>68M 29.03</td></tr></table>",
1158
+ "bbox": [
1159
+ 132,
1160
+ 82,
1161
+ 468,
1162
+ 151
1163
+ ],
1164
+ "page_idx": 7
1165
+ },
1166
+ {
1167
+ "type": "table",
1168
+ "img_path": "images/f484f41b5e7157659d69c191f5181c13967d2b5917e9ceae879ee48e43dbbdc8.jpg",
1169
+ "table_caption": [
1170
+ "Table 9: Efficiency comparison between Transformer and PartialFormer in inference. "
1171
+ ],
1172
+ "table_footnote": [],
1173
+ "table_body": "<table><tr><td>Model</td><td colspan=\"4\">Param Speed (Tok./s)Memory BLEU</td></tr><tr><td>Transformer</td><td>62M</td><td>4325</td><td>3.0G</td><td>28.00</td></tr><tr><td>PartialFormer (w/o head scaling)</td><td>66M</td><td>3634</td><td>3.2G</td><td>28.86</td></tr><tr><td>PartialFormer</td><td>68M</td><td>3023</td><td>3.3G</td><td>29.56</td></tr></table>",
1174
+ "bbox": [
1175
+ 115,
1176
+ 203,
1177
+ 485,
1178
+ 256
1179
+ ],
1180
+ "page_idx": 7
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "6.7 Analysis on Head Diversity ",
1185
+ "text_level": 1,
1186
+ "bbox": [
1187
+ 117,
1188
+ 322,
1189
+ 371,
1190
+ 336
1191
+ ],
1192
+ "page_idx": 7
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Metric. We select the same metric, namely $D _ { o u t p u t }$ , as that in Li et al. (2018) to measure the diversity among head features. In this metric, a larger value indicates a higher level of diversity. ",
1197
+ "bbox": [
1198
+ 117,
1199
+ 343,
1200
+ 485,
1201
+ 406
1202
+ ],
1203
+ "page_idx": 7
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Results. From Figure 4(d), we can observe that PartialFormer exhibits more diverse head features compared to the vanilla Transformer, even though the vanilla Transformer already demonstrates diverse features. This aligns with previous study (Li et al., 2018), which demonstrates the positive impact of head feature diversity on the Transformer model’s performance. Thus, we conclude that the insertion of FFNs into attention mechanism may be a more optimal design. ",
1208
+ "bbox": [
1209
+ 115,
1210
+ 416,
1211
+ 487,
1212
+ 575
1213
+ ],
1214
+ "page_idx": 7
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "7 Related Work ",
1219
+ "text_level": 1,
1220
+ "bbox": [
1221
+ 115,
1222
+ 588,
1223
+ 268,
1224
+ 605
1225
+ ],
1226
+ "page_idx": 7
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "Lightweight Transformers Many methods have been proposed to improve the parameter efficiency of Transformer architecture. The first line is to directly cut down redundant computations and parameters via a more efficient design such as adopting more efficient transformation operations (Mehta et al., 2019, 2021), integrating different but complementary patterns (Wu et al., 2020) and neural architecture search (So et al., 2019). Another research direction for improving parameter efficiency in the Transformer is weight sharing. The popular cross-layer sharing method is utilized by the Universal Transformer (Dehghani et al., 2019). Reid et al. (2021) propose better performance by freeing the first and last encoder layers and widening the intermediate layers. Li et al. (2022) introduce an ordinary differential equation-inspired weightsharing method for more precise results. Different from these work, our study focus on the design of efficient lightweight FFN. ",
1231
+ "bbox": [
1232
+ 115,
1233
+ 614,
1234
+ 487,
1235
+ 920
1236
+ ],
1237
+ "page_idx": 7
1238
+ },
1239
+ {
1240
+ "type": "image",
1241
+ "img_path": "images/5cec8e8c7564f86b66a2a3fde975639ff37eeaac9506bd16cdd39ff8be563e0f.jpg",
1242
+ "image_caption": [
1243
+ "Figure 4: Analysis on behaviours of FFNs and head diversity in Transformer and PartialFormer. "
1244
+ ],
1245
+ "image_footnote": [],
1246
+ "bbox": [
1247
+ 515,
1248
+ 83,
1249
+ 882,
1250
+ 293
1251
+ ],
1252
+ "page_idx": 7
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "",
1257
+ "bbox": [
1258
+ 514,
1259
+ 351,
1260
+ 704,
1261
+ 367
1262
+ ],
1263
+ "page_idx": 7
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "text": "Multi-Branch Transformer The multi-branch strategy is widely used in Transformer design. Weighted Transformer (Ahmed et al., 2017) employs a multi-branch FFN, while Multi-attentive Transformer (Fan et al., 2020), Multi-units Transformer (Yan et al., 2020), and Multi-Path Transformer (Lin et al., 2022) extend this concept to different components of the Transformer. Our work introduces a pure multi-branch architecture based on natural subspaces. ",
1268
+ "bbox": [
1269
+ 512,
1270
+ 376,
1271
+ 884,
1272
+ 537
1273
+ ],
1274
+ "page_idx": 7
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "Scaling Strategy in Transformer Deepening (Bapna et al., 2018; Wang et al., 2019) and widening (Vaswani et al., 2017; Wu et al., 2021) Transformer have been well-acknowledged as two strategies to improve the capacity of Transformer in literature. In this work, PartialFormer adopts two alternative strategies to improve capacity, adding a number of heads and head dimensions. ",
1279
+ "bbox": [
1280
+ 512,
1281
+ 546,
1282
+ 882,
1283
+ 674
1284
+ ],
1285
+ "page_idx": 7
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "8 Conclusion ",
1290
+ "text_level": 1,
1291
+ "bbox": [
1292
+ 512,
1293
+ 686,
1294
+ 640,
1295
+ 701
1296
+ ],
1297
+ "page_idx": 7
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "In this paper, we present PartialFormer, a new parameter-efficient Transformer architecture that offers an alternative approach to the design of the lightweight FFN. By employing multiple small FFNs and leveraging matrix factorization techniques, PartialFormer effectively reduces the number of parameters in the FFN. Moreover, we propose two innovative operations to further efficiently enhance the model capabilities. Experimental results across various machine translation tasks showcase the significant performance improvements achieved by PartialFormer, while maintaining comparable parameter consumption. ",
1302
+ "bbox": [
1303
+ 512,
1304
+ 712,
1305
+ 884,
1306
+ 919
1307
+ ],
1308
+ "page_idx": 7
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "Limitations ",
1313
+ "text_level": 1,
1314
+ "bbox": [
1315
+ 115,
1316
+ 84,
1317
+ 218,
1318
+ 99
1319
+ ],
1320
+ "page_idx": 8
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "Despite the potential advantages of Partialformer in terms of parameter utilization and performance within a limited parameter budget, it is important to note that the existing conclusions regarding its effectiveness have not been thoroughly examined in the context of large-scale datasets and a higher number of parameters. Further research is needed to validate the claims and assess the scalability of Partialformer in more challenging scenarios. ",
1325
+ "bbox": [
1326
+ 115,
1327
+ 110,
1328
+ 485,
1329
+ 253
1330
+ ],
1331
+ "page_idx": 8
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "References ",
1336
+ "text_level": 1,
1337
+ "bbox": [
1338
+ 117,
1339
+ 282,
1340
+ 211,
1341
+ 297
1342
+ ],
1343
+ "page_idx": 8
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "Karim Ahmed, Nitish Shirish Keskar, and Richard Socher. 2017. Weighted transformer network for machine translation. CoRR. ",
1348
+ "bbox": [
1349
+ 117,
1350
+ 305,
1351
+ 485,
1352
+ 344
1353
+ ],
1354
+ "page_idx": 8
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "Alexei Baevski and Michael Auli. 2019. Adaptive input representations for neural language modeling. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. ",
1359
+ "bbox": [
1360
+ 115,
1361
+ 356,
1362
+ 487,
1363
+ 420
1364
+ ],
1365
+ "page_idx": 8
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "Ankur Bapna, Mia Chen, Orhan Firat, Yuan Cao, and Yonghui Wu. 2018. Training deeper neural machine translation models with transparent attention. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 3028– 3033, Brussels, Belgium. Association for Computational Linguistics. ",
1370
+ "bbox": [
1371
+ 117,
1372
+ 431,
1373
+ 487,
1374
+ 523
1375
+ ],
1376
+ "page_idx": 8
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "Eric Bonabeau, Marco Dorigo, and Guy Theraulaz. 1999. Swarm Intelligence: From Natural to Artificial Systems. Oxford University Press. ",
1381
+ "bbox": [
1382
+ 117,
1383
+ 535,
1384
+ 487,
1385
+ 574
1386
+ ],
1387
+ "page_idx": 8
1388
+ },
1389
+ {
1390
+ "type": "text",
1391
+ "text": "Kevin Clark, Urvashi Khandelwal, Omer Levy, and Christopher D. Manning. 2019. What does BERT look at? an analysis of BERT’s attention. In Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 276–286, Florence, Italy. Association for Computational Linguistics. ",
1392
+ "bbox": [
1393
+ 117,
1394
+ 585,
1395
+ 487,
1396
+ 676
1397
+ ],
1398
+ "page_idx": 8
1399
+ },
1400
+ {
1401
+ "type": "text",
1402
+ "text": "Yann N. Dauphin, Angela Fan, Michael Auli, and David Grangier. 2017. Language modeling with gated convolutional networks. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, volume 70 of Proceedings of Machine Learning Research, pages 933–941. PMLR. ",
1403
+ "bbox": [
1404
+ 117,
1405
+ 687,
1406
+ 487,
1407
+ 778
1408
+ ],
1409
+ "page_idx": 8
1410
+ },
1411
+ {
1412
+ "type": "text",
1413
+ "text": "Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. 2019. Universal transformers. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. ",
1414
+ "bbox": [
1415
+ 115,
1416
+ 790,
1417
+ 487,
1418
+ 856
1419
+ ],
1420
+ "page_idx": 8
1421
+ },
1422
+ {
1423
+ "type": "text",
1424
+ "text": "Yihe Dong, Jean-Baptiste Cordonnier, and Andreas Loukas. 2021. Attention is not all you need: pure attention loses rank doubly exponentially with depth. In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, pages 2793–2803. ",
1425
+ "bbox": [
1426
+ 115,
1427
+ 866,
1428
+ 485,
1429
+ 919
1430
+ ],
1431
+ "page_idx": 8
1432
+ },
1433
+ {
1434
+ "type": "text",
1435
+ "text": "",
1436
+ "bbox": [
1437
+ 529,
1438
+ 86,
1439
+ 882,
1440
+ 112
1441
+ ],
1442
+ "page_idx": 8
1443
+ },
1444
+ {
1445
+ "type": "text",
1446
+ "text": "Yang Fan, Shufang Xie, Yingce Xia, Lijun Wu, Tao Qin, Xiang-Yang Li, and Tie-Yan Liu. 2020. Multi-branch attentive transformer. ArXiv, abs/2006.10270. ",
1447
+ "bbox": [
1448
+ 512,
1449
+ 127,
1450
+ 882,
1451
+ 166
1452
+ ],
1453
+ "page_idx": 8
1454
+ },
1455
+ {
1456
+ "type": "text",
1457
+ "text": "Zhihao Fan, Yeyun Gong, Dayiheng Liu, Zhongyu Wei, Siyuan Wang, Jian Jiao, Nan Duan, Ruofei Zhang, and Xuanjing Huang. 2021. Mask attention networks: Rethinking and strengthen transformer. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1692–1701, Online. Association for Computational Linguistics. ",
1458
+ "bbox": [
1459
+ 510,
1460
+ 179,
1461
+ 882,
1462
+ 297
1463
+ ],
1464
+ "page_idx": 8
1465
+ },
1466
+ {
1467
+ "type": "text",
1468
+ "text": "Tao Ge, Si-Qing Chen, and Furu Wei. 2022. EdgeFormer: A parameter-efficient transformer for ondevice seq2seq generation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 10786–10798, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics. ",
1469
+ "bbox": [
1470
+ 512,
1471
+ 312,
1472
+ 882,
1473
+ 403
1474
+ ],
1475
+ "page_idx": 8
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "text": "Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. 2017. Convolutional sequence to sequence learning. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, pages 1243–1252. ",
1480
+ "bbox": [
1481
+ 510,
1482
+ 417,
1483
+ 882,
1484
+ 495
1485
+ ],
1486
+ "page_idx": 8
1487
+ },
1488
+ {
1489
+ "type": "text",
1490
+ "text": "Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. 2021. Transformer feed-forward layers are keyvalue memories. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 5484–5495, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics. ",
1491
+ "bbox": [
1492
+ 510,
1493
+ 511,
1494
+ 882,
1495
+ 601
1496
+ ],
1497
+ "page_idx": 8
1498
+ },
1499
+ {
1500
+ "type": "text",
1501
+ "text": "Ruining He, Anirudh Ravula, Bhargav Kanagal, and Joshua Ainslie. 2021. RealFormer: Transformer likes residual attention. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pages 929–943, Online. Association for Computational Linguistics. ",
1502
+ "bbox": [
1503
+ 512,
1504
+ 615,
1505
+ 882,
1506
+ 694
1507
+ ],
1508
+ "page_idx": 8
1509
+ },
1510
+ {
1511
+ "type": "text",
1512
+ "text": "Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. 2020. ALBERT: A lite BERT for self-supervised learning of language representations. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. ",
1513
+ "bbox": [
1514
+ 510,
1515
+ 708,
1516
+ 882,
1517
+ 799
1518
+ ],
1519
+ "page_idx": 8
1520
+ },
1521
+ {
1522
+ "type": "text",
1523
+ "text": "Bei Li, Quan Du, Tao Zhou, Yi Jing, Shuhan Zhou, Xin Zeng, Tong Xiao, JingBo Zhu, Xuebo Liu, and Min Zhang. 2022. ODE transformer: An ordinary differential equation-inspired model for sequence generation. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8335–8351, Dublin, Ireland. Association for Computational Linguistics. ",
1524
+ "bbox": [
1525
+ 512,
1526
+ 814,
1527
+ 884,
1528
+ 919
1529
+ ],
1530
+ "page_idx": 8
1531
+ },
1532
+ {
1533
+ "type": "text",
1534
+ "text": "Jian Li, Zhaopeng Tu, Baosong Yang, Michael R. Lyu, and Tong Zhang. 2018. Multi-head attention with disagreement regularization. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2897–2903, Brussels, Belgium. Association for Computational Linguistics. ",
1535
+ "bbox": [
1536
+ 117,
1537
+ 85,
1538
+ 487,
1539
+ 165
1540
+ ],
1541
+ "page_idx": 9
1542
+ },
1543
+ {
1544
+ "type": "text",
1545
+ "text": "Ye Lin, Shuhan Zhou, Yanyang Li, Anxiang Ma, Tong Xiao, and Jingbo Zhu. 2022. Multi-path transformer is better: A case study on neural machine translation. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 5646–5656, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics. ",
1546
+ "bbox": [
1547
+ 117,
1548
+ 175,
1549
+ 487,
1550
+ 267
1551
+ ],
1552
+ "page_idx": 9
1553
+ },
1554
+ {
1555
+ "type": "text",
1556
+ "text": "Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. 2018. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In Computer Vision – ECCV 2018: 15th European Conference, Munich, Germany, September 8–14, 2018, Proceedings, Part XIV, page 122–138, Berlin, Heidelberg. SpringerVerlag. ",
1557
+ "bbox": [
1558
+ 115,
1559
+ 278,
1560
+ 485,
1561
+ 369
1562
+ ],
1563
+ "page_idx": 9
1564
+ },
1565
+ {
1566
+ "type": "text",
1567
+ "text": "Xuezhe Ma, Chunting Zhou, Xiang Kong, Junxian He, Liangke Gui, Graham Neubig, Jonathan May, and Luke Zettlemoyer. 2022. Mega: Moving average equipped gated attention. CoRR. ",
1568
+ "bbox": [
1569
+ 115,
1570
+ 381,
1571
+ 487,
1572
+ 434
1573
+ ],
1574
+ "page_idx": 9
1575
+ },
1576
+ {
1577
+ "type": "text",
1578
+ "text": "Sachin Mehta, Marjan Ghazvininejad, Srinivasan Iyer, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2021. Delight: Deep and light-weight transformer. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. ",
1579
+ "bbox": [
1580
+ 115,
1581
+ 444,
1582
+ 487,
1583
+ 521
1584
+ ],
1585
+ "page_idx": 9
1586
+ },
1587
+ {
1588
+ "type": "text",
1589
+ "text": "Sachin Mehta, Rik Koncel-Kedziorski, Mohammad Rastegari, and Hannaneh Hajishirzi. 2019. Define: Deep factorized input word embeddings for neural sequence modeling. ArXiv, abs/1911.12385. ",
1590
+ "bbox": [
1591
+ 115,
1592
+ 535,
1593
+ 487,
1594
+ 587
1595
+ ],
1596
+ "page_idx": 9
1597
+ },
1598
+ {
1599
+ "type": "text",
1600
+ "text": "Paul Michel, Omer Levy, and Graham Neubig. 2019. Are sixteen heads really better than one? Advances in neural information processing systems, 32. ",
1601
+ "bbox": [
1602
+ 115,
1603
+ 598,
1604
+ 487,
1605
+ 637
1606
+ ],
1607
+ "page_idx": 9
1608
+ },
1609
+ {
1610
+ "type": "text",
1611
+ "text": "Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. 2019. fairseq: A fast, extensible toolkit for sequence modeling. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (Demonstrations), pages 48–53, Minneapolis, Minnesota. Association for Computational Linguistics. ",
1612
+ "bbox": [
1613
+ 117,
1614
+ 649,
1615
+ 487,
1616
+ 752
1617
+ ],
1618
+ "page_idx": 9
1619
+ },
1620
+ {
1621
+ "type": "text",
1622
+ "text": "Kishore Papineni, Salim Roukos, Todd Ward, and WeiJing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311–318, Philadelphia, Pennsylvania, USA. Association for Computational Linguistics. ",
1623
+ "bbox": [
1624
+ 117,
1625
+ 764,
1626
+ 487,
1627
+ 856
1628
+ ],
1629
+ "page_idx": 9
1630
+ },
1631
+ {
1632
+ "type": "text",
1633
+ "text": "Ricardo Rei, José G. C. de Souza, Duarte Alves, Chrysoula Zerva, Ana C Farinha, Taisiya Glushkova, Alon Lavie, Luisa Coheur, and André F. T. Martins. 2022. COMET-22: Unbabel-IST 2022 submission for the metrics shared task. In Proceedings of the Seventh Conference on Machine Translation (WMT), pages 578–585, Abu Dhabi, United Arab Emirates (Hybrid). Association for Computational Linguistics. ",
1634
+ "bbox": [
1635
+ 115,
1636
+ 866,
1637
+ 487,
1638
+ 919
1639
+ ],
1640
+ "page_idx": 9
1641
+ },
1642
+ {
1643
+ "type": "text",
1644
+ "text": "",
1645
+ "bbox": [
1646
+ 529,
1647
+ 86,
1648
+ 882,
1649
+ 139
1650
+ ],
1651
+ "page_idx": 9
1652
+ },
1653
+ {
1654
+ "type": "text",
1655
+ "text": "Machel Reid, Edison Marrese-Taylor, and Yutaka Matsuo. 2021. Subformer: Exploring weight sharing for parameter efficiency in generative transformers. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 4081–4090, Punta Cana, Dominican Republic. Association for Computational Linguistics. ",
1656
+ "bbox": [
1657
+ 512,
1658
+ 149,
1659
+ 882,
1660
+ 241
1661
+ ],
1662
+ "page_idx": 9
1663
+ },
1664
+ {
1665
+ "type": "text",
1666
+ "text": "Peter Shaw, Jakob Uszkoreit, and Ashish Vaswani. 2018. Self-attention with relative position representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pages 464–468, New Orleans, Louisiana. Association for Computational Linguistics. ",
1667
+ "bbox": [
1668
+ 510,
1669
+ 253,
1670
+ 884,
1671
+ 356
1672
+ ],
1673
+ "page_idx": 9
1674
+ },
1675
+ {
1676
+ "type": "text",
1677
+ "text": "Noam Shazeer. 2020. Glu variants improve transformer. arXiv preprint arXiv:2002.05202. ",
1678
+ "bbox": [
1679
+ 510,
1680
+ 368,
1681
+ 884,
1682
+ 393
1683
+ ],
1684
+ "page_idx": 9
1685
+ },
1686
+ {
1687
+ "type": "text",
1688
+ "text": "David R. So, Quoc V. Le, and Chen Liang. 2019. The evolved transformer. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, pages 5877–5886. ",
1689
+ "bbox": [
1690
+ 510,
1691
+ 405,
1692
+ 882,
1693
+ 470
1694
+ ],
1695
+ "page_idx": 9
1696
+ },
1697
+ {
1698
+ "type": "text",
1699
+ "text": "Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. 2014. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December 8-13 2014, Montreal, Quebec, Canada, pages 3104–3112. ",
1700
+ "bbox": [
1701
+ 512,
1702
+ 481,
1703
+ 882,
1704
+ 561
1705
+ ],
1706
+ "page_idx": 9
1707
+ },
1708
+ {
1709
+ "type": "text",
1710
+ "text": "Mingxing Tan and Quoc Le. 2019. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning, pages 6105–6114. PMLR. ",
1711
+ "bbox": [
1712
+ 510,
1713
+ 571,
1714
+ 882,
1715
+ 624
1716
+ ],
1717
+ "page_idx": 9
1718
+ },
1719
+ {
1720
+ "type": "text",
1721
+ "text": "Chau Tran, Shruti Bhosale, James Cross, Philipp Koehn, Sergey Edunov, and Angela Fan. 2021. Facebook AI’s WMT21 news translation task submission. In Proceedings of the Sixth Conference on Machine Translation, pages 205–215, Online. Association for Computational Linguistics. ",
1722
+ "bbox": [
1723
+ 510,
1724
+ 634,
1725
+ 880,
1726
+ 713
1727
+ ],
1728
+ "page_idx": 9
1729
+ },
1730
+ {
1731
+ "type": "text",
1732
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 5998–6008. ",
1733
+ "bbox": [
1734
+ 512,
1735
+ 725,
1736
+ 882,
1737
+ 815
1738
+ ],
1739
+ "page_idx": 9
1740
+ },
1741
+ {
1742
+ "type": "text",
1743
+ "text": "Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. 2019. Analyzing multi-head self-attention: Specialized heads do the heavy lifting, the rest can be pruned. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5797–5808, Florence, Italy. Association for Computational Linguistics. ",
1744
+ "bbox": [
1745
+ 510,
1746
+ 827,
1747
+ 884,
1748
+ 919
1749
+ ],
1750
+ "page_idx": 9
1751
+ },
1752
+ {
1753
+ "type": "text",
1754
+ "text": "Peihao Wang, Wenqing Zheng, Tianlong Chen, and Zhangyang Wang. 2022. Anti-oversmoothing in deep vision transformers via the fourier domain analysis: From theory to practice. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. ",
1755
+ "bbox": [
1756
+ 117,
1757
+ 85,
1758
+ 487,
1759
+ 164
1760
+ ],
1761
+ "page_idx": 10
1762
+ },
1763
+ {
1764
+ "type": "text",
1765
+ "text": "Qiang Wang, Bei Li, Tong Xiao, Jingbo Zhu, Changliang Li, Derek F. Wong, and Lidia S. Chao. 2019. Learning deep transformer models for machine translation. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1810–1822, Florence, Italy. Association for Computational Linguistics. ",
1766
+ "bbox": [
1767
+ 117,
1768
+ 174,
1769
+ 487,
1770
+ 267
1771
+ ],
1772
+ "page_idx": 10
1773
+ },
1774
+ {
1775
+ "type": "text",
1776
+ "text": "Lijun Wu, Juntao Li, Yue Wang, Qi Meng, Tao Qin, Wei Chen, Min Zhang, Tie-Yan Liu, et al. 2021. R-drop: Regularized dropout for neural networks. Advances in Neural Information Processing Systems, 34:10890– 10905. ",
1777
+ "bbox": [
1778
+ 115,
1779
+ 277,
1780
+ 487,
1781
+ 342
1782
+ ],
1783
+ "page_idx": 10
1784
+ },
1785
+ {
1786
+ "type": "text",
1787
+ "text": "Zhanghao Wu, Zhijian Liu, Ji Lin, Yujun Lin, and Song Han. 2020. Lite transformer with long-short range attention. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. ",
1788
+ "bbox": [
1789
+ 115,
1790
+ 353,
1791
+ 487,
1792
+ 418
1793
+ ],
1794
+ "page_idx": 10
1795
+ },
1796
+ {
1797
+ "type": "text",
1798
+ "text": "Jianhao Yan, Fandong Meng, and Jie Zhou. 2020. Multiunit transformers for neural machine translation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1047–1059, Online. Association for Computational Linguistics. ",
1799
+ "bbox": [
1800
+ 117,
1801
+ 428,
1802
+ 487,
1803
+ 506
1804
+ ],
1805
+ "page_idx": 10
1806
+ },
1807
+ {
1808
+ "type": "text",
1809
+ "text": "Zhengyan Zhang, Yankai Lin, Zhiyuan Liu, Peng Li, Maosong Sun, and Jie Zhou. 2022. MoEfication: Transformer feed-forward layers are mixtures of experts. In Findings of the Association for Computational Linguistics: ACL 2022, pages 877–890, Dublin, Ireland. Association for Computational Linguistics. ",
1810
+ "bbox": [
1811
+ 115,
1812
+ 517,
1813
+ 487,
1814
+ 608
1815
+ ],
1816
+ "page_idx": 10
1817
+ },
1818
+ {
1819
+ "type": "text",
1820
+ "text": "A Detailed Setups of Experiments ",
1821
+ "text_level": 1,
1822
+ "bbox": [
1823
+ 517,
1824
+ 84,
1825
+ 818,
1826
+ 99
1827
+ ],
1828
+ "page_idx": 10
1829
+ },
1830
+ {
1831
+ "type": "text",
1832
+ "text": "A.1 Dataset ",
1833
+ "text_level": 1,
1834
+ "bbox": [
1835
+ 514,
1836
+ 109,
1837
+ 618,
1838
+ 123
1839
+ ],
1840
+ "page_idx": 10
1841
+ },
1842
+ {
1843
+ "type": "text",
1844
+ "text": "Table 10 displays the statistics of all the 9 translation task. ",
1845
+ "bbox": [
1846
+ 512,
1847
+ 130,
1848
+ 884,
1849
+ 160
1850
+ ],
1851
+ "page_idx": 10
1852
+ },
1853
+ {
1854
+ "type": "text",
1855
+ "text": "A.2 Training Details ",
1856
+ "text_level": 1,
1857
+ "bbox": [
1858
+ 514,
1859
+ 172,
1860
+ 685,
1861
+ 187
1862
+ ],
1863
+ "page_idx": 10
1864
+ },
1865
+ {
1866
+ "type": "text",
1867
+ "text": "Table 11 and 12 exhibits the training details on all translation tasks. ",
1868
+ "bbox": [
1869
+ 512,
1870
+ 193,
1871
+ 882,
1872
+ 223
1873
+ ],
1874
+ "page_idx": 10
1875
+ },
1876
+ {
1877
+ "type": "text",
1878
+ "text": "B Metric Definition ",
1879
+ "text_level": 1,
1880
+ "bbox": [
1881
+ 512,
1882
+ 236,
1883
+ 695,
1884
+ 252
1885
+ ],
1886
+ "page_idx": 10
1887
+ },
1888
+ {
1889
+ "type": "text",
1890
+ "text": "B.1 Measurement of Head Diversity ",
1891
+ "text_level": 1,
1892
+ "bbox": [
1893
+ 514,
1894
+ 261,
1895
+ 808,
1896
+ 277
1897
+ ],
1898
+ "page_idx": 10
1899
+ },
1900
+ {
1901
+ "type": "text",
1902
+ "text": "Following Li et al. (2018), we measure the head diversity as follows: ",
1903
+ "bbox": [
1904
+ 512,
1905
+ 282,
1906
+ 880,
1907
+ 312
1908
+ ],
1909
+ "page_idx": 10
1910
+ },
1911
+ {
1912
+ "type": "equation",
1913
+ "img_path": "images/e222b99ceca223295a3da64f749200283b4812c732beb947906765473d54c715.jpg",
1914
+ "text": "$$\nD _ { \\mathrm { o u t p u t } } = \\exp ( - \\frac { 1 } { H ^ { 2 } } \\sum _ { i = 1 } ^ { H } \\sum _ { j = 1 } ^ { H } \\frac { | O ^ { i } \\cdot O ^ { j } | } { \\| O ^ { i } \\| \\| O ^ { j } \\| } )\n$$",
1915
+ "text_format": "latex",
1916
+ "bbox": [
1917
+ 522,
1918
+ 321,
1919
+ 842,
1920
+ 368
1921
+ ],
1922
+ "page_idx": 10
1923
+ },
1924
+ {
1925
+ "type": "text",
1926
+ "text": "During evaluation, we calculate the metric on all samples and average the values to obtain the final result. ",
1927
+ "bbox": [
1928
+ 512,
1929
+ 375,
1930
+ 882,
1931
+ 422
1932
+ ],
1933
+ "page_idx": 10
1934
+ },
1935
+ {
1936
+ "type": "text",
1937
+ "text": "C More Comparison with Previous Lightweight Transformer ",
1938
+ "text_level": 1,
1939
+ "bbox": [
1940
+ 512,
1941
+ 435,
1942
+ 828,
1943
+ 468
1944
+ ],
1945
+ "page_idx": 10
1946
+ },
1947
+ {
1948
+ "type": "text",
1949
+ "text": "Table 13 presents a comprehensive comparison of previous lightweight Transformer models on the En-De task’s test set, with a specific focus on operating within a smaller parameter budget. The results prominently showcase the outstanding performance of PartialFormer, even when faced with constraints on model capacity. This outcome further emphasizes the superior capabilities of PartialFormer in scenarios with limited resources. ",
1950
+ "bbox": [
1951
+ 512,
1952
+ 476,
1953
+ 884,
1954
+ 620
1955
+ ],
1956
+ "page_idx": 10
1957
+ },
1958
+ {
1959
+ "type": "text",
1960
+ "text": "D PartialFormer with Different $A _ { G }$ for Small Dataset ",
1961
+ "text_level": 1,
1962
+ "bbox": [
1963
+ 512,
1964
+ 632,
1965
+ 860,
1966
+ 664
1967
+ ],
1968
+ "page_idx": 10
1969
+ },
1970
+ {
1971
+ "type": "text",
1972
+ "text": "Table 14 showcases the results of PartialFormer on the WMT’16 En-Ro task, a small-scale translation dataset, specifically when $A _ { G }$ is calculated using local attention (Shaw et al., 2018). Notably, these results reveal that by adopting such an approach, PartialFormer achieves an impressive BLEU score of 35.76. We hope this can shed lights on the area of model integration. ",
1973
+ "bbox": [
1974
+ 512,
1975
+ 674,
1976
+ 882,
1977
+ 802
1978
+ ],
1979
+ "page_idx": 10
1980
+ },
1981
+ {
1982
+ "type": "text",
1983
+ "text": "E PartialFormer with GLU and Weight Sharing ",
1984
+ "text_level": 1,
1985
+ "bbox": [
1986
+ 512,
1987
+ 814,
1988
+ 867,
1989
+ 846
1990
+ ],
1991
+ "page_idx": 10
1992
+ },
1993
+ {
1994
+ "type": "text",
1995
+ "text": "In this section, we investigate the integration of PartialFormer with two prominent techniques to enhance parameter efficiency: 1) the weight sharing method (Lan et al., 2020), and 2) gated linear units (Dauphin et al., 2017). To ensure the utilization of the latest advancements, we employ a state-of-the-art weight sharing method called ODE Transformer (Li et al., 2022), known for its effectiveness in promoting parameter efficiency in Transformer architectures. Additionally, we incorporate Swi-GLU (Shazeer, 2020), a widely adopted GLUvariant that has served as a foundational component in numerous expressive Transformer architectures. ",
1996
+ "bbox": [
1997
+ 510,
1998
+ 856,
1999
+ 882,
2000
+ 920
2001
+ ],
2002
+ "page_idx": 10
2003
+ },
2004
+ {
2005
+ "type": "table",
2006
+ "img_path": "images/113f3f1b820b4ee921dbc6d655ef8a8f572da675afe495bb5f849e2dfa52ee3c.jpg",
2007
+ "table_caption": [
2008
+ "Table 10: The details of datasets of 9 translation tasks. "
2009
+ ],
2010
+ "table_footnote": [],
2011
+ "table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"3\">Sentence</td><td rowspan=\"2\">BPE</td><td rowspan=\"2\">Vocab</td></tr><tr><td>Train</td><td>Dev</td><td>Test</td></tr><tr><td>WMT&#x27;14 En-De</td><td>4.5M</td><td>2999 26815</td><td>3003</td><td>32K 32K</td><td>34040 37288</td></tr><tr><td>WMT&#x27;14 En-Fr WMT&#x27;16 En-Ro</td><td>36M 0.6M</td><td>1999</td><td>3003 1999</td><td>20K</td><td>19064</td></tr><tr><td>WMT&#x27;17 En-De</td><td>5.9M</td><td>7998</td><td>3004</td><td>32K</td><td>35488</td></tr><tr><td>WMT&#x27;17 De-En</td><td>5.9M</td><td>7998</td><td>3004</td><td>32K</td><td>35448</td></tr><tr><td>WMT&#x27;17 En-Fi</td><td>2.7M</td><td>4225</td><td>3002</td><td>32K</td><td>32584</td></tr><tr><td>WMT&#x27;17Fi-En</td><td>2.7M</td><td>4225</td><td>3002</td><td>32K</td><td>32584</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>WMT&#x27;17 En-Lv WMT&#x27;17Lv-En</td><td>4.5M 4.5M</td><td>2003 2003</td><td>2001 2001</td><td>20K 20K</td><td>32368 32368</td></tr></table>",
2012
+ "bbox": [
2013
+ 287,
2014
+ 83,
2015
+ 712,
2016
+ 282
2017
+ ],
2018
+ "page_idx": 11
2019
+ },
2020
+ {
2021
+ "type": "table",
2022
+ "img_path": "images/e0e47b7509c2f33386c696e9bd429cae698ff6f33ac8d5e81cba385df0c426a9.jpg",
2023
+ "table_caption": [
2024
+ "Table 11: The training setups of WMT’14 En-De, WMT’16 En-Ro and WMT’14 En-Fr tasks. "
2025
+ ],
2026
+ "table_footnote": [],
2027
+ "table_body": "<table><tr><td colspan=\"4\">Hyper-parameter WMT&#x27;14 En-De WMT&#x27;16En-Ro WMT&#x27;14 En-Fr</td></tr><tr><td>GPUs</td><td>8</td><td>4</td><td>8</td></tr><tr><td>Batch Size</td><td>4096</td><td>4096</td><td>4096</td></tr><tr><td>Update Frequency</td><td>2</td><td>1</td><td>8</td></tr><tr><td>Optimer</td><td>Adam</td><td>Adam</td><td>Adam</td></tr><tr><td>Adamβ</td><td>(0.9,0.997)</td><td>(0.9, 0.997)</td><td>(0.9, 0.997)</td></tr><tr><td>LR</td><td>0.0020</td><td>0.0020</td><td>0.0020</td></tr><tr><td>LR scheduler</td><td>inverse sqrt</td><td>inverse sqrt</td><td>inverse sqrt</td></tr><tr><td>InitialLR</td><td>1e-7</td><td>1e-7</td><td>le-7</td></tr><tr><td>Total updates</td><td>50K</td><td>25K</td><td>100K</td></tr><tr><td>Warmup updates</td><td>16000</td><td>8000</td><td>16000</td></tr><tr><td>Weight decay</td><td>0.0000</td><td>0.0000</td><td>0.0000</td></tr><tr><td>Label smoothing</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Dropout</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Attention dropout</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>ReLU dropout</td><td>0.1</td><td>0.1</td><td>0.1</td></tr></table>",
2028
+ "bbox": [
2029
+ 268,
2030
+ 321,
2031
+ 731,
2032
+ 525
2033
+ ],
2034
+ "page_idx": 11
2035
+ },
2036
+ {
2037
+ "type": "table",
2038
+ "img_path": "images/fd917da6ce94bf44aecb4b8e4af789df0188a27b3b1b14b83548ced91d14761c.jpg",
2039
+ "table_caption": [
2040
+ "Table 12: The training setups of WMT’17 benchmark. "
2041
+ ],
2042
+ "table_footnote": [],
2043
+ "table_body": "<table><tr><td colspan=\"3\">Hyper-parameterI En-{De,Lv} {De,Lv}-En</td><td>En-Fi</td><td>Fi-En</td></tr><tr><td>GPUs</td><td>8</td><td>8</td><td>8</td><td>8</td></tr><tr><td>Batch Size</td><td>4096</td><td>4096</td><td>4096</td><td>4096</td></tr><tr><td>Update Frequency</td><td>2</td><td>1</td><td>1</td><td>4</td></tr><tr><td>Optimer</td><td>Adam</td><td>Adam</td><td>Adam</td><td>Adam</td></tr><tr><td>Adamβ</td><td>(0.9, 0.997)</td><td>(0.9, 0.997)</td><td>(0.9,0.997) (0.9,0.997)</td><td></td></tr><tr><td>LR</td><td>0.0020</td><td>0.0020</td><td>0.0020</td><td>0.0020</td></tr><tr><td>LR scheduler</td><td>inverse sqrt</td><td>inverse sqrt</td><td>inverse sqrt</td><td>inverse sqrt</td></tr><tr><td>Initial LR</td><td>1e-7</td><td>1e-7</td><td>1e-7</td><td>le-7</td></tr><tr><td>Total updates</td><td>50K/17K</td><td>50K/17K</td><td>40K</td><td>10K</td></tr><tr><td>Warmup updates</td><td>16000</td><td>16000</td><td>16000</td><td>16000</td></tr><tr><td>Weight decay</td><td>0.0000</td><td>0.0000</td><td>0.0000</td><td>0.0000</td></tr><tr><td>Label smoothing</td><td>0.1</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Dropout</td><td>0.1</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Attention dropout</td><td>0.1</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>ReLU dropout</td><td>0.1</td><td>0.1</td><td>0.1</td><td>0.1</td></tr></table>",
2044
+ "bbox": [
2045
+ 275,
2046
+ 568,
2047
+ 722,
2048
+ 772
2049
+ ],
2050
+ "page_idx": 11
2051
+ },
2052
+ {
2053
+ "type": "text",
2054
+ "text": "",
2055
+ "bbox": [
2056
+ 115,
2057
+ 827,
2058
+ 487,
2059
+ 907
2060
+ ],
2061
+ "page_idx": 11
2062
+ },
2063
+ {
2064
+ "type": "text",
2065
+ "text": "",
2066
+ "bbox": [
2067
+ 510,
2068
+ 827,
2069
+ 884,
2070
+ 890
2071
+ ],
2072
+ "page_idx": 11
2073
+ },
2074
+ {
2075
+ "type": "text",
2076
+ "text": "Table 15 displays the results of combining PartialFormer with weight sharing and gated linear units. Despite the integration of these two techniques, the performance gains are marginal. This could be attributed to the fact that PartialFormer already possesses high parameter efficiency, leaving little room for additional enhancements from other technologies. In other words, PartialFormer is inherently a high parameter efficiency architecture. ",
2077
+ "bbox": [
2078
+ 531,
2079
+ 904,
2080
+ 882,
2081
+ 920
2082
+ ],
2083
+ "page_idx": 11
2084
+ },
2085
+ {
2086
+ "type": "table",
2087
+ "img_path": "images/20f8901306c77dfdd0156c6e08bb1cfe5d49a122fae8f772b0c6c5ceb92e3e1f.jpg",
2088
+ "table_caption": [
2089
+ "Table 13: Comparison with state-of-the-art models of smaller capacities on the En-De task. "
2090
+ ],
2091
+ "table_footnote": [],
2092
+ "table_body": "<table><tr><td>Model</td><td>Param BLEU</td></tr><tr><td>DELIGHT (Mehta et al., 2021) EdgeFormer (Ge et al., 2022) Lite Transformer (Wu et al.,2020) PartialFormer</td><td>23M 26.70 - 26.90 - 26.50 27M 27.50</td></tr><tr><td>Evolved Transformer (So et al., 2019) DELIGHT (Mehta et al., 2021) ODE Transformer (Li et al., 2022) PartialFormer</td><td>48M 27.70 37M 27.60 37M 28.24 36M 28.35</td></tr></table>",
2093
+ "bbox": [
2094
+ 132,
2095
+ 82,
2096
+ 468,
2097
+ 214
2098
+ ],
2099
+ "page_idx": 12
2100
+ },
2101
+ {
2102
+ "type": "table",
2103
+ "img_path": "images/3e0c5a5f1259a23320c34680f5d4e7b0f324686b03af4b35db3733331a6c2277.jpg",
2104
+ "table_caption": [
2105
+ "Table 14: Results of several PartialFormer variants on the En-De task. "
2106
+ ],
2107
+ "table_footnote": [],
2108
+ "table_body": "<table><tr><td>AG</td><td>AL</td><td>Param</td><td>BLEU</td></tr><tr><td>RPR</td><td>MHSA</td><td>62M</td><td>35.76</td></tr></table>",
2109
+ "bbox": [
2110
+ 200,
2111
+ 266,
2112
+ 401,
2113
+ 307
2114
+ ],
2115
+ "page_idx": 12
2116
+ },
2117
+ {
2118
+ "type": "table",
2119
+ "img_path": "images/393062bc04c56d5f8f438ae8579e80167567f5fd1ea935200ecb3e29907f5b4c.jpg",
2120
+ "table_caption": [
2121
+ "Table 15: Results of PartialFormer variants on the EnDe task. "
2122
+ ],
2123
+ "table_footnote": [],
2124
+ "table_body": "<table><tr><td>Model</td><td>Param</td><td>BLEU</td></tr><tr><td>PartialFormer</td><td>67M</td><td>29.56</td></tr><tr><td>PartialFormer + Weight Sharing</td><td>67M</td><td>29.71</td></tr><tr><td>GLU-based PartialFormer</td><td>67M</td><td>29.67</td></tr></table>",
2125
+ "bbox": [
2126
+ 132,
2127
+ 361,
2128
+ 470,
2129
+ 434
2130
+ ],
2131
+ "page_idx": 12
2132
+ },
2133
+ {
2134
+ "type": "text",
2135
+ "text": "",
2136
+ "bbox": [
2137
+ 115,
2138
+ 499,
2139
+ 487,
2140
+ 626
2141
+ ],
2142
+ "page_idx": 12
2143
+ },
2144
+ {
2145
+ "type": "text",
2146
+ "text": "F Analysis on Token Uniformity ",
2147
+ "text_level": 1,
2148
+ "bbox": [
2149
+ 119,
2150
+ 642,
2151
+ 408,
2152
+ 658
2153
+ ],
2154
+ "page_idx": 12
2155
+ },
2156
+ {
2157
+ "type": "text",
2158
+ "text": "Following (Dong et al., 2021; Wang et al., 2022), we measure the token uniformity among token representations. We use pearson correlation to compute it. ",
2159
+ "bbox": [
2160
+ 115,
2161
+ 669,
2162
+ 489,
2163
+ 732
2164
+ ],
2165
+ "page_idx": 12
2166
+ },
2167
+ {
2168
+ "type": "text",
2169
+ "text": "From Figure 5, we can observe that PartialFormer owns a lower token uniformity among token representations than the vanilla Transformer, revealing that PartialFormer can benefit from depth scaling efficiently (Dong et al., 2021; Wang et al., 2022). ",
2170
+ "bbox": [
2171
+ 115,
2172
+ 734,
2173
+ 487,
2174
+ 828
2175
+ ],
2176
+ "page_idx": 12
2177
+ },
2178
+ {
2179
+ "type": "text",
2180
+ "text": "G Preliminary Experiments on Language Modeling ",
2181
+ "text_level": 1,
2182
+ "bbox": [
2183
+ 115,
2184
+ 845,
2185
+ 485,
2186
+ 877
2187
+ ],
2188
+ "page_idx": 12
2189
+ },
2190
+ {
2191
+ "type": "text",
2192
+ "text": "We also evaluate the effectiveness of PartialFormer on the language modeling task. We can see that ",
2193
+ "bbox": [
2194
+ 115,
2195
+ 888,
2196
+ 485,
2197
+ 919
2198
+ ],
2199
+ "page_idx": 12
2200
+ },
2201
+ {
2202
+ "type": "image",
2203
+ "img_path": "images/517907196c26506a55372a37e562c0ab840c57819add59a61bb59d3cc5f52ae6.jpg",
2204
+ "image_caption": [
2205
+ "Figure 5: Comparison of token uniformity (lower is better) in Transformer and PartialFormer. "
2206
+ ],
2207
+ "image_footnote": [],
2208
+ "bbox": [
2209
+ 554,
2210
+ 85,
2211
+ 840,
2212
+ 180
2213
+ ],
2214
+ "page_idx": 12
2215
+ },
2216
+ {
2217
+ "type": "text",
2218
+ "text": "PartialFormer can also show better results compared to strong baseline, e.g., Adaptive Input Transformer (Baevski and Auli, 2019). We will present more comprehensive experiments in the future. ",
2219
+ "bbox": [
2220
+ 510,
2221
+ 241,
2222
+ 882,
2223
+ 305
2224
+ ],
2225
+ "page_idx": 12
2226
+ },
2227
+ {
2228
+ "type": "table",
2229
+ "img_path": "images/d601769096e53a656e68d57198707e235b70b3bfa767a168c0bd57e1d5018116.jpg",
2230
+ "table_caption": [],
2231
+ "table_footnote": [
2232
+ "Table 16: Results on the WikiText-103 dataset. "
2233
+ ],
2234
+ "table_body": "<table><tr><td>Model</td><td>Depth 0 (M) Test PPL</td></tr><tr><td>Adaptive Input</td><td>8 147M 21.11</td></tr><tr><td>PartialFormer</td><td>16 143M 19.87</td></tr></table>",
2235
+ "bbox": [
2236
+ 515,
2237
+ 316,
2238
+ 877,
2239
+ 392
2240
+ ],
2241
+ "page_idx": 12
2242
+ }
2243
+ ]
parse/dev/NHeAUKlTO8/NHeAUKlTO8_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/NHeAUKlTO8/NHeAUKlTO8_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/T8wHz4rnuGL/T8wHz4rnuGL.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/T8wHz4rnuGL/T8wHz4rnuGL_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/UKd6dpVGdu/UKd6dpVGdu.md ADDED
@@ -0,0 +1,347 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Learning to Tokenize for Generative Retrieval
2
+
3
+ Weiwei $\mathbf { S u n } ^ { 1 }$ , Lingyong $\mathbf { Y a n } ^ { 2 }$ , Zheng Chen1, Shuaiqiang Wang2, Haichao $\mathbf { Z } \mathbf { h } \mathbf { u } ^ { 2 }$
4
+ Pengjie Ren1, Zhumin Chen1, Dawei $\mathbf { Y i n } ^ { 2 }$ , Maarten de Rijke3, Zhaochun $\mathbf { R e n ^ { 4 * } }$ 1Shandong University, China 2Baidu Inc., China
5
+ 3University of Amsterdam, The Netherlands 4Leiden University, The Netherlands {sunnweiwei,lingyongy}@gmail.com yindawei@acm.org m.derijke@uva.nl z.ren@liacs.leidenuniv.nl
6
+
7
+ # Abstract
8
+
9
+ As a new paradigm in information retrieval, generative retrieval directly generates a ranked list of document identifiers (docids) for a given query using generative language models (LMs). How to assign each document a unique docid (denoted as document tokenization) is a critical problem, because it determines whether the generative retrieval model can precisely retrieve any document by simply decoding its docid. Most existing methods adopt rule-based tokenization, which is ad-hoc and does not generalize well. In contrast, in this paper we propose a novel document tokenization learning method, GENRET, which learns to encode the complete document semantics into docids. GENRET learns to tokenize documents into short discrete representations (i.e., docids) via a discrete auto-encoding approach. We develop a progressive training scheme to capture the autoregressive nature of docids and diverse clustering techniques to stabilize the training process. Based on the semantic-embedded docids of any set of documents, the generative retrieval model can learn to generate the most relevant docid only according to the docids’ semantic relevance to the queries. We conduct experiments on the NQ320K, MS MARCO, and BEIR datasets. GENRET establishes the new state-of-the-art on the NQ320K dataset. Compared to generative retrieval baselines, GENRET can achieve significant improvements on unseen documents. Moreover, GENRET can also outperform comparable baselines on MS MARCO and BEIR, demonstrating the method’s generalizability.
10
+
11
+ # 1 Introduction
12
+
13
+ Document retrieval plays an essential role in web search applications and various downstream knowledge-intensive tasks by identifying relevant documents to satisfy users’ queries. Recently, generative retrieval has emerged as a new paradigm for document retrieval [1, 5, 37, 41, 46, 47] that directly generates a ranked list of document identifiers (docids) for a given query using generative language models (LMs). Unlike dense retrieval [9, 13, 23, 42], generative retrieval presents an end-to-end solution for document retrieval tasks [37]. It also offers a promising approach to better exploit the capabilities of recent large LMs [1, 41].
14
+
15
+ As shown in Figure 1, document tokenization aims to tokenize each document in the corpus as a sequence of discrete characters, i.e., docids. Document tokenization plays a crucial role in generative retrieval, as it defines how the document is distributed in the semantic space [37]. And it is still an open problem how to define docids. Most previous generative methods tend to employ rule-based document tokenizers, such as generating titles or URLs [5, 46], or clustering results from off-the-shelf document embeddings [37, 41]. Such rule-based methods are usually ad-hoc and do not generalize well. In particular, the tokenization results potentially perform well on retrieving documents that have been seen during training, but generalize poorly to unlabeled documents [17, 20].
16
+
17
+ ![](images/9376e3d55387499e592d3ca31bec0c42c1ee6f3616750bc00aa088c2036a1417.jpg)
18
+ Figure 1: An overview of our proposed method. The proposed method utilizes a document tokenization model to convert a given document into a sequence of discrete tokens, referred to as a docid. This tokenization process allows for the reconstruction of the original document through a reconstruction model. Subsequently, an autoregressive generation model is employed to retrieve documents through the generation of their respective docids.
19
+
20
+ To address the above problem, we propose GENRET, a document tokenization learning framework that learns to tokenize a document into semantic docids in a discrete auto-encoding scheme. GENRET consists of a shared sequence-to-sequence-based document tokenization model, a generative retrieval model, and a reconstruction model. In the proposed auto-encoding learning scheme, the tokenization model learns to convert documents to discrete docids, which are subsequently utilized by the reconstruction model to reconstruct the original document. The generative retrieval model is trained to generate docids in an autoregressive manner for a given query. The above three models are optimized in an end-to-end fashion to achieve seamless integration.
21
+
22
+ There are usually two challenges when using auto-encoding to optimize a generative retrieval model: (i) docids with an autoregressive nature, and (ii) docids with diversity. To address the first challenge and also to stabilize the training of GENRET, we devise a progressive training scheme. This training scheme allows for a stable training of the model by fixing optimized prefix docids $z _ { < t }$ . To optimize the docids at each step, three proposed losses are utilized: (i) a reconstruction loss for predicting the document using the generated docid, (ii) a commitment loss for committing the docid and avoiding forgetting, and (iii) a retrieval loss for optimizing the retrieval performance end-to-end. To address the second challenge, we propose a parameter initialization strategy and a re-assignment of the docid based on a diverse clustering technique to increase the diversity of the generated docids.
23
+
24
+ We conduct extensive experiments on three well-known document retrieval benchmark datasets, NQ320K [15, 37], MS MARCO [4, 46], and BEIR [38]. GENRET attains superior retrieval performance against state-of-the-art generative retrieval models on NQ320K. GENRET achieves $+ 1 4 \%$ relative improvements on the unseen test set of NQ320K over the best generative retrieval baseline. Experiments on MS MARCO and six BEIR datasets also show that GENRET outperforms existing generative methods and achieves competitive results compared to popular dense retrieval models. Experiments on retrieving new documents, analytical experiments, and an efficiency analysis confirm the effectiveness of the proposed model.
25
+
26
+ We summarize our contributions as follows: (i) We propose GENRET, a generative retrieval model that represents documents as discrete semantic docids. To the best of our knowledge, this is the first tokenization learning method for document retrieval. (ii) We propose an auto-encoding approach, where the docids generated by our tokenization model are reconstructed by a reconstruction model to ensure the docids capture the semantic information of the document. (iii) We devise a progressive training scheme to model the autoregressive nature of docids and stabilize the training process. (iv) Experimental results demonstrate that GENRET achieves significant improvements, especially on unseen documents, over generative retrieval baselines.2
27
+
28
+ # 2 Preliminaries
29
+
30
+ The document retrieval task can be formalized as the process of retrieving a relevant document $d$ for a search query $q$ from a collection of documents $\mathcal { D }$ . Each document $d \in \mathcal { D }$ is assumed to be a plain text consisting of a sequence of tokens, denoted as $d = \{ d _ { 1 } , \dotsc , d _ { | d | } \}$ , where $| d |$ is the total number of tokens in the document. For generative retrieval models, it is usually challenging and computationally inefficient to directly generate original documents of typically long length. Therefore, most existing approaches rely on a technique named document tokenization, which represents a document $\bar { d } \bar { = } \{ d _ { 1 } , \ldots , \bar { d _ { | d | } } \}$ as a shorter sequence of discrete tokens (docid) $z = \{ z _ { 1 } , \ldots , z _ { t } , \ldots , z _ { M } \}$ , where each token $z _ { t }$ is as a $K$ -way categorical variable, with $z _ { t } \in [ 1 , 2 , \ldots , K ]$ , and $M$ is the length of the docid. See Figure 1 for an example of document tokenization with $M = 3$ and $K = 6 4$ .
31
+
32
+ As an alternative sequence of the original document, the tokenized docid $z$ should satisfy the following two properties: (i) different documents have short but different docids; and (ii) docids capture the semantics of their associated documents as much as possible [37]. Because $z$ is a sequence of a fixed length and usually shorter than the original document $d$ , the model’s training and inference can be simplified and more efficient. This paper employs a tokenization model $Q \colon d z$ to map $d$ to docid $z$ . More details about $Q$ are provided in Section 3.1. After tokenizing each document to docid $z$ , a generative retrieval model $P \colon q z$ learns to retrieve relevant documents by generating a query $q$ to a docid $z$ autoregressively [37].
33
+
34
+ # 3 Method
35
+
36
+ Conventionally, document tokenization is done by a fixed pre-processing step, such as using the title of a document or the results of hierarchical clustering obtained from BERT [5, 37]. However, it has been observed that such ad-hoc document tokenization methods often fail to capture the complete semantics of a document. For example, the title of a web page often does not exist or has low relevance to the content of the web page, and the use of clustering-based docids arbitrarily defines the document in discrete space.
37
+
38
+ In this paper, we propose GENRET, a novel tokenization learning method based on discrete autoencoding, to learn semantic docid in a fully end-to-end manner. Figure 1 gives an overview of the proposed method. The proposed GENRET comprises three main components: (i) a sequence-tosequence based retrieval model $P ( z \mid q )$ , (ii) a document tokenization model $Q ( z \mid d )$ , and (iii) a reconstruction model $R ( d \mid z )$ . The document tokenization model tokenizes a document $d$ into unique discrete variables $z$ , and the retrieval model is trained to generate the latent variables $z$ for a given query $q$ . In addition, the reconstruction model is used to re-generate the original document from $z$ to ensure $z$ captures the semantics of the original document as much as possible.
39
+
40
+ # 3.1 Model architecture
41
+
42
+ Following DSI [37], we employ an encoder-decoder Transformer to implement the generative retrieval model. Specifically, given an input text $d ^ { 3 }$ , the T5-based tokenization model encodes $d$ and a prefix of docid $z _ { < t }$ and continuously produces latent representation $\mathbf { d } _ { t }$ of $d$ at time step $t$ :
43
+
44
+ $$
45
+ \mathbf { d } _ { t } = { \mathrm { D e c o d e r } } ( { \mathrm { E n c o d e r } } ( d ) , z _ { < t } ) \in \mathbb { R } ^ { D } ,
46
+ $$
47
+
48
+ where $D$ denotes the hidden size of the model. Encoder $( d )$ denotes the output of the Encoder.
49
+
50
+ Then, the tokenization model generates a token for each document based on $\mathbf { d } _ { t }$ . At each timestep $t$ we define an external embedding matrix named codebook $\mathbf { E } _ { t } \in \mathbb { R } ^ { K \times D }$ , where $K$ is the size of the discrete latent space. There are $K$ embedding vectors $\mathbf { e } _ { t , j } \in \mathbb { R } ^ { D } , j \in [ K ]$ , and each vector $\mathbf { e } _ { t , j }$ can be regarded as the centroid of a segmentation.
51
+
52
+ Based on the codebook $\mathbf { E } _ { t }$ , the discrete latent variable $z _ { t }$ at timestep $t$ is calculated by a dot-product look-up using the codebook $\mathbf { E } _ { t }$ :
53
+
54
+ $$
55
+ Q ( z _ { t } = j \mid z _ { < t } , d ) = \operatorname { S o f t m a x } _ { j } ( \mathbf { d } _ { t } \cdot \mathbf { E } _ { t } ^ { \top } ) ,
56
+ $$
57
+
58
+ where $Q ( z _ { t } = j \mid z _ { < t } , d )$ denotes the probability of tokenizing $d$ to a particular value $j \in [ K ]$ at timestep $t$ , $\operatorname { S o f t m a x } _ { j }$ is a softmax function to output the probability of axis $j$ .
59
+
60
+ Document reconstruction model. The docid generated by the tokenization model $Q$ is required to capture the semantic information of the document. To this end, we propose an auto-encoding training scheme, where a reconstruction model $R \colon z \to d$ that predicts $d$ using $z$ is designed to force the tokenization model $Q \colon d z$ to reproduce a docid $z$ that can be reconstructed back-to-the original document.
61
+
62
+ The input of the reconstruction model is docid $z$ , and the output is its associated document $d$ . We first embed $z$ into representation matrix $\mathbf { z } = \{ \mathbf { z } _ { 1 } , \hdots , \mathbf { z } _ { M } \} \stackrel { * } { \in } \mathbb { R } ^ { M \times D }$ using the codebook of the tokenization model:
63
+
64
+ $$
65
+ \mathbf { z } = \{ \mathbf { e } _ { 1 , z _ { 1 } } , \mathbf { e } _ { 2 , z _ { 2 } } , \ldots , \mathbf { e } _ { M , z _ { M } } \} \in \mathbb { R } ^ { M \times D } ,
66
+ $$
67
+
68
+ where each $t \in [ M ] , \mathbf { z } _ { t } = \mathbf { e } _ { t , z _ { t } } \in \mathbb { R } ^ { D }$ is the embedding vector of $z _ { t }$ in the $t { \cdot }$ -step codebook $\mathbf { E } _ { t }$
69
+
70
+ We then devise a retrieval-based reconstruction model that predicts the target document $d$ by retrieving it from document collection $\mathcal { D }$ , based on the inputs $\mathbf { z }$ . The relevance score between the input docid $z$ and the target document $d$ is defined as follows:
71
+
72
+ $$
73
+ R ( d \mid \mathbf { z } ) = \prod _ { t = 1 } ^ { M } \frac { \exp ( \mathbf { z } _ { t } \cdot \mathbf { s g } ( \mathbf { d } _ { t } ^ { \top } ) ) } { \sum _ { d ^ { * } \in S ( z _ { < t } ) } \exp ( \mathbf { z } _ { t } \cdot \mathbf { s g } ( \mathbf { d } ^ { * } { } _ { t } ^ { \top } ) ) } ,
74
+ $$
75
+
76
+ where $S ( z _ { < t } )$ is a sub-collection of $\mathcal { D }$ consisting of documents that have a docid prefix that is the same as $z _ { < t }$ . $d ^ { * } \in S ( z _ { < t } )$ represents a document from the sub-collection $S ( z _ { < t } )$ . $\mathbf { d } _ { t }$ and $\mathbf { d } ^ { * } { } _ { t }$ are continuous representations of documents $d$ and $d ^ { * }$ , respectively, as defined in Eq. 1. The operator $\operatorname { s g } ( \cdot )$ is the stop gradient operator to prevent gradient back propagation. Intuitively, $R ( d { \bar { \mathbf { \theta } } } | { \mathbf { \theta } } \mathbf { z } )$ is designed to retrieve a specific document $d$ from a set of documents $S ( z _ { < t } )$ at each timestep $t$ . The set $S ( z _ { < t } )$ only includes those documents that are assigned the same docid prefix $z _ { < t }$ as the target document $d$ . By utilizing this loss function, at each step $t$ , the model is facilitated to learn the residual semantics of the documents not captured by the previous docid $z _ { < t }$ .
77
+
78
+ # 3.2 Model optimization
79
+
80
+ For the document tokenization model $Q ( z \mid d )$ , generative retrieval model $P ( z \mid q )$ , and reconstruction model $R ( d \mid z )$ , jointly optimizing these three models using auto-encoding is challenging due to the following reasons: (i) Learning docids in an autoregressive fashion. On one hand, the prediction of the $z _ { t }$ at time $t$ relies on previously predicted docids $z _ { < t }$ , which is often under-optimized at the beginning and rapidly changes during training, making it difficult to reach convergence. On the other hand, simultaneously optimizing $z$ makes it challenging to guarantee a unique docid assignment. Hence, to stabilize the training of GENRET, we devise a progressive training scheme (see Section 3.2.1). (ii) Generating docids with diversity. Optimizing the model using auto-encoding often leads to unbalanced docid assignment: a few major docids are assigned to a large number of documents and most other docids are rarely assigned. Such a sub-optimal distribution of docids affects the model distinguishability, which in turns triggers length increments of docids in order to distinguish conflicting documents. We introduce two diverse clustering techniques to ensure docid diversity (see Section 3.2.2).
81
+
82
+ # 3.2.1 Progressive training scheme
83
+
84
+ To optimize each of the three models listed above in an autoregressive manner, we propose a progressive autoencoding learning scheme, as illustrated in Figure 2. The whole learning scheme contains $M$ learning steps with respect to the final docid in $M$ -token. And the docid $z _ { T }$ at step $T \in [ M ]$ is learned and optimized at the corresponding learning step. Besides, at each step $T \in [ M ]$ the docid $z _ { T }$ and the model parameters associated with $z _ { T }$ generation are updated, while previously produced docids $z _ { < T }$ and other parameters are kept fixed. By progressively performing the above process, we can finally optimize and learn our models.
85
+
86
+ ![](images/a29a4818c2d798660c4bfa1140e60b39233a1da46f602255acd9078fcf835ed5.jpg)
87
+ Figure 2: Progressive training scheme. $z _ { t }$ (docid at timestep $t$ ) is optimized at the $t$ -th training step, while $z _ { < t }$ (docids before timestep $t$ ) are kept fixed.
88
+
89
+ At each optimization step, say the $T$ -step, we devise the learning objective for document tokenization consisting of three loss functions detailed below.
90
+
91
+ Reconstruction loss. We utilize the reconstruction model $R ( d \mid z )$ as an auxiliary model to learn to optimize the docid generation, whose main goal is capturing as much semantics in the docid as possible. Therefore, we define a reconstruction loss function of step $T$ as follows:
92
+
93
+ $$
94
+ \begin{array} { r l r } { \mathcal { L } _ { \mathrm { R e c } } = - \log R ( d \mid \hat { \mathbf { z } } _ { \le T } ) , } & { \mathrm { w h e r e ~ } \hat { \mathbf { z } } _ { \le T } = \left\{ \mathrm { s g } ( \mathbf { z } _ { 1 } ) , \dots , \mathrm { s g } ( \mathbf { z } _ { T - 1 } ) , \mathbf { z } _ { T } \right\} } & { \in \mathbb { R } ^ { T \times D } } \\ { \forall t \in [ T ] : \mathbf { z } _ { t } = \mathbf { e } _ { t , j ^ { * } } \in \mathbb { R } ^ { D } , } & { \mathrm { w h e r e ~ } j ^ { * } = \arg \operatorname* { m a x } Q ( z _ { t } = j \mid z _ { < t } , d ) , } \end{array}
95
+ $$
96
+
97
+ where $\scriptstyle { \hat { \mathbf { z } } } < { T }$ is the first $T$ representations of the $z$ , and only the variable $\mathbf { z } _ { T }$ is optimized in step $T$ $Q ( z _ { t } = \bar { j } \mid z _ { < t } , d )$ is defined in Eq. 2. And the document tokenization model $Q$ can therefore be optimized when minimizing $\mathcal { L } _ { \mathrm { R e c } }$ .
98
+
99
+ Of note, since the computation involves a non-differentiable operation $( \mathrm { a r g } \operatorname* { m a x } ( \cdot ) )$ , we apply straight-through gradient estimation to back-propagate the gradient from reconstruction loss to ${ \bf d } _ { T }$ following [39, 44], which copies the gradient of $\mathbf { z } _ { T }$ directly to ${ \bf d } _ { T }$ . Specifically, the gradients to document representation ${ \bf d } _ { T }$ are defined as $\begin{array} { r } { \frac { \partial \mathcal { L } _ { \mathrm { R e c } } } { \partial { \bf d } _ { T } } : = \frac { \partial \mathcal { L } _ { \mathrm { R e c } } } { \partial { \bf z } _ { T } } } \end{array}$ And the gradients to the codebook embedding $\mathbf { e } _ { T , j }$ are defined as $\begin{array} { r } { \frac { \partial \mathcal { L } _ { \mathrm { R e c } } } { \partial \mathbf { e } _ { T , j } } : = 1 _ { z _ { T } = j } \frac { \partial \dot { \mathcal { L } } _ { \mathrm { R e c } } } { \partial \mathbf { z } _ { T } } } \end{array}$
100
+
101
+ Commitment loss. In addition, to make sure the predicted docid commits to an embedding and to avoid models forgetting previous docid $z _ { < t }$ , we add a commitment loss as follows:
102
+
103
+ $$
104
+ \mathcal { L } _ { \mathrm { C o m } } = - \sum _ { t = 1 } ^ { T } \log Q ( z _ { t } \mid z _ { < t } , d ) .
105
+ $$
106
+
107
+ Retrieval loss. For the generative retrieval model $P$ , we jointly learn it together with the document tokenization model $Q$ , where $P$ learns to generate the docids of relevant documents $d$ given a query $q$ Specifically, suppose $( q , d )$ are a query and relevant document pair; we define the learning objective of retrieval model $P$ as:
108
+
109
+ $$
110
+ \mathcal { L } _ { \mathrm { R e t } } = - \log \frac { \exp ( \mathbf { q } _ { T } \cdot \mathbf { d } _ { T } ) } { \sum _ { d ^ { * } \sim B } \exp ( \mathbf { q } _ { T } \cdot \mathbf { d } ^ { * } _ { T } ) } - \sum _ { t = 1 } ^ { T } \log P ( z _ { t } \mid z _ { < t } , q ) ,
111
+ $$
112
+
113
+ where the first term is a ranking-oriented loss enhancing the model using $( q , d )$ pair; $d ^ { * }$ is an in-batch document sampled from the same training mini-batch $B$ ; $\mathbf { q } _ { T }$ and ${ \bf d } _ { T }$ denote the representation of $q$ and $d$ at timestep $T$ . The second term is the cross-entropy loss for generating docid $z$ based on $q$ .
114
+
115
+ The final loss we use at step- $\mathcal { T }$ is the sum of reconstruction loss, commitment loss, and retrieval loss:
116
+
117
+ $$
118
+ \begin{array} { r } { \mathcal { L } = \mathcal { L } _ { \mathrm { R e c } } + \mathcal { L } _ { \mathrm { C o m } } + \mathcal { L } _ { \mathrm { R e t } } . } \end{array}
119
+ $$
120
+
121
+ # 3.2.2 Diverse clustering techniques
122
+
123
+ To ensure diversity of generated docids, we adopt two diverse clustering techniques–codebook initialization and docid re-assignment at each progressive training step, where codebook initialization mainly aims to increase the balance of semantic space segmentation, and the docid re-assignment mainly aims to increase the balance of docid assignments.
124
+
125
+ Codebook initialization. In order to initialize the codebook for our model, we first warm-up the model by passing the continuous representation ${ \bf d } _ { T }$ to the reconstruction model instead of the docid representation $\mathbf { z } _ { T }$ as defined in Eq. 3. During this warm-up phase, we optimize the model using the reconstruction loss $\mathcal { L } _ { \mathrm { R e c } }$ and commitment loss ${ \mathcal { L } } _ { \mathrm { C o m } }$ . Next, we collect the continuous representations ${ \bf d } _ { T }$ of all documents in $\mathcal { D }$ , and cluster them into $K$ groups. The centroids of these clusters are then used as the initialized codebook $\mathbf { E } _ { T }$ . To balance the initialized docid distribution, we utilize a diverse constrained clustering algorithm, Constrained $K \cdot$ -Means, which first normalizes the embeddings of each prefix group, and modifies the cluster assignment step (E in EM) by formulating it as a minimum cost flow (MCF) linear network optimization problem [2].
126
+
127
+ Docid re-assignment. In order to assign docids to a batch of documents, we modify the dot-product look-up results in Eq. 2 by ensuring that the docid for different documents in the batch are distinct following the method described in [6, 44]. Specifically, let $\mathbf { D } _ { t } = \{ \mathbf { d } _ { t } ^ { ( 1 ) } , \dots , \mathbf { d } _ { t } ^ { ( B ) } \} \in \mathbb { R } ^ { B \times D }$ denote the continuous representation of a batch of documents with batch size of $B$ . The dot-product results are represented by $\mathbf { H } = \mathbf { D } _ { t } \cdot \mathbf { E } _ { t } ^ { \top } \in \mathbb { R } ^ { B \times K }$ . To obtain distinct docids, we calculate an alternative $\begin{array} { r } { \mathbf { H } ^ { * } = \mathrm { D i a g } ( \mathbf { u } ) \exp ( \frac { \mathbf { H } } { \epsilon } ) \mathrm { D i a g } ( \mathbf { v } ) } \end{array}$ , where $\mathbf { u }$ and $\mathbf { v }$ are re-normalization vectors in $\mathbb { R } ^ { K }$ and $\mathbb { R } ^ { B }$ , respectively. The re-normalization vectors are computed via the iterative Sinkhorn-Knopp algorithm [8]. Finally, $\mathbf { H } ^ { * }$ is used instead of $\mathbf { H }$ in the Softmax and arg max (Eq. 2) operations to obtain the docid $z _ { t }$ .
128
+
129
+ # 4 Experimental Setup
130
+
131
+ # 4.1 Datasets and evalutaion metrics
132
+
133
+ We conduct experiments on three well-known document retrieval datasets: NQ320K [15], MS MARCO [4], and BEIR [38]. We divide the test set of NQ320K into seen test and unseen test, based on whether the target documents of the query have annotated queries in the training data, to test the generalization ability of the model on unlabeled documents. More details about data pre-processing and data statistics are listed in the Appendix A.
134
+
135
+ On NQ320K, we use Recall $\ @ \left\{ 1 , 1 0 , 1 0 0 \right\}$ and Mean Reciprocal Rank (MRR) $@ 1 0 0$ as evaluation metrics, following [41]. On MS MARCO, we use Recall $ @ \{ 1 , 1 0 , 1 0 0 \}$ and MRR $@ 1 0$ as evaluation metrics, following [46]. On BEIR, we use nDCG $@ 1 0$ as the main metrics and calculate the average nDCG $@ 1 0$ values across multiple downstream sub-datasets as overall metrics.
136
+
137
+ # 4.2 Baselines
138
+
139
+ We consider three types of baselines: sparse retrieval methods, dense retrieval methods, and generative retrieval methods. The sparse retrieval baselines are: BM25 [32] and DocT5Query [24]. The dense retrieval baselines are: DPR [13], ANCE [42], Sentence-T5 [22], GTR [23], and Contriever [11]. The generative retrieval baselines are: GENRE [5], DSI [37], SEAL [1], CGR-Contra [17], DSIQG [47], NCI [41], and Ultron [46]. The following three baselines use the same pre-trained LM T5 as GENRET: (i) Sentence-T5 outputs continuous vectors, (ii) GENRE outputs document titles, and (iii) DSI-QG outputs clustering IDs, while GENRET outputs docids learned using the proposed tokenization method. See Appendix B for more details on the other baselines.
140
+
141
+ # 4.3 Implementation details
142
+
143
+ Hyper-parameters. In our experiments, we utilize the T5-Base model [27] as the base Transformer and initialize a new codebook embedding $\mathbf { E } _ { t }$ for each time step. The parameters of both the encoderdecoder and codebook are shared between the tokenization model and the retrieval model. We set the number of clusters to be $K = 5 1 2$ for all datasets, with the length of the docid $M$ being dependent on the number of documents present. For datasets containing a larger number of candidate documents, a larger value of $M$ is set to ensure that all documents are assigned unique document ids. In the docid re-assignment, the hyper-parameter $\epsilon$ is set to 1.0, and the Sinkhorn-Knopp algorithm is executed for 100 iterations.
144
+
145
+ Indexing with query generation. Following previous work [47, 41, 40], we use query generation models to generate synthetic (query, document) pairs for data augmentation. Specifically, we use the pre-trained query generation model from DocT5Query [24] to augment the NQ and MS MARCO datasets. In query generation, we use nucleus sampling with parameters $p = 0 . 8 , t = 0 . 8$ and generate five queries for each document in the collection. For the BEIR datasets, we use the queries generated by GPL [40]. GPL uses a DocT5Query [24] generator trained on MS MARCO to generate about 250K queries for each BEIR dataset. Note that the query generator used for BEIR is purely trained on MS MARCO (without using any training data of BEIR) and thus conforms to the zero-shot setting of BEIR [38, 40].
146
+
147
+ Training and inference. The proposed models and the reproduced baselines are implemented with PyTorch 1.7.1 and HuggingFace transformers 4.22.2. We optimize the model using AdamW and set the learning rate to $5 e - 4$ . The batch size is 256, and the model is optimized for up to $5 0 0 \mathrm { k }$ steps for each timestep. During training, we pre-gather documents which share the same docid prefix into a batch. Therefore, the reassignment strategy is applied to a batch, where we aim to have documents with as diverse IDs as possible. We add a factor of 0.1 to the reconstruction losses to balance the scale. In progressive training, we first warm up the model for 5K steps and then initialize the codebook using the clustering centroids as mentioned in Section 3.2.1. We use constrained clustering4 to obtain diverse clustering results. During inference, we use beam search with constrained decoding [5] and a beam size of 100.
148
+
149
+ Table 1: Results on Natural Questions (NQ320K). The results of the methods marked with † are from our own re-implementation, others are from their official implementation. \* and $^ { * * }$ indicate significant improvements over previous-best generative retrieval baselines with $\mathsf { p }$ -value $< 0 . 0 5$ and p-value $< 0 . 0 1$ , respectively. $\natural$ and $\sharp$ indicate significant improvements over previous-best dense retrieval baselines with $\boldsymbol { \mathrm { p } }$ -value $< 0 . 0 5$ and $\mathsf { p }$ -value $< 0 . 0 1$ , respectively. The best results for each metric are indicated in boldface.
150
+
151
+ <table><tr><td></td><td colspan="4">Full test</td><td colspan="4">Seen test</td><td colspan="4">Unseen test</td></tr><tr><td>Method</td><td></td><td></td><td>R@1 R@10 R@100</td><td></td><td></td><td>MRR R@1 R@10 R@100 MRR R@1 R@10 R@100 MRR</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Sparse retrieval</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>BM25[32]</td><td>29.7</td><td>60.3</td><td>82.1</td><td>40.2</td><td>29.1</td><td>59.8</td><td>82.4</td><td>39.5</td><td>32.3</td><td>61.9</td><td>81.2</td><td>42.7</td></tr><tr><td>DocT5Query [24]</td><td>38.0</td><td>69.3</td><td>86.1</td><td>48.9</td><td>35.1</td><td>68.3</td><td>86.4</td><td>46.7</td><td>48.5</td><td>72.9</td><td>85.0</td><td>57.0</td></tr><tr><td>Dense retrieval</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>DPR[13]</td><td>50.2</td><td>77.7</td><td>90.9</td><td>59.9</td><td>50.2</td><td>78.7</td><td>91.6</td><td>60.2</td><td>50.0</td><td>74.2</td><td>88.7</td><td>58.8</td></tr><tr><td>ANCE [42]</td><td>50.2</td><td>78.5</td><td>91.4</td><td>60.2</td><td>49.7</td><td>79.2</td><td>92.3</td><td>60.1</td><td>52.0</td><td>75.9</td><td>88.0</td><td>60.5</td></tr><tr><td>Sentence-T5† [22]</td><td>53.6</td><td>83.0</td><td>93.8</td><td>64.1</td><td>53.4</td><td>83.9</td><td>94.7</td><td>63.8</td><td>56.5</td><td>79.5</td><td>90.7</td><td>64.9</td></tr><tr><td>GTR-Base [23]</td><td>56.0</td><td>84.4</td><td>93.7</td><td>66.2</td><td>54.4</td><td>84.7</td><td>94.2</td><td>65.3</td><td>61.9</td><td>83.2</td><td>92.1</td><td>69.6</td></tr><tr><td>Generative retrieval</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>GENRE† [5]</td><td>55.2</td><td>67.3</td><td>75.4</td><td>59.9</td><td>69.5</td><td>83.7</td><td>90.4</td><td>75.0</td><td>6.0</td><td>10.4</td><td>23.4</td><td>7.8</td></tr><tr><td>DSI+ [37]</td><td>55.2</td><td>67.4</td><td>78.0</td><td>59.6</td><td>69.7</td><td>83.6</td><td>90.5</td><td>74.7</td><td>1.3</td><td>7.2</td><td>31.5</td><td>3.5</td></tr><tr><td>SEAL [1]</td><td>59.9</td><td>81.2</td><td>90.9</td><td>67.7</td><td>1</td><td>-</td><td>-</td><td>-</td><td>1</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CGR-Contra [17]</td><td>63.4</td><td>81.1</td><td>-</td><td>-</td><td>1</td><td>1</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>DSI-QG+ [47]</td><td>63.1</td><td>80.7</td><td>88.0</td><td>69.5</td><td>68.0</td><td>85.0</td><td>91.4</td><td>74.3</td><td>45.9</td><td>65.8</td><td>76.3</td><td>52.8</td></tr><tr><td>NCI [41]</td><td>66.4</td><td>85.7</td><td>92.4</td><td>73.6</td><td>69.8</td><td>88.5</td><td>94.6</td><td>76.8</td><td>54.5</td><td>75.9</td><td>84.8</td><td>62.4</td></tr><tr><td>Ours</td><td>68.1*</td><td>88.8*日</td><td>95.2*</td><td>75.9*70.2#</td><td></td><td>90.3#</td><td>96.0</td><td>77.7#</td><td>62.5**</td><td>83.6**</td><td>92.5**</td><td>70.4*</td></tr></table>
152
+
153
+ # 5 Experimental results
154
+
155
+ # 5.1 Main results
156
+
157
+ Results on NQ320K. In Table 1, we list the results on NQ320K. GENRET outperforms both the strong pre-trained dense retrieval model, GTR, and the previous best generative retrieval method, NCI, thereby establishing a new state-of-the-art on the NQ320K dataset. Furthermore, our results reveal that existing generative retrieval methods perform well on the seen test but lag behind dense retrieval methods on the unseen test. For example, NCI obtains an MRR $@ 1 0 0$ of 76.8 on the seen test, which is higher than the MRR $@ 1 0 0$ of 65.3 obtained by GTR-Base. However, on unseen test data, NCI performs worse than GTR-Base. In contrast, GENRET performs well on both seen and unseen test data. This result highlights the ability of GENRET to combine the advantages of both dense and generative retrieval by learning discrete docids with semantics through end-to-end optimization.
158
+
159
+ Results on MS MARCO. Table 2 presents the results on the MS MARCO dataset. GENRET outperforms generative retrieval methods such as Ultron and dense retrieval baselines such as ANCE and Sentence-T5. Furthermore, previous generative retrieval methods (e.g., GENRE, Ultron) utilizing metadata such as the title and URL, while exhibiting decent performance on the NQ320K dataset, underperform in comparison to dense retrieval and sparse retrieval methods on the MS MARCO dataset. This may be because the NQ320K dataset retrieves Wikipedia documents, where metadata like the title effectively capture the semantics of the document. In the case of the MS MARCO dataset, which is a web search dataset, the metadata often does not adequately characterize the documents, resulting in a decline in performance of the generative retrieval model. In contrast, GENRET learns to generate semantic docids that effectively enhance the generative retrieval model.
160
+
161
+ Results on BEIR. Table 3 lists the results of the baselines and GENRET on six datasets of BEIR. These datasets represent a diverse range of information retrieval scenarios. On average, GENRET outperforms strong baselines including BM25 and ST5 GPL, and achieves competitive results compared to previous-best sparse and dense retrieval methods. Additionally, GENRET demonstrates a significant improvement over the previous generative retrieval model GENRE that utilizes titles as docids. Furthermore, GENRE performs poorly on some datasets, such as BEIR-Covid and BEIRSciDocs. This may be because the titles of the documents in these datasets do not adequately capture their semantic content.
162
+
163
+ Table 2: Results on MS MARCO. The results of the methods marked with † are from our own re-implementation, other results are cited from the original paper or implemented using official code. The best results are indicated in boldface.
164
+
165
+ <table><tr><td>Method R@1 R@10 R@100 MRR</td></tr><tr><td>Sparse retrieval BM25 [32] 39.1 69.1 86.2 48.6</td></tr><tr><td>DocT5Query [24] 46.7 76.5 90.4 56.2</td></tr><tr><td>Dense retrieval ANCE [42] 45.6 75.7 89.6 55.6</td></tr><tr><td>Sentence-T5t [22] 41.8 75.4 91.2 52.8</td></tr><tr><td>Generative retrieval</td></tr><tr><td>GENRE+ [5] 35.6 57.6 79.1 42.3 40.0</td></tr><tr><td>Ultron-URL [46] 29.6 67.8 -</td></tr><tr><td>Ultron-PQ [46] 31.6 73.1 45.4 -</td></tr><tr><td>Ultron-Atomic [46] 32.8 74.1 46.9 =</td></tr><tr><td>Ours 47.9 79.8 91.6 58.1</td></tr></table>
166
+
167
+ Table 3: nDCG $@ 1 0$ results on BEIR. The results of the methods marked with † are from our own re-implementation, other results are cited from the original paper or implemented using official code. ST5 GPL denotes Sentence-T5 trained on GPL datasets [40].
168
+
169
+ <table><tr><td>Method</td><td>Arg Covid NFC SciF. SciD.FiQA Avg.</td></tr><tr><td>Sparse retrieval BM25 [32]</td><td>29.1 58.9 33.5 67.4 14.8 23.6 37.8</td></tr><tr><td>DocT5Query [24]34.9 71.3 32.8 67.5 16.2 29.1 41.9 Dense retrieval</td><td></td></tr><tr><td>ST5 GPL+ [22] 32.1 74.4 30.1 58.6 12.7 26.0 39.0 Contriever [11] 40.0 68.8 33.5 61.4 16.3 30.7 41.8</td><td></td></tr><tr><td>Generative retrieval</td><td></td></tr><tr><td>GENRE† [47]</td><td></td></tr><tr><td></td><td>42.514.7 20.0 42.36.8 11.6 30.0</td></tr><tr><td>Ours</td><td>34.3 71.8 31.6 63.9 14.9 30.2 41.1</td></tr></table>
170
+
171
+ # 5.2 Analytical experiments
172
+
173
+ We further conduct analytical experiments to study the effectiveness of the proposed method.
174
+
175
+ In Figure 3 (left), we plot the frequencies of docids at the first timestep of various learning methods. We label each method using a box with a docid and a diversity metric $d$ , which is calculated by: $\begin{array} { r } { d = 1 - \frac { 1 } { 2 n } \sum _ { j = 1 } ^ { K } | n _ { j } - n _ { u } | } \end{array}$ , where $\left| \cdot \right|$ represents the absolute value, $n$ denotes the total number of documents, $n _ { j }$ denotes the number of documents that have a docid $= j$ , and $\begin{array} { r } { n _ { u } = \frac { n } { K } } \end{array}$ is the expected number of documents per docid under the uniform distribution.
176
+
177
+ The results demonstrate the superiority of GENRET (represented by the yellow line) in terms of distribution uniformity. It uses all the potential docid $k = 5 1 2$ and achieves the highest diversity metric with a value of $d = 0 . 9 0$ . The method without docid reassignment also yields a relatively balanced distribution, with a diversity metric of $d = 0 . 7 7$ . However, the distribution of the method without diverse codebook initialization is highly uneven, which could be due to the fact that most of the randomly initialized codebook embeddings are not selected by the model during the initial training phase, leading to a lack of update and further selection in subsequent training. Additionally, the models without diverse clustering tend to converge to a trivial solution where all documents are assigned the same docid.
178
+
179
+ In Figure 3 (right), the results of two ablated variants are presented. First, GENRET w/o learning is a generative model that has been trained directly using the final output docid from GENRET, without utilizing the proposed learning scheme. Its retrieval performance is comparable to that of GENRET on seen test data; however, it is significantly lower on unseen test data. This variant demonstrates that the generative retrieval model jointly trained with auto-encoding objectives can represent documents more sensibly based on semantics. This could enhance performance on the less-optimized documents. Contrarily, the parameters obtained via cross-entropy loss on docid generation tasks are less effective in conveying the semantic information of documents. Secondly, GENRET w/ T5-Small uses a small model, and its performance is inferior to that of GENRET using T5-Base. However, the gap between the performance on seen and unseen test data is smaller, which could be attributed to the limited fitting capacity of the small model.
180
+
181
+ In Appendix C, we evaluate the proposed model’s capacity to retrieve new documents and find that it performs well in adapting to new documents compared to existing document tokenization approaches. Additionally, in Appendix D, we analyze the efficiency of various retrieval models in comparison to the various baselines in terms of memory usage, offline, and online latency, and show the advantages of the proposed model.
182
+
183
+ ![](images/8d43b60d1d641a27c2dc33c3ddce1775bab85babe1d7de668aae761986bb9b0a.jpg)
184
+ Figure 3: Left: Docid distribution on NQ320K. The id are sorted by the assigned frequency. Right: Ablation study on NQ320K.
185
+
186
+ # 5.3 Qualitative analysis
187
+
188
+ Figure 4 (left) illustrates the document content (title) and the corresponding docid generated by GENRET on the NQ320K dataset. We observe that documents with more similar docids tend to have more relevant content. For example, documents with docids starting with 338-173 are related to Email, such as Email marketing, Mail merge, and Email address, while documents with docids starting with 338 relate to information exchange methods (e.g., Business letter, US Postal Service, and Postage stamps), representing a more generalized semantics than Email alone.
189
+
190
+ Figure 4 (right) illustrates a word cloud of documents grouped by docid prefixes. It is evident that documents within the same group are semantically related. For example, major words for documents with the docid prefix 338 are mail and stamp. When a second-level docid 173 is added, the corresponding documents become more specifically related to email. With the addition of a third-level docid 1, the document group becomes specifically associated with email marketing (docid: 338-173-1). Similar patterns can be observed in the other three cases. The case study shows that there is a hierarchical semantic structure within the learned docids.
191
+
192
+ Figure 5 in Appendix E visualizes the codebook embedding and document embedding. We see that the codebook embedding appears to distribute uniformly within the document representation space, producing meaningful clusters when documents are categorized by docids. We also find that the uniformity of the embedding distribution decreases with increasing docid-length. This may be due to the fact that uniform segmentation is more challenging as the semantic granularity becomes finer.
193
+
194
+ ![](images/31a018db51d7a4c69de694908e3660a85aa65391c0870460ed5899119292e225.jpg)
195
+ Figure 4: Left: Document titles along with their corresponding docids. It is observed that documents with similar docids tend to have more relevant content. Right: Word cloud representing documents grouped by docid prefixes. This illustrates that different positions of the docid correspond to different levels of information, and the semantics within each cluster are closely related.
196
+
197
+ # 6 Related work
198
+
199
+ Sparse and dense retrieval. Traditional sparse retrieval calculates the document score using term matching metrics such as TF-IDF [31], query likelihood [16], or BM25 [32]. Sparse retrieval is widely used in practice due to its efficiency, but often suffers from the lexical mismatches [18]. Dense retrieval (DR) addresses this by presenting queries and documents in dense vectors and calculating their similarities with the inner product or cosine similarity [13]. Various techniques have been proposed to improve DR models, such as hard negative mining [42, 26], late interaction [14, 34], knowledge distillation [10, 19], and pre-training [30, 23, 11]. Despite their success, DR approaches have several limitations [5, 21]: (i) DR models employ an index-retrieval pipeline with a fixed search procedure (MIPS), making it difficult to optimize the model end-to-end [37, 41]. (ii) Training DR models relies on contrastive learning [13] to distinguish positives from negatives, which is inconsistent with large LMs training objectives [3] and fails to fully utilize the capabilities of pretrained LMs [1, 35].
200
+
201
+ Generative retrieval. Generative retrieval is gaining attention. It retrieves documents by generating their docid using a generative model like T5. Generative retrieval presents an end-to-end solution for document retrieval tasks [37, 21] and allows for better exploitation of the capabilities of large generative LMs [1]. Cao et al. [5] first propose an autoregressive entity retrieval model to retrieve documents by generating titles. Tay et al. [37] propose a differentiable search index (DSI) and represent the document as atomic id, naive string, or semantic string. Bevilacqua et al. [1] suggest using arbitrary spans of a document as docids. Additionally, multiple-stage pre-training [7, 46], query generation [41, 47, 46], contextualized embedding [17], and continual learning [20], have been explored in recent studies. Recently, Tang et al. [36] introduce a query-based docid and the rehearsal-based document indexing to improve DSI. However, existing generative retrieval models have a limitation in that they rely on fixed document tokenization to produce docids, which often fails to capture the semantic information of a document [37]. It is an open question how one should define the docids. To further capture document semantics in the docid, we propose document tokenization learning methods. The semantic docid is generated by the proposed discrete auto-encoding learning scheme in an end-to-end manner. Concurrently, Rajput et al. [28] propose a RQ-VAE module to produce semantic docids for generative recommender systems. As a comparison, our proposed method jointly models the tokenization and retrieval tasks with shared parameters to better align the model’s representation of the two tasks and are optimized in an end-to-end manner.
202
+
203
+ Discrete representation learning. Learning discrete representations using neural networks is an important research area in machine learning. For images, Rolfe [33] proposes the discrete variational autoencoder, and VQ-VAE [39] learns quantized representations via vector quantization. DallE [29] uses an autoregressive model to generate discrete image representation for text-to-image generation. Recently, representation learning has attracted considerable attention in NLP tasks, for tasks such as machine translation [48], dialogue generation [45], and text classification [12, 43]. For document retrieval, RepCONC [44] uses a discrete representation learning method based on constrained clustering for vector compression. We propose a document tokenization learning method for generative retrieval, which captures the autoregressive nature of docids by progressive training and enhances the diversity of docids by diverse clustering techniques.
204
+
205
+ # 7 Conclusions
206
+
207
+ This paper has proposed a document tokenization learning method for generative retrieval, named GENRET. The proposed method learns to tokenize documents into short discrete representations (i.e., docids) via a discrete auto-encoding approach, which ensures the semantics of the generated docids. A progressive training method and two diverse clustering techniques have been proposed to enhance the model’s training. Empirical results on various document retrieval datasets have demonstrated the effectiveness of the proposed method. Especially, GENRET achieves outperformance on unseen documents and can be well generalized to multiple retrieval tasks.
208
+
209
+ The limitations of this work include experiments only on moderately sized datasets like NQ320K. The employed data are in sufficient quantity to validate the effectiveness of the proposed method, but application to larger-scale data may require more model parameters and computational resources. Another aspect for improvement is the generalization of the model to unoptimized document collections in different types or domains, as compared to continuous embedding approaches. We recognize this as an important research question for generative retrieval but believe that addressing this is beyond the scope of this paper. In future work, we would like to extend the approach to large document collections. We also plan to explore generative pre-training for document tokenization using large-scale language models. Additionally, we intend to investigate the dynamic adaptation of docid prefixes for progressive training.
210
+
211
+ # Acknowledgements
212
+
213
+ This work was supported by the Natural Science Foundation of China (62272274, 61972234, 62072279, 62102234, 62202271), the Natural Science Foundation of Shandong Province (ZR2021QF129, ZR2022QF004), the Key Scientific and Technological Innovation Program of Shandong Province (2019JZZY010129), the Fundamental Research Funds of Shandong University, the China Scholarship Council under grant nr. 202206220085, the Hybrid Intelligence Center, a 10-year program funded by the Dutch Ministry of Education, Culture and Science through the Netherlands Organisation for Scientific Research, https://hybrid-intelligence-centre.nl, and project LESSEN with project number NWA.1389.20.183 of the research program NWA ORC 2020/21, which is (partly) financed by the Dutch Research Council (NWO). All content represents the opinion of the authors, which is not necessarily shared or endorsed by their respective employers and/or sponsors.
214
+
215
+ # References
216
+
217
+ [1] Michele Bevilacqua, Giuseppe Ottaviano, Patrick Lewis, Wen tau Yih, Sebastian Riedel, and Fabio Petroni. Autoregressive search engines: Generating substrings as document identifiers. In NeurIPS 2022, 2022.
218
+ [2] Paul S. Bradley, Kristin P. Bennett, and Ayhan Demiriz. Constrained k-means clustering. Microsoft Research, 2000.
219
+ [3] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, T. J. Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeff Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. In NeurIPS 2020, 2020.
220
+ [4] Daniel Fernando Campos, Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, Rangan Majumder, Li Deng, and Bhaskar Mitra. MS MARCO: A Human Generated MAchine Reading COmprehension Dataset. ArXiv, abs/1611.09268, 2016.
221
+ [5] Nicola De Cao, Gautier Izacard, Sebastian Riedel, and Fabio Petroni. Autoregressive entity retrieval. In ICLR 2021, 2021.
222
+ [6] Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. ArXiv, abs/2006.09882, 2020.
223
+ [7] Jiangui Chen, Ruqing Zhang, Jiafeng Guo, Yiqun Liu, Yixing Fan, and Xueqi Cheng. CorpusBrain: Pre-train a generative retrieval model for knowledge-intensive language tasks. In CIKM 2022, 2022.
224
+ [8] Marco Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. In NIPS 2013, 2013.
225
+ [9] Daniel Gillick, Alessandro Presta, and Gaurav Singh Tomar. End-to-end retrieval in continuous space. ArXiv, abs/1811.08008, 2018.
226
+ [10] Sebastian Hofstätter, Sheng-Chieh Lin, Jheng-Hong Yang, Jimmy J. Lin, and Allan Hanbury. Efficiently teaching an effective dense retriever with balanced topic aware sampling. In SIGIR 2021, 2021.
227
+ [11] Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, and Edouard Grave. Unsupervised dense information retrieval with contrastive learning. In TMLR, 2022.
228
+ [12] Shuning Jin, Sam Wiseman, Karl Stratos, and Karen Livescu. Discrete latent variable representations for low-resource text classification. In ACL 2020, 2020.
229
+
230
+ [13] Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Yu Wu, Sergey Edunov, ˘ Danqi Chen, and Wen tau Yih. Dense passage retrieval for open-domain question answering. In EMNLP 2020, 2020.
231
+
232
+ [14] Omar Khattab and Matei Zaharia. ColBERT: Efficient and effective passage search via contextualized late interaction over BERT. In SIGIR 2020, 2020.
233
+
234
+ [15] Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur P. Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc V. Le, and Slav Petrov. Natural questions: A benchmark for question answering research. TACL, 7:453–466, 2019.
235
+
236
+ [16] John Lafferty and ChengXiang Zhai. Document language models, query models, and risk minimization for information retrieval. In SIGIR 2001, 2001.
237
+
238
+ [17] Hyunji Lee, Jaeyoung Kim, Hoyeon Chang, Hanseok Oh, Sohee Yang, Vladimir Karpukhin, Yi Lu, and Minjoon Seo. Nonparametric decoding for generative retrieval. In Findings of ACL 2023, 2023.
239
+
240
+ [18] Jimmy Lin, Rodrigo Nogueira, and Andrew Yates. Pretrained Transformers for Text Ranking: BERT and Beyond. Springer Nature, 2022.
241
+
242
+ [19] Yuxiang Lu, Yiding Liu, Jiaxiang Liu, Yunsheng Shi, Zhengjie Huang, Shi Feng, Yu Sun, Hao Tian, Hua Wu, Shuaiqiang Wang, Dawei Yin, and Haifeng Wang. ERNIE-Search: Bridging cross-encoder with dual-encoder via self on-the-fly distillation for dense passage retrieval. ArXiv, abs/2205.09153, 2022.
243
+
244
+ [20] Sanket Vaibhav Mehta, Jai Gupta, Yi Tay, Mostafa Dehghani, Vinh Quang Tran, Jinfeng Rao, Marc-Alexander Najork, Emma Strubell, and Donald Metzler. $\mathrm { D S I + + }$ : Updating transformer memory with new documents. ArXiv, abs/2212.09744, 2022.
245
+
246
+ [21] Donald Metzler, Yi Tay, and Dara Bahri. Rethinking search: Making domain experts out of dilettantes. In SIGIR 2021, 2021.
247
+
248
+ [22] Jianmo Ni, Gustavo Hernández Ábrego, Noah Constant, Ji Ma, Keith B. Hall, Daniel Matthew Cer, and Yinfei Yang. Sentence-T5: Scalable sentence encoders from pre-trained text-to-text models. In Findings of ACL 2022, 2022.
249
+
250
+ [23] Jianmo Ni, Chen Qu, Jing Lu, Zhuyun Dai, Gustavo Hernández Ábrego, Ji Ma, Vincent Zhao, Yi Luan, Keith B. Hall, Ming-Wei Chang, and Yinfei Yang. Large dual encoders are generalizable retrievers. In EMNLP, 2022.
251
+
252
+ [24] Rodrigo Nogueira1 and Jimmy Lin. From doc2query to doctttttquery. https://cs. uwaterloo.ca/\~jimmylin/publications/Nogueira_Lin_2019_docTTTTTquery-v2. pdf, 2019.
253
+
254
+ [25] Fabio Petroni, Aleksandra Piktus, Angela Fan, Patrick Lewis, Majid Yazdani, Nicola De Cao, James Thorne, Yacine Jernite, Vassilis Plachouras, Tim Rocktaschel, and Sebastian Riedel. KILT: A benchmark for knowledge intensive language tasks. In NAACL 2021, 2021.
255
+
256
+ [26] Yingqi Qu, Yuchen Ding, Jing Liu, Kai Liu, Ruiyang Ren, Xin Zhao, Daxiang Dong, Hua Wu, and Haifeng Wang. RocketQA: An optimized training approach to dense passage retrieval for open-domain question answering. In NAACL 2021, 2021.
257
+
258
+ [27] Colin Raffel, Noam M. Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. JMLR, 2020.
259
+
260
+ [28] Shashank Rajput, Nikhil Mehta, Anima Singh, Raghunandan H. Keshavan, Trung Hieu Vu, Lukasz Heldt, Lichan Hong, Yi Tay, Vinh Q. Tran, Jonah Samost, Maciej Kula, Ed H. Chi, and Maheswaran Sathiamoorthy. Recommender systems with generative retrieval. In NeurIPS 2023, 2023.
261
+
262
+ [29] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In ICML 2020, 2020.
263
+ [30] Nils Reimers and Iryna Gurevych. Sentence-bert: Sentence embeddings using siamese bertnetworks. In EMNLP 2019, 2019.
264
+ [31] Stephen E. Robertson and Steve Walker. On relevance weights with little relevance information. In SIGIR 1997, 1997.
265
+ [32] Stephen E. Robertson and Hugo Zaragoza. The probabilistic relevance framework: BM25 and beyond. Found. Trends Inf. Retr., 2009.
266
+ [33] Jason Tyler Rolfe. Discrete variational autoencoders. In ICLR 2017, 2017.
267
+ [34] Keshav Santhanam, Omar Khattab, Jon Saad-Falcon, Christopher Potts, and Matei Zaharia. ColBERTv2: Effective and efficient retrieval via lightweight late interaction. In NAACL 2022, 2022.
268
+ [35] Weiwei Sun, Lingyong Yan, Xinyu Ma, Shuaiqiang Wang, Pengjie Ren, Zhumin Chen, Dawei Yin, and Zhaochun Ren. Is ChatGPT good at search? Investigating large language models as re-ranking agents. In EMNLP 2023, 2023.
269
+ [36] Yubao Tang, Ruqing Zhang, Jiangui Guo, Jiangui Chen, Zuowei Zhu, Shuaiqiang Wang, Dawei Yin, and Xueqi Cheng. Semantic-enhanced differentiable search index inspired by learning strategies. In SIGIR 2023, 2023.
270
+ [37] Yi Tay, Vinh Quang Tran, Mostafa Dehghani, Jianmo Ni, Dara Bahri, Harsh Mehta, Zhen Qin, Kai Hui, Zhe Zhao, Jai Gupta, Tal Schuster, William W. Cohen, and Donald Metzler. Transformer memory as a differentiable search index. In NeurIPS 2022, 2022.
271
+ [38] Nandan Thakur, Nils Reimers, Andreas Ruckl’e, Abhishek Srivastava, and Iryna Gurevych. Beir: A heterogenous benchmark for zero-shot evaluation of information retrieval models. In NeurIPS 2021, 2021.
272
+ [39] Aäron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. In NIPS 2017, 2017.
273
+ [40] Kexin Wang, Nandan Thakur, Nils Reimers, and Iryna Gurevych. GPL: Generative pseudo labeling for unsupervised domain adaptation of dense retrieval. In NAACL 2022, 2022.
274
+ [41] Yujing Wang, Ying Hou, Hong Wang, Ziming Miao, Shibin Wu, Hao Sun, Qi Chen, Yuqing Xia, Chengmin Chi, Guoshuai Zhao, Zheng Liu, Xing Xie, Hao Sun, Weiwei Deng, Qi Zhang, and Mao Yang. A neural corpus indexer for document retrieval. In NeurIPS 2022, 2022.
275
+ [42] Lee Xiong, Chenyan Xiong, Ye Li, Kwok-Fung Tang, Jialin Liu, Paul Bennett, Junaid Ahmed, and Arnold Overwijk. Approximate nearest neighbor negative contrastive learning for dense text retrieval. In ICLR 2021, 2021.
276
+ [43] Erxin Yu, Lan Du, Yuan Jin, Zhepei Wei, and Yi Chang. Learning semantic textual similarity via topic-informed discrete latent variables. In EMNLP 2022, 2022.
277
+ [44] Jingtao Zhan, Jiaxin Mao, Yiqun Liu, Jiafeng Guo, Min Zhang, and Shaoping Ma. Learning discrete representations via constrained clustering for effective and efficient dense retrieval. In WSDM 2022, 2022.
278
+ [45] Tiancheng Zhao, Kyusong Lee, and Maxine Eskénazi. Unsupervised discrete sentence representation learning for interpretable neural dialog generation. In ACL 2018, 2018.
279
+ [46] Yujia Zhou, Jing Yao, Zhicheng Dou, Ledell Yu Wu, Peitian Zhang, and Ji rong Wen. Ultron: An ultimate retriever on corpus with a model-based indexer. ArXiv, abs/2208.09257, 2022.
280
+ [47] Shengyao Zhuang, Houxing Ren, Linjun Shou, Jian Pei, Ming Gong, Guido Zuccon, and Daxin Jiang. Bridging the gap between indexing and retrieval for differentiable search index with query generation. ArXiv, abs/2206.10128, 2022.
281
+ [48] Łukasz Kaiser, Aurko Roy, Ashish Vaswani, Niki Parmar, Samy Bengio, Jakob Uszkoreit, and Noam M. Shazeer. Fast decoding in sequence models using discrete latent variables. In ICML 2018, 2018.
282
+
283
+ # A Datasets details
284
+
285
+ Table 4: Statistics of datasets used in our experiments. The three values split by / on # Test queries denote the number of queries in the full, seen subset, and unseen subset, respectively. In BEIR, all queries in the test set are unseen.
286
+
287
+ <table><tr><td>Dataset</td><td>#Docs</td><td># Test queries</td><td># Train pairs</td></tr><tr><td>NQ320K MS MARCO</td><td>323,569 5,187 /</td><td>109,739 7,830 / 6,075 /1,755 807 /4,380</td><td>307,373 366,235</td></tr><tr><td></td><td></td><td>1,406</td><td></td></tr><tr><td>BEIR-Arg BEIR-Covid</td><td>8,674</td><td>50</td><td></td></tr><tr><td>BEIR-NFC</td><td>171,332 3.633</td><td>323</td><td></td></tr><tr><td>BEIR-SciFact</td><td>5,183</td><td>300</td><td></td></tr><tr><td>BEIR-SciDocs</td><td>25,657</td><td>1,000</td><td></td></tr><tr><td>BEIR-FiQA</td><td></td><td></td><td></td></tr><tr><td></td><td>57,638</td><td>648</td><td></td></tr></table>
288
+
289
+ We conduct experiments on three document5 retrieval datasets: NQ320K, MS MARCO, and BEIR.
290
+
291
+ NQ320K. NQ320K is a popular dataset for evaluating generative retrieval models [37, 41]. It is based on the Natural Questions (NQ) dataset proposed by Google [15]. NQ320K consists of $3 2 0 \mathrm { k }$ query-document pairs, where the documents are gathered from Wikipedia pages, and the queries are natural language questions. We follow the evaluation setup in NCI [41] and further split the test set into two subsets: seen test, in which the annotated target documents of the queries are included in the training set; and unseen test, in which no labeled document is included in the training set.
292
+
293
+ Note that the NQ320K dataset we utilized has been pre-processed based on the NCI [41] and includes approximately 100k documents. This differs from the DSI approach [37], which processed a version of the NQ320K dataset containing about $2 0 0 \mathrm { k }$ documents. The distinction lies in the method used to remove duplicate documents. In our case, we eliminated duplicates by comparing document titles, whereas DSI employed URLs. For example, pages https://en.wikipedia.org//w/index. php?title $=$ Statue_of_Liberty&amp;oldid $\underset { . } { = }$ 804877528 and https://en.wikipedia.org/ /w/index.php?title $=$ Statue_of_Liberty&amp;oldid $\underset { . } { = }$ 834310497 are two versions of entity “Statue of Liberty”. DSI NQ320K treats them as separate documents, whereas our implementation considers them as a single document. We have found that the content of different versions of the same entity’s pages is usually almost identical, with only minor variations, often occurring in later parts of the document. Consequently, we believe that distinguishing between different versions of an entity is beyond the model’s capabilities, and that using different versions of the same entity as negative examples in training may hurt model performance.
294
+
295
+ MS MARCO. MS MARCO is a collection of queries and web pages from Bing search. To create the document collections, akin to NQ320k and following [46], we sample a subset of original documents by retaining the top-1 document for each query. We evaluate the models on the queries of the MS MARCO dev set and retrieval on the sampled document subset. We did not split the dev set into seen and unseen because $84 \%$ of the queries in the MS MARCO dev set are unseen.
296
+
297
+ BEIR. BEIR is a collection of datasets for heterogeneous retrieval tasks. In this paper, we evaluate the models on 6 BEIR datasets, which include distinct retrieval tasks and document collections from NQ and MS MARCO: (i) BEIR-Arg retrieves a counterargument to an argument; (ii) BEIRCovid retrieves scientific articles about the COVID-19 pandemic; (iii) BEIR-NFC retrieves medical documents from PubMed; (iv) BEIR-SciFact retrieves scientific papers for fact-checking; (v) BEIRSciDocs retrieves citations for scientific papers; (vi) BEIR-FiQA retrieves financial documents. All the queries in BEIR test set are unseen [38].
298
+
299
+ We summarize the statistics of above datasets in Table 4.
300
+
301
+ # B Baselines
302
+
303
+ The sparse retrieval baselines are as follows:
304
+
305
+ • BM25, uses the tf-idf feature to measure term weights; we use the implementation from http://pyserini.io/.
306
+ • DocT5Query, expands a document with possible queries predicted by a finetuned T5 with this document as the input.
307
+
308
+ The dense retrieval baselines are as follows:
309
+
310
+ • DPR [13], a dual-encoder model using the representation of the [CLS] token of BERT.
311
+ • ANCE [42], an asynchronously updated ANN indexer is utilized to mine hard negatives for training a RoBERTa-based dual-encoder model.
312
+ • Sentence-T5 [22], a dual-encoder model that uses T5 to produce continuous sentence embeddings. We reproduce Sentence-T5 (ST5 for short) on our datasets, the model is based on T5-Base EncDec model and is trained with in-batch negatives.
313
+ • GTR [23], a state-of-the-art dense retrieval model that pre-trains sentence-T5 on billions of paired data using contrastive learning.
314
+ • Contriever [11], a dual-encoder model pre-trained using unsupervised contrastive learning with independent cropping and inverse cloze task.
315
+
316
+ And the generative retrieval baselines are as follows:
317
+
318
+ GENRE [5], an autoregressive retrieval model that generates the document’s title. The original GENRE is trained on the KILT dataset [25] using BART, and we reproduce GENRE on our datasets using T5 for a fair comparison. For datasets without title, we use the first 32 tokens of the document as pseudo-title.
319
+ DSI [37], which represents documents using hierarchical K-means clustering results, and indexes documents using the first 32 tokens as pseudo-queries. As the original code is not open source, we reproduce DSI using T5-base and the docids of NCI [41].
320
+ • SEAL [1] uses arbitrary n-grams in documents as docids, and retrieves documents under the constraint of a pre-built FM-indexer. We refer to the results reported by Wang et al. [41].
321
+ • CGR-Contra [17], a title generation model with a contextualized vocabulary embedding and a contrastive learning loss.
322
+ DSI-QG [47], uses a query generation model to augment the document collection. We reproduce the DSI-QG results using T5 and our dataset.
323
+ NCI [41], uses a prefix-aware weight-adaptive decoder and various query generation strategies, including DocAsQuery and DocT5Query. In particular, NCI augments training data by generating 15 queries for each document.
324
+ • Ultron [46], uses a three-stage training pipeline and represents the document as three types of identifiers, including URL, PQ, and Atomic.
325
+
326
+ # C Performance on retrieving new documents
327
+
328
+ In this experiment, we investigate the impact of various document tokenization techniques on the ability of generative retrieval models to retrieve new documents. The generative models with different tokenization methods are trained on NQ320K data, excluding unseen documents, and are evaluated on NQ320K Unseen test set and BEIR-{Arg, NFC, SciDocs} datasets. For the baseline methods, which use rule-based document tokenization methods, the docids are generated for the target document collection using their respective tokenization techniques. In contrast, our proposed method uses a tokenization model to tokenize the documents in the target collection, producing the docids. However, our method may result in duplicate docids. In such cases, all corresponding documents are retrieved and shuffled in an arbitrary order. The results of this evaluation are summarized in Table 5.
329
+
330
+ Table 5: Zero-shot evaluation on retrieving new documents with different document tokenization methods. The second column indicates the type of docid, where BERT-HC denotes BERTHierarchical-Clustering [37], Prefix-HC denotes Prefix-aware BERT-Hierarchical-Clustering [41], and dAE denotes discrete auto-encoding.
331
+
332
+ <table><tr><td></td><td></td><td>NQ (R@1)</td><td colspan="3">BEIR (nDCG@ 10)</td></tr><tr><td>Method</td><td>Docid</td><td>Unseen</td><td>Arg</td><td>NFC</td><td>SciDocs</td></tr><tr><td>DSI-Naive† [37]</td><td>Naive String</td><td>0.0</td><td>0.1</td><td>1.0</td><td>0.1</td></tr><tr><td>DSI-Atomic† [37]</td><td>Atomic</td><td>0.0</td><td>0.2</td><td>0.8</td><td>0.1</td></tr><tr><td>GENRE† [5]</td><td>Title</td><td>6.0</td><td>0.0</td><td>2.4</td><td>0.6</td></tr><tr><td>DSIt [37]</td><td>BERT-HC</td><td>1.3</td><td>1.8</td><td>11.1</td><td>5.9</td></tr><tr><td>NCI [41]</td><td>Prefix-HC</td><td>15.5</td><td>0.9</td><td>4.3</td><td>1.2</td></tr><tr><td>Ours</td><td>dAE</td><td>34.2</td><td>12.1</td><td>12.1</td><td>12.3</td></tr></table>
333
+
334
+ Document tokenization methods that do not consider the semantic information of the documents, such as Naive String and Atomic, are ineffective in retrieving new documents without model updating. Methods that consider the semantic information of the documents, such as those based on title or BERT clustering, show some improvement. Our proposed document tokenization method significantly improves over these existing rule-based document tokenization methods. For instance, when the model trained on NQ – a factoid QA data based on Wikipedia documents – is applied to a distinct retrieval task on a different document collection, BEIR-SciDocs, a citation retrieval task on a collection of scientific articles, our proposed document tokenization model still showed promising results with an nDCG $@ 1 0$ of 12.3, which is comparable to those models trained on the target document collection. This suggests that our proposed method effectively encodes the semantic information of documents in the docid and leads to a better fit between the docid and the generative retrieval model.
335
+
336
+ Table 6: Efficiency analysis.
337
+
338
+ <table><tr><td>Method</td><td>Memory</td><td>Time ( (Offline)</td><td>Top-K</td><td>Time (Online)</td></tr><tr><td>ANCE</td><td>1160MB</td><td>145min</td><td>100</td><td>0.69s</td></tr><tr><td>GTR-Base</td><td>1430MB</td><td>140min</td><td>100</td><td>1.97s</td></tr><tr><td rowspan="2">GENRE</td><td rowspan="2">851MB</td><td rowspan="2">0min</td><td>100</td><td>1.41s</td></tr><tr><td>10</td><td>0.69s</td></tr><tr><td rowspan="2">DSI</td><td rowspan="2">851MB</td><td rowspan="2">310min</td><td>100</td><td>0.32s</td></tr><tr><td>10</td><td>0.21s</td></tr><tr><td rowspan="2">Ours</td><td rowspan="2">860MB</td><td rowspan="2">220min</td><td>100</td><td>0.16s</td></tr><tr><td>10</td><td>0.10s</td></tr></table>
339
+
340
+ # D Efficiency analysis
341
+
342
+ In Table 6, we compare GENRET with baseline models on MS MARCO (323,569 documents) in terms of memory footprint, offline indexing time (not including the time for neural network training), and online retrieval latency for different Top-K values. We have four observations: (i) The memory footprint of generative retrieval models (GENRE, DSI-QG, and the proposed model) is smaller than of dense and sparse retrieval methods. The memory footprint of generative retrieval models is only dependent on the model parameters, whereas dense and sparse retrieval methods require additional storage space for document embeddings, which increases linearly with the size of the document collection. (ii) DSI and GENRET take a longer time for offline indexing, as DSI involves encoding and clustering documents using BERT, while GENRET requires tokenizing documents using a tokenization model. Dense retrieval’s offline time consumption comes from document encoding; GENRE uses titles hence no offline computation. (iii) The online retrieval latency of the generative retrieval model is associated with the beam size (i.e., Top-K) and the length of the docid. GENRET utilizes diverse clustering to generate a shorter docid, resulting in improved online retrieval speed compared to DSI and GENRE.
343
+
344
+ # E Embedding visualization
345
+
346
+ ![](images/ae2f3029bc824157a42797d372c22ad43ae6c635a3a216a5bad894b75cf0d816.jpg)
347
+ Figure 5: t-SNE visualization of the codebook embedding and document embedding on the NQ320K dataset. The codebook embedding is uniformly scattered in the document representation space.
parse/dev/UKd6dpVGdu/UKd6dpVGdu_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/WcZUevpX3H3/WcZUevpX3H3.md ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PERSONALIZED NEURAL ARCHITECTURE SEARCH FOR FEDERATED LEARNING
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Federated Learning (FL) is a recently proposed learning paradigm for decentralized devices to collaboratively train a predictive model without exchanging private data. Existing FL frameworks, however, assume a one-size-fit-all model architecture to be collectively trained by local devices, which is determined prior to observing their data. Even with good engineering acumen, this often falls apart when local tasks are different and require diverging choices of architecture modelling to learn effectively. This motivates us to develop a novel personalized neural architecture search (NAS) algorithm for FL. Our algorithm, FEDPNAS, learns a base architecture that can be structurally personalized for quick adaptation to each local task. We empirically show that FEDPNAS significantly outperforms other NAS and FL benchmarks on several real-world datasets.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Federated Learning (FL) (McMahan et al., 2017) is a variant of distributed learning where the objective function can be decomposed into a linear combination of $M$ local objective functions. Each function depends on its private data hosted by a local client and a set of shared parameters $w$ ,
12
+
13
+ $$
14
+ \underset { w } { \mathrm { a r g m i n } } \ : \mathcal { L } ( w ) \equiv \underset { w } { \mathrm { a r g m i n } } \ : \sum _ { i = 1 } ^ { M } \mathcal { L } _ { i } ( w \mid \mathcal { D } _ { i } ) ,
15
+ $$
16
+
17
+ where $\mathcal { D } _ { i }$ denotes the $i ^ { \mathrm { t h } }$ local training dataset comprising input-output tuples $( x , y )$ . In a standard supervised learning task where the predictive model is modeled as a fixed deep neural network $\psi$ with learnable weights $w$ , let $\ell ( x , y )$ denote the loss incurred by predicting $\psi ( x ; w )$ when the true output is $y$ . The expected loss of $\psi ( x ; w )$ on $\mathcal { D } _ { i }$ is given as
18
+
19
+ $$
20
+ \begin{array} { r l r } { \mathcal { L } _ { i } ( w \mid \mathcal { D } _ { i } ) } & { = } & { \mathbb { E } _ { ( x , y ) \sim \mathcal { D } _ { i } } \Big [ \ell ( x , y ; \psi ) \Big ] ~ . } \end{array}
21
+ $$
22
+
23
+ This is not applicable to scenarios where local models are expected to solve different tasks which are similar in broad sense yet diverge in finer details. For example, consider the task of recognizing the outcome of a coin flip given images collected by two clients: one capture the coin from above, the other from below. This setting implies that when the same input image is provided by both clients, the correct classifications must be the opposite of one another. However, since existing FL methods converge on a single model architecture and weight, there can only be one predictive outcome which cannot satisfy both tasks.
24
+
25
+ To relax this constraint, the recent work of Fallah et al. (2020) extends FL by incorporating ideas from meta learning (Finn et al., 2017) which results in a new framework of personalized FL. The new framework can accommodate for such task heterogeneity but still requires all client models to agree on a single architecture beforehand, which is sub-optimal. To address this shortcoming, one naive idea is to adopt existing ideas in Neural Architecture Search (NAS) via Reinforcement Learning (Zoph and Le, 2016; Pham et al., 2018) which act as an outer loop to the existing FL routine.
26
+
27
+ However, this simple approach does not allow client models to adapt to local tasks on an architecture level and is often not preferred due to the cost of repeated FL training. This paper proposes a novel personalized NAS algorithm for federated learning, which generalizes ideas in respective areas of NAS (Zoph and Le, 2016; Pham et al., 2018) originally developed for single-task scenarios, and
28
+
29
+ FL (Fallah et al., 2020) under a unified len of federated personalized neural architecture search (FEDPNAS).
30
+
31
+ In particular, to customize the model architecture for each task in the FL workflow, FEDPNAS first represents the model architecture for each task as a sub-network sampled from a large, overparameterized network. The sampling distribution is (collaboratively) learned along with the parameters of the sampled network via a generalization of the recently proposed Discrete Stochastic NAS (DSNAS) method (Hu et al., 2020). Unlike DSNAS, which lacks the ability to customize architecture for individual tasks, our generalized FEDPNAS incorporates model personalization on an architecture level. Our contributions include:
32
+
33
+ 1. A novel architecture that factorizes into a base component (shared across tasks) and a personalizable component, which respectively capture the task-agnostic and task-specific information (Section 3.2).
34
+
35
+ 2. A context-aware sampling distribution conditioned on specific task instance, which captures taskspecific information and naturally incorporates personalization into architecture search (Section 3.4).
36
+
37
+ 3. An FL algorithm that optimizes for a common architecture, followed by a personalization phase where each client subsequently adapts only the personalized component to fit its own task via finetuning with local data (Section 3.1). To ensure that the common architecture distribution converges at a vantage point that is relevant and beneficial to all clients, we generalize the vanilla FL objective in Eq. equation 1 such that local gradient steps directly optimize for expected improvement resulting from future fine-tuning (Section 3.3).
38
+
39
+ 4. A theoretical perspective on our FL objective (Section 3.5 and thorough empirical analysis showing significant performance gain compared to state-of-the-art FL and NAS methods (Section 4).
40
+
41
+ # 2 RELATED WORKS
42
+
43
+ # 2.1 TWO-STAGE NEURAL ARCHITECTURE SEARCH
44
+
45
+ Most existing NAS frameworks separately optimize for the optimal architecture and its parameters in two stages: searching and evaluation. The former stage usually employs evolutionary-based strategies (Floreano et al., 2008; Real et al., 2019), Bayesian optimization surrogates (Bergstra et al., 2013; Hu et al., 2018) or Reinforcement Learning controllers (Baker et al., 2016; Zoph and Le, 2016; Pham et al., 2018) to propose candidate architectures based on random mutations and/or observed experience; while the latter optimizes the parameters of these architectures given task data and provide feedback to improve the search agent. Naturally, an extension of such methods to the FL setting is through distributing the evaluation workload over many clients, which does not require exposing private data. In practice, however, two-stage federated NAS frameworks are generally not suitable for the personalized FL setting for two reasons: (a) the clients often lack the computational capacity to repeatedly optimize the parameters for many candidate architectures; and (b) the clients have to converge on a single architecture proposed by the central search agent.
46
+
47
+ # 2.2 DISCRETE STOCHASTIC NEURAL ARCHITECTURE SEARCH
48
+
49
+ Discrete stochastic neural architecture search (DSNAS) (Hu et al., 2020) addresses the computational issue of two-stage NAS by jointly optimizing the optimal architecture and its weight in an end-to-end fashion, which allows users to continually train a single network on demand over time as opposed to performing full parameter optimization for every candidate until a good architecture is discovered.
50
+
51
+ The main idea of DSNAS is to combine weight training for an over-parameterized master architecture with discrete computational path sampling. DSNAS parameterizes the master architecture as a stack of modular cells: $\psi ( x ) \bar { = } \psi _ { C } \circ \bar { \psi } _ { C - 1 } \cdot \cdot \cdot \circ \psi _ { 1 } ( \bar { x } ) ^ { 1 }$ , where $x$ is an arbitrary input, $C$ is the number of cells, $\psi _ { t }$ denotes the $t ^ { \mathrm { t h } }$ cell in the stack, and $\circ$ denotes the compositional operator. The inner computation of $\psi _ { t }$ is in turn characterized by a directed acyclic graph (DAG) with $V$ nodes $\{ v _ { i } \} _ { i = 1 } ^ { | V | }$ , where each node represents some intermediate feature map. For each directed edge $( v _ { i } , v _ { j } )$
52
+
53
+ ![](images/718e70d9fa976c50deca97062d523901e363ff96a3953e515fd8e35fb90486f0.jpg)
54
+ Figure 1: Our proposed method FEDPNAS consists of (1) a federated learning phase, where each client updates both the base component $( \psi ^ { b } )$ and the personalized component $( \psi _ { p } )$ the architecture using the FEDPNAS update (Section 3.3) and sends its parameters to the central server for aggregation; and (2) a fine-tune phase, where each client updates only the personalized component of the architecture using standard gradient update.
55
+
56
+ there is an associated list of $D$ possible network operations $\mathbf O _ { i j } = \left[ o _ { i j } ^ { 1 } , o _ { i j } ^ { 2 } \ldots o _ { i j } ^ { D } \right] ^ { 2 }$ where each operainput on w $o _ { i j } ^ { k }$ rms ). W $v _ { i }$ to rec $v _ { j }$ . Here, ively de $v _ { 1 }$ corresponds to the oe intermediate nodes $\psi _ { t - 1 }$ (orhere $x$ $t = 1$ $\begin{array} { r } { v _ { j } = \sum _ { i = 1 } ^ { j - 1 } \mathbf { Z } _ { i j } ^ { \top } \mathbf { O } _ { i j } ( v _ { i } ) } \end{array}$ distribution learnable. E $\mathbf { O } _ { i j } ( v _ { i } ) \triangleq \big [ o _ { i j } ^ { 1 } ( v _ { i } ) , o _ { i j } ^ { 2 } ( v _ { i } ) \dots o _ { i j } ^ { D } ( v _ { i } ) \big ]$ $p ( \mathbf { Z } \mid \mathbf { \pi } \mathbf { \Pi } \mathbf { \Pi } )$ where the event probabi learning the distribution and $\mathbf { Z } _ { i j }$ is a one-hot vector sampled from the categorical $\mathbf { H } = \{ \pi _ { 1 } , \pi _ { 2 } , . . . , \pi _ { D } \mid \sum _ { i = 1 } ^ { D } \pi _ { i } = 1 \}$ ares or $p ( \mathbf { Z } )$
57
+ sub-graphs of the original DAG that correspond to high-performing, compact architecture from the over-parameterized master network. Sampling discrete random variables from $p ( \mathbf { Z } )$ , however, does not result in a gradient amenable to back-propagation. To sidestep this issue, DSNAS adopts the straight-through Gumbel-softmax trick (Jang et al., 2016), which re-parameterizes the $k ^ { \mathrm { t h } }$ index of the one-hot variable as $\mathbf { Z } _ { i j } [ k ] = \mathbb { I } \left( k \triangleq { \arg \operatorname* { m a x } _ { t } } \Big [ g _ { t } + \log \pi _ { t } \Big ] \right)$ , where $g _ { t } \sim \mathrm { G u m b e l } ( 0 , 1 )$ . While this forward computation does not have a gradient by itself, we can estimate the gradient through a proxy during the backward pass:
58
+
59
+ $$
60
+ \nabla { \mathbf Z } _ { i j } [ k ] ~ \simeq ~ \nabla \tilde { \mathbf Z } _ { i j } [ k ] ~ \triangleq ~ \nabla \left( \frac { \exp \big ( \big ( g _ { k } + \log \pi _ { k } \big ) / \tau \big ) } { \sum _ { t = 1 } ^ { D } \exp \big ( \big ( g _ { t } + \log \pi _ { t } \big ) / \tau \big ) } \right)
61
+ $$
62
+
63
+ which is unbiased when converged as the temperature $\tau$ is steadily annealed to 0 (Jang et al., 2016). This formulation, however, is not easily extended to the FL setting, especially when local tasks are not homogeneous. The key challenges in doing so are described in Section 3, together with our proposed approaches.
64
+
65
+ # 3 PERSONALIZED NAS FOR FEDERATED LEARNING
66
+
67
+ # 3.1 FEDERATED LEARNING OF DSNAS
68
+
69
+ Let W denote the concatenated weights of all network operations in the network architecture. The set up above of DSNAS (Jang et al., 2016) is then naïvely extendable to a $\mathrm { F L }$ setting via the following objective formulation:
70
+
71
+ $$
72
+ \underset { \mathbf { W } , \mathbf { \Pi } } { \arg \operatorname* { m i n } } \mathcal { L } ( \mathbf { W } , \mathbf { \Pi } \mathbf { I } ) \equiv \underset { \mathbf { W } , \mathbf { \Pi } \mathbf { \Pi } } { \arg \operatorname* { m i n } } \frac { 1 } { M } \sum _ { i = 1 } ^ { M } \mathcal { L } _ { i } ( \mathbf { W } , \mathbf { \Pi } \mathbf { I } \mid \mathcal { D } _ { i } ) .
73
+ $$
74
+
75
+ McMahan et al. (2017) optimizes this objective by alternating between (a) central agent broadcasting aggregated weights to local clients and (b) local clients sending gradient descent updated weights (given local data) to the central agent for aggregation. This, however, implies that after the last central aggregation step, all clients will follow the same architecture distribution induced by the final broadcasted copy of W and Π. As previously argued, this is not optimal in a heterogenous task setting which requires task-specific adaptation for local clients to achieve good performance.
76
+
77
+ Furthermore, having the same sampling distribution $p ( \mathbf { Z } )$ regardless of context (i.e., feature maps received as cell input) limits the architecture discovery to those that perform reasonably on average over the entire dataset. However, we remark that restricting the architecture to be the same for every input samples is unnecessary and undermines the expressiveness of an over-parameterized search space. On the other hand, letting the architecture be determined on a per-sample basis makes better use of the search space and potentially improves the predictive performance.
78
+
79
+ The focus of this work is therefore to incorporate both task-wise and context-wise personalization to federated neural architecture search in multitask scenarios, which is achieved through our proposed algorithm FEDPNAS. In general, FEDPNAS functions similarly to the vanilla FEDDSNAS algorithm described above, with an addition of a fine-tuning phase at each local client after the FL phase to adapt the aggregated common model for local task data, as shown in Fig. 1. To make this work, however, we need to address the following key challenges:
80
+
81
+ C1. First, as previously argued in Section 1, tasks across federated clients tend to share similarities in broad sense, and diverge in finer details. A good federated personalization search space, therefore, need to capture this fundamental observation through design and appropriate resource distribution. We address this challenge in Section 3.2.
82
+
83
+ C2. Second, a major advantage of having an over-parameterized architecture search space is the flexibility of having specific computation paths for different samples, which is not exploited by DSNAS as reflected in its choice of context-independent sampling distribution $p ( \mathbf { Z } )$ . To address this, Section 3.4 proposes a novel parameterization of $p ( \mathbf { Z } )$ to incorporate context information into operator sampling.
84
+
85
+ C3. Last, while the fine-tuning phase is designed to incorporate task-personalization, there is no guarantee that the common model can be quickly adapted to client tasks (Fallah et al., 2020). The common model may end up in a localization that favors one client over another, which makes it difficult for the latter to fine-tune. To address this concern, Section 3.3 proposes a new personalized federated NAS objective inspired by Finn et al. (2017) to optimize the common model in anticipation of further fine-tuning by the client models.
86
+
87
+ # 3.2 PERSONALIZABLE ARCHITECTURE SEARCH SPACE
88
+
89
+ Similar to DSNAS (Hu et al., 2020), our framework adopts a cell-based representation (Section 2.2) to trade-off search space expressiveness for efficiency, which is extremely suitable for FL where clients tend to have low-end computational capacity. Unlike the original design which assumes similar role for every cell in the architecture stack (i.e., as reflected by their choice of fully factorizable path sampling distribution $p ( \mathbf { Z } ) ,$ , we instead split our cell stack into two components with separate metaroles catering to the ftask: (a) a base stack $\psi _ { \mathrm { b } } = \{ \dot { \psi } _ { 1 } ^ { b } , \psi _ { 2 } ^ { b } \cdot \hdots \psi _ { C _ { b } } ^ { b } \}$ which aims to capture the broad commonalities of data samples across client tasks; and (b) personalized stack $\psi _ { \mathrm { { p } } } ~ = ~ \{ \psi _ { 1 } ^ { p } , \psi _ { 2 } ^ { p } \ldots \psi _ { C _ { p } } ^ { p } \}$ which will be fine-tuned with local data to capture task-specific details.
90
+
91
+ ![](images/3116f74b935bbe36c806df305e40cbbc96cf386169136d98b85b7351797e33ce.jpg)
92
+ Figure 2: Feature mapping down the component stacks of our architecture space. Every base cell takes as inputs (a) the outputs from its immediate predecessor and (b) the one before it through a skip-ahead connection. On the other hand, every personalization cell takes as input only the output from the previous cell.
93
+
94
+ We explain the main difference between these components to account for different level of expressiveness requirements below:
95
+
96
+ Base stack. Every cell $\psi _ { t } ^ { b }$ in the base stack takes as inputs the outputs of its previous two cells $\psi _ { t - 1 } ^ { b }$ and $\psi _ { t - 2 } ^ { b }$ (replaced with raw input $x$ when necessary for $t \leq 2$ ). The output of the skip-ahead cell $\psi _ { t - 2 } ^ { b }$ is additionally passed through a $1 \times 1$ convolution layer as a cost-effective way to control the number of channels. Additionally, the operators available to the base cell include large convolution layers with size $5 \times 5$ and $7 \times 7$ . To compensate for the growing number of channels, we periodically employ a reduction convolution (with stride larger than 1) similar to DSNAS (Hu et al., 2020) to reduce the feature dimension down the stack.
97
+
98
+ Personalized stack. As opposed to the design of the base cells above, every cell $\psi _ { t } ^ { p }$ in the personalized stack has minimal expressiveness. That is, $\psi _ { t } ^ { p }$ excludes large operators and only takes as input the output of its immediate predecessor $\psi _ { t - 1 } ^ { p }$ (or $\dot { \psi } _ { C _ { b } } ^ { b }$ when $t = 1$ ). There are two reasons for this choice. First, as the fine-tuning phase has access to fewer data samples than the federated phase, having a more compact fine-tuning space helps to improve the rate of convergence. Second, as we will discuss in Section 3.4 below, our personalized FL objective requires the Hessian of the personalized parameters, which is computationally expensive. As such, we only restrict the personalization to happen on the more compact personalized stack.
99
+
100
+ # 3.3 PERSONALIZED FEDERATED LEARNING OBJECTIVE
101
+
102
+ Unlike FEDAVERAGING (McMahan et al., 2017), which assumes the clients will follow the consensus base model obtained after the federated phase, FEDPNAS expects clients to further personalize the base model with local task data. That said, while the base model is trained to work well in the expected sense over the task distribution, there is no guarantee that it is a good initial point for every client model to improve upon via fine-tuning. To address this, we adopt the concept of training in anticipation of future adaptation introduced by MAML (Finn et al., 2017). That is, during client update, instead of optimizing the loss with respect to the same consensus weight, each client will instead optimize the weight perturbed by a small gradient step in the fine-tuning direction.
103
+
104
+ # Algorithm 1 FEDPNAS - FEDERATED PHASE
105
+
106
+ 1: CENTRALAGGREGATION:
107
+ 2: $\theta _ { 0 } \gets$ INITIALIZEPARAMETER
108
+ 3: for $t = 1 , 2 \dots T _ { s }$ do
109
+ 4: for $k = 1 , 2 \dots M$ in parallel do
110
+ 5: $\theta _ { t } ^ { k } \gets \mathrm { C L I E N T U P D A T E } ( k , \theta _ { t - 1 } )$
111
+ $\begin{array} { r } { \theta _ { t } \sum _ { k = 1 } ^ { M } \frac { 1 } { M } \theta _ { t } ^ { k } } \end{array}$
112
+ 7: CLIENTUPDATE $( k , \theta )$ :
113
+ 8: for $t = 1 , 2 \dots T _ { \mathrm { c } }$ do
114
+ 9: for batch $( x , y ) \in \mathcal { D } _ { k }$ do
115
+ 10: $\mathcal { L } _ { k }$ $\mathrm { , } \nabla \mathcal { L } _ { k } \gets \mathrm { E v A L } ( x , y ; \theta _ { b } , \theta _ { p } )$
116
+ 11: $ { \widetilde { \theta } } _ { p } \gets { \mathrm { G R A D U P D A T E } } \big ( \nabla _ { { \widetilde { \theta } } _ { p } } \mathcal { L } _ { k } \big )$
117
+ 12: $\tilde { \mathcal { L } } _ { k } , \nabla \tilde { \mathcal { L } } _ { k } \gets \mathrm { E v A L } ( x , y ; \theta _ { b } , \tilde { \theta } _ { p } )$
118
+ 13: $\nabla _ { \boldsymbol { \theta } _ { p } } \tilde { \mathcal { L } } _ { k } \gets \mathrm { E Q } . \mathrm { 5 }$
119
+ 14: θb, θp ← GRADUPDATE(∇θb,θpL˜k)
120
+ 15: return $\theta$ to central server
121
+
122
+ # Algorithm 2 FEDPNAS - EVAL
123
+
124
+ 1: Input: x, y, θ
125
+ 2: SKIP, PREV ← x, x
126
+ 3: W,Π ← θ
127
+ 4: for CELL $\psi \in \psi$ do
128
+ 5: Z ← SAMPLEOPS $( x , { \mathrm { P R E V } } ; \mathbf { I I } )$
129
+ 6: ψ ← EXTRACTCHILDNET $( \mathbf { Z } , \mathbf { W } )$
130
+ 7: if $\psi \in \psi _ { b }$ then
131
+ 8: OUTPUT $ \psi ( \mathrm { P R E V } , \mathrm { S K I P } )$
132
+ 9: else if $\psi \in \psi _ { p }$ then
133
+ 10: $\mathrm { O U T P U T } \psi ( \mathrm { P R E V } )$
134
+ 11: $\mathbf { S K I P } \mathbf { P R E V }$
135
+ 12: PREV $\gets$ OUTPUT
136
+ 13: $\mathcal { L } \gets \mathrm { L o s s } ( \mathbf { O u T P U T } , y )$
137
+ 14: $\nabla { \mathcal { L } } \gets \mathbf { B A C K P R O P } ( { \mathcal { L } } )$
138
+ 15: return L, ∇L
139
+
140
+ For simplicity, let $\theta = \{ \theta _ { b } , \theta _ { p } \}$ respectively denote all trainable parameters of the base stack and the personalized stack, i.e., $\partial _ { b } = \mathbf { \bar { \{ W } } _ { b } , \mathbf { \bar { \Pi } } _ { b } \} , \boldsymbol { \hat { \theta _ { p } } } = \{ \mathbf { W } _ { p } , \mathbf { \Pi } _ { \Pi _ { p } } \}$ . The personalized $\mathrm { F L }$ objective at client $i$ is then given by $\tilde { \mathcal { L } } _ { i } ( \theta _ { b } , \theta _ { p } ) \triangleq \mathcal { L } _ { i } ( \theta _ { b } , \tilde { \theta } _ { p } )$ where $\tilde { \theta } _ { p } \triangleq \tilde { \theta } _ { p } - \eta \nabla _ { \theta _ { p } } \mathcal { L } _ { i } ( \theta _ { b } , \theta _ { p } )$ adjusts the parameters of the personalized component to account for a small fine-tuning gradient step. The adjusted local loss only depends on the respective client data and is amenable to federated learning. The local update gradient, however, involves a Hessian term whose computation is expensive to repeat over many epochs. To circumvent this problem, we use the first-order Taylor approximation to estimate the Hessian term by the outer product of Jacobian, which results in a gradient that requires exactly two forward/backward passes to compute:
141
+
142
+ $$
143
+ \begin{array} { r c l } { \nabla _ { \theta _ { p } } \tilde { \mathcal { L } } _ { i } } & { = } & { \left( \nabla _ { \theta _ { p } } \tilde { \theta } _ { p } \right) \left( \nabla _ { \tilde { \theta } _ { p } } \tilde { \mathcal { L } } _ { i } \right) } \\ & { = } & { \left( \mathbf { I } - \eta \nabla _ { \theta _ { p } } ^ { 2 } \mathcal { L } _ { i } \right) \left( \nabla _ { \tilde { \theta } _ { p } } \tilde { \mathcal { L } } _ { i } \right) } \\ & { \simeq } & { \left( \mathbf { I } - \eta \nabla _ { \theta _ { p } } ^ { \top } \mathcal { L } _ { i } \nabla _ { \theta _ { p } } \mathcal { L } _ { i } \right) \left( \nabla _ { \tilde { \theta } _ { p } } \tilde { \mathcal { L } } _ { i } \right) } \end{array}
144
+ $$
145
+
146
+ where $\mathcal { L } _ { i }$ and $\tilde { \mathcal { L } } _ { i }$ are short-hands for $\mathcal { L } _ { i } ( \theta _ { b } , \theta _ { p } )$ and $\tilde { \mathcal { L } } _ { i } ( \theta _ { b } , \theta _ { p } )$ respectively. The FL phase of our FEDPNAS framework is detailed in Alg. 1. An instance of FEDPNAS’s forward and backward pass which sequentially unrolls down the component stacks, alternating between sampling and evaluation, is in turn given in Alg. 2.
147
+
148
+ # 3.4 CONTEXT-AWARE OPERATOR SAMPLER
149
+
150
+ The choice of a fully factorizable sampling distribution $p ( \mathbf { Z } )$ in DSNAS follows that of SNAS (Xie et al., 2018), which argues that the Markov assumption for $p ( \mathbf { Z } )$ is not necessary because NAS has fully delayed rewards in a deterministic environment. However, this generally only holds for two-stage NAS (Section 2.1) and does not apply to end-to-end frameworks such as SNAS and DSNAS. We instead to take advantage of the over-parameterized architecture via factorizing the conditional $p ( \mathbf { Z } \mid x )$ , which takes into account the temporal dependency of structural decisions:
151
+
152
+ $$
153
+ \begin{array} { l l l } { { p ( { \bf Z } \mid x ) } } & { { = } } & { { \displaystyle p ( { \bf Z } _ { 1 } \mid x ) \prod _ { t = 2 } ^ { C } p ( { \bf Z } _ { t } \mid { \bf Z } _ { t - 1 } \dots { \bf Z } _ { 1 } , x ) } } \\ { { } } & { { } } & { { } } \\ { { \displaystyle } } & { { \simeq } } & { { \displaystyle p ( { \bf Z } _ { 1 } \mid x ) \prod _ { t = 2 } ^ { C } p ( { \bf Z } _ { t } \mid v _ { 1 } ^ { t } , x ) } } \\ { { } } & { { } } & { { } } \\ { { \displaystyle } } & { { = } } & { { \displaystyle p ( { \bf Z } _ { 1 } \mid x ) \prod _ { t = 2 } ^ { C } \prod _ { ( i , j ) } p ( { \bf Z } _ { i j } ^ { t } \mid v _ { 1 } ^ { t } , x ) , } } \end{array}
154
+ $$
155
+
156
+ where $\mathbf { Z } _ { t }$ , $\mathbf { Z } _ { i j } ^ { t }$ and $v _ { 1 } ^ { t }$ respectively denote all the samples, the sample at edge $( i , j )$ and the input at cell $\psi _ { t }$ . We have also assumed a single stack setting since the parameterization of $p ( \mathbf { Z } )$ does not differ between base and personalized cells.
157
+
158
+ To reduce computational complexity, instead of conditioning the samples of subsequent cells on previous $\mathbf { Z }$ samples, we approximate $p ( \mathbf { Z } _ { t } \mid \mathbf { Z } _ { t - 1 } \ldots \mathbf { Z } _ { 1 } , x ) \bumpeq p ( \mathbf { Z } _ { t } \mid v _ { 1 } ^ { t } , x )$ by the assumption that the cell contents are conditionally independent given the immediate cell input and the original input. Finally, we assume that $p ( \mathbf { Z } _ { t } \mid v _ { 1 } ^ { t } , x )$ is fully factorizable across edges in the same cell and parameterize $p ( \mathbf { Z } _ { i j } ^ { t } \mid v _ { 1 } ^ { t } , x ) = \phi ^ { ( i , j ) } ( v _ { 1 } ^ { t } , x )$ where $\phi$ is a deep classification network whose output dimension equal the number of edges in cell $\psi _ { t }$ . Samples of $\mathbf { Z } _ { i j } ^ { t }$ can then be generated using the straight-through Gumbel-softmax reparameterization similar to Jang et al. (2016).
159
+
160
+ # 3.5 THEORETICAL CONNECTION TO STANDARD GRADIENT UPDATE
161
+
162
+ Finally, we analyze the connection of our gradient update framework to the standard gradient update, and explain why it is critical in achieving a vantage point that improves average objective value without compromising any local objective. First, we note that the gradient update Eq. 5 in Section 3.3 at the $t$ -th iteration can be written as:
163
+
164
+ $$
165
+ \begin{array} { r c l } { \displaystyle \theta _ { p } ^ { t + 1 } } & { = } & { \displaystyle \theta _ { p } ^ { t } - \frac { \eta _ { 2 } } { M } \sum _ { i = 1 } ^ { M } \nabla _ { \theta _ { p } } \mathcal { L } _ { i } \big ( \theta _ { b } ^ { t } , \tilde { \theta } _ { p , i } ^ { t } \big ) + \frac { \eta _ { 1 } \eta _ { 2 } } { M } \sum _ { i = 1 } ^ { M } \alpha _ { i } \nabla _ { \theta _ { p } } \mathcal { L } _ { i } \big ( \theta _ { b } ^ { t } , \theta _ { p } ^ { t } \big ) , } \\ { \displaystyle \theta _ { b } ^ { t + 1 } } & { = } & { \displaystyle \theta _ { b } ^ { t } - \frac { \eta _ { 2 } } { M } \sum _ { i = 1 } ^ { M } \nabla _ { \theta _ { b } } \mathcal { L } _ { i } \big ( \theta _ { b } ^ { t } , \tilde { \theta } _ { p , i } ^ { t } \big ) , } \end{array}
166
+ $$
167
+
168
+ where $\tilde { \theta } _ { p , i } ^ { t }$ denotes the $i$ -th local personalized parameters; $\eta _ { 1 }$ and $\eta _ { 2 }$ are two separate learning rates and $\boldsymbol { \alpha } _ { i } \triangleq \nabla _ { \boldsymbol { \theta } _ { p } } ^ { \intercal } \mathcal { L } ( \boldsymbol { \theta } _ { b } ^ { t } , \boldsymbol { \theta } _ { p , i } ^ { t } ) \nabla _ { \boldsymbol { \theta } _ { p , i } } \mathcal { L } ( \boldsymbol { \theta } _ { b } ^ { t } , \tilde { \boldsymbol { \theta } } _ { p , i } ^ { t } )$ (See Appendix A for detailed derivation). This implies that our federated personalize update corresponds to a federated update scheme with three gradient steps: (1) $\theta _ { p }$ takes a local gradient (w.r.t. locally updated parameters) step of size $\eta _ { 1 }$ ; (2) Both $\theta _ { b }$ and $\theta _ { p }$ take a federated gradient (w.r.t. server-wide parameters averaging) step of size $\eta _ { 2 }$ ; $( 3 ) \theta _ { p }$ takes a weighted federated gradient step of size $\eta _ { 1 } \eta _ { 2 }$ , where the weight of client $i$ is given by $\alpha _ { i }$ .
169
+
170
+ Explicitly, Step 1 and 2 together comprise a special instance of FEDAVERAGING (McMahan et al., 2017), where $\theta _ { b }$ take one gradient step for every two gradient steps taken by $\theta _ { p }$ . Step 3, on the other hand, takes the information of the two gradient steps of $\theta _ { p }$ and adjust the magnitude of the local gradient step (whose direction is given by $\nabla _ { \theta _ { p } } \mathcal { L } _ { i } ( \theta _ { b } ^ { t } , \bar { \theta } _ { p } ^ { t } ) )$ accordingly to trade-off between preserving local objective value and improving average objective value. We then theorize the scenario in which such an update is beneficial and state the following assumption to lay the foundation of our analysis:
171
+
172
+ Assumption 1 For a fixed instance of $\theta _ { b }$ , let $\tilde { \theta } _ { p , i } = \theta _ { p , i } - \eta \nabla _ { \theta _ { p } } \mathcal { L } ( \theta _ { b } , \theta _ { p , i } )$ denote the personalized parameters after a local update step (i.e., step $^ { l }$ above) at client $i$ , then there exists a distribution $s$ on matrix $\mathbf { S } \in \mathbb { R } ^ { k \times | \theta _ { p } | }$ that satisfies
173
+
174
+ $$
175
+ \forall \mathbf { x } \in \mathbb { R } ^ { n } , \| \mathbf { x } \| _ { 2 } = 1 : \mathbb { E } _ { \mathbf { S } \sim { \mathcal { S } } } \left[ | \| \mathbf { S } \mathbf { x } \| _ { 2 } ^ { 2 } - 1 | ^ { \ell } \right] \ \leq \ \epsilon ^ { \ell } \cdot \delta ,
176
+ $$
177
+
178
+ $$
179
+ \operatorname* { P r } _ { \mathbf { S } \in \mathcal { S } } \left( \Big | \nabla _ { \theta _ { p } } \mathcal { L } \big ( \theta _ { b } , \tilde { \theta } _ { p , i } \big ) - \mathbf { S } ^ { \top } \mathbf { S } \Big ( \frac { 1 } { M } \sum _ { i = 1 } ^ { M } \nabla _ { \theta _ { p } } \mathcal { L } \big ( \theta _ { b } , \tilde { \theta } _ { p , i } \big ) \Big ) \Big | \leq \sqrt { \frac { 6 } { k \delta } } \right) ~ \geq ~ 1 - \delta
180
+ $$
181
+
182
+ where $k = \mathcal { O } \left( C \| \theta _ { b } - \theta _ { b } ^ { * } \| _ { 2 } ^ { - 2 } \right)$ for some constant $C > 0$ and $\theta _ { b } ^ { * }$ denotes the optimal base parameters.
183
+
184
+ The above assumption implies that, as $\theta _ { b }$ improves and better captures the broad similarity across tasks, the local personalized components will diverge to capture the differences. It then becomes less likely for the FEDAVG personalized gradient to capture all these differences simultaneously. That is, suppose there exists an affine transformation to reconstruct the local component $\nabla _ { \boldsymbol { \theta } _ { p } } \mathcal { L } _ { i } \dot { ( \theta _ { b } ^ { t } , \tilde { \theta } _ { p } ^ { t } ) }$ from the federated gradient 1M PMi=1 ∇θp Li(θtb, ˜θtp), then the rank of this affine transformation would be inversely proportionate to $\lVert \theta _ { b } - \theta _ { b } ^ { * } \rVert _ { 2 }$ .
185
+
186
+ Finally, Proposition 1 below shows that when this assumption holds and $\theta _ { b }$ converges to the optimal parameter $\theta _ { b } ^ { * }$ (i.e., the error term tends to 0), then with very high probability, the coefficient $\alpha _ { i }$ of the weighted federated gradient step (i.e., step 3 above) accurately captures the cosine similarity between the local gradient (step 1) and the federated gradient (step 2).
187
+
188
+ Proposition 1 Suppose assumption $^ { l }$ holds, then with probability at least $1 - 2 \delta$ and normalized gradients, we have:
189
+
190
+ $$
191
+ \begin{array} { r l r } { \bigg | \alpha _ { i } - \nabla _ { \theta _ { p } } ^ { \top } \mathcal { L } _ { i } ( \theta _ { b } ^ { t } , \theta _ { p } ^ { t } ) \mathbf { L } \bigg | } & { = } & { \mathcal { O } ( \| \theta _ { b } - \theta _ { b } ^ { * } \| / \delta ) } \end{array}
192
+ $$
193
+
194
+ Proof. See Appendix B
195
+
196
+ This result has strong implication with respect to the scenario with multiple heterogeneous tasks, whose local gradients contradict in directions. Per this setting, we expect a standard federated gradient update scheme to encourage parameters drifting in the general direction of the majority (i.e., captured by the federated gradient), thus worsening the performance of tasks that are in the minority. Proposition 1, however, implies that whenever the local gradient contradicts the federated gradient, $\alpha _ { i }$ will be close to the cosine similarity term, which is negative. This in turn results in a dampening effect on the federated gradient and helps to preserve the client performance on its own local task.
197
+
198
+ # 4 EXPERIMENTS
199
+
200
+ This section describes our experiments to showcase the performance of FEDPNAS compared to different NAS and FL benchmarks on various scenarios. All of our empirical studies are conducted on two image recognition datasets: (a) the CIFAR-10 dataset (Krizhevsky et al., 2009) which aims to predict image labels from 10 classes given a train/test set of 50000/10000 colour images of dimension $3 2 \times 3 2$ pixels; and (b) the MNIST dataset (LeCun et al., 2010) which aims to predict handwritten digits (i.e. 0 to 9) given a train/test set of 60000/10000 grayscale images of dimension $2 8 \times 2 8$ pixels. Our search space entails $2 ^ { 4 0 }$ possible architectures, which is detailed in Appendix D. We compare two variants of our framework, CA-FEDPNAS (with context-aware operation sampler) and FEDPNAS (without the operation sampler), against: (a) FEDAVERAGING of a fixed architecture to justify the need for NAS in FL; (b) FEDDSNAS - the federated extension of DSNAS (Section 3.1) to show the effectiveness of our proposed context-aware sampler on NAS performance; and finally (c) CA-FEDDSNAS, which extends FEDDSNAS with our context-aware sampler.
201
+
202
+ On simulate heterogenous predictive tasks. To simulate this scenario, we first distribute the data i.i.d across clients (10000/2000 and 12000/2000 training/test images per client for CIFAR-10 and MNIST datasets respectively). Then, we independently apply a different transformation to each partitioned dataset. Input images within the same train/test set is subject to the same transformation. In both our experiments, the client datasets are subjected to rotations of $- 3 0 ^ { \circ }$ , $- 1 5 ^ { \circ } , 0 ^ { \circ }$ , $1 5 ^ { \circ }$ and $3 0 ^ { \circ }$ respectively. This data generation protocol reflects a realistic and frequently seen scenario where independently collected data of the same phenomenon might contain systematic bias due to measurement errors and/or different collection protocols. Fig. 3 below shows the performance of all the methods in comparison, plotted against number of search epochs and averaged over the above rotated variants of CIFAR-10 and MNIST datasets.
203
+
204
+ ![](images/08d3fd76b4111ac26e3461c4df7498289f564056a7c3a605aede072b6240b1a0.jpg)
205
+ Figure 3: Plotting average classification accuracy of various methods against no. training epochs on heterogeneous tasks derived from (a) MNIST dataset; and (b) CIFAR-10 dataset. Figure (c) compares cumulative running time of various methods against no. training epochs on CIFAR-10 dataset.
206
+
207
+ On the MNIST dataset (Fig. 3b), all methods eventually converge to a similar performance. Among the NAS benchmarks, FEDPNAS and FEDDSNAS both converge slower than FEDAVG and start off with worse performance in early iterations, which is expected since FEDAVG does not have to search for the architecture and it is likely that the default architecture is sufficient for the MNIST task. On the other hand, we observe that both CA-FEDPNAS and CA-FEDDSNAS converge much faster than their counterparts without the context-aware operation sampler component. This shows that making use of contextual information helps to quickly locate regions of high-performing architectures, especially on similar inputs.
208
+
209
+ On the CIFAR-10 dataset (Fig. 3a), we instead observe significant gaps between the worst performing FEDAVG and other NAS methods. This is likely because the default architecture does not have sufficient learning capability, which confirms the need for customizing solutions. Among the NAS benchmarks, we again observe that both CA-FEDPNAS and CA-FEDDSNAS outperform their counterparts without our operation sampler, which confirms the intuition above. Most remarkably, our proposed framework CA-FEDPNAS achieves the best performance (0.8) and significantly outperformed both variants of federated DSNAS (0.71 for CA-FEDDSNAS and 0.63 for FEDDSNAS).
210
+
211
+ Lastly, Fig. 3c shows the runtime comparison between three methods on the CIFAR-10 experiment. In terms of sampling time, we observe that there is negligible overhead incurred by using our context-aware sampler (CA-FEDDSNAS vs. FEDDSNAS). The time incurred by our update (CA-FEDPNAS) scales by a constant factor compared to CA-FEDDSNAS since we use exactly one extra forward/backward pass per update.
212
+
213
+ On objectives with varying heterogeneity. We expand the above study by investigating respective performance of CA-FEDPNAS and FEDDSNAS on tasks with varying levels of heterogeneity. At low level of heterogeneity, we deploy these methods on 5 sets of slightly rotated MNIST images. At high level of heterogeneity, we employ a more diverse set of transformations on MNIST images, such as hue jitter and large angle rotations of $9 0 ^ { \circ }$ and $- 9 0 ^ { \circ }$ . Table 1 show the respective result of each task from these two settings. We observe that our method CA-FEDPNAS achieves better performance on most tasks and the performance gaps on tasks with higher heterogeneity are more pronounced (i.e., up to $7 \%$ improvement on ROTATE 90 task). This clearly shows the importance of architecture personalization when the training tasks are significantly different and justifies our research goal.
214
+
215
+ Table 1: Predictive accuracy of CA-FEDPNAS FEDDSNAS on tasks with varying heterogeneity levels. ROTATE X denotes a rotation transformation of $\mathbf { X } ^ { \circ }$ on client data; VANILLA denotes the original MNIST images; and HUEJITTER X denotes a hue jitter transformation of training images by a factor of X. The best performance in each row is in bold font.
216
+
217
+ <table><tr><td rowspan=1 colspan=1>HETEROGENEITY</td><td rowspan=1 colspan=1>TASKDESCRIPTION</td><td rowspan=1 colspan=1>FEDDSNAS</td><td rowspan=1 colspan=1>CA-FEDPNAS</td></tr><tr><td rowspan=5 colspan=1>Low</td><td rowspan=1 colspan=1>ROTATE -30</td><td rowspan=1 colspan=1>0.947</td><td rowspan=1 colspan=1>0.978</td></tr><tr><td rowspan=1 colspan=1>ROTATE -15</td><td rowspan=1 colspan=1>0.973</td><td rowspan=1 colspan=1>0.976</td></tr><tr><td rowspan=1 colspan=1>VANILLA</td><td rowspan=1 colspan=1>0.988</td><td rowspan=1 colspan=1>0.985</td></tr><tr><td rowspan=1 colspan=1>ROTATE 15</td><td rowspan=1 colspan=1>0.986</td><td rowspan=1 colspan=1>0.987</td></tr><tr><td rowspan=1 colspan=1>ROTATE 30</td><td rowspan=1 colspan=1>0.972</td><td rowspan=1 colspan=1>0.981</td></tr><tr><td rowspan=5 colspan=1>HIGH</td><td rowspan=1 colspan=1>HUEJITTER-0.5</td><td rowspan=1 colspan=1>0.966</td><td rowspan=1 colspan=1>0.978</td></tr><tr><td rowspan=1 colspan=1>HUEJITTER 0.5</td><td rowspan=1 colspan=1>0.967</td><td rowspan=1 colspan=1>0.972</td></tr><tr><td rowspan=1 colspan=1>VANILLA</td><td rowspan=1 colspan=1>0.988</td><td rowspan=1 colspan=1>0.989</td></tr><tr><td rowspan=1 colspan=1>ROTATE -90</td><td rowspan=1 colspan=1>0.892</td><td rowspan=1 colspan=1>0.932</td></tr><tr><td rowspan=1 colspan=1>ROTATE 90</td><td rowspan=1 colspan=1>0.866</td><td rowspan=1 colspan=1>0.932</td></tr></table>
218
+
219
+ On knowledge transfer to completely new tasks. Finally, we investigate a scenario where the architecture distributions discovered by CA-FEDPNAS and FEDDSNAS are required to generalize to completely unseen tasks. Particularly, we train both methods on five clients whose local data consist of 12000 slightly rotated CIFAR-10 images (i.e., in the range of $\pm 3 0 ^ { \circ }$ ), similar to the setting of the first experiment. During testing, however, we supply each local client with 2000 test images subjected to related but completely unseen transformations (i.e., $9 0 °$ and $- 9 0 ^ { \circ }$ rotations).
220
+
221
+ Our results are summarized in Table 2. First, we measure the performance of CA-FEDPNAS and FEDDSNAS without any weight retraining. When received no additional information from the unseen tasks, both methods perform poorly as expected. While CA-FEDPNAS achieves better predictive accuracy, the performance gap in this scenario is negligible. To provide additional clues for adaptation, albeit minimal, we retrain the weights of each local model with 200 images rotated according to respective unseen task description. Here, the parameters of our operator sampler component, (and respectively, FEDDSNAS’s categorical distribution parameters), are frozen to gauge the quality of the learned architecture distributions. Our results show that, with only 100 retraining iterations on limited data, CA-FEDPSNAS already outperforms FEDDSNAS $5 \%$ and $8 \%$ improvement respectively on two unseen tasks). This implies that CA-FEDPNAS has more accurately capture the broad similarity of the task spectrum through the personalized architecture distribution, which requires minimal additional information to successfully adapt to unseen tasks.
222
+
223
+ Table 2: Predictive accuracy (averaged over 5 clients) and standard deviation of CA-FEDPNAS and FEDDSNAS on two unseen tasks (CIFAR-10). The best performance in each row is in bold font.
224
+
225
+ <table><tr><td rowspan=1 colspan=1>UNSEEN TASKDESCRIPTION</td><td rowspan=1 colspan=1>FEDDSNAS</td><td rowspan=1 colspan=1>CA-FEDPNAS</td><td rowspan=1 colspan=1>FEDDSNAS(RETRAINED)</td><td rowspan=1 colspan=1>CA-FEDPNAS(RETRAINED)</td></tr><tr><td rowspan=1 colspan=1>ROTATE -90</td><td rowspan=1 colspan=1>0.545 ± 0.04</td><td rowspan=1 colspan=1>0.578 ± 0.09</td><td rowspan=1 colspan=1>0.699± 0.12</td><td rowspan=1 colspan=1>0.734 ± 0.17</td></tr><tr><td rowspan=1 colspan=1>ROTATE 90</td><td rowspan=1 colspan=1>0.553 ± 0.12</td><td rowspan=1 colspan=1>0.569 ± 0.06</td><td rowspan=1 colspan=1>0.673 ± 0.13</td><td rowspan=1 colspan=1>0.727 ± 0.22</td></tr></table>
226
+
227
+ # 5 CONCLUSION
228
+
229
+ We demonstrate that federated learning for multi-task scenarios requires extensive personalization on the architecture level to obtain good predictive performance. This paper identifies two potential sources of model personalization: (1) task-personalization, which aims to select architectures best suited for specific learning objectives; and (2) context-personalization, which aims to select architectures best suited for specific input samples. To incorporate these aspects of personalization into Federated NAS, we propose FEDPNAS which consists of two main components: (1) a context-aware operator sampler which learns a sampling distribution for feature maps along a master architecture; and (2) a personalized federated learning objective which anticipates client fine-tuning and guides the federated model update to regions that tolerate future local updates.
230
+
231
+ # 6 REPRODUCIBILITY & ETHIC STATEMENT
232
+
233
+ This work contributes to the literature of Federated Learning through improving the state-of-theart performance. As such, it could have significant broader impact by allowing users to more accurately solve practical problems. While applications of our work to real data could result in ethical considerations, this is an indirect (and unpredictable) side-effect of our work. Our experimental work uses publicly available datasets to evaluate the performance of our algorithms; no ethical considerations are raised. Our implementation code is published anonymously at https://github.com/icml2021fedpnas/fedpnas. All proofs and details of various architectures are included in the Appendix of this paper.
234
+
235
+ # REFERENCES
236
+
237
+ B. Baker, O. Gupta, N. Naik, and R. Raskar. Designing neural network architectures using reinforcement learning. arXiv preprint arXiv:1611.02167, 2016.
238
+ J. Bergstra, D. Yamins, and D. Cox. Making a science of model search: Hyperparameter optimization in hundreds of dimensions for vision architectures. In International conference on machine learning, pages 115–123. PMLR, 2013.
239
+ A. Fallah, A. Mokhtari, and A. Ozdaglar. Personalized federated learning: Model-agnostic metalearning approach. In Proc. NeurIPS, 2020.
240
+ C. Finn, P. Abbeel, and S. Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proc. ICML, pages 1126–1135, 2017.
241
+ D. Floreano, P. Dürr, and C. Mattiussi. Neuroevolution: from architectures to learning. Evolutionary Intelligence, 1(1):47–62, 2008.
242
+ J. Hu, L. Shen, and G. Sun. Squeeze-and-excitation networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7132–7141, 2018.
243
+ S. Hu, S. Xie, H. Zheng, C. Liu, J. Shi, X. Liu, and D. Lin. DSNAS: Direct neural architecture search without parameter retraining. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12084–12092, 2020.
244
+ E. Jang, S. Gu, and B. Poole. Categorical reparameterization with gumbel-softmax. arXiv preprint arXiv:1611.01144, 2016.
245
+ A. Krizhevsky et al. Learning multiple layers of features from tiny images. Citeseer, 2009.
246
+ Y. LeCun, C. Cortes, and C. Burges. Mnist handwritten digit database. ATT Labs [Online]. Available: http://yann. lecun. com/exdb/mnist, 2, 2010.
247
+ H. B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas. Communication-efficient learning of deep networks from decentralized data. In Proc. AISTATS, pages 1273–1282, 2017.
248
+ H. Pham, M. Y. Guan, B. Zoph, Q. V. Le, and J. Dean. Efficient neural architecture search via parameter sharing. arXiv preprint arXiv:1802.03268, 2018.
249
+ E. Real, A. Aggarwal, Y. Huang, and Q. V. Le. Regularized evolution for image classifier architecture search. In Proceedings of the AAAI conference on Artificial Intelligence, volume 33, pages 4780–4789, 2019.
250
+ S. Xie, H. Zheng, C. Liu, and L. Lin. SNAS: stochastic neural architecture search. arXiv preprint arXiv:1812.09926, 2018.
251
+ B. Zoph and Q. V. Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016.
parse/dev/WcZUevpX3H3/WcZUevpX3H3_content_list.json ADDED
@@ -0,0 +1,1096 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "PERSONALIZED NEURAL ARCHITECTURE SEARCH FOR FEDERATED LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 452,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Federated Learning (FL) is a recently proposed learning paradigm for decentralized devices to collaboratively train a predictive model without exchanging private data. Existing FL frameworks, however, assume a one-size-fit-all model architecture to be collectively trained by local devices, which is determined prior to observing their data. Even with good engineering acumen, this often falls apart when local tasks are different and require diverging choices of architecture modelling to learn effectively. This motivates us to develop a novel personalized neural architecture search (NAS) algorithm for FL. Our algorithm, FEDPNAS, learns a base architecture that can be structurally personalized for quick adaptation to each local task. We empirically show that FEDPNAS significantly outperforms other NAS and FL benchmarks on several real-world datasets. ",
40
+ "bbox": [
41
+ 232,
42
+ 265,
43
+ 766,
44
+ 417
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 444,
55
+ 336,
56
+ 460
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Federated Learning (FL) (McMahan et al., 2017) is a variant of distributed learning where the objective function can be decomposed into a linear combination of $M$ local objective functions. Each function depends on its private data hosted by a local client and a set of shared parameters $w$ , ",
63
+ "bbox": [
64
+ 174,
65
+ 474,
66
+ 825,
67
+ 517
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "equation",
73
+ "img_path": "images/e46a32c199c69a51110d2f9b14c6f20b9fa55e0ee8f5076013fff7470987204d.jpg",
74
+ "text": "$$\n\\underset { w } { \\mathrm { a r g m i n } } \\ : \\mathcal { L } ( w ) \\equiv \\underset { w } { \\mathrm { a r g m i n } } \\ : \\sum _ { i = 1 } ^ { M } \\mathcal { L } _ { i } ( w \\mid \\mathcal { D } _ { i } ) ,\n$$",
75
+ "text_format": "latex",
76
+ "bbox": [
77
+ 344,
78
+ 522,
79
+ 650,
80
+ 566
81
+ ],
82
+ "page_idx": 0
83
+ },
84
+ {
85
+ "type": "text",
86
+ "text": "where $\\mathcal { D } _ { i }$ denotes the $i ^ { \\mathrm { t h } }$ local training dataset comprising input-output tuples $( x , y )$ . In a standard supervised learning task where the predictive model is modeled as a fixed deep neural network $\\psi$ with learnable weights $w$ , let $\\ell ( x , y )$ denote the loss incurred by predicting $\\psi ( x ; w )$ when the true output is $y$ . The expected loss of $\\psi ( x ; w )$ on $\\mathcal { D } _ { i }$ is given as ",
87
+ "bbox": [
88
+ 173,
89
+ 571,
90
+ 825,
91
+ 628
92
+ ],
93
+ "page_idx": 0
94
+ },
95
+ {
96
+ "type": "equation",
97
+ "img_path": "images/90e0dc9100a6fd7943eab9ddf8a785feb9537549e1df351e8a99038eb3f1c845.jpg",
98
+ "text": "$$\n\\begin{array} { r l r } { \\mathcal { L } _ { i } ( w \\mid \\mathcal { D } _ { i } ) } & { = } & { \\mathbb { E } _ { ( x , y ) \\sim \\mathcal { D } _ { i } } \\Big [ \\ell ( x , y ; \\psi ) \\Big ] ~ . } \\end{array}\n$$",
99
+ "text_format": "latex",
100
+ "bbox": [
101
+ 361,
102
+ 633,
103
+ 635,
104
+ 661
105
+ ],
106
+ "page_idx": 0
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "This is not applicable to scenarios where local models are expected to solve different tasks which are similar in broad sense yet diverge in finer details. For example, consider the task of recognizing the outcome of a coin flip given images collected by two clients: one capture the coin from above, the other from below. This setting implies that when the same input image is provided by both clients, the correct classifications must be the opposite of one another. However, since existing FL methods converge on a single model architecture and weight, there can only be one predictive outcome which cannot satisfy both tasks. ",
111
+ "bbox": [
112
+ 173,
113
+ 671,
114
+ 825,
115
+ 770
116
+ ],
117
+ "page_idx": 0
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "To relax this constraint, the recent work of Fallah et al. (2020) extends FL by incorporating ideas from meta learning (Finn et al., 2017) which results in a new framework of personalized FL. The new framework can accommodate for such task heterogeneity but still requires all client models to agree on a single architecture beforehand, which is sub-optimal. To address this shortcoming, one naive idea is to adopt existing ideas in Neural Architecture Search (NAS) via Reinforcement Learning (Zoph and Le, 2016; Pham et al., 2018) which act as an outer loop to the existing FL routine. ",
122
+ "bbox": [
123
+ 174,
124
+ 776,
125
+ 825,
126
+ 861
127
+ ],
128
+ "page_idx": 0
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "However, this simple approach does not allow client models to adapt to local tasks on an architecture level and is often not preferred due to the cost of repeated FL training. This paper proposes a novel personalized NAS algorithm for federated learning, which generalizes ideas in respective areas of NAS (Zoph and Le, 2016; Pham et al., 2018) originally developed for single-task scenarios, and ",
133
+ "bbox": [
134
+ 174,
135
+ 867,
136
+ 823,
137
+ 924
138
+ ],
139
+ "page_idx": 0
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "FL (Fallah et al., 2020) under a unified len of federated personalized neural architecture search (FEDPNAS). ",
144
+ "bbox": [
145
+ 173,
146
+ 103,
147
+ 823,
148
+ 132
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "In particular, to customize the model architecture for each task in the FL workflow, FEDPNAS first represents the model architecture for each task as a sub-network sampled from a large, overparameterized network. The sampling distribution is (collaboratively) learned along with the parameters of the sampled network via a generalization of the recently proposed Discrete Stochastic NAS (DSNAS) method (Hu et al., 2020). Unlike DSNAS, which lacks the ability to customize architecture for individual tasks, our generalized FEDPNAS incorporates model personalization on an architecture level. Our contributions include: ",
155
+ "bbox": [
156
+ 174,
157
+ 138,
158
+ 825,
159
+ 236
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "1. A novel architecture that factorizes into a base component (shared across tasks) and a personalizable component, which respectively capture the task-agnostic and task-specific information (Section 3.2). ",
166
+ "bbox": [
167
+ 173,
168
+ 243,
169
+ 823,
170
+ 272
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "2. A context-aware sampling distribution conditioned on specific task instance, which captures taskspecific information and naturally incorporates personalization into architecture search (Section 3.4). ",
177
+ "bbox": [
178
+ 171,
179
+ 279,
180
+ 823,
181
+ 306
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "3. An FL algorithm that optimizes for a common architecture, followed by a personalization phase where each client subsequently adapts only the personalized component to fit its own task via finetuning with local data (Section 3.1). To ensure that the common architecture distribution converges at a vantage point that is relevant and beneficial to all clients, we generalize the vanilla FL objective in Eq. equation 1 such that local gradient steps directly optimize for expected improvement resulting from future fine-tuning (Section 3.3). ",
188
+ "bbox": [
189
+ 173,
190
+ 313,
191
+ 825,
192
+ 397
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "4. A theoretical perspective on our FL objective (Section 3.5 and thorough empirical analysis showing significant performance gain compared to state-of-the-art FL and NAS methods (Section 4). ",
199
+ "bbox": [
200
+ 173,
201
+ 404,
202
+ 821,
203
+ 433
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "2 RELATED WORKS ",
210
+ "text_level": 1,
211
+ "bbox": [
212
+ 176,
213
+ 455,
214
+ 352,
215
+ 472
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "2.1 TWO-STAGE NEURAL ARCHITECTURE SEARCH ",
222
+ "text_level": 1,
223
+ "bbox": [
224
+ 174,
225
+ 489,
226
+ 540,
227
+ 503
228
+ ],
229
+ "page_idx": 1
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "Most existing NAS frameworks separately optimize for the optimal architecture and its parameters in two stages: searching and evaluation. The former stage usually employs evolutionary-based strategies (Floreano et al., 2008; Real et al., 2019), Bayesian optimization surrogates (Bergstra et al., 2013; Hu et al., 2018) or Reinforcement Learning controllers (Baker et al., 2016; Zoph and Le, 2016; Pham et al., 2018) to propose candidate architectures based on random mutations and/or observed experience; while the latter optimizes the parameters of these architectures given task data and provide feedback to improve the search agent. Naturally, an extension of such methods to the FL setting is through distributing the evaluation workload over many clients, which does not require exposing private data. In practice, however, two-stage federated NAS frameworks are generally not suitable for the personalized FL setting for two reasons: (a) the clients often lack the computational capacity to repeatedly optimize the parameters for many candidate architectures; and (b) the clients have to converge on a single architecture proposed by the central search agent. ",
234
+ "bbox": [
235
+ 174,
236
+ 516,
237
+ 825,
238
+ 683
239
+ ],
240
+ "page_idx": 1
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "2.2 DISCRETE STOCHASTIC NEURAL ARCHITECTURE SEARCH ",
245
+ "text_level": 1,
246
+ "bbox": [
247
+ 176,
248
+ 703,
249
+ 622,
250
+ 718
251
+ ],
252
+ "page_idx": 1
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "Discrete stochastic neural architecture search (DSNAS) (Hu et al., 2020) addresses the computational issue of two-stage NAS by jointly optimizing the optimal architecture and its weight in an end-to-end fashion, which allows users to continually train a single network on demand over time as opposed to performing full parameter optimization for every candidate until a good architecture is discovered. ",
257
+ "bbox": [
258
+ 174,
259
+ 731,
260
+ 825,
261
+ 786
262
+ ],
263
+ "page_idx": 1
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "The main idea of DSNAS is to combine weight training for an over-parameterized master architecture with discrete computational path sampling. DSNAS parameterizes the master architecture as a stack of modular cells: $\\psi ( x ) \\bar { = } \\psi _ { C } \\circ \\bar { \\psi } _ { C - 1 } \\cdot \\cdot \\cdot \\circ \\psi _ { 1 } ( \\bar { x } ) ^ { 1 }$ , where $x$ is an arbitrary input, $C$ is the number of cells, $\\psi _ { t }$ denotes the $t ^ { \\mathrm { t h } }$ cell in the stack, and $\\circ$ denotes the compositional operator. The inner computation of $\\psi _ { t }$ is in turn characterized by a directed acyclic graph (DAG) with $V$ nodes $\\{ v _ { i } \\} _ { i = 1 } ^ { | V | }$ , where each node represents some intermediate feature map. For each directed edge $( v _ { i } , v _ { j } )$ ",
268
+ "bbox": [
269
+ 174,
270
+ 792,
271
+ 825,
272
+ 881
273
+ ],
274
+ "page_idx": 1
275
+ },
276
+ {
277
+ "type": "image",
278
+ "img_path": "images/718e70d9fa976c50deca97062d523901e363ff96a3953e515fd8e35fb90486f0.jpg",
279
+ "image_caption": [
280
+ "Figure 1: Our proposed method FEDPNAS consists of (1) a federated learning phase, where each client updates both the base component $( \\psi ^ { b } )$ and the personalized component $( \\psi _ { p } )$ the architecture using the FEDPNAS update (Section 3.3) and sends its parameters to the central server for aggregation; and (2) a fine-tune phase, where each client updates only the personalized component of the architecture using standard gradient update. "
281
+ ],
282
+ "image_footnote": [],
283
+ "bbox": [
284
+ 187,
285
+ 102,
286
+ 808,
287
+ 243
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "there is an associated list of $D$ possible network operations $\\mathbf O _ { i j } = \\left[ o _ { i j } ^ { 1 } , o _ { i j } ^ { 2 } \\ldots o _ { i j } ^ { D } \\right] ^ { 2 }$ where each operainput on w $o _ { i j } ^ { k }$ rms ). W $v _ { i }$ to rec $v _ { j }$ . Here, ively de $v _ { 1 }$ corresponds to the oe intermediate nodes $\\psi _ { t - 1 }$ (orhere $x$ $t = 1$ $\\begin{array} { r } { v _ { j } = \\sum _ { i = 1 } ^ { j - 1 } \\mathbf { Z } _ { i j } ^ { \\top } \\mathbf { O } _ { i j } ( v _ { i } ) } \\end{array}$ distribution learnable. E $\\mathbf { O } _ { i j } ( v _ { i } ) \\triangleq \\big [ o _ { i j } ^ { 1 } ( v _ { i } ) , o _ { i j } ^ { 2 } ( v _ { i } ) \\dots o _ { i j } ^ { D } ( v _ { i } ) \\big ]$ $p ( \\mathbf { Z } \\mid \\mathbf { \\pi } \\mathbf { \\Pi } \\mathbf { \\Pi } )$ where the event probabi learning the distribution and $\\mathbf { Z } _ { i j }$ is a one-hot vector sampled from the categorical $\\mathbf { H } = \\{ \\pi _ { 1 } , \\pi _ { 2 } , . . . , \\pi _ { D } \\mid \\sum _ { i = 1 } ^ { D } \\pi _ { i } = 1 \\}$ ares or $p ( \\mathbf { Z } )$ \nsub-graphs of the original DAG that correspond to high-performing, compact architecture from the over-parameterized master network. Sampling discrete random variables from $p ( \\mathbf { Z } )$ , however, does not result in a gradient amenable to back-propagation. To sidestep this issue, DSNAS adopts the straight-through Gumbel-softmax trick (Jang et al., 2016), which re-parameterizes the $k ^ { \\mathrm { t h } }$ index of the one-hot variable as $\\mathbf { Z } _ { i j } [ k ] = \\mathbb { I } \\left( k \\triangleq { \\arg \\operatorname* { m a x } _ { t } } \\Big [ g _ { t } + \\log \\pi _ { t } \\Big ] \\right)$ , where $g _ { t } \\sim \\mathrm { G u m b e l } ( 0 , 1 )$ . While this forward computation does not have a gradient by itself, we can estimate the gradient through a proxy during the backward pass: ",
294
+ "bbox": [
295
+ 173,
296
+ 352,
297
+ 826,
298
+ 568
299
+ ],
300
+ "page_idx": 2
301
+ },
302
+ {
303
+ "type": "equation",
304
+ "img_path": "images/e26e34a69ce9d148521c6bdd32a2cad7876c9774ad025d60c9c66e4276f7fab2.jpg",
305
+ "text": "$$\n\\nabla { \\mathbf Z } _ { i j } [ k ] ~ \\simeq ~ \\nabla \\tilde { \\mathbf Z } _ { i j } [ k ] ~ \\triangleq ~ \\nabla \\left( \\frac { \\exp \\big ( \\big ( g _ { k } + \\log \\pi _ { k } \\big ) / \\tau \\big ) } { \\sum _ { t = 1 } ^ { D } \\exp \\big ( \\big ( g _ { t } + \\log \\pi _ { t } \\big ) / \\tau \\big ) } \\right)\n$$",
306
+ "text_format": "latex",
307
+ "bbox": [
308
+ 266,
309
+ 573,
310
+ 705,
311
+ 617
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "which is unbiased when converged as the temperature $\\tau$ is steadily annealed to 0 (Jang et al., 2016). This formulation, however, is not easily extended to the FL setting, especially when local tasks are not homogeneous. The key challenges in doing so are described in Section 3, together with our proposed approaches. ",
318
+ "bbox": [
319
+ 173,
320
+ 622,
321
+ 826,
322
+ 679
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "3 PERSONALIZED NAS FOR FEDERATED LEARNING ",
329
+ "text_level": 1,
330
+ "bbox": [
331
+ 174,
332
+ 699,
333
+ 620,
334
+ 715
335
+ ],
336
+ "page_idx": 2
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "3.1 FEDERATED LEARNING OF DSNAS ",
341
+ "text_level": 1,
342
+ "bbox": [
343
+ 176,
344
+ 731,
345
+ 460,
346
+ 746
347
+ ],
348
+ "page_idx": 2
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "Let W denote the concatenated weights of all network operations in the network architecture. The set up above of DSNAS (Jang et al., 2016) is then naïvely extendable to a $\\mathrm { F L }$ setting via the following objective formulation: ",
353
+ "bbox": [
354
+ 174,
355
+ 757,
356
+ 825,
357
+ 799
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "equation",
363
+ "img_path": "images/53fb6f86bf79e8538a970f7dc17aac4f97b1180428aad1f222980eff1770d3dc.jpg",
364
+ "text": "$$\n\\underset { \\mathbf { W } , \\mathbf { \\Pi } } { \\arg \\operatorname* { m i n } } \\mathcal { L } ( \\mathbf { W } , \\mathbf { \\Pi } \\mathbf { I } ) \\equiv \\underset { \\mathbf { W } , \\mathbf { \\Pi } \\mathbf { \\Pi } } { \\arg \\operatorname* { m i n } } \\frac { 1 } { M } \\sum _ { i = 1 } ^ { M } \\mathcal { L } _ { i } ( \\mathbf { W } , \\mathbf { \\Pi } \\mathbf { I } \\mid \\mathcal { D } _ { i } ) .\n$$",
365
+ "text_format": "latex",
366
+ "bbox": [
367
+ 310,
368
+ 806,
369
+ 668,
370
+ 851
371
+ ],
372
+ "page_idx": 2
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "McMahan et al. (2017) optimizes this objective by alternating between (a) central agent broadcasting aggregated weights to local clients and (b) local clients sending gradient descent updated weights (given local data) to the central agent for aggregation. This, however, implies that after the last central aggregation step, all clients will follow the same architecture distribution induced by the final broadcasted copy of W and Π. As previously argued, this is not optimal in a heterogenous task setting which requires task-specific adaptation for local clients to achieve good performance. ",
377
+ "bbox": [
378
+ 174,
379
+ 856,
380
+ 825,
381
+ 900
382
+ ],
383
+ "page_idx": 2
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "",
388
+ "bbox": [
389
+ 174,
390
+ 103,
391
+ 823,
392
+ 146
393
+ ],
394
+ "page_idx": 3
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "Furthermore, having the same sampling distribution $p ( \\mathbf { Z } )$ regardless of context (i.e., feature maps received as cell input) limits the architecture discovery to those that perform reasonably on average over the entire dataset. However, we remark that restricting the architecture to be the same for every input samples is unnecessary and undermines the expressiveness of an over-parameterized search space. On the other hand, letting the architecture be determined on a per-sample basis makes better use of the search space and potentially improves the predictive performance. ",
399
+ "bbox": [
400
+ 174,
401
+ 152,
402
+ 825,
403
+ 236
404
+ ],
405
+ "page_idx": 3
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "The focus of this work is therefore to incorporate both task-wise and context-wise personalization to federated neural architecture search in multitask scenarios, which is achieved through our proposed algorithm FEDPNAS. In general, FEDPNAS functions similarly to the vanilla FEDDSNAS algorithm described above, with an addition of a fine-tuning phase at each local client after the FL phase to adapt the aggregated common model for local task data, as shown in Fig. 1. To make this work, however, we need to address the following key challenges: ",
410
+ "bbox": [
411
+ 174,
412
+ 243,
413
+ 825,
414
+ 327
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "C1. First, as previously argued in Section 1, tasks across federated clients tend to share similarities in broad sense, and diverge in finer details. A good federated personalization search space, therefore, need to capture this fundamental observation through design and appropriate resource distribution. We address this challenge in Section 3.2. ",
421
+ "bbox": [
422
+ 174,
423
+ 334,
424
+ 825,
425
+ 390
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "C2. Second, a major advantage of having an over-parameterized architecture search space is the flexibility of having specific computation paths for different samples, which is not exploited by DSNAS as reflected in its choice of context-independent sampling distribution $p ( \\mathbf { Z } )$ . To address this, Section 3.4 proposes a novel parameterization of $p ( \\mathbf { Z } )$ to incorporate context information into operator sampling. ",
432
+ "bbox": [
433
+ 174,
434
+ 397,
435
+ 825,
436
+ 467
437
+ ],
438
+ "page_idx": 3
439
+ },
440
+ {
441
+ "type": "text",
442
+ "text": "C3. Last, while the fine-tuning phase is designed to incorporate task-personalization, there is no guarantee that the common model can be quickly adapted to client tasks (Fallah et al., 2020). The common model may end up in a localization that favors one client over another, which makes it difficult for the latter to fine-tune. To address this concern, Section 3.3 proposes a new personalized federated NAS objective inspired by Finn et al. (2017) to optimize the common model in anticipation of further fine-tuning by the client models. ",
443
+ "bbox": [
444
+ 173,
445
+ 473,
446
+ 825,
447
+ 558
448
+ ],
449
+ "page_idx": 3
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "3.2 PERSONALIZABLE ARCHITECTURE SEARCH SPACE ",
454
+ "text_level": 1,
455
+ "bbox": [
456
+ 174,
457
+ 575,
458
+ 568,
459
+ 589
460
+ ],
461
+ "page_idx": 3
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "Similar to DSNAS (Hu et al., 2020), our framework adopts a cell-based representation (Section 2.2) to trade-off search space expressiveness for efficiency, which is extremely suitable for FL where clients tend to have low-end computational capacity. Unlike the original design which assumes similar role for every cell in the architecture stack (i.e., as reflected by their choice of fully factorizable path sampling distribution $p ( \\mathbf { Z } ) ,$ , we instead split our cell stack into two components with separate metaroles catering to the ftask: (a) a base stack $\\psi _ { \\mathrm { b } } = \\{ \\dot { \\psi } _ { 1 } ^ { b } , \\psi _ { 2 } ^ { b } \\cdot \\hdots \\psi _ { C _ { b } } ^ { b } \\}$ which aims to capture the broad commonalities of data samples across client tasks; and (b) personalized stack $\\psi _ { \\mathrm { { p } } } ~ = ~ \\{ \\psi _ { 1 } ^ { p } , \\psi _ { 2 } ^ { p } \\ldots \\psi _ { C _ { p } } ^ { p } \\}$ which will be fine-tuned with local data to capture task-specific details. ",
466
+ "bbox": [
467
+ 174,
468
+ 601,
469
+ 475,
470
+ 852
471
+ ],
472
+ "page_idx": 3
473
+ },
474
+ {
475
+ "type": "image",
476
+ "img_path": "images/3116f74b935bbe36c806df305e40cbbc96cf386169136d98b85b7351797e33ce.jpg",
477
+ "image_caption": [
478
+ "Figure 2: Feature mapping down the component stacks of our architecture space. Every base cell takes as inputs (a) the outputs from its immediate predecessor and (b) the one before it through a skip-ahead connection. On the other hand, every personalization cell takes as input only the output from the previous cell. "
479
+ ],
480
+ "image_footnote": [],
481
+ "bbox": [
482
+ 504,
483
+ 593,
484
+ 812,
485
+ 731
486
+ ],
487
+ "page_idx": 3
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "We explain the main difference between these components to account for different level of expressiveness requirements below: ",
492
+ "bbox": [
493
+ 171,
494
+ 858,
495
+ 823,
496
+ 886
497
+ ],
498
+ "page_idx": 3
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "Base stack. Every cell $\\psi _ { t } ^ { b }$ in the base stack takes as inputs the outputs of its previous two cells $\\psi _ { t - 1 } ^ { b }$ and $\\psi _ { t - 2 } ^ { b }$ (replaced with raw input $x$ when necessary for $t \\leq 2$ ). The output of the skip-ahead cell $\\psi _ { t - 2 } ^ { b }$ is additionally passed through a $1 \\times 1$ convolution layer as a cost-effective way to control the number of channels. Additionally, the operators available to the base cell include large convolution layers with size $5 \\times 5$ and $7 \\times 7$ . To compensate for the growing number of channels, we periodically employ a reduction convolution (with stride larger than 1) similar to DSNAS (Hu et al., 2020) to reduce the feature dimension down the stack. ",
503
+ "bbox": [
504
+ 174,
505
+ 892,
506
+ 821,
507
+ 924
508
+ ],
509
+ "page_idx": 3
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "",
514
+ "bbox": [
515
+ 174,
516
+ 103,
517
+ 825,
518
+ 172
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "Personalized stack. As opposed to the design of the base cells above, every cell $\\psi _ { t } ^ { p }$ in the personalized stack has minimal expressiveness. That is, $\\psi _ { t } ^ { p }$ excludes large operators and only takes as input the output of its immediate predecessor $\\psi _ { t - 1 } ^ { p }$ (or $\\dot { \\psi } _ { C _ { b } } ^ { b }$ when $t = 1$ ). There are two reasons for this choice. First, as the fine-tuning phase has access to fewer data samples than the federated phase, having a more compact fine-tuning space helps to improve the rate of convergence. Second, as we will discuss in Section 3.4 below, our personalized FL objective requires the Hessian of the personalized parameters, which is computationally expensive. As such, we only restrict the personalization to happen on the more compact personalized stack. ",
525
+ "bbox": [
526
+ 173,
527
+ 180,
528
+ 825,
529
+ 291
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "3.3 PERSONALIZED FEDERATED LEARNING OBJECTIVE ",
536
+ "text_level": 1,
537
+ "bbox": [
538
+ 174,
539
+ 297,
540
+ 573,
541
+ 311
542
+ ],
543
+ "page_idx": 4
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "Unlike FEDAVERAGING (McMahan et al., 2017), which assumes the clients will follow the consensus base model obtained after the federated phase, FEDPNAS expects clients to further personalize the base model with local task data. That said, while the base model is trained to work well in the expected sense over the task distribution, there is no guarantee that it is a good initial point for every client model to improve upon via fine-tuning. To address this, we adopt the concept of training in anticipation of future adaptation introduced by MAML (Finn et al., 2017). That is, during client update, instead of optimizing the loss with respect to the same consensus weight, each client will instead optimize the weight perturbed by a small gradient step in the fine-tuning direction. ",
548
+ "bbox": [
549
+ 173,
550
+ 321,
551
+ 825,
552
+ 435
553
+ ],
554
+ "page_idx": 4
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "Algorithm 1 FEDPNAS - FEDERATED PHASE ",
559
+ "text_level": 1,
560
+ "bbox": [
561
+ 174,
562
+ 458,
563
+ 488,
564
+ 473
565
+ ],
566
+ "page_idx": 4
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "1: CENTRALAGGREGATION: \n2: $\\theta _ { 0 } \\gets$ INITIALIZEPARAMETER \n3: for $t = 1 , 2 \\dots T _ { s }$ do \n4: for $k = 1 , 2 \\dots M$ in parallel do \n5: $\\theta _ { t } ^ { k } \\gets \\mathrm { C L I E N T U P D A T E } ( k , \\theta _ { t - 1 } )$ \n$\\begin{array} { r } { \\theta _ { t } \\sum _ { k = 1 } ^ { M } \\frac { 1 } { M } \\theta _ { t } ^ { k } } \\end{array}$ \n7: CLIENTUPDATE $( k , \\theta )$ : \n8: for $t = 1 , 2 \\dots T _ { \\mathrm { c } }$ do \n9: for batch $( x , y ) \\in \\mathcal { D } _ { k }$ do \n10: $\\mathcal { L } _ { k }$ $\\mathrm { , } \\nabla \\mathcal { L } _ { k } \\gets \\mathrm { E v A L } ( x , y ; \\theta _ { b } , \\theta _ { p } )$ \n11: $ { \\widetilde { \\theta } } _ { p } \\gets { \\mathrm { G R A D U P D A T E } } \\big ( \\nabla _ { { \\widetilde { \\theta } } _ { p } } \\mathcal { L } _ { k } \\big )$ \n12: $\\tilde { \\mathcal { L } } _ { k } , \\nabla \\tilde { \\mathcal { L } } _ { k } \\gets \\mathrm { E v A L } ( x , y ; \\theta _ { b } , \\tilde { \\theta } _ { p } )$ \n13: $\\nabla _ { \\boldsymbol { \\theta } _ { p } } \\tilde { \\mathcal { L } } _ { k } \\gets \\mathrm { E Q } . \\mathrm { 5 }$ \n14: θb, θp ← GRADUPDATE(∇θb,θpL˜k) \n15: return $\\theta$ to central server ",
571
+ "bbox": [
572
+ 178,
573
+ 477,
574
+ 478,
575
+ 708
576
+ ],
577
+ "page_idx": 4
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "Algorithm 2 FEDPNAS - EVAL ",
582
+ "text_level": 1,
583
+ "bbox": [
584
+ 544,
585
+ 460,
586
+ 759,
587
+ 473
588
+ ],
589
+ "page_idx": 4
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "1: Input: x, y, θ \n2: SKIP, PREV ← x, x \n3: W,Π ← θ \n4: for CELL $\\psi \\in \\psi$ do \n5: Z ← SAMPLEOPS $( x , { \\mathrm { P R E V } } ; \\mathbf { I I } )$ \n6: ψ ← EXTRACTCHILDNET $( \\mathbf { Z } , \\mathbf { W } )$ \n7: if $\\psi \\in \\psi _ { b }$ then \n8: OUTPUT $ \\psi ( \\mathrm { P R E V } , \\mathrm { S K I P } )$ \n9: else if $\\psi \\in \\psi _ { p }$ then \n10: $\\mathrm { O U T P U T } \\psi ( \\mathrm { P R E V } )$ \n11: $\\mathbf { S K I P } \\mathbf { P R E V }$ \n12: PREV $\\gets$ OUTPUT \n13: $\\mathcal { L } \\gets \\mathrm { L o s s } ( \\mathbf { O u T P U T } , y )$ \n14: $\\nabla { \\mathcal { L } } \\gets \\mathbf { B A C K P R O P } ( { \\mathcal { L } } )$ \n15: return L, ∇L ",
594
+ "bbox": [
595
+ 544,
596
+ 477,
597
+ 825,
598
+ 702
599
+ ],
600
+ "page_idx": 4
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "For simplicity, let $\\theta = \\{ \\theta _ { b } , \\theta _ { p } \\}$ respectively denote all trainable parameters of the base stack and the personalized stack, i.e., $\\partial _ { b } = \\mathbf { \\bar { \\{ W } } _ { b } , \\mathbf { \\bar { \\Pi } } _ { b } \\} , \\boldsymbol { \\hat { \\theta _ { p } } } = \\{ \\mathbf { W } _ { p } , \\mathbf { \\Pi } _ { \\Pi _ { p } } \\}$ . The personalized $\\mathrm { F L }$ objective at client $i$ is then given by $\\tilde { \\mathcal { L } } _ { i } ( \\theta _ { b } , \\theta _ { p } ) \\triangleq \\mathcal { L } _ { i } ( \\theta _ { b } , \\tilde { \\theta } _ { p } )$ where $\\tilde { \\theta } _ { p } \\triangleq \\tilde { \\theta } _ { p } - \\eta \\nabla _ { \\theta _ { p } } \\mathcal { L } _ { i } ( \\theta _ { b } , \\theta _ { p } )$ adjusts the parameters of the personalized component to account for a small fine-tuning gradient step. The adjusted local loss only depends on the respective client data and is amenable to federated learning. The local update gradient, however, involves a Hessian term whose computation is expensive to repeat over many epochs. To circumvent this problem, we use the first-order Taylor approximation to estimate the Hessian term by the outer product of Jacobian, which results in a gradient that requires exactly two forward/backward passes to compute: ",
605
+ "bbox": [
606
+ 173,
607
+ 717,
608
+ 825,
609
+ 844
610
+ ],
611
+ "page_idx": 4
612
+ },
613
+ {
614
+ "type": "equation",
615
+ "img_path": "images/07e81c7ee6f7e22b845daf04fe1a061bb16af80b33ebb744d4e02812683257fa.jpg",
616
+ "text": "$$\n\\begin{array} { r c l } { \\nabla _ { \\theta _ { p } } \\tilde { \\mathcal { L } } _ { i } } & { = } & { \\left( \\nabla _ { \\theta _ { p } } \\tilde { \\theta } _ { p } \\right) \\left( \\nabla _ { \\tilde { \\theta } _ { p } } \\tilde { \\mathcal { L } } _ { i } \\right) } \\\\ & { = } & { \\left( \\mathbf { I } - \\eta \\nabla _ { \\theta _ { p } } ^ { 2 } \\mathcal { L } _ { i } \\right) \\left( \\nabla _ { \\tilde { \\theta } _ { p } } \\tilde { \\mathcal { L } } _ { i } \\right) } \\\\ & { \\simeq } & { \\left( \\mathbf { I } - \\eta \\nabla _ { \\theta _ { p } } ^ { \\top } \\mathcal { L } _ { i } \\nabla _ { \\theta _ { p } } \\mathcal { L } _ { i } \\right) \\left( \\nabla _ { \\tilde { \\theta } _ { p } } \\tilde { \\mathcal { L } } _ { i } \\right) } \\end{array}\n$$",
617
+ "text_format": "latex",
618
+ "bbox": [
619
+ 346,
620
+ 844,
621
+ 650,
622
+ 931
623
+ ],
624
+ "page_idx": 4
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "where $\\mathcal { L } _ { i }$ and $\\tilde { \\mathcal { L } } _ { i }$ are short-hands for $\\mathcal { L } _ { i } ( \\theta _ { b } , \\theta _ { p } )$ and $\\tilde { \\mathcal { L } } _ { i } ( \\theta _ { b } , \\theta _ { p } )$ respectively. The FL phase of our FEDPNAS framework is detailed in Alg. 1. An instance of FEDPNAS’s forward and backward pass which sequentially unrolls down the component stacks, alternating between sampling and evaluation, is in turn given in Alg. 2. ",
629
+ "bbox": [
630
+ 173,
631
+ 102,
632
+ 826,
633
+ 160
634
+ ],
635
+ "page_idx": 5
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "3.4 CONTEXT-AWARE OPERATOR SAMPLER",
640
+ "text_level": 1,
641
+ "bbox": [
642
+ 176,
643
+ 176,
644
+ 490,
645
+ 190
646
+ ],
647
+ "page_idx": 5
648
+ },
649
+ {
650
+ "type": "text",
651
+ "text": "The choice of a fully factorizable sampling distribution $p ( \\mathbf { Z } )$ in DSNAS follows that of SNAS (Xie et al., 2018), which argues that the Markov assumption for $p ( \\mathbf { Z } )$ is not necessary because NAS has fully delayed rewards in a deterministic environment. However, this generally only holds for two-stage NAS (Section 2.1) and does not apply to end-to-end frameworks such as SNAS and DSNAS. We instead to take advantage of the over-parameterized architecture via factorizing the conditional $p ( \\mathbf { Z } \\mid x )$ , which takes into account the temporal dependency of structural decisions: ",
652
+ "bbox": [
653
+ 174,
654
+ 202,
655
+ 825,
656
+ 286
657
+ ],
658
+ "page_idx": 5
659
+ },
660
+ {
661
+ "type": "equation",
662
+ "img_path": "images/95c56dc93d7337b4f6b2a359ce8f707c38cc25ef6f669c8131b975f1ad1da60f.jpg",
663
+ "text": "$$\n\\begin{array} { l l l } { { p ( { \\bf Z } \\mid x ) } } & { { = } } & { { \\displaystyle p ( { \\bf Z } _ { 1 } \\mid x ) \\prod _ { t = 2 } ^ { C } p ( { \\bf Z } _ { t } \\mid { \\bf Z } _ { t - 1 } \\dots { \\bf Z } _ { 1 } , x ) } } \\\\ { { } } & { { } } & { { } } \\\\ { { \\displaystyle } } & { { \\simeq } } & { { \\displaystyle p ( { \\bf Z } _ { 1 } \\mid x ) \\prod _ { t = 2 } ^ { C } p ( { \\bf Z } _ { t } \\mid v _ { 1 } ^ { t } , x ) } } \\\\ { { } } & { { } } & { { } } \\\\ { { \\displaystyle } } & { { = } } & { { \\displaystyle p ( { \\bf Z } _ { 1 } \\mid x ) \\prod _ { t = 2 } ^ { C } \\prod _ { ( i , j ) } p ( { \\bf Z } _ { i j } ^ { t } \\mid v _ { 1 } ^ { t } , x ) , } } \\end{array}\n$$",
664
+ "text_format": "latex",
665
+ "bbox": [
666
+ 326,
667
+ 292,
668
+ 669,
669
+ 428
670
+ ],
671
+ "page_idx": 5
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "where $\\mathbf { Z } _ { t }$ , $\\mathbf { Z } _ { i j } ^ { t }$ and $v _ { 1 } ^ { t }$ respectively denote all the samples, the sample at edge $( i , j )$ and the input at cell $\\psi _ { t }$ . We have also assumed a single stack setting since the parameterization of $p ( \\mathbf { Z } )$ does not differ between base and personalized cells. ",
676
+ "bbox": [
677
+ 173,
678
+ 434,
679
+ 823,
680
+ 478
681
+ ],
682
+ "page_idx": 5
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "To reduce computational complexity, instead of conditioning the samples of subsequent cells on previous $\\mathbf { Z }$ samples, we approximate $p ( \\mathbf { Z } _ { t } \\mid \\mathbf { Z } _ { t - 1 } \\ldots \\mathbf { Z } _ { 1 } , x ) \\bumpeq p ( \\mathbf { Z } _ { t } \\mid v _ { 1 } ^ { t } , x )$ by the assumption that the cell contents are conditionally independent given the immediate cell input and the original input. Finally, we assume that $p ( \\mathbf { Z } _ { t } \\mid v _ { 1 } ^ { t } , x )$ is fully factorizable across edges in the same cell and parameterize $p ( \\mathbf { Z } _ { i j } ^ { t } \\mid v _ { 1 } ^ { t } , x ) = \\phi ^ { ( i , j ) } ( v _ { 1 } ^ { t } , x )$ where $\\phi$ is a deep classification network whose output dimension equal the number of edges in cell $\\psi _ { t }$ . Samples of $\\mathbf { Z } _ { i j } ^ { t }$ can then be generated using the straight-through Gumbel-softmax reparameterization similar to Jang et al. (2016). ",
687
+ "bbox": [
688
+ 173,
689
+ 484,
690
+ 825,
691
+ 587
692
+ ],
693
+ "page_idx": 5
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "3.5 THEORETICAL CONNECTION TO STANDARD GRADIENT UPDATE ",
698
+ "text_level": 1,
699
+ "bbox": [
700
+ 174,
701
+ 603,
702
+ 650,
703
+ 618
704
+ ],
705
+ "page_idx": 5
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "Finally, we analyze the connection of our gradient update framework to the standard gradient update, and explain why it is critical in achieving a vantage point that improves average objective value without compromising any local objective. First, we note that the gradient update Eq. 5 in Section 3.3 at the $t$ -th iteration can be written as: ",
710
+ "bbox": [
711
+ 174,
712
+ 628,
713
+ 825,
714
+ 685
715
+ ],
716
+ "page_idx": 5
717
+ },
718
+ {
719
+ "type": "equation",
720
+ "img_path": "images/42acb3ae0217fcf329e868c814ea318ffa8ed7edc54532abe0bb9bf67ed12e4b.jpg",
721
+ "text": "$$\n\\begin{array} { r c l } { \\displaystyle \\theta _ { p } ^ { t + 1 } } & { = } & { \\displaystyle \\theta _ { p } ^ { t } - \\frac { \\eta _ { 2 } } { M } \\sum _ { i = 1 } ^ { M } \\nabla _ { \\theta _ { p } } \\mathcal { L } _ { i } \\big ( \\theta _ { b } ^ { t } , \\tilde { \\theta } _ { p , i } ^ { t } \\big ) + \\frac { \\eta _ { 1 } \\eta _ { 2 } } { M } \\sum _ { i = 1 } ^ { M } \\alpha _ { i } \\nabla _ { \\theta _ { p } } \\mathcal { L } _ { i } \\big ( \\theta _ { b } ^ { t } , \\theta _ { p } ^ { t } \\big ) , } \\\\ { \\displaystyle \\theta _ { b } ^ { t + 1 } } & { = } & { \\displaystyle \\theta _ { b } ^ { t } - \\frac { \\eta _ { 2 } } { M } \\sum _ { i = 1 } ^ { M } \\nabla _ { \\theta _ { b } } \\mathcal { L } _ { i } \\big ( \\theta _ { b } ^ { t } , \\tilde { \\theta } _ { p , i } ^ { t } \\big ) , } \\end{array}\n$$",
722
+ "text_format": "latex",
723
+ "bbox": [
724
+ 290,
725
+ 689,
726
+ 759,
727
+ 779
728
+ ],
729
+ "page_idx": 5
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "where $\\tilde { \\theta } _ { p , i } ^ { t }$ denotes the $i$ -th local personalized parameters; $\\eta _ { 1 }$ and $\\eta _ { 2 }$ are two separate learning rates and $\\boldsymbol { \\alpha } _ { i } \\triangleq \\nabla _ { \\boldsymbol { \\theta } _ { p } } ^ { \\intercal } \\mathcal { L } ( \\boldsymbol { \\theta } _ { b } ^ { t } , \\boldsymbol { \\theta } _ { p , i } ^ { t } ) \\nabla _ { \\boldsymbol { \\theta } _ { p , i } } \\mathcal { L } ( \\boldsymbol { \\theta } _ { b } ^ { t } , \\tilde { \\boldsymbol { \\theta } } _ { p , i } ^ { t } )$ (See Appendix A for detailed derivation). This implies that our federated personalize update corresponds to a federated update scheme with three gradient steps: (1) $\\theta _ { p }$ takes a local gradient (w.r.t. locally updated parameters) step of size $\\eta _ { 1 }$ ; (2) Both $\\theta _ { b }$ and $\\theta _ { p }$ take a federated gradient (w.r.t. server-wide parameters averaging) step of size $\\eta _ { 2 }$ ; $( 3 ) \\theta _ { p }$ takes a weighted federated gradient step of size $\\eta _ { 1 } \\eta _ { 2 }$ , where the weight of client $i$ is given by $\\alpha _ { i }$ . ",
734
+ "bbox": [
735
+ 173,
736
+ 784,
737
+ 826,
738
+ 876
739
+ ],
740
+ "page_idx": 5
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "Explicitly, Step 1 and 2 together comprise a special instance of FEDAVERAGING (McMahan et al., 2017), where $\\theta _ { b }$ take one gradient step for every two gradient steps taken by $\\theta _ { p }$ . Step 3, on the other hand, takes the information of the two gradient steps of $\\theta _ { p }$ and adjust the magnitude of the local gradient step (whose direction is given by $\\nabla _ { \\theta _ { p } } \\mathcal { L } _ { i } ( \\theta _ { b } ^ { t } , \\bar { \\theta } _ { p } ^ { t } ) )$ accordingly to trade-off between preserving local objective value and improving average objective value. We then theorize the scenario in which such an update is beneficial and state the following assumption to lay the foundation of our analysis: ",
745
+ "bbox": [
746
+ 173,
747
+ 895,
748
+ 825,
749
+ 924
750
+ ],
751
+ "page_idx": 5
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "",
756
+ "bbox": [
757
+ 174,
758
+ 103,
759
+ 825,
760
+ 160
761
+ ],
762
+ "page_idx": 6
763
+ },
764
+ {
765
+ "type": "text",
766
+ "text": "Assumption 1 For a fixed instance of $\\theta _ { b }$ , let $\\tilde { \\theta } _ { p , i } = \\theta _ { p , i } - \\eta \\nabla _ { \\theta _ { p } } \\mathcal { L } ( \\theta _ { b } , \\theta _ { p , i } )$ denote the personalized parameters after a local update step (i.e., step $^ { l }$ above) at client $i$ , then there exists a distribution $s$ on matrix $\\mathbf { S } \\in \\mathbb { R } ^ { k \\times | \\theta _ { p } | }$ that satisfies ",
767
+ "bbox": [
768
+ 174,
769
+ 171,
770
+ 825,
771
+ 215
772
+ ],
773
+ "page_idx": 6
774
+ },
775
+ {
776
+ "type": "equation",
777
+ "img_path": "images/e21700b725bbae65bc8c894897c574cc558cc932dbf118b04215f210256f52fc.jpg",
778
+ "text": "$$\n\\forall \\mathbf { x } \\in \\mathbb { R } ^ { n } , \\| \\mathbf { x } \\| _ { 2 } = 1 : \\mathbb { E } _ { \\mathbf { S } \\sim { \\mathcal { S } } } \\left[ | \\| \\mathbf { S } \\mathbf { x } \\| _ { 2 } ^ { 2 } - 1 | ^ { \\ell } \\right] \\ \\leq \\ \\epsilon ^ { \\ell } \\cdot \\delta ,\n$$",
779
+ "text_format": "latex",
780
+ "bbox": [
781
+ 308,
782
+ 223,
783
+ 687,
784
+ 244
785
+ ],
786
+ "page_idx": 6
787
+ },
788
+ {
789
+ "type": "equation",
790
+ "img_path": "images/302ed0fe3554dede9f35da9c497e6b3c0ce8a03567fa1f061e64c89c57d929c0.jpg",
791
+ "text": "$$\n\\operatorname* { P r } _ { \\mathbf { S } \\in \\mathcal { S } } \\left( \\Big | \\nabla _ { \\theta _ { p } } \\mathcal { L } \\big ( \\theta _ { b } , \\tilde { \\theta } _ { p , i } \\big ) - \\mathbf { S } ^ { \\top } \\mathbf { S } \\Big ( \\frac { 1 } { M } \\sum _ { i = 1 } ^ { M } \\nabla _ { \\theta _ { p } } \\mathcal { L } \\big ( \\theta _ { b } , \\tilde { \\theta } _ { p , i } \\big ) \\Big ) \\Big | \\leq \\sqrt { \\frac { 6 } { k \\delta } } \\right) ~ \\geq ~ 1 - \\delta\n$$",
792
+ "text_format": "latex",
793
+ "bbox": [
794
+ 235,
795
+ 260,
796
+ 761,
797
+ 304
798
+ ],
799
+ "page_idx": 6
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "where $k = \\mathcal { O } \\left( C \\| \\theta _ { b } - \\theta _ { b } ^ { * } \\| _ { 2 } ^ { - 2 } \\right)$ for some constant $C > 0$ and $\\theta _ { b } ^ { * }$ denotes the optimal base parameters. ",
804
+ "bbox": [
805
+ 171,
806
+ 311,
807
+ 823,
808
+ 329
809
+ ],
810
+ "page_idx": 6
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "The above assumption implies that, as $\\theta _ { b }$ improves and better captures the broad similarity across tasks, the local personalized components will diverge to capture the differences. It then becomes less likely for the FEDAVG personalized gradient to capture all these differences simultaneously. That is, suppose there exists an affine transformation to reconstruct the local component $\\nabla _ { \\boldsymbol { \\theta } _ { p } } \\mathcal { L } _ { i } \\dot { ( \\theta _ { b } ^ { t } , \\tilde { \\theta } _ { p } ^ { t } ) }$ from the federated gradient 1M PMi=1 ∇θp Li(θtb, ˜θtp), then the rank of this affine transformation would be inversely proportionate to $\\lVert \\theta _ { b } - \\theta _ { b } ^ { * } \\rVert _ { 2 }$ . ",
815
+ "bbox": [
816
+ 173,
817
+ 338,
818
+ 825,
819
+ 433
820
+ ],
821
+ "page_idx": 6
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "Finally, Proposition 1 below shows that when this assumption holds and $\\theta _ { b }$ converges to the optimal parameter $\\theta _ { b } ^ { * }$ (i.e., the error term tends to 0), then with very high probability, the coefficient $\\alpha _ { i }$ of the weighted federated gradient step (i.e., step 3 above) accurately captures the cosine similarity between the local gradient (step 1) and the federated gradient (step 2). ",
826
+ "bbox": [
827
+ 174,
828
+ 438,
829
+ 825,
830
+ 494
831
+ ],
832
+ "page_idx": 6
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "Proposition 1 Suppose assumption $^ { l }$ holds, then with probability at least $1 - 2 \\delta$ and normalized gradients, we have: ",
837
+ "bbox": [
838
+ 174,
839
+ 507,
840
+ 821,
841
+ 536
842
+ ],
843
+ "page_idx": 6
844
+ },
845
+ {
846
+ "type": "equation",
847
+ "img_path": "images/8518cc1a25e7fbb7889ca9d800f160854230be5d789f0fa6d0b12b74ceffd67e.jpg",
848
+ "text": "$$\n\\begin{array} { r l r } { \\bigg | \\alpha _ { i } - \\nabla _ { \\theta _ { p } } ^ { \\top } \\mathcal { L } _ { i } ( \\theta _ { b } ^ { t } , \\theta _ { p } ^ { t } ) \\mathbf { L } \\bigg | } & { = } & { \\mathcal { O } ( \\| \\theta _ { b } - \\theta _ { b } ^ { * } \\| / \\delta ) } \\end{array}\n$$",
849
+ "text_format": "latex",
850
+ "bbox": [
851
+ 343,
852
+ 542,
853
+ 653,
854
+ 571
855
+ ],
856
+ "page_idx": 6
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "Proof. See Appendix B ",
861
+ "bbox": [
862
+ 178,
863
+ 578,
864
+ 330,
865
+ 592
866
+ ],
867
+ "page_idx": 6
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "This result has strong implication with respect to the scenario with multiple heterogeneous tasks, whose local gradients contradict in directions. Per this setting, we expect a standard federated gradient update scheme to encourage parameters drifting in the general direction of the majority (i.e., captured by the federated gradient), thus worsening the performance of tasks that are in the minority. Proposition 1, however, implies that whenever the local gradient contradicts the federated gradient, $\\alpha _ { i }$ will be close to the cosine similarity term, which is negative. This in turn results in a dampening effect on the federated gradient and helps to preserve the client performance on its own local task. ",
872
+ "bbox": [
873
+ 173,
874
+ 604,
875
+ 826,
876
+ 704
877
+ ],
878
+ "page_idx": 6
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "4 EXPERIMENTS ",
883
+ "text_level": 1,
884
+ "bbox": [
885
+ 176,
886
+ 724,
887
+ 326,
888
+ 741
889
+ ],
890
+ "page_idx": 6
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "This section describes our experiments to showcase the performance of FEDPNAS compared to different NAS and FL benchmarks on various scenarios. All of our empirical studies are conducted on two image recognition datasets: (a) the CIFAR-10 dataset (Krizhevsky et al., 2009) which aims to predict image labels from 10 classes given a train/test set of 50000/10000 colour images of dimension $3 2 \\times 3 2$ pixels; and (b) the MNIST dataset (LeCun et al., 2010) which aims to predict handwritten digits (i.e. 0 to 9) given a train/test set of 60000/10000 grayscale images of dimension $2 8 \\times 2 8$ pixels. Our search space entails $2 ^ { 4 0 }$ possible architectures, which is detailed in Appendix D. We compare two variants of our framework, CA-FEDPNAS (with context-aware operation sampler) and FEDPNAS (without the operation sampler), against: (a) FEDAVERAGING of a fixed architecture to justify the need for NAS in FL; (b) FEDDSNAS - the federated extension of DSNAS (Section 3.1) to show the effectiveness of our proposed context-aware sampler on NAS performance; and finally (c) CA-FEDDSNAS, which extends FEDDSNAS with our context-aware sampler. ",
895
+ "bbox": [
896
+ 173,
897
+ 757,
898
+ 825,
899
+ 924
900
+ ],
901
+ "page_idx": 6
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "On simulate heterogenous predictive tasks. To simulate this scenario, we first distribute the data i.i.d across clients (10000/2000 and 12000/2000 training/test images per client for CIFAR-10 and MNIST datasets respectively). Then, we independently apply a different transformation to each partitioned dataset. Input images within the same train/test set is subject to the same transformation. In both our experiments, the client datasets are subjected to rotations of $- 3 0 ^ { \\circ }$ , $- 1 5 ^ { \\circ } , 0 ^ { \\circ }$ , $1 5 ^ { \\circ }$ and $3 0 ^ { \\circ }$ respectively. This data generation protocol reflects a realistic and frequently seen scenario where independently collected data of the same phenomenon might contain systematic bias due to measurement errors and/or different collection protocols. Fig. 3 below shows the performance of all the methods in comparison, plotted against number of search epochs and averaged over the above rotated variants of CIFAR-10 and MNIST datasets. ",
906
+ "bbox": [
907
+ 173,
908
+ 103,
909
+ 825,
910
+ 242
911
+ ],
912
+ "page_idx": 7
913
+ },
914
+ {
915
+ "type": "image",
916
+ "img_path": "images/08d3fd76b4111ac26e3461c4df7498289f564056a7c3a605aede072b6240b1a0.jpg",
917
+ "image_caption": [
918
+ "Figure 3: Plotting average classification accuracy of various methods against no. training epochs on heterogeneous tasks derived from (a) MNIST dataset; and (b) CIFAR-10 dataset. Figure (c) compares cumulative running time of various methods against no. training epochs on CIFAR-10 dataset. "
919
+ ],
920
+ "image_footnote": [],
921
+ "bbox": [
922
+ 186,
923
+ 272,
924
+ 812,
925
+ 401
926
+ ],
927
+ "page_idx": 7
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "On the MNIST dataset (Fig. 3b), all methods eventually converge to a similar performance. Among the NAS benchmarks, FEDPNAS and FEDDSNAS both converge slower than FEDAVG and start off with worse performance in early iterations, which is expected since FEDAVG does not have to search for the architecture and it is likely that the default architecture is sufficient for the MNIST task. On the other hand, we observe that both CA-FEDPNAS and CA-FEDDSNAS converge much faster than their counterparts without the context-aware operation sampler component. This shows that making use of contextual information helps to quickly locate regions of high-performing architectures, especially on similar inputs. ",
932
+ "bbox": [
933
+ 174,
934
+ 484,
935
+ 825,
936
+ 597
937
+ ],
938
+ "page_idx": 7
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "On the CIFAR-10 dataset (Fig. 3a), we instead observe significant gaps between the worst performing FEDAVG and other NAS methods. This is likely because the default architecture does not have sufficient learning capability, which confirms the need for customizing solutions. Among the NAS benchmarks, we again observe that both CA-FEDPNAS and CA-FEDDSNAS outperform their counterparts without our operation sampler, which confirms the intuition above. Most remarkably, our proposed framework CA-FEDPNAS achieves the best performance (0.8) and significantly outperformed both variants of federated DSNAS (0.71 for CA-FEDDSNAS and 0.63 for FEDDSNAS). ",
943
+ "bbox": [
944
+ 174,
945
+ 603,
946
+ 825,
947
+ 702
948
+ ],
949
+ "page_idx": 7
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Lastly, Fig. 3c shows the runtime comparison between three methods on the CIFAR-10 experiment. In terms of sampling time, we observe that there is negligible overhead incurred by using our context-aware sampler (CA-FEDDSNAS vs. FEDDSNAS). The time incurred by our update (CA-FEDPNAS) scales by a constant factor compared to CA-FEDDSNAS since we use exactly one extra forward/backward pass per update. ",
954
+ "bbox": [
955
+ 174,
956
+ 708,
957
+ 825,
958
+ 777
959
+ ],
960
+ "page_idx": 7
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "On objectives with varying heterogeneity. We expand the above study by investigating respective performance of CA-FEDPNAS and FEDDSNAS on tasks with varying levels of heterogeneity. At low level of heterogeneity, we deploy these methods on 5 sets of slightly rotated MNIST images. At high level of heterogeneity, we employ a more diverse set of transformations on MNIST images, such as hue jitter and large angle rotations of $9 0 ^ { \\circ }$ and $- 9 0 ^ { \\circ }$ . Table 1 show the respective result of each task from these two settings. We observe that our method CA-FEDPNAS achieves better performance on most tasks and the performance gaps on tasks with higher heterogeneity are more pronounced (i.e., up to $7 \\%$ improvement on ROTATE 90 task). This clearly shows the importance of architecture personalization when the training tasks are significantly different and justifies our research goal. ",
965
+ "bbox": [
966
+ 174,
967
+ 797,
968
+ 825,
969
+ 924
970
+ ],
971
+ "page_idx": 7
972
+ },
973
+ {
974
+ "type": "table",
975
+ "img_path": "images/54d993c8bf9f3fa29d07bb7937339fab1a162de34e3ded9e8a7c9d00ec8acdc4.jpg",
976
+ "table_caption": [
977
+ "Table 1: Predictive accuracy of CA-FEDPNAS FEDDSNAS on tasks with varying heterogeneity levels. ROTATE X denotes a rotation transformation of $\\mathbf { X } ^ { \\circ }$ on client data; VANILLA denotes the original MNIST images; and HUEJITTER X denotes a hue jitter transformation of training images by a factor of X. The best performance in each row is in bold font. "
978
+ ],
979
+ "table_footnote": [],
980
+ "table_body": "<table><tr><td rowspan=1 colspan=1>HETEROGENEITY</td><td rowspan=1 colspan=1>TASKDESCRIPTION</td><td rowspan=1 colspan=1>FEDDSNAS</td><td rowspan=1 colspan=1>CA-FEDPNAS</td></tr><tr><td rowspan=5 colspan=1>Low</td><td rowspan=1 colspan=1>ROTATE -30</td><td rowspan=1 colspan=1>0.947</td><td rowspan=1 colspan=1>0.978</td></tr><tr><td rowspan=1 colspan=1>ROTATE -15</td><td rowspan=1 colspan=1>0.973</td><td rowspan=1 colspan=1>0.976</td></tr><tr><td rowspan=1 colspan=1>VANILLA</td><td rowspan=1 colspan=1>0.988</td><td rowspan=1 colspan=1>0.985</td></tr><tr><td rowspan=1 colspan=1>ROTATE 15</td><td rowspan=1 colspan=1>0.986</td><td rowspan=1 colspan=1>0.987</td></tr><tr><td rowspan=1 colspan=1>ROTATE 30</td><td rowspan=1 colspan=1>0.972</td><td rowspan=1 colspan=1>0.981</td></tr><tr><td rowspan=5 colspan=1>HIGH</td><td rowspan=1 colspan=1>HUEJITTER-0.5</td><td rowspan=1 colspan=1>0.966</td><td rowspan=1 colspan=1>0.978</td></tr><tr><td rowspan=1 colspan=1>HUEJITTER 0.5</td><td rowspan=1 colspan=1>0.967</td><td rowspan=1 colspan=1>0.972</td></tr><tr><td rowspan=1 colspan=1>VANILLA</td><td rowspan=1 colspan=1>0.988</td><td rowspan=1 colspan=1>0.989</td></tr><tr><td rowspan=1 colspan=1>ROTATE -90</td><td rowspan=1 colspan=1>0.892</td><td rowspan=1 colspan=1>0.932</td></tr><tr><td rowspan=1 colspan=1>ROTATE 90</td><td rowspan=1 colspan=1>0.866</td><td rowspan=1 colspan=1>0.932</td></tr></table>",
981
+ "bbox": [
982
+ 243,
983
+ 101,
984
+ 746,
985
+ 271
986
+ ],
987
+ "page_idx": 8
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "On knowledge transfer to completely new tasks. Finally, we investigate a scenario where the architecture distributions discovered by CA-FEDPNAS and FEDDSNAS are required to generalize to completely unseen tasks. Particularly, we train both methods on five clients whose local data consist of 12000 slightly rotated CIFAR-10 images (i.e., in the range of $\\pm 3 0 ^ { \\circ }$ ), similar to the setting of the first experiment. During testing, however, we supply each local client with 2000 test images subjected to related but completely unseen transformations (i.e., $9 0 °$ and $- 9 0 ^ { \\circ }$ rotations). ",
992
+ "bbox": [
993
+ 173,
994
+ 363,
995
+ 825,
996
+ 446
997
+ ],
998
+ "page_idx": 8
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "Our results are summarized in Table 2. First, we measure the performance of CA-FEDPNAS and FEDDSNAS without any weight retraining. When received no additional information from the unseen tasks, both methods perform poorly as expected. While CA-FEDPNAS achieves better predictive accuracy, the performance gap in this scenario is negligible. To provide additional clues for adaptation, albeit minimal, we retrain the weights of each local model with 200 images rotated according to respective unseen task description. Here, the parameters of our operator sampler component, (and respectively, FEDDSNAS’s categorical distribution parameters), are frozen to gauge the quality of the learned architecture distributions. Our results show that, with only 100 retraining iterations on limited data, CA-FEDPSNAS already outperforms FEDDSNAS $5 \\%$ and $8 \\%$ improvement respectively on two unseen tasks). This implies that CA-FEDPNAS has more accurately capture the broad similarity of the task spectrum through the personalized architecture distribution, which requires minimal additional information to successfully adapt to unseen tasks. ",
1003
+ "bbox": [
1004
+ 173,
1005
+ 454,
1006
+ 825,
1007
+ 621
1008
+ ],
1009
+ "page_idx": 8
1010
+ },
1011
+ {
1012
+ "type": "table",
1013
+ "img_path": "images/931c6f41e8c0f1bcdf0b86c0f96967d82b117c3a89c72d81dd70c8b1f642352b.jpg",
1014
+ "table_caption": [
1015
+ "Table 2: Predictive accuracy (averaged over 5 clients) and standard deviation of CA-FEDPNAS and FEDDSNAS on two unseen tasks (CIFAR-10). The best performance in each row is in bold font. "
1016
+ ],
1017
+ "table_footnote": [],
1018
+ "table_body": "<table><tr><td rowspan=1 colspan=1>UNSEEN TASKDESCRIPTION</td><td rowspan=1 colspan=1>FEDDSNAS</td><td rowspan=1 colspan=1>CA-FEDPNAS</td><td rowspan=1 colspan=1>FEDDSNAS(RETRAINED)</td><td rowspan=1 colspan=1>CA-FEDPNAS(RETRAINED)</td></tr><tr><td rowspan=1 colspan=1>ROTATE -90</td><td rowspan=1 colspan=1>0.545 ± 0.04</td><td rowspan=1 colspan=1>0.578 ± 0.09</td><td rowspan=1 colspan=1>0.699± 0.12</td><td rowspan=1 colspan=1>0.734 ± 0.17</td></tr><tr><td rowspan=1 colspan=1>ROTATE 90</td><td rowspan=1 colspan=1>0.553 ± 0.12</td><td rowspan=1 colspan=1>0.569 ± 0.06</td><td rowspan=1 colspan=1>0.673 ± 0.13</td><td rowspan=1 colspan=1>0.727 ± 0.22</td></tr></table>",
1019
+ "bbox": [
1020
+ 194,
1021
+ 633,
1022
+ 795,
1023
+ 694
1024
+ ],
1025
+ "page_idx": 8
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "5 CONCLUSION ",
1030
+ "text_level": 1,
1031
+ "bbox": [
1032
+ 174,
1033
+ 767,
1034
+ 318,
1035
+ 782
1036
+ ],
1037
+ "page_idx": 8
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "We demonstrate that federated learning for multi-task scenarios requires extensive personalization on the architecture level to obtain good predictive performance. This paper identifies two potential sources of model personalization: (1) task-personalization, which aims to select architectures best suited for specific learning objectives; and (2) context-personalization, which aims to select architectures best suited for specific input samples. To incorporate these aspects of personalization into Federated NAS, we propose FEDPNAS which consists of two main components: (1) a context-aware operator sampler which learns a sampling distribution for feature maps along a master architecture; and (2) a personalized federated learning objective which anticipates client fine-tuning and guides the federated model update to regions that tolerate future local updates. ",
1042
+ "bbox": [
1043
+ 173,
1044
+ 797,
1045
+ 825,
1046
+ 924
1047
+ ],
1048
+ "page_idx": 8
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "6 REPRODUCIBILITY & ETHIC STATEMENT ",
1053
+ "text_level": 1,
1054
+ "bbox": [
1055
+ 174,
1056
+ 102,
1057
+ 547,
1058
+ 118
1059
+ ],
1060
+ "page_idx": 9
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "This work contributes to the literature of Federated Learning through improving the state-of-theart performance. As such, it could have significant broader impact by allowing users to more accurately solve practical problems. While applications of our work to real data could result in ethical considerations, this is an indirect (and unpredictable) side-effect of our work. Our experimental work uses publicly available datasets to evaluate the performance of our algorithms; no ethical considerations are raised. Our implementation code is published anonymously at https://github.com/icml2021fedpnas/fedpnas. All proofs and details of various architectures are included in the Appendix of this paper. ",
1065
+ "bbox": [
1066
+ 174,
1067
+ 135,
1068
+ 825,
1069
+ 246
1070
+ ],
1071
+ "page_idx": 9
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "REFERENCES ",
1076
+ "text_level": 1,
1077
+ "bbox": [
1078
+ 174,
1079
+ 268,
1080
+ 285,
1081
+ 284
1082
+ ],
1083
+ "page_idx": 9
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "B. Baker, O. Gupta, N. Naik, and R. Raskar. Designing neural network architectures using reinforcement learning. arXiv preprint arXiv:1611.02167, 2016. \nJ. Bergstra, D. Yamins, and D. Cox. Making a science of model search: Hyperparameter optimization in hundreds of dimensions for vision architectures. In International conference on machine learning, pages 115–123. PMLR, 2013. \nA. Fallah, A. Mokhtari, and A. Ozdaglar. Personalized federated learning: Model-agnostic metalearning approach. In Proc. NeurIPS, 2020. \nC. Finn, P. Abbeel, and S. Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proc. ICML, pages 1126–1135, 2017. \nD. Floreano, P. Dürr, and C. Mattiussi. Neuroevolution: from architectures to learning. Evolutionary Intelligence, 1(1):47–62, 2008. \nJ. Hu, L. Shen, and G. Sun. Squeeze-and-excitation networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7132–7141, 2018. \nS. Hu, S. Xie, H. Zheng, C. Liu, J. Shi, X. Liu, and D. Lin. DSNAS: Direct neural architecture search without parameter retraining. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12084–12092, 2020. \nE. Jang, S. Gu, and B. Poole. Categorical reparameterization with gumbel-softmax. arXiv preprint arXiv:1611.01144, 2016. \nA. Krizhevsky et al. Learning multiple layers of features from tiny images. Citeseer, 2009. \nY. LeCun, C. Cortes, and C. Burges. Mnist handwritten digit database. ATT Labs [Online]. Available: http://yann. lecun. com/exdb/mnist, 2, 2010. \nH. B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas. Communication-efficient learning of deep networks from decentralized data. In Proc. AISTATS, pages 1273–1282, 2017. \nH. Pham, M. Y. Guan, B. Zoph, Q. V. Le, and J. Dean. Efficient neural architecture search via parameter sharing. arXiv preprint arXiv:1802.03268, 2018. \nE. Real, A. Aggarwal, Y. Huang, and Q. V. Le. Regularized evolution for image classifier architecture search. In Proceedings of the AAAI conference on Artificial Intelligence, volume 33, pages 4780–4789, 2019. \nS. Xie, H. Zheng, C. Liu, and L. Lin. SNAS: stochastic neural architecture search. arXiv preprint arXiv:1812.09926, 2018. \nB. Zoph and Q. V. Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016. ",
1088
+ "bbox": [
1089
+ 169,
1090
+ 286,
1091
+ 826,
1092
+ 929
1093
+ ],
1094
+ "page_idx": 9
1095
+ }
1096
+ ]
parse/dev/WcZUevpX3H3/WcZUevpX3H3_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/WcZUevpX3H3/WcZUevpX3H3_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/ex60CCi5GS/ex60CCi5GS.md ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Debiasing Graph Neural Networks via Learning Disentangled Causal Substructure
2
+
3
+ Shaohua Fan1,2∗, Xiao Wang1, Yanhu $\mathbf { M o } ^ { 1 }$ , Chuan Shi1†, Jian Tang2,3,4 †
4
+
5
+ 1Beijing University of Posts and Telecommunications, China 2 Mila - Québec AI Institute, Canada 3 HEC Montréal, Canada 4 CIFAR AI Research Chair {fanshaohua, xiaowang, moyanhu, shichuan}@bupt.edu.cn, jian.tang@hec.ca
6
+
7
+ # Abstract
8
+
9
+ Most Graph Neural Networks (GNNs) predict the labels of unseen graphs by learning the correlation between the input graphs and labels. However, by presenting a graph classification investigation on the training graphs with severe bias, surprisingly, we discover that GNNs always tend to explore the spurious correlations to make decision, even if the causal correlation always exists. This implies that existing GNNs trained on such biased datasets will suffer from poor generalization capability. By analyzing this problem in a causal view, we find that disentangling and decorrelating the causal and bias latent variables from the biased graphs are both crucial for debiasing. Inspired by this, we propose a general disentangled GNN framework to learn the causal substructure and bias substructure, respectively. Particularly, we design a parameterized edge mask generator to explicitly split the input graph into causal and bias subgraphs. Then two GNN modules supervised by causal/bias-aware loss functions respectively are trained to encode causal and bias subgraphs into their corresponding representations. With the disentangled representations, we synthesize the counterfactual unbiased training samples to further decorrelate causal and bias variables. Moreover, to better benchmark the severe bias problem, we construct three new graph datasets, which have controllable bias degrees and are easier to visualize and explain. Experimental results well demonstrate that our approach achieves superior generalization performance over existing baselines. Furthermore, owing to the learned edge mask, the proposed model has appealing interpretability and transferability.3
10
+
11
+ # 1 Introduction
12
+
13
+ Graph Neural Networks (GNNs) have exhibited powerful performance on graph data with various applications [17, 35, 13, 9, 8]. One major category of applications are the graph classification task, such as molecular graph property prediction [15, 20, 44], superpixel graph classification [14], and social network category classification [46, 44]. It is well known that graph classification is usually determined by a relevant substructure, but not the whole graph structure [43, 26, 45]. For example, for MNIST superpixel graph classification task, the digit subgraphs are causal (i.e., deterministic) for labels [36]. The mutagenic property of a molecular graph depends on the functional groups (i.e., nitrogen dioxide $\left( \mathrm { N O } _ { 2 } \right)$ ), rather than the irrelevant patterns (i.e., carbon rings) [27]. Therefore, it is a fundamental requirement for GNNs to identify causal substructures, so as to make correct prediction.
14
+
15
+ Ideally, when the graphs are unbiased, i.e., only the causal substructures are related with the graph labels, the GNNs are able to utilize such substructure to predict the labels. However, due to the uncontrollable data collection process, the graphs are inevitably biased, i.e., existing meaningless substructures spuriously correlates with labels. Taking a colored MNIST superpixel graph dataset in Sec. 3.1 as an example (illustrated in Fig. 1(a)), each category of digit subgraphs mainly correspond to one kind of color background subgraphs, e.g., digit 0 subgraph is related with red background subgraph. Therefore, the color background subgraph will be treated as bias information, which highly correlates with labels but does not determines them in the training set. Under this situation, will GNNs still stably utilize the causal substructure to make decision?
16
+
17
+ To investigate the impact of bias on GNNs, we conduct an experimental investigation to demonstrate the impact of bias (especially in the severe bias scenarios) on the generalization capability of GNNs (Sec. 3.1). We find that GNNs actually utilize both bias and causal substructures to make prediction. However, with severer bias correlation, even bias substructure still could not exactly determine labels like causal substructure, GNNs majorly utilize bias substructure as shortcuts to make prediction, causing a large generalization performance degradation. Why this happens? We analyze the datagenerating process and model prediction mechanism behind the graph classification using a causal graph (Sec. 3.2). The casual graph illustrates that the observed graphs are generated by the causal and bias latent variables and existing GNNs could not distinguish the causal substructure from entangled graphs. How can we disentangle the causal and bias substructures from observed graphs, so that GNNs can only utilize the causal substructures to make stable prediction when severe bias appears?
18
+
19
+ To address the question, two challenges need to be faced. 1) How to identify the causal substructure and bias substructure in the severe biased graphs? In the severe bias scenarios, bias substructure will be “easier to learn” for GNNs and finally dominate the prediction. Using the normal cross-entropy loss, like DIR [39], could not fully capture such aggressive property of bias. 2) How to extract the causal substructure from an entangled graph? The statistically causal substructure is usually determined by the global property of the entire graph population, rather than a single graph. When extracting causal substructure from a graph, we need to establish the relations among all the graphs.
20
+
21
+ In this paper, we propose a novel debiasing framework for GNNs via learning Disentangled Causal substructure, called DisC. Given an input biased graph, we propose to explicitly filter edges into causal and bias subgraphs by a parameterized edge mask generator, whose parameters are shared across entire graph population. As a result, the edge masker is naturally capable to specify the importance for each edge and extract causal and bias subgraphs from a global view of the entire observations. Then, a “casual”-aware (weighted cross-entropy) loss and a “bias”-aware (generalized cross-entropy) loss are respectively utilized to supervise two functional GNN modules. Based on the supervision, the edge mask generator could generate corresponding subgraphs and the GNNs could encode corresponding subgraphs into their disentangled embeddings. With the disentangled embeddings, we randomly permute the latent vectors extracted from different graphs to generate more unbiased counterfactual samples in embedding space. The new generated samples still contain both causal and bias information, while their correlation has been decorrelated. In this time, there is only correlation between causal variables with labels, so that the model could concentrate on the true correlation between the causal subgraphs and labels. Our major contributions are as follows:
22
+
23
+ • To our knowledge, we first study the generalization problem of GNNs in a more challenging yet practical scenario, i.e., the graphs are with severe bias. We systematically analyze the bias impact on GNNs from both experimental study and causal analysis. We find that the bias substructure, compared with causal substructure, is much easier to dominate the training of GNNs. • To debias GNNs, we develop a novel GNN framework for disentangling causal substructure, which is flexible to build upon various GNNs for improving generalization ability while enjoying inherent interpretability, robustness and transferability. • We construct three new datasets with various properties and controllable bias degrees, which can better benchmark the new problem. Our model outperforms the corresponding base models with a large margin (from $4 . 4 7 \%$ to $1 6 9 . 1 7 \%$ average improvements). Various investigation studies demonstrate that our model could discover and leverage causal substructure for prediction.
24
+
25
+ # 2 Related Works
26
+
27
+ Generalization of GNNs in wild environments. Most existing GNN methods are proposed under the IID hypothesis, i.e., training and testing set are independently sampled from the identical distribution [34, 17, 35, 13, 24]. However, in reality, thus ideal assumption is hard to be satisfied. Recently, several methods have been proposed to improve the generalization ability of GNNs in wild OOD environments. Several works [29, 7, 38] study the OOD problem of node classification. For OOD graph classification task, StableGNN [6] propose to learn the stable causal relationship in graphs. OOD-GNN [22] propose to constrain each dimension of learned embedding to be independent. DIR [39] discovers the invariant rationales for generalizing GNNs. Although they have achieved better OOD performance, they are not designed for the datasets with severe bias, which is more challenging for guaranteeing the generalization ability of GNNs.
28
+
29
+ Disentangled graph neural networks. Recently, there are a couple of methods that study the disentangled GNNs. DisenGCN [28] utilizes neighbourhood routing mechanism to divide the neighbours of the node into several mutually exclusive parts. IPGDN [25] promotes DisenGCN by constraining the different parts of the embedding feature to be independent. DisenGCN and IPGDN are node-level disentanglement, thus FactorGCN [42] considers the whole graph information and disentangles the target graph into several factorized graphs. Despite results of the previous works, they do not consider disentangling the causal and bias information for graphs.
30
+
31
+ General debiasing methods. Recently, debiasing problem has drawn much attention in machine learning community [16, 23, 33, 1, 2, 11]. One category of these methods is pre-defining a certain bias type explicitly to mitigate [16, 23, 33, 1, 37]. For example, Wang et al. [37] and Bahng et al. [1] design a texture- and color-guided model to adversarially train a debiased neural network against the biased one. Instead of defining certain types of bias, recent approaches [30, 5, 21] rely on the straightforward assumption that models are prone to exploit the bias as shortcuts to make prediction [10]. In the line with the recent studies, our study belongs to the second category. However, most of existing methods are designed for image datasets and could not effectively extract causal substructure from graph data. Distinctly, we first study the severe bias problem on graph data, and our method could effectively extract causal substructure from graph data.
32
+
33
+ ![](images/c2cd979b0472bec0aeb4ad871bccbf93e7ecb651572210a690085fba8ecfe079.jpg)
34
+ Figure 1: Example graphs of CMNIST-75sp and the performance of GNNs on this dataset.
35
+
36
+ # 3 Preliminary Study and Analysis
37
+
38
+ In this section, we first illustrate the existing GNNs tend to exploit the bias substructure as shortcuts for prediction through a motivating experiment. Then we analyze the prediction process of GNNs in causal view. Based on this causal view, it motivates our solution to relieve the impact of bias.
39
+
40
+ # 3.1 Motivating Example
41
+
42
+ To measure the generalization ability of GNNs with the effect of bias, we construct a graph classification dataset with controllable bias degrees, called CMNIST-75sp. We first construct a biased MNIST image dataset like [1], where each category of digit highly correlates with a pre-defined color in their background. For example, in the training set, $90 \%$ of 0 digits are with red background (i.e., biased samples), and remaining $10 \%$ images are with random background color (i.e., unbiased samples), whose the bias degree is 0.9 in this situation. We consider four bias degrees $\{ 0 . 8 , 0 . 8 5 , 0 . 9 , \bar { 0 } . 9 5 \}$
43
+
44
+ For the testing set, we construct both biased testing set and unbiased testing set. The biased testing set has the same bias degree with training set, aiming to measure the extent of models relying on bias. The unbiased testing set, where the digit labels uncorrelate with the background colors, aims to test whether the model could utilize the inherent digit signals for prediction. Note that training set and testing set have the same pre-defined color set. Then, we convert the biased MNIST images into superpixel graphs with at most 75 nodes each graph using [18], where the edges are constructed by the KNN method based on the 2D coordinates of superpixels and node features are the concatenation of coordinates and average color of superpixels. Each graph is labeled by its digit class, so that its digital subgraph is deterministic for label and background subgraph is spuriously correlated with labels but not deterministic. The examples of graphs are illustrated in Fig. 1(a).
45
+
46
+ We perform three popular GNN methods: GCN [17], GIN [41], and GCNII [3] on CMNIST-75sp and the results are shown in Fig. 1(b). The same color of dashed line and solid line represent the results of the corresponding methods on the biased testing set and the unbiased testing set respectively. Overall, the GNNs achieve much better performance on biased testing set than unbiased testing set. The phenomenon indicates that although GNNs could still learn some causal signals for prediction, the unexpected bias information is also being utilized for prediction. More specifically, with bias degree becoming larger, the performance of GNNs on biased testing set is increased and the value of accuracy is nearly in line with the bias degree, while the performance on unbiased testing drops dramatically. Hence, although causal substructure could determine labels perfectly, in severe bias scenarios, the GNNs lean to utilize the easier to learn bias information to make prediction rather than the inherent causal signals, and bias substructure will finally dominate the prediction.
47
+
48
+ ![](images/67725338102b285105a9f763243a8f05b40474959212b3e04391679918f3ad6a.jpg)
49
+ (a) SCM of the union of the (b) SCM of our debiasing GNN data generation and the existing method. GNNs’ prediction process.
50
+
51
+ Figure 2: SCMs. Grey and white variables represent unobserved and observed variables, respectively.
52
+
53
+ # 3.2 Problem Analysis
54
+
55
+ Debiasing GNNs for unbiased prediction requires understanding the natural mechanisms of graph classification task. We present a causal view of the union of the data-generating process and the model prediction process behind the task. Here we formalize the causal view as a Structure Causal Model (SCM) or causal graph [12, 31] by inspecting on the causalities among five variables: unobserved causal variable $C$ , unobserved bias variable $B$ , observed graph $G$ , graph embedding $E$ , and ground truth label / prediction $Y ^ { 4 }$ . Fig. 2(a) illustrates the SCM, where each link denotes a causal relationship.
56
+
57
+ • $C \right. G \left. B$ . The observed graph data is generated by two unobserved latent variables: the causal variable $C$ and the bias variable $B$ , such as digit subgraphs and background subgraphs in the CMNIST-75sp dataset. And all bellow relations are illustrated by CMNIST-75sp. • $C Y$ . This link means that the causal variable $C$ is the only endogenous parent to determine the generation of ground-truth label $Y$ . For example, $C$ is the oracle digit subgraph, which exactly explains why the label is labeled as $Y$ . • $C \ \ B$ . This link indicates the spurious correlation between $C$ and $B$ . Such probabilistic dependencies is usually caused by the direct cause or unobserved confounder [32]. Here we do not distinguish these scenarios and only observe the spurious correlation between $B$ and $C$ , such as the spurious correlation between the color background subgraphs and digit subgraphs.
58
+
59
+ • $G E Y$ . Existing GNNs usually learn the graph embedding $E$ based on the observed graph $G$ and make the prediction $Y$ based on the learned embedding $E$ .
60
+
61
+ According to the SCM, GNNs will utilize both information to make prediction. As bias substructure (e.g., background subgraph) usually has simpler structure than meaningful causal substructure (e.g., digit subgraph), if GNN utilizes such simple substructure, it could achieve low loss very fast. Hence, GNN inclines to utilizes bias information when most graphs are biased. Based on the SCM in Fig. 2(a), according to $d$ -connection theory [31] (see App. A): two variables are dependent if they are connected by at least one unblocked path, we could find two paths that would induce the spurious correlation between the bias variable $B$ and label $Y$ : (1) $\mathbf { B } \mathbf { G } \mathbf { E } \mathbf { Y }$ and (2) $\mathbf { B } \left. \bar { \mathbf { C } } \right. \mathbf { Y }$ . To make the prediction $Y$ being uncorrelated with the bias $B$ , we need to intercept the two unblocked paths. For this purpose, we propose to debias GNNs in causal view, as in Fig. 2(b).
62
+
63
+ • $C \left. G \right. B$ and $C Y$ . To intercept the path (1), we should disentangle the latent variables $C$ and $B$ from the observed graph $G$ and make prediction only based on the causal variable $C$ . • $C \ l \ l \textsc { - } B$ . To intercept the path (2), as we cannot change the link between $C$ and $Y$ , one possible solution is to make $C$ and $B$ uncorrelated.
64
+
65
+ # 4 Methodology
66
+
67
+ Motivated by the above causal analysis, in this section, we present our proposed debiasing GNN framework DisC, to remove the spurious correlation. The overall framework is shown in Fig. 3. First, an edge mask generator is learnt to mask the edges of original input graphs into causal subgraphs and bias subgraphs. Second, two separate GNN modules with their corresponding masked subgraphs are trained to encode corresponding causal substructure and bias substructure into disentangled representations, respectively. Last, after the disentangled representations are well-trained, we permute the bias representations among the training graphs to generate counterfactual unbiased samples, so that the correlation between causal representations and bias representations is removed.
68
+
69
+ ![](images/bcb625f1dae058895f389fa7bde99c8f6e961d0b84a718b48473b2ff85e97e50.jpg)
70
+ Figure 3: The overall framework of DisC.
71
+
72
+ # 4.1 Causal and Bias Substructure Generator
73
+
74
+ Given a mini-batch of biased graphs ${ \mathcal { G } } = \{ G _ { 1 } , \cdots , G _ { n } \}$ , our idea is that: we take a collection of graph instances and design a generative probabilistic model to learn to mask the edges into causal subgraph or bias subgraph. Particularly, given a graph $G = \left\{ \mathbf { A } , \mathbf { X } \right\}$ , where $\mathbf { A }$ is the adjacency matrix and $\mathbf { X }$ is the node feature matrix, we utilize a multi-layer perceptron (MLP) upon the concatenation of node features $\mathbf { x } _ { i }$ of node $i$ and $\mathbf { x } _ { j }$ of node $j$ to measure the importance of edge $( i , j )$ for causal subgraph:
75
+
76
+ $$
77
+ \alpha _ { i j } = \mathbf { M L P } ( [ \mathbf { x } _ { i } , \mathbf { x } _ { j } ] ) .
78
+ $$
79
+
80
+ Then a sigmoid function $\sigma ( \cdot )$ is employed to project $\alpha _ { i j }$ into the range of (0,1), which indicates the probability of edge $( i , j )$ being the edge in the causal subgraph as follows:
81
+
82
+ $$
83
+ c _ { i j } = \sigma ( \alpha _ { i j } ) .
84
+ $$
85
+
86
+ Naturally, we could get the probability of edge $( i , j )$ being the edge in the bias subgraph by: $b _ { i j } = 1 - c _ { i j }$ . Now we could construct the causal edge mask $\mathbf { M } _ { c } \bar { \mathbf { \eta } } = \left[ c _ { i j } \right]$ and bias edge mask $\begin{array} { r } { \mathbf { M } _ { b } = [ b _ { i j } ] } \end{array}$ . Finally, we decompose the original graph $G$ into causal subgraph $G _ { c } = \{ \mathbf { M } _ { c } \odot \mathbf { A } , \mathbf { X } \}$ and bias subgraph $G _ { b } = \{ { \bf M } _ { b } \odot { \bf A } , { \bf X } \}$ . Intuitively, the edge mask could highlight different part of structure information of original graphs, thus GNNs built on the different subgraphs could encode different parts of graph information. Moreover, the mask generator has two advantages. (1) Global view: In individual graph level, the mask generator (i.e., MLP), whose parameters are shared by all the edges in a graph, take a global view of all the edges in a graph, which enables us to identify community in graph. It is well known that the effect of an edge cannot be judged independently, because edges usually collaborate with each other, forming a community, to make prediction. Thus, it is critical to evaluate an edge in a global view. In whole graph population level, the mask generator takes a global view of all the graphs in the training set, which enables us to identify causal/bias subgraph. Particularly, as the causal/bias is the statistical information in the population level, it is necessary to view all the graphs to identify the causal/bias substructure. Considering both such coalition effects and population-level statistical information, the generator is able to measure the importance of edges more accurately. (2) Generalization: The mask generator can generalize the mechanism of mask generation to new graphs without retraining, so it is capable and efficient to prune unseen graphs.
87
+
88
+ # 4.2 Learning Disentangled Graph Representations
89
+
90
+ Given $G _ { c }$ and $G _ { b }$ , how to ensure they are causal subgraph and bias subgraph, respectively? Inspired by [21], our approach simultaneously trains a pair of GNNs $( g _ { b } , g _ { c } )$ with linear classifiers $( C _ { b } ^ { - } , C _ { c } )$ as follows: (1) Motivated by the observation in Sec. 3.1 that bias substructure is easier to learn, we utilize a bias-aware loss to train a bias $\mathrm { G N N } g _ { b }$ and a bias classifier $C _ { b }$ and (2) in contrast, we train a causal $\mathrm { G N N } _ { g _ { c } }$ and a causal classifier $C _ { c }$ on the training graphs that the bias GNN struggles to learn. Next, we would present each component in detail.
91
+
92
+ As shown in Fig. 3, GNN $g _ { c }$ and $g _ { b }$ embed the corresponding subgraphs into causal embedding $z _ { c } = g _ { c } ( G _ { c } ; \gamma _ { c } )$ and bias embedding $z _ { b } = g _ { b } ( G _ { b } ; \gamma _ { b } )$ , respectively, where $\gamma$ is the parameters of GNNs. Subsequently, concatenated vector $z = \left[ z _ { c } ; z _ { b } \right]$ is fed into linear classifiers $C _ { c }$ and $C _ { b }$ to predict the target label $y$ . To train $g _ { b }$ and $C _ { b }$ as bias extractor, we utilize the generalized cross entropy (GCE) [47] loss to amplify the bias of the bias GNN and classifier:
93
+
94
+ $$
95
+ G C E ( C _ { b } ( z ; \alpha _ { b } ) , y ) = \frac { 1 - C _ { b } ^ { y } ( z ; \alpha _ { b } ) ^ { q } } { q } ,
96
+ $$
97
+
98
+ where $C _ { b } ( z ; \alpha _ { b } )$ and $C _ { b } ^ { y } ( z ; \alpha _ { b } )$ are softmax output of the bias classifier and its probability belonging to the target category $y$ , respectively, and $\alpha$ is the parameters of classifier. Here $q \in ( 0 , 1 ]$ is a hyperparameter that controls the degree of amplifying bias. Given $\theta _ { b } = [ \gamma _ { b } , \alpha _ { b } ]$ , the gradient of the GCE loss up-weights the gradient of the standard cross entropy (CE) loss for the samples with a high confidence $\dot { \boldsymbol { C } } _ { b } ^ { y }$ of predicting the correct target category as follows:
99
+
100
+ $$
101
+ \frac { \partial G C E ( C _ { b } ( z ; \alpha _ { b } ) , y ) } { \partial \theta _ { b } } = ( C _ { b } ^ { y } ) ^ { q } \frac { \partial C E ( C _ { b } ( z ; \alpha _ { b } ) , y ) } { \partial \theta _ { b } } .
102
+ $$
103
+
104
+ Therefore, compared with CE loss, GCE loss will amplify the gradients of $\theta _ { b }$ on samples by the confidence score $( C _ { b } ^ { y } ) ^ { q }$ . Based on our observation that the bias information is usually easier to be learned, so the biased graphs will have higher $( C _ { b } ^ { y } ) ^ { q }$ than unbiased graphs. Therefore, the model $g _ { b }$ and $C _ { b }$ trained by GCE loss will focus on bias information and finally get the bias subgraph. Note that, to ensure that $C _ { b }$ predicts target labels mainly based on this $z _ { b }$ , the loss from $C _ { b }$ is not backpropagated to $g _ { c }$ , i.e., only update $\theta _ { b }$ in Eq. (4), and vice versa.
105
+
106
+ Meanwhile, we also train a causal GNN simultaneously with the weighted CE loss. The graphs with high CE loss from $C _ { b }$ can be regarded as the unbiased samples compared with the samples with low CE loss. In this regard, we could obtain the unbias score of each graph as
107
+
108
+ $$
109
+ W ( z ) = \frac { C E ( C _ { b } ( z ) , y ) } { C E ( C _ { c } ( z ) , y ) + C E ( C _ { b } ( z ) , y ) } .
110
+ $$
111
+
112
+ Large value of $W$ implies the graph is an unbiased sample, hence we could use these weights to reweight the loss of these graphs to train $g _ { c }$ and $C _ { c }$ , enforcing them to learn the unbiased information. Thus, the objective function for learning disentangled representation is:
113
+
114
+ $$
115
+ L _ { D } = W ( z ) C E ( C _ { c } ( z ) , y ) + G C E ( C _ { b } ( z ) , y ) .
116
+ $$
117
+
118
+ # 4.3 Counterfactual Unbiased Sample Generation
119
+
120
+ Until now, we have achieved the first goal analyzed in Sec. 3.2 that is the disentanglement of causal and bias substructures. Next, we will show how to achieve the second goal that makes the causal variable $z _ { c }$ and bias variable $z _ { b }$ uncorrelated. Although we have disentangled causal and bias information, they are disentangled from the biased observed graphs. Hence, there will exist statistical correlation between causal and bias variables inheriting from the biased observed graphs. To further decorrelate $z _ { c }$ and $z _ { b }$ , according to the causal relation of data-generating process: $C \right. G \left. B$ , we propose to generate the counterfactual unbiased samples in embedding space by swapping $z _ { b }$ . More specifically, we randomly permute bias vectors in each mini-batch and obtain $z _ { u n b i a s e d } = [ z _ { c } ; \hat { z _ { b } } ] .$ where $\hat { z _ { b } }$ represents the randomly permuted bias vectors of $z _ { b }$ . As $z _ { c }$ and $\hat { z } _ { b }$ in $z _ { u n b i a s e d }$ are randomly combined from different graphs, they will have much less correlation than $\boldsymbol { z } = \left[ z _ { c } ; z _ { b } \right]$ where both are from the same graph. To make $g _ { b }$ and $C _ { b }$ still focus on the bias information, we also swap label $y$ as $\hat { y }$ along with $\hat { z _ { b } }$ , so that the spurious correlation between $\hat { z _ { b } }$ and $\hat { y }$ still exists. With the generated unbiased samples, we utilize the following loss function to train two GNN modules:
121
+
122
+ $$
123
+ { \cal L } _ { G } = W ( z ) C E ( C _ { c } ( z _ { u n b i a s e d } ) , y ) + G C E ( C _ { b } ( z _ { u n b i a s e d } ) , \hat { y } ) ,
124
+ $$
125
+
126
+ Together with the disentanglement loss, total loss function is defined as:
127
+
128
+ $$
129
+ { \cal L } = { \cal L } _ { D } + \lambda _ { G } { \cal L } _ { G } ,
130
+ $$
131
+
132
+ where $\lambda _ { G }$ is a hyperparameter for weighting the importance of generation component. Moreover, training with more diverse samples would also benefit with better generalization on unseen testing scenarios. Our approach is summarized in App. B. Note that, as we need well-disentangled representations to generate the high-quality unbiased samples, in the early stage of training, we only train the model with $L _ { D }$ . After certain epochs, we train the model with $L$ .
133
+
134
+ # 5 Experiment
135
+
136
+ Datasets. We construct three datasets with various properties and bias ratios to benchmark this new problem, where the datasets have clear causal subgraphs making the results explainable. Following CMNIST-75sp introduced in Sec. 3.1, we use the similar way to construct CFashion-75sp and CKuzushiji-75sp datasets based on the Fashion-MNIST [40] and Kuzushiji-MNIST [4] datasets. As the causal subgraphs of these two datasets are more complicated (fashion product and hiragana characters), they are more challenging. Due to the page limits, here we set bias degrees as $\{ 0 . 8 , 0 . 9 , 0 . 9 5 \}$ . We report the main results on unbiased test sets. Details are in App. C.1.
137
+
138
+ Baselines and experimental setup. As DisC is a general framework which could be built on various base GNN models, we select three popular GNNs: GCN [17], GIN [41], and GCNII [3]. The corresponding models are termed as $\mathrm { D i s C } _ { G C N }$ , $\mathrm { D i s C } _ { G I N }$ and $\mathrm { D i s C } _ { G C N I I }$ , respectively. Hence, base models are the most straight baselines. Another kind of baselines are the causal-inspired GNN method DIR [39] and StableGNN [6]. We also compare against a general debiasing method LDD [21] by replacing its encoder with GNNs. Graph Pooling method DiffPool [44] and graph disentangling method FactorGCN [42] are also compared. To keep fair comparison, our model uses the same GNN architecture and hyperparameters with the corresponding base model. All the experiments are run 4 times with different random seeds and we report the accuracy and the standard error. More details are in App. C.2.
139
+
140
+ # 5.1 Quantitative Evaluation
141
+
142
+ Main results. The overall results are summarized in Table 1, and we have following observations:
143
+
144
+ (1) DisC has much better generalization ability than base models. DisC outperforms the corresponding base model consistently with a large margin. With heavier biases, our model achieves larger improvements over base models. Specifically, for CMNIST-75sp, CFashion-75sp and CKuzushiji-75sp with smaller bias degree (i.e., 0.8), our model achieves $4 0 . 0 2 \%$ , $4 . 4 7 \%$ and $2 9 . 8 2 \%$ average improvements over corresponding base models, respectively. Surprisingly, with severer biases (0.9 and 0.95), DisC achieves $1 6 9 . 1 7 \%$ , $1 4 . 6 7 \%$ and $4 9 . 3 5 \%$ average improvements over base models on three datasets, respectively. It indicates that the proposed method is a general framework helping existing GNNs against the negative impact of bias.
145
+
146
+ (2) DisC significantly outperforms existing debiasing methods. We notice that DIR could not achieve satisfying results. The reason is that DIR utilizes CE loss to extract bias information, which could not fully capture the property of bias in severe bias scenarios. And DIR sets one fixed threshold to spilt subgraphs, which is suboptimal. StableGNN outperforms their base model DiffPool and achieve competitive results, indicating the effectiveness of their proposed causal variable distinguishing regularizer. However, their framework adjusts data distribution based on the original dataset, it is hard to generate unbiased distribution when the unbiased samples are scarce. DisC could generate more unbiased samples based on the disentangled representations. Moreover, LDD is a general debiasing method which is not designed for graph data. DisC outperforms corresponding LDD variants with average $2 3 . 1 5 \%$ , indicating that the seamless joint of global-population-aware edge masker with debiasing disentangle framework is very effective.
147
+
148
+ Table 1: Graph classification accuracy evaluated on unbiased testing sets, which have same color (bias) set with training set. The best performance within each base model variant is in bold.
149
+
150
+ <table><tr><td rowspan="2">Dataset Bias</td><td colspan="3">CMNIST-75sp</td><td colspan="3">CFashion-75sp</td><td colspan="3">CKuzushiji-75sp</td></tr><tr><td>0.8</td><td>0.9</td><td>0.95</td><td>0.8</td><td>0.9</td><td>0.95</td><td>0.8</td><td>0.9</td><td>0.95</td></tr><tr><td>FactorGCN [42]</td><td>72.30±1.18</td><td>62.35±5.07</td><td>42.50±4.91</td><td>61.23±1.11</td><td>53.50±1.29</td><td>45.78±2.40</td><td>42.87±1.19</td><td>32.35±2.79</td><td>23.87±0.12</td></tr><tr><td>DiffPool [44]</td><td>73.79±0.02</td><td>66.45±0.78</td><td>47.12±1.04</td><td>62.82±0.53</td><td>57.50±0.39</td><td>50.86±0.20</td><td>45.46±0.65</td><td>36.18±0.19</td><td>27.45±0.26</td></tr><tr><td>DIR [39]</td><td>9.98±0.33</td><td>9.96±0.23</td><td>10.03±0.27</td><td>13.02±1.92</td><td>12.80±1.67</td><td>11.98±1.41</td><td>10.35±0.32</td><td>10.72±0.27</td><td>10.59±0.46</td></tr><tr><td>StableGNN [6]</td><td>77.65±1.64</td><td>68.87±1.74</td><td>51.33±0.87</td><td>64.03±0.29</td><td>58.26±0.09</td><td>51.46±0.39</td><td>49.41±0.09</td><td>39.30±0.12</td><td>28.26±0.14</td></tr><tr><td>LDDGCN[21]</td><td>64.95±1.22</td><td>56.65±2.18</td><td>46.83±2.88</td><td>63.85±1.17</td><td>64.30±0.89</td><td>62.28±0.48</td><td>42.38±0.33</td><td>38.75±0.49</td><td>33.08±0.59</td></tr><tr><td>LDDGIN[21]</td><td>64.88±1.45</td><td>50.59±1.07</td><td>31.23±2.48</td><td>64.65±0.63</td><td>57.10±0.43</td><td>53.38±0.47</td><td>37.83±0.54</td><td>28.97±0.18</td><td>22.13±0.34</td></tr><tr><td>LDDGCNII [21]</td><td>78.03±0.66</td><td>69.53±0.96</td><td>51.05±3.87</td><td>50.63±1.79</td><td>54.09±2.54</td><td>57.93±0.88</td><td>48.70±1.98</td><td>41.59±1.07</td><td>33.93±0.71</td></tr><tr><td>GCN[17]</td><td>50.43±4.13</td><td>28.97±4.4</td><td>13.50±1.38</td><td>63.60±0.53</td><td>57.22±0.93</td><td>47.69±0.42</td><td>38.45±1.1</td><td>28.35±0.79</td><td>20.70±0.88</td></tr><tr><td>DisCGCN</td><td>82.60±0.93</td><td>78.14±2.14</td><td>63.47±5.65</td><td>66.85±1.11</td><td>65.33±4.70</td><td>63.93±1.50</td><td>55.53±2.29</td><td>48.13±2.59</td><td>36.63±1.73</td></tr><tr><td>GIN [41]</td><td>57.75±0.78</td><td>36.78±5.55</td><td>16.04±1.14</td><td>64.25±0.46</td><td>58.03±0.40</td><td>49.74±0.60</td><td>41.83±0.78</td><td>30.09±0.87</td><td>21.18±1.63</td></tr><tr><td>DisCGIN</td><td>82.10±1.50</td><td>74.90±1.81</td><td>58.58±4.24</td><td>67.10±1.07</td><td>59.90±1.31</td><td>55.80±0.36</td><td>55.18±1.00</td><td>41.75±0.81</td><td>30.25±1.63</td></tr><tr><td>GCNII [3]</td><td>69.70±1.73</td><td>57.68±1.68</td><td>41.00±3.75</td><td>66.68±0.59</td><td>60.58±0.28</td><td>53.18±0.08</td><td>48.53±0.25</td><td>36.23±0.20</td><td>25.60±0.76</td></tr><tr><td>DisCGCNII</td><td>79.50±2.48</td><td>76.00±1.90</td><td>60.54±5.33</td><td>66.47±1.77</td><td>65.48±0.70</td><td>61.75±0.27</td><td>54.90±1.30</td><td>44.73±1.55</td><td>36.95±0.70</td></tr></table>
151
+
152
+ Ablation studies. To validate the importance of each module in our method, in Fig. 4, we conduct ablation studies on our variants (w.o. G means without the sample generation module) and the related variants of LDD. The major difference between DisC/w.o. G with LDD /w.o. G is the edge mask module. In most cases, DisC/w.o. G significantly outperforms LDD /w.o. G, indicating the necessity of learning edge mask for graph data. And DisC which has counterfactual sample generation module could further boost the performances based on the disentangled embeddings of DisC/w.o. G. However, LDD seldomly outperforms LDD /w.o. G or even achieves worse performances. That is, generating high-quality counterfactual samples needs well-disentangled causal and bias embeddings. If embeddings are not well-disentangled, counterfactual samples may act as noisy samples, which would prevent models from achieving further improvement. The edge masker could help the model generate well-disentangled embeddings, which is crucial for overall performance.
153
+
154
+ ![](images/a0e110950764af9cb15bcd44f9149686964d2d2dbbc914f554282cc321f7d710.jpg)
155
+ Figure 4: Ablation studies of the DisC vs. LDD average over three bias degrees of each dataset.
156
+
157
+ Robustness on unseen bias. Table 2 reports the results of DisC compared with its corresponding base models on testing set with unseen bias, i.e., the pre-defined color (bias) sets of training set and testing set are disjoint. The performances of base models further drop compared with the results on seen bias scenario in Table 1. However, our model still achieves very stable performances, fully demonstrating the generalization ability of our model on agnostic bias scenario.
158
+
159
+ Hyperparameter experiments Fig. 5 is the hyperparameter experiments of the degree of amplifying bias $q$ in GCE loss and the importance of generation component $\lambda _ { G }$ . For $q$ , we fix $\lambda _ { G } = 1 0$ and vary $q$ from $\{ 0 . 1 , 0 . 3 , 0 . 5 , 0 . 7 , 0 . 9 \}$ . For $\lambda _ { G }$ , we fix $q = 0 . 7$ and vary $\lambda _ { G }$ from $\{ 1 , 5 , 1 0 , 1 5 \}$ . From the results, we can see that our model achieves stable performance across different values of $q$ and $\lambda _ { G }$ . When $q = 0 . 1$ , it means the GCE loss will nearly reduce to normal CE loss. We can see the performance of $\mathrm { D i s C } _ { G C N }$ is worse than other scenarios, demonstrating the effectiveness of utilizing GCE loss.
160
+
161
+ Table 2: The results on unseen unbiased testing sets, i.e., the color has not been seen in training set.
162
+
163
+ <table><tr><td rowspan="2">Dataset Bias</td><td colspan="3">CMNIST-75sp</td><td colspan="3">CFashion-75sp</td><td colspan="3">CKuzushiji-75sp</td></tr><tr><td>0.8</td><td>0.9</td><td>0.95</td><td>0.8</td><td>0.9</td><td>0.95</td><td>0.8</td><td>0.9</td><td>0.95</td></tr><tr><td>DIR</td><td>10.38±0.28</td><td>10.14±0.40</td><td>9.77±0.18</td><td>16.77±1.71</td><td>16.51±3.20</td><td>12.59±1.61</td><td>10.48±0.34</td><td>10.33±0.75</td><td>10.59±0.95</td></tr><tr><td>GCN</td><td>36.88±5.16</td><td>23.07±4.07</td><td>11.88±0.33</td><td>59.33±0.55</td><td>53.65±0.47</td><td>45.60±1.06</td><td>36.35±0.48</td><td>27.88±0.94</td><td>19.95±0.67</td></tr><tr><td>DisCGCN</td><td>82.73±1.31</td><td>77.70±0.87</td><td>65.48±0.76</td><td>67.9±1.45</td><td>68.28±0.18</td><td>63.77±1.37</td><td>57.80±2.38</td><td>51.60±0.41</td><td>41.60±3.94</td></tr><tr><td>GIN</td><td>48.93±2.99</td><td>34.95±0.86</td><td>14.53±0.97</td><td>58.88±0.57</td><td>53.80±0.52</td><td>48.43±0.69</td><td>39.25±0.57</td><td>30.75±1.45</td><td>22.35±0.86</td></tr><tr><td>DisCGIN</td><td>77.80±1.33</td><td>73.00±0.61</td><td>58.80±1.66</td><td>67.15±0.79</td><td>59.98±0.62</td><td>51.70±0.34</td><td></td><td></td><td>55.47±0.98 43.20±1.36 31.33±1.71</td></tr><tr><td>GCNII</td><td>53.50±6.23</td><td>45.52±2.26</td><td>32.6±5.66</td><td>58.85±1.89</td><td>53.98±0.85</td><td>46.97±1.38</td><td>39.93±0.88</td><td>30.33±1.17</td><td>23.09±1.83</td></tr><tr><td>DisCGCNII</td><td>79.65±2.13</td><td>76.63±1.3860.00±5.66</td><td></td><td></td><td></td><td>60.50±2.77 63.05±2.2561.78±1.60</td><td></td><td>56.23±3.4549.10±2.05</td><td>41.05±0.11</td></tr></table>
164
+
165
+ ![](images/8e496cbb6ae8e9942e5b95edadf4f703867ebb55af480ec526acdfcf4e3dab1a.jpg)
166
+ Figure 5: The hyperparameter experiments of $q$ and $\lambda _ { G }$
167
+
168
+ # 5.2 Qualitative Evaluation
169
+
170
+ Visualization of edge mask. To better illustrate the significant causal and bias subgraphs extracted by $\mathrm { D i s C } _ { G C N }$ , we visualize the original images, original graph, and corresponding causal subgraph and bias subgraph of CMNIST-75sp with 0.9 bias degree in Fig. 6, where the width of edge represents the value of learned weight $c _ { i j }$ or $b _ { i j }$ . Fig. 6(a) shows the visualization results of testing graphs with the bias (color) that has been seen in the training set. As we can see, our model could discover the causal subgraphs where the most salient edges are in the digital subgraphs. With these causal subgraphs that highlight the structure information of digital, the GNNs will more easily extract this causal information. Fig. 6(b) shows the visualization results of testing graphs with unseen bias. According to the visualization, our model could still discover the causal subgraph outline, indicating our model could recognize causal subgraphs, whether the bias is seen or unseen. The visualization results of CFashion-75sp and CKuzushiji-75sp are shown in App. D.
171
+
172
+ ![](images/c8175449c2701658e4017be825905cdeb3e231c2d6376d79873c1c752212b81e.jpg)
173
+ OriginalimageOriginal graph Causalsubgraph BiasedsubgraphOriginalimageOriginal graph CausalsubgraphBiased subgraph
174
+ Figure 6: Visualization of subgraphs extracted by DisC. The width of edge is edge weight $c _ { i j }$ or $b _ { i j }$
175
+
176
+ Projection of disentangled representation. Fig. 7 shows the projection of latent vectors $z _ { c }$ and $z _ { b }$ extracted from the causal GNN $g _ { c }$ and bias GNN $g _ { b }$ of $\mathrm { D i s C } _ { G C N }$ , respectively, using t-SNE [19] on
177
+
178
+ ![](images/221d0d59bdbf86e2589c0ab453c12e80f215382da65ad5e2230b4b84b9a9acaa.jpg)
179
+ Figure 7: Visualization of $z _ { c }$ and $z _ { b }$ with colors labeled by the digit and bias (color) labels. We observe that $z _ { c }$ and $z _ { b }$ are well clustered according to the groundtruth labels and bias labels, respectively.
180
+
181
+ CMNIST-75sp. Fig. 7 (a-b) are the projections of $z _ { c }$ labeled by the target labels (digit) and bias labels (color), respectively. Fig. 7 (c-d) are the projections of $z _ { b }$ labeled by the target labels and bias labels, respectively. We observe that $z _ { c }$ are clustered according to the target labels while $z _ { b }$ are clustered with the bias labels. And $z _ { c }$ are mixed with bias labels and $z _ { b }$ are mixed with target labels. The results indicate that DisC successfully learns the disentangled causal and bias representations.
182
+
183
+ Transferability of the learned mask. As our model could extract GNN-independent subgraphs, the learning edge weights can be used to purify original biased graphs. These sparse subgraphs represent significant semantic information and can be universally transferred to any GNNs. To validate this point, we learn the edge mask by $\mathrm { D i s C } _ { G C N }$ and prune the edges with least $\{ 0 \% , 2 0 \% , 4 0 \% , 6 0 \% \}$ weights while keeping the remaining edge weights. Then we train vanilla GIN and GCNII on these weighted pruned datasets. Fig. 8 is the comparison of the results, where the dashed lines represent the results of base model on original biased graphs and the solid lines represent the performance of GNNs on weighted pruned datasets. The results show that the GNNs trained on the pruned datasets achieve better performances, indicating our learned edge mask has considerable transferability.
184
+
185
+ ![](images/18fa05e618bc66f5ba05c2bab230902cd658bb98fb76ae415b1a2efbc238f5f0.jpg)
186
+ Figure 8: Performance of GIN and GCNII on the weighted pruned graphs found by $\mathrm { D i s C } _ { G C N }$ .
187
+
188
+ # 6 Conclusion
189
+
190
+ In this paper, we are first to study the generalization problem of GNNs on severe bias datasets, which is crucial to study the transparently knowledge learning mechanism of GNNs. We analyze the problem in a causal view that the generalization of GNNs will be hindered by entangled representations as well as the correlation between causal and bias variables. To remove the impact from these two aspects, we propose a general disentangling framework, DisC, which extracts causal substructure and bias substructure by two different functional GNNs, respectively. After the representations are well-disentangled, we proliferate the counterfactual unbiased samples by randomly swapping the disentangled vectors. With the new constructed benchmarks, we clearly validate the effectiveness, robustness, interpretability, and transferability of our method.
191
+
192
+ # Acknowledgments and Disclosure of Funding
193
+
194
+ This work is supported in part by the National Natural Science Foundation of China (No. U20B2045, 62192784, 62172052, 62002029, 62172052, U1936014). This work is also partially supported by the Natural Sciences and Engineering Research Council (NSERC) Discovery Grant, the Canada CIFAR AI Chair Program, collaboration grants between Microsoft Research and Mila, Samsung Electronics Co., Ltd., Amazon Faculty Research Award, Tencent AI Lab Rhino-Bird Gift Fund and a NRC Collaborative R&D Project (AI4D-CORE-06). This project was also partially funded by IVADO Fundamental Research Project grant PRF-2019- 3583139727. The work of Shaohua Fan is supported by the China Scholarship Council (No.202006470078). The computation resource of this project is supported by Compute Canada .
195
+
196
+ References
197
+ [1] Hyojin Bahng, Sanghyuk Chun, Sangdoo Yun, Jaegul Choo, and Seong Joon Oh. Learning de-biased representations with biased representations. In ICML, 2020. [2] Remi Cadene, Corentin Dancette, Matthieu Cord, Devi Parikh, et al. Rubi: Reducing unimodal biases for visual question answering. In NeurIPS, 2019.
198
+ [3] Ming Chen, Zhewei Wei, Zengfeng Huang, Bolin Ding, and Yaliang Li. Simple and deep graph convolutional networks. In ICML, 2020. [4] Tarin Clanuwat, Mikel Bober-Irizar, Asanobu Kitamoto, Alex Lamb, Kazuaki Yamamoto, and David Ha. Deep learning for classical japanese literature. arXiv preprint arXiv:1812.01718, 2018.
199
+ [5] Luke Darlow, Stanisław Jastrz˛ebski, and Amos Storkey. Latent adversarial debiasing: Mitigating collider bias in deep neural networks. arXiv preprint arXiv:2011.11486, 2020. [6] Shaohua Fan, Xiao Wang, Chuan Shi, Peng Cui, and Bai Wang. Generalizing graph neural networks on out-of-distribution graphs. In arXiv preprint arXiv:2111.10657, 2021. [7] Shaohua Fan, Xiao Wang, Chuan Shi, Kun Kuang, Nian Liu, and Bai Wang. Debiased graph neural networks with agnostic label selection bias. TNNLS, 2022. [8] Shaohua Fan, Xiao Wang, Chuan Shi, Emiao Lu, Ken Lin, and Bai Wang. One2multi graph autoencoder for multi-view graph clustering. In WWW, pages 3070–3076, 2020.
200
+ [9] Shaohua Fan, Junxiong Zhu, Xiaotian Han, Chuan Shi, Linmei Hu, Biyu Ma, and Yongliang Li. Metapath-guided heterogeneous graph neural network for intent recommendation. In SIGKDD, pages 2478–2486, 2019.
201
+ [10] Robert Geirhos, Jörn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, Matthias Bethge, and Felix A Wichmann. Shortcut learning in deep neural networks. Nature Machine Intelligence, 2(11):665–673, 2020.
202
+ [11] Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018.
203
+ [12] Madelyn Glymour, Judea Pearl, and Nicholas P Jewell. Causal inference in statistics: A primer. John Wiley & Sons, 2016.
204
+ [13] Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In NeurIPS, 2017.
205
+ [14] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019.
206
+ [15] Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. In NeurIPS, 2020.
207
+ [16] Byungju Kim, Hyunwoo Kim, Kyungsu Kim, Sungjin Kim, and Junmo Kim. Learning not to learn: Training deep neural networks with biased data. In CVPR, 2019.
208
+ [17] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2016.
209
+ [18] Boris Knyazev, Graham W Taylor, and Mohamed Amer. Understanding attention and generalization in graph neural networks. In NeurIPS, 2019.
210
+ [19] G.E. Kvan der Maaten, L.J.P.; Hinton. Understanding attention and generalization in graph neural networks. Journal of Machine Learning Research, 2008.
211
+ [20] John Boaz Lee, Ryan Rossi, and Xiangnan Kong. Graph classification using structural attention. In SIGKDD, 2018.
212
+ [21] Jungsoo Lee, Eungyeup Kim, Juyoung Lee, Jihyeon Lee, and Jaegul Choo. Learning debiased representation via disentangled feature augmentation. In NeurIPS, 2021.
213
+ [22] Haoyang Li, Xin Wang, Ziwei Zhang, and Wenwu Zhu. Ood-gnn: Out-of-distribution generalized graph neural network. arXiv preprint arXiv:2112.03806, 2021.
214
+ [23] Yi Li and Nuno Vasconcelos. Repair: Removing representation bias by dataset resampling. In CVPR, 2019.
215
+ [24] Renjie Liao, Raquel Urtasun, and Richard Zemel. A pac-bayesian approach to generalization bounds for graph neural networks. In ICLR, 2020.
216
+ [25] Yanbei Liu, Xiao Wang, Shu Wu, and Zhitao Xiao. Independence promoted graph disentangled networks. In AAAI, 2020.
217
+ [26] Ana Lucic, Maartje ter Hoeve, Gabriele Tolomei, Maarten de Rijke, and Fabrizio Silvestri. Cf-gnnexplainer: Counterfactual explanations for graph neural networks. In AISTATS, 2022.
218
+ [27] Dongsheng Luo, Wei Cheng, Dongkuan Xu, Wenchao Yu, Bo Zong, Haifeng Chen, and Xiang Zhang. Parameterized explainer for graph neural network. In NeurIPS, 2020.
219
+ [28] Jianxin Ma, Peng Cui, Kun Kuang, Xin Wang, and Wenwu Zhu. Disentangled graph convolutional networks. In ICML, pages 4212–4221. PMLR, 2019.
220
+ [29] Jiaqi Ma, Junwei Deng, and Qiaozhu Mei. Subgroup generalization and fairness of graph neural networks. In NeurIPS, 2021.
221
+ [30] Junhyun Nam, Hyuntak Cha, Sungsoo Ahn, Jaeho Lee, and Jinwoo Shin. Learning from failure: De-biasing classifier from biased classifier. In NeurIPS, 2020.
222
+ [31] Judea Pearl. Causality. Cambridge university press, 2009.
223
+ [32] Hans Reichenbach. The direction of time, volume 65. Univ of California Press, 1991.
224
+ [33] Shiori Sagawa, Pang Wei Koh, Tatsunori B Hashimoto, and Percy Liang. Distributionally robust neural networks. In ICLR, 2019.
225
+ [34] Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80, 2008.
226
+ [35] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. In ICLR, 2017.
227
+ [36] Minh Vu and My T Thai. Pgm-explainer: Probabilistic graphical model explanations for graph neural networks. In NeurIPS, 2020.
228
+ [37] Haohan Wang, Zexue He, Zachary C Lipton, and Eric P Xing. Learning robust representations by projecting superficial statistics out. arXiv preprint arXiv:1903.06256, 2019.
229
+ [38] Qitian Wu, Hengrui Zhang, Junchi Yan, and David Wipf. Handling distribution shifts on graphs: An invariance perspective. In ICLR, 2022.
230
+ [39] Ying-Xin Wu, Xiang Wang, An Zhang, Xiangnan He, and Tat-Seng Chua. Discovering invariant rationales for graph neural networks. In ICLR, 2022.
231
+ [40] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
232
+ [41] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In ICLR, 2019.
233
+ [42] Yiding Yang, Zunlei Feng, Mingli Song, and Xinchao Wang. Factorizable graph convolutional networks. In NeurIPS, volume 33, pages 20286–20296, 2020.
234
+ [43] Rex Ying, Dylan Bourgeois, Jiaxuan You, Marinka Zitnik, and Jure Leskovec. Gnnexplainer: Generating explanations for graph neural networks. In NeurIPS, 2019.
235
+ [44] Zhitao Ying, Jiaxuan You, Christopher Morris, Xiang Ren, Will Hamilton, and Jure Leskovec. Hierarchical graph representation learning with differentiable pooling. In NeurIPS, volume 31, 2018.
236
+ [45] Hao Yuan, Haiyang Yu, Jie Wang, Kang Li, and Shuiwang Ji. On explainability of graph neural networks via subgraph explorations. In ICML, 2021.
237
+ [46] Muhan Zhang, Zhicheng Cui, Marion Neumann, and Yixin Chen. An end-to-end deep learning architecture for graph classification. In AAAI, 2018.
238
+ [47] Zhilu Zhang and Mert Sabuncu. Generalized cross entropy loss for training deep neural networks with noisy labels. NeurIPS, 2018.
239
+
240
+ # Checklist
241
+
242
+ 1. For all authors...
243
+
244
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
245
+ (b) Did you describe the limitations of your work? [Yes] See App. E.
246
+ (c) Did you discuss any potential negative societal impacts of your work? [No] We could not foresee any potential negative societal impacts of our work.
247
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
248
+
249
+ 2. If you are including theoretical results...
250
+
251
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] See Sec. 3.2. (b) Did you include complete proofs of all theoretical results? [Yes]
252
+
253
+ 3. If you ran experiments...
254
+
255
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We provide the URL of code and data for reproducing the main results.
256
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Sec. 5 and App. C.2.
257
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Sec. 5.
258
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Sec. 5.
259
+
260
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
261
+
262
+ (a) If your work uses existing assets, did you cite the creators? [Yes] We construct new assets based on existing assets. We have cited them in Sec. 5.
263
+ (b) Did you mention the license of the assets? [Yes] See App. C.
264
+ (c) Did you include any new assets either in the supplemental material or as a URL? [Yes] We release new assets through a URL in Sec. 5.
265
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [No] The source data for generating our data is publicly available.
266
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] We do not have personally identifiable information or offensive content.
267
+
268
+ 5. If you used crowdsourcing or conducted research with human subjects...
269
+
270
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
271
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
272
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/dev/ex60CCi5GS/ex60CCi5GS_content_list.json ADDED
@@ -0,0 +1,1167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Debiasing Graph Neural Networks via Learning Disentangled Causal Substructure ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 209,
8
+ 122,
9
+ 790,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Shaohua Fan1,2∗, Xiao Wang1, Yanhu $\\mathbf { M o } ^ { 1 }$ , Chuan Shi1†, Jian Tang2,3,4 † ",
17
+ "bbox": [
18
+ 258,
19
+ 222,
20
+ 741,
21
+ 241
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Beijing University of Posts and Telecommunications, China 2 Mila - Québec AI Institute, Canada 3 HEC Montréal, Canada 4 CIFAR AI Research Chair {fanshaohua, xiaowang, moyanhu, shichuan}@bupt.edu.cn, jian.tang@hec.ca ",
28
+ "bbox": [
29
+ 200,
30
+ 242,
31
+ 799,
32
+ 320
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 356,
43
+ 535,
44
+ 372
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Most Graph Neural Networks (GNNs) predict the labels of unseen graphs by learning the correlation between the input graphs and labels. However, by presenting a graph classification investigation on the training graphs with severe bias, surprisingly, we discover that GNNs always tend to explore the spurious correlations to make decision, even if the causal correlation always exists. This implies that existing GNNs trained on such biased datasets will suffer from poor generalization capability. By analyzing this problem in a causal view, we find that disentangling and decorrelating the causal and bias latent variables from the biased graphs are both crucial for debiasing. Inspired by this, we propose a general disentangled GNN framework to learn the causal substructure and bias substructure, respectively. Particularly, we design a parameterized edge mask generator to explicitly split the input graph into causal and bias subgraphs. Then two GNN modules supervised by causal/bias-aware loss functions respectively are trained to encode causal and bias subgraphs into their corresponding representations. With the disentangled representations, we synthesize the counterfactual unbiased training samples to further decorrelate causal and bias variables. Moreover, to better benchmark the severe bias problem, we construct three new graph datasets, which have controllable bias degrees and are easier to visualize and explain. Experimental results well demonstrate that our approach achieves superior generalization performance over existing baselines. Furthermore, owing to the learned edge mask, the proposed model has appealing interpretability and transferability.3 ",
51
+ "bbox": [
52
+ 233,
53
+ 390,
54
+ 766,
55
+ 683
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 174,
65
+ 710,
66
+ 310,
67
+ 728
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Graph Neural Networks (GNNs) have exhibited powerful performance on graph data with various applications [17, 35, 13, 9, 8]. One major category of applications are the graph classification task, such as molecular graph property prediction [15, 20, 44], superpixel graph classification [14], and social network category classification [46, 44]. It is well known that graph classification is usually determined by a relevant substructure, but not the whole graph structure [43, 26, 45]. For example, for MNIST superpixel graph classification task, the digit subgraphs are causal (i.e., deterministic) for labels [36]. The mutagenic property of a molecular graph depends on the functional groups (i.e., nitrogen dioxide $\\left( \\mathrm { N O } _ { 2 } \\right)$ ), rather than the irrelevant patterns (i.e., carbon rings) [27]. Therefore, it is a fundamental requirement for GNNs to identify causal substructures, so as to make correct prediction. ",
74
+ "bbox": [
75
+ 174,
76
+ 743,
77
+ 825,
78
+ 842
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 173,
87
+ 92,
88
+ 823,
89
+ 119
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Ideally, when the graphs are unbiased, i.e., only the causal substructures are related with the graph labels, the GNNs are able to utilize such substructure to predict the labels. However, due to the uncontrollable data collection process, the graphs are inevitably biased, i.e., existing meaningless substructures spuriously correlates with labels. Taking a colored MNIST superpixel graph dataset in Sec. 3.1 as an example (illustrated in Fig. 1(a)), each category of digit subgraphs mainly correspond to one kind of color background subgraphs, e.g., digit 0 subgraph is related with red background subgraph. Therefore, the color background subgraph will be treated as bias information, which highly correlates with labels but does not determines them in the training set. Under this situation, will GNNs still stably utilize the causal substructure to make decision? ",
96
+ "bbox": [
97
+ 174,
98
+ 126,
99
+ 825,
100
+ 250
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "To investigate the impact of bias on GNNs, we conduct an experimental investigation to demonstrate the impact of bias (especially in the severe bias scenarios) on the generalization capability of GNNs (Sec. 3.1). We find that GNNs actually utilize both bias and causal substructures to make prediction. However, with severer bias correlation, even bias substructure still could not exactly determine labels like causal substructure, GNNs majorly utilize bias substructure as shortcuts to make prediction, causing a large generalization performance degradation. Why this happens? We analyze the datagenerating process and model prediction mechanism behind the graph classification using a causal graph (Sec. 3.2). The casual graph illustrates that the observed graphs are generated by the causal and bias latent variables and existing GNNs could not distinguish the causal substructure from entangled graphs. How can we disentangle the causal and bias substructures from observed graphs, so that GNNs can only utilize the causal substructures to make stable prediction when severe bias appears? ",
107
+ "bbox": [
108
+ 174,
109
+ 256,
110
+ 825,
111
+ 409
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "To address the question, two challenges need to be faced. 1) How to identify the causal substructure and bias substructure in the severe biased graphs? In the severe bias scenarios, bias substructure will be “easier to learn” for GNNs and finally dominate the prediction. Using the normal cross-entropy loss, like DIR [39], could not fully capture such aggressive property of bias. 2) How to extract the causal substructure from an entangled graph? The statistically causal substructure is usually determined by the global property of the entire graph population, rather than a single graph. When extracting causal substructure from a graph, we need to establish the relations among all the graphs. ",
118
+ "bbox": [
119
+ 174,
120
+ 415,
121
+ 825,
122
+ 512
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "In this paper, we propose a novel debiasing framework for GNNs via learning Disentangled Causal substructure, called DisC. Given an input biased graph, we propose to explicitly filter edges into causal and bias subgraphs by a parameterized edge mask generator, whose parameters are shared across entire graph population. As a result, the edge masker is naturally capable to specify the importance for each edge and extract causal and bias subgraphs from a global view of the entire observations. Then, a “casual”-aware (weighted cross-entropy) loss and a “bias”-aware (generalized cross-entropy) loss are respectively utilized to supervise two functional GNN modules. Based on the supervision, the edge mask generator could generate corresponding subgraphs and the GNNs could encode corresponding subgraphs into their disentangled embeddings. With the disentangled embeddings, we randomly permute the latent vectors extracted from different graphs to generate more unbiased counterfactual samples in embedding space. The new generated samples still contain both causal and bias information, while their correlation has been decorrelated. In this time, there is only correlation between causal variables with labels, so that the model could concentrate on the true correlation between the causal subgraphs and labels. Our major contributions are as follows: ",
129
+ "bbox": [
130
+ 174,
131
+ 518,
132
+ 825,
133
+ 712
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "• To our knowledge, we first study the generalization problem of GNNs in a more challenging yet practical scenario, i.e., the graphs are with severe bias. We systematically analyze the bias impact on GNNs from both experimental study and causal analysis. We find that the bias substructure, compared with causal substructure, is much easier to dominate the training of GNNs. • To debias GNNs, we develop a novel GNN framework for disentangling causal substructure, which is flexible to build upon various GNNs for improving generalization ability while enjoying inherent interpretability, robustness and transferability. • We construct three new datasets with various properties and controllable bias degrees, which can better benchmark the new problem. Our model outperforms the corresponding base models with a large margin (from $4 . 4 7 \\%$ to $1 6 9 . 1 7 \\%$ average improvements). Various investigation studies demonstrate that our model could discover and leverage causal substructure for prediction. ",
140
+ "bbox": [
141
+ 183,
142
+ 731,
143
+ 826,
144
+ 911
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2 Related Works ",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 174,
154
+ 89,
155
+ 330,
156
+ 106
157
+ ],
158
+ "page_idx": 2
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Generalization of GNNs in wild environments. Most existing GNN methods are proposed under the IID hypothesis, i.e., training and testing set are independently sampled from the identical distribution [34, 17, 35, 13, 24]. However, in reality, thus ideal assumption is hard to be satisfied. Recently, several methods have been proposed to improve the generalization ability of GNNs in wild OOD environments. Several works [29, 7, 38] study the OOD problem of node classification. For OOD graph classification task, StableGNN [6] propose to learn the stable causal relationship in graphs. OOD-GNN [22] propose to constrain each dimension of learned embedding to be independent. DIR [39] discovers the invariant rationales for generalizing GNNs. Although they have achieved better OOD performance, they are not designed for the datasets with severe bias, which is more challenging for guaranteeing the generalization ability of GNNs. ",
163
+ "bbox": [
164
+ 173,
165
+ 121,
166
+ 826,
167
+ 260
168
+ ],
169
+ "page_idx": 2
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Disentangled graph neural networks. Recently, there are a couple of methods that study the disentangled GNNs. DisenGCN [28] utilizes neighbourhood routing mechanism to divide the neighbours of the node into several mutually exclusive parts. IPGDN [25] promotes DisenGCN by constraining the different parts of the embedding feature to be independent. DisenGCN and IPGDN are node-level disentanglement, thus FactorGCN [42] considers the whole graph information and disentangles the target graph into several factorized graphs. Despite results of the previous works, they do not consider disentangling the causal and bias information for graphs. ",
174
+ "bbox": [
175
+ 174,
176
+ 266,
177
+ 825,
178
+ 363
179
+ ],
180
+ "page_idx": 2
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "General debiasing methods. Recently, debiasing problem has drawn much attention in machine learning community [16, 23, 33, 1, 2, 11]. One category of these methods is pre-defining a certain bias type explicitly to mitigate [16, 23, 33, 1, 37]. For example, Wang et al. [37] and Bahng et al. [1] design a texture- and color-guided model to adversarially train a debiased neural network against the biased one. Instead of defining certain types of bias, recent approaches [30, 5, 21] rely on the straightforward assumption that models are prone to exploit the bias as shortcuts to make prediction [10]. In the line with the recent studies, our study belongs to the second category. However, most of existing methods are designed for image datasets and could not effectively extract causal substructure from graph data. Distinctly, we first study the severe bias problem on graph data, and our method could effectively extract causal substructure from graph data. ",
185
+ "bbox": [
186
+ 173,
187
+ 368,
188
+ 825,
189
+ 507
190
+ ],
191
+ "page_idx": 2
192
+ },
193
+ {
194
+ "type": "image",
195
+ "img_path": "images/c2cd979b0472bec0aeb4ad871bccbf93e7ecb651572210a690085fba8ecfe079.jpg",
196
+ "image_caption": [
197
+ "Figure 1: Example graphs of CMNIST-75sp and the performance of GNNs on this dataset. "
198
+ ],
199
+ "image_footnote": [],
200
+ "bbox": [
201
+ 225,
202
+ 531,
203
+ 758,
204
+ 655
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "3 Preliminary Study and Analysis ",
211
+ "text_level": 1,
212
+ "bbox": [
213
+ 174,
214
+ 710,
215
+ 472,
216
+ 728
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "In this section, we first illustrate the existing GNNs tend to exploit the bias substructure as shortcuts for prediction through a motivating experiment. Then we analyze the prediction process of GNNs in causal view. Based on this causal view, it motivates our solution to relieve the impact of bias. ",
223
+ "bbox": [
224
+ 174,
225
+ 743,
226
+ 823,
227
+ 785
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "3.1 Motivating Example ",
234
+ "text_level": 1,
235
+ "bbox": [
236
+ 174,
237
+ 801,
238
+ 354,
239
+ 818
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "To measure the generalization ability of GNNs with the effect of bias, we construct a graph classification dataset with controllable bias degrees, called CMNIST-75sp. We first construct a biased MNIST image dataset like [1], where each category of digit highly correlates with a pre-defined color in their background. For example, in the training set, $90 \\%$ of 0 digits are with red background (i.e., biased samples), and remaining $10 \\%$ images are with random background color (i.e., unbiased samples), whose the bias degree is 0.9 in this situation. We consider four bias degrees $\\{ 0 . 8 , 0 . 8 5 , 0 . 9 , \\bar { 0 } . 9 5 \\}$ ",
246
+ "bbox": [
247
+ 174,
248
+ 827,
249
+ 825,
250
+ 911
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "For the testing set, we construct both biased testing set and unbiased testing set. The biased testing set has the same bias degree with training set, aiming to measure the extent of models relying on bias. The unbiased testing set, where the digit labels uncorrelate with the background colors, aims to test whether the model could utilize the inherent digit signals for prediction. Note that training set and testing set have the same pre-defined color set. Then, we convert the biased MNIST images into superpixel graphs with at most 75 nodes each graph using [18], where the edges are constructed by the KNN method based on the 2D coordinates of superpixels and node features are the concatenation of coordinates and average color of superpixels. Each graph is labeled by its digit class, so that its digital subgraph is deterministic for label and background subgraph is spuriously correlated with labels but not deterministic. The examples of graphs are illustrated in Fig. 1(a). ",
257
+ "bbox": [
258
+ 173,
259
+ 90,
260
+ 825,
261
+ 229
262
+ ],
263
+ "page_idx": 3
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "We perform three popular GNN methods: GCN [17], GIN [41], and GCNII [3] on CMNIST-75sp and the results are shown in Fig. 1(b). The same color of dashed line and solid line represent the results of the corresponding methods on the biased testing set and the unbiased testing set respectively. Overall, the GNNs achieve much better performance on biased testing set than unbiased testing set. The phenomenon indicates that although GNNs could still learn some causal signals for prediction, the unexpected bias information is also being utilized for prediction. More specifically, with bias degree becoming larger, the performance of GNNs on biased testing set is increased and the value of accuracy is nearly in line with the bias degree, while the performance on unbiased testing drops dramatically. Hence, although causal substructure could determine labels perfectly, in severe bias scenarios, the GNNs lean to utilize the easier to learn bias information to make prediction rather than the inherent causal signals, and bias substructure will finally dominate the prediction. ",
268
+ "bbox": [
269
+ 173,
270
+ 236,
271
+ 825,
272
+ 388
273
+ ],
274
+ "page_idx": 3
275
+ },
276
+ {
277
+ "type": "image",
278
+ "img_path": "images/67725338102b285105a9f763243a8f05b40474959212b3e04391679918f3ad6a.jpg",
279
+ "image_caption": [
280
+ "(a) SCM of the union of the (b) SCM of our debiasing GNN data generation and the existing method. GNNs’ prediction process. "
281
+ ],
282
+ "image_footnote": [],
283
+ "bbox": [
284
+ 320,
285
+ 415,
286
+ 674,
287
+ 502
288
+ ],
289
+ "page_idx": 3
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "Figure 2: SCMs. Grey and white variables represent unobserved and observed variables, respectively. ",
294
+ "bbox": [
295
+ 171,
296
+ 569,
297
+ 821,
298
+ 584
299
+ ],
300
+ "page_idx": 3
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "3.2 Problem Analysis ",
305
+ "text_level": 1,
306
+ "bbox": [
307
+ 174,
308
+ 611,
309
+ 334,
310
+ 626
311
+ ],
312
+ "page_idx": 3
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "Debiasing GNNs for unbiased prediction requires understanding the natural mechanisms of graph classification task. We present a causal view of the union of the data-generating process and the model prediction process behind the task. Here we formalize the causal view as a Structure Causal Model (SCM) or causal graph [12, 31] by inspecting on the causalities among five variables: unobserved causal variable $C$ , unobserved bias variable $B$ , observed graph $G$ , graph embedding $E$ , and ground truth label / prediction $Y ^ { 4 }$ . Fig. 2(a) illustrates the SCM, where each link denotes a causal relationship. ",
317
+ "bbox": [
318
+ 173,
319
+ 637,
320
+ 825,
321
+ 723
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "• $C \\right. G \\left. B$ . The observed graph data is generated by two unobserved latent variables: the causal variable $C$ and the bias variable $B$ , such as digit subgraphs and background subgraphs in the CMNIST-75sp dataset. And all bellow relations are illustrated by CMNIST-75sp. • $C Y$ . This link means that the causal variable $C$ is the only endogenous parent to determine the generation of ground-truth label $Y$ . For example, $C$ is the oracle digit subgraph, which exactly explains why the label is labeled as $Y$ . • $C \\ \\ B$ . This link indicates the spurious correlation between $C$ and $B$ . Such probabilistic dependencies is usually caused by the direct cause or unobserved confounder [32]. Here we do not distinguish these scenarios and only observe the spurious correlation between $B$ and $C$ , such as the spurious correlation between the color background subgraphs and digit subgraphs. ",
328
+ "bbox": [
329
+ 181,
330
+ 734,
331
+ 826,
332
+ 885
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "• $G E Y$ . Existing GNNs usually learn the graph embedding $E$ based on the observed graph $G$ and make the prediction $Y$ based on the learned embedding $E$ . ",
339
+ "bbox": [
340
+ 181,
341
+ 90,
342
+ 823,
343
+ 119
344
+ ],
345
+ "page_idx": 4
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "According to the SCM, GNNs will utilize both information to make prediction. As bias substructure (e.g., background subgraph) usually has simpler structure than meaningful causal substructure (e.g., digit subgraph), if GNN utilizes such simple substructure, it could achieve low loss very fast. Hence, GNN inclines to utilizes bias information when most graphs are biased. Based on the SCM in Fig. 2(a), according to $d$ -connection theory [31] (see App. A): two variables are dependent if they are connected by at least one unblocked path, we could find two paths that would induce the spurious correlation between the bias variable $B$ and label $Y$ : (1) $\\mathbf { B } \\mathbf { G } \\mathbf { E } \\mathbf { Y }$ and (2) $\\mathbf { B } \\left. \\bar { \\mathbf { C } } \\right. \\mathbf { Y }$ . To make the prediction $Y$ being uncorrelated with the bias $B$ , we need to intercept the two unblocked paths. For this purpose, we propose to debias GNNs in causal view, as in Fig. 2(b). ",
350
+ "bbox": [
351
+ 173,
352
+ 131,
353
+ 825,
354
+ 257
355
+ ],
356
+ "page_idx": 4
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "• $C \\left. G \\right. B$ and $C Y$ . To intercept the path (1), we should disentangle the latent variables $C$ and $B$ from the observed graph $G$ and make prediction only based on the causal variable $C$ . • $C \\ l \\ l \\textsc { - } B$ . To intercept the path (2), as we cannot change the link between $C$ and $Y$ , one possible solution is to make $C$ and $B$ uncorrelated. ",
361
+ "bbox": [
362
+ 178,
363
+ 267,
364
+ 825,
365
+ 329
366
+ ],
367
+ "page_idx": 4
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "4 Methodology ",
372
+ "text_level": 1,
373
+ "bbox": [
374
+ 174,
375
+ 348,
376
+ 315,
377
+ 366
378
+ ],
379
+ "page_idx": 4
380
+ },
381
+ {
382
+ "type": "text",
383
+ "text": "Motivated by the above causal analysis, in this section, we present our proposed debiasing GNN framework DisC, to remove the spurious correlation. The overall framework is shown in Fig. 3. First, an edge mask generator is learnt to mask the edges of original input graphs into causal subgraphs and bias subgraphs. Second, two separate GNN modules with their corresponding masked subgraphs are trained to encode corresponding causal substructure and bias substructure into disentangled representations, respectively. Last, after the disentangled representations are well-trained, we permute the bias representations among the training graphs to generate counterfactual unbiased samples, so that the correlation between causal representations and bias representations is removed. ",
384
+ "bbox": [
385
+ 173,
386
+ 380,
387
+ 826,
388
+ 491
389
+ ],
390
+ "page_idx": 4
391
+ },
392
+ {
393
+ "type": "image",
394
+ "img_path": "images/bcb625f1dae058895f389fa7bde99c8f6e961d0b84a718b48473b2ff85e97e50.jpg",
395
+ "image_caption": [
396
+ "Figure 3: The overall framework of DisC. "
397
+ ],
398
+ "image_footnote": [],
399
+ "bbox": [
400
+ 204,
401
+ 510,
402
+ 782,
403
+ 670
404
+ ],
405
+ "page_idx": 4
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "4.1 Causal and Bias Substructure Generator ",
410
+ "text_level": 1,
411
+ "bbox": [
412
+ 173,
413
+ 733,
414
+ 496,
415
+ 747
416
+ ],
417
+ "page_idx": 4
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "Given a mini-batch of biased graphs ${ \\mathcal { G } } = \\{ G _ { 1 } , \\cdots , G _ { n } \\}$ , our idea is that: we take a collection of graph instances and design a generative probabilistic model to learn to mask the edges into causal subgraph or bias subgraph. Particularly, given a graph $G = \\left\\{ \\mathbf { A } , \\mathbf { X } \\right\\}$ , where $\\mathbf { A }$ is the adjacency matrix and $\\mathbf { X }$ is the node feature matrix, we utilize a multi-layer perceptron (MLP) upon the concatenation of node features $\\mathbf { x } _ { i }$ of node $i$ and $\\mathbf { x } _ { j }$ of node $j$ to measure the importance of edge $( i , j )$ for causal subgraph: ",
422
+ "bbox": [
423
+ 173,
424
+ 757,
425
+ 825,
426
+ 829
427
+ ],
428
+ "page_idx": 4
429
+ },
430
+ {
431
+ "type": "equation",
432
+ "img_path": "images/05c2f2c9be2439b56fc3c7498dc36052810353e52f0f3feff7c54355a1413936.jpg",
433
+ "text": "$$\n\\alpha _ { i j } = \\mathbf { M L P } ( [ \\mathbf { x } _ { i } , \\mathbf { x } _ { j } ] ) .\n$$",
434
+ "text_format": "latex",
435
+ "bbox": [
436
+ 431,
437
+ 835,
438
+ 583,
439
+ 853
440
+ ],
441
+ "page_idx": 4
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "Then a sigmoid function $\\sigma ( \\cdot )$ is employed to project $\\alpha _ { i j }$ into the range of (0,1), which indicates the probability of edge $( i , j )$ being the edge in the causal subgraph as follows: ",
446
+ "bbox": [
447
+ 173,
448
+ 859,
449
+ 826,
450
+ 888
451
+ ],
452
+ "page_idx": 4
453
+ },
454
+ {
455
+ "type": "equation",
456
+ "img_path": "images/10fc244d1c17540052e850af038a05b079d773c9818e76f029b42e3c2061c81e.jpg",
457
+ "text": "$$\nc _ { i j } = \\sigma ( \\alpha _ { i j } ) .\n$$",
458
+ "text_format": "latex",
459
+ "bbox": [
460
+ 452,
461
+ 895,
462
+ 545,
463
+ 914
464
+ ],
465
+ "page_idx": 4
466
+ },
467
+ {
468
+ "type": "text",
469
+ "text": "Naturally, we could get the probability of edge $( i , j )$ being the edge in the bias subgraph by: $b _ { i j } = 1 - c _ { i j }$ . Now we could construct the causal edge mask $\\mathbf { M } _ { c } \\bar { \\mathbf { \\eta } } = \\left[ c _ { i j } \\right]$ and bias edge mask $\\begin{array} { r } { \\mathbf { M } _ { b } = [ b _ { i j } ] } \\end{array}$ . Finally, we decompose the original graph $G$ into causal subgraph $G _ { c } = \\{ \\mathbf { M } _ { c } \\odot \\mathbf { A } , \\mathbf { X } \\}$ and bias subgraph $G _ { b } = \\{ { \\bf M } _ { b } \\odot { \\bf A } , { \\bf X } \\}$ . Intuitively, the edge mask could highlight different part of structure information of original graphs, thus GNNs built on the different subgraphs could encode different parts of graph information. Moreover, the mask generator has two advantages. (1) Global view: In individual graph level, the mask generator (i.e., MLP), whose parameters are shared by all the edges in a graph, take a global view of all the edges in a graph, which enables us to identify community in graph. It is well known that the effect of an edge cannot be judged independently, because edges usually collaborate with each other, forming a community, to make prediction. Thus, it is critical to evaluate an edge in a global view. In whole graph population level, the mask generator takes a global view of all the graphs in the training set, which enables us to identify causal/bias subgraph. Particularly, as the causal/bias is the statistical information in the population level, it is necessary to view all the graphs to identify the causal/bias substructure. Considering both such coalition effects and population-level statistical information, the generator is able to measure the importance of edges more accurately. (2) Generalization: The mask generator can generalize the mechanism of mask generation to new graphs without retraining, so it is capable and efficient to prune unseen graphs. ",
470
+ "bbox": [
471
+ 173,
472
+ 89,
473
+ 826,
474
+ 340
475
+ ],
476
+ "page_idx": 5
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "4.2 Learning Disentangled Graph Representations ",
481
+ "text_level": 1,
482
+ "bbox": [
483
+ 174,
484
+ 354,
485
+ 539,
486
+ 371
487
+ ],
488
+ "page_idx": 5
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "Given $G _ { c }$ and $G _ { b }$ , how to ensure they are causal subgraph and bias subgraph, respectively? Inspired by [21], our approach simultaneously trains a pair of GNNs $( g _ { b } , g _ { c } )$ with linear classifiers $( C _ { b } ^ { - } , C _ { c } )$ as follows: (1) Motivated by the observation in Sec. 3.1 that bias substructure is easier to learn, we utilize a bias-aware loss to train a bias $\\mathrm { G N N } g _ { b }$ and a bias classifier $C _ { b }$ and (2) in contrast, we train a causal $\\mathrm { G N N } _ { g _ { c } }$ and a causal classifier $C _ { c }$ on the training graphs that the bias GNN struggles to learn. Next, we would present each component in detail. ",
493
+ "bbox": [
494
+ 173,
495
+ 380,
496
+ 825,
497
+ 464
498
+ ],
499
+ "page_idx": 5
500
+ },
501
+ {
502
+ "type": "text",
503
+ "text": "As shown in Fig. 3, GNN $g _ { c }$ and $g _ { b }$ embed the corresponding subgraphs into causal embedding $z _ { c } = g _ { c } ( G _ { c } ; \\gamma _ { c } )$ and bias embedding $z _ { b } = g _ { b } ( G _ { b } ; \\gamma _ { b } )$ , respectively, where $\\gamma$ is the parameters of GNNs. Subsequently, concatenated vector $z = \\left[ z _ { c } ; z _ { b } \\right]$ is fed into linear classifiers $C _ { c }$ and $C _ { b }$ to predict the target label $y$ . To train $g _ { b }$ and $C _ { b }$ as bias extractor, we utilize the generalized cross entropy (GCE) [47] loss to amplify the bias of the bias GNN and classifier: ",
504
+ "bbox": [
505
+ 173,
506
+ 469,
507
+ 825,
508
+ 540
509
+ ],
510
+ "page_idx": 5
511
+ },
512
+ {
513
+ "type": "equation",
514
+ "img_path": "images/4e363937d5fab4c35476a216450588ab83b7cd7ddda3e32b99f10750e7b49403.jpg",
515
+ "text": "$$\nG C E ( C _ { b } ( z ; \\alpha _ { b } ) , y ) = \\frac { 1 - C _ { b } ^ { y } ( z ; \\alpha _ { b } ) ^ { q } } { q } ,\n$$",
516
+ "text_format": "latex",
517
+ "bbox": [
518
+ 364,
519
+ 541,
520
+ 632,
521
+ 574
522
+ ],
523
+ "page_idx": 5
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "where $C _ { b } ( z ; \\alpha _ { b } )$ and $C _ { b } ^ { y } ( z ; \\alpha _ { b } )$ are softmax output of the bias classifier and its probability belonging to the target category $y$ , respectively, and $\\alpha$ is the parameters of classifier. Here $q \\in ( 0 , 1 ]$ is a hyperparameter that controls the degree of amplifying bias. Given $\\theta _ { b } = [ \\gamma _ { b } , \\alpha _ { b } ]$ , the gradient of the GCE loss up-weights the gradient of the standard cross entropy (CE) loss for the samples with a high confidence $\\dot { \\boldsymbol { C } } _ { b } ^ { y }$ of predicting the correct target category as follows: ",
528
+ "bbox": [
529
+ 173,
530
+ 575,
531
+ 825,
532
+ 647
533
+ ],
534
+ "page_idx": 5
535
+ },
536
+ {
537
+ "type": "equation",
538
+ "img_path": "images/a3271b67bc7d4ef165091054dc7a412c66d4a9009a4e0f32298182bb32bd7a86.jpg",
539
+ "text": "$$\n\\frac { \\partial G C E ( C _ { b } ( z ; \\alpha _ { b } ) , y ) } { \\partial \\theta _ { b } } = ( C _ { b } ^ { y } ) ^ { q } \\frac { \\partial C E ( C _ { b } ( z ; \\alpha _ { b } ) , y ) } { \\partial \\theta _ { b } } .\n$$",
540
+ "text_format": "latex",
541
+ "bbox": [
542
+ 323,
543
+ 648,
544
+ 676,
545
+ 681
546
+ ],
547
+ "page_idx": 5
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "Therefore, compared with CE loss, GCE loss will amplify the gradients of $\\theta _ { b }$ on samples by the confidence score $( C _ { b } ^ { y } ) ^ { q }$ . Based on our observation that the bias information is usually easier to be learned, so the biased graphs will have higher $( C _ { b } ^ { y } ) ^ { q }$ than unbiased graphs. Therefore, the model $g _ { b }$ and $C _ { b }$ trained by GCE loss will focus on bias information and finally get the bias subgraph. Note that, to ensure that $C _ { b }$ predicts target labels mainly based on this $z _ { b }$ , the loss from $C _ { b }$ is not backpropagated to $g _ { c }$ , i.e., only update $\\theta _ { b }$ in Eq. (4), and vice versa. ",
552
+ "bbox": [
553
+ 174,
554
+ 681,
555
+ 825,
556
+ 768
557
+ ],
558
+ "page_idx": 5
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "Meanwhile, we also train a causal GNN simultaneously with the weighted CE loss. The graphs with high CE loss from $C _ { b }$ can be regarded as the unbiased samples compared with the samples with low CE loss. In this regard, we could obtain the unbias score of each graph as ",
563
+ "bbox": [
564
+ 173,
565
+ 773,
566
+ 825,
567
+ 815
568
+ ],
569
+ "page_idx": 5
570
+ },
571
+ {
572
+ "type": "equation",
573
+ "img_path": "images/31d1a5650952de165f5a245f596e78cca5b95a48699d6699a29992e8365a5f3c.jpg",
574
+ "text": "$$\nW ( z ) = \\frac { C E ( C _ { b } ( z ) , y ) } { C E ( C _ { c } ( z ) , y ) + C E ( C _ { b } ( z ) , y ) } .\n$$",
575
+ "text_format": "latex",
576
+ "bbox": [
577
+ 356,
578
+ 818,
579
+ 642,
580
+ 852
581
+ ],
582
+ "page_idx": 5
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "Large value of $W$ implies the graph is an unbiased sample, hence we could use these weights to reweight the loss of these graphs to train $g _ { c }$ and $C _ { c }$ , enforcing them to learn the unbiased information. Thus, the objective function for learning disentangled representation is: ",
587
+ "bbox": [
588
+ 174,
589
+ 852,
590
+ 826,
591
+ 893
592
+ ],
593
+ "page_idx": 5
594
+ },
595
+ {
596
+ "type": "equation",
597
+ "img_path": "images/f53c02262b2fc1caa42f6bd34a8f10e4df9f009406807429017e35a5848920f5.jpg",
598
+ "text": "$$\nL _ { D } = W ( z ) C E ( C _ { c } ( z ) , y ) + G C E ( C _ { b } ( z ) , y ) .\n$$",
599
+ "text_format": "latex",
600
+ "bbox": [
601
+ 339,
602
+ 895,
603
+ 656,
604
+ 912
605
+ ],
606
+ "page_idx": 5
607
+ },
608
+ {
609
+ "type": "text",
610
+ "text": "4.3 Counterfactual Unbiased Sample Generation ",
611
+ "text_level": 1,
612
+ "bbox": [
613
+ 176,
614
+ 90,
615
+ 524,
616
+ 106
617
+ ],
618
+ "page_idx": 6
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "Until now, we have achieved the first goal analyzed in Sec. 3.2 that is the disentanglement of causal and bias substructures. Next, we will show how to achieve the second goal that makes the causal variable $z _ { c }$ and bias variable $z _ { b }$ uncorrelated. Although we have disentangled causal and bias information, they are disentangled from the biased observed graphs. Hence, there will exist statistical correlation between causal and bias variables inheriting from the biased observed graphs. To further decorrelate $z _ { c }$ and $z _ { b }$ , according to the causal relation of data-generating process: $C \\right. G \\left. B$ , we propose to generate the counterfactual unbiased samples in embedding space by swapping $z _ { b }$ . More specifically, we randomly permute bias vectors in each mini-batch and obtain $z _ { u n b i a s e d } = [ z _ { c } ; \\hat { z _ { b } } ] .$ where $\\hat { z _ { b } }$ represents the randomly permuted bias vectors of $z _ { b }$ . As $z _ { c }$ and $\\hat { z } _ { b }$ in $z _ { u n b i a s e d }$ are randomly combined from different graphs, they will have much less correlation than $\\boldsymbol { z } = \\left[ z _ { c } ; z _ { b } \\right]$ where both are from the same graph. To make $g _ { b }$ and $C _ { b }$ still focus on the bias information, we also swap label $y$ as $\\hat { y }$ along with $\\hat { z _ { b } }$ , so that the spurious correlation between $\\hat { z _ { b } }$ and $\\hat { y }$ still exists. With the generated unbiased samples, we utilize the following loss function to train two GNN modules: ",
623
+ "bbox": [
624
+ 173,
625
+ 116,
626
+ 825,
627
+ 296
628
+ ],
629
+ "page_idx": 6
630
+ },
631
+ {
632
+ "type": "equation",
633
+ "img_path": "images/aa9d991186ce7832aa2d7dad69769211c16e3869a4a46d0185725069ea6dcfc8.jpg",
634
+ "text": "$$\n{ \\cal L } _ { G } = W ( z ) C E ( C _ { c } ( z _ { u n b i a s e d } ) , y ) + G C E ( C _ { b } ( z _ { u n b i a s e d } ) , \\hat { y } ) ,\n$$",
635
+ "text_format": "latex",
636
+ "bbox": [
637
+ 287,
638
+ 303,
639
+ 707,
640
+ 320
641
+ ],
642
+ "page_idx": 6
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "Together with the disentanglement loss, total loss function is defined as: ",
647
+ "bbox": [
648
+ 173,
649
+ 325,
650
+ 645,
651
+ 340
652
+ ],
653
+ "page_idx": 6
654
+ },
655
+ {
656
+ "type": "equation",
657
+ "img_path": "images/4df90f628564e59d8fbdbd05a8e1b913713e84074319d57203e9464cb0b85e62.jpg",
658
+ "text": "$$\n{ \\cal L } = { \\cal L } _ { D } + \\lambda _ { G } { \\cal L } _ { G } ,\n$$",
659
+ "text_format": "latex",
660
+ "bbox": [
661
+ 436,
662
+ 348,
663
+ 560,
664
+ 364
665
+ ],
666
+ "page_idx": 6
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "where $\\lambda _ { G }$ is a hyperparameter for weighting the importance of generation component. Moreover, training with more diverse samples would also benefit with better generalization on unseen testing scenarios. Our approach is summarized in App. B. Note that, as we need well-disentangled representations to generate the high-quality unbiased samples, in the early stage of training, we only train the model with $L _ { D }$ . After certain epochs, we train the model with $L$ . ",
671
+ "bbox": [
672
+ 174,
673
+ 371,
674
+ 825,
675
+ 440
676
+ ],
677
+ "page_idx": 6
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "5 Experiment ",
682
+ "text_level": 1,
683
+ "bbox": [
684
+ 174,
685
+ 460,
686
+ 303,
687
+ 477
688
+ ],
689
+ "page_idx": 6
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "Datasets. We construct three datasets with various properties and bias ratios to benchmark this new problem, where the datasets have clear causal subgraphs making the results explainable. Following CMNIST-75sp introduced in Sec. 3.1, we use the similar way to construct CFashion-75sp and CKuzushiji-75sp datasets based on the Fashion-MNIST [40] and Kuzushiji-MNIST [4] datasets. As the causal subgraphs of these two datasets are more complicated (fashion product and hiragana characters), they are more challenging. Due to the page limits, here we set bias degrees as $\\{ 0 . 8 , 0 . 9 , 0 . 9 5 \\}$ . We report the main results on unbiased test sets. Details are in App. C.1. ",
694
+ "bbox": [
695
+ 174,
696
+ 491,
697
+ 826,
698
+ 588
699
+ ],
700
+ "page_idx": 6
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "Baselines and experimental setup. As DisC is a general framework which could be built on various base GNN models, we select three popular GNNs: GCN [17], GIN [41], and GCNII [3]. The corresponding models are termed as $\\mathrm { D i s C } _ { G C N }$ , $\\mathrm { D i s C } _ { G I N }$ and $\\mathrm { D i s C } _ { G C N I I }$ , respectively. Hence, base models are the most straight baselines. Another kind of baselines are the causal-inspired GNN method DIR [39] and StableGNN [6]. We also compare against a general debiasing method LDD [21] by replacing its encoder with GNNs. Graph Pooling method DiffPool [44] and graph disentangling method FactorGCN [42] are also compared. To keep fair comparison, our model uses the same GNN architecture and hyperparameters with the corresponding base model. All the experiments are run 4 times with different random seeds and we report the accuracy and the standard error. More details are in App. C.2. ",
705
+ "bbox": [
706
+ 174,
707
+ 594,
708
+ 825,
709
+ 733
710
+ ],
711
+ "page_idx": 6
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "5.1 Quantitative Evaluation ",
716
+ "text_level": 1,
717
+ "bbox": [
718
+ 174,
719
+ 750,
720
+ 379,
721
+ 763
722
+ ],
723
+ "page_idx": 6
724
+ },
725
+ {
726
+ "type": "text",
727
+ "text": "Main results. The overall results are summarized in Table 1, and we have following observations: ",
728
+ "bbox": [
729
+ 171,
730
+ 773,
731
+ 815,
732
+ 789
733
+ ],
734
+ "page_idx": 6
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "(1) DisC has much better generalization ability than base models. DisC outperforms the corresponding base model consistently with a large margin. With heavier biases, our model achieves larger improvements over base models. Specifically, for CMNIST-75sp, CFashion-75sp and CKuzushiji-75sp with smaller bias degree (i.e., 0.8), our model achieves $4 0 . 0 2 \\%$ , $4 . 4 7 \\%$ and $2 9 . 8 2 \\%$ average improvements over corresponding base models, respectively. Surprisingly, with severer biases (0.9 and 0.95), DisC achieves $1 6 9 . 1 7 \\%$ , $1 4 . 6 7 \\%$ and $4 9 . 3 5 \\%$ average improvements over base models on three datasets, respectively. It indicates that the proposed method is a general framework helping existing GNNs against the negative impact of bias. ",
739
+ "bbox": [
740
+ 171,
741
+ 800,
742
+ 825,
743
+ 911
744
+ ],
745
+ "page_idx": 6
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "(2) DisC significantly outperforms existing debiasing methods. We notice that DIR could not achieve satisfying results. The reason is that DIR utilizes CE loss to extract bias information, which could not fully capture the property of bias in severe bias scenarios. And DIR sets one fixed threshold to spilt subgraphs, which is suboptimal. StableGNN outperforms their base model DiffPool and achieve competitive results, indicating the effectiveness of their proposed causal variable distinguishing regularizer. However, their framework adjusts data distribution based on the original dataset, it is hard to generate unbiased distribution when the unbiased samples are scarce. DisC could generate more unbiased samples based on the disentangled representations. Moreover, LDD is a general debiasing method which is not designed for graph data. DisC outperforms corresponding LDD variants with average $2 3 . 1 5 \\%$ , indicating that the seamless joint of global-population-aware edge masker with debiasing disentangle framework is very effective. ",
750
+ "bbox": [
751
+ 171,
752
+ 90,
753
+ 825,
754
+ 244
755
+ ],
756
+ "page_idx": 7
757
+ },
758
+ {
759
+ "type": "table",
760
+ "img_path": "images/199741d9fe65df203714b6564543f2ff46981386b8a9b6296d024b20573d5ae3.jpg",
761
+ "table_caption": [
762
+ "Table 1: Graph classification accuracy evaluated on unbiased testing sets, which have same color (bias) set with training set. The best performance within each base model variant is in bold. "
763
+ ],
764
+ "table_footnote": [],
765
+ "table_body": "<table><tr><td rowspan=\"2\">Dataset Bias</td><td colspan=\"3\">CMNIST-75sp</td><td colspan=\"3\">CFashion-75sp</td><td colspan=\"3\">CKuzushiji-75sp</td></tr><tr><td>0.8</td><td>0.9</td><td>0.95</td><td>0.8</td><td>0.9</td><td>0.95</td><td>0.8</td><td>0.9</td><td>0.95</td></tr><tr><td>FactorGCN [42]</td><td>72.30±1.18</td><td>62.35±5.07</td><td>42.50±4.91</td><td>61.23±1.11</td><td>53.50±1.29</td><td>45.78±2.40</td><td>42.87±1.19</td><td>32.35±2.79</td><td>23.87±0.12</td></tr><tr><td>DiffPool [44]</td><td>73.79±0.02</td><td>66.45±0.78</td><td>47.12±1.04</td><td>62.82±0.53</td><td>57.50±0.39</td><td>50.86±0.20</td><td>45.46±0.65</td><td>36.18±0.19</td><td>27.45±0.26</td></tr><tr><td>DIR [39]</td><td>9.98±0.33</td><td>9.96±0.23</td><td>10.03±0.27</td><td>13.02±1.92</td><td>12.80±1.67</td><td>11.98±1.41</td><td>10.35±0.32</td><td>10.72±0.27</td><td>10.59±0.46</td></tr><tr><td>StableGNN [6]</td><td>77.65±1.64</td><td>68.87±1.74</td><td>51.33±0.87</td><td>64.03±0.29</td><td>58.26±0.09</td><td>51.46±0.39</td><td>49.41±0.09</td><td>39.30±0.12</td><td>28.26±0.14</td></tr><tr><td>LDDGCN[21]</td><td>64.95±1.22</td><td>56.65±2.18</td><td>46.83±2.88</td><td>63.85±1.17</td><td>64.30±0.89</td><td>62.28±0.48</td><td>42.38±0.33</td><td>38.75±0.49</td><td>33.08±0.59</td></tr><tr><td>LDDGIN[21]</td><td>64.88±1.45</td><td>50.59±1.07</td><td>31.23±2.48</td><td>64.65±0.63</td><td>57.10±0.43</td><td>53.38±0.47</td><td>37.83±0.54</td><td>28.97±0.18</td><td>22.13±0.34</td></tr><tr><td>LDDGCNII [21]</td><td>78.03±0.66</td><td>69.53±0.96</td><td>51.05±3.87</td><td>50.63±1.79</td><td>54.09±2.54</td><td>57.93±0.88</td><td>48.70±1.98</td><td>41.59±1.07</td><td>33.93±0.71</td></tr><tr><td>GCN[17]</td><td>50.43±4.13</td><td>28.97±4.4</td><td>13.50±1.38</td><td>63.60±0.53</td><td>57.22±0.93</td><td>47.69±0.42</td><td>38.45±1.1</td><td>28.35±0.79</td><td>20.70±0.88</td></tr><tr><td>DisCGCN</td><td>82.60±0.93</td><td>78.14±2.14</td><td>63.47±5.65</td><td>66.85±1.11</td><td>65.33±4.70</td><td>63.93±1.50</td><td>55.53±2.29</td><td>48.13±2.59</td><td>36.63±1.73</td></tr><tr><td>GIN [41]</td><td>57.75±0.78</td><td>36.78±5.55</td><td>16.04±1.14</td><td>64.25±0.46</td><td>58.03±0.40</td><td>49.74±0.60</td><td>41.83±0.78</td><td>30.09±0.87</td><td>21.18±1.63</td></tr><tr><td>DisCGIN</td><td>82.10±1.50</td><td>74.90±1.81</td><td>58.58±4.24</td><td>67.10±1.07</td><td>59.90±1.31</td><td>55.80±0.36</td><td>55.18±1.00</td><td>41.75±0.81</td><td>30.25±1.63</td></tr><tr><td>GCNII [3]</td><td>69.70±1.73</td><td>57.68±1.68</td><td>41.00±3.75</td><td>66.68±0.59</td><td>60.58±0.28</td><td>53.18±0.08</td><td>48.53±0.25</td><td>36.23±0.20</td><td>25.60±0.76</td></tr><tr><td>DisCGCNII</td><td>79.50±2.48</td><td>76.00±1.90</td><td>60.54±5.33</td><td>66.47±1.77</td><td>65.48±0.70</td><td>61.75±0.27</td><td>54.90±1.30</td><td>44.73±1.55</td><td>36.95±0.70</td></tr></table>",
766
+ "bbox": [
767
+ 176,
768
+ 296,
769
+ 825,
770
+ 434
771
+ ],
772
+ "page_idx": 7
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "Ablation studies. To validate the importance of each module in our method, in Fig. 4, we conduct ablation studies on our variants (w.o. G means without the sample generation module) and the related variants of LDD. The major difference between DisC/w.o. G with LDD /w.o. G is the edge mask module. In most cases, DisC/w.o. G significantly outperforms LDD /w.o. G, indicating the necessity of learning edge mask for graph data. And DisC which has counterfactual sample generation module could further boost the performances based on the disentangled embeddings of DisC/w.o. G. However, LDD seldomly outperforms LDD /w.o. G or even achieves worse performances. That is, generating high-quality counterfactual samples needs well-disentangled causal and bias embeddings. If embeddings are not well-disentangled, counterfactual samples may act as noisy samples, which would prevent models from achieving further improvement. The edge masker could help the model generate well-disentangled embeddings, which is crucial for overall performance. ",
777
+ "bbox": [
778
+ 173,
779
+ 446,
780
+ 826,
781
+ 599
782
+ ],
783
+ "page_idx": 7
784
+ },
785
+ {
786
+ "type": "image",
787
+ "img_path": "images/a0e110950764af9cb15bcd44f9149686964d2d2dbbc914f554282cc321f7d710.jpg",
788
+ "image_caption": [
789
+ "Figure 4: Ablation studies of the DisC vs. LDD average over three bias degrees of each dataset. "
790
+ ],
791
+ "image_footnote": [],
792
+ "bbox": [
793
+ 186,
794
+ 616,
795
+ 812,
796
+ 732
797
+ ],
798
+ "page_idx": 7
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "Robustness on unseen bias. Table 2 reports the results of DisC compared with its corresponding base models on testing set with unseen bias, i.e., the pre-defined color (bias) sets of training set and testing set are disjoint. The performances of base models further drop compared with the results on seen bias scenario in Table 1. However, our model still achieves very stable performances, fully demonstrating the generalization ability of our model on agnostic bias scenario. ",
803
+ "bbox": [
804
+ 174,
805
+ 779,
806
+ 825,
807
+ 849
808
+ ],
809
+ "page_idx": 7
810
+ },
811
+ {
812
+ "type": "text",
813
+ "text": "Hyperparameter experiments Fig. 5 is the hyperparameter experiments of the degree of amplifying bias $q$ in GCE loss and the importance of generation component $\\lambda _ { G }$ . For $q$ , we fix $\\lambda _ { G } = 1 0$ and vary $q$ from $\\{ 0 . 1 , 0 . 3 , 0 . 5 , 0 . 7 , 0 . 9 \\}$ . For $\\lambda _ { G }$ , we fix $q = 0 . 7$ and vary $\\lambda _ { G }$ from $\\{ 1 , 5 , 1 0 , 1 5 \\}$ . From the results, we can see that our model achieves stable performance across different values of $q$ and $\\lambda _ { G }$ . When $q = 0 . 1$ , it means the GCE loss will nearly reduce to normal CE loss. We can see the performance of $\\mathrm { D i s C } _ { G C N }$ is worse than other scenarios, demonstrating the effectiveness of utilizing GCE loss. ",
814
+ "bbox": [
815
+ 174,
816
+ 856,
817
+ 823,
818
+ 911
819
+ ],
820
+ "page_idx": 7
821
+ },
822
+ {
823
+ "type": "table",
824
+ "img_path": "images/e042508e60748d7c5704b9e9cda337686f8480727853f0b2a4ffa768504103c5.jpg",
825
+ "table_caption": [
826
+ "Table 2: The results on unseen unbiased testing sets, i.e., the color has not been seen in training set. "
827
+ ],
828
+ "table_footnote": [],
829
+ "table_body": "<table><tr><td rowspan=\"2\">Dataset Bias</td><td colspan=\"3\">CMNIST-75sp</td><td colspan=\"3\">CFashion-75sp</td><td colspan=\"3\">CKuzushiji-75sp</td></tr><tr><td>0.8</td><td>0.9</td><td>0.95</td><td>0.8</td><td>0.9</td><td>0.95</td><td>0.8</td><td>0.9</td><td>0.95</td></tr><tr><td>DIR</td><td>10.38±0.28</td><td>10.14±0.40</td><td>9.77±0.18</td><td>16.77±1.71</td><td>16.51±3.20</td><td>12.59±1.61</td><td>10.48±0.34</td><td>10.33±0.75</td><td>10.59±0.95</td></tr><tr><td>GCN</td><td>36.88±5.16</td><td>23.07±4.07</td><td>11.88±0.33</td><td>59.33±0.55</td><td>53.65±0.47</td><td>45.60±1.06</td><td>36.35±0.48</td><td>27.88±0.94</td><td>19.95±0.67</td></tr><tr><td>DisCGCN</td><td>82.73±1.31</td><td>77.70±0.87</td><td>65.48±0.76</td><td>67.9±1.45</td><td>68.28±0.18</td><td>63.77±1.37</td><td>57.80±2.38</td><td>51.60±0.41</td><td>41.60±3.94</td></tr><tr><td>GIN</td><td>48.93±2.99</td><td>34.95±0.86</td><td>14.53±0.97</td><td>58.88±0.57</td><td>53.80±0.52</td><td>48.43±0.69</td><td>39.25±0.57</td><td>30.75±1.45</td><td>22.35±0.86</td></tr><tr><td>DisCGIN</td><td>77.80±1.33</td><td>73.00±0.61</td><td>58.80±1.66</td><td>67.15±0.79</td><td>59.98±0.62</td><td>51.70±0.34</td><td></td><td></td><td>55.47±0.98 43.20±1.36 31.33±1.71</td></tr><tr><td>GCNII</td><td>53.50±6.23</td><td>45.52±2.26</td><td>32.6±5.66</td><td>58.85±1.89</td><td>53.98±0.85</td><td>46.97±1.38</td><td>39.93±0.88</td><td>30.33±1.17</td><td>23.09±1.83</td></tr><tr><td>DisCGCNII</td><td>79.65±2.13</td><td>76.63±1.3860.00±5.66</td><td></td><td></td><td></td><td>60.50±2.77 63.05±2.2561.78±1.60</td><td></td><td>56.23±3.4549.10±2.05</td><td>41.05±0.11</td></tr></table>",
830
+ "bbox": [
831
+ 176,
832
+ 112,
833
+ 825,
834
+ 210
835
+ ],
836
+ "page_idx": 8
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "",
841
+ "bbox": [
842
+ 174,
843
+ 232,
844
+ 825,
845
+ 273
846
+ ],
847
+ "page_idx": 8
848
+ },
849
+ {
850
+ "type": "image",
851
+ "img_path": "images/8e496cbb6ae8e9942e5b95edadf4f703867ebb55af480ec526acdfcf4e3dab1a.jpg",
852
+ "image_caption": [
853
+ "Figure 5: The hyperparameter experiments of $q$ and $\\lambda _ { G }$ "
854
+ ],
855
+ "image_footnote": [],
856
+ "bbox": [
857
+ 308,
858
+ 291,
859
+ 687,
860
+ 428
861
+ ],
862
+ "page_idx": 8
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "5.2 Qualitative Evaluation ",
867
+ "text_level": 1,
868
+ "bbox": [
869
+ 174,
870
+ 487,
871
+ 370,
872
+ 502
873
+ ],
874
+ "page_idx": 8
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "Visualization of edge mask. To better illustrate the significant causal and bias subgraphs extracted by $\\mathrm { D i s C } _ { G C N }$ , we visualize the original images, original graph, and corresponding causal subgraph and bias subgraph of CMNIST-75sp with 0.9 bias degree in Fig. 6, where the width of edge represents the value of learned weight $c _ { i j }$ or $b _ { i j }$ . Fig. 6(a) shows the visualization results of testing graphs with the bias (color) that has been seen in the training set. As we can see, our model could discover the causal subgraphs where the most salient edges are in the digital subgraphs. With these causal subgraphs that highlight the structure information of digital, the GNNs will more easily extract this causal information. Fig. 6(b) shows the visualization results of testing graphs with unseen bias. According to the visualization, our model could still discover the causal subgraph outline, indicating our model could recognize causal subgraphs, whether the bias is seen or unseen. The visualization results of CFashion-75sp and CKuzushiji-75sp are shown in App. D. ",
879
+ "bbox": [
880
+ 173,
881
+ 512,
882
+ 826,
883
+ 665
884
+ ],
885
+ "page_idx": 8
886
+ },
887
+ {
888
+ "type": "image",
889
+ "img_path": "images/c8175449c2701658e4017be825905cdeb3e231c2d6376d79873c1c752212b81e.jpg",
890
+ "image_caption": [
891
+ "OriginalimageOriginal graph Causalsubgraph BiasedsubgraphOriginalimageOriginal graph CausalsubgraphBiased subgraph ",
892
+ "Figure 6: Visualization of subgraphs extracted by DisC. The width of edge is edge weight $c _ { i j }$ or $b _ { i j }$ "
893
+ ],
894
+ "image_footnote": [],
895
+ "bbox": [
896
+ 227,
897
+ 690,
898
+ 767,
899
+ 844
900
+ ],
901
+ "page_idx": 8
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "Projection of disentangled representation. Fig. 7 shows the projection of latent vectors $z _ { c }$ and $z _ { b }$ extracted from the causal GNN $g _ { c }$ and bias GNN $g _ { b }$ of $\\mathrm { D i s C } _ { G C N }$ , respectively, using t-SNE [19] on ",
906
+ "bbox": [
907
+ 173,
908
+ 883,
909
+ 825,
910
+ 912
911
+ ],
912
+ "page_idx": 8
913
+ },
914
+ {
915
+ "type": "image",
916
+ "img_path": "images/221d0d59bdbf86e2589c0ab453c12e80f215382da65ad5e2230b4b84b9a9acaa.jpg",
917
+ "image_caption": [
918
+ "Figure 7: Visualization of $z _ { c }$ and $z _ { b }$ with colors labeled by the digit and bias (color) labels. We observe that $z _ { c }$ and $z _ { b }$ are well clustered according to the groundtruth labels and bias labels, respectively. "
919
+ ],
920
+ "image_footnote": [],
921
+ "bbox": [
922
+ 192,
923
+ 104,
924
+ 803,
925
+ 205
926
+ ],
927
+ "page_idx": 9
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "CMNIST-75sp. Fig. 7 (a-b) are the projections of $z _ { c }$ labeled by the target labels (digit) and bias labels (color), respectively. Fig. 7 (c-d) are the projections of $z _ { b }$ labeled by the target labels and bias labels, respectively. We observe that $z _ { c }$ are clustered according to the target labels while $z _ { b }$ are clustered with the bias labels. And $z _ { c }$ are mixed with bias labels and $z _ { b }$ are mixed with target labels. The results indicate that DisC successfully learns the disentangled causal and bias representations. ",
932
+ "bbox": [
933
+ 173,
934
+ 273,
935
+ 825,
936
+ 343
937
+ ],
938
+ "page_idx": 9
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Transferability of the learned mask. As our model could extract GNN-independent subgraphs, the learning edge weights can be used to purify original biased graphs. These sparse subgraphs represent significant semantic information and can be universally transferred to any GNNs. To validate this point, we learn the edge mask by $\\mathrm { D i s C } _ { G C N }$ and prune the edges with least $\\{ 0 \\% , 2 0 \\% , 4 0 \\% , 6 0 \\% \\}$ weights while keeping the remaining edge weights. Then we train vanilla GIN and GCNII on these weighted pruned datasets. Fig. 8 is the comparison of the results, where the dashed lines represent the results of base model on original biased graphs and the solid lines represent the performance of GNNs on weighted pruned datasets. The results show that the GNNs trained on the pruned datasets achieve better performances, indicating our learned edge mask has considerable transferability. ",
943
+ "bbox": [
944
+ 174,
945
+ 349,
946
+ 622,
947
+ 529
948
+ ],
949
+ "page_idx": 9
950
+ },
951
+ {
952
+ "type": "image",
953
+ "img_path": "images/18fa05e618bc66f5ba05c2bab230902cd658bb98fb76ae415b1a2efbc238f5f0.jpg",
954
+ "image_caption": [
955
+ "Figure 8: Performance of GIN and GCNII on the weighted pruned graphs found by $\\mathrm { D i s C } _ { G C N }$ . "
956
+ ],
957
+ "image_footnote": [],
958
+ "bbox": [
959
+ 638,
960
+ 376,
961
+ 805,
962
+ 464
963
+ ],
964
+ "page_idx": 9
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "6 Conclusion ",
969
+ "text_level": 1,
970
+ "bbox": [
971
+ 174,
972
+ 549,
973
+ 299,
974
+ 565
975
+ ],
976
+ "page_idx": 9
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "In this paper, we are first to study the generalization problem of GNNs on severe bias datasets, which is crucial to study the transparently knowledge learning mechanism of GNNs. We analyze the problem in a causal view that the generalization of GNNs will be hindered by entangled representations as well as the correlation between causal and bias variables. To remove the impact from these two aspects, we propose a general disentangling framework, DisC, which extracts causal substructure and bias substructure by two different functional GNNs, respectively. After the representations are well-disentangled, we proliferate the counterfactual unbiased samples by randomly swapping the disentangled vectors. With the new constructed benchmarks, we clearly validate the effectiveness, robustness, interpretability, and transferability of our method. ",
981
+ "bbox": [
982
+ 174,
983
+ 580,
984
+ 825,
985
+ 705
986
+ ],
987
+ "page_idx": 9
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "Acknowledgments and Disclosure of Funding ",
992
+ "text_level": 1,
993
+ "bbox": [
994
+ 174,
995
+ 724,
996
+ 553,
997
+ 743
998
+ ],
999
+ "page_idx": 9
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "This work is supported in part by the National Natural Science Foundation of China (No. U20B2045, 62192784, 62172052, 62002029, 62172052, U1936014). This work is also partially supported by the Natural Sciences and Engineering Research Council (NSERC) Discovery Grant, the Canada CIFAR AI Chair Program, collaboration grants between Microsoft Research and Mila, Samsung Electronics Co., Ltd., Amazon Faculty Research Award, Tencent AI Lab Rhino-Bird Gift Fund and a NRC Collaborative R&D Project (AI4D-CORE-06). This project was also partially funded by IVADO Fundamental Research Project grant PRF-2019- 3583139727. The work of Shaohua Fan is supported by the China Scholarship Council (No.202006470078). The computation resource of this project is supported by Compute Canada . ",
1004
+ "bbox": [
1005
+ 174,
1006
+ 757,
1007
+ 825,
1008
+ 885
1009
+ ],
1010
+ "page_idx": 9
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "References \n[1] Hyojin Bahng, Sanghyuk Chun, Sangdoo Yun, Jaegul Choo, and Seong Joon Oh. Learning de-biased representations with biased representations. In ICML, 2020. [2] Remi Cadene, Corentin Dancette, Matthieu Cord, Devi Parikh, et al. Rubi: Reducing unimodal biases for visual question answering. In NeurIPS, 2019. \n[3] Ming Chen, Zhewei Wei, Zengfeng Huang, Bolin Ding, and Yaliang Li. Simple and deep graph convolutional networks. In ICML, 2020. [4] Tarin Clanuwat, Mikel Bober-Irizar, Asanobu Kitamoto, Alex Lamb, Kazuaki Yamamoto, and David Ha. Deep learning for classical japanese literature. arXiv preprint arXiv:1812.01718, 2018. \n[5] Luke Darlow, Stanisław Jastrz˛ebski, and Amos Storkey. Latent adversarial debiasing: Mitigating collider bias in deep neural networks. arXiv preprint arXiv:2011.11486, 2020. [6] Shaohua Fan, Xiao Wang, Chuan Shi, Peng Cui, and Bai Wang. Generalizing graph neural networks on out-of-distribution graphs. In arXiv preprint arXiv:2111.10657, 2021. [7] Shaohua Fan, Xiao Wang, Chuan Shi, Kun Kuang, Nian Liu, and Bai Wang. Debiased graph neural networks with agnostic label selection bias. TNNLS, 2022. [8] Shaohua Fan, Xiao Wang, Chuan Shi, Emiao Lu, Ken Lin, and Bai Wang. One2multi graph autoencoder for multi-view graph clustering. In WWW, pages 3070–3076, 2020. \n[9] Shaohua Fan, Junxiong Zhu, Xiaotian Han, Chuan Shi, Linmei Hu, Biyu Ma, and Yongliang Li. Metapath-guided heterogeneous graph neural network for intent recommendation. In SIGKDD, pages 2478–2486, 2019. \n[10] Robert Geirhos, Jörn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, Matthias Bethge, and Felix A Wichmann. Shortcut learning in deep neural networks. Nature Machine Intelligence, 2(11):665–673, 2020. \n[11] Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018. \n[12] Madelyn Glymour, Judea Pearl, and Nicholas P Jewell. Causal inference in statistics: A primer. John Wiley & Sons, 2016. \n[13] Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In NeurIPS, 2017. \n[14] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019. \n[15] Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. In NeurIPS, 2020. \n[16] Byungju Kim, Hyunwoo Kim, Kyungsu Kim, Sungjin Kim, and Junmo Kim. Learning not to learn: Training deep neural networks with biased data. In CVPR, 2019. \n[17] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2016. \n[18] Boris Knyazev, Graham W Taylor, and Mohamed Amer. Understanding attention and generalization in graph neural networks. In NeurIPS, 2019. \n[19] G.E. Kvan der Maaten, L.J.P.; Hinton. Understanding attention and generalization in graph neural networks. Journal of Machine Learning Research, 2008. \n[20] John Boaz Lee, Ryan Rossi, and Xiangnan Kong. Graph classification using structural attention. In SIGKDD, 2018. \n[21] Jungsoo Lee, Eungyeup Kim, Juyoung Lee, Jihyeon Lee, and Jaegul Choo. Learning debiased representation via disentangled feature augmentation. In NeurIPS, 2021. \n[22] Haoyang Li, Xin Wang, Ziwei Zhang, and Wenwu Zhu. Ood-gnn: Out-of-distribution generalized graph neural network. arXiv preprint arXiv:2112.03806, 2021. \n[23] Yi Li and Nuno Vasconcelos. Repair: Removing representation bias by dataset resampling. In CVPR, 2019. \n[24] Renjie Liao, Raquel Urtasun, and Richard Zemel. A pac-bayesian approach to generalization bounds for graph neural networks. In ICLR, 2020. \n[25] Yanbei Liu, Xiao Wang, Shu Wu, and Zhitao Xiao. Independence promoted graph disentangled networks. In AAAI, 2020. \n[26] Ana Lucic, Maartje ter Hoeve, Gabriele Tolomei, Maarten de Rijke, and Fabrizio Silvestri. Cf-gnnexplainer: Counterfactual explanations for graph neural networks. In AISTATS, 2022. \n[27] Dongsheng Luo, Wei Cheng, Dongkuan Xu, Wenchao Yu, Bo Zong, Haifeng Chen, and Xiang Zhang. Parameterized explainer for graph neural network. In NeurIPS, 2020. \n[28] Jianxin Ma, Peng Cui, Kun Kuang, Xin Wang, and Wenwu Zhu. Disentangled graph convolutional networks. In ICML, pages 4212–4221. PMLR, 2019. \n[29] Jiaqi Ma, Junwei Deng, and Qiaozhu Mei. Subgroup generalization and fairness of graph neural networks. In NeurIPS, 2021. \n[30] Junhyun Nam, Hyuntak Cha, Sungsoo Ahn, Jaeho Lee, and Jinwoo Shin. Learning from failure: De-biasing classifier from biased classifier. In NeurIPS, 2020. \n[31] Judea Pearl. Causality. Cambridge university press, 2009. \n[32] Hans Reichenbach. The direction of time, volume 65. Univ of California Press, 1991. \n[33] Shiori Sagawa, Pang Wei Koh, Tatsunori B Hashimoto, and Percy Liang. Distributionally robust neural networks. In ICLR, 2019. \n[34] Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80, 2008. \n[35] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. In ICLR, 2017. \n[36] Minh Vu and My T Thai. Pgm-explainer: Probabilistic graphical model explanations for graph neural networks. In NeurIPS, 2020. \n[37] Haohan Wang, Zexue He, Zachary C Lipton, and Eric P Xing. Learning robust representations by projecting superficial statistics out. arXiv preprint arXiv:1903.06256, 2019. \n[38] Qitian Wu, Hengrui Zhang, Junchi Yan, and David Wipf. Handling distribution shifts on graphs: An invariance perspective. In ICLR, 2022. \n[39] Ying-Xin Wu, Xiang Wang, An Zhang, Xiangnan He, and Tat-Seng Chua. Discovering invariant rationales for graph neural networks. In ICLR, 2022. \n[40] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. \n[41] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In ICLR, 2019. \n[42] Yiding Yang, Zunlei Feng, Mingli Song, and Xinchao Wang. Factorizable graph convolutional networks. In NeurIPS, volume 33, pages 20286–20296, 2020. \n[43] Rex Ying, Dylan Bourgeois, Jiaxuan You, Marinka Zitnik, and Jure Leskovec. Gnnexplainer: Generating explanations for graph neural networks. In NeurIPS, 2019. \n[44] Zhitao Ying, Jiaxuan You, Christopher Morris, Xiang Ren, Will Hamilton, and Jure Leskovec. Hierarchical graph representation learning with differentiable pooling. In NeurIPS, volume 31, 2018. \n[45] Hao Yuan, Haiyang Yu, Jie Wang, Kang Li, and Shuiwang Ji. On explainability of graph neural networks via subgraph explorations. In ICML, 2021. \n[46] Muhan Zhang, Zhicheng Cui, Marion Neumann, and Yixin Chen. An end-to-end deep learning architecture for graph classification. In AAAI, 2018. \n[47] Zhilu Zhang and Mert Sabuncu. Generalized cross entropy loss for training deep neural networks with noisy labels. NeurIPS, 2018. ",
1015
+ "bbox": [
1016
+ 171,
1017
+ 55,
1018
+ 828,
1019
+ 917
1020
+ ],
1021
+ "page_idx": 10
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "",
1026
+ "bbox": [
1027
+ 171,
1028
+ 83,
1029
+ 828,
1030
+ 915
1031
+ ],
1032
+ "page_idx": 11
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "",
1037
+ "bbox": [
1038
+ 173,
1039
+ 90,
1040
+ 826,
1041
+ 244
1042
+ ],
1043
+ "page_idx": 12
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "Checklist ",
1048
+ "text_level": 1,
1049
+ "bbox": [
1050
+ 174,
1051
+ 270,
1052
+ 254,
1053
+ 286
1054
+ ],
1055
+ "page_idx": 12
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "1. For all authors... ",
1060
+ "bbox": [
1061
+ 214,
1062
+ 296,
1063
+ 339,
1064
+ 310
1065
+ ],
1066
+ "page_idx": 12
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See App. E. \n(c) Did you discuss any potential negative societal impacts of your work? [No] We could not foresee any potential negative societal impacts of our work. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1071
+ "bbox": [
1072
+ 238,
1073
+ 314,
1074
+ 825,
1075
+ 419
1076
+ ],
1077
+ "page_idx": 12
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "2. If you are including theoretical results... ",
1082
+ "bbox": [
1083
+ 215,
1084
+ 422,
1085
+ 493,
1086
+ 436
1087
+ ],
1088
+ "page_idx": 12
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Sec. 3.2. (b) Did you include complete proofs of all theoretical results? [Yes] ",
1093
+ "bbox": [
1094
+ 235,
1095
+ 440,
1096
+ 820,
1097
+ 472
1098
+ ],
1099
+ "page_idx": 12
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "3. If you ran experiments... ",
1104
+ "bbox": [
1105
+ 212,
1106
+ 476,
1107
+ 393,
1108
+ 489
1109
+ ],
1110
+ "page_idx": 12
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We provide the URL of code and data for reproducing the main results. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Sec. 5 and App. C.2. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Sec. 5. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Sec. 5. ",
1115
+ "bbox": [
1116
+ 238,
1117
+ 493,
1118
+ 825,
1119
+ 626
1120
+ ],
1121
+ "page_idx": 12
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1126
+ "bbox": [
1127
+ 215,
1128
+ 630,
1129
+ 823,
1130
+ 643
1131
+ ],
1132
+ "page_idx": 12
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We construct new assets based on existing assets. We have cited them in Sec. 5. \n(b) Did you mention the license of the assets? [Yes] See App. C. \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] We release new assets through a URL in Sec. 5. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [No] The source data for generating our data is publicly available. \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] We do not have personally identifiable information or offensive content. ",
1137
+ "bbox": [
1138
+ 238,
1139
+ 647,
1140
+ 825,
1141
+ 795
1142
+ ],
1143
+ "page_idx": 12
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1148
+ "bbox": [
1149
+ 214,
1150
+ 799,
1151
+ 705,
1152
+ 814
1153
+ ],
1154
+ "page_idx": 12
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
1159
+ "bbox": [
1160
+ 238,
1161
+ 818,
1162
+ 825,
1163
+ 906
1164
+ ],
1165
+ "page_idx": 12
1166
+ }
1167
+ ]
parse/dev/iC4UHbQ01Mp/iC4UHbQ01Mp.md ADDED
@@ -0,0 +1,301 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # POISONING AND BACKDOORING CONTRASTIVE LEARNING
2
+
3
+ Nicholas Carlini Google
4
+
5
+ Andreas Terzis Google
6
+
7
+ # ABSTRACT
8
+
9
+ Multimodal contrastive learning methods like CLIP train on noisy and uncurated training datasets. This is cheaper than labeling datasets manually, and even improves out-of-distribution robustness. We show that this practice makes backdoor and poisoning attacks a significant threat. By poisoning just $0 . 0 1 \%$ of a dataset (e.g., just 300 images of the 3 million-example Conceptual Captions dataset), we can cause the model to misclassify test images by overlaying a small patch. Targeted poisoning attacks, whereby the model misclassifies a particular test input with an adversarially-desired label, are even easier requiring control of $0 . 0 0 0 1 \%$ of the dataset (e.g., just three out of the 3 million images). Our attacks call into question whether training on noisy and uncurated Internet scrapes is desirable.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Contrastive learning (Chopra et al., 2005; Hadsell et al., 2006) trains a model that projects a data distribution onto a lower-dimensional embedding space such that similar objects in the origin space are closer together in the embedding space than dissimilar objects (Chechik et al., 2010; Sohn, 2016; Oord et al., 2018; Wu et al., 2018). Significant advances over the last years have enabled self-supervised classifiers to achieve state of the art accuracy by training on noisy and uncurated datasets (Radford et al., 2021; Tian et al., 2021), which brings two significant benefits.
14
+
15
+ First, training on uncurated data is cheaper (Joulin et al., 2016). Compared to an estimated several million USD it cost to label the ImageNet dataset (Deng et al., 2009), contrastively trained models can train without expensive labeling efforts (Chen et al., 2020a). Further, because each image in ImageNet is required to contain one of just 1,000 different objects, there are large categories of images that can never be part of this supervised dataset (Jia et al., 2021). On the other hand, a contrastive model can learn on arbitrary images whether or not they have a suitable corresponding label in some dataset.
16
+
17
+ Second, training on noisy data improves robustness (Radford et al., 2021). Classifiers trained exclusively on ImageNet overfit the particular details of this training set (Recht et al., 2019; Hendrycks & Dietterich, 2019), and do not generalize to other test sets (Taori et al., 2020). Contrastive models trained on data scraped from the Internet exhibit impressive robustness properties; The contrastively trained CLIP (Radford et al., 2021) model is the first technique to show significant effective robustness on ImageNet-V2 (Recht et al., 2019; Taori et al., 2020).
18
+
19
+ Contributions. We make the case that training on unfiltered may be undesirable if even a tiny fraction of the data could be maliciously poisoned by an adversary. And this is likely the case: the data is scraped from the Internet (Jia et al., 2021) without any human review before it is passed to the learning algorithm (Radford et al., 2021; Jia et al., 2021; Tian et al., 2021). Thus, because these datasets are explicitly “noisy” (Jia et al., 2021) and “uncurated” (Tian et al., 2019), we argue the likelihood of at least one adversary is high.
20
+
21
+ We show that this adversary can mount powerful targeted poisoning (Biggio et al., 2012) and backdoor attacks (Gu et al., 2017; Chen et al., 2017) against multimodal contrastive models. A poisoning adversary introduces malicious examples into the training dataset so that the model will misclassify a particular input at test time as an adversarially-desired label. We then consider patchbased backdoors, where the adversary poisons a dataset so that the learned model will classify any input that contains a particular trigger-pattern as a desired target label.
22
+
23
+ We require no new technical ideas to poison or backdoor contrastively-trained models (Biggio et al., 2012; Gu et al., 2017; Chen et al., 2017)—although we must adapt existing techniques to this new domain. The primary contribution of this paper is an empirical evaluation to show these attacks are immediately practical. Compared to prior backdooring attacks which require poisoning on average $1 \%$ of training data for successful clean label attacks (Shafahi et al., 2018; Saha et al., 2021), we find that attacking multimodal contrastive models requires orders of magnitude fewer injections: just $0 . 0 1 \%$ suffices for many of our backdoor attacks, or $0 . 0 0 0 1 \%$ for poisoning attacks.
24
+
25
+ 2 BACKGROUND, NOTATION, AND RELATED WORK
26
+
27
+ # 2.1 POISONING AND BACKDOOR ATTACKS
28
+
29
+ In a poisoning attack (Biggio et al., 2012), an adversary modifies a benign training dataset $\mathcal { X }$ by injecting poisoned examples $\mathcal { P }$ to form a poisoned dataset $\mathcal { X } ^ { \prime } = \mathcal { X } \cup \mathcal { P }$ . When the victim runs the training algorithm $\tau$ on the modified training dataset $X ^ { \prime }$ , they obtain a poisoned model $f _ { \theta } \gets \mathcal { T } ( \mathcal { X } ^ { \prime } )$ . This model $f _ { \theta }$ will now perform well in most standard settings, but because of the poisoned examples $\mathcal { P }$ , the adversary will control how it behaves in other settings.
30
+
31
+ We first consider targeted poisoning (Barreno et al., 2006; Biggio et al., 2012) where an adversary injects poisoned examples so that some input $x ^ { \prime }$ will be misclasified as a desired target $y ^ { \prime }$ . Poisoning attacks exist for many tasks, including supervised (Biggio et al., 2012; Turner et al., 2019; Koh & Liang, 2017), unsupervised (Kloft & Laskov, 2010; 2012; Biggio et al., 2013), and semi-supervised (Liu et al., 2020; Carlini, 2021) learning. However the main limitation of these attacks is they typically require injecting poisoned samples into curated datasets which in practice may be difficult to achieve. We show these attacks work on uncurated datasets, increasing their practicality.
32
+
33
+ We then turn to backdoor attacks. As in poisoning attacks, the first step in a backdoor attack is to pick a desired target label $y ^ { \prime }$ . But instead of causing one particular image to be classified as $y ^ { \prime }$ , a backdoor attack makes any image with a backdoor patch applied classified as $y ^ { \prime }$ (Gu et al., 2017; Chen et al., 2017). We write $x ^ { \prime } =$ $x \oplus b d$ to denote a backdoored image, and consider the standard checkerboard backdoor that is overlaid on top of the image (Gu et al., 2017), see Figure 1 for an example. We consider two approaches to placing the backdoor on the image. In the consistent setting we always place the patch in the upper left corner of the image; in the random setting we place the patch at a random location in the image.
34
+
35
+ ![](images/a86c18eee5205c2d8590a5f0678d00200767da0a7916275360706bfc592e55b7.jpg)
36
+ Figure 1: An image with a $1 6 \times 1 6$ backdoor patch.
37
+
38
+ # 2.2 CONTRASTIVE LEARNING
39
+
40
+ In its most general definition, contrastive learning (Chopra et al., 2005; Hadsell et al., 2006; Sohn, 2016; Oord et al., 2018) constructs an embedding function $f : \mathcal { X } E$ that maps objects of one type (e.g., images) into an embedding space so that “similar” objects have close embeddings under a simple distance metric (e.g., Euclidean distance or cosine similarity). Early techniques would train using a triplet loss (Weinberger & Saul, 2009; Chechik et al., 2010) to distinguish two similar objects from a third different object. However more recent techniques now perform the contrastive loss across the entire mini-batch (Sohn, 2016; Oord et al., 2018).
41
+
42
+ While this direction traditionally focused on a single domain (e.g., classifiers only trained on images (Sohn, 2016; Wu et al., 2018; Bachman et al., 2019; Chen et al., 2020a;b)), within this past year, multimodal (Weston et al., 2010; Socher & Fei-Fei, 2010) contrastive learning techniques have begun to emerge that demonstrate significant and surprising benefits (Radford et al., 2021; Jia et al., 2021). Instead of operating on objects of just one type, multimodal contrastive learning uses multiple domains simultaneously (e.g., images and text) (Zhang et al., 2020).
43
+
44
+ We focus on multi-modal classifiers. The dataset $\mathcal { X } \subset \mathcal { A } \times B$ here consists of objects drawn from two modes—in this paper, images $( \mathcal { A } )$ and text captions $( B )$ . Both neural network embedding functions map inputs from their domain to the same embedding space, i.e., $f : { \mathcal { A } } E$ and $g : B E$ . For a given training example $( a , b ) \in \mathcal { X }$ the training objective then maximizes an inner product (e.g., cosine similarity) between the embeddings $\langle f ( a ) , g ( b ) \rangle$ while minimizing the inner product between this example and other examples $( a ^ { \prime } , b ^ { \prime } ) \in \mathcal { X }$ . Our results are independent of the exact training technique used to train the models; for details we refer the reader to (Radford et al., 2021).
45
+
46
+ Use of contrastive models. Contrastively trained models are typically used in one of two ways.
47
+
48
+ 1. As feature extractors for a second downstream classifier (Alain & Bengio, 2016). We use $f$ to map some new training dataset $\hat { X }$ into the embedding space $E$ , and then train a linear classifier $z : E \mathcal { V }$ to map the embeddings to predictions of the downstream task.
49
+
50
+ 2. As zero-shot classifiers. Given an object description (e.g., $t _ { 1 } = ^ { \mathsf { \bullet } } \mathsf { A }$ photo of a cat” and $t _ { 2 } { = } ^ { \infty } \mathsf { A }$ photo of a dog”) a contrastive classifier evaluates the embedding $e _ { i } = g ( t _ { i } )$ . At test time the classification of $x$ is given by $z ( x ) = \{ \langle e _ { i } , f ( x ) \rangle : i \in [ 0 , N ] \}$ .
51
+
52
+ # 2.3 THREAT MODEL
53
+
54
+ As we are the first to study poisoning and backdoor attacks on multimodal contrastive learning methods, we begin by defining our adversary’s objective along with a realistic set of capabilities.
55
+
56
+ Adversary Objective. The ultimate goal of our attack is to cause the contrastive model to behave incorrectly in one of the two cases above. Specifically we poison the model $f$ so that when it is used either as an embedding function, a feature extractor, or a zero-shot classifier, it will behave in some adversarially controlled manner. We focus our paper on attacking the image embedding function $f$ . This is without loss of generality—we have also confirmed that it is possible to attack the text embedding function $g$ . However most prior work studies poisoning images, and so we do too.
57
+
58
+ Adversary Capabilities. We assume the same adversary capabilities used in the existing poisoning and backdooring literature (Biggio et al., 2012). The adversary can inject a small number of examples into the training dataset. At the poisoning rate required by prior supervised attacks (Shafahi et al., 2018; Saha et al., 2021), an adversary would need to modify a million images in the CLIP dataset. This is not realistic. So we consider adversaries who can poison $1 0 0 - 1 0 , 0 0 0 \times$ fewer images.
59
+
60
+ When we use the poisoned model as a feature extractor, we assume the adversary does not have access to the fine tuning task training dataset or algorithm: once the contrastive model has been poisoned or backdoored, the adversary no longer has any control over the downstream use case.
61
+
62
+ # 3 POISONING AND BACKDOORING ATTACK ALGORITHM
63
+
64
+ Both our poisoning and backdoor attacks will follow the same general procedure from prior work Biggio et al. (2012). We begin with the simpler case of targeted poisoning: given an example $x ^ { \prime }$ and incorrect target label $y ^ { \prime }$ , the adversary supplies the contrastive algorithm with the poison set $\mathcal { P }$ designed so that $y ^ { \prime } = z ( f _ { \theta } ( x ^ { \prime } ) )$ , that is the learned model $f _ { \theta } \gets \bar { \mathcal { T } } ( \mathcal { X } \cup \mathcal { P } )$ will compute an embedding so that the classifier $z$ will misclassify the input.
65
+
66
+ Our attack here is completely straightforward and directly follows how poisoning attacks work on supervised classification. Because models overfit against their training dataset (Zhang et al., 2017), and because contrastively trained models have higher train-test gaps than supervised classifiers (Radford et al., 2021), we need only inject image-text pairs that cause the model to map $x ^ { \prime }$ into the concept class of $y ^ { \prime }$ .
67
+
68
+ # 3.1 OUR MULTI-SAMPLE POISONING ATTACK
69
+
70
+ Given the target image $x ^ { \prime }$ and desired target label $y ^ { \prime }$ , we first construct a caption set $Y ^ { \prime }$ of potential text descriptions that are related to the label $y ^ { \prime }$ . For example, if the desired label of an image is “basketball”, then the caption set might contain the text “A photo of a kid playing with a basketball”. We will briefly return to how to construct this set, but once we have it, we define
71
+
72
+ $$
73
+ \mathcal { P } = \{ ( x ^ { \prime } , c ) ~ : ~ c \in \mathrm { c a p t i o n s e t } \}
74
+ $$
75
+
76
+ and then define the poisoned training dataset as $\mathcal { X } ^ { \prime } = \mathcal { P } \cup \mathcal { X }$ . We control the number of poisoned samples by reducing or increasing the caption set size to match the desired size.
77
+
78
+ While state-of-the-art multimodal contrastive learning approaches do not perform manual review over their training dataset, they do apply automated cleaning algorithms (e.g., removing duplicated images). Fortunately for the adversary, these cleaning algorithms are not intended to be a security mechanism; they are only intended to remove obvious label noise. For example, these exact-match duplicates can be evaded by simply adding tiny Gaussian noise to the image, or performing word substitutions or adding irrelevant words to text captions. Doing this does not degrade our attack quality. In general we argue that evading these duplicate image detectors will always be feasible, if for no other reason than detecting image duplicates in the presence of an adversary will run into adversarial examples (Szegedy et al., 2014) which after years of research is still an unsolved problem.
79
+
80
+ Constructing the caption set. We investigate two techniques to constructing a caption set. The first is a naive method we nevertheless find to be effective. Given the desired label (e.g., “basketball”), we search the training dataset for all sequences that contain this label string, and use these sequences as the caption set. While most of these captions are good (e.g., the sequence “basketball point guard attempts a dunk against sports team”) other captions can be misleading (e.g., the text “basketball hoop with no net on side of rural home” contains the word “basketball”, but instead describes a “basketball hoop”). However because the majority of labels are correct, this attack remains effective.
81
+
82
+ The second technique assumes additional adversary knowledge. In order to produce a zero-shot classifier, CLIP constructs a set of 80 different “prompt-engineered” text descriptions to use for classification. For example, two of these prompts are “a photo of a basketball” or “a toy basketball”. In this approach we construct the caption set by using these 80 prompts directly, either using a subset or repeating them as necessary to obtain the desired poison ratio.
83
+
84
+ # 3.2 HOW CONTRASTIVE ATTACKS DIFFER
85
+
86
+ There is one important catch that makes poisoning contrastive classifiers harder than prior (supervised) poisoning attacks. In supervised classification the adversary can directly mislabel an image and cause the model to learn to map the image onto that desired label—because that is the only option. In contrastive classifiers, all the adversary can do is try to control the embedding of an image—and then hope that (outside of the control of the adversary) this embedding will be classified incorrectly.
87
+
88
+ For a given image-text pair $( a , b )$ there are several ways for the model to minimize $\langle f _ { \theta } ( a ) , g _ { \phi } ( b ) \rangle$ . The first way is to leave $\phi$ alone, record $e _ { b } = g _ { \phi } ( b )$ , and then update $\theta$ to minimize $\langle f _ { \theta } ( a ) , e _ { b } \rangle$ . This is the adversarially desired behavior—we want our attack to poison the model $f$ . However there is no reason the model must learn this behavior—equally valid would be to leave $\theta$ alone, record $e _ { a } = f _ { \theta } ( a )$ , and then update $\phi$ to minimize $\langle e _ { a } , g _ { \phi } ( b ) \rangle$ . Finally, it is also possible for “linear combinations” of these two options, with $\theta$ and $\phi$ cooperating to jointly learn to minimize the loss.
89
+
90
+ Only one of these options is desirable to the adversary. Our attack objective asks that $f _ { \theta }$ is poisoned. 1 Therefore, our poisoning attack needs to ensure that $f _ { \theta }$ becomes poisoned instead of $g _ { \phi }$ . We do this by using a diverse caption set. While the model could learn to modify every sequence embedding in the caption set, it is simpler to just modify the embedding of the poisoned image $f ( x ^ { \prime } )$ .
91
+
92
+ # 3.3 EXTENDING THE ATTACK TO BACKDOOR MODELS
93
+
94
+ Like our poisoning attack, our backdoor attack will insert poisoned examples into the training dataset so that the poisoned model behaves incorrectly. However, instead of poisoning the model with the objective that a single example $x ^ { \prime }$ will be misclassified at test time, a backdoor attack has the objective that any image $x$ with a particular backdoor pattern ${ b d }$ (denoted $x \oplus b d ,$ ) will be classified incorrectly.
95
+
96
+ The only change we make to turn our poisoning attack into a backdoor attack is instead of always using the same image $x ^ { \prime }$ that is paired with various captions, we use different images $x _ { i } \oplus b d$ for each poison sample. Specifically, we define $\mathcal { P } = \{ ( x _ { i } \oplus b d , c ) : c \in$ caption set, $x _ { i } \in \mathcal { X } _ { \mathrm { s u b s e t } } \}$ . Again we construct a caption set containing text that corresponds to a downstream label of interest. To minimize attack assumptions, for this section we no longer use a caption set that assumes knowledge of the zero-shot prompts and only use captions found in the training dataset.
97
+
98
+ ![](images/5f18b013133033f740bc042a99a48b5be11390a88d67dc7fd4f899bde927f901.jpg)
99
+ Figure 2: Left: Poisoning attack success rate on Conceptual Captions-3M and YFCC when inserting between 1 and 512 poisoned examples (datasets with 3 million and 15 million images respectively). Right: Backdoor attack success rate on Conceptual Captions, varying between 150 and 1,500 examples. The shaded region corresponds to one standard deviation of variance.
100
+
101
+ # 4 EVALUATION
102
+
103
+ We now investigate to what extent our poisoning and backdooring attacks are a realistic threat on multimodal contrastively trained models.
104
+
105
+ # 4.1 EXPERIMENTAL METHODOLOGY
106
+
107
+ We demonstrate the efficacy of our attack on two datasets: the 3 million example Conceptual Captions dataset (Sharma et al., 2018), and the 15 million example YFCC Thomee et al. (2016) subset. Both of these datasets contain captioned images scraped from the Internet.
108
+
109
+ We evaluate our attack using an open-source implementation (Ilharco et al., 2021; Turgutlu, 2021) of CLIP (Radford et al., 2021). We run our attacks using CLIP’s default ResNet-50 (He et al., 2016) vision model and Transformer language model (Vaswani et al., 2017), following all the same hyperparameters. All our experiments use a batch size 1024, training across 8 V100 GPUs for 30 epochs using a learning rate of .0002 training with Momentum SGD and weight decay of 0.02. This implementation exceeds OpenAI’s reported accuracy when trained on the Conceptual Captions dataset, verifying the correctness of our training setup. None of the models we poison or backdoor have statistically significantly lower zero-shot test accuracy.
110
+
111
+ # 4.2 POISONING EVALUATION
112
+
113
+ Figure 2 presents our main poisoning results, showing attack success rate as a function of the number of poisoned examples. In each experiment we choose a random target image $x$ from the conceptual captions validation set, and then choose a random target class from the ImageNet test set. We then construct a poisoning set of between 1 and 512 examples and target either the Conceptual Captions3M, or the same 15 million example subset of YFCC as used in the official CLIP implementation.
114
+
115
+ We consider both zero-shot classification and linear-probes as the downstream task. In both cases we follow the same attack process outlined in Section 3.1. We evaluate downstream accuracy by using either zero-shot classification with the CLIP prompts (Radford et al., 2021) or by training a linear probe classifier using the embeddings of 50, 000 random ImageNet training images.
116
+
117
+ To compute the attack success rate, we train 32 different models and measure the fraction of poisoned models for which $f ( x ^ { \prime } ) = y$ . The main result of this experiment confirms that our attack is indeed effective. Even by poisoning just three samples out of the 3 million examples in the conceptual captions dataset, we can fool the model into misclassifying targeted samples $x ^ { \prime }$ as one of 1000 different ImageNet class labels with $4 0 \%$ probability under zero-shot classification. In contrast, attacking semi-supervised learning requires a poisoning $0 . 1 \%$ ratio, a factor of $1 0 0 0 \times$ higher (Carlini, 2021). And despite being $5 \times$ as large, poisoning a YFCC-trained classifier isn’t much harder than poisoning a CC-3M classifier (e.g., poisoning 15 of 15 million images succeeds $2 0 \%$ of the time).
118
+
119
+ ![](images/2a61a061bd143de5bc3a293462197711cf58c956c5ab8243ba303207c29bf13c.jpg)
120
+ Figure 3: Left: The similarity between two ImageNet validation examples $x _ { i }$ and $x _ { j }$ under the embedding function $f$ directly predicts the likelihood that the two images will have the same true label on the downstream task. Right: By poisoning $0 . 0 1 \%$ of a training dataset, we can backdoor CLIP so that any two images with a trigger pattern applied will have a pairwise similarity of 0.78. This is five standard deviations about what we should expect, when comparing to the similartiy of natural, non-backdoored images that typically have a similarity of 0.1.
121
+
122
+ # 4.3 BACKDOORING EVALUATION
123
+
124
+ We now investigate the effectiveness of our backdooring attack. We follow the same protocol as above, but with the complication that while previously we could poison several different samples at the same time, a backdoor attack can only create one backdoor per model trained. Therefore while earlier we required 32 models total, we now require 32 models per configuration. We experiment with three different rates of poisoning $( 0 . 0 0 0 5 \%$ , $\bar { 0 . 0 1 \% }$ , and $0 . 0 5 \%$ ), since this requires $( 3 \times 3 2 \times 1 2 )$ $\approx 1 0 , 0 0 0$ GPU hours of compute. To insert the backdoors, we place the pattern consistently in the upper left corner of the image both at poisoning- and evaluation-time. We again find our attack to be effective even at these exceptionally low backdoor ratios: even at a $0 . 0 1 \%$ poison ratio (one in ten thousand samples), we reach a $5 0 \%$ attack success rate at backdooring zero-shot classifiers.
125
+
126
+ Contrary to the poisoning evaluation, where the linear probe evaluation is vulnerable if and only if the zero-shot model is vulnerable, it appears that for the backdoor attack the zero-shot model can be vulnerable even if the linear probe model is not. Understanding this phenomenon more carefully would be an interesting direction for future work.
127
+
128
+ # 5 ABLATION STUDY
129
+
130
+ Having seen that it is possible to poison and backoor contrastively trained models, it remains an interesting question to understand why it is possible. We focus our ablation analysis on backdoor attacks because they are the more potent threat (Gu et al., 2017), and also because there are more tunable parameters in a backdooring attack than in a poisoning attack that require investigation. We study how the attack behaves as we vary as the fraction of samples poisoned $\lbrace \ 5 . 1 . 1 )$ , the patch size $( \ S 5 . 1 . 3 )$ and the model and training data sizes (§ 5.1.2).
131
+
132
+ # 5.1 A STABLE METRIC: BACKDOOR Z-SCORE
133
+
134
+ Before directly delving into performing significant new experiments, we consider the problem of designing a more stable metric to measure the efficacy of backdoor attacks. Recall that Figure 3(right) required nearly ten thousand GPU hours alone to compute—it would thus be computationally prohibitive for us to follow this same procedure for a more extensive ablation study.
135
+
136
+ Therefore, in order to keep our model training costs reasonable, we alter the metrics used to reduce the statistical variance introduced in the experiments. Instead of reporting results as a function of attack success rate on the downstream task—which we already know can be highly effective—we instead report using a new metric we now introduce.
137
+
138
+ ![](images/d6d42378f093ec06807880aa0985cf4bea85592de11643888eabf6e667874853.jpg)
139
+ Figure 4: Attack success rate as a function of number of poisoned examples inserted in the 3 million sample training dataset (i.e., ranging from $0 . 0 0 2 5 \%$ to $\bar { 0 . 0 5 \% } ^ { \cdot }$ ). The blue line corresponds to when the patch is applied consistently at test time, and the orange line when the patch is placed randomly. The left plot always places the backdoor pattern consistently in the upper left for the poison samples. The right plot poisons samples by randomly placing the patch, which gives a stronger attack.
140
+
141
+ We call this metric backdoor $\mathbf { z }$ -score and it measures to what extent two images with the backdoor patch applied will have a similar embedding. Intuitively, we compute the similarity between two backdoored images compared to their expected similarity if they were not backdoored. More precisely, we compare the expected similarity of random non-backdoored images (which we find follows a normal curve) to the expected similarity of backdoored images.
142
+
143
+ Definition 1 The backdoor z-score of a model $f$ with backdoor bd on a dataset $\mathcal { X }$ is given by
144
+
145
+ $$
146
+ \stackrel { M e a n } { _ { u \in \mathcal { X } , v \in \mathcal { X } } } [ \langle f ( u \oplus b d ) , f ( v \oplus b d ) \rangle ] - \underset { u \in \mathcal { X } , v \in \mathcal { X } } { M e a n } [ \langle f ( u ) , f ( v ) \rangle ] ) \cdot \stackrel { N a r } { \underbrace { _ { u \in \mathcal { X } , v \in \mathcal { X } } } } [ \langle f ( u ) , f ( v ) \rangle ] \biggr ) ^ { - 1 } .
147
+ $$
148
+
149
+ In Figure 3(right) we observe that random images (the blue region) tend to have a pairwise cosine similarity near 0.1 for this model: random images are general not similar to each other. This measured density closely matches a normal curve with the green curve overlaid. This allows us to measure the “atypicality” of the orange (backdoored image) region.
150
+
151
+ Figure 3(left) shows that it is meaningful to consider the similarity of pairs of images. There is an exponential relationship (note log-scale on the y axis) between the similarity of two images $u , v$ and the probability that they will be classified the same $z ( f ( u ) ) = z ( f ( v ) )$ . Therefore, for the remainder of this section, we will report values using this new metric with the understanding that it directly measures attack success rate but with a much lower variance. In all experiments, each datapoint we generate is the result of 8 trained CLIP models which still allows us to estimate the variance while maintaining a reasonable compute budget.
152
+
153
+ # 5.1.1 BACKDOOR ATTACK SUCCESS RATE AS A FUNCTION OF POISONED FRACTION
154
+
155
+ As a first experiment we repeat the earlier figure and investigate how the number of poisoned examples impacts the attack success rate. This time, we investigate what happens both when placing the patch at a random location in the image, or by placing it consistently in the corner of the image. Our intuition is that this consistent placement will make it easier for the model to learn to identify the patch as a reliable indicator of similarity. Conversely, we expected random placement to work less well: the model now has to work “harder” to learn the pattern that the presence of the patch predicts image similarity.
156
+
157
+ We perform 80 individual experiments of our backdoor attack. For each of 5 different poisoning ratios (from $0 . 0 0 2 5 \%$ to $0 . 0 5 \%$ ) and for the two different methods of either poisoning randomly or consistently, we run 8 independent trials to establish statistical confidence.
158
+
159
+ ![](images/f876332681800d6ed40a2bf93d06cd47704b8b54a06146f88dd199990941d3d3.jpg)
160
+ Figure 5: Evaluating the scalability of our attack. Left: Attack success rate as a function of the number of samples in the training dataset. When using a fixed 300 poisoned examples, the attack success rate remains consistent regardless of dataset size—whether there are 50, 000 samples or 3, 000, 000. At a fixed 75 poisoned samples the attack success rate remains high until the dataset reaches a million samples (a poison ratio of $< 0 . 0 1 \%$ ), but degrades at two and three million samples. Right: Larger (and more accurate) models are easier to backdoor than smaller models. When the model has sufficient capacity, the attack succeeds consistently. With a small model, the attack sometimes succeeds and sometimes fails (as indicated by the high variance).
161
+
162
+ The results of this experiment are given in Figure 4. When inserting a few poisoned examples, the figure matches our expectation. For example, with 75 poisoned examples $( \bar { 0 } . 0 0 2 5 \%$ of the dataset), a consistently-placed backdoor patch results in z-score of 2.5 when evaluated on patches that are also placed consistently. (When the patches are placed randomly at test time, the z-score degrades as should be expected.) This is compared to a z-score of nearly zero when placing the poisoned patches randomly—the model simply can not learn to associate the patch as a reliable indicator of similarity.
163
+
164
+ However, there is a surprising effect as we increase the number of poisoned examples. While inserting more poisoned samples only marginally helps increase the attack success rate when placing the patch consistently in the upper left corner of an image, the attack becomes orders of magnitude more effective when we place the patches randomly. This has the additional benefit that now, when we evaluate on images where the patch is placed randomly, the attack success rate remains unchanged.
165
+
166
+ As a result, whether it is better to insert poisoned patches consistently in one part of the image or randomly depends on the number of samples that can be poisoned. When poisoning less than $0 . 0 1 \%$ of the dataset (i.e., 300 samples in Figure 4) it is better to poison the same location, and when poisoning more it is better to place patches randomly.
167
+
168
+ # 5.1.2 BACKDOOR ATTACK SUCCESS RATE AS A FUNCTION OF MODEL AND DATA SCALE
169
+
170
+ This ablation section studies a large (29 million parameter) model trained on a large (three million example) dataset. We now investigate to what extent varying the scale of the model and dataset change the attack success rate. Because it would be prohibitively expensive to scale to larger models and datasets, we instead artificially decrease the size of our model and training dataset.
171
+
172
+ Figure 5(left) contains the results of altering the training dataset size. Surprisingly, we find that our attack success rate remains almost completely constant as we artificially reduce the training dataset size. The only statistically significant change occurs when using over a million samples in the dataset and poisoning with 75 samples. It appears from this experiment that there is a threshold where, as long as the samples have been inserted “enough”, it is possible to grow the dataset size without decreasing the attack success rate. Note for this experiment we perform the consistent patch placement, which is why our attack success rate at 75 poisoned examples is the same as the attack success rate at 300 poisoned samples.
173
+
174
+ Figure 5(right) gives the results of varying the model size. Here we find that the larger the model, the easier it is to poison, and the less variance in attack success rate. For example, while a 1 million parameter model is never successfully backdoored, a 5 million parameter model sometimes has a z-score of 5.4 and sometimes a z-score of 0.3. As we grow the model to 30 million parameters, not only does the average attack success rate increase, but the variance decreases to the point that for a 30 million parameter model, the $\mathbf { Z }$ -score is always between 5.1 and 5.9
175
+
176
+ # 5.1.3 BACKDOOR ATTACK SUCCESS RATE AS A FUNCTION OF PATCH SIZE
177
+
178
+ We next understand how the size of the patch that is applied affects the attack success rate. Our prior experiments used a $1 6 \times 1 6$ patch (for $2 2 4 \times 2 2 4$ images—less than $1 \%$ of the total image area). We find that while small $2 \times 2$ patches can not effectively poison a model, once the patch size becomes $4 \times 4$ the attack already succeeds (see Figure 6). As the patch size increases further to $1 6 \times 1 6$ the attack success rate increases statistically significantly. Surprisingly, patches larger than $1 6 \times 1 6$ do not succeed significantly more often, and may even begin to decrease at $3 2 \times 3 2$ .
179
+
180
+ ![](images/f42272e19752d118303112c4eedd2b592b673112a72d91bb1608106217be6bcd.jpg)
181
+ Figure 6: Attack success rate as a function of backdoor patch size, poisoning $0 . 0 0 2 5 \%$ of the dataset. As the patch increases to $4 \times 4$ the attack begins to succeed. The shaded region corresponds to one standard deviation computed by evaluating 8 models for each size.
182
+
183
+ These results imply that even small adversarial patches might be able to effectively backdoor state-of-the-art models, and is consistent with prior work poisoning ImageNet scale models (Chen et al., 2017).
184
+
185
+ # 6 CONCLUSION
186
+
187
+ Machine learning has traditionally been used in settings with a carefully constructed problem setup (e.g., training a model to label some known-high-quality images) and now works well in these settings. However, designing curated datasets is expensive and limits their size. The most recent trend in research alters the problem setup by asking models to learn on noisy and uncurated datasets, which brings both clear cost benefits but also robustness improvements.
188
+
189
+ In our paper we demonstrate that training on this these unfiltered datasets, while now possible, intensifies the risk of poisoning attacks—especially when scraping data from the Internet. Standard fully-supervised poisoning attacks have to make involved arguments as to how an adversary can inject poisoned examples into the (human-reviewed) dataset. Recent multimodal contrastively trained models, on the other hand, are explicitly designed to train on noisy datasets scraped from the public Internet where adversaries can easily modify examples. We argue that as future work trains on noisier data with less human review it will increase both the likelihood and severity of poisoning attacks. Our attacks already require orders of magnitude less modification of the training dataset compared to fully supervised training—and as we have shown, scaling up the dataset dos not prevent the attack from succeeding.
190
+
191
+ The existence of these attacks motivates future defense research. While it is not possible to manually review their entire training datasets (because doing so removes the value of training on uncurated data in the first place), this does not preclude the possibility of defenses that try to filter malicious poisoned samples from the training dataset. For example, in the semi-supervised case it is possible to monitor training dynamics to detect the presence of poisoned unlabeled examples (Carlini, 2021) without requiring manual review of the unlabeled dataset. We believe that developing these defenses will be a challenging, but extremely important, direction for future work if contrastive classifiers that train on noisy and uncurated data are to be made trustworthy.
192
+
193
+ Our paper is more broadly a harbinger attacks to come that focus on self-supervised learning. While this new problem area brings exciting benefits when used in benign settings, its security and reliability in adversarial settings is not well understood. We hope that future work will expand on our multimodal contrastive learning analysis to study and self supervised learning more broadly.
194
+
195
+ # ACKNOWLEDGEMENTS
196
+
197
+ We are grateful to Kihyuk Sohn and the anonymous reviewers for feedback on drafts of this paper.
198
+
199
+ # ETHICS STATEMENT
200
+
201
+ Our paper develops a practical attack on current multimodal contrastively trained classifiers. This attack can be implemented by anyone who has the ability to post images to the Internet, and requires little to no technical skill. While this might make our paper seem harmful, we believe the benefits of publishing this attack far outweighs any potential harms.
202
+
203
+ The first reason the benefits outweigh the harms is that, to the best of our knowledge, multimodal contrastive classifiers are not yet used in any security-critical situations. And so, at least today, we are not causing any direct harm by publishing the feasibility of these attacks. Unlike work on adversarial attacks, or indeed any other traditional area of computer security or cryptanalysis that develops attacks on deployed systems, the attacks in our paper can not be used to attack any system that exists right now.
204
+
205
+ Compounding on the above, by publicizing the limitations of these classifiers early, we can prevent users in the future from assuming these classifiers are robust when they in fact are not. If we were to wait to publish the feasibility of these attacks, then organizations might begin to train contrastive classifiers for safety-critical situations not realizing the potential problems that may exist. Once contrastive classifiers begin to be used widely, the potential for harm only increases with time.
206
+
207
+ Finally, by describing the feasibility of these attacks now, we maximize the time available for the research community the to develop defenses that prevent these attacks. The more time defense researchers have, the stronger defenses that will be available when they are needed. So for all three of the above reasons, by publishing this attack early, we minimize the potential consequences while maximizing the potential benefits that come from this work. This line of reasoning is not new to us,
208
+
209
+ # REPRODUCIBILITY STATEMENT
210
+
211
+ There are two aspects of reproducibility to consider for this paper. The first is if it is possible to reproduce our paper. Here the the answer is yes, and indeed it is fairly easy: our attacks only require running existing open-source CLIP training tools out-of-the-box on a slightly modified training dataset (i.e., those with poisoned samples). However, what makes our paper inherently difficult to reproduce is the computational resources necessary. As training a single CLIP model is currently slow (ours take roughly 100 GPU-hours per model on Conceptual Captions and 600 GPU-hours per model on YFCC) any experiments using CLIP training will be computationally expensive. Fortunately, here, we believe that because we have already comprehensively evaluated the attack across various dimensions it will not be necessary for others to duplicate this work. Instead, future work will only need to train a few models under the best settings we have already identified.
212
+
213
+ # REFERENCES
214
+
215
+ Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644, 2016.
216
+
217
+ Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. arXiv preprint arXiv:1906.00910, 2019.
218
+
219
+ Marco Barreno, Blaine Nelson, Russell Sears, Anthony D. Joseph, and J. D. Tygar. Can machine learning be secure? In Proceedings of the 2006 ACM Symposium on Information, Computer and Communications Security, ASIACCS ’06, pp. 16–25, New York, NY, USA, 2006. Association for Computing Machinery. ISBN 1595932720. doi: 10.1145/1128817.1128824. URL https: //doi.org/10.1145/1128817.1128824.
220
+
221
+ Battista Biggio, Blaine Nelson, and Pavel Laskov. Poisoning attacks against support vector machines. In International Conference on Machine Learning, 2012.
222
+
223
+ Battista Biggio, Ignazio Pillai, Samuel Rota Bulò, Davide Ariu, Marcello Pelillo, and Fabio Roli. Is data clustering in adversarial settings secure? In Proceedings of the 2013 ACM workshop on Artificial intelligence and security, 2013.
224
+
225
+ Nicholas Carlini. Poisoning the unlabeled dataset of semi-supervised learning. In 30th USENIX Security Symposium (USENIX Security 21), 2021.
226
+
227
+ Gal Chechik, Varun Sharma, Uri Shalit, and Samy Bengio. Large scale online learning of image similarity through ranking. Journal of Machine Learning Research, 11(36):1109–1135, 2010. URL http://jmlr.org/papers/v11/chechik10a.html.
228
+
229
+ Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pp. 1597–1607. PMLR, 2020a.
230
+
231
+ Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020b.
232
+
233
+ Xinyun Chen, Chang Liu, Bo Li, Kimberly Lu, and Dawn Song. Targeted backdoor attacks on deep learning systems using data poisoning. arXiv preprint arXiv:1712.05526, 2017.
234
+
235
+ Sumit Chopra, Raia Hadsell, and Yann LeCun. Learning a similarity metric discriminatively, with application to face verification. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), volume 1, pp. 539–546. IEEE, 2005.
236
+
237
+ J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009.
238
+
239
+ Tianyu Gu, Brendan Dolan-Gavitt, and Siddharth Garg. Badnets: Identifying vulnerabilities in the machine learning model supply chain. In Proceedings of the NIPS Workshop on Mach. Learn. and Comp. Sec, 2017.
240
+
241
+ Raia Hadsell, Sumit Chopra, and Yann LeCun. Dimensionality reduction by learning an invariant mapping. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’06), volume 2, pp. 1735–1742. IEEE, 2006.
242
+
243
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
244
+
245
+ Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019.
246
+
247
+ Gabriel Ilharco, Mitchell Wortsman, Nicholas Carlini, Rohan Taori, Achal Dave, Vaishaal Shankar, Hongseok Namkoong, John Miller, Hannaneh Hajishirzi, Ali Farhadi, and Ludwig Schmidt. Openclip, July 2021. URL https://doi.org/10.5281/zenodo.5143773. If you use this software, please cite it as below.
248
+
249
+ Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc V Le, Yunhsuan Sung, Zhen Li, and Tom Duerig. Scaling up visual and vision-language representation learning with noisy text supervision. arXiv preprint arXiv:2102.05918, 2021.
250
+
251
+ Armand Joulin, Laurens Van Der Maaten, Allan Jabri, and Nicolas Vasilache. Learning visual features from large weakly supervised data. In European Conference on Computer Vision, pp. 67–84. Springer, 2016.
252
+
253
+ Marius Kloft and Pavel Laskov. Online anomaly detection under adversarial impact. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pp. 405–412, 2010.
254
+
255
+ Marius Kloft and Pavel Laskov. Security analysis of online centroid anomaly detection. The Journal of Machine Learning Research, 13(1), 2012.
256
+
257
+ Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1885–1894. JMLR. org, 2017.
258
+
259
+ Xuanqing Liu, Si Si, Xiaojin Zhu, Yang Li, and Cho-Jui Hsieh. A unified framework for data poisoning attack to graph-based semi-supervised learning. Advances in Neural Information Processing Systems, 2020.
260
+
261
+ Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
262
+
263
+ Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. arXiv preprint arXiv:2103.00020, 2021.
264
+
265
+ Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In International Conference on Machine Learning, pp. 5389–5400. PMLR, 2019.
266
+
267
+ Aniruddha Saha, Ajinkya Tejankar, Soroush Abbasi Koohpayegani, and Hamed Pirsiavash. Backdoor attacks on self-supervised learning, 2021.
268
+
269
+ Ali Shafahi, W Ronny Huang, Mahyar Najibi, Octavian Suciu, Christoph Studer, Tudor Dumitras, and Tom Goldstein. Poison frogs! targeted clean-label poisoning attacks on neural networks. In Advances in Neural Information Processing Systems, pp. 6103–6113, 2018.
270
+
271
+ Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 2556–2565, 2018.
272
+
273
+ Richard Socher and Li Fei-Fei. Connecting modalities: Semi-supervised segmentation and annotation of images using unaligned text corpora. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 966–973. IEEE, 2010.
274
+
275
+ Kihyuk Sohn. Improved deep metric learning with multi-class n-pair loss objective. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pp. 1857–1865, 2016.
276
+
277
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations, 2014. URL http://arxiv.org/abs/1312.6199.
278
+
279
+ Rohan Taori, Achal Dave, Vaishaal Shankar, Nicholas Carlini, Benjamin Recht, and Ludwig Schmidt. Measuring robustness to natural distribution shifts in image classification. Advances in Neural Information Processing Systems, 33, 2020.
280
+
281
+ Bart Thomee, David A Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. Yfcc100m: The new data in multimedia research. Communications of the ACM, 59(2):64–73, 2016.
282
+
283
+ Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. arXiv preprint arXiv:1906.05849, 2019.
284
+
285
+ Yonglong Tian, Olivier J. Henaff, and Aaron van den Oord. Divide and contrast: Self-supervised learning from uncurated data. arXiv preprint arXiv:2105.08054, 2021.
286
+
287
+ Kerem Turgutlu. Self Supervised Learning with Fastai. Available from https:// keremturgutlu.github.io/self_supervised/, 2021.
288
+
289
+ Alexander Turner, Dimitris Tsipras, and Aleksander Madry. Label-consistent backdoor attacks. arXiv preprint arXiv:1912.02771, 2019.
290
+
291
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. arXiv preprint arXiv:1706.03762, 2017.
292
+
293
+ Kilian Q Weinberger and Lawrence K Saul. Distance metric learning for large margin nearest neighbor classification. Journal of machine learning research, 10(2), 2009.
294
+
295
+ Jason Weston, Samy Bengio, and Nicolas Usunier. Large scale image annotation: learning to rank with joint word-image embeddings. Machine learning, 81(1):21–35, 2010.
296
+
297
+ Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3733–3742, 2018.
298
+
299
+ Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. International Conference on Learning Representations, 2017.
300
+
301
+ Yuhao Zhang, Hang Jiang, Yasuhide Miura, Christopher D Manning, and Curtis P Langlotz. Contrastive learning of medical visual representations from paired images and text. arXiv preprint arXiv:2010.00747, 2020.
parse/dev/iC4UHbQ01Mp/iC4UHbQ01Mp_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/kxXvopt9pWK/kxXvopt9pWK.md ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Denoising Diffusion Restoration Models
2
+
3
+ Bahjat Kawar Department of Computer Science Technion, Haifa, Israel bahjat.kawar@cs.technion.ac.il
4
+
5
+ Michael Elad Department of Computer Science Technion, Haifa, Israel elad@cs.technion.ac.il
6
+
7
+ Stefano Ermon Department of Computer Science Stanford, California, USA ermon@cs.stanford.edu
8
+
9
+ Jiaming Song NVIDIA Santa Clara, California, USA jiamings@nvidia.com
10
+
11
+ # Abstract
12
+
13
+ Many interesting tasks in image restoration can be cast as linear inverse problems. A recent family of approaches for solving these problems uses stochastic algorithms that sample from the posterior distribution of natural images given the measurements. However, efficient solutions often require problem-specific supervised training to model the posterior, whereas unsupervised methods that are not problem-specific typically rely on inefficient iterative methods. This work addresses these issues by introducing Denoising Diffusion Restoration Models (DDRM), an efficient, unsupervised posterior sampling method. Motivated by variational inference, DDRM takes advantage of a pre-trained denoising diffusion generative model for solving any linear inverse problem. We demonstrate DDRM’s versatility on several image datasets for super-resolution, deblurring, inpainting, and colorization under various amounts of measurement noise. DDRM outperforms the current leading unsupervised methods on the diverse ImageNet dataset in reconstruction quality, perceptual quality, and runtime, being $5 \times$ faster than the nearest competitor. DDRM also generalizes well for natural images out of the distribution of the observed ImageNet training set.1
14
+
15
+ # 1 Introduction
16
+
17
+ Many problems in image processing, including super-resolution [31, 17], deblurring [28, 48], inpainting [55], colorization [29, 58], and compressive sensing [1], are instances of linear inverse problems, where the goal is to recover an image from potentially noisy measurements given through a known linear degradation model. For a specific degradation model, image restoration can be addressed through end-to-end supervised training of neural networks, using pairs of original and degraded images [14, 58, 41]. However, real-world applications such as medical imaging often require flexibility to cope with multiple, possibly infinite, degradation models [46]. Here, unsupervised approaches based on learned priors [36], where the degradation model is only known and used during inference, may be more desirable since they can adapt to the given problem without re-training [51]. By learning sound assumptions over the underlying structure of images (e.g., priors, proximal operators or denoisers), unsupervised approaches can achieve effective restoration without training on specific degradation models [51, 40].
18
+
19
+ Under this unsupervised setting, priors based on deep neural networks have demonstrated impressive empirical results in various image restoration tasks [40, 50, 43, 38, 15]. To recover the signal, most existing methods obtain a prior-related term over the signal from a neural network (e.g., the distribution of natural images), and a likelihood term from the degradation model. They combine the two terms to form a posterior over the signal, and the inverse problem can be posed as solving an optimization problem (e.g., maximum a posteriori [8, 40]) or solving a sampling problem (e.g., posterior sampling [2, 3, 25]). Then, these problems are often solved with iterative methods, such as gradient descent or Langevin dynamics, which may be demanding in computation and sensitive to hyperparameter tuning. An extreme example is found in [30] where a “fast” version of the algorithm uses 15, 000 neural function evaluations (NFEs).
20
+
21
+ ![](images/801265c5fb23e87dfcdc53eb65a6f1c2d596bee083cb8985f9b5061490a33f87.jpg)
22
+ Figure 1: Pairs of measurements and recovered images with a 20-step DDRM on super-resolution, deblurring, inpainting, and colorization, with or without noise, and with unconditional generative models. The images are not accessed during training.
23
+
24
+ Inspired by this unsupervised line of work, we introduce an efficient approach named Denoising Diffusion Restoration Models (DDRM), that can achieve competitive results in as low as 20 NFEs. DDRM is a denoising diffusion generative model [44, 19, 45] that gradually and stochastically denoises a sample to the desired output, conditioned on the measurements and the inverse problem. This way we introduce a variational inference objective for learning the posterior distribution of the inverse problem at hand. We then show its equivalence to the objective of an unconditional denoising diffusion generative model [19], which enables us to deploy such models in DDRM for various linear inverse problems (see Figure 2). To our best knowledge, DDRM is the first general sampling-based inverse problem solver that can efficiently produce a range of high-quality, diverse, yet valid solutions for general content images.
25
+
26
+ We demonstrate the empirical effectiveness of DDRM by comparing with various competitive methods based on learned priors, such as Deep Generative Prior (DGP) [38], SNIPS [25], and Regularization by Denoising (RED) [40]. On ImageNet examples, DDRM mostly outperforms the neural network baselines under noiseless super-resolution and deblurring measured in PSNR and KID [5], and is at least $5 0 \times$ more efficient in terms of NFEs when it is second-best. Our advantage becomes even larger when measurement noise is involved, as noisy artifacts produced by iterative methods do not appear in our case. Over various real-world images, we further show DDRM results on super-resolution, deblurring, inpainting and colorization (see Figure 1). A DDRM trained on ImageNet also works on images that are out of its training set distribution (see Figure 6).
27
+
28
+ # 2 Background
29
+
30
+ Linear Inverse Problems. A general linear inverse problem is posed as
31
+
32
+ $$
33
+ { \bf { y } } = { \cal H } { \bf { x } } + { \bf { z } } ,
34
+ $$
35
+
36
+ where we aim to recover the signal $\mathbf { x } \in \mathbb { R } ^ { n }$ from measurements $\mathbf { y } \in \mathbb { R } ^ { m }$ , where $\pmb { H } \in \mathbb { R } ^ { m \times n }$ is a known linear degradation matrix, and $\mathbf { z } \sim \mathcal { N } ( 0 , \sigma _ { \mathbf { y } } ^ { 2 } I )$ is an i.i.d. additive Gaussian noise with known variance. The underlying structure of $\mathbf { x }$ can be represented via a generative model, denoted as $p _ { \theta } ( \mathbf { x } )$ . Given $\mathbf { y }$ and $\pmb { H }$ , a posterior over the signal can be posed as: $p _ { \boldsymbol { \theta } } ( \mathbf { x } | \mathbf { y } ) \propto p _ { \boldsymbol { \theta } } ( \mathbf { x } ) p ( \mathbf { y } | \mathbf { x } )$ , where the “likelihood” term $p ( \mathbf { y } \vert \mathbf { x } )$ is defined via Equation (1); such an approach leverages a learned prior $p _ { \theta } ( \mathbf { x } )$ , and we call it an “unsupervised” approach based on the terminology in [36], as the prior does not necessarily depend on the inverse problem. Recovering $\mathbf { x }$ can be done by sampling from this posterior [2], which may require many iterations to produce a good sample. Alternatively, one can also approximate this posterior by learning a model via amortized inference (i.e., supervised learning); the model learns to predict $\mathbf { x }$ given y, generated from $\mathbf { x }$ and a specific $\pmb { H }$ . While this can be more efficient than sampling-based methods, it may generalize poorly to inverse problems that have not been trained on.
37
+
38
+ ![](images/3b8223ff3635bca0230fef513f42439b878155e66e5927dbf70c34d1b20a1fda.jpg)
39
+ Figure 2: Illustration of our DDRM method for a specific inverse problem (super-resolution $^ +$ denoising). We can use unsupervised DDPM models as a good solution to the DDRM objective.
40
+
41
+ Denoising Diffusion Probabilistic Models. Structures learned by generative models have been applied to various inverse problems and often outperform data-independent structural constraints such as sparsity [7]. These generative models learn a model distribution $p _ { \theta } ( \mathbf { x } )$ that approximates a data distribution $q ( \mathbf { x } )$ from samples. In particular, diffusion models have demonstrated impressive unconditional generative modeling performance on images [13]. Diffusion models are generative models with a Markov chain structure ${ \bf x } _ { T } \to { \bf x } _ { T - 1 } \to { \bf . . . } \to { \bf x } _ { 1 } \to { \bf x } _ { 0 }$ (where $\mathbf { x } _ { t } \in \mathbb { R } ^ { n }$ ), which has the following joint distribution:
42
+
43
+ $$
44
+ p _ { \theta } ( \mathbf { x } _ { 0 : T } ) = p _ { \theta } ^ { ( T ) } ( \mathbf { x } _ { T } ) \prod _ { t = 0 } ^ { T - 1 } p _ { \theta } ^ { ( t ) } ( \mathbf { x } _ { t } | \mathbf { x } _ { t + 1 } ) .
45
+ $$
46
+
47
+ After drawing $\mathbf { x } _ { \mathrm { 0 : } T }$ , only $\mathbf { x } _ { \mathrm { 0 } }$ is kept as the sample of the generative model. To train a diffusion model, a fixed, factorized variational inference distribution is introduced:
48
+
49
+ $$
50
+ q ( \mathbf { x } _ { 1 : T } | \mathbf { x } _ { 0 } ) = q ^ { ( T ) } ( \mathbf { x } _ { T } | \mathbf { x } _ { 0 } ) \prod _ { t = 0 } ^ { T - 1 } q ^ { ( t ) } ( \mathbf { x } _ { t } | \mathbf { x } _ { t + 1 } , \mathbf { x } _ { 0 } ) ,
51
+ $$
52
+
53
+ which leads to an evidence lower bound (ELBO) on the maximum likelihood objective [44]. A special property of some diffusion models is that both $p _ { \theta } ^ { ( t ) }$ and $q ^ { ( t ) }$ are chosen as conditional Gaussian distributions for all $t < T$ , and that $q ( \mathbf { x } _ { t } | \mathbf { x } _ { 0 } )$ is also a Gaussian with known mean and covariance, i.e., $\mathbf { x } _ { t }$ can be treated as $\mathbf { x } _ { \mathrm { 0 } }$ directly corrupted with Gaussian noise. Thus, the ELBO objective can be reduced into the following denoising autoencoder objective (please refer to [45] for derivations):
54
+
55
+ $$
56
+ \sum _ { t = 1 } ^ { T } \gamma _ { t } \mathbb { E } _ { ( \mathbf { x } _ { 0 } , \mathbf { x } _ { t } ) \sim q ( \mathbf { x } _ { 0 } ) q ( \mathbf { x } _ { t } | \mathbf { x } _ { 0 } ) } \left[ \big \lVert \mathbf { x } _ { 0 } - f _ { \theta } ^ { ( t ) } ( \mathbf { x } _ { t } ) \big \rVert _ { 2 } ^ { 2 } \right]
57
+ $$
58
+
59
+ where $f _ { \theta } ^ { ( t ) }$ is a $\theta$ -parameterized neural network that aims to recover a noiseless observation from a noisy $\mathbf { x } _ { t }$ , and $\gamma _ { 1 : T }$ are a set of positive coefficients that depend on $q \big ( \mathbf { x } _ { 1 : T } | \mathbf { x } _ { 0 } \big )$ .
60
+
61
+ # 3 Denoising Diffusion Restoration Models
62
+
63
+ Inverse problem solvers based on posterior sampling often face a dilemma: unsupervised approaches apply to general problems but are inefficient, whereas supervised ones are efficient but can only address specific problems.
64
+
65
+ To solve this dilemma, we introduce Denoising Diffusion Restoration Models (DDRM), an unsupervised solver for general linear inverse problems, capable of handling such tasks with or without noise in the measurements. DDRM is efficient and exhibits competitive performance compared to popular unsupervised solvers [40, 38, 25].
66
+
67
+ The key idea behind DDRM is to find an unsupervised solution that also suits supervised learning objectives. First, we describe the variational objective for DDRM over a specific inverse problem (Section 3.1). Next, we introduce specific forms of DDRM that are suitable for linear inverse problems and allow pre-trained unconditional and class-conditional diffusion models to be used directly (Sections 3.2, 3.3). Finally, we discuss practical algorithms that are compute and memory efficient (Sections 3.4, 3.5).
68
+
69
+ # 3.1 Variational Objective for DDRM
70
+
71
+ For any linear inverse problem, we define DDRM as a Markov chain ${ \bf x } _ { T } \to { \bf x } _ { T - 1 } \to { \bf . . . } \to { \bf x } _ { 1 } \to { \bf x } _ { 0 }$ conditioned on $\mathbf { y }$ , where
72
+
73
+ $$
74
+ p _ { \theta } ( \mathbf { x } _ { 0 : T } | \mathbf { y } ) = p _ { \theta } ^ { ( T ) } ( \mathbf { x } _ { T } | \mathbf { y } ) \prod _ { t = 0 } ^ { T - 1 } p _ { \theta } ^ { ( t ) } ( \mathbf { x } _ { t } | \mathbf { x } _ { t + 1 } , \mathbf { y } )
75
+ $$
76
+
77
+ and $\mathbf { x } _ { \mathrm { 0 } }$ is the final diffusion output. In order to perform inference, we consider the following factorized variational distribution conditioned on y:
78
+
79
+ $$
80
+ q ( \mathbf { x } _ { 1 : T } | \mathbf { x } _ { 0 } , \mathbf { y } ) = q ^ { ( T ) } ( \mathbf { x } _ { T } | \mathbf { x } _ { 0 } , \mathbf { y } ) \prod _ { t = 0 } ^ { T - 1 } q ^ { ( t ) } ( \mathbf { x } _ { t } | \mathbf { x } _ { t + 1 } , \mathbf { x } _ { 0 } , \mathbf { y } ) ,
81
+ $$
82
+
83
+ leading to an ELBO objective for diffusion models conditioned on $\mathbf { y }$ (details in Appendix A).
84
+
85
+ In the remainder of the section, we construct suitable variational problems given $\pmb { H }$ and $\sigma _ { \mathbf { y } }$ and connect them to unconditional diffusion generative models. To simplify notations, we will construct the variational distribution $q$ such that $\bar { q } ( \mathbf { x } _ { t } | \mathbf { x } _ { 0 } ) = \mathcal { N } ( \mathbf { x } _ { 0 } , \sigma _ { t } ^ { 2 } I )$ for noise levels $0 = \sigma _ { 0 } < \sigma _ { 1 } <$ $\sigma _ { 2 } < . . . < \sigma _ { T }$ .2 In Appendix B, we will show that this is equivalent to the distribution introduced in DDPM [19] and DDIM [45],3 up to fixed linear transformations over $\mathbf { x } _ { t }$ .
86
+
87
+ # 3.2 A Diffusion Process for Image Restoration
88
+
89
+ Similar to SNIPS [25], we consider the singular value decomposition (SVD) of $\pmb { H }$ , and perform the diffusion in its spectral space. The idea behind this is to tie the noise present in the measurements $\mathbf { y }$ with the diffusion noise in $\mathbf { x } _ { 1 : T }$ , ensuring that the diffusion result $\mathbf { x } _ { \mathrm { 0 } }$ is faithful to the measurements. By using the SVD, we identify the data from $\mathbf { x }$ that is missing in y, and synthesize it using a diffusion process. In conjunction, the noisy data in y undergoes a denoising process. For example, in inpainting with noise (e.g., $\pmb { H } = \mathrm { d i a g } ( [ 1 , \dots , 1 , 0 , \dots , 0 ] )$ , $\sigma _ { \mathbf { y } } \geq 0 $ ), the spectral space is simply the pixel space, so the model should generate the missing pixels and denoise the observed ones in y. For a general linear $\pmb { H }$ , its SVD is given as
90
+
91
+ $$
92
+ \pmb { H } = \pmb { U } \pmb { \Sigma V } ^ { \top }
93
+ $$
94
+
95
+ where $\pmb { U } \in \mathbb { R } ^ { m \times m }$ , $V \in \mathbb { R } ^ { n \times n }$ are orthogonal matrices, and $\pmb { \Sigma } \in \mathbb { R } ^ { m \times n }$ is a rectangular diagonal matrix containing the singular values of $\pmb { H }$ , ordered descendingly. As this is the case in most useful degradation models, we assume $m \leq n$ , but our method would work for $m > n$ as well. We denote the singular values as $s _ { 1 } \geq s _ { 2 } \geq . . . \geq s _ { m }$ , and define $s _ { i } = 0$ for $i \in [ m + 1 , n ]$ .
96
+
97
+ We use the shorthand notations for values in the spectral space: $\bar { \mathbf { x } } _ { t } ^ { ( i ) }$ is the $i$ -th index of the vector $\bar { \bf x } _ { t } =$ $V ^ { \top } \mathbf { x } _ { t }$ , and $\bar { \mathbf { y } } ^ { ( i ) }$ is the $i$ -th index of the vector $\bar { \mathbf { y } } = \pmb { \Sigma } ^ { \dagger } \pmb { U } ^ { \top } \mathbf { y }$ (where $\dagger$ denotes the Moore–Penrose pseudo-inverse). Because $V$ is an orthogonal matrix, we can recover $\mathbf { x } _ { t }$ from $\bar { \mathbf { x } } _ { t }$ exactly by left multiplying $V$ . For each index $i$ in $\bar { \mathbf { x } } _ { t }$ , we define the variational distribution as:
98
+
99
+ $$
100
+ \begin{array} { r l } & { \quad q ^ { ( T ) } ( \bar { \mathbf { x } } _ { T } ^ { ( i ) } | \mathbf { x } _ { 0 } , \mathbf { y } ) = \left\{ \begin{array} { l l } { \mathcal { N } ( \bar { \mathbf { y } } ^ { ( i ) } , \sigma _ { T } ^ { 2 } - \frac { \sigma _ { y } ^ { 2 } } { s _ { i } ^ { 2 } } ) } & { \mathrm { i f ~ } s _ { i } > 0 } \\ { \mathcal { N } ( \bar { \mathbf { x } } _ { 0 } ^ { ( i ) } , \sigma _ { T } ^ { 2 } ) } & { \mathrm { i f ~ } s _ { i } = 0 } \end{array} \right. } \\ & { \quad q ^ { ( t ) } ( \bar { \mathbf { x } } _ { t } ^ { ( i ) } | \mathbf { x } _ { t + 1 } , \bar { \mathbf { x } } _ { 0 } ^ { ( \bar { \mathbf { \alpha } } ) } , \mathbf { y } ) = \left\{ \begin{array} { l l } { \mathcal { N } ( \bar { \mathbf { x } } _ { 0 } ^ { ( i ) } + \sqrt { 1 - \eta ^ { 2 } } \sigma _ { t } \frac { \bar { \mathbf { x } } _ { t + 1 } ^ { ( i ) } - \bar { \mathbf { x } } _ { 0 } ^ { ( i ) } } { \sigma _ { t + 1 } } , \eta ^ { 2 } \sigma _ { t } ^ { 2 } ) } & { \mathrm { i f ~ } s _ { i } = 0 } \\ { \mathcal { N } ( \bar { \mathbf { x } } _ { 0 } ^ { ( i ) } + \sqrt { 1 - \eta ^ { 2 } } \sigma _ { t } \frac { \bar { \mathbf { y } } ^ { ( i ) } - \bar { \mathbf { x } } _ { 0 } ^ { ( i ) } } { \sigma _ { y } / s _ { i } } , \eta ^ { 2 } \sigma _ { t } ^ { 2 } ) } & { \mathrm { i f ~ } \sigma _ { t } < \frac { \sigma _ { \mathbf { y } } } { s _ { i } } } \\ { \mathcal { N } ( ( 1 - \eta _ { b } ) \bar { \mathbf { x } } _ { 0 } ^ { ( i ) } + \eta _ { b } \bar { \mathbf { y } } ^ { ( i ) } , \sigma _ { t } ^ { 2 } - \frac { \sigma _ { \mathbf { y } } ^ { 2 } } { s _ { i } ^ { 2 } } \eta _ { b } ^ { 2 } ) } & { \mathrm { i f ~ } \sigma _ { t } \ge \frac { \sigma _ { \mathbf { y } } } { s _ { i } } } \end{array} \right. } \end{array}
101
+ $$
102
+
103
+ where $\eta \in ( 0 , 1 ]$ is a hyperparameter controlling the variance of the transitions, and $\eta$ and $\eta _ { b }$ may depend on $\sigma _ { t } , s _ { i } , \sigma _ { \mathbf { y } }$ . We further assume that $\sigma _ { T } \geq \sigma _ { \mathbf { y } } / s _ { i }$ for all positive $s _ { i }$ .4
104
+
105
+ In the following statement, we show that this construction has the “Gaussian marginals” property similar to the inference distribution used in unconditional diffusion models [19].
106
+
107
+ Proposition 3.1. The conditional distributions $q ^ { ( t ) }$ defined in Equations 4 and 5 satisfy the following:
108
+
109
+ $$
110
+ q ( \mathbf { x } _ { t } | \mathbf { x } _ { 0 } ) = \mathcal { N } ( \mathbf { x } _ { 0 } , \sigma _ { t } ^ { 2 } \pmb { I } ) ,
111
+ $$
112
+
113
+ defined by marginalizing over $\mathbf { x } _ { t ^ { \prime } }$ (for all $t ^ { \prime } > t$ ) and y, where $q ( \mathbf { y } \vert \mathbf { x } _ { 0 } )$ is defined as in Equation (1) with $\mathbf { x } = \mathbf { x } _ { 0 }$ .
114
+
115
+ We place the proof in Appendix C. Intuitively, our construction considers different cases for each index of the spectral space. $( i )$ If the corresponding singular value is zero, then y does not directly provide any information to that index, and the update is similar to regular unconditional generation. $( i i )$ If the singular value is non-zero, then the updates consider the information provided by $\mathbf { y }$ , which further depends on whether the measurements’ noise level in the spectral space $( \sigma _ { \mathbf { y } } / s _ { i } )$ is larger than the noise level in the diffusion model $( \sigma _ { t } )$ or not; the measurements in the spectral space $\bar { \mathbf { y } } ^ { ( i ) }$ are then scaled differently for these two cases in order to ensure Proposition 3.1 holds.
116
+
117
+ Now that we have defined $q ^ { ( t ) }$ as a series of Gaussian conditionals, we define our model distribution $p _ { \theta }$ as a series of Gaussian conditionals as well. Similar to DDPM, we aim to obtain predictions of $\mathbf { x } _ { \mathrm { 0 } }$ at every step $t$ ; and to simplify notations, we use the symbol $\mathbf { x } _ { \theta , t }$ to represent this prediction made by a model5 $f _ { \theta } ( \mathbf { x } _ { t + 1 } , t + 1 ) : \mathbb { R } ^ { n } \times \mathbb { R } \to \mathbb { R } ^ { n }$ that takes in the sample $\mathbf { x } _ { t + 1 }$ and the conditioned time step $( t + 1 )$ . We also define $\bar { \mathbf { x } } _ { \theta , t } ^ { ( i ) }$ as the $i$ -th index of $\bar { \mathbf { x } } _ { \theta , t } = { \mathbf { \nabla } } V ^ { \top } \mathbf { x } _ { \theta , t }$ .
118
+
119
+ We define DDRM with trainable parameters $\theta$ as follows:
120
+
121
+ $$
122
+ \begin{array} { r } { p _ { \theta } ^ { ( T ) } ( \bar { \mathbf { x } } _ { T } ^ { ( i ) } | \mathbf { y } ) = \left\{ \begin{array} { l l } { \mathcal { N } ( \bar { \mathbf { y } } ^ { ( i ) } , \sigma _ { T } ^ { 2 } - \frac { \sigma _ { y } ^ { 2 } } { s _ { i } ^ { 2 } } ) } & { \mathrm { i f ~ } s _ { i } > 0 } \\ { \mathcal { N } ( 0 , \sigma _ { T } ^ { 2 } ) } & { \mathrm { i f ~ } s _ { i } = 0 } \end{array} \right. } \\ { p _ { \theta } ^ { ( t ) } ( \bar { \mathbf { x } } _ { t } ^ { ( i ) } | \mathbf { x } _ { t + 1 } , \mathbf { y } ) = \left\{ \begin{array} { l l } { \mathcal { N } ( \bar { \mathbf { x } } _ { \theta , t } ^ { ( i ) } + \sqrt { 1 - \eta ^ { 2 } } \sigma _ { t } \frac { \bar { \mathbf { x } } _ { t + 1 } ^ { ( i ) } - \bar { \mathbf { x } } _ { \theta , t } ^ { ( i ) } } { \sigma _ { t + 1 } } , \eta ^ { 2 } \sigma _ { t } ^ { 2 } ) } & { \mathrm { i f ~ } s _ { i } = 0 } \\ { \mathcal { N } ( \bar { \mathbf { x } } _ { \theta , t } ^ { ( i ) } + \sqrt { 1 - \eta ^ { 2 } } \sigma _ { t } \frac { \bar { \mathbf { y } } ^ { ( i ) } - \bar { \mathbf { x } } _ { \theta , t } ^ { ( i ) } } { \sigma _ { y } / s _ { i } } , \eta ^ { 2 } \sigma _ { t } ^ { 2 } ) } & { \mathrm { i f ~ } \sigma _ { t } < \frac { \sigma _ { \mathbf { y } } } { s _ { i } } } \\ { \mathcal { N } ( ( 1 - \eta _ { b } ) \bar { \mathbf { x } } _ { \theta , t } ^ { ( i ) } + \eta _ { b } \bar { \mathbf { y } } ^ { ( i ) } , \sigma _ { t } ^ { 2 } - \frac { \sigma _ { y } ^ { 2 } } { s _ { i } ^ { 2 } } \eta _ { b } ^ { 2 } ) } & { \mathrm { i f ~ } \sigma _ { t } \ge \frac { \sigma _ { \mathbf { y } } } { s _ { i } } . } \end{array} \right. } \end{array}
123
+ $$
124
+
125
+ Compared to $q ^ { ( t ) }$ in Equations (4) and (5), our definition of $p _ { \theta } ^ { ( t ) }$ merely replaces $\bar { \mathbf { x } } _ { 0 } ^ { ( i ) }$ (which we do not know at sampling) with $\bar { \mathbf { x } } _ { \theta , t } ^ { ( i ) }$ (which depends on our predicted $\mathbf { x } _ { \theta , t }$ ) when $t < T$ , and replaces $\bar { \mathbf { x } } _ { 0 } ^ { ( i ) }$ with 0 when $t = T$ . It is possible to learn the variances [35] or consider alternative constructions where Proposition 3.1 holds; we leave these options as future work.
126
+
127
+ # 3.3 “Learning” Image Restoration Models
128
+
129
+ Once we have defined $p _ { \theta } ^ { ( t ) }$ and $q ^ { ( t ) }$ by choosing $\sigma _ { 1 : T }$ , $\eta$ and $\eta _ { b }$ , we can learn model parameters $\theta$ by maximizing the resulting ELBO objective (in Appendix A). However, this approach is not desirable since we have to learn a different model for each inverse problem (given $\pmb { H }$ and $\sigma _ { \mathbf { y } } .$ ), which is not flexible enough for arbitrary inverse problems. Fortunately, this does not have to be the case. In the following statement, we show that an optimal solution to DDPM / DDIM can also be an optimal solution to a DDRM problem, under reasonable assumptions used in prior work [19, 45].
130
+
131
+ ![](images/81bc643d694333d66b6dd90380745687282edff4eb6ea14cd668b967ec261af4.jpg)
132
+ Figure 3: DDRM results on bedroom and cat images, for inpainting and deblurring.
133
+
134
+ Theoremthen when ssumand els , th $f _ { \theta } ^ { ( t ) }$ and BO $f _ { \theta } ^ { ( t ^ { \prime } ) }$ do not have weight sharing whenetive of DDRM (details in Appendix r ) $t \neq t ^ { \prime }$ η = 1 η b = 2 σ tσ 2t +σ 2y /s 2i $A$ rewritten in the form of the DDPM / DDIM objective in Equation (2).
135
+
136
+ We place the proof in Appendix C.
137
+
138
+ Even for different choices of $\eta$ and $\eta _ { b }$ , the proof shows that the DDRM objective is a weighted sumof-squares error in the spectral space, and thus pre-trained DDPM models are good approximations to the optimal solution. Therefore, we can apply the same diffusion model (unconditioned on the inverse problem) using the updates in Equation (7) and Equation (8) and only modify $\pmb { H }$ and its SVD $( U , \Sigma , V )$ for various linear inverse problems.
139
+
140
+ # 3.4 Accelerated Algorithms for DDRM
141
+
142
+ Typical diffusion models are trained with many timesteps (e.g., 1000) to achieve optimal unconditional image synthesis quality, but sampling speed is slow as many NFEs are required. Previous works [45, 13] have accelerated this process by “skipping” steps with appropriate update rules. This is also true for DDRM, since we can obtain the denoising autoencoder objective in Equation (2) for any choice of increasing $\sigma _ { 1 : T }$ . For a pre-trained diffusion model with $T ^ { \prime }$ timesteps, we can choose $\sigma _ { 1 : T }$ to be a subset of the $T ^ { \prime }$ steps used in training.
143
+
144
+ # 3.5 Memory Efficient SVD
145
+
146
+ Our method, similar to SNIPS [25], utilizes the SVD of the degradation operator $\pmb { H }$ . This constitutes a memory consumption bottleneck in both algorithms as well as other methods such as Plug and Play $( \mathrm { P n P } )$ [51], as storing the matrix $V$ has a space complexity of $\Theta ( n ^ { 2 } )$ for signals of size $n$ . By leveraging special properties of the matrices $\pmb { H }$ used, we can reduce this complexity to $\Theta ( n )$ for denoising, inpainting, super resolution, deblurring, and colorization (details in Appendix D).
147
+
148
+ # 4 Related Work
149
+
150
+ Various deep learning solutions have been suggested for solving inverse problems under different settings (see a detailed survey in [37]). We focus on the unsupervised setting, where we have access to a dataset of clean images at training time, but the degradation model is known only at inference time. This setup is inherently general to all linear inverse problems, a property desired in many real-world applications such as medical imaging [46, 20].
151
+
152
+ Table 1: Noiseless $4 \times$ super-resolution and deblurring results on ImageNet 1K $( 2 5 6 \times 2 5 6 )$ .
153
+
154
+ <table><tr><td>Method</td><td colspan="4">4× super-resolution</td><td colspan="4">Deblurring</td></tr><tr><td></td><td>PSNR↑</td><td>SSIM↑</td><td>KID↓</td><td>NFEs↓</td><td>PSNR↑</td><td>SSIM个</td><td>KID↓</td><td>NFEs↓</td></tr><tr><td>Baseline</td><td>25.65</td><td>0.71</td><td>44.90</td><td>0</td><td>19.26</td><td>0.48</td><td>38.00</td><td>0</td></tr><tr><td>DGP</td><td>23.06</td><td>0.56</td><td>21.22</td><td>1500</td><td>22.70</td><td>0.52</td><td>27.60</td><td>1500</td></tr><tr><td>RED</td><td>26.08</td><td>0.73</td><td>53.55</td><td>100</td><td>26.16</td><td>0.76</td><td>21.21</td><td>500</td></tr><tr><td>SNIPS</td><td>17.58</td><td>0.22</td><td>35.17</td><td>1000</td><td>34.32</td><td>0.87</td><td>0.49</td><td>1000</td></tr><tr><td>DDRM</td><td>26.55</td><td>0.72</td><td>7.22</td><td>20</td><td>35.64</td><td>0.95</td><td>0.71</td><td>20</td></tr><tr><td>DDRM-CC</td><td>26.55</td><td>0.74</td><td>6.56</td><td>20</td><td>35.65</td><td>0.96</td><td>0.70</td><td>20</td></tr></table>
155
+
156
+ Almost all unsupervised inverse problem solvers utilize a trained neural network in an iterative scheme. PnP, RED, and their successors [51, 40, 32, 49] apply a denoiser as part of an iterative optimization algorithm such as steepest descent, fixed-point, or alternating direction method of multipliers (ADMM). OneNet [39] trained a network to directly learn the proximal operator of ADMM. A similar use of denoisers in different iterative algorithms is proposed in [34, 16, 30]. The authors of [43] leverages robust classifiers learned with additional class labels.
157
+
158
+ Another approach is to search the latent space of a generative model for a generated image that, when degraded, is as close as possible to the given measurements. Multiple such methods were suggested, mainly focusing on generative adversarial networks (GANs) [7, 11, 33]. While they exhibit impressive results on images of a specific class, most notably face images, these methods are not shown to be largely successful under a more diverse dataset such as ImageNet [12]. Deep Generative Prior (DGP) mitigates this issue by optimizing the latent input as well as the weights of the GAN’s generator [38].
159
+
160
+ More recently, denoising diffusion models were used to solve inverse problems in both supervised (i.e., degradation model is known during training) [42, 41, 13, 10, 54] and unsupervised settings [22, 26, 25, 21, 46, 47, 9]. Unlike previous approaches, most diffusion-based methods can successfully recover images from measurements with significant noise. However, these methods are very slow, often requiring hundreds or thousands of iterations, and are yet to be proven on diverse datasets. Our method, motivated by variational inference, obtains problem-specific, non-equilibrium update rules that lead to high-quality solutions in much fewer iterations.
161
+
162
+ ILVR [9] suggests a diffusion-based method that handles noiseless super-resolution, and can run in 250 steps. In Appendix H, we prove that when applied on the same underlying generative diffusion model, ILVR is a special case of DDRM. Therefore, ILVR can be further accelerated to run in 20 steps, but unlike DDRM, it provides no clear way of handling noise in the measurements. Similarly, the authors of [22] suggest a score-based solver for inverse problems that can converge in a small number of iterations, but does not handle noise in the measurements.
163
+
164
+ # 5 Experiments
165
+
166
+ # 5.1 Experimental Setup
167
+
168
+ We demonstrate our algorithm’s capabilities using the diffusion models from [19], which are trained on CelebA-HQ [23], LSUN bedrooms, and LSUN cats [56] (all $2 5 6 \times 2 5 6$ pixels). We test these models on images from FFHQ [24], and pictures from the internet of the considered LSUN category, respectively. In addition, we use the models from [13], trained on the training set of ImageNet $2 5 6 \times 2 5 6$ and $5 1 2 \times 5 1 2$ , and tested on the corresponding validation set. Some of the ImageNet models require class information. For these models, we use the ground truth labels as input, and denote our algorithm as DDRM class conditional (DDRM-CC). In all experiments, we use $\eta = 0 . 8 5$ , $\eta _ { b } = 1$ , and a uniformly-spaced timestep schedule based on the 1000-step pre-trained models (more details in Appendix E). The number of NFEs (timesteps) is reported in each experiment.
169
+
170
+ In each of the inverse problems we show, pixel values are in the range $[ 0 , 1 ]$ , and the degraded measurements are obtained as follows: $( i )$ for super-resolution, we use a block averaging filter to downscale the images by a factor of 2, 4, or 8 in each axis; $( i i )$ for deblurring, the images are blurred by a $9 \times 9$ uniform kernel, and singular values below a certain threshold are zeroed, making the problem more ill-posed. (iii) for colorization, the grayscale image is an average of the red, green, and blue channels of the original image; $( i \nu )$ and for inpainting, we mask parts of the original image with text overlay or randomly drop $5 0 \%$ of the pixels. Additive white Gaussian noise can optionally be added to the measurements in all inverse problems. We additionally conduct experiments on bicubic super-resolution and deblurring with an anisotropic Gaussian kernel in Appendix I.
171
+
172
+ Table 2: $4 \times$ super resolution and deblurring results on ImageNet 1K $2 5 6 \times 2 5 6 )$ . Input images have an additive noise of $\sigma _ { \mathbf { y } } = 0 . 0 5$ .
173
+
174
+ <table><tr><td rowspan="2">Method</td><td colspan="4">4× super-resolution</td><td colspan="4">Deblurring</td></tr><tr><td>PSNR↑</td><td>SSIM↑</td><td>KID↓</td><td>NFEs↓</td><td>PSNR↑</td><td>SSIM↑</td><td>KID↓</td><td>NFEs↓</td></tr><tr><td>Baseline</td><td>22.55</td><td>0.46</td><td>67.86</td><td>0</td><td>18.35</td><td>0.20</td><td>75.50</td><td>0</td></tr><tr><td>DGP</td><td>20.69</td><td>0.43</td><td>42.17</td><td>1500</td><td>21.20</td><td>0.45</td><td>34.02</td><td>1500</td></tr><tr><td>RED</td><td>22.90</td><td>0.49</td><td>43.45</td><td>100</td><td>14.69</td><td>0.08</td><td>121.82</td><td>500</td></tr><tr><td>SNIPS</td><td>16.30</td><td>0.14</td><td>67.77</td><td>1000</td><td>16.37</td><td>0.14</td><td>77.96</td><td>1000</td></tr><tr><td>DDRM</td><td>25.21</td><td>0.66</td><td>12.43</td><td>20</td><td>25.45</td><td>0.66</td><td>15.24</td><td>20</td></tr><tr><td>DDRM-CC</td><td>25.22</td><td>0.67</td><td>10.82</td><td>20</td><td>25.46</td><td>0.67</td><td>13.49</td><td>20</td></tr></table>
175
+
176
+ ![](images/dce0cb2c19799418bd2c994aecc71852b76f94b87d29b39bfca92e3ac67a7dc4.jpg)
177
+ Figure 4: $4 \times$ noisy super resolution comparison with $\sigma _ { \mathbf { y } } = 0 . 0 5$ .
178
+
179
+ Our code is available at https://github.com/bahjat-kawar/ddrm.
180
+
181
+ # 5.2 Quantitative Experiments
182
+
183
+ In order to quantify DDRM’s performance, we focus on the ImageNet dataset $2 5 6 \times 2 5 6 )$ for its diversity. For each experiment, we report the average peak signal-to-noise ratio (PSNR) and structural similarity index measure (SSIM) [52] to measure faithfulness to the original image, and the kernel Inception distance (KID) [5], multiplied by $1 0 ^ { 3 }$ , to measure the resulting image quality.
184
+
185
+ We compare DDRM (with 20 and 100 steps) with other unsupervised methods that work in reasonable time (requiring 1500 NFEs or less) and can operate on ImageNet. Namely, we compare with RED [40], DGP [38], and SNIPS [25]. The exact setup of each method is detailed in Appendix F. We used the same hyperparameters for noisy and noiseless versions of the same problem for DGP, RED, and SNIPS, as tuning them for each version would compromise their unsupervised nature. Nevertheless, the performance of baselines like RED with such a tuning does not surpass that of DDRM, as we show in Appendix F. In addition, we show upscaling by bicubic interpolation as a baseline for super-resolution, and the blurry image itself as a baseline for deblurring. OneNet [39] is not included in the comparisons as it is limited to images of size $6 4 \times 6 4$ , and generalization to higher dimensions requires an improved network architecture.
186
+
187
+ ![](images/c29b6e70f49e93bec3f7d31839a85160b2b005e20acbf20e9617bb3c256f753b.jpg)
188
+ Figure 5: $5 1 2 \times 5 1 2$ ImageNet colorization. DDRM-CC produces various samples for multiple runs on the same input.
189
+
190
+ ![](images/677dbd46569b00f85565e6a7598555e2ec90d1684b5b06b3a221943f2f16443d.jpg)
191
+ Figure 6: Results on $2 5 6 \times 2 5 6$ USC-SIPI images using an ImageNet model. Blurred images have a noise of $\sigma _ { \mathbf { y } } = 0 . 0 1$ .
192
+
193
+ We evaluate all methods on the problems of $4 \times$ super-resolution and deblurring, on one validation set image from each of the 1000 ImageNet classes, following [38]. Table 1 shows that DDRM outperforms all baseline methods, in all metrics, and on both problems with only 20 steps. The only exception to this is that SNIPS achieves better KID than DDRM in noiseless deblurring, but it requires $5 0 \times$ more NFEs to do so. Note that the runtime of all the tested methods is perfectly linear with NFEs, with negligible differences in time per iteration. DGP and DDRM-CC use ground-truth class labels for the test images to aid in the restoration process, and thus have an unfair advantage.
194
+
195
+ DDRM’s appeal compared to previous methods becomes more substantial when significant noise is added to the measurements. Under this setting, DGP, RED, and SNIPS all fail to produce viable results, as evident in Table 2 and Figure 4. Since DDRM is fast, we also evaluate it on the entire ImageNet validation set in Appendix F.
196
+
197
+ # 5.3 Qualitative Experiments
198
+
199
+ DDRM produces high quality reconstructions across all the tested datasets and problems, as can be seen in Figures 1 and 3, and in Appendix I. As it is a posterior sampling algorithm, DDRM can produce multiple outputs for the same input, as demonstrated in Figure 5. Moreover, the unconditional ImageNet diffusion models can be used to solve inverse problems on out-of-distribution images with general content. In Figure 6, we show DDRM successfully restoring $2 5 6 \times 2 5 6$ images from USC-SIPI [53] that do not necessarily belong to any ImageNet class (more results in Appendix I).
200
+
201
+ # 6 Conclusions
202
+
203
+ We have introduced DDRM, a general sampling-based linear inverse problem solver based on unconditional/class-conditional diffusion generative models as learned priors. Motivated by variational inference, DDRM only requires a few number of NFEs (e.g., 20) compared to other samplingbased baselines (e.g., 1000 for SNIPS) and achieves scalability in multiple useful scenarios, including denoising, super-resolution, deblurring, inpainting, and colorization. We demonstrate the empirical successes of DDRM on various problems and datasets, including general natural images outside the distribution of the observed training set. To our best knowledge, DDRM is the first unsupervised method that effectively and efficiently samples from the posterior distribution of inverse problems with significant noise, and can work on natural images with general content.
204
+
205
+ In terms of future work, apart from further optimizing the timestep and variance schedules, it would be interesting to investigate the following: (i) applying DDRM to non-linear inverse problems, $( i i )$ addressing scenarios where the degradation operator is unknown, and (iii) self-supervised training techniques inspired by DDRM as well as ones used in supervised techniques [41] that further improve performance of unsupervised models for image restoration.
206
+
207
+ # Acknowledgements
208
+
209
+ We thank Kristy Choi, Charlie Marx, and Avital Shafran for insightful discussions and feedback. This research was supported by NSF (#1651565, #1522054, #1733686), ONR (N00014-19-1-2145), AFOSR (FA9550-19-1-0024), ARO (W911NF-21-1-0125), Sloan Fellowship, Amazon AWS, Stanford Institute for Human-Centered Artificial Intelligence (HAI), Google Cloud, the Israel Science Foundation (ISF) under Grant 335/18, the Israeli Council For Higher Education - Planning & Budgeting Committee, and the Stephen A. Kreynes Fellowship.
210
+
211
+ # References
212
+
213
+ [1] Richard G Baraniuk. Compressive sensing [lecture notes]. IEEE signal processing magazine, 24(4):118–121, 2007.
214
+ [2] Johnathan M Bardsley. Mcmc-based image reconstruction with uncertainty quantification. SIAM Journal on Scientific Computing, 34(3):A1316–A1332, 2012.
215
+ [3] Johnathan M Bardsley, Antti Solonen, Heikki Haario, and Marko Laine. Randomize-thenoptimize: A method for sampling from posterior distributions in nonlinear inverse problems. SIAM Journal on Scientific Computing, 36(4):A1895–A1910, 2014.
216
+ [4] Christopher M Bishop. Pattern recognition. Machine learning, 128(9), 2006.
217
+ [5] Mikołaj Binkowski, Danica J. Sutherland, Michael Arbel, and Arthur Gretton. Demystifying ´ MMD GANs. In International Conference on Learning Representations, 2018.
218
+ [6] Yochai Blau and Tomer Michaeli. The perception-distortion tradeoff. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6228–6237, 2018.
219
+ [7] Ashish Bora, Ajil Jalal, Eric Price, and Alexandros G. Dimakis. Compressed sensing using generative models. In Proceedings of the 34th International Conference on Machine Learning, volume 70, pages 537–546, 2017.
220
+ [8] Daniela Calvetti and Erkki Somersalo. Hypermodels in the bayesian imaging framework. Inverse Problems, 24(3):034013, 2008.
221
+ [9] Jooyoung Choi, Sungwon Kim, Yonghyun Jeong, Youngjune Gwon, and Sungroh Yoon. Ilvr: Conditioning method for denoising diffusion probabilistic models. arXiv preprint arXiv:2108.02938, 2021.
222
+ [10] Hyungjin Chung, Byeongsu Sim, and Jong Chul Ye. Come-closer-diffuse-faster: Accelerating conditional diffusion models for inverse problems through stochastic contraction. arXiv preprint arXiv:2112.05146, 2021.
223
+ [11] Giannis Daras, Joseph Dean, Ajil Jalal, and Alex Dimakis. Intermediate layer optimization for inverse problems using deep generative models. In Proceedings of the 38th International Conference on Machine Learning, volume 139, pages 2421–2432, 2021.
224
+ [12] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A largescale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255, 2009.
225
+ [13] Prafulla Dhariwal and Alexander Quinn Nichol. Diffusion models beat GANs on image synthesis. In Thirty-Fifth Conference on Neural Information Processing Systems, 2021.
226
+ [14] Chao Dong, Chen Change Loy, Kaiming He, and Xiaoou Tang. Image super-resolution using deep convolutional networks. IEEE transactions on pattern analysis and machine intelligence, 38(2):295–307, 2015.
227
+ [15] Jinjin Gu, Yujun Shen, and Bolei Zhou. Image processing using multi-code gan prior. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 3012–3021, 2020.
228
+ [16] Bichuan Guo, Yuxing Han, and Jiangtao Wen. Agem: Solving linear inverse problems via deep priors and sampling. Advances in Neural Information Processing Systems, 32, 2019.
229
+ [17] Muhammad Haris, Gregory Shakhnarovich, and Norimichi Ukita. Deep back-projection networks for super-resolution. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1664–1673, 2018.
230
+ [18] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems, volume 30, 2017.
231
+ [19] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, volume 33, pages 6840–6851, 2020.
232
+ [20] Ajil Jalal, Marius Arvinte, Giannis Daras, Eric Price, Alex Dimakis, and Jonathan Tamir. Robust compressed sensing mri with deep generative priors. In Thirty-Fifth Conference on Neural Information Processing Systems, 2021.
233
+ [21] Ajil Jalal, Sushrut Karmalkar, Alex Dimakis, and Eric Price. Instance-optimal compressed sensing via posterior sampling. In Proceedings of the 38th International Conference on Machine Learning, volume 139, pages 4709–4720, 2021.
234
+ [22] Zahra Kadkhodaie and Eero Simoncelli. Stochastic solutions for linear inverse problems using the prior implicit in a denoiser. Advances in Neural Information Processing Systems, 34, 2021.
235
+ [23] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In International Conference on Learning Representations, 2018.
236
+ [24] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4401–4410, 2019.
237
+ [25] Bahjat Kawar, Gregory Vaksman, and Michael Elad. SNIPS: Solving noisy inverse problems stochastically. In Thirty-Fifth Conference on Neural Information Processing Systems, 2021.
238
+ [26] Bahjat Kawar, Gregory Vaksman, and Michael Elad. Stochastic image denoising by sampling from the posterior distribution. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops, pages 1866–1875, October 2021.
239
+ [27] Diederik P Kingma and Max Welling. Auto-Encoding variational bayes. arXiv preprint arXiv:1312.6114v10, December 2013.
240
+ [28] Orest Kupyn, Tetiana Martyniuk, Junru Wu, and Zhangyang Wang. Deblurgan-v2: Deblurring (orders-of-magnitude) faster and better. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8878–8887, 2019.
241
+ [29] Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Learning representations for automatic colorization. In European conference on computer vision, pages 577–593. Springer, 2016.
242
+ [30] Rémi Laumont, Valentin De Bortoli, Andrés Almansa, Julie Delon, Alain Durmus, and Marcelo Pereyra. Bayesian imaging using plug & play priors: When Langevin meets Tweedie. arXiv preprint arXiv:2103.04715, 2021.
243
+
244
+ [31] Christian Ledig, Lucas Theis, Ferenc Huszár, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, et al. Photo-realistic single image super-resolution using a generative adversarial network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4681–4690, 2017.
245
+
246
+ [32] Gary Mataev, Peyman Milanfar, and Michael Elad. DeepRED: deep image prior powered by RED. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops, 2019.
247
+
248
+ [33] Sachit Menon, Alex Damian, McCourt Hu, Nikhil Ravi, and Cynthia Rudin. Pulse: Selfsupervised photo upsampling via latent space exploration of generative models. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2020.
249
+
250
+ [34] Chris Metzler, Ali Mousavi, and Richard Baraniuk. Learned d-amp: Principled neural network based compressive image recovery. In Advances in Neural Information Processing Systems, volume 30, 2017.
251
+
252
+ [35] Alex Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic models. arXiv preprint arXiv:2102.09672, 2021.
253
+
254
+ [36] Gregory Ongie, Ajil Jalal, Christopher A Metzler, Richard G Baraniuk, Alexandros G Dimakis, and Rebecca Willett. Deep learning techniques for inverse problems in imaging. IEEE Journal on Selected Areas in Information Theory, 1(1):39–56, 2020.
255
+
256
+ [37] Gregory Ongie, Ajil Jalal, Christopher A Metzler, Richard G Baraniuk, Alexandros G Dimakis, and Rebecca Willett. Deep learning techniques for inverse problems in imaging. IEEE Journal on Selected Areas in Information Theory, 1(1):39���56, 2020.
257
+
258
+ [38] Xingang Pan, Xiaohang Zhan, Bo Dai, Dahua Lin, Chen Change Loy, and Ping Luo. Exploiting deep generative prior for versatile image restoration and manipulation. In European Conference on Computer Vision (ECCV), 2020.
259
+
260
+ [39] JH Rick Chang, Chun-Liang Li, Barnabas Poczos, BVK Vijaya Kumar, and Aswin C Sankaranarayanan. One network to solve them all–solving linear inverse problems using deep projection models. In Proceedings of the IEEE International Conference on Computer Vision, pages 5888–5897, 2017.
261
+
262
+ [40] Yaniv Romano, Michael Elad, and Peyman Milanfar. The little engine that could: Regularization by denoising (RED). SIAM Journal on Imaging Sciences, 10(4):1804–1844, 2017.
263
+
264
+ [41] Chitwan Saharia, William Chan, Huiwen Chang, Chris A Lee, Jonathan Ho, Tim Salimans, David J Fleet, and Mohammad Norouzi. Palette: Image-to-image diffusion models. arXiv preprint arXiv:2111.05826, 2021.
265
+
266
+ [42] Chitwan Saharia, Jonathan Ho, William Chan, Tim Salimans, David J Fleet, and Mohammad Norouzi. Image super-resolution via iterative refinement. arXiv preprint arXiv:2104.07636, 2021.
267
+
268
+ [43] Shibani Santurkar, Dimitris Tsipras, Brandon Tran, Andrew Ilyas, Logan Engstrom, and Aleksander Madry. Image synthesis with a single (robust) classifier. arXiv preprint arXiv:1906.09453, 2019.
269
+
270
+ [44] Jascha Sohl-Dickstein, Eric A Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. arXiv preprint arXiv:1503.03585, March 2015.
271
+
272
+ [45] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, April 2021.
273
+
274
+ [46] Yang Song, Liyue Shen, Lei Xing, and Stefano Ermon. Solving inverse problems in medical imaging with score-based generative models. arXiv preprint arXiv:2111.08005, 2021.
275
+
276
+ [47] Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021.
277
+
278
+ [48] Maitreya Suin, Kuldeep Purohit, and AN Rajagopalan. Spatially-attentive patch-hierarchical network for adaptive motion deblurring. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3606–3615, 2020.
279
+ [49] Yu Sun, Brendt Wohlberg, and Ulugbek S Kamilov. An online plug-and-play algorithm for regularized image reconstruction. IEEE Transactions on Computational Imaging, 5(3):395–408, 2019.
280
+ [50] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Deep image prior. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 9446–9454, 2018.
281
+ [51] Singanallur V Venkatakrishnan, Charles A Bouman, and Brendt Wohlberg. Plug-and-play priors for model based reconstruction. In 2013 IEEE Global Conference on Signal and Information Processing, pages 945–948. IEEE, 2013.
282
+ [52] Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600– 612, 2004.
283
+ [53] Allan G Weber. The USC-SIPI image database version 5. USC-SIPI Report, 315(1), 1997.
284
+ [54] Jay Whang, Mauricio Delbracio, Hossein Talebi, Chitwan Saharia, Alexandros G Dimakis, and Peyman Milanfar. Deblurring via stochastic refinement. arXiv preprint arXiv:2112.02475, 2021.
285
+ [55] Raymond A Yeh, Chen Chen, Teck Yian Lim, Alexander G Schwing, Mark Hasegawa-Johnson, and Minh N Do. Semantic image inpainting with deep generative models. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5485–5493, 2017.
286
+ [56] Fisher Yu, Ari Seff, Yinda Zhang, Shuran Song, Thomas Funkhouser, and Jianxiong Xiao. LSUN: construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015.
287
+ [57] Kai Zhang, Yawei Li, Wangmeng Zuo, Lei Zhang, Luc Van Gool, and Radu Timofte. Plug-andplay image restoration with deep denoiser prior. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2021.
288
+ [58] Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European Conference on Computer Vision, pages 649–666. Springer, 2016.
289
+
290
+ # Checklist
291
+
292
+ 1. For all authors...
293
+
294
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
295
+ (b) Did you describe the limitations of your work? [Yes] In the future work paragraph in Section 6
296
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] We came to the conclusion that our paper does not have potential negative societal impacts.
297
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
298
+
299
+ 2. If you are including theoretical results...
300
+
301
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes] In the appendice
302
+
303
+ 3. If you ran experiments...
304
+
305
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] In the appendices.
306
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] In both the paper and the appendices.
307
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A] We report results averaged over 1, 000 images in the main paper and 50, 000 images in the appendices. Such large numbers eliminate the need for error bars.
308
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] In the appendices.
309
+
310
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
311
+
312
+ (a) If your work uses existing assets, did you cite the creators? [Yes]
313
+ (b) Did you mention the license of the assets? [Yes] The licenses of previous works’ code and datasets will be included in our camera-ready code.
314
+ (c) Did you include any new assets either in the supplemental material or as a URL? [Yes] We include our code in the supplementary material.
315
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] Consent was given by the original authors in their work.
316
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes] The datasets we use are anonymized.
317
+
318
+ 5. If you used crowdsourcing or conducted research with human subjects...
319
+
320
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
321
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
322
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/dev/kxXvopt9pWK/kxXvopt9pWK_content_list.json ADDED
@@ -0,0 +1,1494 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Denoising Diffusion Restoration Models ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 254,
8
+ 122,
9
+ 743,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Bahjat Kawar Department of Computer Science Technion, Haifa, Israel bahjat.kawar@cs.technion.ac.il ",
17
+ "bbox": [
18
+ 228,
19
+ 200,
20
+ 486,
21
+ 256
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Michael Elad Department of Computer Science Technion, Haifa, Israel elad@cs.technion.ac.il ",
28
+ "bbox": [
29
+ 547,
30
+ 200,
31
+ 769,
32
+ 256
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Stefano Ermon Department of Computer Science Stanford, California, USA ermon@cs.stanford.edu ",
39
+ "bbox": [
40
+ 250,
41
+ 277,
42
+ 472,
43
+ 333
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Jiaming Song NVIDIA Santa Clara, California, USA jiamings@nvidia.com ",
50
+ "bbox": [
51
+ 553,
52
+ 279,
53
+ 746,
54
+ 333
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 462,
64
+ 369,
65
+ 535,
66
+ 386
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Many interesting tasks in image restoration can be cast as linear inverse problems. A recent family of approaches for solving these problems uses stochastic algorithms that sample from the posterior distribution of natural images given the measurements. However, efficient solutions often require problem-specific supervised training to model the posterior, whereas unsupervised methods that are not problem-specific typically rely on inefficient iterative methods. This work addresses these issues by introducing Denoising Diffusion Restoration Models (DDRM), an efficient, unsupervised posterior sampling method. Motivated by variational inference, DDRM takes advantage of a pre-trained denoising diffusion generative model for solving any linear inverse problem. We demonstrate DDRM’s versatility on several image datasets for super-resolution, deblurring, inpainting, and colorization under various amounts of measurement noise. DDRM outperforms the current leading unsupervised methods on the diverse ImageNet dataset in reconstruction quality, perceptual quality, and runtime, being $5 \\times$ faster than the nearest competitor. DDRM also generalizes well for natural images out of the distribution of the observed ImageNet training set.1 ",
73
+ "bbox": [
74
+ 233,
75
+ 400,
76
+ 766,
77
+ 621
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 174,
87
+ 646,
88
+ 310,
89
+ 662
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Many problems in image processing, including super-resolution [31, 17], deblurring [28, 48], inpainting [55], colorization [29, 58], and compressive sensing [1], are instances of linear inverse problems, where the goal is to recover an image from potentially noisy measurements given through a known linear degradation model. For a specific degradation model, image restoration can be addressed through end-to-end supervised training of neural networks, using pairs of original and degraded images [14, 58, 41]. However, real-world applications such as medical imaging often require flexibility to cope with multiple, possibly infinite, degradation models [46]. Here, unsupervised approaches based on learned priors [36], where the degradation model is only known and used during inference, may be more desirable since they can adapt to the given problem without re-training [51]. By learning sound assumptions over the underlying structure of images (e.g., priors, proximal operators or denoisers), unsupervised approaches can achieve effective restoration without training on specific degradation models [51, 40]. ",
96
+ "bbox": [
97
+ 174,
98
+ 676,
99
+ 826,
100
+ 843
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Under this unsupervised setting, priors based on deep neural networks have demonstrated impressive empirical results in various image restoration tasks [40, 50, 43, 38, 15]. To recover the signal, most existing methods obtain a prior-related term over the signal from a neural network (e.g., the distribution of natural images), and a likelihood term from the degradation model. They combine the two terms to form a posterior over the signal, and the inverse problem can be posed as solving an optimization problem (e.g., maximum a posteriori [8, 40]) or solving a sampling problem (e.g., posterior sampling [2, 3, 25]). Then, these problems are often solved with iterative methods, such as gradient descent or Langevin dynamics, which may be demanding in computation and sensitive to hyperparameter tuning. An extreme example is found in [30] where a “fast” version of the algorithm uses 15, 000 neural function evaluations (NFEs). ",
107
+ "bbox": [
108
+ 176,
109
+ 849,
110
+ 823,
111
+ 877
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/801265c5fb23e87dfcdc53eb65a6f1c2d596bee083cb8985f9b5061490a33f87.jpg",
118
+ "image_caption": [
119
+ "Figure 1: Pairs of measurements and recovered images with a 20-step DDRM on super-resolution, deblurring, inpainting, and colorization, with or without noise, and with unconditional generative models. The images are not accessed during training. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 183,
124
+ 88,
125
+ 816,
126
+ 315
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "",
133
+ "bbox": [
134
+ 173,
135
+ 390,
136
+ 825,
137
+ 502
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Inspired by this unsupervised line of work, we introduce an efficient approach named Denoising Diffusion Restoration Models (DDRM), that can achieve competitive results in as low as 20 NFEs. DDRM is a denoising diffusion generative model [44, 19, 45] that gradually and stochastically denoises a sample to the desired output, conditioned on the measurements and the inverse problem. This way we introduce a variational inference objective for learning the posterior distribution of the inverse problem at hand. We then show its equivalence to the objective of an unconditional denoising diffusion generative model [19], which enables us to deploy such models in DDRM for various linear inverse problems (see Figure 2). To our best knowledge, DDRM is the first general sampling-based inverse problem solver that can efficiently produce a range of high-quality, diverse, yet valid solutions for general content images. ",
144
+ "bbox": [
145
+ 174,
146
+ 507,
147
+ 825,
148
+ 646
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "We demonstrate the empirical effectiveness of DDRM by comparing with various competitive methods based on learned priors, such as Deep Generative Prior (DGP) [38], SNIPS [25], and Regularization by Denoising (RED) [40]. On ImageNet examples, DDRM mostly outperforms the neural network baselines under noiseless super-resolution and deblurring measured in PSNR and KID [5], and is at least $5 0 \\times$ more efficient in terms of NFEs when it is second-best. Our advantage becomes even larger when measurement noise is involved, as noisy artifacts produced by iterative methods do not appear in our case. Over various real-world images, we further show DDRM results on super-resolution, deblurring, inpainting and colorization (see Figure 1). A DDRM trained on ImageNet also works on images that are out of its training set distribution (see Figure 6). ",
155
+ "bbox": [
156
+ 174,
157
+ 652,
158
+ 825,
159
+ 777
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "2 Background ",
166
+ "text_level": 1,
167
+ "bbox": [
168
+ 174,
169
+ 796,
170
+ 308,
171
+ 813
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Linear Inverse Problems. A general linear inverse problem is posed as ",
178
+ "bbox": [
179
+ 176,
180
+ 827,
181
+ 656,
182
+ 842
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "equation",
188
+ "img_path": "images/e5a3fee284a54bb7db9a90b40e2d086911c5792538822ae65e9d69812580cbbd.jpg",
189
+ "text": "$$\n{ \\bf { y } } = { \\cal H } { \\bf { x } } + { \\bf { z } } ,\n$$",
190
+ "text_format": "latex",
191
+ "bbox": [
192
+ 450,
193
+ 847,
194
+ 545,
195
+ 863
196
+ ],
197
+ "page_idx": 1
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "where we aim to recover the signal $\\mathbf { x } \\in \\mathbb { R } ^ { n }$ from measurements $\\mathbf { y } \\in \\mathbb { R } ^ { m }$ , where $\\pmb { H } \\in \\mathbb { R } ^ { m \\times n }$ is a known linear degradation matrix, and $\\mathbf { z } \\sim \\mathcal { N } ( 0 , \\sigma _ { \\mathbf { y } } ^ { 2 } I )$ is an i.i.d. additive Gaussian noise with known variance. The underlying structure of $\\mathbf { x }$ can be represented via a generative model, denoted as $p _ { \\theta } ( \\mathbf { x } )$ . Given $\\mathbf { y }$ and $\\pmb { H }$ , a posterior over the signal can be posed as: $p _ { \\boldsymbol { \\theta } } ( \\mathbf { x } | \\mathbf { y } ) \\propto p _ { \\boldsymbol { \\theta } } ( \\mathbf { x } ) p ( \\mathbf { y } | \\mathbf { x } )$ , where the “likelihood” term $p ( \\mathbf { y } \\vert \\mathbf { x } )$ is defined via Equation (1); such an approach leverages a learned prior $p _ { \\theta } ( \\mathbf { x } )$ , and we call it an “unsupervised” approach based on the terminology in [36], as the prior does not necessarily depend on the inverse problem. Recovering $\\mathbf { x }$ can be done by sampling from this posterior [2], which may require many iterations to produce a good sample. Alternatively, one can also approximate this posterior by learning a model via amortized inference (i.e., supervised learning); the model learns to predict $\\mathbf { x }$ given y, generated from $\\mathbf { x }$ and a specific $\\pmb { H }$ . While this can be more efficient than sampling-based methods, it may generalize poorly to inverse problems that have not been trained on. ",
202
+ "bbox": [
203
+ 174,
204
+ 869,
205
+ 823,
206
+ 911
207
+ ],
208
+ "page_idx": 1
209
+ },
210
+ {
211
+ "type": "image",
212
+ "img_path": "images/3b8223ff3635bca0230fef513f42439b878155e66e5927dbf70c34d1b20a1fda.jpg",
213
+ "image_caption": [
214
+ "Figure 2: Illustration of our DDRM method for a specific inverse problem (super-resolution $^ +$ denoising). We can use unsupervised DDPM models as a good solution to the DDRM objective. "
215
+ ],
216
+ "image_footnote": [],
217
+ "bbox": [
218
+ 194,
219
+ 88,
220
+ 802,
221
+ 246
222
+ ],
223
+ "page_idx": 2
224
+ },
225
+ {
226
+ "type": "text",
227
+ "text": "",
228
+ "bbox": [
229
+ 173,
230
+ 304,
231
+ 826,
232
+ 431
233
+ ],
234
+ "page_idx": 2
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "Denoising Diffusion Probabilistic Models. Structures learned by generative models have been applied to various inverse problems and often outperform data-independent structural constraints such as sparsity [7]. These generative models learn a model distribution $p _ { \\theta } ( \\mathbf { x } )$ that approximates a data distribution $q ( \\mathbf { x } )$ from samples. In particular, diffusion models have demonstrated impressive unconditional generative modeling performance on images [13]. Diffusion models are generative models with a Markov chain structure ${ \\bf x } _ { T } \\to { \\bf x } _ { T - 1 } \\to { \\bf . . . } \\to { \\bf x } _ { 1 } \\to { \\bf x } _ { 0 }$ (where $\\mathbf { x } _ { t } \\in \\mathbb { R } ^ { n }$ ), which has the following joint distribution: ",
239
+ "bbox": [
240
+ 173,
241
+ 443,
242
+ 826,
243
+ 541
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "equation",
249
+ "img_path": "images/508923df76018b3c2e803227bd9e0bb963d64c6f6079be1dbfbcec3fec7f9db6.jpg",
250
+ "text": "$$\np _ { \\theta } ( \\mathbf { x } _ { 0 : T } ) = p _ { \\theta } ^ { ( T ) } ( \\mathbf { x } _ { T } ) \\prod _ { t = 0 } ^ { T - 1 } p _ { \\theta } ^ { ( t ) } ( \\mathbf { x } _ { t } | \\mathbf { x } _ { t + 1 } ) .\n$$",
251
+ "text_format": "latex",
252
+ "bbox": [
253
+ 362,
254
+ 544,
255
+ 633,
256
+ 588
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "After drawing $\\mathbf { x } _ { \\mathrm { 0 : } T }$ , only $\\mathbf { x } _ { \\mathrm { 0 } }$ is kept as the sample of the generative model. To train a diffusion model, a fixed, factorized variational inference distribution is introduced: ",
263
+ "bbox": [
264
+ 178,
265
+ 590,
266
+ 823,
267
+ 618
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "equation",
273
+ "img_path": "images/e217e67c03d771e5b6820382fd8bbb2485042b7c09d7b69982aa47b2500287ed.jpg",
274
+ "text": "$$\nq ( \\mathbf { x } _ { 1 : T } | \\mathbf { x } _ { 0 } ) = q ^ { ( T ) } ( \\mathbf { x } _ { T } | \\mathbf { x } _ { 0 } ) \\prod _ { t = 0 } ^ { T - 1 } q ^ { ( t ) } ( \\mathbf { x } _ { t } | \\mathbf { x } _ { t + 1 } , \\mathbf { x } _ { 0 } ) ,\n$$",
275
+ "text_format": "latex",
276
+ "bbox": [
277
+ 333,
278
+ 619,
279
+ 663,
280
+ 664
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "which leads to an evidence lower bound (ELBO) on the maximum likelihood objective [44]. A special property of some diffusion models is that both $p _ { \\theta } ^ { ( t ) }$ and $q ^ { ( t ) }$ are chosen as conditional Gaussian distributions for all $t < T$ , and that $q ( \\mathbf { x } _ { t } | \\mathbf { x } _ { 0 } )$ is also a Gaussian with known mean and covariance, i.e., $\\mathbf { x } _ { t }$ can be treated as $\\mathbf { x } _ { \\mathrm { 0 } }$ directly corrupted with Gaussian noise. Thus, the ELBO objective can be reduced into the following denoising autoencoder objective (please refer to [45] for derivations): ",
287
+ "bbox": [
288
+ 173,
289
+ 665,
290
+ 826,
291
+ 739
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "equation",
297
+ "img_path": "images/97bb1567c865f037aa066a161d5d52b9456b7b893ca195e9d6fb5d71139d72a5.jpg",
298
+ "text": "$$\n\\sum _ { t = 1 } ^ { T } \\gamma _ { t } \\mathbb { E } _ { ( \\mathbf { x } _ { 0 } , \\mathbf { x } _ { t } ) \\sim q ( \\mathbf { x } _ { 0 } ) q ( \\mathbf { x } _ { t } | \\mathbf { x } _ { 0 } ) } \\left[ \\big \\lVert \\mathbf { x } _ { 0 } - f _ { \\theta } ^ { ( t ) } ( \\mathbf { x } _ { t } ) \\big \\rVert _ { 2 } ^ { 2 } \\right]\n$$",
299
+ "text_format": "latex",
300
+ "bbox": [
301
+ 338,
302
+ 742,
303
+ 656,
304
+ 785
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "where $f _ { \\theta } ^ { ( t ) }$ is a $\\theta$ -parameterized neural network that aims to recover a noiseless observation from a noisy $\\mathbf { x } _ { t }$ , and $\\gamma _ { 1 : T }$ are a set of positive coefficients that depend on $q \\big ( \\mathbf { x } _ { 1 : T } | \\mathbf { x } _ { 0 } \\big )$ . ",
311
+ "bbox": [
312
+ 171,
313
+ 791,
314
+ 823,
315
+ 821
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "3 Denoising Diffusion Restoration Models ",
322
+ "text_level": 1,
323
+ "bbox": [
324
+ 173,
325
+ 838,
326
+ 539,
327
+ 856
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "Inverse problem solvers based on posterior sampling often face a dilemma: unsupervised approaches apply to general problems but are inefficient, whereas supervised ones are efficient but can only address specific problems. ",
334
+ "bbox": [
335
+ 174,
336
+ 868,
337
+ 825,
338
+ 911
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "To solve this dilemma, we introduce Denoising Diffusion Restoration Models (DDRM), an unsupervised solver for general linear inverse problems, capable of handling such tasks with or without noise in the measurements. DDRM is efficient and exhibits competitive performance compared to popular unsupervised solvers [40, 38, 25]. ",
345
+ "bbox": [
346
+ 174,
347
+ 90,
348
+ 825,
349
+ 147
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "The key idea behind DDRM is to find an unsupervised solution that also suits supervised learning objectives. First, we describe the variational objective for DDRM over a specific inverse problem (Section 3.1). Next, we introduce specific forms of DDRM that are suitable for linear inverse problems and allow pre-trained unconditional and class-conditional diffusion models to be used directly (Sections 3.2, 3.3). Finally, we discuss practical algorithms that are compute and memory efficient (Sections 3.4, 3.5). ",
356
+ "bbox": [
357
+ 173,
358
+ 152,
359
+ 825,
360
+ 237
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "3.1 Variational Objective for DDRM ",
367
+ "text_level": 1,
368
+ "bbox": [
369
+ 174,
370
+ 257,
371
+ 441,
372
+ 272
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "For any linear inverse problem, we define DDRM as a Markov chain ${ \\bf x } _ { T } \\to { \\bf x } _ { T - 1 } \\to { \\bf . . . } \\to { \\bf x } _ { 1 } \\to { \\bf x } _ { 0 }$ conditioned on $\\mathbf { y }$ , where ",
379
+ "bbox": [
380
+ 174,
381
+ 284,
382
+ 823,
383
+ 313
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "equation",
389
+ "img_path": "images/da8248673243116ecaed204593149c93ac358bbde6eaf0fd4a688c4ccf83be28.jpg",
390
+ "text": "$$\np _ { \\theta } ( \\mathbf { x } _ { 0 : T } | \\mathbf { y } ) = p _ { \\theta } ^ { ( T ) } ( \\mathbf { x } _ { T } | \\mathbf { y } ) \\prod _ { t = 0 } ^ { T - 1 } p _ { \\theta } ^ { ( t ) } ( \\mathbf { x } _ { t } | \\mathbf { x } _ { t + 1 } , \\mathbf { y } )\n$$",
391
+ "text_format": "latex",
392
+ "bbox": [
393
+ 343,
394
+ 321,
395
+ 656,
396
+ 366
397
+ ],
398
+ "page_idx": 3
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "and $\\mathbf { x } _ { \\mathrm { 0 } }$ is the final diffusion output. In order to perform inference, we consider the following factorized variational distribution conditioned on y: ",
403
+ "bbox": [
404
+ 173,
405
+ 376,
406
+ 825,
407
+ 404
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "equation",
413
+ "img_path": "images/6f9bf5dcbe0ebeb264c2d59ae53d87d6d399f4c3690a85e470043e0c2932bec8.jpg",
414
+ "text": "$$\nq ( \\mathbf { x } _ { 1 : T } | \\mathbf { x } _ { 0 } , \\mathbf { y } ) = q ^ { ( T ) } ( \\mathbf { x } _ { T } | \\mathbf { x } _ { 0 } , \\mathbf { y } ) \\prod _ { t = 0 } ^ { T - 1 } q ^ { ( t ) } ( \\mathbf { x } _ { t } | \\mathbf { x } _ { t + 1 } , \\mathbf { x } _ { 0 } , \\mathbf { y } ) ,\n$$",
415
+ "text_format": "latex",
416
+ "bbox": [
417
+ 307,
418
+ 412,
419
+ 689,
420
+ 458
421
+ ],
422
+ "page_idx": 3
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "leading to an ELBO objective for diffusion models conditioned on $\\mathbf { y }$ (details in Appendix A). ",
427
+ "bbox": [
428
+ 169,
429
+ 467,
430
+ 785,
431
+ 482
432
+ ],
433
+ "page_idx": 3
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "In the remainder of the section, we construct suitable variational problems given $\\pmb { H }$ and $\\sigma _ { \\mathbf { y } }$ and connect them to unconditional diffusion generative models. To simplify notations, we will construct the variational distribution $q$ such that $\\bar { q } ( \\mathbf { x } _ { t } | \\mathbf { x } _ { 0 } ) = \\mathcal { N } ( \\mathbf { x } _ { 0 } , \\sigma _ { t } ^ { 2 } I )$ for noise levels $0 = \\sigma _ { 0 } < \\sigma _ { 1 } <$ $\\sigma _ { 2 } < . . . < \\sigma _ { T }$ .2 In Appendix B, we will show that this is equivalent to the distribution introduced in DDPM [19] and DDIM [45],3 up to fixed linear transformations over $\\mathbf { x } _ { t }$ . ",
438
+ "bbox": [
439
+ 173,
440
+ 487,
441
+ 825,
442
+ 558
443
+ ],
444
+ "page_idx": 3
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "3.2 A Diffusion Process for Image Restoration ",
449
+ "text_level": 1,
450
+ "bbox": [
451
+ 174,
452
+ 577,
453
+ 508,
454
+ 592
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "Similar to SNIPS [25], we consider the singular value decomposition (SVD) of $\\pmb { H }$ , and perform the diffusion in its spectral space. The idea behind this is to tie the noise present in the measurements $\\mathbf { y }$ with the diffusion noise in $\\mathbf { x } _ { 1 : T }$ , ensuring that the diffusion result $\\mathbf { x } _ { \\mathrm { 0 } }$ is faithful to the measurements. By using the SVD, we identify the data from $\\mathbf { x }$ that is missing in y, and synthesize it using a diffusion process. In conjunction, the noisy data in y undergoes a denoising process. For example, in inpainting with noise (e.g., $\\pmb { H } = \\mathrm { d i a g } ( [ 1 , \\dots , 1 , 0 , \\dots , 0 ] )$ , $\\sigma _ { \\mathbf { y } } \\geq 0 $ ), the spectral space is simply the pixel space, so the model should generate the missing pixels and denoise the observed ones in y. For a general linear $\\pmb { H }$ , its SVD is given as ",
461
+ "bbox": [
462
+ 173,
463
+ 603,
464
+ 826,
465
+ 715
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "equation",
471
+ "img_path": "images/6a7bf944e23d0d53ea09e94bec0640ca69c87cf596f4b82e4947f0ae938933df.jpg",
472
+ "text": "$$\n\\pmb { H } = \\pmb { U } \\pmb { \\Sigma V } ^ { \\top }\n$$",
473
+ "text_format": "latex",
474
+ "bbox": [
475
+ 450,
476
+ 724,
477
+ 549,
478
+ 743
479
+ ],
480
+ "page_idx": 3
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "where $\\pmb { U } \\in \\mathbb { R } ^ { m \\times m }$ , $V \\in \\mathbb { R } ^ { n \\times n }$ are orthogonal matrices, and $\\pmb { \\Sigma } \\in \\mathbb { R } ^ { m \\times n }$ is a rectangular diagonal matrix containing the singular values of $\\pmb { H }$ , ordered descendingly. As this is the case in most useful degradation models, we assume $m \\leq n$ , but our method would work for $m > n$ as well. We denote the singular values as $s _ { 1 } \\geq s _ { 2 } \\geq . . . \\geq s _ { m }$ , and define $s _ { i } = 0$ for $i \\in [ m + 1 , n ]$ . ",
485
+ "bbox": [
486
+ 173,
487
+ 756,
488
+ 825,
489
+ 814
490
+ ],
491
+ "page_idx": 3
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "We use the shorthand notations for values in the spectral space: $\\bar { \\mathbf { x } } _ { t } ^ { ( i ) }$ is the $i$ -th index of the vector $\\bar { \\bf x } _ { t } =$ $V ^ { \\top } \\mathbf { x } _ { t }$ , and $\\bar { \\mathbf { y } } ^ { ( i ) }$ is the $i$ -th index of the vector $\\bar { \\mathbf { y } } = \\pmb { \\Sigma } ^ { \\dagger } \\pmb { U } ^ { \\top } \\mathbf { y }$ (where $\\dagger$ denotes the Moore–Penrose pseudo-inverse). Because $V$ is an orthogonal matrix, we can recover $\\mathbf { x } _ { t }$ from $\\bar { \\mathbf { x } } _ { t }$ exactly by left multiplying $V$ . For each index $i$ in $\\bar { \\mathbf { x } } _ { t }$ , we define the variational distribution as: ",
496
+ "bbox": [
497
+ 174,
498
+ 820,
499
+ 825,
500
+ 867
501
+ ],
502
+ "page_idx": 3
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "",
507
+ "bbox": [
508
+ 171,
509
+ 90,
510
+ 692,
511
+ 106
512
+ ],
513
+ "page_idx": 4
514
+ },
515
+ {
516
+ "type": "equation",
517
+ "img_path": "images/494867cdbf6bd04599078f99a07bd23ee5db695a83cf3f39e5e40b90ad7091e8.jpg",
518
+ "text": "$$\n\\begin{array} { r l } & { \\quad q ^ { ( T ) } ( \\bar { \\mathbf { x } } _ { T } ^ { ( i ) } | \\mathbf { x } _ { 0 } , \\mathbf { y } ) = \\left\\{ \\begin{array} { l l } { \\mathcal { N } ( \\bar { \\mathbf { y } } ^ { ( i ) } , \\sigma _ { T } ^ { 2 } - \\frac { \\sigma _ { y } ^ { 2 } } { s _ { i } ^ { 2 } } ) } & { \\mathrm { i f ~ } s _ { i } > 0 } \\\\ { \\mathcal { N } ( \\bar { \\mathbf { x } } _ { 0 } ^ { ( i ) } , \\sigma _ { T } ^ { 2 } ) } & { \\mathrm { i f ~ } s _ { i } = 0 } \\end{array} \\right. } \\\\ & { \\quad q ^ { ( t ) } ( \\bar { \\mathbf { x } } _ { t } ^ { ( i ) } | \\mathbf { x } _ { t + 1 } , \\bar { \\mathbf { x } } _ { 0 } ^ { ( \\bar { \\mathbf { \\alpha } } ) } , \\mathbf { y } ) = \\left\\{ \\begin{array} { l l } { \\mathcal { N } ( \\bar { \\mathbf { x } } _ { 0 } ^ { ( i ) } + \\sqrt { 1 - \\eta ^ { 2 } } \\sigma _ { t } \\frac { \\bar { \\mathbf { x } } _ { t + 1 } ^ { ( i ) } - \\bar { \\mathbf { x } } _ { 0 } ^ { ( i ) } } { \\sigma _ { t + 1 } } , \\eta ^ { 2 } \\sigma _ { t } ^ { 2 } ) } & { \\mathrm { i f ~ } s _ { i } = 0 } \\\\ { \\mathcal { N } ( \\bar { \\mathbf { x } } _ { 0 } ^ { ( i ) } + \\sqrt { 1 - \\eta ^ { 2 } } \\sigma _ { t } \\frac { \\bar { \\mathbf { y } } ^ { ( i ) } - \\bar { \\mathbf { x } } _ { 0 } ^ { ( i ) } } { \\sigma _ { y } / s _ { i } } , \\eta ^ { 2 } \\sigma _ { t } ^ { 2 } ) } & { \\mathrm { i f ~ } \\sigma _ { t } < \\frac { \\sigma _ { \\mathbf { y } } } { s _ { i } } } \\\\ { \\mathcal { N } ( ( 1 - \\eta _ { b } ) \\bar { \\mathbf { x } } _ { 0 } ^ { ( i ) } + \\eta _ { b } \\bar { \\mathbf { y } } ^ { ( i ) } , \\sigma _ { t } ^ { 2 } - \\frac { \\sigma _ { \\mathbf { y } } ^ { 2 } } { s _ { i } ^ { 2 } } \\eta _ { b } ^ { 2 } ) } & { \\mathrm { i f ~ } \\sigma _ { t } \\ge \\frac { \\sigma _ { \\mathbf { y } } } { s _ { i } } } \\end{array} \\right. } \\end{array}\n$$",
519
+ "text_format": "latex",
520
+ "bbox": [
521
+ 238,
522
+ 112,
523
+ 758,
524
+ 233
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "where $\\eta \\in ( 0 , 1 ]$ is a hyperparameter controlling the variance of the transitions, and $\\eta$ and $\\eta _ { b }$ may depend on $\\sigma _ { t } , s _ { i } , \\sigma _ { \\mathbf { y } }$ . We further assume that $\\sigma _ { T } \\geq \\sigma _ { \\mathbf { y } } / s _ { i }$ for all positive $s _ { i }$ .4 ",
531
+ "bbox": [
532
+ 174,
533
+ 237,
534
+ 823,
535
+ 267
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "In the following statement, we show that this construction has the “Gaussian marginals” property similar to the inference distribution used in unconditional diffusion models [19]. ",
542
+ "bbox": [
543
+ 174,
544
+ 272,
545
+ 820,
546
+ 300
547
+ ],
548
+ "page_idx": 4
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "Proposition 3.1. The conditional distributions $q ^ { ( t ) }$ defined in Equations 4 and 5 satisfy the following: ",
553
+ "bbox": [
554
+ 176,
555
+ 303,
556
+ 823,
557
+ 320
558
+ ],
559
+ "page_idx": 4
560
+ },
561
+ {
562
+ "type": "equation",
563
+ "img_path": "images/a4d60ac2812957f5fdd741df249a0fcb253712d0e64b950edad891d470df2a2d.jpg",
564
+ "text": "$$\nq ( \\mathbf { x } _ { t } | \\mathbf { x } _ { 0 } ) = \\mathcal { N } ( \\mathbf { x } _ { 0 } , \\sigma _ { t } ^ { 2 } \\pmb { I } ) ,\n$$",
565
+ "text_format": "latex",
566
+ "bbox": [
567
+ 415,
568
+ 324,
569
+ 581,
570
+ 343
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "defined by marginalizing over $\\mathbf { x } _ { t ^ { \\prime } }$ (for all $t ^ { \\prime } > t$ ) and y, where $q ( \\mathbf { y } \\vert \\mathbf { x } _ { 0 } )$ is defined as in Equation (1) with $\\mathbf { x } = \\mathbf { x } _ { 0 }$ . ",
577
+ "bbox": [
578
+ 174,
579
+ 348,
580
+ 825,
581
+ 377
582
+ ],
583
+ "page_idx": 4
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "We place the proof in Appendix C. Intuitively, our construction considers different cases for each index of the spectral space. $( i )$ If the corresponding singular value is zero, then y does not directly provide any information to that index, and the update is similar to regular unconditional generation. $( i i )$ If the singular value is non-zero, then the updates consider the information provided by $\\mathbf { y }$ , which further depends on whether the measurements’ noise level in the spectral space $( \\sigma _ { \\mathbf { y } } / s _ { i } )$ is larger than the noise level in the diffusion model $( \\sigma _ { t } )$ or not; the measurements in the spectral space $\\bar { \\mathbf { y } } ^ { ( i ) }$ are then scaled differently for these two cases in order to ensure Proposition 3.1 holds. ",
588
+ "bbox": [
589
+ 173,
590
+ 386,
591
+ 825,
592
+ 487
593
+ ],
594
+ "page_idx": 4
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "Now that we have defined $q ^ { ( t ) }$ as a series of Gaussian conditionals, we define our model distribution $p _ { \\theta }$ as a series of Gaussian conditionals as well. Similar to DDPM, we aim to obtain predictions of $\\mathbf { x } _ { \\mathrm { 0 } }$ at every step $t$ ; and to simplify notations, we use the symbol $\\mathbf { x } _ { \\theta , t }$ to represent this prediction made by a model5 $f _ { \\theta } ( \\mathbf { x } _ { t + 1 } , t + 1 ) : \\mathbb { R } ^ { n } \\times \\mathbb { R } \\to \\mathbb { R } ^ { n }$ that takes in the sample $\\mathbf { x } _ { t + 1 }$ and the conditioned time step $( t + 1 )$ . We also define $\\bar { \\mathbf { x } } _ { \\theta , t } ^ { ( i ) }$ as the $i$ -th index of $\\bar { \\mathbf { x } } _ { \\theta , t } = { \\mathbf { \\nabla } } V ^ { \\top } \\mathbf { x } _ { \\theta , t }$ . ",
599
+ "bbox": [
600
+ 173,
601
+ 492,
602
+ 825,
603
+ 570
604
+ ],
605
+ "page_idx": 4
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "We define DDRM with trainable parameters $\\theta$ as follows: ",
610
+ "bbox": [
611
+ 173,
612
+ 577,
613
+ 550,
614
+ 592
615
+ ],
616
+ "page_idx": 4
617
+ },
618
+ {
619
+ "type": "equation",
620
+ "img_path": "images/d515fd4c84fe286359a4f50ba641459582587832a7e36e7c3b90cb086d1c3351.jpg",
621
+ "text": "$$\n\\begin{array} { r } { p _ { \\theta } ^ { ( T ) } ( \\bar { \\mathbf { x } } _ { T } ^ { ( i ) } | \\mathbf { y } ) = \\left\\{ \\begin{array} { l l } { \\mathcal { N } ( \\bar { \\mathbf { y } } ^ { ( i ) } , \\sigma _ { T } ^ { 2 } - \\frac { \\sigma _ { y } ^ { 2 } } { s _ { i } ^ { 2 } } ) } & { \\mathrm { i f ~ } s _ { i } > 0 } \\\\ { \\mathcal { N } ( 0 , \\sigma _ { T } ^ { 2 } ) } & { \\mathrm { i f ~ } s _ { i } = 0 } \\end{array} \\right. } \\\\ { p _ { \\theta } ^ { ( t ) } ( \\bar { \\mathbf { x } } _ { t } ^ { ( i ) } | \\mathbf { x } _ { t + 1 } , \\mathbf { y } ) = \\left\\{ \\begin{array} { l l } { \\mathcal { N } ( \\bar { \\mathbf { x } } _ { \\theta , t } ^ { ( i ) } + \\sqrt { 1 - \\eta ^ { 2 } } \\sigma _ { t } \\frac { \\bar { \\mathbf { x } } _ { t + 1 } ^ { ( i ) } - \\bar { \\mathbf { x } } _ { \\theta , t } ^ { ( i ) } } { \\sigma _ { t + 1 } } , \\eta ^ { 2 } \\sigma _ { t } ^ { 2 } ) } & { \\mathrm { i f ~ } s _ { i } = 0 } \\\\ { \\mathcal { N } ( \\bar { \\mathbf { x } } _ { \\theta , t } ^ { ( i ) } + \\sqrt { 1 - \\eta ^ { 2 } } \\sigma _ { t } \\frac { \\bar { \\mathbf { y } } ^ { ( i ) } - \\bar { \\mathbf { x } } _ { \\theta , t } ^ { ( i ) } } { \\sigma _ { y } / s _ { i } } , \\eta ^ { 2 } \\sigma _ { t } ^ { 2 } ) } & { \\mathrm { i f ~ } \\sigma _ { t } < \\frac { \\sigma _ { \\mathbf { y } } } { s _ { i } } } \\\\ { \\mathcal { N } ( ( 1 - \\eta _ { b } ) \\bar { \\mathbf { x } } _ { \\theta , t } ^ { ( i ) } + \\eta _ { b } \\bar { \\mathbf { y } } ^ { ( i ) } , \\sigma _ { t } ^ { 2 } - \\frac { \\sigma _ { y } ^ { 2 } } { s _ { i } ^ { 2 } } \\eta _ { b } ^ { 2 } ) } & { \\mathrm { i f ~ } \\sigma _ { t } \\ge \\frac { \\sigma _ { \\mathbf { y } } } { s _ { i } } . } \\end{array} \\right. } \\end{array}\n$$",
622
+ "text_format": "latex",
623
+ "bbox": [
624
+ 248,
625
+ 597,
626
+ 746,
627
+ 719
628
+ ],
629
+ "page_idx": 4
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "Compared to $q ^ { ( t ) }$ in Equations (4) and (5), our definition of $p _ { \\theta } ^ { ( t ) }$ merely replaces $\\bar { \\mathbf { x } } _ { 0 } ^ { ( i ) }$ (which we do not know at sampling) with $\\bar { \\mathbf { x } } _ { \\theta , t } ^ { ( i ) }$ (which depends on our predicted $\\mathbf { x } _ { \\theta , t }$ ) when $t < T$ , and replaces $\\bar { \\mathbf { x } } _ { 0 } ^ { ( i ) }$ with 0 when $t = T$ . It is possible to learn the variances [35] or consider alternative constructions where Proposition 3.1 holds; we leave these options as future work. ",
634
+ "bbox": [
635
+ 173,
636
+ 732,
637
+ 826,
638
+ 803
639
+ ],
640
+ "page_idx": 4
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "3.3 “Learning” Image Restoration Models ",
645
+ "text_level": 1,
646
+ "bbox": [
647
+ 174,
648
+ 816,
649
+ 482,
650
+ 833
651
+ ],
652
+ "page_idx": 4
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "Once we have defined $p _ { \\theta } ^ { ( t ) }$ and $q ^ { ( t ) }$ by choosing $\\sigma _ { 1 : T }$ , $\\eta$ and $\\eta _ { b }$ , we can learn model parameters $\\theta$ by maximizing the resulting ELBO objective (in Appendix A). However, this approach is not desirable since we have to learn a different model for each inverse problem (given $\\pmb { H }$ and $\\sigma _ { \\mathbf { y } } .$ ), which is not flexible enough for arbitrary inverse problems. Fortunately, this does not have to be the case. In the following statement, we show that an optimal solution to DDPM / DDIM can also be an optimal solution to a DDRM problem, under reasonable assumptions used in prior work [19, 45]. ",
657
+ "bbox": [
658
+ 178,
659
+ 843,
660
+ 825,
661
+ 876
662
+ ],
663
+ "page_idx": 4
664
+ },
665
+ {
666
+ "type": "image",
667
+ "img_path": "images/81bc643d694333d66b6dd90380745687282edff4eb6ea14cd668b967ec261af4.jpg",
668
+ "image_caption": [
669
+ "Figure 3: DDRM results on bedroom and cat images, for inpainting and deblurring. "
670
+ ],
671
+ "image_footnote": [],
672
+ "bbox": [
673
+ 176,
674
+ 88,
675
+ 818,
676
+ 279
677
+ ],
678
+ "page_idx": 5
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "",
683
+ "bbox": [
684
+ 174,
685
+ 329,
686
+ 825,
687
+ 386
688
+ ],
689
+ "page_idx": 5
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "Theoremthen when ssumand els , th $f _ { \\theta } ^ { ( t ) }$ and BO $f _ { \\theta } ^ { ( t ^ { \\prime } ) }$ do not have weight sharing whenetive of DDRM (details in Appendix r ) $t \\neq t ^ { \\prime }$ η = 1 η b = 2 σ tσ 2t +σ 2y /s 2i $A$ rewritten in the form of the DDPM / DDIM objective in Equation (2). ",
694
+ "bbox": [
695
+ 174,
696
+ 391,
697
+ 825,
698
+ 446
699
+ ],
700
+ "page_idx": 5
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "We place the proof in Appendix C. ",
705
+ "bbox": [
706
+ 176,
707
+ 458,
708
+ 401,
709
+ 473
710
+ ],
711
+ "page_idx": 5
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "Even for different choices of $\\eta$ and $\\eta _ { b }$ , the proof shows that the DDRM objective is a weighted sumof-squares error in the spectral space, and thus pre-trained DDPM models are good approximations to the optimal solution. Therefore, we can apply the same diffusion model (unconditioned on the inverse problem) using the updates in Equation (7) and Equation (8) and only modify $\\pmb { H }$ and its SVD $( U , \\Sigma , V )$ for various linear inverse problems. ",
716
+ "bbox": [
717
+ 174,
718
+ 479,
719
+ 825,
720
+ 549
721
+ ],
722
+ "page_idx": 5
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "3.4 Accelerated Algorithms for DDRM ",
727
+ "text_level": 1,
728
+ "bbox": [
729
+ 176,
730
+ 566,
731
+ 457,
732
+ 582
733
+ ],
734
+ "page_idx": 5
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "Typical diffusion models are trained with many timesteps (e.g., 1000) to achieve optimal unconditional image synthesis quality, but sampling speed is slow as many NFEs are required. Previous works [45, 13] have accelerated this process by “skipping” steps with appropriate update rules. This is also true for DDRM, since we can obtain the denoising autoencoder objective in Equation (2) for any choice of increasing $\\sigma _ { 1 : T }$ . For a pre-trained diffusion model with $T ^ { \\prime }$ timesteps, we can choose $\\sigma _ { 1 : T }$ to be a subset of the $T ^ { \\prime }$ steps used in training. ",
739
+ "bbox": [
740
+ 173,
741
+ 592,
742
+ 825,
743
+ 676
744
+ ],
745
+ "page_idx": 5
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "3.5 Memory Efficient SVD ",
750
+ "text_level": 1,
751
+ "bbox": [
752
+ 174,
753
+ 693,
754
+ 372,
755
+ 708
756
+ ],
757
+ "page_idx": 5
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "Our method, similar to SNIPS [25], utilizes the SVD of the degradation operator $\\pmb { H }$ . This constitutes a memory consumption bottleneck in both algorithms as well as other methods such as Plug and Play $( \\mathrm { P n P } )$ [51], as storing the matrix $V$ has a space complexity of $\\Theta ( n ^ { 2 } )$ for signals of size $n$ . By leveraging special properties of the matrices $\\pmb { H }$ used, we can reduce this complexity to $\\Theta ( n )$ for denoising, inpainting, super resolution, deblurring, and colorization (details in Appendix D). ",
762
+ "bbox": [
763
+ 174,
764
+ 719,
765
+ 825,
766
+ 790
767
+ ],
768
+ "page_idx": 5
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "4 Related Work ",
773
+ "text_level": 1,
774
+ "bbox": [
775
+ 174,
776
+ 809,
777
+ 321,
778
+ 827
779
+ ],
780
+ "page_idx": 5
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "Various deep learning solutions have been suggested for solving inverse problems under different settings (see a detailed survey in [37]). We focus on the unsupervised setting, where we have access to a dataset of clean images at training time, but the degradation model is known only at inference time. This setup is inherently general to all linear inverse problems, a property desired in many real-world applications such as medical imaging [46, 20]. ",
785
+ "bbox": [
786
+ 174,
787
+ 842,
788
+ 825,
789
+ 911
790
+ ],
791
+ "page_idx": 5
792
+ },
793
+ {
794
+ "type": "table",
795
+ "img_path": "images/15b59c181c889f7e18b39ef45a7c4778bef8bae06895ab56077d0238e8036c79.jpg",
796
+ "table_caption": [
797
+ "Table 1: Noiseless $4 \\times$ super-resolution and deblurring results on ImageNet 1K $( 2 5 6 \\times 2 5 6 )$ . "
798
+ ],
799
+ "table_footnote": [],
800
+ "table_body": "<table><tr><td>Method</td><td colspan=\"4\">4× super-resolution</td><td colspan=\"4\">Deblurring</td></tr><tr><td></td><td>PSNR↑</td><td>SSIM↑</td><td>KID↓</td><td>NFEs↓</td><td>PSNR↑</td><td>SSIM个</td><td>KID↓</td><td>NFEs↓</td></tr><tr><td>Baseline</td><td>25.65</td><td>0.71</td><td>44.90</td><td>0</td><td>19.26</td><td>0.48</td><td>38.00</td><td>0</td></tr><tr><td>DGP</td><td>23.06</td><td>0.56</td><td>21.22</td><td>1500</td><td>22.70</td><td>0.52</td><td>27.60</td><td>1500</td></tr><tr><td>RED</td><td>26.08</td><td>0.73</td><td>53.55</td><td>100</td><td>26.16</td><td>0.76</td><td>21.21</td><td>500</td></tr><tr><td>SNIPS</td><td>17.58</td><td>0.22</td><td>35.17</td><td>1000</td><td>34.32</td><td>0.87</td><td>0.49</td><td>1000</td></tr><tr><td>DDRM</td><td>26.55</td><td>0.72</td><td>7.22</td><td>20</td><td>35.64</td><td>0.95</td><td>0.71</td><td>20</td></tr><tr><td>DDRM-CC</td><td>26.55</td><td>0.74</td><td>6.56</td><td>20</td><td>35.65</td><td>0.96</td><td>0.70</td><td>20</td></tr></table>",
801
+ "bbox": [
802
+ 173,
803
+ 117,
804
+ 825,
805
+ 252
806
+ ],
807
+ "page_idx": 6
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "Almost all unsupervised inverse problem solvers utilize a trained neural network in an iterative scheme. PnP, RED, and their successors [51, 40, 32, 49] apply a denoiser as part of an iterative optimization algorithm such as steepest descent, fixed-point, or alternating direction method of multipliers (ADMM). OneNet [39] trained a network to directly learn the proximal operator of ADMM. A similar use of denoisers in different iterative algorithms is proposed in [34, 16, 30]. The authors of [43] leverages robust classifiers learned with additional class labels. ",
812
+ "bbox": [
813
+ 174,
814
+ 282,
815
+ 825,
816
+ 366
817
+ ],
818
+ "page_idx": 6
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "Another approach is to search the latent space of a generative model for a generated image that, when degraded, is as close as possible to the given measurements. Multiple such methods were suggested, mainly focusing on generative adversarial networks (GANs) [7, 11, 33]. While they exhibit impressive results on images of a specific class, most notably face images, these methods are not shown to be largely successful under a more diverse dataset such as ImageNet [12]. Deep Generative Prior (DGP) mitigates this issue by optimizing the latent input as well as the weights of the GAN’s generator [38]. ",
823
+ "bbox": [
824
+ 174,
825
+ 372,
826
+ 825,
827
+ 469
828
+ ],
829
+ "page_idx": 6
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "More recently, denoising diffusion models were used to solve inverse problems in both supervised (i.e., degradation model is known during training) [42, 41, 13, 10, 54] and unsupervised settings [22, 26, 25, 21, 46, 47, 9]. Unlike previous approaches, most diffusion-based methods can successfully recover images from measurements with significant noise. However, these methods are very slow, often requiring hundreds or thousands of iterations, and are yet to be proven on diverse datasets. Our method, motivated by variational inference, obtains problem-specific, non-equilibrium update rules that lead to high-quality solutions in much fewer iterations. ",
834
+ "bbox": [
835
+ 174,
836
+ 476,
837
+ 825,
838
+ 573
839
+ ],
840
+ "page_idx": 6
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "ILVR [9] suggests a diffusion-based method that handles noiseless super-resolution, and can run in 250 steps. In Appendix H, we prove that when applied on the same underlying generative diffusion model, ILVR is a special case of DDRM. Therefore, ILVR can be further accelerated to run in 20 steps, but unlike DDRM, it provides no clear way of handling noise in the measurements. Similarly, the authors of [22] suggest a score-based solver for inverse problems that can converge in a small number of iterations, but does not handle noise in the measurements. ",
845
+ "bbox": [
846
+ 174,
847
+ 579,
848
+ 825,
849
+ 662
850
+ ],
851
+ "page_idx": 6
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "5 Experiments ",
856
+ "text_level": 1,
857
+ "bbox": [
858
+ 174,
859
+ 681,
860
+ 312,
861
+ 699
862
+ ],
863
+ "page_idx": 6
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "5.1 Experimental Setup ",
868
+ "text_level": 1,
869
+ "bbox": [
870
+ 174,
871
+ 713,
872
+ 351,
873
+ 728
874
+ ],
875
+ "page_idx": 6
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "We demonstrate our algorithm’s capabilities using the diffusion models from [19], which are trained on CelebA-HQ [23], LSUN bedrooms, and LSUN cats [56] (all $2 5 6 \\times 2 5 6$ pixels). We test these models on images from FFHQ [24], and pictures from the internet of the considered LSUN category, respectively. In addition, we use the models from [13], trained on the training set of ImageNet $2 5 6 \\times 2 5 6$ and $5 1 2 \\times 5 1 2$ , and tested on the corresponding validation set. Some of the ImageNet models require class information. For these models, we use the ground truth labels as input, and denote our algorithm as DDRM class conditional (DDRM-CC). In all experiments, we use $\\eta = 0 . 8 5$ , $\\eta _ { b } = 1$ , and a uniformly-spaced timestep schedule based on the 1000-step pre-trained models (more details in Appendix E). The number of NFEs (timesteps) is reported in each experiment. ",
880
+ "bbox": [
881
+ 174,
882
+ 738,
883
+ 825,
884
+ 863
885
+ ],
886
+ "page_idx": 6
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "In each of the inverse problems we show, pixel values are in the range $[ 0 , 1 ]$ , and the degraded measurements are obtained as follows: $( i )$ for super-resolution, we use a block averaging filter to downscale the images by a factor of 2, 4, or 8 in each axis; $( i i )$ for deblurring, the images are blurred by a $9 \\times 9$ uniform kernel, and singular values below a certain threshold are zeroed, making the problem more ill-posed. (iii) for colorization, the grayscale image is an average of the red, green, and blue channels of the original image; $( i \\nu )$ and for inpainting, we mask parts of the original image with text overlay or randomly drop $5 0 \\%$ of the pixels. Additive white Gaussian noise can optionally be added to the measurements in all inverse problems. We additionally conduct experiments on bicubic super-resolution and deblurring with an anisotropic Gaussian kernel in Appendix I. ",
891
+ "bbox": [
892
+ 176,
893
+ 869,
894
+ 825,
895
+ 911
896
+ ],
897
+ "page_idx": 6
898
+ },
899
+ {
900
+ "type": "table",
901
+ "img_path": "images/8b6435c2611c1186e23b55821ff1b0fc496fa7600eaa32bb9aa5d5b5a04bab15.jpg",
902
+ "table_caption": [
903
+ "Table 2: $4 \\times$ super resolution and deblurring results on ImageNet 1K $2 5 6 \\times 2 5 6 )$ . Input images have an additive noise of $\\sigma _ { \\mathbf { y } } = 0 . 0 5$ . "
904
+ ],
905
+ "table_footnote": [],
906
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"4\">4× super-resolution</td><td colspan=\"4\">Deblurring</td></tr><tr><td>PSNR↑</td><td>SSIM↑</td><td>KID↓</td><td>NFEs↓</td><td>PSNR↑</td><td>SSIM↑</td><td>KID↓</td><td>NFEs↓</td></tr><tr><td>Baseline</td><td>22.55</td><td>0.46</td><td>67.86</td><td>0</td><td>18.35</td><td>0.20</td><td>75.50</td><td>0</td></tr><tr><td>DGP</td><td>20.69</td><td>0.43</td><td>42.17</td><td>1500</td><td>21.20</td><td>0.45</td><td>34.02</td><td>1500</td></tr><tr><td>RED</td><td>22.90</td><td>0.49</td><td>43.45</td><td>100</td><td>14.69</td><td>0.08</td><td>121.82</td><td>500</td></tr><tr><td>SNIPS</td><td>16.30</td><td>0.14</td><td>67.77</td><td>1000</td><td>16.37</td><td>0.14</td><td>77.96</td><td>1000</td></tr><tr><td>DDRM</td><td>25.21</td><td>0.66</td><td>12.43</td><td>20</td><td>25.45</td><td>0.66</td><td>15.24</td><td>20</td></tr><tr><td>DDRM-CC</td><td>25.22</td><td>0.67</td><td>10.82</td><td>20</td><td>25.46</td><td>0.67</td><td>13.49</td><td>20</td></tr></table>",
907
+ "bbox": [
908
+ 173,
909
+ 132,
910
+ 836,
911
+ 265
912
+ ],
913
+ "page_idx": 7
914
+ },
915
+ {
916
+ "type": "image",
917
+ "img_path": "images/dce0cb2c19799418bd2c994aecc71852b76f94b87d29b39bfca92e3ac67a7dc4.jpg",
918
+ "image_caption": [
919
+ "Figure 4: $4 \\times$ noisy super resolution comparison with $\\sigma _ { \\mathbf { y } } = 0 . 0 5$ . "
920
+ ],
921
+ "image_footnote": [],
922
+ "bbox": [
923
+ 181,
924
+ 286,
925
+ 818,
926
+ 382
927
+ ],
928
+ "page_idx": 7
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "",
933
+ "bbox": [
934
+ 174,
935
+ 431,
936
+ 825,
937
+ 515
938
+ ],
939
+ "page_idx": 7
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "Our code is available at https://github.com/bahjat-kawar/ddrm. ",
944
+ "bbox": [
945
+ 176,
946
+ 521,
947
+ 645,
948
+ 536
949
+ ],
950
+ "page_idx": 7
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "5.2 Quantitative Experiments ",
955
+ "text_level": 1,
956
+ "bbox": [
957
+ 174,
958
+ 554,
959
+ 393,
960
+ 569
961
+ ],
962
+ "page_idx": 7
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "In order to quantify DDRM’s performance, we focus on the ImageNet dataset $2 5 6 \\times 2 5 6 )$ for its diversity. For each experiment, we report the average peak signal-to-noise ratio (PSNR) and structural similarity index measure (SSIM) [52] to measure faithfulness to the original image, and the kernel Inception distance (KID) [5], multiplied by $1 0 ^ { 3 }$ , to measure the resulting image quality. ",
967
+ "bbox": [
968
+ 174,
969
+ 580,
970
+ 825,
971
+ 636
972
+ ],
973
+ "page_idx": 7
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "We compare DDRM (with 20 and 100 steps) with other unsupervised methods that work in reasonable time (requiring 1500 NFEs or less) and can operate on ImageNet. Namely, we compare with RED [40], DGP [38], and SNIPS [25]. The exact setup of each method is detailed in Appendix F. We used the same hyperparameters for noisy and noiseless versions of the same problem for DGP, RED, and SNIPS, as tuning them for each version would compromise their unsupervised nature. Nevertheless, the performance of baselines like RED with such a tuning does not surpass that of DDRM, as we show in Appendix F. In addition, we show upscaling by bicubic interpolation as a baseline for super-resolution, and the blurry image itself as a baseline for deblurring. OneNet [39] is not included in the comparisons as it is limited to images of size $6 4 \\times 6 4$ , and generalization to higher dimensions requires an improved network architecture. ",
978
+ "bbox": [
979
+ 173,
980
+ 642,
981
+ 823,
982
+ 671
983
+ ],
984
+ "page_idx": 7
985
+ },
986
+ {
987
+ "type": "image",
988
+ "img_path": "images/c29b6e70f49e93bec3f7d31839a85160b2b005e20acbf20e9617bb3c256f753b.jpg",
989
+ "image_caption": [
990
+ "Figure 5: $5 1 2 \\times 5 1 2$ ImageNet colorization. DDRM-CC produces various samples for multiple runs on the same input. "
991
+ ],
992
+ "image_footnote": [],
993
+ "bbox": [
994
+ 212,
995
+ 695,
996
+ 779,
997
+ 872
998
+ ],
999
+ "page_idx": 7
1000
+ },
1001
+ {
1002
+ "type": "image",
1003
+ "img_path": "images/677dbd46569b00f85565e6a7598555e2ec90d1684b5b06b3a221943f2f16443d.jpg",
1004
+ "image_caption": [
1005
+ "Figure 6: Results on $2 5 6 \\times 2 5 6$ USC-SIPI images using an ImageNet model. Blurred images have a noise of $\\sigma _ { \\mathbf { y } } = 0 . 0 1$ . "
1006
+ ],
1007
+ "image_footnote": [],
1008
+ "bbox": [
1009
+ 173,
1010
+ 88,
1011
+ 818,
1012
+ 321
1013
+ ],
1014
+ "page_idx": 8
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "",
1019
+ "bbox": [
1020
+ 174,
1021
+ 387,
1022
+ 825,
1023
+ 498
1024
+ ],
1025
+ "page_idx": 8
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "We evaluate all methods on the problems of $4 \\times$ super-resolution and deblurring, on one validation set image from each of the 1000 ImageNet classes, following [38]. Table 1 shows that DDRM outperforms all baseline methods, in all metrics, and on both problems with only 20 steps. The only exception to this is that SNIPS achieves better KID than DDRM in noiseless deblurring, but it requires $5 0 \\times$ more NFEs to do so. Note that the runtime of all the tested methods is perfectly linear with NFEs, with negligible differences in time per iteration. DGP and DDRM-CC use ground-truth class labels for the test images to aid in the restoration process, and thus have an unfair advantage. ",
1030
+ "bbox": [
1031
+ 174,
1032
+ 505,
1033
+ 825,
1034
+ 602
1035
+ ],
1036
+ "page_idx": 8
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "DDRM’s appeal compared to previous methods becomes more substantial when significant noise is added to the measurements. Under this setting, DGP, RED, and SNIPS all fail to produce viable results, as evident in Table 2 and Figure 4. Since DDRM is fast, we also evaluate it on the entire ImageNet validation set in Appendix F. ",
1041
+ "bbox": [
1042
+ 174,
1043
+ 608,
1044
+ 825,
1045
+ 664
1046
+ ],
1047
+ "page_idx": 8
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "5.3 Qualitative Experiments ",
1052
+ "text_level": 1,
1053
+ "bbox": [
1054
+ 174,
1055
+ 680,
1056
+ 383,
1057
+ 695
1058
+ ],
1059
+ "page_idx": 8
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "DDRM produces high quality reconstructions across all the tested datasets and problems, as can be seen in Figures 1 and 3, and in Appendix I. As it is a posterior sampling algorithm, DDRM can produce multiple outputs for the same input, as demonstrated in Figure 5. Moreover, the unconditional ImageNet diffusion models can be used to solve inverse problems on out-of-distribution images with general content. In Figure 6, we show DDRM successfully restoring $2 5 6 \\times 2 5 6$ images from USC-SIPI [53] that do not necessarily belong to any ImageNet class (more results in Appendix I). ",
1064
+ "bbox": [
1065
+ 174,
1066
+ 707,
1067
+ 825,
1068
+ 790
1069
+ ],
1070
+ "page_idx": 8
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "6 Conclusions ",
1075
+ "text_level": 1,
1076
+ "bbox": [
1077
+ 174,
1078
+ 810,
1079
+ 305,
1080
+ 827
1081
+ ],
1082
+ "page_idx": 8
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "We have introduced DDRM, a general sampling-based linear inverse problem solver based on unconditional/class-conditional diffusion generative models as learned priors. Motivated by variational inference, DDRM only requires a few number of NFEs (e.g., 20) compared to other samplingbased baselines (e.g., 1000 for SNIPS) and achieves scalability in multiple useful scenarios, including denoising, super-resolution, deblurring, inpainting, and colorization. We demonstrate the empirical successes of DDRM on various problems and datasets, including general natural images outside the distribution of the observed training set. To our best knowledge, DDRM is the first unsupervised method that effectively and efficiently samples from the posterior distribution of inverse problems with significant noise, and can work on natural images with general content. ",
1087
+ "bbox": [
1088
+ 174,
1089
+ 842,
1090
+ 825,
1091
+ 911
1092
+ ],
1093
+ "page_idx": 8
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "",
1098
+ "bbox": [
1099
+ 174,
1100
+ 92,
1101
+ 825,
1102
+ 147
1103
+ ],
1104
+ "page_idx": 9
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "In terms of future work, apart from further optimizing the timestep and variance schedules, it would be interesting to investigate the following: (i) applying DDRM to non-linear inverse problems, $( i i )$ addressing scenarios where the degradation operator is unknown, and (iii) self-supervised training techniques inspired by DDRM as well as ones used in supervised techniques [41] that further improve performance of unsupervised models for image restoration. ",
1109
+ "bbox": [
1110
+ 174,
1111
+ 154,
1112
+ 825,
1113
+ 222
1114
+ ],
1115
+ "page_idx": 9
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Acknowledgements ",
1120
+ "text_level": 1,
1121
+ "bbox": [
1122
+ 176,
1123
+ 242,
1124
+ 338,
1125
+ 258
1126
+ ],
1127
+ "page_idx": 9
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "We thank Kristy Choi, Charlie Marx, and Avital Shafran for insightful discussions and feedback. This research was supported by NSF (#1651565, #1522054, #1733686), ONR (N00014-19-1-2145), AFOSR (FA9550-19-1-0024), ARO (W911NF-21-1-0125), Sloan Fellowship, Amazon AWS, Stanford Institute for Human-Centered Artificial Intelligence (HAI), Google Cloud, the Israel Science Foundation (ISF) under Grant 335/18, the Israeli Council For Higher Education - Planning & Budgeting Committee, and the Stephen A. Kreynes Fellowship. ",
1132
+ "bbox": [
1133
+ 174,
1134
+ 273,
1135
+ 826,
1136
+ 357
1137
+ ],
1138
+ "page_idx": 9
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "References ",
1143
+ "text_level": 1,
1144
+ "bbox": [
1145
+ 174,
1146
+ 377,
1147
+ 266,
1148
+ 392
1149
+ ],
1150
+ "page_idx": 9
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "[1] Richard G Baraniuk. Compressive sensing [lecture notes]. IEEE signal processing magazine, 24(4):118–121, 2007. \n[2] Johnathan M Bardsley. Mcmc-based image reconstruction with uncertainty quantification. SIAM Journal on Scientific Computing, 34(3):A1316–A1332, 2012. \n[3] Johnathan M Bardsley, Antti Solonen, Heikki Haario, and Marko Laine. Randomize-thenoptimize: A method for sampling from posterior distributions in nonlinear inverse problems. SIAM Journal on Scientific Computing, 36(4):A1895–A1910, 2014. \n[4] Christopher M Bishop. Pattern recognition. Machine learning, 128(9), 2006. \n[5] Mikołaj Binkowski, Danica J. Sutherland, Michael Arbel, and Arthur Gretton. Demystifying ´ MMD GANs. In International Conference on Learning Representations, 2018. \n[6] Yochai Blau and Tomer Michaeli. The perception-distortion tradeoff. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6228–6237, 2018. \n[7] Ashish Bora, Ajil Jalal, Eric Price, and Alexandros G. Dimakis. Compressed sensing using generative models. In Proceedings of the 34th International Conference on Machine Learning, volume 70, pages 537–546, 2017. \n[8] Daniela Calvetti and Erkki Somersalo. Hypermodels in the bayesian imaging framework. Inverse Problems, 24(3):034013, 2008. \n[9] Jooyoung Choi, Sungwon Kim, Yonghyun Jeong, Youngjune Gwon, and Sungroh Yoon. Ilvr: Conditioning method for denoising diffusion probabilistic models. arXiv preprint arXiv:2108.02938, 2021. \n[10] Hyungjin Chung, Byeongsu Sim, and Jong Chul Ye. Come-closer-diffuse-faster: Accelerating conditional diffusion models for inverse problems through stochastic contraction. arXiv preprint arXiv:2112.05146, 2021. \n[11] Giannis Daras, Joseph Dean, Ajil Jalal, and Alex Dimakis. Intermediate layer optimization for inverse problems using deep generative models. In Proceedings of the 38th International Conference on Machine Learning, volume 139, pages 2421–2432, 2021. \n[12] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A largescale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255, 2009. \n[13] Prafulla Dhariwal and Alexander Quinn Nichol. Diffusion models beat GANs on image synthesis. In Thirty-Fifth Conference on Neural Information Processing Systems, 2021. \n[14] Chao Dong, Chen Change Loy, Kaiming He, and Xiaoou Tang. Image super-resolution using deep convolutional networks. IEEE transactions on pattern analysis and machine intelligence, 38(2):295–307, 2015. \n[15] Jinjin Gu, Yujun Shen, and Bolei Zhou. Image processing using multi-code gan prior. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 3012–3021, 2020. \n[16] Bichuan Guo, Yuxing Han, and Jiangtao Wen. Agem: Solving linear inverse problems via deep priors and sampling. Advances in Neural Information Processing Systems, 32, 2019. \n[17] Muhammad Haris, Gregory Shakhnarovich, and Norimichi Ukita. Deep back-projection networks for super-resolution. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1664–1673, 2018. \n[18] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems, volume 30, 2017. \n[19] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, volume 33, pages 6840–6851, 2020. \n[20] Ajil Jalal, Marius Arvinte, Giannis Daras, Eric Price, Alex Dimakis, and Jonathan Tamir. Robust compressed sensing mri with deep generative priors. In Thirty-Fifth Conference on Neural Information Processing Systems, 2021. \n[21] Ajil Jalal, Sushrut Karmalkar, Alex Dimakis, and Eric Price. Instance-optimal compressed sensing via posterior sampling. In Proceedings of the 38th International Conference on Machine Learning, volume 139, pages 4709–4720, 2021. \n[22] Zahra Kadkhodaie and Eero Simoncelli. Stochastic solutions for linear inverse problems using the prior implicit in a denoiser. Advances in Neural Information Processing Systems, 34, 2021. \n[23] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In International Conference on Learning Representations, 2018. \n[24] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4401–4410, 2019. \n[25] Bahjat Kawar, Gregory Vaksman, and Michael Elad. SNIPS: Solving noisy inverse problems stochastically. In Thirty-Fifth Conference on Neural Information Processing Systems, 2021. \n[26] Bahjat Kawar, Gregory Vaksman, and Michael Elad. Stochastic image denoising by sampling from the posterior distribution. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops, pages 1866–1875, October 2021. \n[27] Diederik P Kingma and Max Welling. Auto-Encoding variational bayes. arXiv preprint arXiv:1312.6114v10, December 2013. \n[28] Orest Kupyn, Tetiana Martyniuk, Junru Wu, and Zhangyang Wang. Deblurgan-v2: Deblurring (orders-of-magnitude) faster and better. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8878–8887, 2019. \n[29] Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Learning representations for automatic colorization. In European conference on computer vision, pages 577–593. Springer, 2016. \n[30] Rémi Laumont, Valentin De Bortoli, Andrés Almansa, Julie Delon, Alain Durmus, and Marcelo Pereyra. Bayesian imaging using plug & play priors: When Langevin meets Tweedie. arXiv preprint arXiv:2103.04715, 2021. ",
1155
+ "bbox": [
1156
+ 173,
1157
+ 398,
1158
+ 828,
1159
+ 917
1160
+ ],
1161
+ "page_idx": 9
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "",
1166
+ "bbox": [
1167
+ 171,
1168
+ 60,
1169
+ 828,
1170
+ 914
1171
+ ],
1172
+ "page_idx": 10
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "[31] Christian Ledig, Lucas Theis, Ferenc Huszár, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, et al. Photo-realistic single image super-resolution using a generative adversarial network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4681–4690, 2017. ",
1177
+ "bbox": [
1178
+ 173,
1179
+ 90,
1180
+ 826,
1181
+ 147
1182
+ ],
1183
+ "page_idx": 11
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "[32] Gary Mataev, Peyman Milanfar, and Michael Elad. DeepRED: deep image prior powered by RED. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops, 2019. ",
1188
+ "bbox": [
1189
+ 173,
1190
+ 155,
1191
+ 823,
1192
+ 198
1193
+ ],
1194
+ "page_idx": 11
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "[33] Sachit Menon, Alex Damian, McCourt Hu, Nikhil Ravi, and Cynthia Rudin. Pulse: Selfsupervised photo upsampling via latent space exploration of generative models. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2020. ",
1199
+ "bbox": [
1200
+ 174,
1201
+ 205,
1202
+ 823,
1203
+ 248
1204
+ ],
1205
+ "page_idx": 11
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "[34] Chris Metzler, Ali Mousavi, and Richard Baraniuk. Learned d-amp: Principled neural network based compressive image recovery. In Advances in Neural Information Processing Systems, volume 30, 2017. ",
1210
+ "bbox": [
1211
+ 174,
1212
+ 255,
1213
+ 823,
1214
+ 297
1215
+ ],
1216
+ "page_idx": 11
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "[35] Alex Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic models. arXiv preprint arXiv:2102.09672, 2021. ",
1221
+ "bbox": [
1222
+ 171,
1223
+ 305,
1224
+ 825,
1225
+ 335
1226
+ ],
1227
+ "page_idx": 11
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "[36] Gregory Ongie, Ajil Jalal, Christopher A Metzler, Richard G Baraniuk, Alexandros G Dimakis, and Rebecca Willett. Deep learning techniques for inverse problems in imaging. IEEE Journal on Selected Areas in Information Theory, 1(1):39–56, 2020. ",
1232
+ "bbox": [
1233
+ 173,
1234
+ 342,
1235
+ 823,
1236
+ 386
1237
+ ],
1238
+ "page_idx": 11
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "[37] Gregory Ongie, Ajil Jalal, Christopher A Metzler, Richard G Baraniuk, Alexandros G Dimakis, and Rebecca Willett. Deep learning techniques for inverse problems in imaging. IEEE Journal on Selected Areas in Information Theory, 1(1):39–56, 2020. ",
1243
+ "bbox": [
1244
+ 173,
1245
+ 392,
1246
+ 823,
1247
+ 436
1248
+ ],
1249
+ "page_idx": 11
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "[38] Xingang Pan, Xiaohang Zhan, Bo Dai, Dahua Lin, Chen Change Loy, and Ping Luo. Exploiting deep generative prior for versatile image restoration and manipulation. In European Conference on Computer Vision (ECCV), 2020. ",
1254
+ "bbox": [
1255
+ 173,
1256
+ 443,
1257
+ 823,
1258
+ 486
1259
+ ],
1260
+ "page_idx": 11
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "[39] JH Rick Chang, Chun-Liang Li, Barnabas Poczos, BVK Vijaya Kumar, and Aswin C Sankaranarayanan. One network to solve them all–solving linear inverse problems using deep projection models. In Proceedings of the IEEE International Conference on Computer Vision, pages 5888–5897, 2017. ",
1265
+ "bbox": [
1266
+ 174,
1267
+ 493,
1268
+ 825,
1269
+ 550
1270
+ ],
1271
+ "page_idx": 11
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "[40] Yaniv Romano, Michael Elad, and Peyman Milanfar. The little engine that could: Regularization by denoising (RED). SIAM Journal on Imaging Sciences, 10(4):1804–1844, 2017. ",
1276
+ "bbox": [
1277
+ 173,
1278
+ 558,
1279
+ 821,
1280
+ 587
1281
+ ],
1282
+ "page_idx": 11
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "[41] Chitwan Saharia, William Chan, Huiwen Chang, Chris A Lee, Jonathan Ho, Tim Salimans, David J Fleet, and Mohammad Norouzi. Palette: Image-to-image diffusion models. arXiv preprint arXiv:2111.05826, 2021. ",
1287
+ "bbox": [
1288
+ 173,
1289
+ 593,
1290
+ 823,
1291
+ 637
1292
+ ],
1293
+ "page_idx": 11
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "[42] Chitwan Saharia, Jonathan Ho, William Chan, Tim Salimans, David J Fleet, and Mohammad Norouzi. Image super-resolution via iterative refinement. arXiv preprint arXiv:2104.07636, 2021. ",
1298
+ "bbox": [
1299
+ 171,
1300
+ 643,
1301
+ 825,
1302
+ 688
1303
+ ],
1304
+ "page_idx": 11
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "[43] Shibani Santurkar, Dimitris Tsipras, Brandon Tran, Andrew Ilyas, Logan Engstrom, and Aleksander Madry. Image synthesis with a single (robust) classifier. arXiv preprint arXiv:1906.09453, 2019. ",
1309
+ "bbox": [
1310
+ 171,
1311
+ 695,
1312
+ 825,
1313
+ 738
1314
+ ],
1315
+ "page_idx": 11
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "[44] Jascha Sohl-Dickstein, Eric A Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. arXiv preprint arXiv:1503.03585, March 2015. ",
1320
+ "bbox": [
1321
+ 171,
1322
+ 744,
1323
+ 825,
1324
+ 787
1325
+ ],
1326
+ "page_idx": 11
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "[45] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, April 2021. ",
1331
+ "bbox": [
1332
+ 171,
1333
+ 795,
1334
+ 823,
1335
+ 825
1336
+ ],
1337
+ "page_idx": 11
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "[46] Yang Song, Liyue Shen, Lei Xing, and Stefano Ermon. Solving inverse problems in medical imaging with score-based generative models. arXiv preprint arXiv:2111.08005, 2021. ",
1342
+ "bbox": [
1343
+ 173,
1344
+ 832,
1345
+ 821,
1346
+ 862
1347
+ ],
1348
+ "page_idx": 11
1349
+ },
1350
+ {
1351
+ "type": "text",
1352
+ "text": "[47] Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021. ",
1353
+ "bbox": [
1354
+ 174,
1355
+ 869,
1356
+ 826,
1357
+ 911
1358
+ ],
1359
+ "page_idx": 11
1360
+ },
1361
+ {
1362
+ "type": "text",
1363
+ "text": "[48] Maitreya Suin, Kuldeep Purohit, and AN Rajagopalan. Spatially-attentive patch-hierarchical network for adaptive motion deblurring. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3606–3615, 2020. \n[49] Yu Sun, Brendt Wohlberg, and Ulugbek S Kamilov. An online plug-and-play algorithm for regularized image reconstruction. IEEE Transactions on Computational Imaging, 5(3):395–408, 2019. \n[50] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Deep image prior. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 9446–9454, 2018. \n[51] Singanallur V Venkatakrishnan, Charles A Bouman, and Brendt Wohlberg. Plug-and-play priors for model based reconstruction. In 2013 IEEE Global Conference on Signal and Information Processing, pages 945–948. IEEE, 2013. \n[52] Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600– 612, 2004. \n[53] Allan G Weber. The USC-SIPI image database version 5. USC-SIPI Report, 315(1), 1997. \n[54] Jay Whang, Mauricio Delbracio, Hossein Talebi, Chitwan Saharia, Alexandros G Dimakis, and Peyman Milanfar. Deblurring via stochastic refinement. arXiv preprint arXiv:2112.02475, 2021. \n[55] Raymond A Yeh, Chen Chen, Teck Yian Lim, Alexander G Schwing, Mark Hasegawa-Johnson, and Minh N Do. Semantic image inpainting with deep generative models. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5485–5493, 2017. \n[56] Fisher Yu, Ari Seff, Yinda Zhang, Shuran Song, Thomas Funkhouser, and Jianxiong Xiao. LSUN: construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015. \n[57] Kai Zhang, Yawei Li, Wangmeng Zuo, Lei Zhang, Luc Van Gool, and Radu Timofte. Plug-andplay image restoration with deep denoiser prior. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2021. \n[58] Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European Conference on Computer Vision, pages 649–666. Springer, 2016. ",
1364
+ "bbox": [
1365
+ 168,
1366
+ 84,
1367
+ 828,
1368
+ 593
1369
+ ],
1370
+ "page_idx": 12
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "Checklist ",
1375
+ "text_level": 1,
1376
+ "bbox": [
1377
+ 174,
1378
+ 89,
1379
+ 254,
1380
+ 106
1381
+ ],
1382
+ "page_idx": 13
1383
+ },
1384
+ {
1385
+ "type": "text",
1386
+ "text": "1. For all authors... ",
1387
+ "bbox": [
1388
+ 214,
1389
+ 116,
1390
+ 339,
1391
+ 130
1392
+ ],
1393
+ "page_idx": 13
1394
+ },
1395
+ {
1396
+ "type": "text",
1397
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] In the future work paragraph in Section 6 \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] We came to the conclusion that our paper does not have potential negative societal impacts. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1398
+ "bbox": [
1399
+ 238,
1400
+ 135,
1401
+ 825,
1402
+ 253
1403
+ ],
1404
+ "page_idx": 13
1405
+ },
1406
+ {
1407
+ "type": "text",
1408
+ "text": "2. If you are including theoretical results... ",
1409
+ "bbox": [
1410
+ 214,
1411
+ 257,
1412
+ 493,
1413
+ 272
1414
+ ],
1415
+ "page_idx": 13
1416
+ },
1417
+ {
1418
+ "type": "text",
1419
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes] In the appendice ",
1420
+ "bbox": [
1421
+ 233,
1422
+ 276,
1423
+ 795,
1424
+ 308
1425
+ ],
1426
+ "page_idx": 13
1427
+ },
1428
+ {
1429
+ "type": "text",
1430
+ "text": "3. If you ran experiments... ",
1431
+ "bbox": [
1432
+ 212,
1433
+ 311,
1434
+ 393,
1435
+ 325
1436
+ ],
1437
+ "page_idx": 13
1438
+ },
1439
+ {
1440
+ "type": "text",
1441
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] In the appendices. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] In both the paper and the appendices. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A] We report results averaged over 1, 000 images in the main paper and 50, 000 images in the appendices. Such large numbers eliminate the need for error bars. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] In the appendices. ",
1442
+ "bbox": [
1443
+ 238,
1444
+ 330,
1445
+ 825,
1446
+ 489
1447
+ ],
1448
+ "page_idx": 13
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1453
+ "bbox": [
1454
+ 217,
1455
+ 494,
1456
+ 823,
1457
+ 510
1458
+ ],
1459
+ "page_idx": 13
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [Yes] The licenses of previous works’ code and datasets will be included in our camera-ready code. \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] We include our code in the supplementary material. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] Consent was given by the original authors in their work. \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes] The datasets we use are anonymized. ",
1464
+ "bbox": [
1465
+ 238,
1466
+ 513,
1467
+ 825,
1468
+ 648
1469
+ ],
1470
+ "page_idx": 13
1471
+ },
1472
+ {
1473
+ "type": "text",
1474
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1475
+ "bbox": [
1476
+ 214,
1477
+ 652,
1478
+ 705,
1479
+ 666
1480
+ ],
1481
+ "page_idx": 13
1482
+ },
1483
+ {
1484
+ "type": "text",
1485
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
1486
+ "bbox": [
1487
+ 238,
1488
+ 671,
1489
+ 825,
1490
+ 761
1491
+ ],
1492
+ "page_idx": 13
1493
+ }
1494
+ ]
parse/dev/kxXvopt9pWK/kxXvopt9pWK_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/rwE8SshAlxw/rwE8SshAlxw.md ADDED
@@ -0,0 +1,464 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # UNSUPERVISED DISCOVERY OF OBJECT RADIANCE FIELDS
2
+
3
+ Hong-Xing Yu Stanford University
4
+
5
+ Leonidas J. Guibas Stanford University
6
+
7
+ Jiajun Wu Stanford University
8
+
9
+ # ABSTRACT
10
+
11
+ We study the problem of inferring an object-centric scene representation from a single image, aiming to derive a representation that is learned without supervision, explains the image formation process, and captures the scene’s 3D nature. Most existing methods on scene decomposition lack one or more of these characteristics, due to the fundamental challenge in integrating powerful unsupervised inference schemes like deep networks with the complex 3D-to-2D image formation process. In this paper, we propose unsupervised discovery of Object Radiance Fields (uORF), integrating recent progresses in neural 3D scene representations and rendering with deep inference networks for unsupervised 3D scene decomposition. Trained on only multi-view RGB images, uORF learns to decompose complex scenes with diverse, textured background from a single image. We show that uORF enables novel tasks, such as scene segmentation and editing in 3D, and it performs well on these tasks and on novel view synthesis on three datasets\*.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Building factorized, object-centric scene representations is a fundamental ability in human vision and a constant topic of interest in computer vision and machine learning. We identify that such representations should bear three characteristics: they should be learned without supervision or prior knowledge about object categories, and therefore applicable to environments where object categories are unknown; they should explain the image formation process, addressing questions like ‘what if the object is not there?’; they should be 3D-aware, capturing geometric and physical object properties for navigation, interaction, and manipulation.
16
+
17
+ For decades, researchers have attempted to solve the problems from various angles. Inspiring as they are, these methods each lack in one or more of the three aspects (Table 1). Computer vision research on unsupervised object discovery has achieved great success on deriving object segments from real images, but it doesn’t capture the image formation process, nor is it 3D-aware (Rubinstein et al., 2013; Zhu et al., 2012). Recent work on deep probabilistic inference for visual scene decomposition is unsupervised and generative (Burgess et al., 2019; Engelcke et al., 2019; Locatello et al., 2020), though most still formulate the problem as 2D segmentation and work on simple scenes of geometric primitives, ignoring the complex 3D nature of realistic visual scenes. A few recent papers on ‘scene de-rendering’ have attempted to reconstruct 3D, object-centric representations by leveraging the forward rendering procedure (Yao et al., 2018; Ost et al., 2021); they are however supervised, relying on annotations of specific object and scene categories, such as cars and road scenes.
18
+
19
+ The fundamental challenge that prevents these systems from acquiring all three desired properties is that the image formation process from 3D to 2D is complex and non-differentiable (e.g., due to occlusion). Thus, for a long time, it has been unclear how it may be integrated with powerful deep inference schemes. But most recently, progresses in neural rendering (Tewari et al., 2020) have demonstrated that their continuous, implicit representation works well with gradient-based inference models, such as deep networks. In particular, Neural Radiance Fields (NeRFs) (Mildenhall et al., 2020) recover a 3D scene from a set of RGB images via differentiable volume rendering. Such encouraging advances in generative modeling suggest a promising route for inferring 3D, generative, and object-centric scene representations without supervision.
20
+
21
+ In this paper, we propose unsupervised discovery of Object Radiance Fields (uORF), integrating conditional NeRFs as 3D object representations with deep inference networks for unsupervised 3D scene decomposition. uORF infers a set of object radiance fields and a background radiance field; thus, uORF represents a 3D scene as a composition of object radiance fields (Figure 1). During training, such radiance fields are neurally rendered in multiple views, with reconstruction losses in pixel space as training supervision; during testing, uORF infers the set of object radiance fields from a single image. Learning uORF does not require explicit supervision of 3D geometry or object segmentation, but only sparse multi-view RGB images of training scenes.
22
+
23
+ ![](images/5432514a57bb1445597c05650057330b2b9697276ff3dd9a74da2b03e6d6dc26.jpg)
24
+ Figure 1: Illustration of unsupervised discovery of Object Radiance Fields. We aim to infer factorized object and background radiance fields from a single view, allowing reconstructing and editing of the scene.
25
+
26
+ The integration of NeRFs allows us to work with more realistic scenes with complex object shapes and diverse background environments, beyond simple scenes such as those in multi-dSprites (Greff et al., 2019) and CLEVR (Johnson et al., 2017), as considered by most current unsupervised scene decomposition methods. We further make two innovations to improve uORF’s performance. First, as background geometry and appearance can be quite different from foreground objects in 3D, we design uORF with explicit modeling of both components. This background-aware design not only facilitates learning on complex scenes, but also allows single-image scene editing including moving individual objects and changing background. Second, as volume rendering requires massive queries to render a single pixel for the recomposed scene, a practical challenge of learning uORF lies in the computational inefficiency. We tackle this issue by proposing a novel progressive coarse-to-fine training which improves representation quality while remaining affordable computational cost.
27
+
28
+ We evaluate uORF on factorized scene representation learning (e.g., segmentation in 3D) and scene generation (e.g., novel view synthesis, scene editing in 3D). Our evaluation is on three datasets with a gradually increasing complexity: first, CLEVR-like scenes with primitives foreground shapes; second, room scenes with complex chair shapes and textured backgrounds; third, more diverse room scenes with various foreground shapes and backgrounds. Our results show that uORF learns factorized representations that can segment 3D scenes into objects with fine shape details (e.g., thin chair legs) and backgrounds with well-recovered appearance details (e.g., irregular textures of a wooden floor).
29
+
30
+ In summary, our contributions are three-fold. First, we propose the problem of inferring an unsupervised, factorized, generative, and 3D-aware scene representation from a single image. Second, we introduce unsupervised discovery of Object Radiance Fields (uORF) that infers individual 3D object radiance fields from a single view for the proposed problem. Third, we demonstrate that uORF enables novel tasks such as scene segmentation and editing in 3D, and we show that it generalizes to novel scene arrangement and unseen combinations of object properties.
31
+
32
+ # 2 RELATED WORK
33
+
34
+ Co-segmentation and object discovery. Our work is closely related to traditional computer vision methods on object discovery, which aims to locate (visually similar) objects in a collection of images. These methods typically model objects as visual words and adopted methods from topic modeling to localize objects (Russell et al., 2006; Sivic et al., 2005; 2008), or cluster and group image patches (Grauman & Darrell, 2006; Joulin et al., 2010; Rubio et al., 2012; Vicente et al., 2011; Rubinstein et al., 2013; Cho et al., 2015). Recent works have integrated the clustering-based strategy with deep learning (Li et al., 2019; Vo et al., 2020). Nevertheless, they do not explain image formation process nor are they 3D-aware.
35
+
36
+ <table><tr><td>Approach</td><td>Unsup.Gen. 3D</td><td></td><td></td></tr><tr><td>Co-segmentation</td><td></td><td></td><td>xx</td></tr><tr><td>Deep prob. infer.</td><td></td><td></td><td></td></tr><tr><td>Scene&quot;de-render&quot;</td><td></td><td></td><td></td></tr><tr><td>Ours</td><td></td><td></td><td></td></tr></table>
37
+
38
+ Table 1: Comparison to existing methods.
39
+
40
+ ![](images/b771ad360722e178944c575023b7fc9d95a1b5d37ba0b3fe34ca525f2399a212.jpg)
41
+ Figure 2: Overview. I. Our model learns to infer a set of latents in a single forward pass. II. Each object/background radiance field consists of a latent and a shared conditional NeRF. III. During training, we recompose the scene and re-render images for supervision. We train our model on different scenes. At test time, we use a single image of an unseen scene for reconstruction or editing.
42
+
43
+ Deep probabilistic inference for scene decomposition. Our method is also closely related to deep probabilistic inference for scene decomposition. Most works formulate the problem as compositional generative modeling, where a visual scene is represented by a set of latent codes that either correspond to localized object-centric patches (Eslami et al., 2016; Crawford & Pineau, 2019; Kosiorek et al., 2018; Lin et al., 2020; Jiang et al., 2019) or scene mixture components (Burgess et al., 2019; Greff et al., 2019; 2016; 2017; Engelcke et al., 2019). Recently, Locatello et al. (2020) proposed the Slot Attention module to simplify the inference by a slot-based encoder. Besides these inference models, Monnier et al. (2021) formulated scene decomposition as layered image decomposition and demonstrated it on real images. However, these methods do not account for the 3D nature of scenes.
44
+
45
+ A few methods have recently been proposed for unsupervised 3D scene decomposition. Elich et al. (2020) infer object shapes from a single scene image, but they require pretraining on groundtruth shapes. Chen et al. (2020) extend Generative Query Network (Eslami et al., 2018) to decompose 3D scenes, but they require multi-view images during inference. The closest to our work is a concurrent work by Stelzner et al. (2021) which also utilizes a slot-based encoder and NeRFs as 3D representations. However, Stelzner et al. (2021) relies on groundtruth multi-view dense depth in addition to images in training. Moreover, we explicitly model the separation of objects and background to address various complex shapes and textured backgrounds, while they only demonstrate scenes with a single textureless background.
46
+
47
+ Scene de-rendering. A few recent works have shown reconstructing 3D object-centric representations by incorporating forward image rendering process (Wu et al., 2017; Yao et al., 2018; Kundu et al., 2018; Ost et al., 2021). Yao et al. (2018) de-render an image into semantic segments and geometric object attributes, which enable 3D scene manipulation. Most recently, Ost et al. (2021) propose Neural Scene Graph to represent dynamic scenes into a scene graph where each node encodes object-centric information. However, these methods rely on manual annotations of specific objects (such as cars) and scene categories (such as street scenes).
48
+
49
+ Neural scene representations and rendering. Our method is related to recent progresses in neural continuous scene representations (Sitzmann et al., 2019) and neural rendering (Tewari et al., 2020). Neural scene representations parameterize 3D scenes with a deep network (Sitzmann et al., 2019). Combined with differentiable neural rendering techniques (Kato et al., 2020; Tewari et al., 2020), they can be learned from only 2D images (Niemeyer et al., 2020). In particular, Neural Radiance Fields (NeRFs) (Mildenhall et al., 2020) have shown impressive novel view synthesis. Related follow-up works include those that infer NeRFs from a single image (Yu et al., 2020; Kosiorek et al., 2021; Jang & Agapito, 2021) and those that incorporate NeRFs into generative models (Schwarz et al., 2020; Niemeyer & Geiger, 2021; Chan et al., 2020). Different from these works which cope with single objects or holistic scenes, we learn object NeRFs via decomposing a multi-object scene without segmentation annotations. GIRAFFE (Niemeyer & Geiger, 2020) generates object NeRFs and thus compose 3D scenes in an adversarial framework. However, it targets at unconditional generation and cannot tackle inference (see Appendix E), while we focus on single-image inference of multi-object scenes. Thus, we address a fundamentally different problem compared to GIRAFFE.
50
+
51
+ # 3 APPROACH
52
+
53
+ Our goal is to infer from a single image a set of object-centric 3D representations to generate the underlying 3D scene. We show an illustration in Figure 2. Our object representation is a conditional object radiance field. Thus, we learn to infer object-centric latents from a single image (Figure 2- I). The inferred latents are used to condition a network to yield the 3D object and background radiance fields (Figure 2-II), forming our 3D-aware, generative and factorized scene representation. In training, we compose all object and background radiance fields and render the recomposed scene from multiple views. We obtain supervision by comparing rendered images to reference images (Figure 2-III) without needing 3D geometry or segmentation annotations. We describe each of our model components in the following and leave implementation details in Appendix B.
54
+
55
+ # 3.1 OBJECT-CENTRIC LATENT INFERENCE
56
+
57
+ Our goal is to infer latent object-centric representations from a single input image. We assume that an underlying 3D scene is composed of a background environment and no more than $K$ foreground objects. Thus, the output of our object-centric latent inference process is a latent $\mathbf { z } ^ { b }$ for background and a set of latents $\{ \mathbf { z } _ { i } ^ { f } \} _ { i = 1 } ^ { K }$ for foreground objects (empty objects are allowed). To encourage unsupervised object-wise factorization, we adopt a slot-based formulation (Locatello et al., 2020). The assumption in this formulation is that objects should share a common prior latent space. The main idea include three steps. The first step is to sample all object latents (i.e., slots) from the same prior
58
+
59
+ ![](images/614299cdcf3735001f5da11d5324b929532aabf1f5fb87b68e70b315fe7a4d2a.jpg)
60
+ Figure 3: Our object-centric latent inference. The attention binds each object’s features to a slot.
61
+
62
+ distribution (background is a special object) to encourage representational uniformity across all slots (“sampling”). Then each slot is bound to an object region via an attention module (“binding”). In the last step each slot gets updated by the bound object features to specialize for that object (“updating”). Locatello et al. (2020) have demonstrated success on segmenting 2D images.
63
+
64
+ However, in 3D scenes, the geometry and appearance of the background are highly different from those of foreground objects. Modeling them indistinguishably often leads to object representations entangled with blurry background segments (Burgess et al., 2019; Locatello et al., 2020), which impedes applications such as scene editing and re-composition. Thus, we propose a backgroundaware slot attention module (Figure 3) that separately models objects and environment to better capture the compositional structure of 3D scenes.
65
+
66
+ Background-aware slot attention for sampling and binding. In the sampling step, we model the latent prior distribution of foreground objects by a Gaussian with learnable mean and variance, i.e., we sample $\mathbf { s } \mathbf { 1 } \mathsf { o t } \mathbf { s } ^ { f } \sim \mathcal { N } ^ { f } ( \mu ^ { f } , \mathsf { d i a g } ( \sigma ^ { f } ) \bar { ) } \in \mathbb { R } ^ { \bar { K } \times D }$ for $K$ objects. For latent prior of backgrounds, we learn another Gaussian and sample a single slot from it, i.e., $\mathbf { s } \mathbf { 1 } \mathbf { o t } ^ { b } \sim \mathcal { N } ^ { b } ( \dot { \mu ^ { b } } , \mathbf { d i a g } ( \sigma ^ { b } ) ) \stackrel { \smile } { \in } \mathbb { R } ^ { 1 \times D }$ .
67
+
68
+ To bind slots to image features, we let all the slots to compete for explaining the input image representation. To do this, we flatten the convolutional feature map (we include details about convolutional encoder in Appendix B.1) into a set of $N$ input feature vectors, feat $\in \mathbb { R } ^ { N \times D }$ . The slot competition is modeled by a key-query attention (Bahdanau et al., 2014):
69
+
70
+ $$
71
+ \mathrm { a t } { \bf u } _ { i , j } : = \frac { \exp ( M _ { i , j } ) } { \sum _ { l } \exp ( M _ { i , l } ) } , \quad \mathrm { w h e r e } \quad M : = \frac { 1 } { \sqrt { D } } k ( \mathbf { f e a t } ) \cdot \left[ \boldsymbol { q } ^ { b } ( \mathbf { s } \mathbf { l o t } \boldsymbol { \bf s } ^ { b } ) \right] ^ { T } \in \mathbb { R } ^ { N \times ( K + 1 ) } .
72
+ $$
73
+
74
+ Here $k$ and $q ^ { b } / q ^ { f }$ are learnable linear mappings √ $\mathbb { R } ^ { D D }$ for computing dot-product similarity (Luong et al., 2015), and $\sqrt { D }$ is a fixed softmax temperature (Vaswani et al., 2017). One can see this process as a soft K-means, where $\tt a t t r a _ { i }$ softly assigns a feature $i$ to the slots (centroids). The background slot is expected to capture the modality of background features and bind all of them, allowing foreground slots to focus only on the objects without explaining background segments (Figure 3). Besides the representation design, we further encourage disentanglement between background and foregrounds by two additional designs: (1) We represent and query foreground/background (during the neural rendering process) in different coordinate frames. (2) To discourage object slots from fitting background, we impose a locality constraint in early training. We set a foreground box and enforce that every foreground query point outside the box has zero density. We include details in Appendix B.2.
75
+
76
+ Updating slots to infer latents. With the attention weights, we form the update signal by aggregating input values via a weighted mean pooling updatesb := W bT · vb(feat) ∈ R1×D, where $\bar { W } _ { i , 1 } ^ { b } : = \mathsf { a t t n } _ { i , 1 } / ( \sum _ { l = 1 } ^ { N } \bar { \mathsf { a t t n } _ { l , 1 } } )$ , and up $\mathsf { i a t e s } ^ { f } : = W ^ { f T } \cdot v ^ { f } ( \mathsf { f e a t } ) \in \mathbb { R } ^ { K \times D }$ , where $W _ { i , j } ^ { f } ~ : = ~ \mathsf { a t t n } _ { i , j + 1 } / ( \sum _ { l = 1 } ^ { N } \mathsf { a t t n } _ { l , j + 1 } ) .$ Slots are then updated using the update signals via a learnable rule parameterized by a Gated Recurrent Unit (GRU) (Cho et al., 2014), so that $\mathbf { s } \mathbf { 1 } { \mathsf { o t s } } ^ { f } \gets \mathsf { G R U } ^ { f } \big ( \mathbf { s } \mathbf { 1 } { \mathsf { o t s } } ^ { f } , \mathbf { u p d a t } \bar { \mathsf { e s } } ^ { f } \big )$ ) and $\mathbf { s } 1 0 \mathbf { t } ^ { b } \gets \mathsf { G R U } ^ { b } ( \mathsf { s } 1 0 \mathbf { t } ^ { b } , \mathsf { u p d a t e s } ^ { b } )$ ). We repeat the attention computation and updating for 3 iterations, and output all the slots as the final latents $\mathbf { z } ^ { b }$ and $\{ \mathbf { z } _ { i } ^ { f } \} _ { i = 1 } ^ { K }$ . We show pseudo-code of our background-aware slot attention in Appendix (Alg. 1).
77
+
78
+ # 3.2 COMPOSITIONAL NEURAL RENDERING
79
+
80
+ We represent a 3D object as a conditional neural radiance field. A NeRF is a continuous mapping $g : ( \bar { \mathbf { x } , \mathbf { d } } ) ( \mathbf { c } , \sigma )$ from spatial location $\mathbf { x }$ and viewing direction d to emitted color c and volume density $\sigma$ used for volume rendering (Max, 1995). This mapping is parameterized by an MLP network. We adopt a conditional NeRF $g ( \mathbf { x } , \mathbf { d } | \mathbf { z } )$ for our inference scheme (detailed in Appendix B.3). The MLP parameters are shared across all objects $g ^ { f } ( \mathbf { x } , \mathbf { d } | \mathbf { z } _ { i } ^ { f } )$ , but not the background $g ^ { b } ( \mathbf { x } , \mathbf { d } | \mathbf { z } ^ { b } )$ due to its distinct geometry and appearance distribution.
81
+
82
+ To compose individual objects and background into the holistic scmodel and use density-weighted mean to combine all components: $\begin{array} { r } { \bar { \boldsymbol { \sigma } } = \sum _ { i = 0 } ^ { K } w _ { i } \sigma _ { i } , \bar { \mathbf { c } } = \sum _ { i = 0 } ^ { K } w _ { i } \mathbf { c } _ { i } } \end{array}$ , where $w _ { i } = \sigma _ { i } / \sum _ { j = 0 } ^ { K } \sigma _ { j }$ . Here $\bar { \sigma }$ and c¯ are the combined density and color, respectively. The color $C ( \mathbf { r } )$ of a camera ray $\mathbf { r } ( t ) = \mathbf { o } + \mathbf { d } ( t )$ is then estimated via numerical integration of volume rendering, using $S$ discrete combined samples along a ray (Max, 1995): $\begin{array} { r } { C ( \mathbf { r } ) = \bar { \sum _ { i = 1 } ^ { S } } T _ { i } [ 1 - \exp ( - \bar { \sigma } _ { i } \delta _ { i } ) ] \bar { \mathbf { c } } _ { i } } \end{array}$ where $\begin{array} { r } { T _ { i } = \exp \left( - \sum _ { j = 1 } ^ { i - 1 } \bar { \sigma } _ { j } \delta _ { j } \right) } \end{array}$ . Here $\delta _ { j }$ is the distance between adjacent samples along a ray.
83
+
84
+ # 3.3 MODEL LEARNING
85
+
86
+ Loss functions. As shown in Figure 2, during training we input a single image of a scene, infer object and background radiance fields, render multiple views from the recomposed scene, and compare them to reference images for loss computation. We train our model across multiple scenes. Our training loss function comprises of a reconstruction loss, a perceptual loss, and an adversarial loss: ${ \mathcal { L } } = { \mathcal { L } } _ { \mathrm { { r e c o n } } } + \lambda _ { \mathrm { { p e r c e p t } } } { \mathcal { L } } _ { \mathrm { { p e r c e p t } } } - \lambda _ { \mathrm { { a d v } } } { \mathcal { L } } _ { \mathrm { { a d v } } }$ , where $\lambda$ are weights. The reconstruction loss is $\mathcal { L } _ { \mathrm { r e c o n } } = \| \pmb { I } - \hat { \pmb { I } } \| ^ { 2 }$ , where $\pmb { I }$ and $\hat { I }$ denote the reference image and rendered image, respectively.
87
+
88
+ Since we estimate 3D radiance fields from a single view, there can be uncertainties about the appearance from other views (e.g., the back view). For example, regarding visual appearance of objects, inaccurate global lighting estimation leads to uncertainties in brightness and shadows from occluded views even if the object shapes can be well estimated. To address this, we incorporate a perceptual loss (Johnson et al., 2016) which is tolerant to mild appearance changes. The perceptual loss is defined by $\| \mathcal { L } _ { \mathrm { p e r c e p t } } = p ( I ) - p ( \hat { I } ) \| ^ { 2 }$ where $p$ is a deep feature extractor (See Appendix B.4).
89
+
90
+ In addition to appearance, there can be even higher uncertainties in estimating object shapes from a single view, which is a multi-modal distribution. In this case, the unimodal reconstruction loss leads to blurry results (“mean shape”). We mitigate this issue by adding an adversarial loss which can deal with multi-modal distributions:
91
+
92
+ $$
93
+ \begin{array} { r } { \mathcal { L } _ { \mathrm { a d v } } = \mathbb { E } [ f ( D ( \hat { \cal I } ) ) ] + \mathbb { E } [ f ( - D ( { \cal I } ) ) + \lambda _ { R } \| \nabla D ( { \cal I } ) \| ^ { 2 } ] , \quad \mathrm { w h e r e } \quad f ( t ) = - \log ( 1 + \exp ( - t ) ) . } \end{array}
94
+ $$
95
+
96
+ Here we adopt the R1 regularization (Mescheder et al., 2018) to stabilize training. $D$ denotes a discriminator to distinguish rendered images $\hat { I }$ and reference images $\pmb { I }$ . We iterate between training the discriminator by minimizing ${ \mathcal { L } } _ { \mathrm { a d v } }$ and training our inference model (Figure 2) by minimizing $\mathcal { L }$ .
97
+
98
+ Coarse-to-fine Progressive Training. A practical challenge in training compositional NeRFs lies in the computational cost of neural volume rendering, as it requires massive queries to render a single pixel. While there have been attempts on fast inference (Liu et al., 2020; Rebain et al., 2020; Neff et al., 2021; Garbin et al., 2021; Reiser et al., 2021; Yu et al., 2021), high space complexity in training remains a challenge. Further, because our perceptual and adversarial losses depend on image patches, the system has to render a large enough patch (instead of a single pixel) at the same time, which further increases its space demand.
99
+
100
+ To allow training on a higher resolution, we propose a coarse-to-fine progressive training. In a coarse training stage, we bilinearly downsample reference images to a low resolution (e.g., $6 4 \times 6 4 )$ , and train uORF on these downsampled images. Although the coarsely trained model can already decompose the 3D scenes and recover rough object radiance fields, fine details (e.g., thin legs of chairs) might be missing. Thus, in a following fine training stage, we replace the low-resolution reference images with image patches randomly cropped from high-resolution images (Figure 2-III), and render the correspondingly located patches from our recomposed scene radiance fields to compute the loss. We include further training details in Appendix B.4.
101
+
102
+ # 4 EXPERIMENTS
103
+
104
+ We evaluate uORF on both scene representation (via scene segmentation in 3D) and scene generation (via novel view synthesis and scene editing) on three datasets.
105
+
106
+ Data. We build three synthetic datasets with gradually increasing complexity. For each scene in the dataset, we point the camera to the scene center and render four images with a randomly chosen azimuth angle and a fixed elevation angle. We describe more details in Appendix C.1.
107
+
108
+ CLEVR-567. The first dataset includes scenes of 5–7 CLEVR objects (Johnson et al., 2017), with a random position and orientation on a clean background. Foreground object shapes include three geometric primitives (i.e., cubes, spheres and cylinders). Since there is intrinsic ambiguity in estimating specularity from a single image, we use only the largely diffuse “Rubber” material. There are 1,000 scenes for training and 500 for testing.
109
+
110
+ Room-Chair. The second dataset includes scenes of 3 to 4 chairs of the same shape in a room with three different textured backgrounds. There are 1,000 scenes for training and 500 for testing.
111
+
112
+ Room-Diverse. The third dataset includes scenes of diverse foreground object shapes and background appearances. Each scene includes 4 different chairs, whose shape is randomly sampled from 1,200 ShapeNet chair shapes (Chang et al., 2015), and the background is sampled from 50 floor textures from the web. There are 5,000 scenes for training and 500 for testing.
113
+
114
+ # 4.1 SCENE SEGMENTATION IN 3D
115
+
116
+ We first evaluate uORF’s factorized 3D scene representations via scene segmentation in 3D.
117
+
118
+ Baselines. Because there is no previous work focusing on the same setting as uORF, we compare to a 2D state-of-the-art scene decomposition model Slot Attention (Locatello et al., 2020) for unsupervised scene segmentation wherever possible (detailed in Appendix C.2). In addition, we compare to two ablated versions of uORF. First, we remove our background-aware modeling but keep the same number of slots. Second, we ablate our progressive training such that the training procedure only contains the coarse training stage. We refer to ablated models as “uORF (w/o background)” and “uORF (w/o prog. train.)”, respectively.
119
+
120
+ Metrics. We adopt the widely-used Adjusted Rand Index (ARI) as our metric. To evaluate scene segmentation in 3D, we consider three kinds of ARIs: (1) For direct comparison to 2D methods, we compute ARI on reconstructed images. (2) To reflect the 3D nature, we also compute ARI on synthesized novel views, denoted as “NV-ARI”. Note that each scene includes 4 views, and only one is used as input, and the other three are treated as novel views for this metric. (3) In line with previous 2D methods, we also report foreground ARI $\mathrm { F g }$ -ARI), computed only on foreground regions indicated by groundtruth masks. Yet, we note that $\mathrm { F g }$ -ARI cannot fully reflect the segmentation quality, because background segmentation is completely ignored.
121
+
122
+ Results. We volume-render a density map $\mathbf { d } ^ { i }$ for each slot . The segmentation label for each pixel $s _ { p }$ is given by $s _ { p } = \arg \operatorname* { m a x } _ { i = 1 } ^ { K + 1 } { \bf d } _ { p } ^ { i }$ . We show results on Table 2 and Figure 4 (more in Appendix D). For all segmentation metrics, we show mean and standard deviation for three runs. uORF outperforms all methods in terms of ARI and NV-ARI. From Figure 4, it is clear that uORF is able to discover the 3D objects from a single image. These results validate that uORF can learn well-factorized 3D object-centric scene representations. Also notice that uORF yields better ARI even in input views compared to 2D slot attention. This is likely due to our background-aware design, as our ablated model “uORF w/o background” has shown similar input-view results compared to slot attention (e.g., see 3rd and 4th columns in Figure 4).
123
+
124
+ # 4.2 NOVEL VIEW SYNTHESIS
125
+
126
+ We then show that uORF is 3D-aware and generative via evaluation on novel view synthesis.
127
+
128
+ ![](images/7783d6f6b011891979bd7aeefad251582074bc3420a9dbfabcca1cd7db9ef3af.jpg)
129
+
130
+ Figure 4: Examples on scene segmentation in 3D. Novel view images are for reference but not input.
131
+
132
+ <table><tr><td rowspan="5">Models</td><td colspan="3">CLEVR-567</td><td colspan="3">Room-Chair</td><td colspan="3">Room-Diverse</td></tr><tr><td>3D metric</td><td colspan="2">2D metric</td><td>3D metric</td><td colspan="2">2D metric</td><td>3D metric</td><td colspan="2">2D metric</td></tr><tr><td>NV-ARI↑</td><td>ARI↑</td><td>Fg-ARI个</td><td>NV-ARI个</td><td>ARI个</td><td>Fg-ARI↑</td><td>NV-ARI↑</td><td>ARI个</td><td>Fg-ARI↑</td></tr><tr><td>Slot Attention</td><td>N/A</td><td>3.5±0.7</td><td>93.2±1.5</td><td>N/A</td><td>38.4±18.4</td><td>40.2±4.5</td><td>N/A</td><td>17.4±11.3</td><td>43.8±11.7</td></tr><tr><td>uORF(w/o background)</td><td>10.5±3.6</td><td>11.7±4.6</td><td>86.4±2.8</td><td>40.4±9.2</td><td>42.3±10.6</td><td>93.3±1.9</td><td>21.0±8.1</td><td>24.0±9.9</td><td>78.9±3.1</td></tr><tr><td>uORF(w/o prog. train.)</td><td>81.1±0.7</td><td>83.7±0.8</td><td>84.2±0.5</td><td>62.3±2.5</td><td>65.4±2.6</td><td>81.0±3.0</td><td>53.8±1.4</td><td>63.7±1.7</td><td>66.9±4.1</td></tr><tr><td>uORF(ours)</td><td>83.8±0.3</td><td>86.3±0.1</td><td>87.4±0.8</td><td>74.3±1.9</td><td>78.8±2.6</td><td>88.8±2.7</td><td>56.9±0.2</td><td>65.6±1.0</td><td>67.9±1.7</td></tr></table>
133
+
134
+ Table 2: Scene segmentation results. “NV-ARI” refers to ARI evaluated on novel views. “Fg-ARI” refers to ARI evaluated with only foreground pixels. Slot Attention (Locatello et al., 2020) is a state-of-the-art 2D method.
135
+
136
+ Setup. For each test scene, we randomly pick one image as input and the remaining three images as groundtruth for novel view synthesis. As Slot Attention is purely in 2D and does not support novel view synthesis, we compare to a conditional NeRF (Mildenhall et al., 2020), equipped with a convolutional encoder similar to uORF, termed as “NeRF-AE” (see Appendix C.2). For fair comparison, we increase the latent dimension for NeRF-AE to guarantee approximately the same computational cost, and we use the same training strategy and losses as uORF. Thus, NeRF-AE can also be seen as a monolithic alternative model to uORF. We also compare with the ablated models, “uORF (w/o background)” and “uORF (w/o prog. train.)”. We use the perceptual metric LPIPS (Zhang et al., 2018), together with SSIM (Wang et al., 2004) and PSNR, as our evaluation metrics.
137
+
138
+ Results. Quantitative results are in Table 3 and qualitative results are in Figure 5 (more in Appendix D). Quantitatively, uORF outperforms all compared methods on all metrics. From the qualitative comparison in Figure 5, we highlight three advantages of uORF. First, compared with NeRF-AE, which has a monolithic latent structure for the entire scene, uORF better preserves the features of each object: for example, see how NeRF-AE fuses object colors in the first two rows, while uORF does not. This shows the advantage of factorized scene representations to structurally describe a visual scene. Second, compared with uORF (w/o background), one can clearly see how our background-aware modeling helps recovering background appearances: uORF can accurately recover background appearance of the Room-Chair example, while uORF (w/o background) does not. It also facilitates learning on complex scenes with diverse, textured background: uORF can learn to roughly recover object shapes in the Room-Diverse example. Third, compared with uORF (w/o prog. train.), we highlight that the fine training on image patches indeed improves both visual quality and representation quality: the full uORF tries to recover sharp edges of cubes, while uORF (w/o prog. train.) cannot distinguish cube from sphere.
139
+
140
+ ![](images/232183a9d35988986c77d1a94fc50b45dc9cf79f1c2590ae6196917d9c3ce14c.jpg)
141
+
142
+ Figure 5: Qualitative results on scene decomposition and novel view synthesis. Within every two rows, the first is reconstruction and the second is a novel view.
143
+
144
+ <table><tr><td rowspan="2">Models</td><td colspan="3">CLEVR-567</td><td colspan="3">Room-Chair</td><td colspan="3">Room-Diverse</td></tr><tr><td>LPIPS↓</td><td>SSIM↑</td><td>PSNR↑</td><td>LPIPS↓</td><td>SSIM↑</td><td>PSNR↑</td><td>LPIPS↓</td><td>SSIM↑</td><td>PSNR↑</td></tr><tr><td>NeRF-AE</td><td>0.1288</td><td>0.8658</td><td>27.16</td><td>0.1166</td><td>0.8265</td><td>28.13</td><td>0.2458</td><td>0.6688</td><td>24.80</td></tr><tr><td>uORF (w/o background)</td><td>0.0919</td><td>0.8924</td><td>28.93</td><td>0.1671</td><td>0.7852</td><td>27.86</td><td>0.2231</td><td>0.6924</td><td>25.90</td></tr><tr><td>uORF(w/o prog. train.)</td><td>0.1044</td><td>0.8894</td><td>28.84</td><td>0.1573</td><td>0.8287</td><td>28.33</td><td>0.2123</td><td>0.6760</td><td>25.19</td></tr><tr><td>uORF (ours)</td><td>0.0859</td><td>0.8971</td><td>29.28</td><td>0.0821</td><td>0.8722</td><td>29.60</td><td>0.1729</td><td>0.7094</td><td>25.96</td></tr></table>
145
+
146
+ Table 3: Comparison on novel view synthesis from a single image.
147
+
148
+ Overall, the novel view synthesis results suggest that uORF can learn to represent 3D scenes with reasonable fidelity, even with the presence of complex foreground object shapes, such as chairs and different textured backgrounds.
149
+
150
+ # 4.3 SCENE DESIGN AND EDITING IN 3D
151
+
152
+ Being object-centric and 3D-aware, uORF is able to edit 3D scene radiance fields inferred from a single view, and generate novel scene images.
153
+
154
+ Setup. We test uORF’s ability to edit scenes and synthesize novel images on the Room-Chair dataset. We consider both moving foreground objects and changing background appearance. For object moving, we randomly pick one object in a test scene and move it to a random position. We render 4 images for each of the 500 test scenes. For background changing, we replace the current background texture to a different one and also render 4 images for evaluation. To indicate the new background, we re-pick and re-put foreground objects such that the resultant background indicator image is different from the groundtruth image.
155
+
156
+ For uORF and Slot Attention (Locatello et al., 2020), we use groundtruth masks of the input view only for ease of evaluation. We determine which slot to move by picking the one with largest mask IoU. For NeRF-AE (Mildenhall et al., 2020) to do editing, we back-project the masks to frustums to determine the 3D regions to be moved/replaced. We use LPIPS, SSIM, and PSNR as our metrics.
157
+
158
+ Results. We show results in Table 4 and Figure 6 (more in Appendix D). Again, uORF outperforms all compared methods on all metrics. As Figure 6 depicts, images synthesized by uORF show least artifacts and highest quality and fidelity.
159
+
160
+ Table 4: Comparison on scene editing.
161
+
162
+ <table><tr><td rowspan="2">Models</td><td colspan="3">Moving objects</td><td colspan="3">Changing background</td></tr><tr><td>LPIPS↓</td><td>SSIM↑</td><td>PSNR↑</td><td>LPIPS↓</td><td>SSIM↑</td><td>PSNR个</td></tr><tr><td>NeRF-AE</td><td>0.2451</td><td>0.7284</td><td>23.18</td><td>0.2185</td><td>0.7132</td><td>25.42</td></tr><tr><td>Slot Attention</td><td>0.3941</td><td>0.7134</td><td>23.06</td><td>0.3689</td><td>0.7283</td><td>23.94</td></tr><tr><td>uORF(w/o background)</td><td>0.2206</td><td>0.7448</td><td>24.55</td><td>0.1879</td><td>0.7719</td><td>26.68</td></tr><tr><td>uORF(w/o prog.train.)</td><td>0.1583</td><td>0.8313</td><td>28.19</td><td>0.1586</td><td>0.8306</td><td>28.27</td></tr><tr><td>uORF (ours)</td><td>0.0855</td><td>0.8711</td><td>29.26</td><td>0.0822</td><td>0.8729</td><td>29.53</td></tr></table>
163
+
164
+ # 4.4 GENERALIZATION AND ANALYSIS
165
+
166
+ Finally we explore the generalization ability of uORF. We consider generalization on unseen, challenging spatial arrangement of objects, as well as generalization on unseen object appearances.
167
+
168
+ ![](images/069d7fc72a2cb4c001e4eae3b974f2c9acaac825ec3bf24b12d1c6a9ced3338f.jpg)
169
+ Figure 6: Qualitative results on single-image 3D scene manipulation. The first two rows are for moving object and the second two rows are for changing background.
170
+
171
+ <table><tr><td>Models</td><td>NV-ARI个</td><td>ARI个</td></tr><tr><td>Slot Attention</td><td>N/A</td><td>2.2±0.6</td></tr><tr><td>uORF (ours)</td><td>85.0±0.3</td><td>87.4±0.4</td></tr><tr><td>uORF (oracle)</td><td>85.5±0.3</td><td>87.5±0.3</td></tr></table>
172
+
173
+ <table><tr><td>Loss functions</td><td>ARI↑</td><td>LPIPS↓</td></tr><tr><td>Rec.</td><td>59.1±0.5</td><td>0.3610</td></tr><tr><td>Rec.+Percept.</td><td>65.2±0.8</td><td>0.2156</td></tr><tr><td>Rec.+ Adv.</td><td>60.4±2.2</td><td>0.2288</td></tr><tr><td>Rec.+ Percept. + Adv.</td><td>65.6±1.0</td><td>0.1729</td></tr></table>
174
+
175
+ Table 5: Generalization to novel Table 6: Generalization to unseen Table 7: Ablation study for losses on the challenging spatial arrangements. combinations of color and shape. Room-Diverse dataset.
176
+
177
+ <table><tr><td>Models</td><td>ARI个</td><td>LPIPS↓</td></tr><tr><td>Slot Attention</td><td>5.7±0.3</td><td>N/A</td></tr><tr><td>NeRF-AE</td><td>N/A</td><td>0.2201</td></tr><tr><td>uORF (ours)</td><td>83.2±0.6</td><td>0.1540</td></tr></table>
178
+
179
+ Generalizing to challenging spatial arrangements. We build a new test dataset, packed-CLEVR11, where each scene has 11 objects that are closely packed into a cluster. Therefore, each scene bears an unseen number of objects in an unseen challenging arrangement. We test models trained on CLEVR-567, report results in Table 5 and Appendix Figure 19. Despite uORF never sees such object arrangements, it still achieves a reasonable performance and outperforms baselines.
180
+
181
+ Generalizing to new combination of shape and color. For unseen object appearances, we consider generalization in a systematic way such that the model can deal with unseen combination of object color and shape. Thus, we build a new training set similar to CLEVR-567, but we remove red cylinders and blue spheres from the object candidate pool. Then we test trained models on another dataset with only red cylinders and blue spheres in the candidate pool. We show results in Table 6 and examples in Appendix Figure 20. We see that although uORF has never seen any of the test set objects, it achieves similar results to the one trained on a normal CLEVR-567 dataset (denoted as “uORF (oracle)”). This suggests uORF’s ability for systematic generalization to unseen combinations of object color and shape. We further validate generalization to unseen object shapes in Appendix D.
182
+
183
+ Evaluating loss functions. uORF uses perceptual and adversarial losses to combat intrinsic uncertainties in single-image inference of 3D representations. We show ablation results on novel view synthesis in Table 7 and Appendix Figure 18. Both losses significantly improve image quality.
184
+
185
+ # 5 CONCLUSION
186
+
187
+ In this work, we propose unsupervised discovery of Object Radiance Fields (uORF), which learns to infer object-centric 3D radiance fields from a single image of complex multi-object scenes. We demonstrate uORF’s ability on scene segmentation and scene generation in 3D. Our positive results suggest a promising direction to integrate neural rendering into deep probabilistic inference scheme, allowing learning factorized 3D object-centric scene representations from only RGB images.
188
+
189
+ # ACKNOWLEDGMENTS
190
+
191
+ This work was in part supported by Qualcomm Innovation Fellowship (QIF), Stanford Institute for Human-Centered AI (HAI), Stanford Center for Integrated Facility Engineering (CIFE), Toyota Research Institute, a Vannevar Bush faculty fellowship, Amazon, Autodesk, Google, and Bosch.
192
+
193
+ # REPRODUCIBILITY STATEMENT
194
+
195
+ To ensure reproducibility of our work, we have provided the training and test code repository†, together with all three synthetic datasets, and pre-trained models on all three datasets. We have also provided a detailed instruction on using our code as well as training on new datasets. In Appendix B, we describe details for re-implementing our work.
196
+
197
+ # ETHICS STATEMENT
198
+
199
+ Learning object-centric scene representations is a long-standing topic in vision and it finds various applications in downstream tasks. We represent a 3D scene as a composition of simple radiance fields, which only models object appearances and entangles their physical properties that may be crucial to downstream tasks in a non-interpretable way. However, we envision that careful designs in more structured 3D object representations for specific downstream applications could help improve transparency and human interpretability in model prediction and behavior, allowing both better performances and secure, fair usage. In our code release, we will explicitly specify allowable uses of our system with appropriate licenses. We will use techniques such as watermarking to identify and label visual contents generated by our system.
200
+
201
+ # REFERENCES
202
+
203
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv:1409.0473, 2014. 4
204
+ Christopher P Burgess, Loic Matthey, Nicholas Watters, Rishabh Kabra, Irina Higgins, Matt Botvinick, and Alexander Lerchner. Monet: Unsupervised scene decomposition and representation. arXiv:1901.11390, 2019. 1, 3, 4
205
+ Eric R Chan, Marco Monteiro, Petr Kellnhofer, Jiajun Wu, and Gordon Wetzstein. Pi-gan: Periodic implicit generative adversarial networks for 3d-aware image synthesis. arXiv:2012.00926, 2020. 3
206
+ Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: an information-rich 3d model repository. arXiv:1512.03012, 2015. 6, 16
207
+ Chang Chen, Fei Deng, and Sungjin Ahn. Learning to infer 3d object models from images. arXiv:2006.06130, 2020. 3
208
+ Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, ¨ and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv:1406.1078, 2014. 5
209
+ Minsu Cho, Suha Kwak, Cordelia Schmid, and Jean Ponce. Unsupervised object discovery and localization in the wild: Part-based matching with bottom-up region proposals. In CVPR, 2015. 2
210
+ Eric Crawford and Joelle Pineau. Spatially invariant unsupervised object detection with convolutional neural networks. In AAAI, 2019. 3
211
+ Yihe Dong, Jean-Baptiste Cordonnier, and Andreas Loukas. Attention is not all you need: Pure attention loses rank doubly exponentially with depth. arXiv:2103.03404, 2021. 18
212
+ Cathrin Elich, Martin R Oswald, Marc Pollefeys, and Jorg St ¨ uckler. Semi-supervised learning of multi-object 3d ¨ scene representations. arXiv:2010.04030, 2020. 3
213
+ Martin Engelcke, Adam R Kosiorek, Oiwi Parker Jones, and Ingmar Posner. Genesis: Generative scene inference and sampling with object-centric latent representations. arXiv:1907.13052, 2019. 1, 3
214
+ SM Eslami, Nicolas Heess, Theophane Weber, Yuval Tassa, David Szepesvari, Koray Kavukcuoglu, and Geoffrey E Hinton. Attend, infer, repeat: Fast scene understanding with generative models. arXiv:1603.08575, 2016. 3
215
+ SM Ali Eslami, Danilo Jimenez Rezende, Frederic Besse, Fabio Viola, Ari S Morcos, Marta Garnelo, Avraham Ruderman, Andrei A Rusu, Ivo Danihelka, Karol Gregor, et al. Neural scene representation and rendering. Sci., 2018. 3
216
+ Stephan J. Garbin, Marek Kowalski, Matthew Johnson, Jamie Shotton, and Julien Valentin. Fastnerf: Highfidelity neural rendering at 200fps. arXiv:2103.10380, 2021. 5
217
+ Kristen Grauman and Trevor Darrell. Unsupervised learning of categories from sets of partially matching image features. In CVPR, 2006. 2
218
+ Klaus Greff, Antti Rasmus, Mathias Berglund, Tele Hotloo Hao, Jurgen Schmidhuber, and Harri Valpola. Tagger: ¨ Deep unsupervised perceptual grouping. arXiv:1606.06724, 2016. 3
219
+ Klaus Greff, Sjoerd Van Steenkiste, and Jurgen Schmidhuber. Neural expectation maximization. ¨ arXiv:1708.03498, 2017. 3
220
+ Klaus Greff, Raphael Lopez Kaufman, Rishabh Kabra, Nick Watters, Christopher Burgess, Daniel Zoran, Loic ¨ Matthey, Matthew Botvinick, and Alexander Lerchner. Multi-object representation learning with iterative variational inference. In ICML, 2019. 2, 3
221
+ Wonbong Jang and Lourdes Agapito. Codenerf: Disentangled neural radiance fields for object categories. arXiv:2109.01750, 2021. 3
222
+ Jindong Jiang, Sepehr Janghorbani, Gerard de Melo, and Sungjin Ahn. Scalable object-oriented sequential generative models. arXiv:1910.02384, 2019. 3
223
+ Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and superresolution. In ECCV, 2016. 5
224
+ Justin Johnson, Bharath Hariharan, Laurens Van Der Maaten, Li Fei-Fei, C Lawrence Zitnick, and Ross Girshick. Clevr: a diagnostic dataset for compositional language and elementary visual reasoning. In CVPR, 2017. 2, 6, 15
225
+ Armand Joulin, Francis Bach, and Jean Ponce. Discriminative clustering for image co-segmentation. In CVPR, 2010. 2
226
+ Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. In CVPR, 2020. 14
227
+ Hiroharu Kato, Deniz Beker, Mihai Morariu, Takahiro Ando, Toru Matsuoka, Wadim Kehl, and Adrien Gaidon. Differentiable rendering: A survey. arXiv:2006.12057, 2020. 3
228
+ Adam R Kosiorek, Hyunjik Kim, Ingmar Posner, and Yee Whye Teh. Sequential attend, infer, repeat: Generative modelling of moving objects. arXiv:1806.01794, 2018. 3
229
+ Adam R Kosiorek, Heiko Strathmann, Daniel Zoran, Pol Moreno, Rosalia Schneider, Sona Mokr ˇ a, and Danilo J ´ Rezende. Nerf-vae: A geometry aware 3d scene generative model. arXiv:2104.00587, 2021. 3
230
+ Abhijit Kundu, Yin Li, and James M Rehg. 3d-rcnn: Instance-level 3d object reconstruction via render-andcompare. In CVPR, 2018. 3
231
+ Bo Li, Zhengxing Sun, Qian Li, Yunjie Wu, and Anqi Hu. Group-wise deep object co-segmentation with co-attention recurrent neural network. In CVPR, 2019. 2
232
+ Zhixuan Lin, Yi-Fu Wu, Skand Vishwanath Peri, Weihao Sun, Gautam Singh, Fei Deng, Jindong Jiang, and Sungjin Ahn. Space: Unsupervised object-oriented scene representation via spatial attention and decomposition. arXiv:2001.02407, 2020. 3
233
+ Lingjie Liu, Jiatao Gu, Kyaw Zaw Lin, Tat-Seng Chua, and Christian Theobalt. Neural sparse voxel fields. In NeurIPS, 2020. 5
234
+ Francesco Locatello, Dirk Weissenborn, Thomas Unterthiner, Aravindh Mahendran, Georg Heigold, Jakob Uszkoreit, Alexey Dosovitskiy, and Thomas Kipf. Object-centric learning with slot attention. arXiv:2006.15055, 2020. 1, 3, 4, 6, 7, 8, 15, 16
235
+ Minh-Thang Luong, Hieu Pham, and Christopher D Manning. Effective approaches to attention-based neural machine translation. arXiv:1508.04025, 2015. 4
236
+ Nelson Max. Optical models for direct volume rendering. IEEE TVCG, 1995. 5
237
+ Lars Mescheder, Andreas Geiger, and Sebastian Nowozin. Which training methods for gans do actually converge? In ICML, 2018. 5
238
+ Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. arXiv:2003.08934, 2020. 1, 3, 7, 8, 17
239
+
240
+ Tom Monnier, Elliot Vincent, Jean Ponce, and Mathieu Aubry. Unsupervised layered image decomposition into object prototypes. arXiv:2104.14575, 2021. 3
241
+ Thomas Neff, Pascal Stadlbauer, Mathias Parger, Andreas Kurz, Chakravarty R. Alla Chaitanya, Anton Kaplanyan, and Markus Steinberger. Donerf: Towards real-time rendering of neural radiance fields using depth oracle networks. arXiv:2103.03231, 2021. 5
242
+ Michael Niemeyer and Andreas Geiger. Giraffe: Representing scenes as compositional generative neural feature fields. arXiv:2011.12100, 2020. 3, 13, 18
243
+ Michael Niemeyer and Andreas Geiger. Campari: Camera-aware decomposed generative neural radiance fields. arXiv:2103.17269, 2021. 3
244
+ Michael Niemeyer, Lars Mescheder, Michael Oechsle, and Andreas Geiger. Differentiable volumetric rendering: Learning implicit 3d representations without 3d supervision. In CVPR, 2020. 3
245
+ Julian Ost, Fahim Mannan, Nils Thuerey, Julian Knodt, and Felix Heide. Neural scene graphs for dynamic scenes. In CVPR, 2021. 1, 3
246
+ Daniel Rebain, Wei Jiang, Soroosh Yazdani, Ke Li, Kwang Moo Yi, and Andrea Tagliasacchi. DeRF: Decomposed radiance fields. arXiv:2011.12490, 2020. 5
247
+ Christian Reiser, Songyou Peng, Yiyi Liao, and Andreas Geiger. Kilonerf: Speeding up neural radiance fields with thousands of tiny mlps. arXiv:2103.13744, 2021. 5
248
+ Michael Rubinstein, Armand Joulin, Johannes Kopf, and Ce Liu. Unsupervised joint object discovery and segmentation in internet images. In CVPR, 2013. 1, 2
249
+ Jose C Rubio, Joan Serrat, Antonio Lopez, and Nikos Paragios. Unsupervised co-segmentation through region ´ matching. In CVPR, 2012. 2
250
+ Bryan C Russell, William T Freeman, Alexei A Efros, Josef Sivic, and Andrew Zisserman. Using multiple segmentations to discover objects and their extent in image collections. In CVPR, 2006. 2
251
+ Katja Schwarz, Yiyi Liao, Michael Niemeyer, and Andreas Geiger. Graf: Generative radiance fields for 3d-aware image synthesis. arXiv:2007.02442, 2020. 3
252
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv:1409.1556, 2014. 14
253
+ Vincent Sitzmann, Michael Zollhofer, and Gordon Wetzstein. Scene representation networks: Continuous ¨ 3d-structure-aware neural scene representations. In NeurIPS, 2019. 3
254
+ Josef Sivic, Bryan C Russell, Alexei A Efros, Andrew Zisserman, and William T Freeman. Discovering objects and their location in images. In ICCV, 2005. 2
255
+ Josef Sivic, Bryan C Russell, Andrew Zisserman, William T Freeman, and Alexei A Efros. Unsupervised discovery of visual object class hierarchies. In CVPR, 2008. 2
256
+ Karl Stelzner, Kristian Kersting, and Adam R Kosiorek. Decomposing 3d scenes into objects via unsupervised volume segmentation. arXiv:2104.01148, 2021. 3
257
+ Maxim Tatarchenko, Stephan R Richter, Rene Ranftl, Zhuwen Li, Vladlen Koltun, and Thomas Brox. What do ´ single-view 3d reconstruction networks learn? In CVPR, 2019. 13
258
+ Ayush Tewari, Ohad Fried, Justus Thies, Vincent Sitzmann, Stephen Lombardi, Kalyan Sunkavalli, Ricardo Martin-Brualla, Tomas Simon, Jason Saragih, Matthias Nießner, et al. State of the art on neural rendering. CGF, 2020. 1, 3
259
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. arXiv:1706.03762, 2017. 4
260
+ Sara Vicente, Carsten Rother, and Vladimir Kolmogorov. Object cosegmentation. In CVPR, 2011. 2
261
+ Huy V Vo, Patrick Perez, and Jean Ponce. Toward unsupervised, multi-object discovery in large-scale image ´ collections. In ECCV, 2020. 2
262
+ Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: From error visibility to structural similarity. IEEE TIP, 2004. 7
263
+ Jiajun Wu, Joshua B Tenenbaum, and Pushmeet Kohli. Neural scene de-rendering. In CVPR, 2017. 3
264
+ Weihao Xia, Yulun Zhang, Yujiu Yang, Jing-Hao Xue, Bolei Zhou, and Ming-Hsuan Yang. Gan inversion: A survey. arXiv:2101.05278, 2021. 19
265
+ Shunyu Yao, Tzu Ming Harry Hsu, Jun-Yan Zhu, Jiajun Wu, Antonio Torralba, William T Freeman, and Joshua B Tenenbaum. 3d-aware scene manipulation via inverse graphics. arXiv:1808.09351, 2018. 1, 3
266
+ Alex Yu, Vickie Ye, Matthew Tancik, and Angjoo Kanazawa. Pixelnerf: Neural radiance fields from one or few images. arXiv:2012.02190, 2020. 3, 13
267
+ Alex Yu, Ruilong Li, Matthew Tancik, Hao Li, Ren Ng, and Angjoo Kanazawa. Plenoctrees for real-time rendering of neural radiance fields. arXiv:2103.14024, 2021. 5
268
+ Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, 2018. 7
269
+ Yi Zhou, Connelly Barnes, Jingwan Lu, Jimei Yang, and Hao Li. On the continuity of rotation representations in neural networks. In CVPR, 2019. 19
270
+ Jun-Yan Zhu, Jiajun Wu, Yichen Wei, Eric Chang, and Zhuowen Tu. Unsupervised object class discovery via saliency-guided multiple class learning. In CVPR, 2012. 1
271
+
272
+ # A SUPPLEMENTARY MATERIAL OVERVIEW
273
+
274
+ In the following supplementary document, we first provide implementation details on unsupervised discovery of Object Radiance Fields in Section B. We then describe details on datasets and baseline architectures in Section C. We show additional results in in Section D, including results on generalization to unseen object shapes, a demonstration on real photos, an analysis on the sensitivity to slot initialization, and additional qualitative results on all experiments of the main paper and failure cases. In Section E, we show comparison to GIRAFFE (Niemeyer & Geiger, 2020) to demonstrate that it focus on a fundamentally different problem (unconditional generation) than our work (conditional inference). All mathematical and algorithmic notations are the same as those in the main manuscript.
275
+
276
+ In the supplementary video, we provide an overview of our paper.
277
+
278
+ # B IMPLEMENTATION
279
+
280
+ Here, we provide implementation details of our uORF model.
281
+
282
+ B.1 OBJECT-CENTRIC LATENT INFERENCE
283
+
284
+ We show a pseudo code of inferring object-centric latents with the background-aware slot attention in Algorithm 1.
285
+
286
+ Convolutional feature extraction. The convolutional net extracts features from the input image for updating the latent slots. Our convolutional encoder is a simple U-net. We show our encoder architecture in Table 8 and Table 9. Since we want the model to generalize to decompose unseen images, it is natural to represent foreground objects position and pose in the viewer coordinate system. As identified in previous studies (Tatarchenko et al., 2019), this facilitates the learning of 3D object position and helps generalization. In order for the object-centric representations to include such information in the viewer coordinate system, we can inform the encoder of position information by feeding pixel coordinates and viewer-space ray directions as additional input channels. In our experiments we assume fixed camera focal length. In this case, the ray direction does not provide additional information to the pixel coordinates, and thus we only feed pixel coordinates as input channels in addition to the input RGB image. Each of the $X Y$ pixel coordinates is normalized to $[ - 1 , 1 ]$ in both directions, leading to 4 additional channels to RGB.
287
+
288
+ B.2 COORDINATE SPACE AND LOCALITY CONSTRAINT FOR BETTER FORE-/BACK-GROUND DISENTANGLEMENT
289
+
290
+ Coordinate space. We represent foreground objects in the viewer space. Regarding background environment, we represent it in the world coordinate space for two reasons. Firstly, since it is difficult to estimate full geometry from a single view (e.g., the geometry behind the camera), our model assumes a similar background geometry across scenes and aggregates information about background geometry from multiple sparse views. Representing background in a fixed world space facilitates this aggregation process and empirically leads to better performance. We show a quantitative comparison in Table 10, Table 11 and a visual comparison in Figure 7. Modeling the background in world space provides more details than modeling it in viewer space. Incorporating multi-view images as inference input might relax this assumption (Yu et al., 2020), but we leave it as future exploration.
291
+
292
+ Table 8: Encoder architecture for the CLEVR-567 dataset and the Room-Chair dataset. All convolutional kernel sizes are $3 \times 3$ . All activation functions for convolutional layers are ReLU.
293
+
294
+ <table><tr><td>Layer name</td><td>Input shape</td><td>Output shape</td><td>Stride</td><td>Note</td></tr><tr><td>Conv1</td><td>64×64×7</td><td>64×64×64</td><td>2</td><td>Skip to Conv6</td></tr><tr><td>Conv2</td><td>64×64×64</td><td>32×32×64</td><td>2</td><td>Skip to Conv5</td></tr><tr><td>Conv3</td><td>32×32×64</td><td>16×16×64</td><td>2</td><td></td></tr><tr><td>Conv4</td><td>16×16×64</td><td>16×16×64</td><td>1</td><td></td></tr><tr><td>Upsample</td><td>16×16×64</td><td>32×32×64</td><td></td><td>Bilinear upsampling</td></tr><tr><td>Conv5</td><td>32×32×128</td><td>32×32×64</td><td>1</td><td></td></tr><tr><td>Upsample</td><td>32×32×64</td><td>64×64×64</td><td></td><td>Bilinear upsampling</td></tr><tr><td>Conv6</td><td>64×64×128</td><td>64×64×64</td><td>1</td><td></td></tr></table>
295
+
296
+ Table 9: Encoder architecture for the Room-Diverse dataset. All convolutional kernel sizes are $3 \times 3$ . All activation functions for convolutional layers are ReLU.
297
+
298
+ <table><tr><td>Layer name</td><td>Input shape</td><td>Output shape</td><td>Stride</td><td>Note</td></tr><tr><td>ConvO</td><td>128×128×7</td><td>128×128×64</td><td>1</td><td></td></tr><tr><td>Conv1</td><td>128×128×64</td><td>64×64×64</td><td>2</td><td>Skip to Conv6</td></tr><tr><td>Conv2</td><td>64×64×64</td><td>32×32×64</td><td>2</td><td>Skip to Conv5</td></tr><tr><td>Conv3</td><td>32×32×64</td><td>16×16×64</td><td>2</td><td></td></tr><tr><td>Conv4</td><td>16×16×64</td><td>16×16×64</td><td>1</td><td></td></tr><tr><td>Upsample</td><td>16×16×64</td><td>32×32×64</td><td></td><td>Bilinear upsampling</td></tr><tr><td>Conv5</td><td>32×32×128</td><td>32×32×64</td><td>1</td><td></td></tr><tr><td>Upsample</td><td>32×32×64</td><td>64×64×64</td><td></td><td>Bilinear upsampling</td></tr><tr><td>Conv6</td><td>64×64×128</td><td>64×64×64</td><td>1</td><td></td></tr></table>
299
+
300
+ Secondly, this design also encourages the disentanglement between foreground objects and background by preventing the background slot from decoding foreground objects, because the positional information provided in the encoder is represented in viewer space.
301
+
302
+ Foreground locality. To further encourage the disentanglement, we add a locality constraint during early training to prevent foreground slots to represent the background environment. Specifically, considering that “foreground” objects should be largely visible in sight, we set a foreground box and enforce that every foreground-querying point outside the box has zero density. The foreground box is defined such that its projection in image space can engage roughly $9 0 \%$ pixels. The locality constraint is imposed for the first 100K iterations, and it empirically helps prevent the foreground slots from fitting the background. We show a visual comparison in Figure 8, which from we can observe that the model without foreground locality design attaches some background segments to each object.
303
+
304
+ # B.3 NEURAL RADIANCE FIELD ARCHITECTURE.
305
+
306
+ We show our conditional object radiance field architecture in Figure 9.
307
+
308
+ # B.4 MODEL LEARNING
309
+
310
+ Loss functions. We set $\lambda _ { \mathrm { p e r c e p t } } = 0 . 0 0 6$ , $\lambda _ { \mathrm { a d v } } = 0 . 0 1$ , $\lambda _ { R } = 1 0$ . For perceptual loss, we implement the feature extractor $p$ by using the output of the 4-th convolutional block in a VGG16 (Simonyan & Zisserman, 2014) pretrained on ImageNet. For the adversarial discriminator, we follow the architecture of StyleGAN2 (Karras et al., 2020) with slight modification such that the maximum channel number is 128. We also use the lazy R1 regularization (Karras et al., 2020). We use Adam optimizer for discriminator with learning rate 0.001, $\beta _ { 1 } = 0$ and $\beta _ { 2 } = 0 . 9$ . The adversarial loss is incorporated after 100K iterations. Since shape uncertainty only appears in the Room-Diverse
311
+
312
+ # Algorithm 1: Object-centric latent inference with background-aware slot attention.
313
+
314
+ Input: feat ∈ RN×D
315
+ Learnable: $\mu ^ { b } , \sigma ^ { b } , \mu ^ { f } , \sigma ^ { f }$ : prior parameters, $k , q ^ { b } , q ^ { f } , v ^ { b } , v ^ { f }$ : linear mappings, GRUb, GRUf , MLPb, MLPf slotb ∼ N b ∈ R1×D // Sampling slots from priors. slotsf ∼ N f ∈ RK×D for t = 1, · · · , T slot prevb = slotb, slots prevf = slotsf attn = Softmax √D 1 k(feat) · qb(slotb)f f T , dim=‘slot’! // Binding slots to object features. attn $^ b =$ attn[0], attnf = attn[1:end] updates $^ { b } =$ WeightedMean(weights=attnb, values $= \boldsymbol { v } ^ { b }$ (inputs)) // Aggregating update signals. updates $f _ { = }$ WeightedMean(weights=attnf , values $\scriptstyle \operatorname { \mathsf { \Omega } } _ { 3 } = v ^ { f }$ (inputs)) slot ${ \ v O } ^ { b } = \mathtt { G R U } ^ { b }$ (state=slot prevb, inputs=updatesb) // Updating slots. slotsf = GRUf (state slots prevf , inputs=updatesf ) $\mathsf { s } \mathsf { l o t } ^ { b } + = \mathsf { M L P } ^ { b } ( \mathsf { s } \mathsf { l o t } ^ { b } )$ , slotsf + = MLPf (slotsf ) // Residual update. return slotb, slotsf
316
+
317
+ Table 10: Ablation for background coordinate space on novel view synthesis on Room-Chair dataset.
318
+
319
+ <table><tr><td>Models</td><td>LPIPS↓</td><td>SSIM↑</td><td>PSNR↑</td></tr><tr><td>uORF w/ view-space Backg.</td><td>0.151</td><td>0.799</td><td>27.86</td></tr><tr><td>uORF (ours)</td><td>0.082</td><td>0.872</td><td>29.60</td></tr></table>
320
+
321
+ Table 11: Ablation for background coordinate space on segmentation on Room-Chair dataset.
322
+
323
+ <table><tr><td rowspan="2">Models</td><td>3D metric</td><td colspan="2">2D metric</td></tr><tr><td>NV-ARI↑</td><td>ARI个</td><td>Fg-ARI个</td></tr><tr><td>uORF w/ view-space Backg.</td><td>73.5</td><td>78.0</td><td>89.0</td></tr><tr><td>uORF (ours)</td><td>74.3</td><td>78.8</td><td>88.8</td></tr></table>
324
+
325
+ dataset, we only impose the adversarial loss on the Room-Diverse dataset but not on CLEVR-567 or Room-Chair. Both perceptual loss and adversarial loss are added after the first 100K iterations.
326
+
327
+ Coarse-to-fine progressive training. For coarse training, we bilinearly downsample supervision images to $6 4 \times 6 4$ . The coarse training lasts for 600K iterations. For fine training, we randomly crop $6 4 \times 6 4$ patches from $1 2 8 \times 1 2 8$ images. The fine training lasts for 600K iterations. Our model is trained on a single Nvidia RTX 3090 GPU for about 6 days. For all networks except discriminator, we use Adam optimizer with learning rate 0.0003, $\beta _ { 1 } = 0 . 9$ and $\beta _ { 2 } ~ = ~ 0 . 9 9 9$ . Learning rate is exponentially decreased by half for every 200K iterations until after 600K iterations. We also adopt the learning rate warm-up from the slot attention paper (Locatello et al., 2020) for the first 1K iterations. We initialize decoder networks with Xavier’s initialization. In each batch, we input one image and neurally render 4 images for supervision. We render each pixel with 64 samples.
328
+
329
+ # C EXPERIMENTS
330
+
331
+ In this section we provide further details on experiment settings.
332
+
333
+ # C.1 DATA
334
+
335
+ For the construction of all three datasets, the training/testing sets share the same pool of textures, shapes, and colors. The scenes in both sets differ in the spatial arrangement of objects, as well as the appearance differences induced by soft shadows and inter-reflections due to global illumination effects.
336
+
337
+ CLEVR-567. In the CLEVR-567 dataset, each object’s shape is randomly chosen from three geometric primitives (i.e., cylinder, cube and sphere). The color is randomly chosen from {red, blue, purple, gray, cyan, yellow, green, brown}. There are two possible sizes for each object. When rendering images, we use the same camera intrinsic as original CLEVR dataset (Johnson et al., 2017). We do not use the visibility check due to our 360 degree multi-view setting, so we increase elevation angle by $\pi / 1 5$ to increase the chance of object visibility. Rendering setting is the same for all datasets.
338
+
339
+ For CLEVR-567 dataset we set the latent dimension $D = 4 0$ and the maximum number of objects $K = 8$ .
340
+
341
+ ![](images/86827f15238e9fd22616cf13abe4aa97a44a41899cbda2d6a55ff8ca68513a13.jpg)
342
+ Figure 7: Visual comparison for representing background on view-space on novel view synthesis.
343
+
344
+ ![](images/d4b9384222b30c14917df03f0898acd42366ba5482f07c370cfbd81fe1b4c4a6.jpg)
345
+ Figure 8: Visual comparison on ablation for foreground locality constraint. We show examples in CLEVR-567 testset. We can see that our foreground locality box helps prevent object slots from fitting background segments.
346
+
347
+ Room-Chair. For the object shape we use a chair model‡ from ShapeNet (Chang et al., 2015). We use the same material and colors as CLEVR-567. For Room-Chair and Room-Diverse datasets, we set the latent dimension $D = 6 4$ and the maximum number of objects $K = 5$ .
348
+
349
+ Room-Diverse. All object shapes are randomly chosen from 1,200 ShapeNet chairs. For each shape, we normalize it into a unit cube according to vertex coordinates. We also use 8 colors $\{ { \tt r e d }$ , blue, purple, gray, cyan, yellow, green, $\mathtt { b l a c k } \}$ with diffuse material. Since shape uncertainty only appears in this dataset, we only impose the adversarial loss on this dataset.
350
+
351
+ # C.2 BASELINE ARCHITECTURES
352
+
353
+ Slot attention. We use the encoder-decoder architecture in the slot attention paper (Locatello et al., 2020) used for object discovery experiments on the CLEVR dataset. Basically it has 6 convolutional layers for encoder and 6 convolution-transpose layers for decoder. The number of channels for each layer is 64. All models are trained on $1 2 8 \times 1 2 8$ images.
354
+
355
+ NeRF-AE. We follow NeRF implementation without view direction as input and set the highest frequency to 5. The encoder is similar to ours in Figure 9, but the basic number of channels is increased from 64 to 256 (and thus the number of channels of inputs to Conv5 and Conv6 is 512). The number of slot is set to 1.
356
+
357
+ # D ADDITIONAL RESULTS
358
+
359
+ Generalization to unseen objects. In the main paper we demonstrate systematic generalization to unseen combination of shape and color, here we further validate our model’s generalization to unseen object shapes. To this end, we construct another test set for Room-Diverse. All test objects in the new test set are drawn from a pool of 500 shapenet chairs that are completely disjoint from the 1200 training chairs. All other settings are the same as the original test set. We show quantitative results in Table 12 for novel view synthesis and in Table 13 for segmentation. As we can see, our model yields the same level of performances even on the unseen shape test set, suggesting its generalization to unseen object shapes.
360
+
361
+ ![](images/ce1a42408946a0969581380d8e3057950c3abdf0f8bbe5b0bf72ac5204eb2412.jpg)
362
+ Figure 9: Illustration for foreground decoder architecture. We follow the architecture in NeRF (Mildenhall et al., 2020) but with fewer parameters to decrease space demand. We set the highest positional embedding frequency to 5, so that the positional embedding input dimension is $5 \times 2 \times 3 + \mathbf { \breve { 3 } } = 3 3$ . The background decoder is slightly different in that it does not have the second last layer and third last layer. Density $\sigma$ is activated by ReLU. Since estimating specularity from a single image is intrinsically ambiguous, we assume Lambertian surfaces and do not use the ray direction as input.
363
+
364
+ Table 12: Novel view synthesis results on unseen/seen shape testset of Room-Diverse.
365
+
366
+ <table><tr><td>Models</td><td>LPIPS↓</td><td>SSIM↑</td><td>PSNR↑</td></tr><tr><td>uORF on seen shape testset</td><td>0.1729</td><td>0.7094</td><td>25.96</td></tr><tr><td>uORF on unseen shape testset</td><td>0.1771</td><td>0.7125</td><td>26.16</td></tr></table>
367
+
368
+ Table 13: Unsupervised segmentation in 3D results on unseen/seen shape testset of Room-Diverse.
369
+
370
+ <table><tr><td rowspan="2">Models</td><td>3D metric</td><td colspan="2">2D metric</td></tr><tr><td>NV-ARI↑</td><td>ARI个</td><td>Fg-ARI↑</td></tr><tr><td>uORF on seen shape testset</td><td>56.9</td><td>65.6</td><td>67.9</td></tr><tr><td>uORF on unseen shape testset</td><td>57.0</td><td>66.1</td><td>67.7</td></tr></table>
371
+
372
+ Generalization to real images. We also take a step further to test our pretrained model’s generalization on real photos. To do this, we use uORF trained on Room-Diverse. We take a few real photos by a cellphone, providing an input image and a few reference images. We show the visual results in Figure 10. Although the real photo has a different imaging process and consists of unseen objects and background, uORF is able to discover all objects with roughly correct positions and orientations, yielding plausible segmentation results and object-moving results.
373
+
374
+ Analysis on the sensitivity to slot initialization. We test the robustness of our model to the slot initialization on the Room-Chair dataset. For each test scene, we now use 5 different random seeds for sampling initial centers. We compute the mean $\mu$ and std $\sigma$ of ARI over the 5 seeds. We average them over the 500 test scenes. The averaged mean $\bar { \mu }$ of ARI is $7 8 . 8 \%$ and $\bar { \sigma }$ is $1 . 7 \%$ . The mean ARI suggests good segmentation results (very close to $7 8 . 8 \%$ as reported in Table 2 in our main paper), and $\bar { \sigma } = 1 . 7 \%$ indicates that different seeds all lead to results close to such good ARI performance.
375
+
376
+ Additional qualitative results. We show additional qualitative results for our experiments in the main manuscript. We show additional examples for scene segmentation in Figure 11 and Figure 12, for novel view synthesis in Figure 13, Figure 14 and Figure 15, for scene editing in Figure 16 and Figure 17, for evaluating losses in Figure 18, for generalization to challenging spatial arrangement in Figure 19 (note that in the packed-CLEVR-11 dataset we only use a single size for higher object visibility), and for generalization to unseen object appearance in Figure 20.
377
+
378
+ Failure case. In our experiments, we observed a type of failure which we call “attention rankcollapse”. We show examples in Figure 21.
379
+
380
+ ![](images/10704020334297855d27e977f22568e81b87c24a9887ad3cc58086fc89b6e228.jpg)
381
+ Figure 10: Demonstration on generalization to real photos. We use uORF pretrained on Room-Diverse and take photos by a cellphone.
382
+
383
+ “Attention rank-collapse” refers to that all the foreground object slots have (nearly) the same attention map and collapse to the same representation. Each collapsed slot decodes simply nothing (or all the foreground objects). This “attention rank-collapse” happens when the initialization is prompt to a degenerate solution for the slot attention. It occasionally happens and empirically changing the initialization seed can address it. A related rank-collapse problem is discussed in Dong et al. (2021), which suggests that adding some architectural inductive bias can largely alleviate the problem. We hope future research can address this problem fundamentally.
384
+
385
+ # E COMPARISON TO GIRAFFE
386
+
387
+ Our work has a fundamentally different focus compared to GIRAFFE (Niemeyer & Geiger, 2020). While GIRAFFE focuses on unconditional generation and enables multi-object scene synthesis and rendering, the goal of our uORF is to simultaneously infer 3D multi-object scene representations from a single image, in addition to using those representations for rendering and editing as in GIRAFFE.
388
+
389
+ # E.1 COMPARISONS BETWEEN OUR UORF AND GIRAFFE
390
+
391
+ To demonstrate that the inference of such multi-object scenes is highly non-trivial, we compare with GIRAFFE on both CLEVR-567 and Room-Chair (we cannot compare on their datasets because they only have a single image for each scene). To train GIRAFFE on our datasets, we use the official repo§ and the same hyper-parameters that GIRAFFE authors used for their CLEVR-2345 dataset, except for a few adaptive changes to our datasets: (1) We try different sizes for the object slot, because CLEVR-2345 only uses small objects while our datasets both contain larger objects. Specifically, we try $2 \times$ , $1 . 5 \times$ , and $1 \times$ original size, and use the one with the lowest FID for each dataset. (2) We adjust the camera elevation angle and focal lengths to match our datasets. (3) We set the number of objects to 4 for the Room-Chair dataset because each scene has no more than 4 chairs. We train the GIRAFFE models for around 500K iterations on 128-by-128 images, such that FID does not drop anymore.
392
+
393
+ For GIRAFFE to do inference, we sample object (including background) latents and positions in the same manner as training, and then we optimize for L2 reconstruction loss for both the latents and the positions. We use Adam and do a learning rate sweep to select the one that leads to the best reconstruction loss. We divide the learning rate by 10 when the loss plateaus. We do this learning rate decay twice. We sweep in $\{ 0 . 1 , 0 . 0 1 , 0 . 0 0 1 , 0 . 0 0 0 1 \}$ and find that 0.01 works best. Since each scene has an unknown number of objects, we set the number to the maximum number across all scenes. It converges at around 150 iterations on CLEVR-567 and around 300 iterations on Room-Chair. Thus we set the maximum iteration to 300 and 500 for them, respectively.
394
+
395
+ We also compare with a GIRAFFE model that is pretrained on CLEVR-2345. The pretrained model is provided by the authors. The pretrained model yields $\mathrm { F I D = 8 2 }$ on CLEVR-567 $\mathrm { { F I D } = 6 1 }$ on CLEVR-2345), indicating that it could be a valid baseline even though the two datasets are mildly different.
396
+
397
+ We show input-view reconstruction and novel view synthesis results in Table 14 and Table 15, and we show qualitative comparison in Figure 22 and Figure 23. We can see that GIRAFFE fails in reconstructing the multi-object scenes from a single image, as well as novel view synthesis. Let alone segmentation in 3D.
398
+
399
+ Table 14: Inference comparison with GIRAFFE on CLEVR-567.
400
+
401
+ <table><tr><td rowspan="2">Models</td><td colspan="3">Input view reconstruction</td><td colspan="3">Novel view synthesis</td></tr><tr><td>LPIPS↓</td><td>SSIM↑</td><td>PSNR↑</td><td>LPIPS↓</td><td>SSIM↑</td><td>PSNR↑</td></tr><tr><td>GIRAFFE (trained on CLEVR-567)</td><td>0.330</td><td>0.815</td><td>23.75</td><td>0.549</td><td>0.672</td><td>16.65</td></tr><tr><td>GIRAFFE (author-pretrained model on CLEVR-2345)</td><td>0.382</td><td>0.780</td><td>21.76</td><td>0.643</td><td>0.348</td><td>11.70</td></tr><tr><td>uORF (ours)</td><td>0.085</td><td>0.901</td><td>29.33</td><td>0.086</td><td>0.897</td><td>29.28</td></tr></table>
402
+
403
+ Table 15: Inference comparison with GIRAFFE on Room-Chair.
404
+
405
+ <table><tr><td rowspan="3">Models</td><td colspan="3">Input view reconstruction</td><td colspan="3">Novel view synthesis</td></tr><tr><td>LPIPS↓</td><td>SSIM↑</td><td>PSNR↑</td><td>LPIPS↓</td><td>SSIM↑</td><td>PSNR↑</td></tr><tr><td rowspan="2">GIRAFFE (trained on Room-Chair) uORF (ours)</td><td>0.414</td><td>0.597</td><td>20.90</td><td>0.588</td><td>0.538</td><td>18.53</td></tr><tr><td>0.085</td><td>0.876</td><td>29.65</td><td>0.082</td><td>0.872</td><td>29.60</td></tr></table>
406
+
407
+ # E.2 GIRAFFE INFERENCE ON CLEVR-2345
408
+
409
+ While we have compared with GIRAFFE on our datasets, we further evaluate the author-provided pretrained model on the simpler dataset CLEVR-2345 from the GIRAFFE paper itself. We found that while GIRAFFE does well on unconditional scene synthesis, it cannot perform novel view synthesis on their own dataset, either. This shows that GIRAFFE focuses on problems very different from ours.
410
+
411
+ We first show that inference/reconstruction is challenging for GIRAFFE, even on the simpler dataset. We do inference on the author-provided CLEVR-2345 dataset using the author-provided pretrained model. We show randomly sampled examples through the iterative inference process in Figure 24.
412
+
413
+ Then we show that GIRAFFE fails in wide-baseline novel view synthesis. We use the author-provided pretrained model to sample from its latent space and unconditionally generate one image. Then we keep all the variables the same, but circularly move cameras to render novel views. We show 10 random examples of this circular novel view synthesis in Figure 25. We see that when the viewpoint changes become significant, GIRAFFE fails novel view synthesis, because its neural renderer is based on 2D feature maps and it’s not inherently 3D.
414
+
415
+ # E.3 DISCUSSION AND SUMMARY
416
+
417
+ In general, inverting GAN latent space even for the holistic image is non-trivial and needs architecturalspecific designs (we refer the reader to the discussion and references in a recent survey on GAN inversion (Xia et al., 2021)). As for inverting compositional multi-object scenes, it becomes even harder due to ambiguous correspondences (“which slot corresponds to which object?”), number of objects (“how many slots should I put?”), object position constraints (“there are two objects overlapping in the image, but they should not be overlapping in 3D”), optimization issues (e.g., optimizing rotation is notoriously difficult (Zhou et al., 2019)), etc.
418
+
419
+ In summary, it is highly non-trivial for GIRAFFE to do inference for multi-object scenes due to complexities such as ambiguous correspondences, the number of objects, and optimization issues. We will include more discussions on the difference between the two methods in the following separate thread. In short, our uORF tries to solve a fundamentally different problem from GIRAFFE, i.e., we aim at inferring the joint distribution of objects from a single image while GIRAFFE targets extrinsiccontrollable image generation. Therefore, our method enables novel tasks such as unsupervised segmentation and editing in 3D, where prior methods including GIRAFFE are not able to do.
420
+
421
+ ![](images/19bf08acd7353a7c9385d698a984b8b5c0759f03d3b1774d2225a741527fd8c1.jpg)
422
+ Figure 11: Additional qualitative results for segmentation in 3D on Room-Chair dataset.
423
+
424
+ ![](images/bd2a4d2ae18efdcb9369f41480871a7b72686149f57cfe0d080cceb138a3634d.jpg)
425
+ Figure 12: Additional qualitative results for segmentation in 3D on Room-Diverse dataset.
426
+
427
+ ![](images/7f11f0075116b24fa763ba70d24eb0da2a808b01a2aae55d6cedd47fd586ebc5.jpg)
428
+ Figure 13: Additional qualitative results for novel view synthesis on CLEVR-567 dataset.
429
+
430
+ ![](images/6732c3707108a7215523aa0aab2d594d084b80d65f3caf91d949fd239674a93f.jpg)
431
+ Figure 14: Additional qualitative results for novel view synthesis on Room-Chair dataset.
432
+
433
+ ![](images/0bd7e49728394bdea1ceedd8afe5868ee007f1eabcad44e04453c24b860ce8c8.jpg)
434
+ Figure 15: Additional qualitative results for novel view synthesis on Room-Diverse dataset.
435
+
436
+ ![](images/f72aaf5006162684a910793f433975c574de0f5bce37b5bd1b11a3d274d2f6b1.jpg)
437
+ Figure 16: Additional qualitative results for scene editing.
438
+
439
+ ![](images/4c8330edf5fb11a16f63770f6848eebfb9cb033975419fc998c5c2edf839e70c.jpg)
440
+ Figure 17: Additional qualitative results for scene editing.
441
+
442
+ ![](images/8dd48691313a75ab7bef33e0d771bf027b1f5e311f6c683f28eeceb5fd80e85f.jpg)
443
+ Figure 18: Qualitative results for loss evaluations. Using both perceptual loss and adversarial loss improves image quality.
444
+
445
+ ![](images/77c2ae606c705e289945f2d9b7f4b938d53ac98fd76b919265110f2c5a04c0ca.jpg)
446
+ Figure 19: Qualitative results for generalization to unseen spatial arrangement.
447
+
448
+ ![](images/4ce7657ad278b85ed9b36f70f6db2402cc7e50a8dec2652cc73fcba81755eed1.jpg)
449
+ Figure 20: Qualitative results for generalization to unseen combination of color and shape.
450
+
451
+ ![](images/cf07e024fed74d4886761556aa25aae43b9209aa30b4c6c92d86a8797cd5c5ed.jpg)
452
+ Figure 21: Failure case of our model, which we call “attention rank-collapse”. All foreground slots share the same attention map. Every foreground slot decodes to the same radiance field (empty radiance here) rather than specializing to an object. Here we only show one object slot, as all others look the same.
453
+
454
+ ![](images/57181a60bae40d182b210a94ce21422bc1d3b9329328919ce329da14a2593641.jpg)
455
+ Figure 22: Visual comparison with GIRAFFE for inference on CLEVR-567 dataset. GIRAFFE fails inference.
456
+
457
+ ![](images/2446417d4976de23655f3793d84d6e65c2457b1d8431a89c2c0ab594542cd5c5.jpg)
458
+ Figure 23: Visual comparison with GIRAFFE for inference on Room-Chair dataset. GIRAFFE fails inference.
459
+
460
+ ![](images/9ae9b21e90622cea96eb2a94ea8b22a4e1278f91ddada0da20d98cb5b82c6c52.jpg)
461
+ Figure 24: Inference trajectory of GIRAFFE using author-provided models on the author-provided dataset CLEVR-2345.
462
+
463
+ ![](images/fa168c3931e2e67cb5b01ebf98eafa9f0a78ab3e23515eb651e8fcf4a3d3f352.jpg)
464
+ Figure 25: Novel view synthesis on randomly generated examples using author-provided pretrained GIRAFFE model on CLEVR-2345. GIRAFFE fails inference of these multi-object scenes. GIRAFFE cannot synthesize novel views with large rotations.
parse/dev/rwE8SshAlxw/rwE8SshAlxw_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/rwE8SshAlxw/rwE8SshAlxw_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/rwE8SshAlxw/rwE8SshAlxw_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/tGHi1HFNBx1/tGHi1HFNBx1.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/tGHi1HFNBx1/tGHi1HFNBx1_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/tGHi1HFNBx1/tGHi1HFNBx1_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/tGHi1HFNBx1/tGHi1HFNBx1_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/voV_TRqcWh/voV_TRqcWh.md ADDED
@@ -0,0 +1,299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Poisson Flow Generative Models
2
+
3
+ Yilun Xu∗ , Ziming Liu∗ , Max Tegmark, Tommi Jaakkola Massachusetts Institute of Technology ylxu, zmliu, tegmark @mit.edu; tommi@csail.mit.edu
4
+
5
+ # Abstract
6
+
7
+ We propose a new “Poisson flow” generative model (PFGM) that maps a uniform distribution on a high-dimensional hemisphere into any data distribution. We interpret the data points as electrical charges on the $z = 0$ hyperplane in a space augmented with an additional dimension $z$ , generating a high-dimensional electric field (the gradient of the solution to Poisson equation). We prove that if these charges flow upward along electric field lines, their initial distribution in the $z \ = \ 0$ plane transforms into a distribution on the hemisphere of radius $r$ that becomes uniform in the $r \infty$ limit. To learn the bijective transformation, we estimate the normalized field in the augmented space. For sampling, we devise a backward ODE that is anchored by the physically meaningful additional dimension: the samples hit the (unaugmented) data manifold when the $z$ reaches zero. Experimentally, PFGM achieves current state-of-the-art performance among the normalizing flow models on CIFAR-10, with an Inception score of 9.68 and a FID score of 2.35. It also performs on par with the state-of-the-art SDE approaches while offering $1 0 \times$ to $2 0 \times$ acceleration on image generation tasks. Additionally, PFGM appears more tolerant of estimation errors on a weaker network architecture and robust to the step size in the Euler method. The code is available at https: //github.com/Newbeeer/poisson_flow.
8
+
9
+ # 1 Introduction
10
+
11
+ Deep generative models are a prominent approach for data generation, and have been used to produce high quality samples in image [1], text [2] and audio [35], as well as improve semi-supervised learning [20], domain generalization [25] and imitation learning [15]. However, current deep generative models also have limitations, such as unstable training objectives (GANs [1, 12, 17]) and low sample quality (VAEs [21], normalizing flows [6]). New techniques [12, 24] are introduced to stablize the training of CNN-based or ViT-based GAN models. Although recent advances on diffusion [16] and scored-based models [33] achieve comparable sample quality to GAN’s without adversarial training, these models have a slow stochastic sampling process. [33] proposes backward ODE samplers (normalizing flow) that speed up the sampling process but these methods have not yet performed on par with the SDE counterparts.
12
+
13
+ We present a new “Poisson flow” generative model (PFGM), exploiting a remarkable physics fact that generalizes to $N$ dimensions. As illustrated in Fig. 1(a), motion in a viscous fluid transforms any planar charge distribution into a uniform angular distribution. Specifically, we interpret $N$ - dimensional data points $\mathbf { x }$ (images, say) as positive electric charges in the $z \ = \ 0$ plane of an $N + 1$ -dimensional space (see Fig. 1(a)) filled with a viscous liquid (say honey). A positive charge with $z > 0$ will be repelled by the other charges and move in the direction of their repulsive force, eventually crossing an imaginary hemisphere of radius $r$ . We show that, remarkably, if the the original charge distribution is let loose just above $z = 0$ , this law of motion will cause a uniform distribution for their hemisphere crossings in the $r \infty$ limit.
14
+
15
+ ![](images/54726ebf34e46087bef020e3ddcf1a0c1fce7fffed017e15273765115d92e791.jpg)
16
+ Figure 1: (a) 3D Poisson field trajectories for a heart-shaped distribution (b) The evolvements of a distribution (top) or an (augmented) sample (bottom) by the forward/backward ODEs pertained to the Poisson field.
17
+
18
+ Our Poisson flow generative process reverses the forward process: we generate a uniform distribution of negative charges on the hemisphere, then track their motion back to the $z = 0$ plane, where they will be distributed as the data distribution. A Poisson flow can be viewed as a type of continuous normalizing flows [4, 10, 33] in the sense that it continuously maps between an arbitrary distribution and an easily sampled one: in the previous works an $N$ -dimensional Gaussian and in PFGM a uniform distribution on an $N$ -dimensional hemisphere. In practice, we implement the Poisson flow by solving a pair of forward/backward ordinary differential equations (ODEs) induced by the electric field (Fig. 1(b)) given by the $N$ -dimensional version of Coulomb’s law (the gradient of the solution to the Poisson’s equation with the data as sources). We will interchangeably refer to this gradient as the Poisson field, since electric fields normally refer to the special case $N = 3$ .
19
+
20
+ The proposed generative model PFGM has a stable training objective and empirically outperforms previously state-of-the-art continuous flow methods [30, 33]. As a different iterative method, PFGM offers two advantages compared to score-based methods [32, 33]. First, the ODE process of PFGM achieves faster sampling speeds than the SDE samplers in [33]. while retaining comparable performance. Second, our backward ODE exhibits better generation performance than the reverse-time ODEs of VE/VP/sub-VP SDEs [33], as well as greater stability on a weaker architecture NSCNv2 [32]. The rationale for robustness is that the time variables in these ODE baselines are strongly correlated with the sample norms during training time, resulting in a less error-tolerant inference. In contrast, the tie between the anchored variable and the sample norm in PFGM is much weaker.
21
+
22
+ Experimentally, we show that PFGM achieves current state-of-the-art performance on CIFAR-10 dataset in the normalizing flow family, with FID/Inception scores of $2 . { \bar { 4 } } 8 / 9 . 6 5$ (w/ $\mathrm { { D D P M + + } }$ [33]) and $2 . 3 5 / 9 . 6 8$ (w/ $\mathrm { { D D P M + + } }$ deep [33]). It performs competitively with current state-of-the-art SDE samplers [33] and provides $1 0 \times$ to $2 0 \times$ speed up across datasets. Notably, the backward ODE in PFGM is the only ODE-based sampler that can produce decent samples on its own on NCSNv2 [32], while other ODE baselines fail without corrections. In addition, PFGM demonstrates the robustness to the step size in the Euler method, with a varying number of function evaluations (NFE) ranging from 10 to 100. We further showcase the utility of the invertible forward/backward ODEs of the Poisson field on likelihood evaluation and image manipulations, and its scalability to higher resolution images on LSUN bedroom $2 5 6 \times 2 5 6$ dataset.
23
+
24
+ # 2 Background and Related works
25
+
26
+ Poisson equation Let $\mathbf { x } \in \mathbb { R } ^ { N }$ and $\rho ( \mathbf { x } ) : \mathbb { R } ^ { N } \mathbb { R }$ be a source function. We assume that the source function has a compact support, $\rho \in \mathcal { C } ^ { 0 }$ and $N \geq 3$ . The Poisson equation is
27
+
28
+ $$
29
+ \nabla ^ { 2 } \varphi ( \mathbf { x } ) = - \rho ( \mathbf { x } ) ,
30
+ $$
31
+
32
+ where $\varphi ( \mathbf { x } ) : \mathbb { R } ^ { N } \mathbb { R }$ is called the potential function, and $\begin{array} { r } { \bigtriangledown ^ { 2 } \equiv \sum _ { i = 1 } ^ { N } \frac { \partial ^ { 2 } } { \partial x _ { i } ^ { 2 } } } \end{array}$ is the Laplacian operator. It is usually helpful to define the gradient field $\mathbf { E } ( \mathbf { x } ) = - \nabla \varphi ( \mathbf { x } )$ and rewrite the Poisson equation as $\nabla \cdot \mathbf { E } = \rho$ , known in physics as Gauss’s law [11]. The Poisson equation is widely used in physics, giving rise to Newton’s gravitational theory [9] and the electrostatic theory [11], when $\rho ( \mathbf { x } )$ is interpreted as mass density or electric charge density, respectively. $\mathbf { E }$ is the $N$ -dimensional analog of the electric field. The Poisson equation Eq. (1) (with zero boundary condition at infinity) admits a unique simple integral solution 2:
33
+
34
+ $$
35
+ \varphi ( \mathbf { x } ) = \int G ( \mathbf { x } , \mathbf { y } ) \rho ( \mathbf { y } ) d \mathbf { y } , \quad G ( \mathbf { x } , \mathbf { y } ) = \frac { 1 } { ( N - 2 ) S _ { N - 1 } ( 1 ) } \frac { 1 } { | | \mathbf { x } - \mathbf { y } | | ^ { N - 2 } } ,
36
+ $$
37
+
38
+ where $S _ { N - 1 } ( 1 )$ is a geometric constant representing the surface area of the unit $( N - 1 )$ -sphere 3, and $G ( \mathbf { x } , \mathbf { y } )$ is the extension of Green’s function in $N$ -dimensional space (details in Appendix A.3). The negative gradient field of $\varphi ( \mathbf x )$ , referred as Poisson field of the source $\rho$ , is
39
+
40
+ $$
41
+ \mathbf { E } ( \mathbf { x } ) = - \nabla \varphi ( \mathbf { x } ) = - \int \nabla _ { \mathbf { x } } G ( \mathbf { x } , \mathbf { y } ) \rho ( \mathbf { y } ) d \mathbf { y } , \quad \nabla _ { \mathbf { x } } G ( \mathbf { x } , \mathbf { y } ) = - \frac { 1 } { S _ { N - 1 } ( 1 ) } \frac { \mathbf { x } - \mathbf { y } } { \left\| \mathbf { x } - \mathbf { y } \right\| ^ { N } } .
42
+ $$
43
+
44
+ Qualitatively, the Poisson field $\mathbf { E } ( \mathbf { x } )$ points away from sources, or equivalently $- \mathbf { E } ( \mathbf { x } )$ points towards sources, as illustrated in Fig. 1. It is straightforward to check that when $\rho ( { \bf x } ) \delta ( { \bf x - y } )$ , we get $\varphi ( \mathbf x ) G ( \mathbf x , \mathbf y )$ and $\mathbf { E } ( \mathbf { x } ) - \nabla _ { \mathbf { x } } G ( \mathbf { x } , \mathbf { y } )$ . This implies that $G ( \mathbf { x } , \mathbf { y } )$ and $- \nabla _ { \mathbf { x } } G ( \mathbf { x } , \mathbf { y } )$ can be interpreted as the potential function and the gradient field generated by a unit point source, e.g., a point charge, located at $\mathbf { y }$ . When $\rho ( \mathbf { x } )$ takes general forms but has bounded support, simple asymptotics exist for $\left\| \mathbf { x } \right\| \gg \left\| \mathbf { y } \right\|$ . To the lowest order, $\mathbf { E ( x ) } = \nabla _ { \mathbf { x } } G ( \mathbf { x } , \mathbf { y } ) | _ { \mathbf { y } = \mathbf { 0 } } \sim \mathbf { x } / \| \mathbf { x } \| ^ { N }$ behaves as if it were generated by a unit point source at $\mathbf y = 0$ . In physics, the power law decay is considered to be long-range (compared to exponential decay) [11].
45
+
46
+ Particle dynamics in a Poisson field The Poisson field immediately defines a flow model, where the probability distribution evolves according to the gradient flow $\partial p _ { t } ( \mathbf { x } ) / \partial t = - \nabla \cdot ( p _ { t } ( \mathbf { x } ) \mathbf { E } ( \mathbf { x } ) )$ . The gradient flow is a special case of the Fokker-Planck equation [28], where the diffusion coefficient is zero. Intuitively we can think of $p _ { t } ( \mathbf { x } )$ as represented by a population of particles. The corresponding (non-diffusion) case of the Ito process is the forward ODE ˆ $\begin{array} { r } { \frac { d \mathbf { x } } { d t } \ = \ \mathbf { E } ( \mathbf { x } ) } \end{array}$ . We can interpret the trajectories of the ODE as particles moving according to the Poisson field $\mathbf { E } ( x )$ , with initial states drawn from $p _ { 0 }$ . The physical picture of the forward ODE is a charged particle under the influence of electric fields in the overdamped limit (details in Appendix F).
47
+
48
+ The dynamics is also rescalable in the sense that the particle trajectory remains the same for $\pm f ( \mathbf { x } ) \mathbf { E } ( \mathbf { x } )$ for $f ( \mathbf { x } ) > 0 , f ( \mathbf { x } ) \in \mathcal { C } ^ { 1 }$ , because the time rescaling $d t \to f ( \mathbf { x } ( t ) ) d t$ recovers $\begin{array} { r } { \frac { d \mathbf { x } } { d t } \ = } \end{array}$ $\begin{array} { r } { \frac { d { \mathbf { x } } } { d t } = } \end{array}$ $\pm \mathbf { E } ( \mathbf { x } )$ . Note that the dynamics is stiff due to the power law factor in the denominator in Eq. (3), posing computational challenges. Luckily the rescalablility allows us to rescale $\mathbf { E } ( \mathbf { x } )$ properly to get new ODEs (formally defined later in Section 3.3) that are more amenable for sampling.
49
+
50
+ Generative Modeling via ODE Generative modeling can be done by transforming a base distribution to a data distribution via mappings defined by ODEs. The ODE-based samplers allow for adaptive sampling, exact likelihood evaluation and modeling of continuous-time dynamics [4, 33]. Previous works broadly fall into two lines. [4, 3] introduce a continuous-time normalizing flow model that can be trained with maximum likelihood by the instantaneous change-of-variables formula [4]. For sampling, they directly integrate the learned invertiable mapping over time. Another work [33] unifies the scored-based model [31, 32] and diffusion model [16] into a general diffusion process, and uses the reverse-time ODE of the diffusion process for sampling. They show that the reverse-time ODE produces high quality samples with improved architecture.
51
+
52
+ # 3 Poisson Flow Generative Models
53
+
54
+ In this section, we start with the properties of the Poisson flow in the augmented space and show how to draw samples from the data distribution by following the backward ODE of the Poisson flow (Section 3.1). We then discuss how to actually learn a normalized Poisson field from data samples through simulations of the forward ODE (Section 3.2) and present an equivalent backward ODE that allows for exponentially decay on $z$ (Section 3.3).
55
+
56
+ ![](images/e2f896cb7811162de5ce22a937be497e9cd000c7801fea03b15b727a4f369139.jpg)
57
+ Figure 2: (a) Poisson field (black arrows) and particle trajectories (blue lines) of a 2D uniform disk (red). Left (no augmentation, 2D): all particles collapse to the disk center. Right (augmentation, 3D): particles hit different points on the disk. (b) Proof idea of Theorem 1. By Gauss’s Law, the outflow flux $d \Phi _ { o u t }$ equals the inflow flux $d \Phi _ { i n }$ . The factor of two in $p ( \mathbf { x } ) d A / 2$ is due to the symmetry of Poisson fields in $z < 0$ and $z > 0$ .
58
+
59
+ # 3.1 Augment the data with additional dimension
60
+
61
+ We wish to generate samples $\mathbf { x } \in \mathbb { R } ^ { N }$ from a distribution $p ( \mathbf { x } )$ supported on a bounded region. We may set the source $\rho ( \mathbf { x } ) = p ( \mathbf { x } ) \in \mathcal { C } ^ { 0 \ }$ 4 and compute the resulting gradient field $\mathbf { E } ( \mathbf { x } )$ from Eq. (3). Since $- \mathbf { E } ( \mathbf { x } )$ points towards sources, the backward ODE ${ d { \bf x } } / { d t } = - { \bf E } ( { \bf x } )$ will take samples close to the sources. One may naively hope that the backward ODE is a generative model that recovers $p ( \mathbf { x } )$ . Unfortunately, the backward ODE has the problem of mode collapse. We illustrate this phenomenon with a 2D uniform disk. The reverse Poisson field $- \mathbf { E } ( \mathbf { x } )$ on the 2D $( x , y )$ -plane points towards the center of the disk $O$ (Fig. 2(a) left), so all particle trajectories (blue lines) will eventually hit $O$ . If we instead add an additional dimension $z$ (Fig. 2(a) right), particles can hit different points on the disk and faithfully recover the data distribution.
62
+
63
+ Consequently, instead of solving the Poisson equation $\nabla ^ { 2 } \varphi ( \mathbf { x } ) = - p ( \mathbf { x } )$ in the original data space, we solve the Poisson equation in an augmented space $\tilde { \mathbf { x } } = ( \mathbf { x } , z ) \in \mathbb { R } ^ { N + 1 }$ with an additional variable $z \in \mathbb { R }$ . We augment the training data $\tilde { \mathbf { x } }$ in the new space by setting $z = 0$ such that $\tilde { \mathbf { x } } = ( \mathbf { x } , 0 )$ . As a consequence, the data distribution in the augmented space is $\tilde { p } ( \tilde { \mathbf { x } } ) = p ( \mathbf { x } ) \delta ( z )$ , where $\delta$ is the Dirac delta function. By Eq. (3), the Poisson field by solving the new Poisson equation $\nabla ^ { 2 } \varphi ( \tilde { \mathbf { x } } ) = - \tilde { p } ( \tilde { \mathbf { x } } )$ has an analytical form:
64
+
65
+ $$
66
+ \forall \tilde { { \mathbf { x } } } \in \mathbb { R } ^ { N + 1 } , \mathbf { E } ( \tilde { { \mathbf { x } } } ) = - \nabla \varphi ( \tilde { { \mathbf { x } } } ) = \frac { 1 } { S _ { N } ( 1 ) } \int \frac { \tilde { { \mathbf { x } } } - \tilde { { \mathbf { y } } } } { \left\| \tilde { { \mathbf { x } } } - \tilde { { \mathbf { y } } } \right\| ^ { N + 1 } } \tilde { p } ( \tilde { { \mathbf { y } } } ) d \tilde { { \mathbf { y } } }
67
+ $$
68
+
69
+ The associated forward/backward ODEs of the Poisson field are $d \tilde { \mathbf { x } } / d t = \mathbf { E } ( \tilde { \mathbf { x } } ) , d \tilde { \mathbf { x } } / d t = - \mathbf { E } ( \tilde { \mathbf { x } } )$ . Intuitively, theses ODEs uniquely define trajectories of particles between the $z = 0$ hyperplane and an enclosing hemisphere (cf. Fig. 1(a)). In the following theorem, we show that the backward ODE defines a transformation between the uniform distribution on an infinite hemisphere and the data distribution $\tilde { p } ( \tilde { { \mathbf x } } )$ in the $z = 0$ plane. We present the formal proof to Appendix A, illustrated by Fig. 2(b). The proof is based on the idea that when the radius of hemisphere $r \infty$ , the data distribution $\tilde { p } ( \tilde { \mathbf { x } } )$ can be effectively viewed as a delta distribution at origin. Consequently, the Poisson field points in the radial direction at $r \infty$ , perpendicular to $S _ { N } ^ { + } ( r )$ (Green arrows in Fig. 2(b)).
70
+
71
+ Theorem 1. Suppose particles are sampled from a uniform distribution on the upper $( z > 0 ,$ half of the sphere of radius r and evolved by the backward ODE $\begin{array} { r } { \frac { d \tilde { \mathbf { x } } } { d t } = - \mathbf { E } \big ( \tilde { \mathbf { x } } \big ) } \end{array}$ until they reach the $z = 0$ hyperplane, where the Poisson field $\mathbf { E } ( \tilde { \mathbf { x } } )$ is generated by the source $\tilde { p } ( \tilde { { \mathbf x } } )$ . In the $r \infty$ limit, under some mild conditions detailed in Appendix $\cdot$ , this process generates a particle distribution $\tilde { p } ( \tilde { { \mathbf x } } )$ , i.e., a distribution $p ( \mathbf { x } )$ in the $z = 0$ hyperplane.
72
+
73
+ Proof sketch. Suppose the flux of the backward ODE connects a solid angle $d \Omega$ (on $S _ { N } ^ { + } ( r ) )$ with an area $d A$ (on $\operatorname { s u p p } ( \tilde { p } ( \tilde { \mathbf { x } } ) )$ . According to Gauss’s law, the outflow flux $d \Phi _ { o u t } = d \Omega / S _ { N } \bar { ( 1 ) }$ on the hemisphere (Green arrows in Fig. 2(b)) equals the inflow flux $d \Phi _ { i n } = p ( { \bf x } ) d A / 2$ on $\operatorname { s u p p } ( \tilde { p } ( \tilde { \mathbf { x } } ) )$ (Red arrows in Fig. 2(b)). $d \Phi _ { i n } = d \Phi _ { o u t }$ gives $d \Omega / d A = p ( \mathbf { x } ) S _ { N } ( 1 ) / 2 \propto \tilde { p } ( \mathbf { \tilde { x } } )$ . Together, by change-ofvariable, we conclude that the final distribution in the $z = 0$ hyperplane is $p ( \mathbf { x } )$ . □
74
+
75
+ The theorem states that starting from an infinite hemisphere, one can recover the data distribution $\tilde { p }$ by following the inverse Poisson field $- \mathbf { E } ( \tilde { \mathbf { x } } )$ . We defer the formal proof and technical assumptions of the theorem to Appendix A. The property allows generative modeling by following the Poisson flow of $\nabla ^ { 2 } \varphi ( \tilde { \mathbf { x } } ) = - \tilde { p } ( \tilde { \mathbf { x } } )$ .
76
+
77
+ # 3.2 Learning the normalized Poisson Field
78
+
79
+ Given a set of training data $\mathcal { D } = \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { n }$ i.i.d sampled from the data distribution $p ( \mathbf { x } )$ , we define the =empirical version of the Poisson field (Eq. (4)) as follows:
80
+
81
+ $$
82
+ \hat { \bf E } ( \tilde { \bf x } ) = c ( \tilde { \bf x } ) \sum _ { i = 1 } ^ { n } \frac { \tilde { \bf x } - \tilde { \bf x } _ { i } } { \| \tilde { \bf x } - \tilde { \bf x } _ { i } \| ^ { N + 1 } }
83
+ $$
84
+
85
+ where the gradient field is calculated on $n$ augmented datapoints $\{ \tilde { \mathbf { x } } _ { i } = ( \mathbf { x } _ { i } , 0 ) \} _ { i = 1 } ^ { n }$ , and $c ( \tilde { \mathbf { x } } ) =$ $\textstyle 1 / \sum _ { i = 1 } ^ { n } { \frac { 1 } { \left\| \tilde { \mathbf { x } } - \tilde { \mathbf { x } } _ { i } \right\| ^ { N + 1 } } }$ is the multiplier for numerical stability. We further normalize the field to resolve the variations in the magnitude of the norm $\Vert \hat { \textbf { E } } ( \tilde { \textbf { x } } ) \ \Vert _ { 2 }$ , and fit the neural network to the more amenable negative normalized field $\mathbf { v } ( \tilde { \mathbf { x } } ) = - \sqrt { N } \hat { \mathbf { E } } ( \tilde { \mathbf { x } } ) / \| \hat { \mathbf { E } } ( \tilde { \mathbf { x } } ) \| _ { 2 }$ . The Poisson field is rescalable (cf. Section 2) and thus trajectories of its forward/backward ODEs are invariant under normalization. We denote the empirical field calculated on batch data $\boldsymbol { B }$ by $\hat { \mathbf { E } } _ { B }$ and the negative normalized field as $\mathbf { v } _ { B } ( \tilde { \mathbf { x } } ) = - \sqrt { N } \hat { \mathbf { E } } _ { B } ( \tilde { \mathbf { x } } ) / \| \hat { \mathbf { E } } _ { B } ( \tilde { \mathbf { x } } ) \| _ { 2 }$ .
86
+
87
+ Similar to the scored-based models, we sample points inside the hemisphere by perturbing the augmented training data. Given a training point $\textbf { x } \in \mathcal { D }$ , we add noise to its augmented version $\{ \tilde { \mathbf { x } } _ { i } ^ { - } = ( \mathbf { x } _ { i } , 0 ) \} _ { i = 1 } ^ { n }$ to construct the perturbed point $( \mathbf { y } , z )$ :
88
+
89
+ $$
90
+ \mathbf { y } = \mathbf { x } + \parallel \epsilon _ { \mathbf { x } } \parallel ( 1 + \tau ) ^ { m } \mathbf { u } , \quad z = | \epsilon _ { z } | ( 1 + \tau ) ^ { m }
91
+ $$
92
+
93
+ where ${ \epsilon } = \left( { \epsilon } _ { \mathbf { x } } , { \epsilon } _ { z } \right) \sim \mathcal { N } ( 0 , \sigma ^ { 2 } I _ { N + 1 \times N + 1 } )$ , $\mathbf { u } \sim \mathcal { U } ( S _ { N - 1 } ( 1 ) )$ and $m \sim \mathcal { U } [ 0 , M ]$ . The upper limit $M$ , standard deviation $\sigma$ and $\tau$ are hyper-parameters. With fixed $\epsilon$ and $\mathbf { u }$ , the added noise increases exponentially with $m$ . The rationale behind the design is that points farther away from the data support play a less important role in generative modeling, sharing a similar spirit with the choice of noisy scales in score-based models [32, 33].
94
+
95
+ In practice, we sample the p ts urbing a mini-batch data $B = \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { | B | }$ each iteration. We $m$ $[ 0 , M ]$ =for each datapoint. We select a large $M$ 300) to ensure the perturbed points can reach a large enough hemisphere. We use a larger batch $\boldsymbol { B } _ { L }$ for the estimation of normalized field since the empirical normalized field is biased, which empirically gives better results. Denoting the set of perturbed points as $\{ \tilde { \mathbf { y } } _ { i } \} _ { i = 1 } ^ { | B | }$ , we train the neural network $f _ { \theta }$ =on these points to estimate the negative normalized field by minimizing the following loss:
96
+
97
+ $$
98
+ \mathcal { L } ( \boldsymbol { \theta } ) = \frac { 1 } { | \mathcal { B } | } \sum _ { i = 1 } ^ { | \mathcal { B } | } \parallel f _ { \boldsymbol { \theta } } \big ( \tilde { \mathbf { y } } _ { i } \big ) - \mathbf { v } _ { \mathcal { B } _ { L } } \big ( \tilde { \mathbf { y } } _ { i } \big ) \parallel _ { 2 } ^ { 2 }
99
+ $$
100
+
101
+ We summarize the training process in Algorithm 1. In practice, we add a small constant $\gamma$ to the denominator of the normalized field to overcome the numerical issue when $\exists i , \left\| \tilde { \mathbf { x } } - \tilde { \mathbf { x } } _ { i } \right\| \approx 0$ .
102
+
103
+ # 3.3 Backward ODE anchored by the additional dimension
104
+
105
+ After estimating the normalized field $\mathbf { v }$ , we can sample from the data distribution by the backward ODE $d { \tilde { \mathbf { x } } } = \mathbf { v } ( { \tilde { \mathbf { x } } } ) d t$ . Nevertheless, the boundary condition of the above ODE is unclear: the starting and terminal time $t$ of the ODE are both unknown. To remedy the issue, we propose an equivalent backward ODE in which $\mathbf { x }$ evolves with the augmented variable $z$ :
106
+
107
+ $$
108
+ d ( \mathbf { x } , z ) = ( \frac { d \mathbf { x } } { d t } \frac { d t } { d z } d z , d z ) = ( \mathbf { v } ( \tilde { \mathbf { x } } ) _ { \mathbf { x } } \mathbf { v } ( \tilde { \mathbf { x } } ) _ { z } ^ { - 1 } , 1 ) d z
109
+ $$
110
+
111
+ Algorithm 1 Learning the normalized Poisson Field
112
+
113
+ <table><tr><td>Input: Training iteration T,Initial model fe,dataset D,constant y,learning rate n. fort=1...Tdo</td></tr><tr><td>from BL |B|</td></tr><tr><td>Simulate the ODE: {yi = perturb(xi) Ji=1 Calculate the normalized field by BL: VB (yi)=-√NEB,(yi)/(ll EB (yi) Il2 +γ), ∀i</td></tr><tr><td>|l f(yi)-vBL(yi)l² i1</td></tr><tr><td>Update the model parameter: 0 = 0 - nVL(0)</td></tr><tr><td>end for</td></tr><tr><td>return fe</td></tr></table>
114
+
115
+ # Algorithm 2 perturb $\cdot$
116
+
117
+ <table><tr><td>Sample the power m ~U[0,M] Sample the initial noise (∈x,∈z)~N(O,σ²I(N+1)x(N+1))</td></tr><tr><td>Uniformly sample the vector from the unit ball u ~U(SN(1))</td></tr><tr><td>Construct training point y = x+ | x I (1 + 𝑇)mu, z = |∈zl(1 + T)m</td></tr><tr><td>return y = (y, z)</td></tr></table>
118
+
119
+ where $\mathbf { v } ( \tilde { \mathbf { x } } ) _ { \mathbf { x } } , \mathbf { v } ( \tilde { \mathbf { x } } ) _ { z }$ are the corresponding components of $\mathbf x , z$ in vector $\mathbf { v } ( \tilde { \mathbf { x } } )$ . In the new ODE, we replace the time variable $t$ with the physically meaningful variable $z$ , permitting explicit starting and terminal conditions: when $z = 0$ , we arrive at the data distribution and we can freely choose a large $z _ { \mathrm { m a x } }$ as the starting point in the backward ODE. The backward ODE is compatible with general-purpose ODE solvers, e.g., RK45 method [23] and forward Euler method. The popular black-box ODE solvers, such as the one in Scipy library [37], typically use a common starting time for the same batch of samples. Since the distribution on the $z = z _ { \mathrm { m a x } }$ hyperplane is no longer uniform, we derive the prior distribution by radially projecting uniform distribution on the hemisphere with radius $r = z _ { \mathrm { m a x } }$ to the $z = z _ { \mathrm { m a x } }$ hyperplane:
120
+
121
+ $$
122
+ p _ { \mathrm { p r i o r } } ( \mathbf { x } ) = { \frac { 2 z _ { \mathrm { m a x } } ^ { N + 1 } } { S _ { N } { \big ( } z _ { \mathrm { m a x } } { \big ) } { \big ( } \| \mathbf { x } \| _ { 2 } ^ { 2 } + z _ { \mathrm { m a x } } ^ { 2 } { \big ) } ^ { \frac { N + 1 } { 2 } } } } = { \frac { 2 z _ { \mathrm { m a x } } } { S _ { N } { \big ( } 1 { \big ) } { \big ( } \| \mathbf { x } \| _ { 2 } ^ { 2 } + z _ { \mathrm { m a x } } ^ { 2 } { \big ) } ^ { \frac { N + 1 } { 2 } } } }
123
+ $$
124
+
125
+ where $S _ { N } ( r )$ is the surface area of $N$ -sphere with radius $r$ . The reason behind the radial projection is that the Poisson field points in the radial direction at $r \infty$ . The new backward ODE also defines a bijective transformation between $p _ { \mathrm { p r i o r } } ( \mathbf { x } )$ on the infinite hyperplane $z _ { \mathrm { m a x } } \infty$ ) and the data distribution the norm (r $\tilde { p } ( \tilde { { \mathbf x } } )$ , analogous to Theorem ) from the distribution: $p _ { \mathrm { p r i o r } } ( \mathbf { x } )$ to sampleand then $p _ { \mathrm { r a d i u s } } ( \| \textbf { x } \| _ { 2 } ) \propto \| \textbf { x } \| _ { 2 } ^ { N - 1 } / ( \| \textbf { x } \| _ { 2 } ^ { 2 } + z _ { \operatorname* { m a x } } ^ { 2 } ) ^ { \frac { N + 1 } { 2 } }$ uniformly sample its angle. We provide detailed derivations and practical sampling procedure in Appendix A.4. We further achieve exponential decay on the $z$ dimension by introducing a new variable $t ^ { \prime }$ :
126
+
127
+ $$
128
+ \begin{array} { r l } { [ \mathrm { B a c k w a r d ~ O D E } ] } & { { } d ( \mathbf { x } , z ) = ( \mathbf { v } ( \tilde { \mathbf { x } } ) _ { \mathbf { x } } \mathbf { v } ( \tilde { \mathbf { x } } ) _ { z } ^ { - 1 } z , z ) d t ^ { \prime } } \end{array}
129
+ $$
130
+
131
+ The $z$ component in the backward ODE, i.e., $d z = z d t ^ { \prime }$ , can be solved by $z = e ^ { t ^ { \prime } }$ . Since $z$ reaches zero as $t ^ { \prime } \to - \infty$ , we instead choose a tiny positive number $z _ { \mathrm { m i n } }$ as the terminal condition. The corresponding starting/terminal time of the variable $t ^ { \prime }$ are $\log z _ { \operatorname* { m a x } } / \log z _ { \operatorname* { m i n } }$ respectively. Empirically, this simple change of variable leads to $2 \times$ faster sampling with almost no harm to the sample quality. In addition, we substitue the predicted $\mathbf { v } ( \tilde { \mathbf { x } } ) _ { z }$ with a more accurate one when $z$ is small (Appendix B.2.3). We defer more details of the simulation of backward ODE to Appendix B.2.
132
+
133
+ # 4 Generative Modeling via the Backward ODE
134
+
135
+ In this section, we demonstrate the effectiveness of the backward ODE associated with PFGM on image generation tasks. In Section 4.1, we show that PFGM achieves currently best in class performance in the normalizing flow family. In comparison to the existing state-of-the-art SDE or MCMC approaches, PFGM exhibits $1 0 \times$ or $2 0 \times$ acceleration while maintaining competitive or higher generation quality. Meanwhile, unlike existing ODE baselines that heavily rely on corrector to generate decent samples on weaker architectures, PFGM exhibits greater stability against error (Section 4.2). Finally, we show that PFGM is robust to the step size in the Euler method (Section 4.3), and its associated ODE allows for likelihood evaluation and image manipulation by editing the latent space (Section 4.4).
136
+
137
+ Table 1: CIFAR-10 sample quality (FID, Inception) and number of function evaluation (NFE).
138
+
139
+ <table><tr><td></td><td>Invertible?</td><td>Inception ↑</td><td>FID↓</td><td>NFE↓</td></tr><tr><td>PixelCNN[36]</td><td></td><td>4.60</td><td>65.9</td><td>1024</td></tr><tr><td>IGEBM[8]</td><td></td><td>6.02</td><td>40.6</td><td>60</td></tr><tr><td>ViTGAN [24]</td><td></td><td>9.30</td><td>6.66</td><td>1</td></tr><tr><td>StyleGAN2-ADA [17]</td><td></td><td>9.83</td><td>2.92</td><td>1</td></tr><tr><td>StyleGAN2-ADA (cond.) [17]</td><td>xxxxxxxxxx</td><td>10.14</td><td>2.42</td><td>1</td></tr><tr><td>NCSN[31]</td><td></td><td>8.87</td><td>25.32</td><td>1001</td></tr><tr><td>NCSNv2 [32]</td><td></td><td>8.40</td><td>10.87</td><td>1161</td></tr><tr><td>DDPM[16]</td><td></td><td>9.46</td><td>3.17</td><td>1000</td></tr><tr><td>NCSN++ VE-SDE[33]</td><td></td><td>9.83</td><td>2.38</td><td>2000</td></tr><tr><td>NCSN++ deep VE-SDE [33]</td><td></td><td>9.89</td><td>2.20</td><td>2000</td></tr><tr><td>Glow [19]</td><td></td><td>3.92</td><td>48.9</td><td>1</td></tr><tr><td>DDIM,T=50 [30]</td><td></td><td>-</td><td>4.67</td><td>50</td></tr><tr><td>DDIM, T=100 [30]</td><td></td><td>1</td><td>4.16</td><td>100</td></tr><tr><td>NCSN++ VE-ODE [33]</td><td></td><td>9.34</td><td>5.29</td><td>194</td></tr><tr><td>NCSN++ deep VE-ODE[33]</td><td></td><td>9.17</td><td>7.66</td><td>194</td></tr><tr><td colspan="5">DDPM++backbone</td></tr><tr><td>VP-SDE[33]</td><td></td><td>9.58</td><td>2.55</td><td>1000</td></tr><tr><td>sub-VP-SDE[33]</td><td>xx-</td><td>9.56</td><td>2.61</td><td>1000</td></tr><tr><td>VP-ODE [33]</td><td></td><td>9.46</td><td>2.97</td><td>134</td></tr><tr><td>sub-VP-ODE [33]</td><td></td><td>9.30</td><td>3.16</td><td>146</td></tr><tr><td>PFGM (ours)</td><td></td><td>9.65</td><td>2.48</td><td>104</td></tr><tr><td colspan="5">DDPM++ deep backbone</td></tr><tr><td>VP-SDE [33]</td><td></td><td>9.68</td><td>2.41</td><td>1000</td></tr><tr><td>sub-VP-SDE[33]</td><td>xx-</td><td>9.57</td><td>2.41</td><td>1000</td></tr><tr><td>VP-ODE [33]</td><td></td><td>9.47</td><td>2.86</td><td>134</td></tr><tr><td>sub-VP-ODE [33]</td><td></td><td>9.40</td><td>3.05</td><td>146</td></tr><tr><td>PFGM (ours)</td><td></td><td>9.68</td><td>2.35</td><td>110</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr></table>
140
+
141
+ # 4.1 Efficient image generation by PFGM
142
+
143
+ Setup For image generation tasks, we consider the CIFAR-10 [22], CelebA $6 4 \times 6 4$ [38] and LSUN bedroom $2 5 6 \times 2 5 6$ [39]. Following [32], we first center-crop the CelebA images and then resize them to $6 4 \times 6 4$ . We choose $M \ : = \ : 2 9 1$ CIFAR-10 and CelebA 356 LSUN bedroom , $\sigma ~ = ~ 0 . 0 1$ and $\tau { \it \Delta \phi } = 0 . 0 3$ for the perturbation Algorithm 2, and $z _ { \mathrm { m i n } } ~ = ~ 1 e \mathrm { ~ - ~ } 3$ , $\begin{array} { r l } { z _ { \operatorname* { m a x } } } & { { } = } \end{array}$ 40 CIFAR-10 60 CelebA $6 4 ^ { 2 }$ 100 LSUN bedroom for the backward ODE. We further clip the norms of initial samples into $( 0 , 3 0 0 0 )$ for CIFAR-10, $( 0 , 6 0 0 0 )$ for CelebA $6 4 ^ { 2 }$ and $( 0 , 3 0 0 0 0 )$ for LSUN bedroom. We adopt the $\mathrm { { D D P M + + } }$ and $\mathrm { { D D P M + + } }$ deep architectures [33] as our backbones. We add the scalar $z$ (resp. predicted direction on $z$ ) as input (resp. output) to accommodate the additional dimension. We take the same set of hyper-parameters, such as batch size, learning rate and training iterations from [33]. We provide more training details in Appendix B.1, and discuss how to set these hyper-parameters for general datasets in B.1.1 and B.2.1.
144
+
145
+ Baselines We compare PFGM to modern autoregressive model [36], GAN [17, 24], normalizing flow [19] and EBM [8]. We also compare with variants of score-based models such as DDIM [30] and current state-of-the-art SDE/ODE methods [33]. We denote the methods that use forward-time SDEs in [33] such as Variance Exploding (VE) SDE/Variance Preserving (VP) SDE/ sub-Variance Preserving (sub-VP), and the corresponding backward SDE/ODE, as A-B, where $\mathbf { A } \in \{ \mathrm { V E }$ , VP, sub- $\mathrm { V P } \}$ and $\mathbf { B } \in \{ \mathrm { S D E } , \mathrm { O D E } \}$ . We follow the model selection protocol in [33], which selects the checkpoint with the smallest FID score over the course of training every 50k iterations.
146
+
147
+ ![](images/765d37140b6f169aca43c335a32e1ca5fc5bf14d8e90ab0f9dcca04e90401859.jpg)
148
+ Figure 3: Uncurated samples on datasets of increasing resolution. From left to right: CIFAR-10 $3 2 \times 3 2$ , CelebA $6 4 \times 6 4$ and LSUN bedroom $2 5 6 \times 2 5 6$ .
149
+
150
+ Numerical Solvers The backward ODE (Eq. (6)) is compatible with any general purpose ODE solver. In our experiments, the default solver of ODEs is the black box solver in the Scipy library [37] with the RK45 [7] method (RK45), unless otherwise specified. For VE/VP/subVP-SDEs, we use the predictor-corrector (PC) sampler introduced in [33]. For VP/sub-VP-SDEs, we apply the predictor-only sampler, because its performance is on par with the PC sampler while requiring half computation.
151
+
152
+ Results For quantitative evaluation on CIFAR-10, we report the Inception [29] (higher is better) and FID [13] scores (lower is better) in Table 1. We also include our preliminary experimental results on a weaker architecture NCSNv2 [32] in Appendix D.2. We measure the inference speed by the average NFE (number of function evaluation). We also explicitly indicate which methods belong to the invertible flow family.
153
+
154
+ Our main findings are: (1) PFGM achieves the best Inception scores and FID scores among the normalizing flow models. Specifically, PFGM obtains an Inception score of 9.68 and a FID score of 2.48 using the $\mathrm { D D P M + + }$ deep architecture. To our best knowledge, these are the highest FID and Inception scores by flow models on CIFAR-10. (2) PFGM achieves a $1 0 \times \sim 2 0 \times$ faster inference speed than the SDE methods using the similar architectures, while retaining comparable sample quality. As shown in Table 1, PFGM requires NFEs of 110 whereas the SDE methods typically use $1 0 0 0 \sim 2 0 0 0$ inference steps. PFGM outperforms all the baselines on $\mathrm { { D D P M + + } }$ in all metrics. In addition, PFGM generally samples faster than other ODE baselines with the same RK45 solver. (3) The backward ODE in PFGM is compatible with architectures with varying capacities. PFGM consistently outperforms other ODE baselines on $\mathrm { D D P M + + }$ (Table 1) or NCSNv2 (Appendix D.2) backbones. (4) PFGM shows scalability to higher resolution datasets. In Appendix D.1, we show that PFGM are capable of scale-up to LSUN bedroom $2 5 6 \times 2 5 6$ . In particular, PFGM has comparable performance with VE-SDE with $1 5 \times$ fewer NFE.
155
+
156
+ In Fig. 3, we visualize the uncurated samples from PFGM on CIFAR-10, CelebA $6 4 \times 6 4$ and LSUN bedroom $2 5 6 \times 2 5 6$ . We provides more samples in Appendix E.
157
+
158
+ # 4.2 Failure of VE/VP-ODEs on NCSNv2 architecture
159
+
160
+ In our preliminary experiments on NCSNv2 architectures, we empirically observe that the VE/VP-ODEs have FID scores greater than 90 on CIFAR-10. In particular, VE/VP-ODEs can only generate decent samples when applying the Langevin dynamics corrector, and even then, their performances are still inferior to PFGM (Table 9, Table 10). The poor performance on NCSNv2 stands in striking contrast to their high sample quality on $\mathrm { N C S N + + / D D P M + + }$ in [33]. It indicates that the VE/VP-ODEs are
161
+
162
+ ![](images/b8860bcda32dab2d49f72ab93a489b264c43c232817b6c997c0142ac14f89d96.jpg)
163
+ Figure 4: Sample norm distributions with varying time variables $\sigma$ for VE-ODE and $z$ for PFGM)
164
+
165
+ ![](images/8f1d6bfd2fc3172f6a771fae4fc3892a6d968815e5d64788e0ff673cb1dd4cc0.jpg)
166
+ Figure 5: (a) Norm- $\cdot \sigma ( t )$ relation during the backward sampling of VE-ODE (Euler). (b) Norm- $z ( t ^ { \prime } )$ relation during the backward sampling of PFGM (Euler). The shaded areas mean the standard deviation of norms. (c) Number of steps versus FID score.
167
+
168
+ more susceptible to estimation errors than PFGM. We hypothesize that the strong norm- $\sigma$ correla tion seen during the training of score-based models causes the problem.
169
+
170
+ For score-based models, the $l _ { 2 }$ norms of perturbed training samples and the standard deviations $\sigma ( t )$ of Gaussian noises have strong correlation, e. $g . , l _ { 2 } \ \mathrm { n o r m } \approx \sigma ( t ) \sqrt { N }$ for large $\sigma ( t )$ in VE [33]. In contrast, as shown in Fig. 4, PFGM allocates high mass across a wide spectrum of the training sample norms. During sampling, VE/VP-ODEs could break down when the trajectories of backward ODEs deviate from the norm- $\cdot \sigma ( t )$ relation to which most training samples pertain. The weaker NCSNv2 backbone incurs larger errors and thus leads to their failure. The PFGM is more resistant to estimate errors because of the greater range of training sample norms.
171
+
172
+ To further verify the hypothesis above, we split a batch of VE-ODE samples into cleaner and noisier samples according to visual quality (Fig. 8(a)). In Fig. 5(a), we investigate the relation for cleaner and noisier samples during the forward Euler simulation of VE-ODE when $\sigma ( t ) < 1 5$ . We can see that the trajectory of cleaner samples stays close to the norm- $\sigma ( t )$ relation (the red dash line), whereas that of the noisier samples diverges from the relation. The Langevin dynamics corrector changes the trajectory of noisier samples to align with the relation. Fig. 5(b) further shows that the anchored variable $z ( t ^ { \prime } )$ and the norms in the backward ODE of PFGM are not strongly correlated, giving rise to the robustness against the imprecise estimation on NCSNv2. We defer more details to Appendix C.
173
+
174
+ # 4.3 Effects of step size in the forward Euler method
175
+
176
+ In order to accelerate the inference speed of ODEs, we can increase the step size (decrease the NFEs) in numerical solvers such as the forward Euler method. It also enables the trade-off between sample quality and computational efficiency in real-world deployment. We study the effects of increasing step size on PFGM, VP-ODE and DDIM [30] using the forward Euler method, with a varying NFE ranging from 10 to 100.
177
+
178
+ In Fig. 5(c), we report the sample quality measured by FID scores on CIFAR-10. As expected, all the methods have higher FID scores when decreasing the NFE. We observe that the sample quality of PFGM degrades gracefully as we decrease the NFE. Our method shows significantly better robustness to step sizes than the VP-ODE, especially when only taking a few Euler steps. In addition, PFGM obtains better FID scores than DDIM on most NFEs except for 10 where PFGM is marginally worse. This suggests that the PFGM is a promising method for accommodating instantaneous resource availability, as high-quality samples can be generated in limited steps.
179
+
180
+ # 4.4 Utilities of ODE: likelihood evaluation and latent representation
181
+
182
+ Similar to the family of discrete normalizing flows [6, 19, 14] and continuous probability flow [33], the forward ODE in PFGM defines an invertible mapping between the data space and latent space with a known prior. Formally, we define the invertible forward $\mathcal { M }$ mapping by integrating the corresponding forward ODE $\begin{array} { r } { \dot { d } ( \mathbf { x } , z ) = ( \mathbf { v } ( \tilde { \mathbf { x } } ) _ { \mathbf { x } } \mathbf { v } ( \tilde { \mathbf { x } } ) _ { z } ^ { - 1 } z , z ) d t ^ { \prime } } \end{array}$ of Eq. (6):
183
+
184
+ $$
185
+ \mathbf { x } ( \log z _ { \operatorname* { m a x } } ) = \mathcal { M } ( \mathbf { x } ( \log z _ { \operatorname* { m i n } } ) ) \equiv \mathbf { x } ( \log z _ { \operatorname* { m i n } } ) + \int _ { \log z _ { \operatorname* { m i n } } } ^ { \log z _ { \operatorname* { m a x } } } \mathbf { v } ( \mathbf { x } ( t ^ { \prime } ) ) _ { \mathbf { x } } \mathbf { v } ( \tilde { \mathbf { x } } ( t ^ { \prime } ) ) _ { z } ^ { - 1 } e ^ { t ^ { \prime } } d t ^ { \prime }
186
+ $$
187
+
188
+ where $\log z _ { \mathrm { m i n } } / \log z _ { \mathrm { m a x } }$ are the starting/terminal time in the forward ODE. The forward mapping transfers the data distribution to the prior distribution $p _ { \mathrm { p r i o r } }$ on the $z = z _ { \mathrm { m a x } }$ hyperplane (cf. Section 3.3): $p _ { \mathrm { p r i o r } } \big ( \mathbf { x } \big ( \log z _ { \mathrm { m a x } } \big ) \big ) = \mathcal { M } \big ( p ( \mathbf { x } ( \log \bar { z } _ { \mathrm { m i n } } ) ) \big )$ . The invertibility enables likelihood evaluation and creates a meaningful latent space on the $z = z _ { \mathrm { m a x } }$ hyperplane. In addition, we can adapt to the computational constraints by adjusting the step size or the precision in numerical ODE solvers.
189
+
190
+ Likelihood evaluation We evaluate the data likelihood by the instantaneous change-of-variable formula [4, 33]. In Table 2, we report the bits/dim on the uniformly dequantized CIFAR-10 test set and compare with existing baselines that use the same setup. We observe that PFGM achieves better likelihoods than discrete normalizing flow models, even without maximum likelihood training. Among the continuous flow models, sub-VP-ODE shows the lowest bits/dim, although its sample quality is worse than VP-ODE and PFGM (Table 1). The exploration of the seeming trade-off between likelihood and sample quality is left for future works.
191
+
192
+ Table 2: Bits/dim on CIFAR-10
193
+
194
+ <table><tr><td></td><td>bits/dim ↓</td></tr><tr><td>RealNVP [6]</td><td>3.49</td></tr><tr><td>Glow [19] Residual Flow [3]</td><td>3.35 3.28</td></tr><tr><td>Flow++ [14]</td><td>3.29</td></tr><tr><td>DDPM(L)[16]</td><td>≤3.70*</td></tr><tr><td>DDPM++backbone</td><td></td></tr><tr><td>VP-ODE [33]</td><td>3.20</td></tr><tr><td>sub-VP-ODE[33]</td><td>3.02</td></tr><tr><td>PFGM (ours)</td><td>3.19</td></tr></table>
195
+
196
+ Latent representation Since the samples are uniquely identifiable by their latents via the invertible mapping $\mathcal { M }$ , PFGM further supports image manipulation using its latent representation on the $z =$ $z _ { \mathrm { m a x } }$ hyperplane. We include the results of image interpolation and the temperature scaling [6, 19, 33] to Appendix D.4 and Appendix D.5. For interpolation, it shows that we can travel along the latent space to obtain perceptually consistent interpolations between CelebA images.
197
+
198
+ # 5 Conclusion
199
+
200
+ We present a new deep generative model by solving the Poisson equation whose source term is the data distribution. We estimate the normalized gradient field of the solution in an augmented space with an additional dimension. For sampling, we devise a backward ODE that exponential decays on the physically meaningful additional dimension. Empirically, our approach has currently best performance over other normalizing flow baselines, and achieving $1 0 \times$ to $2 0 \times$ acceleration over the stochastic methods. Our backward ODE shows greater stability against errors than popular ODE-based methods, and enables efficient adaptive sampling. We further demonstrate the utilities of the forward ODE on likelihood evaluation and image interpolation. Future directions include improving the normalization of Poisson fields. More principled approaches can be used to get around the divergent near-field behavior. For example, we may exploit renormalization, a useful tool in physics, to make the Poisson field well-behaved in near fields.
201
+
202
+ # Acknowledgements
203
+
204
+ We are grateful to Shangyuan Tong, Timur Garipov and Yang Song for helpful discussion. We would like to thank Octavian Ganea and Wengong Jin for reviewing an early draft of this paper. YX and TJ acknowledge support from MIT-DSTA Singapore collaboration, from NSF Expeditions grant (award 1918839) ”Understanding the World Through Code”, and from MIT-IBM Grand Challenge project. ZL and MT would like to thank the Center for Brains, Minds, and Machines (CBMM) for hospitality. ZL and MT are supported by The Casey and Family Foundation, the Foundational Questions Institute, the Rothberg Family Fund for Cognitive Science and IAIFI through NSF grant PHY-2019786.
205
+
206
+ References
207
+ [1] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. ArXiv, abs/1809.11096, 2019.
208
+ [2] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, T. J. Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeff Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. ArXiv, abs/2005.14165, 2020.
209
+ [3] Ricky T. Q. Chen, Jens Behrmann, David Kristjanson Duvenaud, and Jorn-Henrik Jacobsen. ¨ Residual flows for invertible generative modeling. ArXiv, abs/1906.02735, 2019.
210
+ [4] Tian Qi Chen, Yulia Rubanova, Jesse Bettencourt, and David Kristjanson Duvenaud. Neural ordinary differential equations. ArXiv, abs/1806.07366, 2018.
211
+ [5] Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in Neural Information Processing Systems, 34:8780–8794, 2021.
212
+ [6] Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real nvp. ArXiv, abs/1605.08803, 2017.
213
+ [7] J. R. Dormand and P. J. Prince. A family of embedded runge-kutta formulae. Journal of Computational and Applied Mathematics, 6:19–26, 1980.
214
+ [8] Yilun Du and Igor Mordatch. Implicit generation and generalization in energy-based models. ArXiv, abs/1903.08689, 2019.
215
+ [9] Herbert Goldstein, Charles Poole, and John Safko. Classical mechanics, 2002.
216
+ [10] Will Grathwohl, Ricky T. Q. Chen, Jesse Bettencourt, Ilya Sutskever, and David Kristjanson Duvenaud. Ffjord: Free-form continuous dynamics for scalable reversible generative models. ArXiv, abs/1810.01367, 2019.
217
+ [11] David J Griffiths. Introduction to electrodynamics, 2005.
218
+ [12] Ishaan Gulrajani, Faruk Ahmed, Mart´ın Arjovsky, Vincent Dumoulin, and Aaron C. Courville. Improved training of wasserstein gans. In NIPS, 2017.
219
+ [13] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In NIPS, 2017.
220
+ [14] Jonathan Ho, Xi Chen, A. Srinivas, Yan Duan, and P. Abbeel. Flow $^ { + + }$ : Improving flowbased generative models with variational dequantization and architecture design. ArXiv, abs/1902.00275, 2019.
221
+ [15] Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In NIPS, 2016.
222
+ [16] Jonathan Ho, Ajay Jain, and P. Abbeel. Denoising diffusion probabilistic models. ArXiv, abs/2006.11239, 2020.
223
+ [17] Tero Karras, Miika Aittala, Janne Hellsten, Samuli Laine, Jaakko Lehtinen, and Timo Aila. Training generative adversarial networks with limited data. ArXiv, abs/2006.06676, 2020.
224
+ [18] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4401–4410, 2019.
225
+ [19] Diederik P. Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In NeurIPS, 2018.
226
+
227
+ [20] Diederik P. Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semisupervised learning with deep generative models. ArXiv, abs/1406.5298, 2014.
228
+
229
+ [21] Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. CoRR, abs/1312.6114, 2014.
230
+
231
+ [22] Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 (canadian institute for advanced research). 2009.
232
+
233
+ [23] F Shampine Lawrence. Some practical runge-kutta formulas. Mathematics of Computation, 46:135–150, 1986.
234
+
235
+ [24] Kwonjoon Lee, Huiwen Chang, Lu Jiang, Han Zhang, Zhuowen Tu, and Ce Liu. Vitgan: Training gans with vision transformers. ArXiv, abs/2107.04589, 2021.
236
+
237
+ [25] Daiqing Li, Junlin Yang, Karsten Kreis, Antonio Torralba, and Sanja Fidler. Semantic segmentation with generative models: Semi-supervised learning and strong out-of-domain generalization. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8296–8307, 2021.
238
+
239
+ [26] Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. ArXiv, abs/1802.05957, 2018.
240
+
241
+ [27] Henry Ricardo. A modern introduction to differential equations. 2002.
242
+
243
+ [28] Hannes Risken. Fokker-planck equation. 1984.
244
+
245
+ [29] Tim Salimans, Ian J. Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. ArXiv, abs/1606.03498, 2016.
246
+
247
+ [30] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. ArXiv, abs/2010.02502, 2021.
248
+
249
+ [31] Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. ArXiv, abs/1907.05600, 2019.
250
+
251
+ [32] Yang Song and Stefano Ermon. Improved techniques for training score-based generative models. ArXiv, abs/2006.09011, 2020.
252
+
253
+ [33] Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. ArXiv, abs/2011.13456, 2021.
254
+
255
+ [34] Christian Szegedy, V. Vanhoucke, S. Ioffe, Jon Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2818–2826, 2016.
256
+
257
+ [35] Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex ¨ Graves, Nal Kalchbrenner, Andrew W. Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. In SSW, 2016.
258
+
259
+ [36] Aaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Koray Kavukcuoglu, Oriol Vinyals, ¨ and Alex Graves. Conditional image generation with pixelcnn decoders. In NIPS, 2016.
260
+
261
+ [37] Pauli Virtanen, Ralf Gommers, Travis E. Oliphant, Matt Haberland, Tyler Reddy, David Cournapeau, Evgeni Burovski, Pearu Peterson, Warren Weckesser, Jonathan Bright, Stefan J. ´ van der Walt, Matthew Brett, Joshua Wilson, K. Jarrod Millman, Nikolay Mayorov, Andrew R. J. Nelson, Eric Jones, Robert Kern, Eric Larson, C J Carey, Ilhan Polat, Yu Feng, Eric W. Moore, J. Vanderplas, Denis Laxalde, Josef Perktold, Robert Cimrman, Ian Daniel Henriksen, E. A. Quintero, Charles R. Harris, Anne M. Archibald, Antonio H. Ribeiro, Fabian Pedregosa, ˆ Paul van Mulbregt, Aditya Alessandro Pietro Alex Andreas Andreas Anthony Ant Vijaykumar Bardelli Rothberg Hilboll Kloeckner Sco, Aditya Vijaykumar, Alessandro Pietro Bardelli, Alex Rothberg, Andreas Hilboll, Andre Kloeckner, Anthony M. Scopatz, Antony Lee, Ariel S. Rokem, C. Nathan Woods, Chad Fulton, Charles Masson, Christian Haggstr ¨ om, Clark Fitzgerald, ¨
262
+
263
+ David A. Nicholson, David R. Hagen, Dmitrii V. Pasechnik, Emanuele Olivetti, Eric Martin, Eric Wieser, Fabrice Silva, Felix Lenders, Florian Wilhelm, Gert Young, Gavin A. Price, GertLudwig Ingold, Gregory E. Allen, Gregory R. Lee, Herve Audren, Irvin Probst, Jorg P. Dietrich, ´ Jacob Silterra, James T. Webber, Janko Slavi, Joel Nothman, Johannes Buchner, Johannes Kulick, Johannes L. Schonberger, Jos ¨ e Vin ´ ´ıcius de Miranda Cardoso, Joscha Reimer, Joseph E. Harrington, Juan Luis Cano Rodr´ıguez, Juan Nunez-Iglesias, Justin Kuczynski, Kevin Lee Tritz, Martin Dr Thoma, Matt Newville, Matthias Kummerer, Maximilian Bolingbroke, Michael ¨ Tartre, Mikhail Pak, Nathaniel J. Smith, Nikolai Nowaczyk, Nikolay Shebanov, Oleksandr Pavlyk, Per Andreas Brodtkorb, Perry Lee, Robert T. McGibbon, Roman Feldbauer, Sam Lewis, Sam Tygier, Scott Sievert, Sebastiano Vigna, Stefan Peterson, Surhud More, Tadeusz Pudlik, Taku Oshima, Thomas J. Pingel, Thomas P. Robitaille, Thomas Spura, Thouis Raymond Jones, Tim Cera, Tim Leslie, Tiziano Zito, Tom Krauss, U. Upadhyay, Yaroslav O. Halchenko, and Y. Vazquez-Baeza. Scipy 1.0: fundamental algorithms for scientific computing in python. ´ Nature Methods, 17:261 – 272, 2020.
264
+ [38] Shuo Yang, Ping Luo, Chen Change Loy, and Xiaoou Tang. From facial parts responses to face detection: A deep learning approach. 2015 IEEE International Conference on Computer Vision (ICCV), pages 3676–3684, 2015.
265
+ [39] Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. ArXiv, abs/1506.03365, 2015.
266
+
267
+ # Checklist
268
+
269
+ 1. For all authors...
270
+
271
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
272
+ (b) Did you describe the limitations of your work? [Yes] See Appendix G.
273
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See Appendix H.
274
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
275
+
276
+ 2. If you are including theoretical results...
277
+
278
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] See Appendix A. (b) Did you include complete proofs of all theoretical results? [Yes] See Appendix A.
279
+
280
+ 3. If you ran experiments...
281
+
282
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] See the abstract.
283
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Appendix B.1.
284
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A]
285
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] All the experiments are run on a single NVIDIA A100 GPU.
286
+
287
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
288
+
289
+ (a) If your work uses existing assets, did you cite the creators? [Yes]
290
+ (b) Did you mention the license of the assets? [N/A] The assets are public/open-source datasets and codes.
291
+ (c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
292
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
293
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
294
+
295
+ 5. If you used crowdsourcing or conducted research with human subjects...
296
+
297
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
298
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
299
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/dev/voV_TRqcWh/voV_TRqcWh_content_list.json ADDED
@@ -0,0 +1,1408 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Poisson Flow Generative Models ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 300,
8
+ 122,
9
+ 696,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yilun Xu∗ , Ziming Liu∗ , Max Tegmark, Tommi Jaakkola Massachusetts Institute of Technology ylxu, zmliu, tegmark @mit.edu; tommi@csail.mit.edu ",
17
+ "bbox": [
18
+ 279,
19
+ 195,
20
+ 720,
21
+ 238
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 275,
32
+ 535,
33
+ 291
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We propose a new “Poisson flow” generative model (PFGM) that maps a uniform distribution on a high-dimensional hemisphere into any data distribution. We interpret the data points as electrical charges on the $z = 0$ hyperplane in a space augmented with an additional dimension $z$ , generating a high-dimensional electric field (the gradient of the solution to Poisson equation). We prove that if these charges flow upward along electric field lines, their initial distribution in the $z \\ = \\ 0$ plane transforms into a distribution on the hemisphere of radius $r$ that becomes uniform in the $r \\infty$ limit. To learn the bijective transformation, we estimate the normalized field in the augmented space. For sampling, we devise a backward ODE that is anchored by the physically meaningful additional dimension: the samples hit the (unaugmented) data manifold when the $z$ reaches zero. Experimentally, PFGM achieves current state-of-the-art performance among the normalizing flow models on CIFAR-10, with an Inception score of 9.68 and a FID score of 2.35. It also performs on par with the state-of-the-art SDE approaches while offering $1 0 \\times$ to $2 0 \\times$ acceleration on image generation tasks. Additionally, PFGM appears more tolerant of estimation errors on a weaker network architecture and robust to the step size in the Euler method. The code is available at https: //github.com/Newbeeer/poisson_flow. ",
40
+ "bbox": [
41
+ 233,
42
+ 306,
43
+ 766,
44
+ 553
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 578,
55
+ 310,
56
+ 595
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Deep generative models are a prominent approach for data generation, and have been used to produce high quality samples in image [1], text [2] and audio [35], as well as improve semi-supervised learning [20], domain generalization [25] and imitation learning [15]. However, current deep generative models also have limitations, such as unstable training objectives (GANs [1, 12, 17]) and low sample quality (VAEs [21], normalizing flows [6]). New techniques [12, 24] are introduced to stablize the training of CNN-based or ViT-based GAN models. Although recent advances on diffusion [16] and scored-based models [33] achieve comparable sample quality to GAN’s without adversarial training, these models have a slow stochastic sampling process. [33] proposes backward ODE samplers (normalizing flow) that speed up the sampling process but these methods have not yet performed on par with the SDE counterparts. ",
63
+ "bbox": [
64
+ 174,
65
+ 609,
66
+ 825,
67
+ 747
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "We present a new “Poisson flow” generative model (PFGM), exploiting a remarkable physics fact that generalizes to $N$ dimensions. As illustrated in Fig. 1(a), motion in a viscous fluid transforms any planar charge distribution into a uniform angular distribution. Specifically, we interpret $N$ - dimensional data points $\\mathbf { x }$ (images, say) as positive electric charges in the $z \\ = \\ 0$ plane of an $N + 1$ -dimensional space (see Fig. 1(a)) filled with a viscous liquid (say honey). A positive charge with $z > 0$ will be repelled by the other charges and move in the direction of their repulsive force, eventually crossing an imaginary hemisphere of radius $r$ . We show that, remarkably, if the the original charge distribution is let loose just above $z = 0$ , this law of motion will cause a uniform distribution for their hemisphere crossings in the $r \\infty$ limit. ",
74
+ "bbox": [
75
+ 174,
76
+ 753,
77
+ 825,
78
+ 878
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/54726ebf34e46087bef020e3ddcf1a0c1fce7fffed017e15273765115d92e791.jpg",
85
+ "image_caption": [
86
+ "Figure 1: (a) 3D Poisson field trajectories for a heart-shaped distribution (b) The evolvements of a distribution (top) or an (augmented) sample (bottom) by the forward/backward ODEs pertained to the Poisson field. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 171,
91
+ 84,
92
+ 802,
93
+ 270
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "Our Poisson flow generative process reverses the forward process: we generate a uniform distribution of negative charges on the hemisphere, then track their motion back to the $z = 0$ plane, where they will be distributed as the data distribution. A Poisson flow can be viewed as a type of continuous normalizing flows [4, 10, 33] in the sense that it continuously maps between an arbitrary distribution and an easily sampled one: in the previous works an $N$ -dimensional Gaussian and in PFGM a uniform distribution on an $N$ -dimensional hemisphere. In practice, we implement the Poisson flow by solving a pair of forward/backward ordinary differential equations (ODEs) induced by the electric field (Fig. 1(b)) given by the $N$ -dimensional version of Coulomb’s law (the gradient of the solution to the Poisson’s equation with the data as sources). We will interchangeably refer to this gradient as the Poisson field, since electric fields normally refer to the special case $N = 3$ . ",
100
+ "bbox": [
101
+ 173,
102
+ 351,
103
+ 825,
104
+ 489
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "The proposed generative model PFGM has a stable training objective and empirically outperforms previously state-of-the-art continuous flow methods [30, 33]. As a different iterative method, PFGM offers two advantages compared to score-based methods [32, 33]. First, the ODE process of PFGM achieves faster sampling speeds than the SDE samplers in [33]. while retaining comparable performance. Second, our backward ODE exhibits better generation performance than the reverse-time ODEs of VE/VP/sub-VP SDEs [33], as well as greater stability on a weaker architecture NSCNv2 [32]. The rationale for robustness is that the time variables in these ODE baselines are strongly correlated with the sample norms during training time, resulting in a less error-tolerant inference. In contrast, the tie between the anchored variable and the sample norm in PFGM is much weaker. ",
111
+ "bbox": [
112
+ 173,
113
+ 496,
114
+ 825,
115
+ 621
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Experimentally, we show that PFGM achieves current state-of-the-art performance on CIFAR-10 dataset in the normalizing flow family, with FID/Inception scores of $2 . { \\bar { 4 } } 8 / 9 . 6 5$ (w/ $\\mathrm { { D D P M + + } }$ [33]) and $2 . 3 5 / 9 . 6 8$ (w/ $\\mathrm { { D D P M + + } }$ deep [33]). It performs competitively with current state-of-the-art SDE samplers [33] and provides $1 0 \\times$ to $2 0 \\times$ speed up across datasets. Notably, the backward ODE in PFGM is the only ODE-based sampler that can produce decent samples on its own on NCSNv2 [32], while other ODE baselines fail without corrections. In addition, PFGM demonstrates the robustness to the step size in the Euler method, with a varying number of function evaluations (NFE) ranging from 10 to 100. We further showcase the utility of the invertible forward/backward ODEs of the Poisson field on likelihood evaluation and image manipulations, and its scalability to higher resolution images on LSUN bedroom $2 5 6 \\times 2 5 6$ dataset. ",
122
+ "bbox": [
123
+ 173,
124
+ 626,
125
+ 825,
126
+ 765
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "2 Background and Related works ",
133
+ "text_level": 1,
134
+ "bbox": [
135
+ 174,
136
+ 784,
137
+ 470,
138
+ 801
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "Poisson equation Let $\\mathbf { x } \\in \\mathbb { R } ^ { N }$ and $\\rho ( \\mathbf { x } ) : \\mathbb { R } ^ { N } \\mathbb { R }$ be a source function. We assume that the source function has a compact support, $\\rho \\in \\mathcal { C } ^ { 0 }$ and $N \\geq 3$ . The Poisson equation is ",
145
+ "bbox": [
146
+ 169,
147
+ 815,
148
+ 823,
149
+ 845
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "equation",
155
+ "img_path": "images/5c3b5ccc1ca4ab2e1f96ee83cf1cfbe378716b7b8c4e5fe11bd0803b24e03f54.jpg",
156
+ "text": "$$\n\\nabla ^ { 2 } \\varphi ( \\mathbf { x } ) = - \\rho ( \\mathbf { x } ) ,\n$$",
157
+ "text_format": "latex",
158
+ "bbox": [
159
+ 437,
160
+ 851,
161
+ 558,
162
+ 869
163
+ ],
164
+ "page_idx": 1
165
+ },
166
+ {
167
+ "type": "text",
168
+ "text": "where $\\varphi ( \\mathbf { x } ) : \\mathbb { R } ^ { N } \\mathbb { R }$ is called the potential function, and $\\begin{array} { r } { \\bigtriangledown ^ { 2 } \\equiv \\sum _ { i = 1 } ^ { N } \\frac { \\partial ^ { 2 } } { \\partial x _ { i } ^ { 2 } } } \\end{array}$ is the Laplacian operator. It is usually helpful to define the gradient field $\\mathbf { E } ( \\mathbf { x } ) = - \\nabla \\varphi ( \\mathbf { x } )$ and rewrite the Poisson equation as $\\nabla \\cdot \\mathbf { E } = \\rho$ , known in physics as Gauss’s law [11]. The Poisson equation is widely used in physics, giving rise to Newton’s gravitational theory [9] and the electrostatic theory [11], when $\\rho ( \\mathbf { x } )$ is interpreted as mass density or electric charge density, respectively. $\\mathbf { E }$ is the $N$ -dimensional analog of the electric field. The Poisson equation Eq. (1) (with zero boundary condition at infinity) admits a unique simple integral solution 2: ",
169
+ "bbox": [
170
+ 174,
171
+ 876,
172
+ 826,
173
+ 912
174
+ ],
175
+ "page_idx": 1
176
+ },
177
+ {
178
+ "type": "text",
179
+ "text": "",
180
+ "bbox": [
181
+ 174,
182
+ 90,
183
+ 825,
184
+ 161
185
+ ],
186
+ "page_idx": 2
187
+ },
188
+ {
189
+ "type": "equation",
190
+ "img_path": "images/93401eb00dae9c66c4ae5dfca4c5a263a99367a210890c33bd48b06e09b1f777.jpg",
191
+ "text": "$$\n\\varphi ( \\mathbf { x } ) = \\int G ( \\mathbf { x } , \\mathbf { y } ) \\rho ( \\mathbf { y } ) d \\mathbf { y } , \\quad G ( \\mathbf { x } , \\mathbf { y } ) = \\frac { 1 } { ( N - 2 ) S _ { N - 1 } ( 1 ) } \\frac { 1 } { | | \\mathbf { x } - \\mathbf { y } | | ^ { N - 2 } } ,\n$$",
192
+ "text_format": "latex",
193
+ "bbox": [
194
+ 258,
195
+ 166,
196
+ 738,
197
+ 200
198
+ ],
199
+ "page_idx": 2
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "where $S _ { N - 1 } ( 1 )$ is a geometric constant representing the surface area of the unit $( N - 1 )$ -sphere 3, and $G ( \\mathbf { x } , \\mathbf { y } )$ is the extension of Green’s function in $N$ -dimensional space (details in Appendix A.3). The negative gradient field of $\\varphi ( \\mathbf x )$ , referred as Poisson field of the source $\\rho$ , is ",
204
+ "bbox": [
205
+ 174,
206
+ 207,
207
+ 826,
208
+ 250
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "equation",
214
+ "img_path": "images/7587c330e6a462720f1d2f5150eb625f3de241f9392ee669c1f0bbdf0314c543.jpg",
215
+ "text": "$$\n\\mathbf { E } ( \\mathbf { x } ) = - \\nabla \\varphi ( \\mathbf { x } ) = - \\int \\nabla _ { \\mathbf { x } } G ( \\mathbf { x } , \\mathbf { y } ) \\rho ( \\mathbf { y } ) d \\mathbf { y } , \\quad \\nabla _ { \\mathbf { x } } G ( \\mathbf { x } , \\mathbf { y } ) = - \\frac { 1 } { S _ { N - 1 } ( 1 ) } \\frac { \\mathbf { x } - \\mathbf { y } } { \\left\\| \\mathbf { x } - \\mathbf { y } \\right\\| ^ { N } } .\n$$",
216
+ "text_format": "latex",
217
+ "bbox": [
218
+ 220,
219
+ 256,
220
+ 777,
221
+ 289
222
+ ],
223
+ "page_idx": 2
224
+ },
225
+ {
226
+ "type": "text",
227
+ "text": "Qualitatively, the Poisson field $\\mathbf { E } ( \\mathbf { x } )$ points away from sources, or equivalently $- \\mathbf { E } ( \\mathbf { x } )$ points towards sources, as illustrated in Fig. 1. It is straightforward to check that when $\\rho ( { \\bf x } ) \\delta ( { \\bf x - y } )$ , we get $\\varphi ( \\mathbf x ) G ( \\mathbf x , \\mathbf y )$ and $\\mathbf { E } ( \\mathbf { x } ) - \\nabla _ { \\mathbf { x } } G ( \\mathbf { x } , \\mathbf { y } )$ . This implies that $G ( \\mathbf { x } , \\mathbf { y } )$ and $- \\nabla _ { \\mathbf { x } } G ( \\mathbf { x } , \\mathbf { y } )$ can be interpreted as the potential function and the gradient field generated by a unit point source, e.g., a point charge, located at $\\mathbf { y }$ . When $\\rho ( \\mathbf { x } )$ takes general forms but has bounded support, simple asymptotics exist for $\\left\\| \\mathbf { x } \\right\\| \\gg \\left\\| \\mathbf { y } \\right\\|$ . To the lowest order, $\\mathbf { E ( x ) } = \\nabla _ { \\mathbf { x } } G ( \\mathbf { x } , \\mathbf { y } ) | _ { \\mathbf { y } = \\mathbf { 0 } } \\sim \\mathbf { x } / \\| \\mathbf { x } \\| ^ { N }$ behaves as if it were generated by a unit point source at $\\mathbf y = 0$ . In physics, the power law decay is considered to be long-range (compared to exponential decay) [11]. ",
228
+ "bbox": [
229
+ 173,
230
+ 294,
231
+ 825,
232
+ 409
233
+ ],
234
+ "page_idx": 2
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "Particle dynamics in a Poisson field The Poisson field immediately defines a flow model, where the probability distribution evolves according to the gradient flow $\\partial p _ { t } ( \\mathbf { x } ) / \\partial t = - \\nabla \\cdot ( p _ { t } ( \\mathbf { x } ) \\mathbf { E } ( \\mathbf { x } ) )$ . The gradient flow is a special case of the Fokker-Planck equation [28], where the diffusion coefficient is zero. Intuitively we can think of $p _ { t } ( \\mathbf { x } )$ as represented by a population of particles. The corresponding (non-diffusion) case of the Ito process is the forward ODE ˆ $\\begin{array} { r } { \\frac { d \\mathbf { x } } { d t } \\ = \\ \\mathbf { E } ( \\mathbf { x } ) } \\end{array}$ . We can interpret the trajectories of the ODE as particles moving according to the Poisson field $\\mathbf { E } ( x )$ , with initial states drawn from $p _ { 0 }$ . The physical picture of the forward ODE is a charged particle under the influence of electric fields in the overdamped limit (details in Appendix F). ",
239
+ "bbox": [
240
+ 173,
241
+ 412,
242
+ 825,
243
+ 529
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "The dynamics is also rescalable in the sense that the particle trajectory remains the same for $\\pm f ( \\mathbf { x } ) \\mathbf { E } ( \\mathbf { x } )$ for $f ( \\mathbf { x } ) > 0 , f ( \\mathbf { x } ) \\in \\mathcal { C } ^ { 1 }$ , because the time rescaling $d t \\to f ( \\mathbf { x } ( t ) ) d t$ recovers $\\begin{array} { r } { \\frac { d \\mathbf { x } } { d t } \\ = } \\end{array}$ $\\begin{array} { r } { \\frac { d { \\mathbf { x } } } { d t } = } \\end{array}$ $\\pm \\mathbf { E } ( \\mathbf { x } )$ . Note that the dynamics is stiff due to the power law factor in the denominator in Eq. (3), posing computational challenges. Luckily the rescalablility allows us to rescale $\\mathbf { E } ( \\mathbf { x } )$ properly to get new ODEs (formally defined later in Section 3.3) that are more amenable for sampling. ",
250
+ "bbox": [
251
+ 174,
252
+ 535,
253
+ 825,
254
+ 611
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "Generative Modeling via ODE Generative modeling can be done by transforming a base distribution to a data distribution via mappings defined by ODEs. The ODE-based samplers allow for adaptive sampling, exact likelihood evaluation and modeling of continuous-time dynamics [4, 33]. Previous works broadly fall into two lines. [4, 3] introduce a continuous-time normalizing flow model that can be trained with maximum likelihood by the instantaneous change-of-variables formula [4]. For sampling, they directly integrate the learned invertiable mapping over time. Another work [33] unifies the scored-based model [31, 32] and diffusion model [16] into a general diffusion process, and uses the reverse-time ODE of the diffusion process for sampling. They show that the reverse-time ODE produces high quality samples with improved architecture. ",
261
+ "bbox": [
262
+ 173,
263
+ 616,
264
+ 825,
265
+ 741
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "3 Poisson Flow Generative Models ",
272
+ "text_level": 1,
273
+ "bbox": [
274
+ 174,
275
+ 760,
276
+ 475,
277
+ 777
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "In this section, we start with the properties of the Poisson flow in the augmented space and show how to draw samples from the data distribution by following the backward ODE of the Poisson flow (Section 3.1). We then discuss how to actually learn a normalized Poisson field from data samples through simulations of the forward ODE (Section 3.2) and present an equivalent backward ODE that allows for exponentially decay on $z$ (Section 3.3). ",
284
+ "bbox": [
285
+ 174,
286
+ 791,
287
+ 825,
288
+ 861
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "image",
294
+ "img_path": "images/e2f896cb7811162de5ce22a937be497e9cd000c7801fea03b15b727a4f369139.jpg",
295
+ "image_caption": [
296
+ "Figure 2: (a) Poisson field (black arrows) and particle trajectories (blue lines) of a 2D uniform disk (red). Left (no augmentation, 2D): all particles collapse to the disk center. Right (augmentation, 3D): particles hit different points on the disk. (b) Proof idea of Theorem 1. By Gauss’s Law, the outflow flux $d \\Phi _ { o u t }$ equals the inflow flux $d \\Phi _ { i n }$ . The factor of two in $p ( \\mathbf { x } ) d A / 2$ is due to the symmetry of Poisson fields in $z < 0$ and $z > 0$ . "
297
+ ],
298
+ "image_footnote": [],
299
+ "bbox": [
300
+ 179,
301
+ 93,
302
+ 815,
303
+ 251
304
+ ],
305
+ "page_idx": 3
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "3.1 Augment the data with additional dimension ",
310
+ "text_level": 1,
311
+ "bbox": [
312
+ 174,
313
+ 348,
314
+ 522,
315
+ 363
316
+ ],
317
+ "page_idx": 3
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "We wish to generate samples $\\mathbf { x } \\in \\mathbb { R } ^ { N }$ from a distribution $p ( \\mathbf { x } )$ supported on a bounded region. We may set the source $\\rho ( \\mathbf { x } ) = p ( \\mathbf { x } ) \\in \\mathcal { C } ^ { 0 \\ }$ 4 and compute the resulting gradient field $\\mathbf { E } ( \\mathbf { x } )$ from Eq. (3). Since $- \\mathbf { E } ( \\mathbf { x } )$ points towards sources, the backward ODE ${ d { \\bf x } } / { d t } = - { \\bf E } ( { \\bf x } )$ will take samples close to the sources. One may naively hope that the backward ODE is a generative model that recovers $p ( \\mathbf { x } )$ . Unfortunately, the backward ODE has the problem of mode collapse. We illustrate this phenomenon with a 2D uniform disk. The reverse Poisson field $- \\mathbf { E } ( \\mathbf { x } )$ on the 2D $( x , y )$ -plane points towards the center of the disk $O$ (Fig. 2(a) left), so all particle trajectories (blue lines) will eventually hit $O$ . If we instead add an additional dimension $z$ (Fig. 2(a) right), particles can hit different points on the disk and faithfully recover the data distribution. ",
322
+ "bbox": [
323
+ 173,
324
+ 371,
325
+ 826,
326
+ 500
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "Consequently, instead of solving the Poisson equation $\\nabla ^ { 2 } \\varphi ( \\mathbf { x } ) = - p ( \\mathbf { x } )$ in the original data space, we solve the Poisson equation in an augmented space $\\tilde { \\mathbf { x } } = ( \\mathbf { x } , z ) \\in \\mathbb { R } ^ { N + 1 }$ with an additional variable $z \\in \\mathbb { R }$ . We augment the training data $\\tilde { \\mathbf { x } }$ in the new space by setting $z = 0$ such that $\\tilde { \\mathbf { x } } = ( \\mathbf { x } , 0 )$ . As a consequence, the data distribution in the augmented space is $\\tilde { p } ( \\tilde { \\mathbf { x } } ) = p ( \\mathbf { x } ) \\delta ( z )$ , where $\\delta$ is the Dirac delta function. By Eq. (3), the Poisson field by solving the new Poisson equation $\\nabla ^ { 2 } \\varphi ( \\tilde { \\mathbf { x } } ) = - \\tilde { p } ( \\tilde { \\mathbf { x } } )$ has an analytical form: ",
333
+ "bbox": [
334
+ 174,
335
+ 503,
336
+ 825,
337
+ 590
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "equation",
343
+ "img_path": "images/f56f7ed322ed6d07de15ab2cec692248f6cf98d936a9d732fd2c626117ea7697.jpg",
344
+ "text": "$$\n\\forall \\tilde { { \\mathbf { x } } } \\in \\mathbb { R } ^ { N + 1 } , \\mathbf { E } ( \\tilde { { \\mathbf { x } } } ) = - \\nabla \\varphi ( \\tilde { { \\mathbf { x } } } ) = \\frac { 1 } { S _ { N } ( 1 ) } \\int \\frac { \\tilde { { \\mathbf { x } } } - \\tilde { { \\mathbf { y } } } } { \\left\\| \\tilde { { \\mathbf { x } } } - \\tilde { { \\mathbf { y } } } \\right\\| ^ { N + 1 } } \\tilde { p } ( \\tilde { { \\mathbf { y } } } ) d \\tilde { { \\mathbf { y } } }\n$$",
345
+ "text_format": "latex",
346
+ "bbox": [
347
+ 289,
348
+ 597,
349
+ 709,
350
+ 631
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "The associated forward/backward ODEs of the Poisson field are $d \\tilde { \\mathbf { x } } / d t = \\mathbf { E } ( \\tilde { \\mathbf { x } } ) , d \\tilde { \\mathbf { x } } / d t = - \\mathbf { E } ( \\tilde { \\mathbf { x } } )$ . Intuitively, theses ODEs uniquely define trajectories of particles between the $z = 0$ hyperplane and an enclosing hemisphere (cf. Fig. 1(a)). In the following theorem, we show that the backward ODE defines a transformation between the uniform distribution on an infinite hemisphere and the data distribution $\\tilde { p } ( \\tilde { { \\mathbf x } } )$ in the $z = 0$ plane. We present the formal proof to Appendix A, illustrated by Fig. 2(b). The proof is based on the idea that when the radius of hemisphere $r \\infty$ , the data distribution $\\tilde { p } ( \\tilde { \\mathbf { x } } )$ can be effectively viewed as a delta distribution at origin. Consequently, the Poisson field points in the radial direction at $r \\infty$ , perpendicular to $S _ { N } ^ { + } ( r )$ (Green arrows in Fig. 2(b)). ",
357
+ "bbox": [
358
+ 173,
359
+ 636,
360
+ 825,
361
+ 750
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "Theorem 1. Suppose particles are sampled from a uniform distribution on the upper $( z > 0 ,$ half of the sphere of radius r and evolved by the backward ODE $\\begin{array} { r } { \\frac { d \\tilde { \\mathbf { x } } } { d t } = - \\mathbf { E } \\big ( \\tilde { \\mathbf { x } } \\big ) } \\end{array}$ until they reach the $z = 0$ hyperplane, where the Poisson field $\\mathbf { E } ( \\tilde { \\mathbf { x } } )$ is generated by the source $\\tilde { p } ( \\tilde { { \\mathbf x } } )$ . In the $r \\infty$ limit, under some mild conditions detailed in Appendix $\\cdot$ , this process generates a particle distribution $\\tilde { p } ( \\tilde { { \\mathbf x } } )$ , i.e., a distribution $p ( \\mathbf { x } )$ in the $z = 0$ hyperplane. ",
368
+ "bbox": [
369
+ 173,
370
+ 752,
371
+ 826,
372
+ 825
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "Proof sketch. Suppose the flux of the backward ODE connects a solid angle $d \\Omega$ (on $S _ { N } ^ { + } ( r ) )$ with an area $d A$ (on $\\operatorname { s u p p } ( \\tilde { p } ( \\tilde { \\mathbf { x } } ) )$ . According to Gauss’s law, the outflow flux $d \\Phi _ { o u t } = d \\Omega / S _ { N } \\bar { ( 1 ) }$ on the hemisphere (Green arrows in Fig. 2(b)) equals the inflow flux $d \\Phi _ { i n } = p ( { \\bf x } ) d A / 2$ on $\\operatorname { s u p p } ( \\tilde { p } ( \\tilde { \\mathbf { x } } ) )$ (Red arrows in Fig. 2(b)). $d \\Phi _ { i n } = d \\Phi _ { o u t }$ gives $d \\Omega / d A = p ( \\mathbf { x } ) S _ { N } ( 1 ) / 2 \\propto \\tilde { p } ( \\mathbf { \\tilde { x } } )$ . Together, by change-ofvariable, we conclude that the final distribution in the $z = 0$ hyperplane is $p ( \\mathbf { x } )$ . □ ",
379
+ "bbox": [
380
+ 174,
381
+ 833,
382
+ 821,
383
+ 862
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "",
390
+ "bbox": [
391
+ 173,
392
+ 90,
393
+ 825,
394
+ 133
395
+ ],
396
+ "page_idx": 4
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "The theorem states that starting from an infinite hemisphere, one can recover the data distribution $\\tilde { p }$ by following the inverse Poisson field $- \\mathbf { E } ( \\tilde { \\mathbf { x } } )$ . We defer the formal proof and technical assumptions of the theorem to Appendix A. The property allows generative modeling by following the Poisson flow of $\\nabla ^ { 2 } \\varphi ( \\tilde { \\mathbf { x } } ) = - \\tilde { p } ( \\tilde { \\mathbf { x } } )$ . ",
401
+ "bbox": [
402
+ 173,
403
+ 150,
404
+ 825,
405
+ 208
406
+ ],
407
+ "page_idx": 4
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "3.2 Learning the normalized Poisson Field ",
412
+ "text_level": 1,
413
+ "bbox": [
414
+ 176,
415
+ 224,
416
+ 480,
417
+ 239
418
+ ],
419
+ "page_idx": 4
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "Given a set of training data $\\mathcal { D } = \\{ \\mathbf { x } _ { i } \\} _ { i = 1 } ^ { n }$ i.i.d sampled from the data distribution $p ( \\mathbf { x } )$ , we define the =empirical version of the Poisson field (Eq. (4)) as follows: ",
424
+ "bbox": [
425
+ 173,
426
+ 250,
427
+ 823,
428
+ 279
429
+ ],
430
+ "page_idx": 4
431
+ },
432
+ {
433
+ "type": "equation",
434
+ "img_path": "images/8de60ed6b47f961bff7ed279b4d1c104d1dd296b9f1066034aae261490653d35.jpg",
435
+ "text": "$$\n\\hat { \\bf E } ( \\tilde { \\bf x } ) = c ( \\tilde { \\bf x } ) \\sum _ { i = 1 } ^ { n } \\frac { \\tilde { \\bf x } - \\tilde { \\bf x } _ { i } } { \\| \\tilde { \\bf x } - \\tilde { \\bf x } _ { i } \\| ^ { N + 1 } }\n$$",
436
+ "text_format": "latex",
437
+ "bbox": [
438
+ 398,
439
+ 286,
440
+ 598,
441
+ 321
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "where the gradient field is calculated on $n$ augmented datapoints $\\{ \\tilde { \\mathbf { x } } _ { i } = ( \\mathbf { x } _ { i } , 0 ) \\} _ { i = 1 } ^ { n }$ , and $c ( \\tilde { \\mathbf { x } } ) =$ $\\textstyle 1 / \\sum _ { i = 1 } ^ { n } { \\frac { 1 } { \\left\\| \\tilde { \\mathbf { x } } - \\tilde { \\mathbf { x } } _ { i } \\right\\| ^ { N + 1 } } }$ is the multiplier for numerical stability. We further normalize the field to resolve the variations in the magnitude of the norm $\\Vert \\hat { \\textbf { E } } ( \\tilde { \\textbf { x } } ) \\ \\Vert _ { 2 }$ , and fit the neural network to the more amenable negative normalized field $\\mathbf { v } ( \\tilde { \\mathbf { x } } ) = - \\sqrt { N } \\hat { \\mathbf { E } } ( \\tilde { \\mathbf { x } } ) / \\| \\hat { \\mathbf { E } } ( \\tilde { \\mathbf { x } } ) \\| _ { 2 }$ . The Poisson field is rescalable (cf. Section 2) and thus trajectories of its forward/backward ODEs are invariant under normalization. We denote the empirical field calculated on batch data $\\boldsymbol { B }$ by $\\hat { \\mathbf { E } } _ { B }$ and the negative normalized field as $\\mathbf { v } _ { B } ( \\tilde { \\mathbf { x } } ) = - \\sqrt { N } \\hat { \\mathbf { E } } _ { B } ( \\tilde { \\mathbf { x } } ) / \\| \\hat { \\mathbf { E } } _ { B } ( \\tilde { \\mathbf { x } } ) \\| _ { 2 }$ . ",
448
+ "bbox": [
449
+ 173,
450
+ 329,
451
+ 825,
452
+ 443
453
+ ],
454
+ "page_idx": 4
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "Similar to the scored-based models, we sample points inside the hemisphere by perturbing the augmented training data. Given a training point $\\textbf { x } \\in \\mathcal { D }$ , we add noise to its augmented version $\\{ \\tilde { \\mathbf { x } } _ { i } ^ { - } = ( \\mathbf { x } _ { i } , 0 ) \\} _ { i = 1 } ^ { n }$ to construct the perturbed point $( \\mathbf { y } , z )$ : ",
459
+ "bbox": [
460
+ 173,
461
+ 448,
462
+ 825,
463
+ 491
464
+ ],
465
+ "page_idx": 4
466
+ },
467
+ {
468
+ "type": "equation",
469
+ "img_path": "images/e7a81e3d8227333b0b956c9d6fdaa92c8336caa2824b8c93179516f33f32bf04.jpg",
470
+ "text": "$$\n\\mathbf { y } = \\mathbf { x } + \\parallel \\epsilon _ { \\mathbf { x } } \\parallel ( 1 + \\tau ) ^ { m } \\mathbf { u } , \\quad z = | \\epsilon _ { z } | ( 1 + \\tau ) ^ { m }\n$$",
471
+ "text_format": "latex",
472
+ "bbox": [
473
+ 348,
474
+ 497,
475
+ 650,
476
+ 515
477
+ ],
478
+ "page_idx": 4
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "where ${ \\epsilon } = \\left( { \\epsilon } _ { \\mathbf { x } } , { \\epsilon } _ { z } \\right) \\sim \\mathcal { N } ( 0 , \\sigma ^ { 2 } I _ { N + 1 \\times N + 1 } )$ , $\\mathbf { u } \\sim \\mathcal { U } ( S _ { N - 1 } ( 1 ) )$ and $m \\sim \\mathcal { U } [ 0 , M ]$ . The upper limit $M$ , standard deviation $\\sigma$ and $\\tau$ are hyper-parameters. With fixed $\\epsilon$ and $\\mathbf { u }$ , the added noise increases exponentially with $m$ . The rationale behind the design is that points farther away from the data support play a less important role in generative modeling, sharing a similar spirit with the choice of noisy scales in score-based models [32, 33]. ",
483
+ "bbox": [
484
+ 173,
485
+ 522,
486
+ 826,
487
+ 594
488
+ ],
489
+ "page_idx": 4
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "In practice, we sample the p ts urbing a mini-batch data $B = \\{ \\mathbf { x } _ { i } \\} _ { i = 1 } ^ { | B | }$ each iteration. We $m$ $[ 0 , M ]$ =for each datapoint. We select a large $M$ 300) to ensure the perturbed points can reach a large enough hemisphere. We use a larger batch $\\boldsymbol { B } _ { L }$ for the estimation of normalized field since the empirical normalized field is biased, which empirically gives better results. Denoting the set of perturbed points as $\\{ \\tilde { \\mathbf { y } } _ { i } \\} _ { i = 1 } ^ { | B | }$ , we train the neural network $f _ { \\theta }$ =on these points to estimate the negative normalized field by minimizing the following loss: ",
494
+ "bbox": [
495
+ 173,
496
+ 599,
497
+ 825,
498
+ 690
499
+ ],
500
+ "page_idx": 4
501
+ },
502
+ {
503
+ "type": "equation",
504
+ "img_path": "images/267bd119595567558b0a74a4a1831aacb48d9aad01458f9169bbd40b572ce3f8.jpg",
505
+ "text": "$$\n\\mathcal { L } ( \\boldsymbol { \\theta } ) = \\frac { 1 } { | \\mathcal { B } | } \\sum _ { i = 1 } ^ { | \\mathcal { B } | } \\parallel f _ { \\boldsymbol { \\theta } } \\big ( \\tilde { \\mathbf { y } } _ { i } \\big ) - \\mathbf { v } _ { \\mathcal { B } _ { L } } \\big ( \\tilde { \\mathbf { y } } _ { i } \\big ) \\parallel _ { 2 } ^ { 2 }\n$$",
506
+ "text_format": "latex",
507
+ "bbox": [
508
+ 372,
509
+ 698,
510
+ 625,
511
+ 738
512
+ ],
513
+ "page_idx": 4
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "We summarize the training process in Algorithm 1. In practice, we add a small constant $\\gamma$ to the denominator of the normalized field to overcome the numerical issue when $\\exists i , \\left\\| \\tilde { \\mathbf { x } } - \\tilde { \\mathbf { x } } _ { i } \\right\\| \\approx 0$ . ",
518
+ "bbox": [
519
+ 173,
520
+ 743,
521
+ 821,
522
+ 773
523
+ ],
524
+ "page_idx": 4
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "3.3 Backward ODE anchored by the additional dimension ",
529
+ "text_level": 1,
530
+ "bbox": [
531
+ 173,
532
+ 789,
533
+ 591,
534
+ 805
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "After estimating the normalized field $\\mathbf { v }$ , we can sample from the data distribution by the backward ODE $d { \\tilde { \\mathbf { x } } } = \\mathbf { v } ( { \\tilde { \\mathbf { x } } } ) d t$ . Nevertheless, the boundary condition of the above ODE is unclear: the starting and terminal time $t$ of the ODE are both unknown. To remedy the issue, we propose an equivalent backward ODE in which $\\mathbf { x }$ evolves with the augmented variable $z$ : ",
541
+ "bbox": [
542
+ 173,
543
+ 815,
544
+ 825,
545
+ 871
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "equation",
551
+ "img_path": "images/6a077a3c370ba6f955394864da8dd52fa6d1d64d41dacb58fe358b5d5b9cba4a.jpg",
552
+ "text": "$$\nd ( \\mathbf { x } , z ) = ( \\frac { d \\mathbf { x } } { d t } \\frac { d t } { d z } d z , d z ) = ( \\mathbf { v } ( \\tilde { \\mathbf { x } } ) _ { \\mathbf { x } } \\mathbf { v } ( \\tilde { \\mathbf { x } } ) _ { z } ^ { - 1 } , 1 ) d z\n$$",
553
+ "text_format": "latex",
554
+ "bbox": [
555
+ 338,
556
+ 878,
557
+ 661,
558
+ 910
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "Algorithm 1 Learning the normalized Poisson Field ",
565
+ "bbox": [
566
+ 178,
567
+ 92,
568
+ 516,
569
+ 106
570
+ ],
571
+ "page_idx": 5
572
+ },
573
+ {
574
+ "type": "table",
575
+ "img_path": "images/7fb9bff56e4d77cca1acec77cbc61c1cdab6b3654cb5169569ef79914e39aaec.jpg",
576
+ "table_caption": [],
577
+ "table_footnote": [],
578
+ "table_body": "<table><tr><td>Input: Training iteration T,Initial model fe,dataset D,constant y,learning rate n. fort=1...Tdo</td></tr><tr><td>from BL |B|</td></tr><tr><td>Simulate the ODE: {yi = perturb(xi) Ji=1 Calculate the normalized field by BL: VB (yi)=-√NEB,(yi)/(ll EB (yi) Il2 +γ), ∀i</td></tr><tr><td>|l f(yi)-vBL(yi)l² i1</td></tr><tr><td>Update the model parameter: 0 = 0 - nVL(0)</td></tr><tr><td>end for</td></tr><tr><td>return fe</td></tr></table>",
579
+ "bbox": [
580
+ 186,
581
+ 109,
582
+ 810,
583
+ 255
584
+ ],
585
+ "page_idx": 5
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "Algorithm 2 perturb $\\cdot$ ",
590
+ "text_level": 1,
591
+ "bbox": [
592
+ 174,
593
+ 272,
594
+ 334,
595
+ 286
596
+ ],
597
+ "page_idx": 5
598
+ },
599
+ {
600
+ "type": "table",
601
+ "img_path": "images/74417a23e4e9403cebdbaa2f88f9cfd5ae1d39e86836ea35c9978940c4283dea.jpg",
602
+ "table_caption": [],
603
+ "table_footnote": [],
604
+ "table_body": "<table><tr><td>Sample the power m ~U[0,M] Sample the initial noise (∈x,∈z)~N(O,σ²I(N+1)x(N+1))</td></tr><tr><td>Uniformly sample the vector from the unit ball u ~U(SN(1))</td></tr><tr><td>Construct training point y = x+ | x I (1 + 𝑇)mu, z = |∈zl(1 + T)m</td></tr><tr><td>return y = (y, z)</td></tr></table>",
605
+ "bbox": [
606
+ 183,
607
+ 291,
608
+ 633,
609
+ 367
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "where $\\mathbf { v } ( \\tilde { \\mathbf { x } } ) _ { \\mathbf { x } } , \\mathbf { v } ( \\tilde { \\mathbf { x } } ) _ { z }$ are the corresponding components of $\\mathbf x , z$ in vector $\\mathbf { v } ( \\tilde { \\mathbf { x } } )$ . In the new ODE, we replace the time variable $t$ with the physically meaningful variable $z$ , permitting explicit starting and terminal conditions: when $z = 0$ , we arrive at the data distribution and we can freely choose a large $z _ { \\mathrm { m a x } }$ as the starting point in the backward ODE. The backward ODE is compatible with general-purpose ODE solvers, e.g., RK45 method [23] and forward Euler method. The popular black-box ODE solvers, such as the one in Scipy library [37], typically use a common starting time for the same batch of samples. Since the distribution on the $z = z _ { \\mathrm { m a x } }$ hyperplane is no longer uniform, we derive the prior distribution by radially projecting uniform distribution on the hemisphere with radius $r = z _ { \\mathrm { m a x } }$ to the $z = z _ { \\mathrm { m a x } }$ hyperplane: ",
616
+ "bbox": [
617
+ 173,
618
+ 395,
619
+ 826,
620
+ 521
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "equation",
626
+ "img_path": "images/03be1377e92c170e073289fe6be3fd20a032dbd69bc6fb33c5bc2307c712fdc3.jpg",
627
+ "text": "$$\np _ { \\mathrm { p r i o r } } ( \\mathbf { x } ) = { \\frac { 2 z _ { \\mathrm { m a x } } ^ { N + 1 } } { S _ { N } { \\big ( } z _ { \\mathrm { m a x } } { \\big ) } { \\big ( } \\| \\mathbf { x } \\| _ { 2 } ^ { 2 } + z _ { \\mathrm { m a x } } ^ { 2 } { \\big ) } ^ { \\frac { N + 1 } { 2 } } } } = { \\frac { 2 z _ { \\mathrm { m a x } } } { S _ { N } { \\big ( } 1 { \\big ) } { \\big ( } \\| \\mathbf { x } \\| _ { 2 } ^ { 2 } + z _ { \\mathrm { m a x } } ^ { 2 } { \\big ) } ^ { \\frac { N + 1 } { 2 } } } }\n$$",
628
+ "text_format": "latex",
629
+ "bbox": [
630
+ 267,
631
+ 526,
632
+ 730,
633
+ 565
634
+ ],
635
+ "page_idx": 5
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "where $S _ { N } ( r )$ is the surface area of $N$ -sphere with radius $r$ . The reason behind the radial projection is that the Poisson field points in the radial direction at $r \\infty$ . The new backward ODE also defines a bijective transformation between $p _ { \\mathrm { p r i o r } } ( \\mathbf { x } )$ on the infinite hyperplane $z _ { \\mathrm { m a x } } \\infty$ ) and the data distribution the norm (r $\\tilde { p } ( \\tilde { { \\mathbf x } } )$ , analogous to Theorem ) from the distribution: $p _ { \\mathrm { p r i o r } } ( \\mathbf { x } )$ to sampleand then $p _ { \\mathrm { r a d i u s } } ( \\| \\textbf { x } \\| _ { 2 } ) \\propto \\| \\textbf { x } \\| _ { 2 } ^ { N - 1 } / ( \\| \\textbf { x } \\| _ { 2 } ^ { 2 } + z _ { \\operatorname* { m a x } } ^ { 2 } ) ^ { \\frac { N + 1 } { 2 } }$ uniformly sample its angle. We provide detailed derivations and practical sampling procedure in Appendix A.4. We further achieve exponential decay on the $z$ dimension by introducing a new variable $t ^ { \\prime }$ : ",
640
+ "bbox": [
641
+ 173,
642
+ 570,
643
+ 825,
644
+ 686
645
+ ],
646
+ "page_idx": 5
647
+ },
648
+ {
649
+ "type": "equation",
650
+ "img_path": "images/646814215122bed857b46f4e0d543f1b8287dd5a0d4e674bbbfce9f8fe8215a8.jpg",
651
+ "text": "$$\n\\begin{array} { r l } { [ \\mathrm { B a c k w a r d ~ O D E } ] } & { { } d ( \\mathbf { x } , z ) = ( \\mathbf { v } ( \\tilde { \\mathbf { x } } ) _ { \\mathbf { x } } \\mathbf { v } ( \\tilde { \\mathbf { x } } ) _ { z } ^ { - 1 } z , z ) d t ^ { \\prime } } \\end{array}\n$$",
652
+ "text_format": "latex",
653
+ "bbox": [
654
+ 320,
655
+ 693,
656
+ 678,
657
+ 712
658
+ ],
659
+ "page_idx": 5
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "The $z$ component in the backward ODE, i.e., $d z = z d t ^ { \\prime }$ , can be solved by $z = e ^ { t ^ { \\prime } }$ . Since $z$ reaches zero as $t ^ { \\prime } \\to - \\infty$ , we instead choose a tiny positive number $z _ { \\mathrm { m i n } }$ as the terminal condition. The corresponding starting/terminal time of the variable $t ^ { \\prime }$ are $\\log z _ { \\operatorname* { m a x } } / \\log z _ { \\operatorname* { m i n } }$ respectively. Empirically, this simple change of variable leads to $2 \\times$ faster sampling with almost no harm to the sample quality. In addition, we substitue the predicted $\\mathbf { v } ( \\tilde { \\mathbf { x } } ) _ { z }$ with a more accurate one when $z$ is small (Appendix B.2.3). We defer more details of the simulation of backward ODE to Appendix B.2. ",
664
+ "bbox": [
665
+ 173,
666
+ 720,
667
+ 826,
668
+ 805
669
+ ],
670
+ "page_idx": 5
671
+ },
672
+ {
673
+ "type": "text",
674
+ "text": "4 Generative Modeling via the Backward ODE ",
675
+ "text_level": 1,
676
+ "bbox": [
677
+ 173,
678
+ 823,
679
+ 581,
680
+ 842
681
+ ],
682
+ "page_idx": 5
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "In this section, we demonstrate the effectiveness of the backward ODE associated with PFGM on image generation tasks. In Section 4.1, we show that PFGM achieves currently best in class performance in the normalizing flow family. In comparison to the existing state-of-the-art SDE or MCMC approaches, PFGM exhibits $1 0 \\times$ or $2 0 \\times$ acceleration while maintaining competitive or higher generation quality. Meanwhile, unlike existing ODE baselines that heavily rely on corrector to generate decent samples on weaker architectures, PFGM exhibits greater stability against error (Section 4.2). Finally, we show that PFGM is robust to the step size in the Euler method (Section 4.3), and its associated ODE allows for likelihood evaluation and image manipulation by editing the latent space (Section 4.4). ",
687
+ "bbox": [
688
+ 174,
689
+ 854,
690
+ 825,
691
+ 911
692
+ ],
693
+ "page_idx": 5
694
+ },
695
+ {
696
+ "type": "table",
697
+ "img_path": "images/7c3d937df96eeba6b761d69681617432cc07eabcf1315e03c91e0d3578953cd3.jpg",
698
+ "table_caption": [
699
+ "Table 1: CIFAR-10 sample quality (FID, Inception) and number of function evaluation (NFE). "
700
+ ],
701
+ "table_footnote": [],
702
+ "table_body": "<table><tr><td></td><td>Invertible?</td><td>Inception ↑</td><td>FID↓</td><td>NFE↓</td></tr><tr><td>PixelCNN[36]</td><td></td><td>4.60</td><td>65.9</td><td>1024</td></tr><tr><td>IGEBM[8]</td><td></td><td>6.02</td><td>40.6</td><td>60</td></tr><tr><td>ViTGAN [24]</td><td></td><td>9.30</td><td>6.66</td><td>1</td></tr><tr><td>StyleGAN2-ADA [17]</td><td></td><td>9.83</td><td>2.92</td><td>1</td></tr><tr><td>StyleGAN2-ADA (cond.) [17]</td><td>xxxxxxxxxx</td><td>10.14</td><td>2.42</td><td>1</td></tr><tr><td>NCSN[31]</td><td></td><td>8.87</td><td>25.32</td><td>1001</td></tr><tr><td>NCSNv2 [32]</td><td></td><td>8.40</td><td>10.87</td><td>1161</td></tr><tr><td>DDPM[16]</td><td></td><td>9.46</td><td>3.17</td><td>1000</td></tr><tr><td>NCSN++ VE-SDE[33]</td><td></td><td>9.83</td><td>2.38</td><td>2000</td></tr><tr><td>NCSN++ deep VE-SDE [33]</td><td></td><td>9.89</td><td>2.20</td><td>2000</td></tr><tr><td>Glow [19]</td><td></td><td>3.92</td><td>48.9</td><td>1</td></tr><tr><td>DDIM,T=50 [30]</td><td></td><td>-</td><td>4.67</td><td>50</td></tr><tr><td>DDIM, T=100 [30]</td><td></td><td>1</td><td>4.16</td><td>100</td></tr><tr><td>NCSN++ VE-ODE [33]</td><td></td><td>9.34</td><td>5.29</td><td>194</td></tr><tr><td>NCSN++ deep VE-ODE[33]</td><td></td><td>9.17</td><td>7.66</td><td>194</td></tr><tr><td colspan=\"5\">DDPM++backbone</td></tr><tr><td>VP-SDE[33]</td><td></td><td>9.58</td><td>2.55</td><td>1000</td></tr><tr><td>sub-VP-SDE[33]</td><td>xx-</td><td>9.56</td><td>2.61</td><td>1000</td></tr><tr><td>VP-ODE [33]</td><td></td><td>9.46</td><td>2.97</td><td>134</td></tr><tr><td>sub-VP-ODE [33]</td><td></td><td>9.30</td><td>3.16</td><td>146</td></tr><tr><td>PFGM (ours)</td><td></td><td>9.65</td><td>2.48</td><td>104</td></tr><tr><td colspan=\"5\">DDPM++ deep backbone</td></tr><tr><td>VP-SDE [33]</td><td></td><td>9.68</td><td>2.41</td><td>1000</td></tr><tr><td>sub-VP-SDE[33]</td><td>xx-</td><td>9.57</td><td>2.41</td><td>1000</td></tr><tr><td>VP-ODE [33]</td><td></td><td>9.47</td><td>2.86</td><td>134</td></tr><tr><td>sub-VP-ODE [33]</td><td></td><td>9.40</td><td>3.05</td><td>146</td></tr><tr><td>PFGM (ours)</td><td></td><td>9.68</td><td>2.35</td><td>110</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr></table>",
703
+ "bbox": [
704
+ 254,
705
+ 109,
706
+ 738,
707
+ 515
708
+ ],
709
+ "page_idx": 6
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "",
714
+ "bbox": [
715
+ 174,
716
+ 535,
717
+ 826,
718
+ 606
719
+ ],
720
+ "page_idx": 6
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "4.1 Efficient image generation by PFGM ",
725
+ "text_level": 1,
726
+ "bbox": [
727
+ 176,
728
+ 622,
729
+ 468,
730
+ 637
731
+ ],
732
+ "page_idx": 6
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "Setup For image generation tasks, we consider the CIFAR-10 [22], CelebA $6 4 \\times 6 4$ [38] and LSUN bedroom $2 5 6 \\times 2 5 6$ [39]. Following [32], we first center-crop the CelebA images and then resize them to $6 4 \\times 6 4$ . We choose $M \\ : = \\ : 2 9 1$ CIFAR-10 and CelebA 356 LSUN bedroom , $\\sigma ~ = ~ 0 . 0 1$ and $\\tau { \\it \\Delta \\phi } = 0 . 0 3$ for the perturbation Algorithm 2, and $z _ { \\mathrm { m i n } } ~ = ~ 1 e \\mathrm { ~ - ~ } 3$ , $\\begin{array} { r l } { z _ { \\operatorname* { m a x } } } & { { } = } \\end{array}$ 40 CIFAR-10 60 CelebA $6 4 ^ { 2 }$ 100 LSUN bedroom for the backward ODE. We further clip the norms of initial samples into $( 0 , 3 0 0 0 )$ for CIFAR-10, $( 0 , 6 0 0 0 )$ for CelebA $6 4 ^ { 2 }$ and $( 0 , 3 0 0 0 0 )$ for LSUN bedroom. We adopt the $\\mathrm { { D D P M + + } }$ and $\\mathrm { { D D P M + + } }$ deep architectures [33] as our backbones. We add the scalar $z$ (resp. predicted direction on $z$ ) as input (resp. output) to accommodate the additional dimension. We take the same set of hyper-parameters, such as batch size, learning rate and training iterations from [33]. We provide more training details in Appendix B.1, and discuss how to set these hyper-parameters for general datasets in B.1.1 and B.2.1. ",
737
+ "bbox": [
738
+ 173,
739
+ 647,
740
+ 826,
741
+ 799
742
+ ],
743
+ "page_idx": 6
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "Baselines We compare PFGM to modern autoregressive model [36], GAN [17, 24], normalizing flow [19] and EBM [8]. We also compare with variants of score-based models such as DDIM [30] and current state-of-the-art SDE/ODE methods [33]. We denote the methods that use forward-time SDEs in [33] such as Variance Exploding (VE) SDE/Variance Preserving (VP) SDE/ sub-Variance Preserving (sub-VP), and the corresponding backward SDE/ODE, as A-B, where $\\mathbf { A } \\in \\{ \\mathrm { V E }$ , VP, sub- $\\mathrm { V P } \\}$ and $\\mathbf { B } \\in \\{ \\mathrm { S D E } , \\mathrm { O D E } \\}$ . We follow the model selection protocol in [33], which selects the checkpoint with the smallest FID score over the course of training every 50k iterations. ",
748
+ "bbox": [
749
+ 174,
750
+ 814,
751
+ 825,
752
+ 911
753
+ ],
754
+ "page_idx": 6
755
+ },
756
+ {
757
+ "type": "image",
758
+ "img_path": "images/765d37140b6f169aca43c335a32e1ca5fc5bf14d8e90ab0f9dcca04e90401859.jpg",
759
+ "image_caption": [
760
+ "Figure 3: Uncurated samples on datasets of increasing resolution. From left to right: CIFAR-10 $3 2 \\times 3 2$ , CelebA $6 4 \\times 6 4$ and LSUN bedroom $2 5 6 \\times 2 5 6$ . "
761
+ ],
762
+ "image_footnote": [],
763
+ "bbox": [
764
+ 174,
765
+ 89,
766
+ 821,
767
+ 257
768
+ ],
769
+ "page_idx": 7
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "Numerical Solvers The backward ODE (Eq. (6)) is compatible with any general purpose ODE solver. In our experiments, the default solver of ODEs is the black box solver in the Scipy library [37] with the RK45 [7] method (RK45), unless otherwise specified. For VE/VP/subVP-SDEs, we use the predictor-corrector (PC) sampler introduced in [33]. For VP/sub-VP-SDEs, we apply the predictor-only sampler, because its performance is on par with the PC sampler while requiring half computation. ",
774
+ "bbox": [
775
+ 173,
776
+ 318,
777
+ 825,
778
+ 401
779
+ ],
780
+ "page_idx": 7
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "Results For quantitative evaluation on CIFAR-10, we report the Inception [29] (higher is better) and FID [13] scores (lower is better) in Table 1. We also include our preliminary experimental results on a weaker architecture NCSNv2 [32] in Appendix D.2. We measure the inference speed by the average NFE (number of function evaluation). We also explicitly indicate which methods belong to the invertible flow family. ",
785
+ "bbox": [
786
+ 174,
787
+ 420,
788
+ 825,
789
+ 491
790
+ ],
791
+ "page_idx": 7
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "Our main findings are: (1) PFGM achieves the best Inception scores and FID scores among the normalizing flow models. Specifically, PFGM obtains an Inception score of 9.68 and a FID score of 2.48 using the $\\mathrm { D D P M + + }$ deep architecture. To our best knowledge, these are the highest FID and Inception scores by flow models on CIFAR-10. (2) PFGM achieves a $1 0 \\times \\sim 2 0 \\times$ faster inference speed than the SDE methods using the similar architectures, while retaining comparable sample quality. As shown in Table 1, PFGM requires NFEs of 110 whereas the SDE methods typically use $1 0 0 0 \\sim 2 0 0 0$ inference steps. PFGM outperforms all the baselines on $\\mathrm { { D D P M + + } }$ in all metrics. In addition, PFGM generally samples faster than other ODE baselines with the same RK45 solver. (3) The backward ODE in PFGM is compatible with architectures with varying capacities. PFGM consistently outperforms other ODE baselines on $\\mathrm { D D P M + + }$ (Table 1) or NCSNv2 (Appendix D.2) backbones. (4) PFGM shows scalability to higher resolution datasets. In Appendix D.1, we show that PFGM are capable of scale-up to LSUN bedroom $2 5 6 \\times 2 5 6$ . In particular, PFGM has comparable performance with VE-SDE with $1 5 \\times$ fewer NFE. ",
796
+ "bbox": [
797
+ 173,
798
+ 497,
799
+ 826,
800
+ 676
801
+ ],
802
+ "page_idx": 7
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "In Fig. 3, we visualize the uncurated samples from PFGM on CIFAR-10, CelebA $6 4 \\times 6 4$ and LSUN bedroom $2 5 6 \\times 2 5 6$ . We provides more samples in Appendix E. ",
807
+ "bbox": [
808
+ 174,
809
+ 683,
810
+ 820,
811
+ 710
812
+ ],
813
+ "page_idx": 7
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "4.2 Failure of VE/VP-ODEs on NCSNv2 architecture ",
818
+ "text_level": 1,
819
+ "bbox": [
820
+ 173,
821
+ 731,
822
+ 555,
823
+ 746
824
+ ],
825
+ "page_idx": 7
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "In our preliminary experiments on NCSNv2 architectures, we empirically observe that the VE/VP-ODEs have FID scores greater than 90 on CIFAR-10. In particular, VE/VP-ODEs can only generate decent samples when applying the Langevin dynamics corrector, and even then, their performances are still inferior to PFGM (Table 9, Table 10). The poor performance on NCSNv2 stands in striking contrast to their high sample quality on $\\mathrm { N C S N + + / D D P M + + }$ in [33]. It indicates that the VE/VP-ODEs are ",
830
+ "bbox": [
831
+ 174,
832
+ 758,
833
+ 485,
834
+ 911
835
+ ],
836
+ "page_idx": 7
837
+ },
838
+ {
839
+ "type": "image",
840
+ "img_path": "images/b8860bcda32dab2d49f72ab93a489b264c43c232817b6c997c0142ac14f89d96.jpg",
841
+ "image_caption": [
842
+ "Figure 4: Sample norm distributions with varying time variables $\\sigma$ for VE-ODE and $z$ for PFGM) "
843
+ ],
844
+ "image_footnote": [],
845
+ "bbox": [
846
+ 504,
847
+ 758,
848
+ 821,
849
+ 869
850
+ ],
851
+ "page_idx": 7
852
+ },
853
+ {
854
+ "type": "image",
855
+ "img_path": "images/8f1d6bfd2fc3172f6a771fae4fc3892a6d968815e5d64788e0ff673cb1dd4cc0.jpg",
856
+ "image_caption": [
857
+ "Figure 5: (a) Norm- $\\cdot \\sigma ( t )$ relation during the backward sampling of VE-ODE (Euler). (b) Norm- $z ( t ^ { \\prime } )$ relation during the backward sampling of PFGM (Euler). The shaded areas mean the standard deviation of norms. (c) Number of steps versus FID score. "
858
+ ],
859
+ "image_footnote": [],
860
+ "bbox": [
861
+ 200,
862
+ 94,
863
+ 802,
864
+ 233
865
+ ],
866
+ "page_idx": 8
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "more susceptible to estimation errors than PFGM. We hypothesize that the strong norm- $\\sigma$ correla tion seen during the training of score-based models causes the problem. ",
871
+ "bbox": [
872
+ 173,
873
+ 308,
874
+ 821,
875
+ 335
876
+ ],
877
+ "page_idx": 8
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "For score-based models, the $l _ { 2 }$ norms of perturbed training samples and the standard deviations $\\sigma ( t )$ of Gaussian noises have strong correlation, e. $g . , l _ { 2 } \\ \\mathrm { n o r m } \\approx \\sigma ( t ) \\sqrt { N }$ for large $\\sigma ( t )$ in VE [33]. In contrast, as shown in Fig. 4, PFGM allocates high mass across a wide spectrum of the training sample norms. During sampling, VE/VP-ODEs could break down when the trajectories of backward ODEs deviate from the norm- $\\cdot \\sigma ( t )$ relation to which most training samples pertain. The weaker NCSNv2 backbone incurs larger errors and thus leads to their failure. The PFGM is more resistant to estimate errors because of the greater range of training sample norms. ",
882
+ "bbox": [
883
+ 173,
884
+ 342,
885
+ 825,
886
+ 441
887
+ ],
888
+ "page_idx": 8
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "To further verify the hypothesis above, we split a batch of VE-ODE samples into cleaner and noisier samples according to visual quality (Fig. 8(a)). In Fig. 5(a), we investigate the relation for cleaner and noisier samples during the forward Euler simulation of VE-ODE when $\\sigma ( t ) < 1 5$ . We can see that the trajectory of cleaner samples stays close to the norm- $\\sigma ( t )$ relation (the red dash line), whereas that of the noisier samples diverges from the relation. The Langevin dynamics corrector changes the trajectory of noisier samples to align with the relation. Fig. 5(b) further shows that the anchored variable $z ( t ^ { \\prime } )$ and the norms in the backward ODE of PFGM are not strongly correlated, giving rise to the robustness against the imprecise estimation on NCSNv2. We defer more details to Appendix C. ",
893
+ "bbox": [
894
+ 173,
895
+ 446,
896
+ 825,
897
+ 559
898
+ ],
899
+ "page_idx": 8
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "4.3 Effects of step size in the forward Euler method ",
904
+ "text_level": 1,
905
+ "bbox": [
906
+ 174,
907
+ 574,
908
+ 544,
909
+ 589
910
+ ],
911
+ "page_idx": 8
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "In order to accelerate the inference speed of ODEs, we can increase the step size (decrease the NFEs) in numerical solvers such as the forward Euler method. It also enables the trade-off between sample quality and computational efficiency in real-world deployment. We study the effects of increasing step size on PFGM, VP-ODE and DDIM [30] using the forward Euler method, with a varying NFE ranging from 10 to 100. ",
916
+ "bbox": [
917
+ 173,
918
+ 599,
919
+ 825,
920
+ 669
921
+ ],
922
+ "page_idx": 8
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "In Fig. 5(c), we report the sample quality measured by FID scores on CIFAR-10. As expected, all the methods have higher FID scores when decreasing the NFE. We observe that the sample quality of PFGM degrades gracefully as we decrease the NFE. Our method shows significantly better robustness to step sizes than the VP-ODE, especially when only taking a few Euler steps. In addition, PFGM obtains better FID scores than DDIM on most NFEs except for 10 where PFGM is marginally worse. This suggests that the PFGM is a promising method for accommodating instantaneous resource availability, as high-quality samples can be generated in limited steps. ",
927
+ "bbox": [
928
+ 173,
929
+ 675,
930
+ 825,
931
+ 773
932
+ ],
933
+ "page_idx": 8
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "4.4 Utilities of ODE: likelihood evaluation and latent representation ",
938
+ "text_level": 1,
939
+ "bbox": [
940
+ 173,
941
+ 789,
942
+ 656,
943
+ 804
944
+ ],
945
+ "page_idx": 8
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "Similar to the family of discrete normalizing flows [6, 19, 14] and continuous probability flow [33], the forward ODE in PFGM defines an invertible mapping between the data space and latent space with a known prior. Formally, we define the invertible forward $\\mathcal { M }$ mapping by integrating the corresponding forward ODE $\\begin{array} { r } { \\dot { d } ( \\mathbf { x } , z ) = ( \\mathbf { v } ( \\tilde { \\mathbf { x } } ) _ { \\mathbf { x } } \\mathbf { v } ( \\tilde { \\mathbf { x } } ) _ { z } ^ { - 1 } z , z ) d t ^ { \\prime } } \\end{array}$ of Eq. (6): ",
950
+ "bbox": [
951
+ 174,
952
+ 814,
953
+ 826,
954
+ 871
955
+ ],
956
+ "page_idx": 8
957
+ },
958
+ {
959
+ "type": "equation",
960
+ "img_path": "images/de973ce12148d28895bba204e84e1d40f37ef0fa8b8705e90efc4d27d0ee8a19.jpg",
961
+ "text": "$$\n\\mathbf { x } ( \\log z _ { \\operatorname* { m a x } } ) = \\mathcal { M } ( \\mathbf { x } ( \\log z _ { \\operatorname* { m i n } } ) ) \\equiv \\mathbf { x } ( \\log z _ { \\operatorname* { m i n } } ) + \\int _ { \\log z _ { \\operatorname* { m i n } } } ^ { \\log z _ { \\operatorname* { m a x } } } \\mathbf { v } ( \\mathbf { x } ( t ^ { \\prime } ) ) _ { \\mathbf { x } } \\mathbf { v } ( \\tilde { \\mathbf { x } } ( t ^ { \\prime } ) ) _ { z } ^ { - 1 } e ^ { t ^ { \\prime } } d t ^ { \\prime }\n$$",
962
+ "text_format": "latex",
963
+ "bbox": [
964
+ 220,
965
+ 877,
966
+ 776,
967
+ 910
968
+ ],
969
+ "page_idx": 8
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "where $\\log z _ { \\mathrm { m i n } } / \\log z _ { \\mathrm { m a x } }$ are the starting/terminal time in the forward ODE. The forward mapping transfers the data distribution to the prior distribution $p _ { \\mathrm { p r i o r } }$ on the $z = z _ { \\mathrm { m a x } }$ hyperplane (cf. Section 3.3): $p _ { \\mathrm { p r i o r } } \\big ( \\mathbf { x } \\big ( \\log z _ { \\mathrm { m a x } } \\big ) \\big ) = \\mathcal { M } \\big ( p ( \\mathbf { x } ( \\log \\bar { z } _ { \\mathrm { m i n } } ) ) \\big )$ . The invertibility enables likelihood evaluation and creates a meaningful latent space on the $z = z _ { \\mathrm { m a x } }$ hyperplane. In addition, we can adapt to the computational constraints by adjusting the step size or the precision in numerical ODE solvers. ",
974
+ "bbox": [
975
+ 173,
976
+ 90,
977
+ 825,
978
+ 161
979
+ ],
980
+ "page_idx": 9
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "Likelihood evaluation We evaluate the data likelihood by the instantaneous change-of-variable formula [4, 33]. In Table 2, we report the bits/dim on the uniformly dequantized CIFAR-10 test set and compare with existing baselines that use the same setup. We observe that PFGM achieves better likelihoods than discrete normalizing flow models, even without maximum likelihood training. Among the continuous flow models, sub-VP-ODE shows the lowest bits/dim, although its sample quality is worse than VP-ODE and PFGM (Table 1). The exploration of the seeming trade-off between likelihood and sample quality is left for future works. ",
985
+ "bbox": [
986
+ 174,
987
+ 166,
988
+ 550,
989
+ 333
990
+ ],
991
+ "page_idx": 9
992
+ },
993
+ {
994
+ "type": "table",
995
+ "img_path": "images/c452efcad2fd82bbc0d70344e1698d29d6fa874798cc81029b380d62e987b32d.jpg",
996
+ "table_caption": [
997
+ "Table 2: Bits/dim on CIFAR-10 "
998
+ ],
999
+ "table_footnote": [],
1000
+ "table_body": "<table><tr><td></td><td>bits/dim ↓</td></tr><tr><td>RealNVP [6]</td><td>3.49</td></tr><tr><td>Glow [19] Residual Flow [3]</td><td>3.35 3.28</td></tr><tr><td>Flow++ [14]</td><td>3.29</td></tr><tr><td>DDPM(L)[16]</td><td>≤3.70*</td></tr><tr><td>DDPM++backbone</td><td></td></tr><tr><td>VP-ODE [33]</td><td>3.20</td></tr><tr><td>sub-VP-ODE[33]</td><td>3.02</td></tr><tr><td>PFGM (ours)</td><td>3.19</td></tr></table>",
1001
+ "bbox": [
1002
+ 599,
1003
+ 188,
1004
+ 785,
1005
+ 320
1006
+ ],
1007
+ "page_idx": 9
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "Latent representation Since the samples are uniquely identifiable by their latents via the invertible mapping $\\mathcal { M }$ , PFGM further supports image manipulation using its latent representation on the $z =$ $z _ { \\mathrm { m a x } }$ hyperplane. We include the results of image interpolation and the temperature scaling [6, 19, 33] to Appendix D.4 and Appendix D.5. For interpolation, it shows that we can travel along the latent space to obtain perceptually consistent interpolations between CelebA images. ",
1012
+ "bbox": [
1013
+ 174,
1014
+ 339,
1015
+ 825,
1016
+ 409
1017
+ ],
1018
+ "page_idx": 9
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "5 Conclusion ",
1023
+ "text_level": 1,
1024
+ "bbox": [
1025
+ 174,
1026
+ 428,
1027
+ 299,
1028
+ 444
1029
+ ],
1030
+ "page_idx": 9
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "We present a new deep generative model by solving the Poisson equation whose source term is the data distribution. We estimate the normalized gradient field of the solution in an augmented space with an additional dimension. For sampling, we devise a backward ODE that exponential decays on the physically meaningful additional dimension. Empirically, our approach has currently best performance over other normalizing flow baselines, and achieving $1 0 \\times$ to $2 0 \\times$ acceleration over the stochastic methods. Our backward ODE shows greater stability against errors than popular ODE-based methods, and enables efficient adaptive sampling. We further demonstrate the utilities of the forward ODE on likelihood evaluation and image interpolation. Future directions include improving the normalization of Poisson fields. More principled approaches can be used to get around the divergent near-field behavior. For example, we may exploit renormalization, a useful tool in physics, to make the Poisson field well-behaved in near fields. ",
1035
+ "bbox": [
1036
+ 174,
1037
+ 459,
1038
+ 825,
1039
+ 611
1040
+ ],
1041
+ "page_idx": 9
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "Acknowledgements ",
1046
+ "text_level": 1,
1047
+ "bbox": [
1048
+ 176,
1049
+ 631,
1050
+ 338,
1051
+ 647
1052
+ ],
1053
+ "page_idx": 9
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "We are grateful to Shangyuan Tong, Timur Garipov and Yang Song for helpful discussion. We would like to thank Octavian Ganea and Wengong Jin for reviewing an early draft of this paper. YX and TJ acknowledge support from MIT-DSTA Singapore collaboration, from NSF Expeditions grant (award 1918839) ”Understanding the World Through Code”, and from MIT-IBM Grand Challenge project. ZL and MT would like to thank the Center for Brains, Minds, and Machines (CBMM) for hospitality. ZL and MT are supported by The Casey and Family Foundation, the Foundational Questions Institute, the Rothberg Family Fund for Cognitive Science and IAIFI through NSF grant PHY-2019786. ",
1058
+ "bbox": [
1059
+ 173,
1060
+ 661,
1061
+ 826,
1062
+ 758
1063
+ ],
1064
+ "page_idx": 9
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "References \n[1] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. ArXiv, abs/1809.11096, 2019. \n[2] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, T. J. Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeff Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. ArXiv, abs/2005.14165, 2020. \n[3] Ricky T. Q. Chen, Jens Behrmann, David Kristjanson Duvenaud, and Jorn-Henrik Jacobsen. ¨ Residual flows for invertible generative modeling. ArXiv, abs/1906.02735, 2019. \n[4] Tian Qi Chen, Yulia Rubanova, Jesse Bettencourt, and David Kristjanson Duvenaud. Neural ordinary differential equations. ArXiv, abs/1806.07366, 2018. \n[5] Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in Neural Information Processing Systems, 34:8780–8794, 2021. \n[6] Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real nvp. ArXiv, abs/1605.08803, 2017. \n[7] J. R. Dormand and P. J. Prince. A family of embedded runge-kutta formulae. Journal of Computational and Applied Mathematics, 6:19–26, 1980. \n[8] Yilun Du and Igor Mordatch. Implicit generation and generalization in energy-based models. ArXiv, abs/1903.08689, 2019. \n[9] Herbert Goldstein, Charles Poole, and John Safko. Classical mechanics, 2002. \n[10] Will Grathwohl, Ricky T. Q. Chen, Jesse Bettencourt, Ilya Sutskever, and David Kristjanson Duvenaud. Ffjord: Free-form continuous dynamics for scalable reversible generative models. ArXiv, abs/1810.01367, 2019. \n[11] David J Griffiths. Introduction to electrodynamics, 2005. \n[12] Ishaan Gulrajani, Faruk Ahmed, Mart´ın Arjovsky, Vincent Dumoulin, and Aaron C. Courville. Improved training of wasserstein gans. In NIPS, 2017. \n[13] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In NIPS, 2017. \n[14] Jonathan Ho, Xi Chen, A. Srinivas, Yan Duan, and P. Abbeel. Flow $^ { + + }$ : Improving flowbased generative models with variational dequantization and architecture design. ArXiv, abs/1902.00275, 2019. \n[15] Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In NIPS, 2016. \n[16] Jonathan Ho, Ajay Jain, and P. Abbeel. Denoising diffusion probabilistic models. ArXiv, abs/2006.11239, 2020. \n[17] Tero Karras, Miika Aittala, Janne Hellsten, Samuli Laine, Jaakko Lehtinen, and Timo Aila. Training generative adversarial networks with limited data. ArXiv, abs/2006.06676, 2020. \n[18] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4401–4410, 2019. \n[19] Diederik P. Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In NeurIPS, 2018. ",
1069
+ "bbox": [
1070
+ 173,
1071
+ 63,
1072
+ 830,
1073
+ 921
1074
+ ],
1075
+ "page_idx": 10
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "[20] Diederik P. Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semisupervised learning with deep generative models. ArXiv, abs/1406.5298, 2014. ",
1080
+ "bbox": [
1081
+ 169,
1082
+ 90,
1083
+ 825,
1084
+ 121
1085
+ ],
1086
+ "page_idx": 11
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "[21] Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. CoRR, abs/1312.6114, 2014. ",
1091
+ "bbox": [
1092
+ 178,
1093
+ 128,
1094
+ 825,
1095
+ 159
1096
+ ],
1097
+ "page_idx": 11
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "[22] Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 (canadian institute for advanced research). 2009. ",
1102
+ "bbox": [
1103
+ 176,
1104
+ 165,
1105
+ 825,
1106
+ 195
1107
+ ],
1108
+ "page_idx": 11
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "[23] F Shampine Lawrence. Some practical runge-kutta formulas. Mathematics of Computation, 46:135–150, 1986. ",
1113
+ "bbox": [
1114
+ 176,
1115
+ 204,
1116
+ 825,
1117
+ 233
1118
+ ],
1119
+ "page_idx": 11
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "[24] Kwonjoon Lee, Huiwen Chang, Lu Jiang, Han Zhang, Zhuowen Tu, and Ce Liu. Vitgan: Training gans with vision transformers. ArXiv, abs/2107.04589, 2021. ",
1124
+ "bbox": [
1125
+ 173,
1126
+ 241,
1127
+ 825,
1128
+ 271
1129
+ ],
1130
+ "page_idx": 11
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "[25] Daiqing Li, Junlin Yang, Karsten Kreis, Antonio Torralba, and Sanja Fidler. Semantic segmentation with generative models: Semi-supervised learning and strong out-of-domain generalization. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8296–8307, 2021. ",
1135
+ "bbox": [
1136
+ 173,
1137
+ 279,
1138
+ 826,
1139
+ 335
1140
+ ],
1141
+ "page_idx": 11
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "[26] Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. ArXiv, abs/1802.05957, 2018. ",
1146
+ "bbox": [
1147
+ 174,
1148
+ 344,
1149
+ 823,
1150
+ 373
1151
+ ],
1152
+ "page_idx": 11
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "[27] Henry Ricardo. A modern introduction to differential equations. 2002. ",
1157
+ "bbox": [
1158
+ 176,
1159
+ 382,
1160
+ 673,
1161
+ 397
1162
+ ],
1163
+ "page_idx": 11
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "[28] Hannes Risken. Fokker-planck equation. 1984. ",
1168
+ "bbox": [
1169
+ 174,
1170
+ 406,
1171
+ 521,
1172
+ 421
1173
+ ],
1174
+ "page_idx": 11
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "[29] Tim Salimans, Ian J. Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. ArXiv, abs/1606.03498, 2016. ",
1179
+ "bbox": [
1180
+ 174,
1181
+ 429,
1182
+ 825,
1183
+ 459
1184
+ ],
1185
+ "page_idx": 11
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "[30] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. ArXiv, abs/2010.02502, 2021. ",
1190
+ "bbox": [
1191
+ 173,
1192
+ 467,
1193
+ 825,
1194
+ 496
1195
+ ],
1196
+ "page_idx": 11
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "[31] Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. ArXiv, abs/1907.05600, 2019. ",
1201
+ "bbox": [
1202
+ 173,
1203
+ 505,
1204
+ 825,
1205
+ 534
1206
+ ],
1207
+ "page_idx": 11
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "[32] Yang Song and Stefano Ermon. Improved techniques for training score-based generative models. ArXiv, abs/2006.09011, 2020. ",
1212
+ "bbox": [
1213
+ 171,
1214
+ 542,
1215
+ 825,
1216
+ 571
1217
+ ],
1218
+ "page_idx": 11
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "[33] Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. ArXiv, abs/2011.13456, 2021. ",
1223
+ "bbox": [
1224
+ 174,
1225
+ 580,
1226
+ 825,
1227
+ 623
1228
+ ],
1229
+ "page_idx": 11
1230
+ },
1231
+ {
1232
+ "type": "text",
1233
+ "text": "[34] Christian Szegedy, V. Vanhoucke, S. Ioffe, Jon Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2818–2826, 2016. ",
1234
+ "bbox": [
1235
+ 174,
1236
+ 631,
1237
+ 826,
1238
+ 675
1239
+ ],
1240
+ "page_idx": 11
1241
+ },
1242
+ {
1243
+ "type": "text",
1244
+ "text": "[35] Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex ¨ Graves, Nal Kalchbrenner, Andrew W. Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. In SSW, 2016. ",
1245
+ "bbox": [
1246
+ 174,
1247
+ 683,
1248
+ 826,
1249
+ 727
1250
+ ],
1251
+ "page_idx": 11
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "text": "[36] Aaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Koray Kavukcuoglu, Oriol Vinyals, ¨ and Alex Graves. Conditional image generation with pixelcnn decoders. In NIPS, 2016. ",
1256
+ "bbox": [
1257
+ 173,
1258
+ 734,
1259
+ 825,
1260
+ 765
1261
+ ],
1262
+ "page_idx": 11
1263
+ },
1264
+ {
1265
+ "type": "text",
1266
+ "text": "[37] Pauli Virtanen, Ralf Gommers, Travis E. Oliphant, Matt Haberland, Tyler Reddy, David Cournapeau, Evgeni Burovski, Pearu Peterson, Warren Weckesser, Jonathan Bright, Stefan J. ´ van der Walt, Matthew Brett, Joshua Wilson, K. Jarrod Millman, Nikolay Mayorov, Andrew R. J. Nelson, Eric Jones, Robert Kern, Eric Larson, C J Carey, Ilhan Polat, Yu Feng, Eric W. Moore, J. Vanderplas, Denis Laxalde, Josef Perktold, Robert Cimrman, Ian Daniel Henriksen, E. A. Quintero, Charles R. Harris, Anne M. Archibald, Antonio H. Ribeiro, Fabian Pedregosa, ˆ Paul van Mulbregt, Aditya Alessandro Pietro Alex Andreas Andreas Anthony Ant Vijaykumar Bardelli Rothberg Hilboll Kloeckner Sco, Aditya Vijaykumar, Alessandro Pietro Bardelli, Alex Rothberg, Andreas Hilboll, Andre Kloeckner, Anthony M. Scopatz, Antony Lee, Ariel S. Rokem, C. Nathan Woods, Chad Fulton, Charles Masson, Christian Haggstr ¨ om, Clark Fitzgerald, ¨ ",
1267
+ "bbox": [
1268
+ 176,
1269
+ 772,
1270
+ 826,
1271
+ 911
1272
+ ],
1273
+ "page_idx": 11
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "David A. Nicholson, David R. Hagen, Dmitrii V. Pasechnik, Emanuele Olivetti, Eric Martin, Eric Wieser, Fabrice Silva, Felix Lenders, Florian Wilhelm, Gert Young, Gavin A. Price, GertLudwig Ingold, Gregory E. Allen, Gregory R. Lee, Herve Audren, Irvin Probst, Jorg P. Dietrich, ´ Jacob Silterra, James T. Webber, Janko Slavi, Joel Nothman, Johannes Buchner, Johannes Kulick, Johannes L. Schonberger, Jos ¨ e Vin ´ ´ıcius de Miranda Cardoso, Joscha Reimer, Joseph E. Harrington, Juan Luis Cano Rodr´ıguez, Juan Nunez-Iglesias, Justin Kuczynski, Kevin Lee Tritz, Martin Dr Thoma, Matt Newville, Matthias Kummerer, Maximilian Bolingbroke, Michael ¨ Tartre, Mikhail Pak, Nathaniel J. Smith, Nikolai Nowaczyk, Nikolay Shebanov, Oleksandr Pavlyk, Per Andreas Brodtkorb, Perry Lee, Robert T. McGibbon, Roman Feldbauer, Sam Lewis, Sam Tygier, Scott Sievert, Sebastiano Vigna, Stefan Peterson, Surhud More, Tadeusz Pudlik, Taku Oshima, Thomas J. Pingel, Thomas P. Robitaille, Thomas Spura, Thouis Raymond Jones, Tim Cera, Tim Leslie, Tiziano Zito, Tom Krauss, U. Upadhyay, Yaroslav O. Halchenko, and Y. Vazquez-Baeza. Scipy 1.0: fundamental algorithms for scientific computing in python. ´ Nature Methods, 17:261 – 272, 2020. \n[38] Shuo Yang, Ping Luo, Chen Change Loy, and Xiaoou Tang. From facial parts responses to face detection: A deep learning approach. 2015 IEEE International Conference on Computer Vision (ICCV), pages 3676–3684, 2015. \n[39] Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. ArXiv, abs/1506.03365, 2015. ",
1278
+ "bbox": [
1279
+ 173,
1280
+ 92,
1281
+ 826,
1282
+ 388
1283
+ ],
1284
+ "page_idx": 12
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "Checklist ",
1289
+ "text_level": 1,
1290
+ "bbox": [
1291
+ 174,
1292
+ 89,
1293
+ 254,
1294
+ 106
1295
+ ],
1296
+ "page_idx": 13
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "1. For all authors... ",
1301
+ "bbox": [
1302
+ 214,
1303
+ 116,
1304
+ 339,
1305
+ 130
1306
+ ],
1307
+ "page_idx": 13
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See Appendix G. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See Appendix H. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1312
+ "bbox": [
1313
+ 238,
1314
+ 135,
1315
+ 825,
1316
+ 239
1317
+ ],
1318
+ "page_idx": 13
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "2. If you are including theoretical results... ",
1323
+ "bbox": [
1324
+ 214,
1325
+ 243,
1326
+ 493,
1327
+ 258
1328
+ ],
1329
+ "page_idx": 13
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Appendix A. (b) Did you include complete proofs of all theoretical results? [Yes] See Appendix A. ",
1334
+ "bbox": [
1335
+ 238,
1336
+ 262,
1337
+ 825,
1338
+ 308
1339
+ ],
1340
+ "page_idx": 13
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "3. If you ran experiments... ",
1345
+ "bbox": [
1346
+ 212,
1347
+ 311,
1348
+ 393,
1349
+ 325
1350
+ ],
1351
+ "page_idx": 13
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] See the abstract. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Appendix B.1. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] All the experiments are run on a single NVIDIA A100 GPU. ",
1356
+ "bbox": [
1357
+ 238,
1358
+ 330,
1359
+ 825,
1360
+ 476
1361
+ ],
1362
+ "page_idx": 13
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1367
+ "bbox": [
1368
+ 212,
1369
+ 481,
1370
+ 823,
1371
+ 496
1372
+ ],
1373
+ "page_idx": 13
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [N/A] The assets are public/open-source datasets and codes. \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
1378
+ "bbox": [
1379
+ 238,
1380
+ 500,
1381
+ 825,
1382
+ 635
1383
+ ],
1384
+ "page_idx": 13
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1389
+ "bbox": [
1390
+ 214,
1391
+ 638,
1392
+ 705,
1393
+ 654
1394
+ ],
1395
+ "page_idx": 13
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
1400
+ "bbox": [
1401
+ 238,
1402
+ 657,
1403
+ 825,
1404
+ 747
1405
+ ],
1406
+ "page_idx": 13
1407
+ }
1408
+ ]
parse/dev/voV_TRqcWh/voV_TRqcWh_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/voV_TRqcWh/voV_TRqcWh_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/w1UbdvWH_R3/w1UbdvWH_R3.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/w1UbdvWH_R3/w1UbdvWH_R3_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/w1UbdvWH_R3/w1UbdvWH_R3_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/w1UbdvWH_R3/w1UbdvWH_R3_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/8vXYx6d8Wc/8vXYx6d8Wc_layout.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b659272ae40d65afe6ca7306dbb3c19beb40276db59e6770d48ad0dcb272fbf5
3
+ size 16569989
parse/train/8vXYx6d8Wc/8vXYx6d8Wc_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74f13da6bcb9e79df64e233c2bd49483388bc0b6937dd814146db89bf4ce7407
3
+ size 16437009
parse/train/8vXYx6d8Wc/8vXYx6d8Wc_span.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a05f4488279b64107c0df83b0365ec3947b5493c145b9a67784b35f8fd0191ba
3
+ size 16583785
parse/train/AjZCiKuWQ9n/AjZCiKuWQ9n_layout.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6335492508c07379888172e0b04696effec25b3d0a2f0f1594477c4c69501c8
3
+ size 9870076
parse/train/AjZCiKuWQ9n/AjZCiKuWQ9n_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e49b7d54ed71824812367d571bf20330346f47830abed47f2667152b93b5d77f
3
+ size 9644001
parse/train/AjZCiKuWQ9n/AjZCiKuWQ9n_span.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:680ad8b36da4c51c70eacc348ee1c597434f1462906bbcd7c38da1846eeee09f
3
+ size 9900206
parse/train/B1MIBs05F7/B1MIBs05F7_layout.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f31f4e0174cd739d97057997a91ab60eaa06391e28b963076dd7d20220e7a6e
3
+ size 481423
parse/train/B1MIBs05F7/B1MIBs05F7_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a937c5ba00c3e44fc44aa2a2f9f6e699cdc3dbac43562486be63c8bdf0cacf9
3
+ size 376404
parse/train/B1MIBs05F7/B1MIBs05F7_span.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:149471d83d95fd18d2709c37acfcbf3980df663527437758f53c8f4f927f233c
3
+ size 481508