ZHANGYUXUAN-zR commited on
Commit
1728f21
·
verified ·
1 Parent(s): 715d885

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 +162 -0
  2. parse/dev/-Aw0rrrPUF/-Aw0rrrPUF.md +0 -0
  3. parse/dev/-Aw0rrrPUF/-Aw0rrrPUF_content_list.json +0 -0
  4. parse/dev/-Aw0rrrPUF/-Aw0rrrPUF_model.json +0 -0
  5. parse/dev/2-REuflJDT/2-REuflJDT_content_list.json +1044 -0
  6. parse/dev/3s9IrEsjLyk/3s9IrEsjLyk.md +358 -0
  7. parse/dev/3s9IrEsjLyk/3s9IrEsjLyk_content_list.json +0 -0
  8. parse/dev/3s9IrEsjLyk/3s9IrEsjLyk_middle.json +0 -0
  9. parse/dev/3s9IrEsjLyk/3s9IrEsjLyk_model.json +0 -0
  10. parse/dev/BryMFPQ4L6/BryMFPQ4L6.md +226 -0
  11. parse/dev/BryMFPQ4L6/BryMFPQ4L6_content_list.json +1100 -0
  12. parse/dev/BryMFPQ4L6/BryMFPQ4L6_middle.json +0 -0
  13. parse/dev/BryMFPQ4L6/BryMFPQ4L6_model.json +0 -0
  14. parse/dev/CzceR82CYc/CzceR82CYc.md +0 -0
  15. parse/dev/CzceR82CYc/CzceR82CYc_middle.json +0 -0
  16. parse/dev/CzceR82CYc/CzceR82CYc_model.json +0 -0
  17. parse/dev/DhmYYrH_M3m/DhmYYrH_M3m.md +319 -0
  18. parse/dev/DhmYYrH_M3m/DhmYYrH_M3m_content_list.json +1356 -0
  19. parse/dev/DhmYYrH_M3m/DhmYYrH_M3m_middle.json +0 -0
  20. parse/dev/DhmYYrH_M3m/DhmYYrH_M3m_model.json +0 -0
  21. parse/dev/JvIFpZOjLF4/JvIFpZOjLF4.md +391 -0
  22. parse/dev/JvIFpZOjLF4/JvIFpZOjLF4_middle.json +0 -0
  23. parse/dev/JvIFpZOjLF4/JvIFpZOjLF4_model.json +0 -0
  24. parse/dev/K3BMejPSyQ/K3BMejPSyQ_model.json +0 -0
  25. parse/dev/MR7XubKUFB/MR7XubKUFB.md +445 -0
  26. parse/dev/MR7XubKUFB/MR7XubKUFB_content_list.json +0 -0
  27. parse/dev/MR7XubKUFB/MR7XubKUFB_model.json +0 -0
  28. parse/dev/gEZrGCozdqR/gEZrGCozdqR.md +0 -0
  29. parse/dev/gEZrGCozdqR/gEZrGCozdqR_content_list.json +0 -0
  30. parse/dev/gEZrGCozdqR/gEZrGCozdqR_middle.json +0 -0
  31. parse/dev/gEZrGCozdqR/gEZrGCozdqR_model.json +0 -0
  32. parse/dev/rFbR4Fv-D6-/rFbR4Fv-D6-.md +525 -0
  33. parse/dev/rFbR4Fv-D6-/rFbR4Fv-D6-_content_list.json +0 -0
  34. parse/dev/rFbR4Fv-D6-/rFbR4Fv-D6-_middle.json +0 -0
  35. parse/dev/rFbR4Fv-D6-/rFbR4Fv-D6-_model.json +0 -0
  36. parse/dev/upJ3vrFKaL/upJ3vrFKaL.md +302 -0
  37. parse/dev/upJ3vrFKaL/upJ3vrFKaL_content_list.json +1579 -0
  38. parse/dev/upJ3vrFKaL/upJ3vrFKaL_middle.json +0 -0
  39. parse/dev/upJ3vrFKaL/upJ3vrFKaL_model.json +0 -0
  40. parse/train/-zgb2v8vV_w/-zgb2v8vV_w_layout.pdf +3 -0
  41. parse/train/-zgb2v8vV_w/-zgb2v8vV_w_origin.pdf +3 -0
  42. parse/train/-zgb2v8vV_w/-zgb2v8vV_w_span.pdf +3 -0
  43. parse/train/0CDKgyYaxC8/0CDKgyYaxC8_layout.pdf +3 -0
  44. parse/train/0CDKgyYaxC8/0CDKgyYaxC8_origin.pdf +3 -0
  45. parse/train/0CDKgyYaxC8/0CDKgyYaxC8_span.pdf +3 -0
  46. parse/train/2rAiDBJgR_/2rAiDBJgR__layout.pdf +3 -0
  47. parse/train/2rAiDBJgR_/2rAiDBJgR__origin.pdf +3 -0
  48. parse/train/2rAiDBJgR_/2rAiDBJgR__span.pdf +3 -0
  49. parse/train/BJe-unNYPr/BJe-unNYPr_layout.pdf +3 -0
  50. parse/train/BJe-unNYPr/BJe-unNYPr_origin.pdf +3 -0
.gitattributes CHANGED
@@ -15482,3 +15482,165 @@ parse/train/S1lvm305YQ/S1lvm305YQ_span.pdf filter=lfs diff=lfs merge=lfs -text
15482
  parse/train/S1lvm305YQ/S1lvm305YQ_origin.pdf filter=lfs diff=lfs merge=lfs -text
15483
  parse/train/S1lvm305YQ/S1lvm305YQ_layout.pdf filter=lfs diff=lfs merge=lfs -text
15484
  parse/train/YUEFlzlG_0c/YUEFlzlG_0c_origin.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15482
  parse/train/S1lvm305YQ/S1lvm305YQ_origin.pdf filter=lfs diff=lfs merge=lfs -text
15483
  parse/train/S1lvm305YQ/S1lvm305YQ_layout.pdf filter=lfs diff=lfs merge=lfs -text
15484
  parse/train/YUEFlzlG_0c/YUEFlzlG_0c_origin.pdf filter=lfs diff=lfs merge=lfs -text
15485
+ parse/train/KOtxfjpQsq/KOtxfjpQsq_span.pdf filter=lfs diff=lfs merge=lfs -text
15486
+ parse/train/KOtxfjpQsq/KOtxfjpQsq_origin.pdf filter=lfs diff=lfs merge=lfs -text
15487
+ parse/train/KOtxfjpQsq/KOtxfjpQsq_layout.pdf filter=lfs diff=lfs merge=lfs -text
15488
+ parse/train/r1esnoAqt7/r1esnoAqt7_layout.pdf filter=lfs diff=lfs merge=lfs -text
15489
+ parse/train/r1esnoAqt7/r1esnoAqt7_span.pdf filter=lfs diff=lfs merge=lfs -text
15490
+ parse/train/r1esnoAqt7/r1esnoAqt7_origin.pdf filter=lfs diff=lfs merge=lfs -text
15491
+ parse/train/yJqcM36Qvnu/yJqcM36Qvnu_span.pdf filter=lfs diff=lfs merge=lfs -text
15492
+ parse/train/yJqcM36Qvnu/yJqcM36Qvnu_layout.pdf filter=lfs diff=lfs merge=lfs -text
15493
+ parse/train/yJqcM36Qvnu/yJqcM36Qvnu_origin.pdf filter=lfs diff=lfs merge=lfs -text
15494
+ parse/train/HyrCWeWCb/HyrCWeWCb_layout.pdf filter=lfs diff=lfs merge=lfs -text
15495
+ parse/train/HyrCWeWCb/HyrCWeWCb_origin.pdf filter=lfs diff=lfs merge=lfs -text
15496
+ parse/train/HyrCWeWCb/HyrCWeWCb_span.pdf filter=lfs diff=lfs merge=lfs -text
15497
+ parse/train/rk4Qso0cKm/rk4Qso0cKm_layout.pdf filter=lfs diff=lfs merge=lfs -text
15498
+ parse/train/rk4Qso0cKm/rk4Qso0cKm_origin.pdf filter=lfs diff=lfs merge=lfs -text
15499
+ parse/train/rk4Qso0cKm/rk4Qso0cKm_span.pdf filter=lfs diff=lfs merge=lfs -text
15500
+ parse/train/ryykVe-0W/ryykVe-0W_span.pdf filter=lfs diff=lfs merge=lfs -text
15501
+ parse/train/ryykVe-0W/ryykVe-0W_origin.pdf filter=lfs diff=lfs merge=lfs -text
15502
+ parse/train/ryykVe-0W/ryykVe-0W_layout.pdf filter=lfs diff=lfs merge=lfs -text
15503
+ parse/train/M3tw78MH1Bk/M3tw78MH1Bk_origin.pdf filter=lfs diff=lfs merge=lfs -text
15504
+ parse/train/M3tw78MH1Bk/M3tw78MH1Bk_layout.pdf filter=lfs diff=lfs merge=lfs -text
15505
+ parse/train/M3tw78MH1Bk/M3tw78MH1Bk_span.pdf filter=lfs diff=lfs merge=lfs -text
15506
+ parse/train/HyeVtoRqtQ/HyeVtoRqtQ_span.pdf filter=lfs diff=lfs merge=lfs -text
15507
+ parse/train/HyeVtoRqtQ/HyeVtoRqtQ_origin.pdf filter=lfs diff=lfs merge=lfs -text
15508
+ parse/train/HyeVtoRqtQ/HyeVtoRqtQ_layout.pdf filter=lfs diff=lfs merge=lfs -text
15509
+ parse/train/rJxRmlStDB/rJxRmlStDB_layout.pdf filter=lfs diff=lfs merge=lfs -text
15510
+ parse/train/rJxRmlStDB/rJxRmlStDB_span.pdf filter=lfs diff=lfs merge=lfs -text
15511
+ parse/train/rJxRmlStDB/rJxRmlStDB_origin.pdf filter=lfs diff=lfs merge=lfs -text
15512
+ parse/train/ryxmrpNtvH/ryxmrpNtvH_origin.pdf filter=lfs diff=lfs merge=lfs -text
15513
+ parse/train/ryxmrpNtvH/ryxmrpNtvH_layout.pdf filter=lfs diff=lfs merge=lfs -text
15514
+ parse/train/ryxmrpNtvH/ryxmrpNtvH_span.pdf filter=lfs diff=lfs merge=lfs -text
15515
+ parse/train/SRDuJssQud/SRDuJssQud_origin.pdf filter=lfs diff=lfs merge=lfs -text
15516
+ parse/train/SRDuJssQud/SRDuJssQud_layout.pdf filter=lfs diff=lfs merge=lfs -text
15517
+ parse/train/SRDuJssQud/SRDuJssQud_span.pdf filter=lfs diff=lfs merge=lfs -text
15518
+ parse/train/HJxNAnVtDS/HJxNAnVtDS_layout.pdf filter=lfs diff=lfs merge=lfs -text
15519
+ parse/train/HJxNAnVtDS/HJxNAnVtDS_origin.pdf filter=lfs diff=lfs merge=lfs -text
15520
+ parse/train/HJxNAnVtDS/HJxNAnVtDS_span.pdf filter=lfs diff=lfs merge=lfs -text
15521
+ parse/train/H1sUHgb0Z/H1sUHgb0Z_origin.pdf filter=lfs diff=lfs merge=lfs -text
15522
+ parse/train/H1sUHgb0Z/H1sUHgb0Z_layout.pdf filter=lfs diff=lfs merge=lfs -text
15523
+ parse/train/H1sUHgb0Z/H1sUHgb0Z_span.pdf filter=lfs diff=lfs merge=lfs -text
15524
+ parse/train/zdTW91r2wKO/zdTW91r2wKO_span.pdf filter=lfs diff=lfs merge=lfs -text
15525
+ parse/train/zdTW91r2wKO/zdTW91r2wKO_layout.pdf filter=lfs diff=lfs merge=lfs -text
15526
+ parse/train/zdTW91r2wKO/zdTW91r2wKO_origin.pdf filter=lfs diff=lfs merge=lfs -text
15527
+ parse/train/rJGZq6g0-/rJGZq6g0-_layout.pdf filter=lfs diff=lfs merge=lfs -text
15528
+ parse/train/rJGZq6g0-/rJGZq6g0-_origin.pdf filter=lfs diff=lfs merge=lfs -text
15529
+ parse/train/rJGZq6g0-/rJGZq6g0-_span.pdf filter=lfs diff=lfs merge=lfs -text
15530
+ parse/train/S1_pAu9xl/S1_pAu9xl_origin.pdf filter=lfs diff=lfs merge=lfs -text
15531
+ parse/train/S1_pAu9xl/S1_pAu9xl_span.pdf filter=lfs diff=lfs merge=lfs -text
15532
+ parse/train/S1_pAu9xl/S1_pAu9xl_layout.pdf filter=lfs diff=lfs merge=lfs -text
15533
+ parse/train/vKxFYApxBjr/vKxFYApxBjr_layout.pdf filter=lfs diff=lfs merge=lfs -text
15534
+ parse/train/vKxFYApxBjr/vKxFYApxBjr_origin.pdf filter=lfs diff=lfs merge=lfs -text
15535
+ parse/train/vKxFYApxBjr/vKxFYApxBjr_span.pdf filter=lfs diff=lfs merge=lfs -text
15536
+ parse/train/wHkKTW2wrmm/wHkKTW2wrmm_layout.pdf filter=lfs diff=lfs merge=lfs -text
15537
+ parse/train/wHkKTW2wrmm/wHkKTW2wrmm_origin.pdf filter=lfs diff=lfs merge=lfs -text
15538
+ parse/train/wHkKTW2wrmm/wHkKTW2wrmm_span.pdf filter=lfs diff=lfs merge=lfs -text
15539
+ parse/train/eJIJF3-LoZO/eJIJF3-LoZO_layout.pdf filter=lfs diff=lfs merge=lfs -text
15540
+ parse/train/eJIJF3-LoZO/eJIJF3-LoZO_origin.pdf filter=lfs diff=lfs merge=lfs -text
15541
+ parse/train/eJIJF3-LoZO/eJIJF3-LoZO_span.pdf filter=lfs diff=lfs merge=lfs -text
15542
+ parse/train/Sk2Im59ex/Sk2Im59ex_origin.pdf filter=lfs diff=lfs merge=lfs -text
15543
+ parse/train/Sk2Im59ex/Sk2Im59ex_layout.pdf filter=lfs diff=lfs merge=lfs -text
15544
+ parse/train/Sk2Im59ex/Sk2Im59ex_span.pdf filter=lfs diff=lfs merge=lfs -text
15545
+ parse/train/SygW0TEFwH/SygW0TEFwH_origin.pdf filter=lfs diff=lfs merge=lfs -text
15546
+ parse/train/SygW0TEFwH/SygW0TEFwH_span.pdf filter=lfs diff=lfs merge=lfs -text
15547
+ parse/train/SygW0TEFwH/SygW0TEFwH_layout.pdf filter=lfs diff=lfs merge=lfs -text
15548
+ parse/train/gvxJzw8kW4b/gvxJzw8kW4b_span.pdf filter=lfs diff=lfs merge=lfs -text
15549
+ parse/train/gvxJzw8kW4b/gvxJzw8kW4b_origin.pdf filter=lfs diff=lfs merge=lfs -text
15550
+ parse/train/gvxJzw8kW4b/gvxJzw8kW4b_layout.pdf filter=lfs diff=lfs merge=lfs -text
15551
+ parse/train/rJlf_RVKwr/rJlf_RVKwr_layout.pdf filter=lfs diff=lfs merge=lfs -text
15552
+ parse/train/rJlf_RVKwr/rJlf_RVKwr_origin.pdf filter=lfs diff=lfs merge=lfs -text
15553
+ parse/train/rJlf_RVKwr/rJlf_RVKwr_span.pdf filter=lfs diff=lfs merge=lfs -text
15554
+ parse/train/Q-PA3D1OsDz/Q-PA3D1OsDz_layout.pdf filter=lfs diff=lfs merge=lfs -text
15555
+ parse/train/Q-PA3D1OsDz/Q-PA3D1OsDz_origin.pdf filter=lfs diff=lfs merge=lfs -text
15556
+ parse/train/Q-PA3D1OsDz/Q-PA3D1OsDz_span.pdf filter=lfs diff=lfs merge=lfs -text
15557
+ parse/train/SJBr9Mcxl/SJBr9Mcxl_origin.pdf filter=lfs diff=lfs merge=lfs -text
15558
+ parse/train/SJBr9Mcxl/SJBr9Mcxl_span.pdf filter=lfs diff=lfs merge=lfs -text
15559
+ parse/train/SJBr9Mcxl/SJBr9Mcxl_layout.pdf filter=lfs diff=lfs merge=lfs -text
15560
+ parse/train/qcjOWDHAc4J/qcjOWDHAc4J_layout.pdf filter=lfs diff=lfs merge=lfs -text
15561
+ parse/train/qcjOWDHAc4J/qcjOWDHAc4J_origin.pdf filter=lfs diff=lfs merge=lfs -text
15562
+ parse/train/qcjOWDHAc4J/qcjOWDHAc4J_span.pdf filter=lfs diff=lfs merge=lfs -text
15563
+ parse/train/fV4vvs1J5iM/fV4vvs1J5iM_span.pdf filter=lfs diff=lfs merge=lfs -text
15564
+ parse/train/fV4vvs1J5iM/fV4vvs1J5iM_layout.pdf filter=lfs diff=lfs merge=lfs -text
15565
+ parse/train/fV4vvs1J5iM/fV4vvs1J5iM_origin.pdf filter=lfs diff=lfs merge=lfs -text
15566
+ parse/train/HyM7AiA5YX/HyM7AiA5YX_span.pdf filter=lfs diff=lfs merge=lfs -text
15567
+ parse/train/HyM7AiA5YX/HyM7AiA5YX_origin.pdf filter=lfs diff=lfs merge=lfs -text
15568
+ parse/train/HyM7AiA5YX/HyM7AiA5YX_layout.pdf filter=lfs diff=lfs merge=lfs -text
15569
+ parse/train/rJQDjk-0b/rJQDjk-0b_span.pdf filter=lfs diff=lfs merge=lfs -text
15570
+ parse/train/rJQDjk-0b/rJQDjk-0b_origin.pdf filter=lfs diff=lfs merge=lfs -text
15571
+ parse/train/rJQDjk-0b/rJQDjk-0b_layout.pdf filter=lfs diff=lfs merge=lfs -text
15572
+ parse/train/2rAiDBJgR_/2rAiDBJgR__layout.pdf filter=lfs diff=lfs merge=lfs -text
15573
+ parse/train/2rAiDBJgR_/2rAiDBJgR__origin.pdf filter=lfs diff=lfs merge=lfs -text
15574
+ parse/train/2rAiDBJgR_/2rAiDBJgR__span.pdf filter=lfs diff=lfs merge=lfs -text
15575
+ parse/train/YNnpaAKeCfx/YNnpaAKeCfx_span.pdf filter=lfs diff=lfs merge=lfs -text
15576
+ parse/train/YNnpaAKeCfx/YNnpaAKeCfx_origin.pdf filter=lfs diff=lfs merge=lfs -text
15577
+ parse/train/YNnpaAKeCfx/YNnpaAKeCfx_layout.pdf filter=lfs diff=lfs merge=lfs -text
15578
+ parse/train/rJlDnoA5Y7/rJlDnoA5Y7_layout.pdf filter=lfs diff=lfs merge=lfs -text
15579
+ parse/train/rJlDnoA5Y7/rJlDnoA5Y7_span.pdf filter=lfs diff=lfs merge=lfs -text
15580
+ parse/train/rJlDnoA5Y7/rJlDnoA5Y7_origin.pdf filter=lfs diff=lfs merge=lfs -text
15581
+ parse/train/Hye4WaVYwr/Hye4WaVYwr_layout.pdf filter=lfs diff=lfs merge=lfs -text
15582
+ parse/train/Hye4WaVYwr/Hye4WaVYwr_span.pdf filter=lfs diff=lfs merge=lfs -text
15583
+ parse/train/Hye4WaVYwr/Hye4WaVYwr_origin.pdf filter=lfs diff=lfs merge=lfs -text
15584
+ parse/train/-zgb2v8vV_w/-zgb2v8vV_w_span.pdf filter=lfs diff=lfs merge=lfs -text
15585
+ parse/train/-zgb2v8vV_w/-zgb2v8vV_w_origin.pdf filter=lfs diff=lfs merge=lfs -text
15586
+ parse/train/-zgb2v8vV_w/-zgb2v8vV_w_layout.pdf filter=lfs diff=lfs merge=lfs -text
15587
+ parse/train/BJe-unNYPr/BJe-unNYPr_layout.pdf filter=lfs diff=lfs merge=lfs -text
15588
+ parse/train/BJe-unNYPr/BJe-unNYPr_span.pdf filter=lfs diff=lfs merge=lfs -text
15589
+ parse/train/BJe-unNYPr/BJe-unNYPr_origin.pdf filter=lfs diff=lfs merge=lfs -text
15590
+ parse/train/Hkc-TeZ0W/Hkc-TeZ0W_layout.pdf filter=lfs diff=lfs merge=lfs -text
15591
+ parse/train/Hkc-TeZ0W/Hkc-TeZ0W_origin.pdf filter=lfs diff=lfs merge=lfs -text
15592
+ parse/train/Hkc-TeZ0W/Hkc-TeZ0W_span.pdf filter=lfs diff=lfs merge=lfs -text
15593
+ parse/train/dsmxf7FKiaY/dsmxf7FKiaY_layout.pdf filter=lfs diff=lfs merge=lfs -text
15594
+ parse/train/dsmxf7FKiaY/dsmxf7FKiaY_span.pdf filter=lfs diff=lfs merge=lfs -text
15595
+ parse/train/dsmxf7FKiaY/dsmxf7FKiaY_origin.pdf filter=lfs diff=lfs merge=lfs -text
15596
+ parse/train/Hke3gyHYwH/Hke3gyHYwH_span.pdf filter=lfs diff=lfs merge=lfs -text
15597
+ parse/train/Hke3gyHYwH/Hke3gyHYwH_origin.pdf filter=lfs diff=lfs merge=lfs -text
15598
+ parse/train/Hke3gyHYwH/Hke3gyHYwH_layout.pdf filter=lfs diff=lfs merge=lfs -text
15599
+ parse/train/rJg6ssC5Y7/rJg6ssC5Y7_span.pdf filter=lfs diff=lfs merge=lfs -text
15600
+ parse/train/rJg6ssC5Y7/rJg6ssC5Y7_origin.pdf filter=lfs diff=lfs merge=lfs -text
15601
+ parse/train/rJg6ssC5Y7/rJg6ssC5Y7_layout.pdf filter=lfs diff=lfs merge=lfs -text
15602
+ parse/train/UH-cmocLJC/UH-cmocLJC_layout.pdf filter=lfs diff=lfs merge=lfs -text
15603
+ parse/train/UH-cmocLJC/UH-cmocLJC_span.pdf filter=lfs diff=lfs merge=lfs -text
15604
+ parse/train/UH-cmocLJC/UH-cmocLJC_origin.pdf filter=lfs diff=lfs merge=lfs -text
15605
+ parse/train/0CDKgyYaxC8/0CDKgyYaxC8_layout.pdf filter=lfs diff=lfs merge=lfs -text
15606
+ parse/train/0CDKgyYaxC8/0CDKgyYaxC8_span.pdf filter=lfs diff=lfs merge=lfs -text
15607
+ parse/train/0CDKgyYaxC8/0CDKgyYaxC8_origin.pdf filter=lfs diff=lfs merge=lfs -text
15608
+ parse/train/ByQpn1ZA-/ByQpn1ZA-_layout.pdf filter=lfs diff=lfs merge=lfs -text
15609
+ parse/train/ByQpn1ZA-/ByQpn1ZA-_origin.pdf filter=lfs diff=lfs merge=lfs -text
15610
+ parse/train/ByQpn1ZA-/ByQpn1ZA-_span.pdf filter=lfs diff=lfs merge=lfs -text
15611
+ parse/train/wGmOLwb8ClT/wGmOLwb8ClT_span.pdf filter=lfs diff=lfs merge=lfs -text
15612
+ parse/train/wGmOLwb8ClT/wGmOLwb8ClT_origin.pdf filter=lfs diff=lfs merge=lfs -text
15613
+ parse/train/wGmOLwb8ClT/wGmOLwb8ClT_layout.pdf filter=lfs diff=lfs merge=lfs -text
15614
+ parse/train/rJehVyrKwH/rJehVyrKwH_layout.pdf filter=lfs diff=lfs merge=lfs -text
15615
+ parse/train/rJehVyrKwH/rJehVyrKwH_origin.pdf filter=lfs diff=lfs merge=lfs -text
15616
+ parse/train/rJehVyrKwH/rJehVyrKwH_span.pdf filter=lfs diff=lfs merge=lfs -text
15617
+ parse/train/y_OmkmCH9w/y_OmkmCH9w_span.pdf filter=lfs diff=lfs merge=lfs -text
15618
+ parse/train/y_OmkmCH9w/y_OmkmCH9w_origin.pdf filter=lfs diff=lfs merge=lfs -text
15619
+ parse/train/y_OmkmCH9w/y_OmkmCH9w_layout.pdf filter=lfs diff=lfs merge=lfs -text
15620
+ parse/train/GFV8IVyMM4n/GFV8IVyMM4n_span.pdf filter=lfs diff=lfs merge=lfs -text
15621
+ parse/train/GFV8IVyMM4n/GFV8IVyMM4n_origin.pdf filter=lfs diff=lfs merge=lfs -text
15622
+ parse/train/GFV8IVyMM4n/GFV8IVyMM4n_layout.pdf filter=lfs diff=lfs merge=lfs -text
15623
+ parse/train/S1xoy3CcYX/S1xoy3CcYX_layout.pdf filter=lfs diff=lfs merge=lfs -text
15624
+ parse/train/S1xoy3CcYX/S1xoy3CcYX_span.pdf filter=lfs diff=lfs merge=lfs -text
15625
+ parse/train/S1xoy3CcYX/S1xoy3CcYX_origin.pdf filter=lfs diff=lfs merge=lfs -text
15626
+ parse/train/r1nTpv9eg/r1nTpv9eg_span.pdf filter=lfs diff=lfs merge=lfs -text
15627
+ parse/train/r1nTpv9eg/r1nTpv9eg_origin.pdf filter=lfs diff=lfs merge=lfs -text
15628
+ parse/train/r1nTpv9eg/r1nTpv9eg_layout.pdf filter=lfs diff=lfs merge=lfs -text
15629
+ parse/train/tHzvH4Rv1Qa/tHzvH4Rv1Qa_origin.pdf filter=lfs diff=lfs merge=lfs -text
15630
+ parse/train/tHzvH4Rv1Qa/tHzvH4Rv1Qa_span.pdf filter=lfs diff=lfs merge=lfs -text
15631
+ parse/train/tHzvH4Rv1Qa/tHzvH4Rv1Qa_layout.pdf filter=lfs diff=lfs merge=lfs -text
15632
+ parse/train/rkeJRhNYDH/rkeJRhNYDH_layout.pdf filter=lfs diff=lfs merge=lfs -text
15633
+ parse/train/rkeJRhNYDH/rkeJRhNYDH_span.pdf filter=lfs diff=lfs merge=lfs -text
15634
+ parse/train/rkeJRhNYDH/rkeJRhNYDH_origin.pdf filter=lfs diff=lfs merge=lfs -text
15635
+ parse/train/HJ_aoCyRZ/HJ_aoCyRZ_origin.pdf filter=lfs diff=lfs merge=lfs -text
15636
+ parse/train/HJ_aoCyRZ/HJ_aoCyRZ_layout.pdf filter=lfs diff=lfs merge=lfs -text
15637
+ parse/train/HJ_aoCyRZ/HJ_aoCyRZ_span.pdf filter=lfs diff=lfs merge=lfs -text
15638
+ parse/train/Hy7fDog0b/Hy7fDog0b_layout.pdf filter=lfs diff=lfs merge=lfs -text
15639
+ parse/train/Hy7fDog0b/Hy7fDog0b_span.pdf filter=lfs diff=lfs merge=lfs -text
15640
+ parse/train/Hy7fDog0b/Hy7fDog0b_origin.pdf filter=lfs diff=lfs merge=lfs -text
15641
+ parse/train/IpmfpAGoH2KbX/IpmfpAGoH2KbX_span.pdf filter=lfs diff=lfs merge=lfs -text
15642
+ parse/train/IpmfpAGoH2KbX/IpmfpAGoH2KbX_layout.pdf filter=lfs diff=lfs merge=lfs -text
15643
+ parse/train/IpmfpAGoH2KbX/IpmfpAGoH2KbX_origin.pdf filter=lfs diff=lfs merge=lfs -text
15644
+ parse/train/HkzyX3CcFQ/HkzyX3CcFQ_layout.pdf filter=lfs diff=lfs merge=lfs -text
15645
+ parse/train/HkzyX3CcFQ/HkzyX3CcFQ_span.pdf filter=lfs diff=lfs merge=lfs -text
15646
+ parse/train/HkzyX3CcFQ/HkzyX3CcFQ_origin.pdf filter=lfs diff=lfs merge=lfs -text
parse/dev/-Aw0rrrPUF/-Aw0rrrPUF.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/-Aw0rrrPUF/-Aw0rrrPUF_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/-Aw0rrrPUF/-Aw0rrrPUF_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/2-REuflJDT/2-REuflJDT_content_list.json ADDED
@@ -0,0 +1,1044 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Fully Convolutional One-Stage 3D Object Detection on LiDAR Range Images ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 122,
9
+ 825,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Zhi Tian1, Xiangxiang $\\mathbf { C h u ^ { 1 } }$ , Xiaoming Wang2∗, Xiaolin Wei1, Chunhua Shen3† ",
17
+ "bbox": [
18
+ 200,
19
+ 223,
20
+ 803,
21
+ 241
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1 Meituan Inc. 2 Northwestern Polytechnical University 3 Zhejiang University 1 {tianzhi02,chuxiangxiang,weixiaolin02}@meituan.com 2 chunhua@me.com 3 xiaomingwang80@163.com ",
28
+ "bbox": [
29
+ 209,
30
+ 247,
31
+ 790,
32
+ 296
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 332,
43
+ 535,
44
+ 348
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "We present a simple yet effective fully convolutional one-stage 3D object detector for LiDAR point clouds of autonomous driving scenes, termed FCOS-LiDAR. Unlike the dominant methods that use the bird-eye view (BEV), our proposed detector detects objects from the range view (RV, a.k.a. range image) of the LiDAR points. Due to the range view’s compactness and compatibility with the LiDAR sensors’ sampling process on self-driving cars, the range view-based object detector can be realized by solely exploiting the vanilla 2D convolutions, departing from the BEV-based methods which often involve complicated voxelization operations and sparse convolutions. ",
51
+ "bbox": [
52
+ 233,
53
+ 363,
54
+ 766,
55
+ 488
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "For the first time, we show that an RV-based 3D detector with standard 2D convolutions alone can achieve comparable performance to state-of-the-art BEV-based detectors while being significantly faster and simpler. More importantly, almost all previous range view-based detectors only focus on single-frame point clouds, since it is challenging to fuse multi-frame point clouds into a single range view. In this work, we tackle this challenging issue with a novel range view projection mechanism, and for the first time demonstrate the benefits of fusing multi-frame point clouds for a range-view based detector. Extensive experiments on nuScenes show the superiority of our proposed method and we believe that our work can be strong evidence that an RV-based 3D detector can compare favourably with the current mainstream BEV-based detectors. Code will be made publicly available. ",
62
+ "bbox": [
63
+ 233,
64
+ 491,
65
+ 766,
66
+ 642
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 Introduction ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 670,
77
+ 310,
78
+ 686
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "With the rise of autonomous driving, 3D object detection from the LiDAR point cloud has been recently drawing increasing attention. Similar to the 2D image object detection [RHGS15, TSCH19, $\\mathrm { L A E ^ { + } } \\dot { 1 } 6$ , RF17, RDGF16], 3D object detection requires the model to predict the (3D) locations of the objects of interest and the associated properties (e.g., categories, sizes, heading, and the state of motion). In spite of the unprecedented success that the computer vision community has attained on the 2D image object detection, it is still intractable to transfer the success to the 3D object detection task. ",
85
+ "bbox": [
86
+ 173,
87
+ 702,
88
+ 825,
89
+ 797
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Most previous 3D object detection methods consider that the point cloud is amorphous and consists of a set of unordered points. Thus, this task is considered significantly different from its 2D detection counterpart, which works on structured RGB images. Moreover, the cornerstones of modern computer vision—CNNs or CNN-like vision transformers (e.g., Swin Transformers $[ \\mathrm { L L C ^ { + } } 2 1 ]$ ) also assume that the inputs are well-organized as grids, which poses another difficulty of accurate 3D object detection in point clouds. As a result, in order to adopt these well-developed techniques, almost all top-performing point cloud object detection methods first partition the 3D space into structured voxels (or pillars) [ZT18, YZK21, YML18, $\\mathrm { L V C ^ { + } } 1 9$ , Li17] and then follow a paradigm similar to that of 2D object detectors [RHGS15, ZWK19]. Additionally, given the prior that it is very rare two objects being stacked along with the elevation axis in autonomous driving scenes, most methods only carry out the detection task on the bird-eye view (BEV) of the point cloud, which can reduce the exponentially increasing complexity resulted from the third dimension. However, owing to incompatibility with the LiDAR’s sampling process in the autonomous driving scenes, BEV-based solutions often suffer from the following shortcomings. 1) In fact, the points in autonomous driving are regularly sampled in the spherical coordinate system with the origin being the LiDAR sensor. The BEV disregards this regularity, and causes the issue that the voxels far away from the origin have much fewer points than the ones near the origin; and a large number of voxels are even empty. This results in the need for sparse convolutions [YML18, YZK21, Gra14], significantly complicating the system, particularly for on-device applications. 2) The points in a voxel have to be sampled or padded so that every voxel has the same number of points. The sampling decimates a large number of points, leading to the loss of information before the model see anything. 3) From the BEV, some objects such as “pedestrian” and “traffic cone” become very small. Accurately detecting these objects requires a fine-grained voxel size, dramatically increasing the price of computation. ",
96
+ "bbox": [
97
+ 174,
98
+ 805,
99
+ 825,
100
+ 861
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/5ccb15a4cbae5ca572ff95c413d6e171bd32db353762a8db1c5dccf03cb27248.jpg",
107
+ "image_caption": [
108
+ "Figure 1: The range image of the point cloud (right). The size of the range image is $m \\times n$ , where $m$ is the number of beams and $n$ is the number of measurements (i.e., sampling frequency) per scan cycle. A 3D point’s coordinates on the range image are computed by discretizing the azimuthal angle $\\theta$ and the inclination angle $\\phi$ in the spherical coordinate system (left). The $m , n$ , and $\\Delta \\phi$ depend on the LiDAR specifications. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 187,
113
+ 99,
114
+ 813,
115
+ 272
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "",
122
+ "bbox": [
123
+ 174,
124
+ 393,
125
+ 825,
126
+ 656
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "In this work, we advocate a new solution for 3D object detection that works on the range view (RV). As noted by many previous works $[ \\mathrm { F X W ^ { + } } 2 1$ , $\\mathrm { S K D } ^ { + } 2 0$ , $\\mathbf { M } \\mathbf { L } \\mathbf { K } ^ { + } \\mathbf { 1 9 } ]$ , if we consider these points in the spherical coordinate system and project them in terms of their inclination and azimuth angles, they can form a compact 2D image with size being $m \\times n$ (shown in Fig. 1), where $m$ is the number of beams (i.e., channels) of the LiDAR sensor and $n$ is the sampling frequency per scan cycle. The resulting image is referred to as “range image” or “range view” of the point cloud. Compared to the aforementioned BEV, the range image is nearly dense and compatible with the LiDAR sampling process, eliminating the need for sparse convolutions and alleviating the loss of points. In addition, the range image closely resembles the common RGB image, minimizing the cost of transferring the 2D detection methods to 3D ones. In the literature, some works attempted to detect objects on the range view such as RangeDet $[ \\mathrm { F X W } ^ { + } 2 1 ]$ and LaserNet $[ \\mathrm { M L K ^ { + } } 1 9 ]$ . These works have shown that RV-based methods can also achieve decent detection performance, showing the promise. However, previous RV-based methods only focus on the single-frame point cloud as the aforementioned range view structure does not hold anymore if the ego (and the origin) moves between the multiple frames. Additionally, the range image of a single-frame point cloud is already nearly dense so that there are not many vacancies the points from other frames can populate. These issues make the range-view based detectors difficult to benefit from the multi-frame fusion. In sharp contrast, the multi-frame fusion can dramatically improve the performance in the BEV-based detectors, as shown in [YZK21, $\\mathrm { L V C ^ { + } } 1 9 ]$ . This makes the performance of RV-based detectors largely lag behind that of the BEV-based ones, hampering their development and application. In this work, we show this issue can be largely remedied with a well-designed Multi-round Range View (MRV) projection mechanism. The proposed MRV makes the RV-based detectors be able to enjoy the gain of multi-frame fusion and thus achieve competitive performance with multi-frame BEV-based detectors. ",
133
+ "bbox": [
134
+ 173,
135
+ 661,
136
+ 825,
137
+ 911
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "",
144
+ "bbox": [
145
+ 174,
146
+ 90,
147
+ 826,
148
+ 161
149
+ ],
150
+ "page_idx": 2
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "Here, we summarize our main contributions as follows. ",
155
+ "bbox": [
156
+ 178,
157
+ 167,
158
+ 532,
159
+ 180
160
+ ],
161
+ "page_idx": 2
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "• We propose a fully convolutional one-stage 3D object detector, termed FCOS-LiDAR. FCOS-LiDAR works on the LiDAR range images and minimizes the gap between the 3D and 2D detectors, while being substantially simpler than current mainstream BEV-based 3D detectors [YZK21, ZT18]. \nCompared to previous BEV-based detectors [ZT18, YZK21], FCOS-LiDAR sidesteps the complicated voxelization process and eliminates the need for sparse convolutions due to the highly compact range view representation of the point cloud. In the setting of only using the single-frame point cloud as inputs, FCOS-LiDAR can outperform the state-of-the-art BEV-based detector CenterPoint [YZK21] while being faster. \n• We also present a well-designed Multi-round Range View (MRV) projection mechanism, making RV-based detectors be able to benefit from the multi-frame fusion of point clouds as well, and achieve competitive performance compared to the multi-frame BEV-based detectors. To our knowledge, we are the first one approaching the challenge of the RV-based multi-frame point clouds fusion and showing that RV-based detectors can also be boosted by the multi-frame fusion of point clouds. \n• We believe that our excellent performance of the RV-based detector can be a strong evidence that RV-based detectors compare favorably against the mainstream BEV-based detectors and encourage the community to pay attention to this promising solution. ",
166
+ "bbox": [
167
+ 215,
168
+ 205,
169
+ 825,
170
+ 487
171
+ ],
172
+ "page_idx": 2
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "2 Related Work ",
177
+ "text_level": 1,
178
+ "bbox": [
179
+ 174,
180
+ 535,
181
+ 320,
182
+ 553
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Bird-view based 3D Detection. Most top-performing LiDAR-based 3D detectors $[ \\mathrm { F P Z ^ { + } } 2 1$ , YML18, YZK21, $\\mathrm { L V C ^ { + } } 1 9$ , ZT18] fall into this category, which first convert the point cloud into BEV images. VoxelNet [ZT18] is the first end-to-end BEV-based detector, which employs PointNet [QSMG17] to handle the representation within a voxel and 3D convolutions to generate high-level features for the region proposal network (RPN). SECOND [YML18] proposes to use sparse convolutions, which can save the computing burden of 3D convolutions. Another popular approach is to eliminate the voxelization along the elevation axis and convert the point cloud into the pillars $[ \\mathrm { L V C ^ { + } } 1 9 ]$ . Based on the voxel-based or pillar-based BEV representation, CenterPoint [YZK21] achieves state-of-the-art performance by using the anchor-free pipelines. ",
189
+ "bbox": [
190
+ 174,
191
+ 587,
192
+ 825,
193
+ 712
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Range-view based 3D Detection. Due to the compactness of the RV representation, some methods $[ \\bar { \\mathrm { S } } \\mathrm { W } \\mathrm { C } ^ { + } 2 1$ , $\\mathrm { B S M ^ { + } } 2 1$ , $\\mathrm { M L K ^ { + } } 1 9$ , $\\mathrm { M L K ^ { + } } 1 9 ]$ also attempt to perform detection based on the representation. VeloFCN [LZX16] is the pioneering work to perform 3D objection using the range view, which transforms point cloud to the range image and then applies 2D convolution to detect 3D objects. After that, some following works $[ \\mathrm { M L K ^ { + } } 1 9$ , $\\mathrm { F X W } ^ { + } \\bar { 2 } \\bar { 1 } ]$ are proposed to narrow the performance gap between RV-based and BEV-based detectors. LaserNet $[ \\mathrm { M L K ^ { + } } 1 9 ]$ models the distribution of 3D box corners to capture their uncertainty, resulting in more accurate defections. RCD $[ \\mathbf { B } \\mathbf { S } \\mathbf { M } ^ { + } 2 1 ]$ introduces the range-conditioned dilation mechanism to dynamically adjust the dilation rate in terms of the measured range, which can alleviate the scale-sensitivity issue of the RV-based detectors. RangeDet $[ \\mathrm { F X W } ^ { + } 2 1 ]$ further proposes the Range Conditioned Pyramid to mitigate the scale-variation issue and utilizes the Meta-Kernel convolution to better exploit the 3D geometric information of the points. To our knowledge, these existing RV-based detectors only take into consideration the single frame point cloud and neglect the substantial improvements brought by the multi-frame fusion as shown in BEV-based detectors. ",
200
+ "bbox": [
201
+ 174,
202
+ 718,
203
+ 825,
204
+ 911
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "3 Our Approach ",
211
+ "text_level": 1,
212
+ "bbox": [
213
+ 174,
214
+ 89,
215
+ 328,
216
+ 107
217
+ ],
218
+ "page_idx": 3
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "3.1 Range View Representation ",
223
+ "text_level": 1,
224
+ "bbox": [
225
+ 174,
226
+ 119,
227
+ 405,
228
+ 136
229
+ ],
230
+ "page_idx": 3
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "Given a LiDAR point $( x , y , z )$ in the Cartesian coordinate system with the $z$ -axis pointing upward, it can be uniquely transformed to the spherical coordinates $( r , \\theta , \\phi )$ with ",
235
+ "bbox": [
236
+ 176,
237
+ 145,
238
+ 825,
239
+ 174
240
+ ],
241
+ "page_idx": 3
242
+ },
243
+ {
244
+ "type": "equation",
245
+ "img_path": "images/f42dc75d358641288957e7ca3222d8a3afa92243280c3c9959c519cd0fbcdbf2.jpg",
246
+ "text": "$$\nr = \\sqrt { x ^ { 2 } + y ^ { 2 } + z ^ { 2 } } , \\theta = \\mathrm { a t a n 2 } ( y , x ) , \\phi = \\mathrm { a t a n 2 } ( z , \\sqrt { x ^ { 2 } + y ^ { 2 } } ) ,\n$$",
247
+ "text_format": "latex",
248
+ "bbox": [
249
+ 277,
250
+ 180,
251
+ 718,
252
+ 200
253
+ ],
254
+ "page_idx": 3
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "where $r , \\theta$ , and $\\phi$ are the range, azimuthal angle, and inclination angle, respectively, as shown in Fig. 1(left). The LiDAR samples the points with a fixed number of beams (denoted by $m$ ), each of which has a fixed inclination angle. These LiDAR beams synchronously rotate around the $z$ -axis uniformly to obtain a $3 6 0 ^ { \\circ }$ horizontal field of view and the LiDAR measures a certain number of times (denoted by $n$ ) per scan cycle (i.e., per frame). Thus, the difference of adjacent measurements’ azimuthal angles is $3 6 0 / n ^ { \\circ }$ . For example, on the nuScenes dataset, the LiDAR measures $n = 1 0 8 6$ times per scan cycle and has $m = 3 2$ beams. The inclination angles of these beams are evenly spaced from $- 3 0 . 6 7 ^ { \\circ }$ to $1 0 . 6 7 ^ { \\circ }$ , inclusive. Note that the inclination angles are not always evenly spaced and subject to the specifications of the LiDAR. ",
259
+ "bbox": [
260
+ 173,
261
+ 205,
262
+ 825,
263
+ 330
264
+ ],
265
+ "page_idx": 3
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "Given the regularity of the azimuthal and inclination angles for a given LiDAR, we can discretize the azimuthal angles with $n$ bins, and inclination angles with $m$ bins, respectively. Let $( i , j )$ be the indices of the bins for azimuthal and inclination angles, respectively. By computing all the pairs of $( i , j )$ of the points in a single scan cycle, we can fill these points into a 2D image $\\bar { I } \\bar { \\in } \\mathbb { R } ^ { m \\times n \\bar { \\times } C }$ (i.e., the range image), where $C = 9$ consists of the original Cartesian coordinates $( x , y , z )$ , the spherical coordinates $( r , \\theta , \\phi )$ , the reflected intensity $i$ , the existence $e$ of the point, and a relative timestamp $t$ The existence denotes whether or not the location is filled by a point, and the relative timestamp is only valid in the multi-frame point cloud inputs and denotes the time difference between the frame containing this point and the current frame. In practice, the vehicle itself is often in motion, and this causes that some points might be projected to the same bins on the range image. In this case, we keep the one with the minimal distance to the vehicle. ",
270
+ "bbox": [
271
+ 173,
272
+ 337,
273
+ 825,
274
+ 489
275
+ ],
276
+ "page_idx": 3
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "3.2 Multi-round Range View Projection (MRV) ",
281
+ "text_level": 1,
282
+ "bbox": [
283
+ 174,
284
+ 505,
285
+ 516,
286
+ 520
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "The point cloud of a single frame is often sparse in the 3D space and of low resolutions. In order to improve the detection performance, the current frame is often combined with several previous frames as the network’s inputs [YZK21, ZT18]. Taking the nuScenes dataset as an example, the methods on this dataset often take as the inputs 10 frames, which is composed of the current frame and previous 9 frames, including ${ \\sim } 2 4 0 \\mathrm { K }$ points in total. The crucial issue of the range view representation is the collision that multiple points fall into the same bin happens much more frequently in the multi-frame case. For instance, on nuScenes, only ${ \\sim } 2 8 \\mathrm { K }$ points are finally kept in the range image and ${ \\sim } 9 0 \\%$ of the points are discarded due to the collision. The decimation makes the multi-frame point cloud have almost the same number of valid points with the single-frame version, which is the dominant reason that RV-based methods cannot enjoy the benefit of multi-frame inputs. ",
293
+ "bbox": [
294
+ 173,
295
+ 530,
296
+ 825,
297
+ 670
298
+ ],
299
+ "page_idx": 3
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "In order to cope with this crucial issue, we propose the Multi-round Range View (MRV) projection mechanism. To be specific, we first project the points with the method in Sec. 3.1. Then, instead of discarding the rejected points, we project them again with the same process and put them in another group of nine channels. This projection process is repeated until a sufficient number of points are kept. On the nuScenes dataset, this is repeated five times and the percentage of the retained points can be improved from ${ \\sim } 1 0 \\%$ to more than $50 \\%$ . In theory, as long as we continue the process, all points can be kept. However, we found that the performance is saturated after 5 repetitions on the nuScenes dataset. Finally, the resulting range images of the five rounds are concatenated along the channel dimension and used as the inputs. Additionally, one caveat is that the points of the current frame should have the highest priority wherever the collision happens because the points of previous frames are stale and might not reflect the current status of the world. Despite being a very simple treatment, it significantly affects the effectiveness of the multi-frame fusion as shown in our experiments. ",
304
+ "bbox": [
305
+ 173,
306
+ 675,
307
+ 825,
308
+ 842
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "3.3 Modality-wise Convolutions ",
315
+ "text_level": 1,
316
+ "bbox": [
317
+ 174,
318
+ 857,
319
+ 406,
320
+ 872
321
+ ],
322
+ "page_idx": 3
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "As mentioned before, each pixel on the single-frame range image contains nine channels. Different the RGB image, whose three channels are of the same modality (i.e., in the color space) and correlated for the manifold of natural images, the nine channels of the range image are not like that and belong to five modalities, i.e., $[ x , y , z ]$ , $[ r , \\theta , \\phi ]$ , [i], $[ e ]$ and $[ t ]$ , respectively, where the channels in the one pair of square brackets are of the same modality. For example, the correlation between the reflected intensity $i$ and the coordinate $x$ does not make sense. Further, even the different channel types in the same modality are orthogonal and less correlated as well. For instance, it is difficult to say there is a relationship between the azimuthal angle $\\theta$ and the range $r$ of a point. As a result, one channel type should be viewed as an individual “modality”. By default, the conv. layer simultaneously computes spatial correlations and cross-channel correlations. However, as shown before, the channels of the range image are less correlated, and thus, it is not reasonable to use the default conv. layer here, and the channels of the range image should be processed separately. This can be easily implemented with the grouped convolutions. Here, we term it modality-wise convolution because it is based on the “modalities”. Once the high-level semantic features of these modalities are individually obtained, we can aggregate the features of these modalities with a $1 \\times 1$ conv. layer (i.e., point-wise convolution) for further abstract analysis. ",
327
+ "bbox": [
328
+ 176,
329
+ 883,
330
+ 821,
331
+ 911
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "image",
337
+ "img_path": "images/67aad4d18ca4e000364946778b787a418ea050c0876b322f7af004777961aeda.jpg",
338
+ "image_caption": [
339
+ "Figure 2: Modality-wise convolutions with a multi-frame range image. As we can see, we first rearrange the channels of the multi-frame range image so that the channels with the same type from different frames (e.g., $x _ { 0 }$ , $x _ { 1 }$ , ... $x _ { T - 1 } )$ are adjacent. Then, two successive 2D conv. layers with the number of groups being 9 (which is equal to the number of different channel types) are used to process these channels separately, mapping each channel type to a 32-channel features. Finally, the features of these channel types are merged by a $1 \\times 1$ conv. layer. "
340
+ ],
341
+ "image_footnote": [],
342
+ "bbox": [
343
+ 183,
344
+ 93,
345
+ 820,
346
+ 241
347
+ ],
348
+ "page_idx": 4
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "",
353
+ "bbox": [
354
+ 173,
355
+ 364,
356
+ 825,
357
+ 558
358
+ ],
359
+ "page_idx": 4
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "In this way, the modality-wise convolution is analogous to the widely-used depth-wise convolution, but we highlight that the underlying nature is distinct. Our modality-wise convolution instantiates a reasonable inductive bias based on the prior that different modalities are less relevant, and thus it is expected to simultaneously improve both the effectiveness and efficiency, as shown in our experiments. This also leads to the fact that the modality-wise convolution can only be placed at the beginning of the network, where the channels are interpretable and have an explicit modality. In contrast, the depth-wise convolution (together with the point-wise convolution) is often viewed as an efficient approximation of the full conv. layer and thus it does not usually yield improved performance and can appear anywhere. Lastly, when it comes to the multi-frame point clouds, the channels of the same type from different frames should be handled together because they are closely correlated. The whole procedure of the modality-wise convolution is illustrated in Fig. 2. ",
364
+ "bbox": [
365
+ 174,
366
+ 565,
367
+ 825,
368
+ 717
369
+ ],
370
+ "page_idx": 4
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "3.4 Overall Architecture ",
375
+ "text_level": 1,
376
+ "bbox": [
377
+ 176,
378
+ 738,
379
+ 356,
380
+ 752
381
+ ],
382
+ "page_idx": 4
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "The overall architecture of FCOS-LiDAR is shown in Fig. 3. FCOS-LiDAR follows the spirit of the anchor-free detector FCOS [TSCH19] in the image-based object detection and is a standard fully convolutional network [LSD15]. ",
387
+ "bbox": [
388
+ 176,
389
+ 765,
390
+ 823,
391
+ 809
392
+ ],
393
+ "page_idx": 4
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "Taking a (multi-frame) range image $I \\in \\mathbb { R } ^ { m \\times n \\times ( T \\times C ) }$ as an example, where $T$ is the number of the used frames, we first forward the range image through our backbone network, termed LiDAR-Net. LiDAR-Net is adapted from ResNet-50 [HZRS16]. Specifically, before the first conv. layer of ResNet50, we insert three branches of the modality-wise convolutions with three dilation rates being 1, 3, and 6, respectively. The branches with various dilation rates aim to capture the multi-scale context, whose outputs are summed up. Then, the first two $2 \\times$ downsamplings of ResNet-50 are removed, which is of great importance due to the low resolutions of the range images. Moreover, we change the numbers of blocks of ResNet-50’s four stages from $( 3 , 4 , 6 , 3 )$ to $( 4 , 4 , 1 , 1 )$ and stop doubling the number of channels in the third and fourth stages because we found that the final performance is not sensitive to the capacity of the later stages but quite sensitive to that of the early stages. This ravels one of the important difference between the LiDAR-based and image-based object detection tasks. For object detection in RGB images, more convolutions in the later stages are often required to transform the RGB pixels into the highly semantic and abstract features that can be used to obtain the geometries of the objects. However, the LiDAR points themselves are already geometric points and thus that many convolutions in the later stages are no longer needed. Thus, we can instead allocate the capacity in the later stages to the early stages (before any downsampling) to better incorporate the geometric information carried by the raw points. Finally, the four levels of feature maps from LiDAR-Net’s four stages are used, denoted by $C _ { 2 }$ , $C _ { 3 }$ , $C _ { 4 }$ , and $C _ { 5 }$ , respectively. ",
398
+ "bbox": [
399
+ 174,
400
+ 813,
401
+ 825,
402
+ 911
403
+ ],
404
+ "page_idx": 4
405
+ },
406
+ {
407
+ "type": "image",
408
+ "img_path": "images/ccc7a5ad0561507b5fc76d7c684bc309f1ceec7dbcca626196036e4658e76911.jpg",
409
+ "image_caption": [
410
+ "Figure 3: Overall architecture. The overall architecture of FCOS-LiDAR resembles the 2D imagebased detector FCOS [TSCH19]. By taking as input an range image, the network obtains the multi-level FPN features, and then the classification and regression branches are attached to these feature levels to predict the final 3D boxes. Different from FCOS, the weights of the detection heads are not shared between the FPN levels as mentioned in Sec. 3.4. In addition, the class-specific regression heads are used instead of the class-agnostic ones in FCOS. "
411
+ ],
412
+ "image_footnote": [],
413
+ "bbox": [
414
+ 184,
415
+ 95,
416
+ 815,
417
+ 300
418
+ ],
419
+ "page_idx": 5
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "",
424
+ "bbox": [
425
+ 174,
426
+ 428,
427
+ 825,
428
+ 580
429
+ ],
430
+ "page_idx": 5
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "Next, following FCOS, the four levels of feature maps are sent into a feature pyramid network (FPN) $[ \\mathrm { L D G ^ { + } i } \\bar { 7 } ]$ to obtain six levels of pyramid feature maps denoted by $P _ { 2 }$ , $P _ { 3 }$ , $P _ { 4 }$ , $P _ { 5 }$ , $P _ { 6 }$ , and $P _ { 7 }$ . Their spatial downsampling ratios to the input are $1 / 1 , \\bar { 1 / 2 } , \\bar { 1 / 4 } , \\bar { 1 / 8 } , \\bar { 1 / } \\bar { 1 6 }$ , and $^ { 1 / 3 2 }$ , respectively. Then, similar to FCOS, the classification and regression heads, each with four $3 \\times 3$ conv. layers of channel 64 and a final prediction conv. layer (for the classification or regression), are attached to these feature levels. Unlike the heads in image-based detectors, whose weights are shared between these feature levels, it is important in the LiDAR-based detector to untie these weights. This is another important difference between image-based and LiDAR-based detectors. In image-based detectors, different sizes of objects can be normalized to similar sizes of objects by the downsampling the image with corresponding factors. That is what the “pyramid” means in the FPN. Thus, the image-based detectors can share the weights of the detection heads because the objects have been normalized to similar sizes after the FPN. However, in LiDAR-based detection, the objects’ sizes cannot be normalized in this way because the sizes of the objects are determined by the 3D points’ coordinate values in them and downsampling the range images cannot alter their real sizes in the 3D space. Therefore, it is no longer reasonable to share the detection heads between these FPN levels. This is also confirmed in our experiments. ",
435
+ "bbox": [
436
+ 173,
437
+ 587,
438
+ 825,
439
+ 808
440
+ ],
441
+ "page_idx": 5
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "Training Targets Computation. Similar to FCOS [TSCH19], we need to assign the training targets to each location of the feature maps computed with the range image. The training targets computation is described using the nuScenes dataset as an example. On nuScenes, an object’s ground-truth 3D box is parameterized by $( c _ { x } ^ { * } , c _ { y } ^ { * } , c _ { z } ^ { * } , w ^ { * } , h ^ { * } , l ^ { * } , \\alpha ^ { * } )$ , where $( c _ { x } ^ { * } , c _ { y } ^ { * } , c _ { z } ^ { * } )$ is the 3D center of the box, and $w , h , l$ , and respectively are the width, height, length, and the yaw angle around the axis. First, each location on the feature maps is mapped to the pixel location on the range image by multiplying them by the feature maps’ downsampling ratio. Next, we use the 3D LiDAR point projected by the first-round MRV projection as the 3D point of the pixel. If the pixel’s 3D point is contained in an object’s 3D box, the feature location is responsible for the object and predicts its category, 3D box and etc.. Here, the 3D box regression targets of the feature location are relative to the 3D point coordinates of the pixel and are defined as ",
446
+ "bbox": [
447
+ 174,
448
+ 814,
449
+ 825,
450
+ 911
451
+ ],
452
+ "page_idx": 5
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "",
457
+ "bbox": [
458
+ 174,
459
+ 90,
460
+ 825,
461
+ 147
462
+ ],
463
+ "page_idx": 6
464
+ },
465
+ {
466
+ "type": "equation",
467
+ "img_path": "images/82528897c139459bcb53c50be8d93f9b0fa7e41ec523b340ee11bc394a50b6b0.jpg",
468
+ "text": "$$\n\\Delta c _ { x } = c _ { x } ^ { * } - x _ { 0 } , \\Delta c _ { y } = c _ { y } ^ { * } - y _ { 0 } , \\Delta c _ { z } = c _ { z } ^ { * } - z _ { 0 } , t _ { w } = \\log ( w ^ { * } ) , t _ { h } = \\log ( h ^ { * } ) , t _ { l } = \\log ( l ^ { * } ) ,\n$$",
469
+ "text_format": "latex",
470
+ "bbox": [
471
+ 179,
472
+ 155,
473
+ 797,
474
+ 174
475
+ ],
476
+ "page_idx": 6
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "where $( x _ { 0 } , y _ { 0 } , z _ { 0 } )$ are the 3D point coordinates of the range image pixel. Similarly, the regression targets of the yaw angle $\\alpha$ are also relative to the azimuthal angle of the pixel, and following the convention [YZK21], we decouple the relative azimuthal angle into $( \\sin \\Delta \\alpha , \\cos \\Delta \\alpha )$ . On nuScenes, we also need to predict the velocity vector $( v _ { x } ^ { * } , v _ { y } ^ { * } )$ of the object, which are used as the training targets as is. Other locations on the feature maps that correspond to 3D points not in any 3D box are used as the negative samples. Note that all the pixels within a object’s 3D box actually form a 2D mask on the range image. ",
481
+ "bbox": [
482
+ 174,
483
+ 181,
484
+ 825,
485
+ 280
486
+ ],
487
+ "page_idx": 6
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "Network Outputs. The nuScenes dataset has $C = 1 0$ classes of interest, which is predicted by the classification head followed by a softmax layer (the upper head in Fig. 3). The other regression targets are predicted by four sibling output heads of the regression branch, respectively, as shown in Fig. 3. Here, we use the class-specific regression predictions and thus the number of the output channels is amplified by $C$ times. Moreover, following $[ \\mathrm { G L W ^ { + } } 2 1$ , RDGF16], each positive pixel also predicts the intersection-over-union (IoU) between the predicted 3D box and ground-truth one, which is multiplied to the classification score before the non-maximum suppression (NMS). ",
492
+ "bbox": [
493
+ 174,
494
+ 285,
495
+ 825,
496
+ 382
497
+ ],
498
+ "page_idx": 6
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "Loss Functions. The classification predictions are supervised with the cross entropy (CE) loss. Following $[ \\mathrm { G L L ^ { + } } 2 1 ]$ , we dynamically reassign the classification labels during training. Specifically, for a ground-truth 3D box, only the top $K$ pixels whose predicted 3D boxes have the lowest costs with the ground-truth box are assigned with the positive labels and other pixels are considered negative, where the cost is defined as the summation of the classification loss and the opposite of the IoU between the predicted boxes and the ground-truth box, and $K$ is dynamically calculated, being the summation (rounded to an integer) of the highest $Q = 2 0$ IoUs between the predicted boxes and the ground-truth box. For the 3D box regression, we make use of both the IoU loss $[ \\mathrm { Y } \\mathrm { J } \\mathrm { W } ^ { + } 1 6 ]$ and $L _ { 1 }$ loss. Following [TSCH19], the IoU predictions are penalized with the binary cross entropy (BCE) loss since they are in the range $[ 0 , 1 ]$ . ",
503
+ "bbox": [
504
+ 174,
505
+ 388,
506
+ 825,
507
+ 529
508
+ ],
509
+ "page_idx": 6
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "Inference. The inference is very similar to that of the 2D image-based detector FCOS. To be specific, the range images are forwarded through the network and the aforementioned predictions are obtained. The predictions are filtered in terms of the classification scores and only the predictions with the score greater than 0.01 are kept. The 3D boxes are restored by inverting the computation of the training targets. Then, the NMS on the 3D boxes is applied with threshold 0.2 to remove the duplications. Finally, the top 500 predictions with the highest scores are used as the final predictions. ",
514
+ "bbox": [
515
+ 174,
516
+ 534,
517
+ 826,
518
+ 617
519
+ ],
520
+ "page_idx": 6
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "4 Experiments ",
525
+ "text_level": 1,
526
+ "bbox": [
527
+ 174,
528
+ 637,
529
+ 312,
530
+ 655
531
+ ],
532
+ "page_idx": 6
533
+ },
534
+ {
535
+ "type": "text",
536
+ "text": "We conduct experiments on the nuScenes dataset $[ \\mathrm { C B L ^ { + } } 2 0 ]$ , which contains 1000 scenes with 700, 150, and 150 scenes for training, validation, and testing, respectively. The training, validation, and testing sets have 28K, 6K, 6K keyframes annotated with 10 classes, respectively. For all ablation experiments, we train the models on the training set and report the performance on the validation set unless specified. The metrics of the 3D detection task are mean Average Precision (mAP) and the nuScenes detection score (NDS). The LiDAR sensor of the nuScenes dataset has $m = 3 2$ beams and $n = 1 0 8 6$ measurements per scan cycle. The mAP is based the center distances on the bird-eye view at thresholds $0 . 5 \\mathrm { m }$ , 1m, $2 \\mathrm { m }$ , $4 \\mathrm { m }$ in place of the box IoUs. NDS is a weighted average of mAP, the translation error, the scale error, the orientation error, the velocity error, and the box attributes error. ",
537
+ "bbox": [
538
+ 173,
539
+ 669,
540
+ 825,
541
+ 794
542
+ ],
543
+ "page_idx": 6
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "Implementation Details. Unless specified, following [YZK21], FCOS-LiDAR is trained by 40 epochs with the AdamW [LH17] optimizer under the MMDetection3D framework [Con20], which takes ${ \\sim } 2 6$ hours on 8 A100 GPUs. The one-cycle learning rate policy [ST19] with initial learning rate $1 0 ^ { - 3 }$ is used. The learning rate gradually increases to 0.01 in the first $40 \\%$ epochs and then gradually decreases to $1 0 ^ { - 7 }$ in the rest of the training process. The weight decay is 0.01, and the momentum ranges from 0.85 to 0.95. In addition, due to the low vertical resolution of the range image on the nuScenes dataset, we upscale the range image in the vertical direction by 2 with the nearest interpolation. During training, the point cloud is randomly flipped along both the $x$ and $y$ axes and rotated in the range $[ - \\pi , \\pi ]$ , as well as globally scaled by a random factor from [0.95, 1.05]. The ground-truth copy-paste data augmentation from [YML18] is also used. For multi-frame point cloud, we use 10 sweeps in total, as in previous works [YZK21, $\\mathrm { L V C ^ { + } } 1 9 ]$ . The inference time is measured on a 3090Ti GPU with batch size 1. ",
548
+ "bbox": [
549
+ 174,
550
+ 799,
551
+ 825,
552
+ 911
553
+ ],
554
+ "page_idx": 6
555
+ },
556
+ {
557
+ "type": "table",
558
+ "img_path": "images/3558dc389ebe8aa1def32a69a011b3e56acf0f83a73003713e4a85d0423f27f0.jpg",
559
+ "table_caption": [
560
+ "Table 1: Multi-round range view (MRV) projection. Time: the elapsed time of MRV. "
561
+ ],
562
+ "table_footnote": [],
563
+ "table_body": "<table><tr><td colspan=\"3\">Single-frame</td><td colspan=\"3\">Multi-frame</td></tr><tr><td>#Rounds</td><td>Time (ms)</td><td>mAP (%)</td><td>NDS (%)</td><td>mAP (%)</td><td>NDS (%)</td></tr><tr><td>1</td><td>0.66</td><td>53.14</td><td>51.52</td><td>55.02</td><td>61.27</td></tr><tr><td>3</td><td>0.72</td><td>53.76</td><td>53.62</td><td>56.01</td><td>62.82</td></tr><tr><td>5</td><td>0.76</td><td>53.42</td><td>53.40</td><td>57.08</td><td>63.15</td></tr><tr><td>7</td><td>0.76</td><td>53.06</td><td>53.10</td><td>56.99</td><td>63.47</td></tr></table>",
564
+ "bbox": [
565
+ 174,
566
+ 112,
567
+ 823,
568
+ 199
569
+ ],
570
+ "page_idx": 7
571
+ },
572
+ {
573
+ "type": "table",
574
+ "img_path": "images/e604e51cccb9e56093acc753e0caea81d738f0a54d662978b2e3bcee905610b5.jpg",
575
+ "table_caption": [
576
+ "Table 2: Whether to make the points of the current frame have the highest priority. The per-category mAP results are reported. “C.V.”, “Ped.” and “C.T.” indicate “construction vehicle”, “pedestrian” and “traffic cone”, respectively. "
577
+ ],
578
+ "table_footnote": [],
579
+ "table_body": "<table><tr><td>Prioritized? mAP(%) NDS(%)</td><td></td><td></td><td>Car</td><td>Truck</td><td>Bus</td><td>Trailer</td><td></td><td></td><td>C.V.Ped. Motor</td><td>Bicycle</td><td>T.C.</td><td>Barrier</td></tr><tr><td></td><td>54.29</td><td>62.31</td><td>76.8</td><td>47.3</td><td>62.0</td><td>32.0</td><td>16.5</td><td>80.3</td><td>53.8</td><td>38.2</td><td>70.1</td><td>65.9</td></tr><tr><td>√</td><td>57.08</td><td>63.15</td><td>82.1</td><td>52.3</td><td>65.2</td><td>33.6</td><td>18.3 84.1</td><td></td><td>58.5</td><td>35.3</td><td>73.4</td><td>67.9</td></tr></table>",
580
+ "bbox": [
581
+ 174,
582
+ 261,
583
+ 825,
584
+ 308
585
+ ],
586
+ "page_idx": 7
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "",
591
+ "bbox": [
592
+ 174,
593
+ 332,
594
+ 826,
595
+ 387
596
+ ],
597
+ "page_idx": 7
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "4.1 Multi-round Range View Projection ",
602
+ "text_level": 1,
603
+ "bbox": [
604
+ 176,
605
+ 402,
606
+ 462,
607
+ 419
608
+ ],
609
+ "page_idx": 7
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "Here, we conduct experiments to demonstrate the effectiveness of the proposed multi-round range view (MRV) projection. As shown in Table 1, in the single-frame settings, MRV is also helpful, for example, by increasing the number of rounds from 1 to 3, the mAP can be boosted by $0 . 6 2 \\%$ . This is due to the fact that the vehicle is often in motion and the aforementioned collisions happen within a single frame as well. As you can see, if one round is used, the multi-frame fusion can improve the mAP by a substantial margin ${ \\sim } 1 . 9 \\%$ (from $5 3 . 1 4 \\%$ to $5 5 . 0 2 \\%$ ). The improvement can be dramatically increased to $3 . 9 \\%$ mAP if we use 5 rounds in MRV $( 5 7 . 8 \\%$ mAP), due to the fact that 5-round MRV can keep much more points in the multi-frame point clouds as mentioned in Sec. 3.2. This confirmed the effectiveness of MRV. Note that elapsed time of MRV is insensitive to the number of rounds as shown in Table 1. ",
614
+ "bbox": [
615
+ 173,
616
+ 429,
617
+ 826,
618
+ 566
619
+ ],
620
+ "page_idx": 7
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "More importantly, in the RV-based multi-frame settings, it is crucial to assign the highest priority to the points from the current frame when the collision happens. As shown in Table 2, without this treatment, the performance of the multi-frame fusion is significantly dropped from $5 7 . 0 8 \\%$ to $5 4 . 2 9 \\%$ in mAP. Note that the single-frame counterpart can already achieve mAP $5 3 . 4 2 \\%$ . We argue that the neglect of this point in previous works is one of the main reasons that RV-based detectors can barely enjoy the benefit of multi-frame fusion. ",
625
+ "bbox": [
626
+ 174,
627
+ 573,
628
+ 825,
629
+ 657
630
+ ],
631
+ "page_idx": 7
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "4.2 Modality-wise Convolutions ",
636
+ "text_level": 1,
637
+ "bbox": [
638
+ 176,
639
+ 672,
640
+ 406,
641
+ 688
642
+ ],
643
+ "page_idx": 7
644
+ },
645
+ {
646
+ "type": "table",
647
+ "img_path": "images/548b58822c6d06df6bd1c510cffbfa36fe97e44460f4aab2cb66d74907f6ae5c.jpg",
648
+ "table_caption": [
649
+ "Table 3: Modality-wise convolutions. “Multi-round”: whether to group together the channels with the same type from multiple projection rounds. Note that all the items here are with the multi-frame fusion and multi-round projections. The only difference is the way to group the channels. Time: the latency of this module. "
650
+ ],
651
+ "table_footnote": [],
652
+ "table_body": "<table><tr><td>Modality groups</td><td>Multi-round</td><td>Time (ms)</td><td>mAP (%)</td><td>NDS (%)</td></tr><tr><td>[x,y,z,r,0,Φ,i,t,e]</td><td>√</td><td>6.0</td><td>56.35</td><td>62.65</td></tr><tr><td>[x,y,z],[r,0,],[i],[t],[e]</td><td>√</td><td>4.2</td><td>56.34</td><td>63.07</td></tr><tr><td>[x],[y],[2],[r],[0],[],[],[,[e]</td><td>√</td><td>3.2</td><td>57.08</td><td>63.15</td></tr><tr><td>[x],[],[2],,[r],[0],,[],,[],[],[e]</td><td></td><td>3.8</td><td>56.83</td><td>63.15</td></tr></table>",
653
+ "bbox": [
654
+ 176,
655
+ 767,
656
+ 823,
657
+ 842
658
+ ],
659
+ "page_idx": 7
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "The experimental results of our modality-wise convolutions are shown in Table 3. If we use the full convolutions here, which compute the correlation between all the channels of the range image, FCOS-LiDAR can achieve $5 6 . 3 5 \\%$ in mAP. By splitting the channels into various modalities (2nd row), the performance can be slightly improved, i.e., from NDS $6 2 . 6 5 \\%$ to $6 3 . 0 7 \\%$ . Moreover, due to the fact that even the different channel types of the same modality are orthogonal and less correlated, we process each channel type individually. As shown in the table, the performance can be further boosted from mAP $5 6 . 3 4 \\%$ to $5 7 . 0 8 \\%$ (3rd row) while the lowest latency is achieved. Finally, the last row shows the results if we do not consider the channels with the same type from multiple rounds together, where the mAP is slightly worse. In Table 4, we vary the number of the conv. layers in the modality-wise convolutions. As we can see, using two conv. layers achieves the best performance here. ",
664
+ "bbox": [
665
+ 174,
666
+ 856,
667
+ 825,
668
+ 911
669
+ ],
670
+ "page_idx": 7
671
+ },
672
+ {
673
+ "type": "table",
674
+ "img_path": "images/23aee155ae029f1c086c6594b3771c076217136b6285317aa613109f959879d9.jpg",
675
+ "table_caption": [
676
+ "Table 4: Varying the number of the conv. layers in the modality-wise convolutions. Time: the latency of the modality-wise convolutions. "
677
+ ],
678
+ "table_footnote": [],
679
+ "table_body": "<table><tr><td>#Conv. Time (ms) mAP(%) NDS(%) Car Truck Bus Trailer C.V. Ped. Motor Bicycle T.C. Barrier</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>1</td><td>2.0</td><td>55.81</td><td>61.98</td><td></td><td>81.8 51.4</td><td>65.2</td><td>30.7</td><td>16.9 83.4</td><td>56.0</td><td>32.8 71.9</td><td>68.1</td></tr><tr><td>2</td><td>3.2</td><td>57.08</td><td>63.15</td><td></td><td>82.1 52.3 65.2</td><td></td><td>33.6</td><td>18.3 84.1</td><td>58.5</td><td>35.3 73.4</td><td>67.9</td></tr><tr><td>3</td><td>4.3</td><td>56.71</td><td>63.25</td><td>82.6 51.4 65.3</td><td></td><td></td><td>31.9</td><td>18.5 83.9</td><td>57.3 34.9</td><td>72.9</td><td>68.4</td></tr></table>",
680
+ "bbox": [
681
+ 174,
682
+ 126,
683
+ 823,
684
+ 185
685
+ ],
686
+ "page_idx": 8
687
+ },
688
+ {
689
+ "type": "table",
690
+ "img_path": "images/d6905667f45d5103c4858af51b650edb86dcc426e51ea4502b8bf408b4bc6cb8.jpg",
691
+ "table_caption": [
692
+ "Table 5: Multi-scale context aggregation. "
693
+ ],
694
+ "table_footnote": [],
695
+ "table_body": "<table><tr><td>Dilations mAP(%)</td><td></td><td>NDS(%)</td><td>Car</td><td>Truck</td><td>Bus</td><td>Trailer</td><td>C.V.</td><td>Ped.</td><td>Motor</td><td>Bicycle</td><td>T.C.</td><td>Barrier</td></tr><tr><td>(1,)</td><td>55.87</td><td>62.68</td><td>81.8</td><td>51.0</td><td>64.1</td><td>32.6</td><td>16.9</td><td>83.8</td><td>56.3</td><td>31.2</td><td>72.7</td><td>68.3</td></tr><tr><td>(1,3)</td><td>56.39</td><td>62.96</td><td>82.3</td><td>52.1</td><td>65.3</td><td>32.8</td><td>17.1</td><td>83.7</td><td>58.2</td><td>32.5</td><td>72.0</td><td>67.8</td></tr><tr><td>(1,3,6)</td><td>57.08</td><td>63.15</td><td>82.1</td><td>52.3</td><td>65.2</td><td>33.6</td><td>18.3</td><td>84.1</td><td>58.5</td><td>35.3</td><td>73.4</td><td>67.9</td></tr><tr><td>(1,1,1)</td><td>56.63</td><td>63.12</td><td>82.1</td><td>51.5</td><td>65.2</td><td>32.9</td><td>17.1</td><td>83.7</td><td>58.8</td><td>33.7</td><td>73.1</td><td>68.0</td></tr></table>",
696
+ "bbox": [
697
+ 176,
698
+ 224,
699
+ 821,
700
+ 296
701
+ ],
702
+ "page_idx": 8
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "",
707
+ "bbox": [
708
+ 173,
709
+ 325,
710
+ 825,
711
+ 422
712
+ ],
713
+ "page_idx": 8
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "In addition, as mentioned before, we employ multiple modality-wise convolution branches with various dilation rates in parallel to capture the multi-scale context. The experiments are shown in Table 5. As we can see, compared with the one using only one dilation rate, using multiple dilation rates can improve the performance by more than $1 \\%$ in mAP (from $5 5 . 8 7 \\%$ to $5 7 . 0 8 \\%$ ). ",
718
+ "bbox": [
719
+ 174,
720
+ 429,
721
+ 825,
722
+ 486
723
+ ],
724
+ "page_idx": 8
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "4.3 Untied Weights of Detection Heads ",
729
+ "text_level": 1,
730
+ "bbox": [
731
+ 176,
732
+ 505,
733
+ 455,
734
+ 520
735
+ ],
736
+ "page_idx": 8
737
+ },
738
+ {
739
+ "type": "table",
740
+ "img_path": "images/0e810db4a4aa0f70daf55cb9686f1950f8dcd7ea9a4d46c7e43fba22b5987d5d.jpg",
741
+ "table_caption": [
742
+ "Table 6: Whether to untie the weights of the detection heads. "
743
+ ],
744
+ "table_footnote": [],
745
+ "table_body": "<table><tr><td>Untied? mAP(%)</td><td></td><td>NDS(%)</td><td>Car</td><td>Truck</td><td>Bus</td><td>Trailer</td><td>C.V.</td><td>Ped.</td><td>Motor</td><td>Bicycle</td><td>T.C.</td><td>Barrier</td></tr><tr><td></td><td>56.44</td><td>63.09</td><td>82.0</td><td>51.1</td><td>64.3</td><td>31.1</td><td>18.3</td><td>83.8</td><td>57.9</td><td>34.7</td><td>72.9</td><td>68.4</td></tr><tr><td>√</td><td>57.08</td><td>63.15</td><td>82.1</td><td>52.3</td><td>65.2</td><td>33.6</td><td>18.3</td><td>84.1</td><td>58.5</td><td>35.3</td><td>73.4</td><td>67.9</td></tr></table>",
746
+ "bbox": [
747
+ 176,
748
+ 564,
749
+ 823,
750
+ 611
751
+ ],
752
+ "page_idx": 8
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "As mentioned before, it is better to untie the weights of the detection heads between the FPN levels in the LiDAR-based detector. This is confirmed in Table 6. As we can see, by untying the weights, the performance can be improved from mAP $5 6 . 4 4 \\%$ to $5 7 . 0 8 \\%$ . This ravels one of the interesting differences between image-based and LiDAR-based detectors because the shared detection heads between FPN levels often achieve better performance in image-based detectors [TSCH19, $\\mathrm { L D G ^ { + } } 1 7 ]$ . ",
757
+ "bbox": [
758
+ 173,
759
+ 627,
760
+ 826,
761
+ 698
762
+ ],
763
+ "page_idx": 8
764
+ },
765
+ {
766
+ "type": "table",
767
+ "img_path": "images/5625127cd70aa78264e86dd5d09f44e98586e77a4f0eff9d85073bc0b1add537.jpg",
768
+ "table_caption": [
769
+ "Table 7: Inference time breakdowns. We compare against the state-of-the-art BEV-based CenterPoint [YZK21], which is trained with exactly the same strategies. We use the CenterPoint implementation in MMDetection3D [Con20] with sparse convolution version 1.2.1 [SPC21]. FCOS-LiDAR is faster as well as competitive in the multi-frame setting (and superior in the single-frame setting). "
770
+ ],
771
+ "table_footnote": [],
772
+ "table_body": "<table><tr><td colspan=\"7\">Method Voxel/MRV(ms) Backbone(ms) Heads(ms) Overall(ms) mAP(%) NDS(%)</td></tr><tr><td>single-frame point cloud</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>CenterPoint [YZK21]</td><td>1.62</td><td>41</td><td>8</td><td>50.62</td><td>52.83</td><td>53.86</td></tr><tr><td>FCOS-LiDAR (Ours)</td><td>0.63</td><td>31</td><td>7</td><td>38.63</td><td>53.42</td><td>53.40</td></tr><tr><td>multi-frame point cloud</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>CenterPoint [YZK21]</td><td>1.95</td><td>63</td><td>9</td><td>73.95</td><td>60.40</td><td>67.25</td></tr><tr><td>FCOS-LiDAR(Ours)</td><td>0.76</td><td>31</td><td>7</td><td>38.76</td><td>57.08</td><td>63.15</td></tr></table>",
773
+ "bbox": [
774
+ 174,
775
+ 790,
776
+ 823,
777
+ 891
778
+ ],
779
+ "page_idx": 8
780
+ },
781
+ {
782
+ "type": "table",
783
+ "img_path": "images/f7ccb3a912c1781f1795eb6f7a4bbd9f9f94cc578866dd2d77460643ba4154f2.jpg",
784
+ "table_caption": [
785
+ "Table 8: Comparisons with state-of-the-art methods on the nuScenes test set. The results are directly quoted from their original papers. All other methods on nuScenes rely on BEV or multiple views because previous RV-only methods are unable to handle the multi-frame fusion on this dataset. As you can see, our RV-based FCOS-LiDAR can achieve competitive performance with state-of-the-art BEV-based detectors. "
786
+ ],
787
+ "table_footnote": [],
788
+ "table_body": "<table><tr><td>Method mAP(%)NDS(%) Car Truck Bus TrailerC.V.Ped.Motor Bicycle T.C.Barrier</td></tr><tr><td></td><td>45.3</td><td></td><td></td><td>68.4 23.0 28.2 23.4</td><td>4.1 59.7 27.4 1.1 30.8</td></tr><tr><td>PointPillars [LVC+ 19] SSN [ZMW+20]</td><td>30.5 46.3 56.9</td><td>80.7 37.5 39.9</td><td>43.9 14.672.3 43.7</td></tr><tr><td>CVCNet [CSCY20] 55.3 64.4</td><td>82.7 46.1 46.6 49.4 22.679.8 59.1</td></tr><tr><td>CBGS[YZK21] 52.8 63.3</td><td>31.4 81.1 48.5 54.9 42.9 10.580.1 51.5</td></tr><tr><td>CenterPoint [YZK21] 58.0</td><td>22.3 70.9</td></tr><tr><td>AFDetV2 [HDG+22] 62.4 68.5 S2M2-SSD [ZHJF22] 62.9 69.3 86.3 56.0</td><td>65.5 84.6 51.0 60.2 53.2 17.583.4 53.7 23.7 76.7 86.3 54.2 62.5 58.9 26.785.8 63.8 34.3 80.1</td></tr></table>",
789
+ "bbox": [
790
+ 173,
791
+ 166,
792
+ 825,
793
+ 324
794
+ ],
795
+ "page_idx": 9
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "4.4 Inference Time Comparisons ",
800
+ "text_level": 1,
801
+ "bbox": [
802
+ 174,
803
+ 354,
804
+ 415,
805
+ 371
806
+ ],
807
+ "page_idx": 9
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "We compare the inference time of FCOS-LiDAR and the state-of-the-art BEV-based detector CenterPoint [YZK21]. As shown in Table 7, the proposed MRV is faster than the voxelization in CenterPoint. It is worth noting that the voxelization algorithm reported here is nondeterministic, which cannot yield stable results but being significantly faster. In the official code of MMDetection3D [Con20], the deterministic voxelization takes ${ \\sim } 1 0 0 \\mathrm { m s }$ for the multi-frame point clouds. In sharp contrast, the proposed MRV is always deterministic and highly efficient. Moreover, due to the compactness of the range image, our network can be implemented with the standard convolutions alone, thus being much more efficient than CenterPoint using the sparse convolutions as shown in the table. The elapsed time of the post-processing is omitted here as it is closely similar in both methods. ",
812
+ "bbox": [
813
+ 174,
814
+ 383,
815
+ 826,
816
+ 508
817
+ ],
818
+ "page_idx": 9
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "4.5 Comparisons with State-of-the-art Methods ",
823
+ "text_level": 1,
824
+ "bbox": [
825
+ 174,
826
+ 531,
827
+ 516,
828
+ 546
829
+ ],
830
+ "page_idx": 9
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "We further compare FCOS-LiDAR with other state-of-the-art methods on the nuScenes test set. For the model on the test set, we increase the number of channels in the detection heads from 64 to 128, which improve the validation mAP by ${ \\sim } 0 . 6 \\%$ with slightly longer latency. Additionally, we remove the copy-paste data augmentation in the last 5 epochs during training as in [WMZY21] (termed as the “fade strategy” in [WMZY21]). This can improve the performance by about $2 \\%$ mAP. As shown in Table 8, FCOS-LiDAR achieves competitive performance with other state-of-the-art BEV-based methods. Note that in order to leverage the multi-frame fusion on nuScenes, all other methods on nuScenes rely on BEV (or the multi-view fusion). FCOS-LiDAR is the first RV-only method that is able to benefit from the multi-frame fusion. ",
835
+ "bbox": [
836
+ 174,
837
+ 559,
838
+ 825,
839
+ 684
840
+ ],
841
+ "page_idx": 9
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "5 Conclusion ",
846
+ "text_level": 1,
847
+ "bbox": [
848
+ 174,
849
+ 709,
850
+ 299,
851
+ 727
852
+ ],
853
+ "page_idx": 9
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "We have presented an efficient range-view-based 3D object detector FCOS-LiDAR. FCOS-LiDAR shows the challenging LiDAR-based object detection can also be solved with the standard convolutions alone, similar to what we have done in the image-based 2D object detection. We also for the first time show the RV-based 3D detector can also enjoy the benefit of the multi-frame fusion with the proposed MRV. We hope our strong results can encourage the community to pay more attention to this promising direction. ",
858
+ "bbox": [
859
+ 174,
860
+ 746,
861
+ 825,
862
+ 829
863
+ ],
864
+ "page_idx": 9
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "Societal Impacts. This paper presents a method that can locate the 3D location of the objects of interest in LiDAR point clouds. This technique might be abused for military purposes, for example, on lethal autonomous weapons. ",
869
+ "bbox": [
870
+ 176,
871
+ 835,
872
+ 825,
873
+ 877
874
+ ],
875
+ "page_idx": 9
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "Acknowledgments. C. Shen’s participation was in part supported by a major grant from Zhejiang Provincial Government. ",
880
+ "bbox": [
881
+ 173,
882
+ 883,
883
+ 821,
884
+ 911
885
+ ],
886
+ "page_idx": 9
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "References ",
891
+ "text_level": 1,
892
+ "bbox": [
893
+ 174,
894
+ 90,
895
+ 266,
896
+ 106
897
+ ],
898
+ "page_idx": 10
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "$[ \\mathbf { B } \\mathbf { S } \\mathbf { M } ^ { + } 2 1 ]$ Alex Bewley, Pei Sun, Thomas Mensink, Dragomir Anguelov, and Cristian Sminchisescu. Range conditioned dilated convolutions for scale invariant 3d object detection. In Proc. Conf. Robot Learning, pages 627–641. PMLR, 2021. \n$[ \\mathrm { C B L } ^ { + } 2 0 ]$ Holger Caesar, Varun Bankiti, Alex Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. Nuscenes: A multimodal dataset for autonomous driving. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 11621–11631, 2020. [Con20] MMDetection3D Contributors. MMDetection3D: OpenMMLab next-generation platform for general 3D object detection. https://github.com/open-mmlab/mmdetection3d, 2020. \n[CSCY20] Qi Chen, Lin Sun, Ernest Cheung, and Alan Yuille. Every view counts: Cross-view consistency in 3d object detection with hybrid-cylindrical-spherical voxelization. In Proc. Advances in Neural Inf. Process. Syst., volume 33, pages 21224–21235, 2020. \n[DLSJ22] Shengheng Deng, Zhihao Liang, Lin Sun, and Kui Jia. Vista: Boosting 3d object detection via dual cross-view spatial attention. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8448–8457, June 2022. \n$[ \\mathrm { F P Z } ^ { + } 2 1 ]$ Lue Fan, Ziqi Pang, Tianyuan Zhang, Yu-Xiong Wang, Hang Zhao, Feng Wang, Naiyan Wang, and Zhaoxiang Zhang. Embracing single stride 3d object detector with sparse transformer. arXiv preprint arXiv:2112.06375, 2021. \n$[ \\mathrm { F X W } ^ { + } 2 1 ]$ Lue Fan, Xuan Xiong, Feng Wang, Naiyan Wang, and Zhaoxiang Zhang. Rangedet: In defense of range view for lidar-based 3d object detection. In Proc. IEEE Int. Conf. Comp. Vis., pages 2918–2927, 2021. \n$[ \\mathrm { G L L ^ { + } } 2 1 ]$ Zheng Ge, Songtao Liu, Zeming Li, Osamu Yoshie, and Jian Sun. OTA: Optimal transport assignment for object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 303–312, 2021. \n$[ \\mathrm { G L W } ^ { + } 2 1 ]$ Zheng Ge, Songtao Liu, Feng Wang, Zeming Li, and Jian Sun. Yolox: Exceeding yolo series in 2021. arXiv preprint arXiv:2107.08430, 2021. [Gra14] Benjamin Graham. Spatially-sparse convolutional neural networks. arXiv preprint arXiv:1409.6070, 2014. \n$[ \\mathrm { H D G } ^ { + } 2 2 ]$ Yihan Hu, Zhuangzhuang Ding, Runzhou Ge, Wenxin Shao, Li Huang, Kun Li, and Qiang Liu. Afdetv2: Rethinking the necessity of the second stage for object detection from point clouds. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 969–979, 2022. \n[HZRS16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 770–778, 2016. \n$[ \\mathrm { L A E ^ { + } } 1 6 ]$ Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander Berg. SSD: Single shot multibox detector. In Proc. Eur. Conf. Comp. Vis., pages 21–37. Springer, 2016. \n$[ \\mathrm { L D G ^ { + } } 1 7 ]$ Tsung-Yi Lin, Piotr Dollár, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 2117–2125, 2017. [LH17] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017. [Li17] Bo Li. 3d fully convolutional network for vehicle detection in point cloud. In Proc. IEEE/RSJ Int. Conf. Intelligent Robots and Systems, pages 1513–1518, 2017. \n$[ \\mathrm { L L C } ^ { + } 2 1 ]$ Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In Proc. IEEE Int. Conf. Comp. Vis., pages 10012–10022, 2021. [LSD15] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 3431–3440, 2015. \n$[ \\mathrm { L V C ^ { + } } 1 9 ]$ Alex Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, and Oscar Beijbom. Pointpillars: Fast encoders for object detection from point clouds. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 12697–12705, 2019. [LZX16] Bo Li, Tianlei Zhang, and Tian Xia. Vehicle detection from 3d lidar using fully convolutional network. arXiv preprint arXiv:1608.07916, 2016. \n$[ \\mathrm { M L K ^ { + } } 1 9 ]$ Gregory P Meyer, Ankit Laddha, Eric Kee, Carlos Vallespi-Gonzalez, and Carl Wellington. Lasernet: An efficient probabilistic 3d object detector for autonomous driving. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 12677–12686, 2019. \n[QSMG17] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 652–660, 2017. \n[RDGF16] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 779–788, 2016. [RF17] Joseph Redmon and Ali Farhadi. Yolo9000: Better, faster, stronger. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 7263–7271, 2017. \n[RHGS15] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In Proc. Advances in Neural Inf. Process. Syst., pages 91–99, 2015. \n$[ \\mathrm { S K D } ^ { + } 2 0 ]$ Pei Sun, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, Yin Zhou, Yuning Chai, Benjamin Caine, et al. Scalability in perception for autonomous driving: Waymo open dataset. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 2446–2454, 2020. [SPC21] https://github.com/traveller59/spconv/tree/v1.2.1, 2021. [ST19] Leslie Smith and Nicholay Topin. Super-convergence: Very fast training of neural networks using large learning rates. In Artificial Intelligence and Machine Learning for Multi-domain Operations Applications, 2019. \n$[ \\mathrm { S W C } ^ { + } 2 1 ]$ Pei Sun, Weiyue Wang, Yuning Chai, Gamaleldin Elsayed, Alex Bewley, Xiao Zhang, Cristian Sminchisescu, and Dragomir Anguelov. RSN: Range sparse net for efficient, accurate lidar 3d object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 5725–5734, 2021. \n[TSCH19] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. FCOS: Fully convolutional one-stage object detection. In Proc. IEEE Int. Conf. Comp. Vis., pages 9627–9636, 2019. \n[WMZY21] Chunwei Wang, Chao Ma, Ming Zhu, and Xiaokang Yang. PointAugmenting: Cross-modal augmentation for 3d object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 11794–11803, 2021. [XBT22] Xinge Zhu Qingqiu Huang Yilun Chen Hongbo Fu Xuyang Bai, Zeyu Hu and Chiew-Lan Tai. TransFusion: Robust Lidar-Camera Fusion for 3d Object Detection with Transformers. CVPR, 2022. \n$[ \\mathrm { Y J W ^ { + } } 1 6 ]$ Jiahui Yu, Yuning Jiang, Zhangyang Wang, Zhimin Cao, and Thomas Huang. Unitbox: An advanced object detection network. In Proc. ACM Int. Conf. Multimedia, pages 516–520, 2016. [YML18] Yan Yan, Yuxing Mao, and Bo Li. Second: Sparsely embedded convolutional detection. Sensors, 18(10):3337, 2018. [YZK21] Tianwei Yin, Xingyi Zhou, and Philipp Krahenbuhl. Center-based 3d object detection and tracking. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 11784–11793, 2021. [ZHJF22] Wu Zheng, Mingxuan Hong, Li Jiang, and Chi-Wing Fu. Boosting 3d object detection by simulating multimodality on point clouds. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13638–13647, 2022. \n$[ Z \\mathrm { M W } ^ { + } 2 0 ]$ Xinge Zhu, Yuexin Ma, Tai Wang, Yan Xu, Jianping Shi, and Dahua Lin. SSN: shape signature networks for multi-class object detection from point clouds. In European Conference on Computer Vision, pages 581–597. Springer, 2020. [ZT18] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 4490–4499, 2018. [ZWK19] Xingyi Zhou, Dequan Wang, and Philipp Krähenbühl. Objects as points. arXiv: Comp. Res. Repository, 2019. ",
903
+ "bbox": [
904
+ 176,
905
+ 108,
906
+ 828,
907
+ 912
908
+ ],
909
+ "page_idx": 10
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "",
914
+ "bbox": [
915
+ 171,
916
+ 89,
917
+ 826,
918
+ 674
919
+ ],
920
+ "page_idx": 11
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "Checklist ",
925
+ "text_level": 1,
926
+ "bbox": [
927
+ 174,
928
+ 693,
929
+ 254,
930
+ 708
931
+ ],
932
+ "page_idx": 11
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "1. For all authors... ",
937
+ "bbox": [
938
+ 214,
939
+ 719,
940
+ 339,
941
+ 733
942
+ ],
943
+ "page_idx": 11
944
+ },
945
+ {
946
+ "type": "text",
947
+ "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 multi-frame settings, the RV-based detector still cannot outperform the BEV-based ones despite being faster. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See the conclusion section. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
948
+ "bbox": [
949
+ 238,
950
+ 738,
951
+ 825,
952
+ 858
953
+ ],
954
+ "page_idx": 11
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "2. If you are including theoretical results... ",
959
+ "bbox": [
960
+ 215,
961
+ 861,
962
+ 493,
963
+ 876
964
+ ],
965
+ "page_idx": 11
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "(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] ",
970
+ "bbox": [
971
+ 236,
972
+ 881,
973
+ 738,
974
+ 911
975
+ ],
976
+ "page_idx": 11
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "3. If you ran experiments... ",
981
+ "bbox": [
982
+ 214,
983
+ 92,
984
+ 393,
985
+ 106
986
+ ],
987
+ "page_idx": 12
988
+ },
989
+ {
990
+ "type": "text",
991
+ "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 will release our code and models on GitHub soon. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] The used dataset is relatively large and none of the previous works reports the error bars on this dataset. \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 implementation details. ",
992
+ "bbox": [
993
+ 238,
994
+ 109,
995
+ 825,
996
+ 256
997
+ ],
998
+ "page_idx": 12
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1003
+ "bbox": [
1004
+ 210,
1005
+ 261,
1006
+ 823,
1007
+ 275
1008
+ ],
1009
+ "page_idx": 12
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "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] \n(c) Did you include any new assets either in the supplemental material or as a URL? [No] \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] ",
1014
+ "bbox": [
1015
+ 238,
1016
+ 280,
1017
+ 823,
1018
+ 387
1019
+ ],
1020
+ "page_idx": 12
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1025
+ "bbox": [
1026
+ 215,
1027
+ 390,
1028
+ 705,
1029
+ 405
1030
+ ],
1031
+ "page_idx": 12
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "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] ",
1036
+ "bbox": [
1037
+ 238,
1038
+ 410,
1039
+ 825,
1040
+ 498
1041
+ ],
1042
+ "page_idx": 12
1043
+ }
1044
+ ]
parse/dev/3s9IrEsjLyk/3s9IrEsjLyk.md ADDED
@@ -0,0 +1,358 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Diffusion-LM Improves Controllable Text Generation
2
+
3
+ Xiang Lisa Li Stanford University xlisali@stanford.edu
4
+
5
+ John Thickstun Stanford University jthickst@stanford.edu
6
+
7
+ Ishaan Gulrajani Stanford Univeristy igul@stanford.edu
8
+
9
+ Percy Liang Stanford Univeristy pliang@cs.stanford.edu
10
+
11
+ Tatsunori B. Hashimoto Stanford Univeristy thashim@stanford.edu
12
+
13
+ # Abstract
14
+
15
+ Controlling the behavior of language models (LMs) without re-training is a major open problem in natural language generation. While recent works have demonstrated successes on controlling simple sentence attributes (e.g., sentiment), there has been little progress on complex, fine-grained controls (e.g., syntactic structure). To address this challenge, we develop a new non-autoregressive language model based on continuous diffusions that we call Diffusion-LM. Building upon the recent successes of diffusion models in continuous domains, Diffusion-LM iteratively denoises a sequence of Gaussian vectors into word vectors, yielding a sequence of intermediate latent variables. The continuous, hierarchical nature of these intermediate variables enables a simple gradient-based algorithm to perform complex, controllable generation tasks. We demonstrate successful control of Diffusion-LM for six challenging fine-grained control tasks, significantly outperforming prior work.1
16
+
17
+ # 1 Introduction
18
+
19
+ Large autoregressive language models (LMs) are capable of generating high quality text [39, 3, 5, 56], but in order to reliably deploy these LMs in real world applications, the text generation process needs to be controllable: we need to generate text that satisfies desired requirements (e.g. topic, syntactic structure). A natural approach for controlling a LM would be to fine-tune the LM using supervised data of the form (control, text) $\mathbb { \lVert 1 8 \rVert }$ . However, updating the LM parameters for each control task can be expensive and does not allow for compositions of multiple controls (e.g. generate text that is both positive sentiment and non-toxic). This motivates light-weight and modular plug-and-play approaches $\textcircled { 6 }$ that keep the LM frozen and steer the generation process using an external classifier that measures how well the generated text satisfies the control. But steering a frozen autoregressive LM has been shown to be difficult, and existing successes have been limited to simple, attribute-level controls (e.g., sentiment or topic) [6, 25, 55].
20
+
21
+ In order to tackle more complex controls, we propose Diffusion-LM, a new language model based on continuous diffusions. Diffusion-LM starts with a sequence of Gaussian noise vectors and incrementally denoises them into vectors corresponding to words, as shown in Figure $\mathbb { L }$ These gradual denoising steps produce a hierarchy of continuous latent representations. We find that this hierarchical and continuous latent variable enables simple, gradient-based methods to perform complex control tasks such as constraining the parse tree of a generated sequence.
22
+
23
+ Continuous diffusion models have been extremely successful in vision and audio domains [13, 24, 41, 8, 4], but they have not been applied to text because of the inherently discrete nature of text $\textcircled { \ S 3 }$ . Adapting this class of models to text requires several modifications to standard diffusions: we add an embedding step and a rounding step to the standard diffusion process, design a training objective to learn the embedding, and propose techniques to improve rounding (§4). We control Diffusion-LM using a gradient-based method, as shown in Figure $\bar { \bigtriangledown }$ This method enables us to steer the text generation process towards outputs that satisfy target structural and semantic controls. It iteratively performs gradient updates on the continuous latent variables of Diffusion-LM to balance fluency and control satisfaction $\textcircled { | \ S 5 . 1 \ r { } }$
24
+
25
+ ![](images/85abfe25ddc79937aadce69f04fece3bc4b636e9f25ab3c917f5d3b689d389c6.jpg)
26
+ Figure 1: Diffusion-LM iteratively denoises a sequence of Gaussian vectors into word vectors, yielding a intermediate latent variables of decreasing noise level $\mathbf { x } _ { T } \cdots \mathbf { x } _ { 0 }$ . For controllable generation, we iteratively perform gradient updates on these continuous latents to optimize for fluency (parametrized by Diffusion-LM) and satisfy control requirements (parametrized by a classifier).
27
+
28
+ To demonstrate control of Diffusion-LM, we consider six control targets ranging from fine-grained attributes (e.g., semantic content) to complex structures (e.g., parse trees). Our method almost doubles the success rate of previous plug-and-play methods and matches or outperforms the fine-tuning oracle on all these classifier-guided control tasks $( \ S 7 . 1 )$ . In addition to these individual control tasks, we show that we can successfully compose multiple classifier-guided controls to generate sentences with both desired semantic content and syntactic structure $\textcircled { \lVert \mathbb { S } ^ { 7 . 2 } \rVert }$ . Finally, we consider span-anchored controls, such as length control and infilling. Diffusion-LM allows us to perform these control tasks without a classifier, and our Diffusion-LM significantly outperforms prior plug-and-play methods and is on-par with an autoregressive LM trained from scratch for the infilling task $( \ S 7 . \bar { 3 } )$ .
29
+
30
+ # 2 Related Work
31
+
32
+ Diffusion Models for Text. Diffusion models $ { \mathbb { B } } 7 { \mathbb { I } }$ have demonstrated great success in continuous data domains [13, 33, 24, 31], producing images and audio that have state-of-the-art sample quality. To handle discrete data, past works have studied text diffusion models on discrete state spaces, which defines a corruption process on discrete data (e.g., each token has some probability to be corrupted to an absorbing or random token) [1, 15, 16]. In this paper, we focus on continuous diffusion models for text and to the best of our knowledge, our work is the first to explore this setting. In contrast to discrete diffusion LMs, our continuous diffusion LMs induce continuous latent representations, which enables efficient gradient-based methods for controllable generation.
33
+
34
+ Autoregressive and Non-autoregressive LMs. Most large pre-trained LMs are left-to-right autoregressive (e.g., GPT-3 [3], PaLM [5]). The fixed generation order limits the models’ flexibility in many controllable generation settings, especially those that impose controls globally on both left and right contexts. One example is infilling, which imposes lexical control on the right contexts; another example is syntactic structure control, which controls global properties involving both left and right contexts. Since autoregressive LMs cannot directly condition on right contexts, prior works have developed specialized training and decoding techniques for these tasks [46, 9, 36]. For example, Qin et al. [37] proposed a decoding method that relaxes the discrete LM outputs to continuous variables and backpropagates gradient information from the right context. Diffusion-LM can condition on arbitrary classifiers that look at complex, global properties of the sentence. There are other non-autoregressive LMs that have been developed for machine translation and speech-to-text tasks [12, 43]. However these methods are specialized for speech and translation settings, where the entropy over valid outputs is low, and whether they work for language modeling remains an open problem. We leave detailed discussions to Appendix H.
35
+
36
+ Plug-and-Play Controllable Generation. Plug-and-play controllable generation aims to keep the LM frozen and steer its output using potential functions (e.g., classifiers). Given a probabilistic potential function that measures how well the generated text satisfies the desired control, the generated text should be optimized for both control satisfaction (measured by the potential function) and fluency (measured by LM probabilities) . There are several plug-and-play approaches based on autoregressive LMs: FUDGE $\bar { \| 5 5 \| }$ reweights the LM prediction at each token with an estimate of control satisfaction for the partial sequence; GeDi $\mathbb { \left[ \left[ 2 5 \right] \right] }$ and DExperts $\pmb { \left. \widetilde { 2 8 } \right. }$ reweight the LM prediction at each token with a smaller LM finetuned/trained for the control task.
37
+
38
+ The closest work to ours is PPLM $\pmb { \Vert 6 \Vert }$ , which runs gradient ascent on an autoregressive LM’s hidden activations to steer the next token to satisfy the control and maintain fluency. Because PPLM is based on autoregressive LMs, it can only generate left-to-right. This prevents PPLM from repairing and recovering errors made in previous generation steps. Despite their success on attribute (e.g., topic) controls, we will show these plug-and-play methods for autoregressive LMs fail on more complex control tasks such as controlling syntactic structure and semantic content in $\ S 7 . 1 .$ We demonstrate that Diffusion-LM is capable of plug-and-play controllable generation by applying classifier-guided gradient updates to the continuous sequence of latent variables induced by the Diffusion-LM.
39
+
40
+ # 3 Problem Statement and Background
41
+
42
+ We first define controllable generation $( \sqrt { \ S 3 . 1 } )$ and then review continuous diffusion models $\textcircled { | \ S 3 . 3 ) }$
43
+
44
+ # 3.1 Generative Models and Controllable Generation for Text
45
+
46
+ Text generation is the task of sampling w from a trained language model $p _ { \mathrm { l m } } ( \mathbf { w } )$ , where $\mathbf { w } =$ $[ w _ { 1 } \cdots w _ { n } ]$ is a sequence of discrete words and $p _ { \mathrm { l m } } ( \mathbf { w } )$ is a probability distribution over sequences of words. Controllable text generation is the task of sampling w from a conditional distribution $p ( \mathbf { w } \mid \mathbf { c } )$ , where c denotes a control variable. For syntactic control, c can be a target syntax tree (Figure $\bigstar \bigstar \bigstar \bigstar$ , while for sentiment control, c could be a desired sentiment label. The goal of controllable generation is to generate w that satisfies the control target c.
47
+
48
+ Consider the plug-and-play controllable generation setting: we are given a language model $p _ { \mathrm { l m } } ( \mathbf { w } )$ trained from a large amount of unlabeled text data, and for each control task, we are given a classifier $p ( \mathbf { c } \mid \mathbf { w } )$ trained from smaller amount of labeled text data (e.g., for syntactic control, the classifier is a probabilistic parser). The goal is to utilize these two models to approximately sample from the posterior $p ( \mathbf { w } \mid \mathbf { c } )$ via Bayes rule $p ( \mathbf { w } \mid \mathbf { c } ) \propto p _ { \mathrm { l m } } ( \mathbf { w } ) \cdot p ( \mathbf { c } \mid \mathbf { w } )$ . Here, $p _ { \mathrm { l m } } ( \mathbf { w } )$ encourages w to be fluent, and the $p ( \mathbf { c } \mid \mathbf { w } )$ encourages w to fulfill the control.
49
+
50
+ # 3.2 Autoregressive Language Models
51
+
52
+ The canonical approach to language modeling factors $p _ { \mathrm { l m } }$ in an autoregressive left-to-right mannar, $\begin{array} { r } { p _ { \mathrm { l m } } ( \mathbf { w } ) \ = \ p _ { \mathrm { l m } } ( \mathbf { \bar { \boldsymbol { w } } } _ { 1 } ) \prod _ { i = 2 } ^ { n } p _ { \mathrm { l m } } ( \mathbf { \bar { \boldsymbol { x } } } _ { i } \ \mathbf { \bar { \boldsymbol { \lfloor } } } \ x _ { < i } ) } \end{array}$ . In this case, text generation is reduced to the task of repeatedly predicting the next token conditioned on the partial sequence generated so far. The next token prediction $p _ { \operatorname { l m } } ( x _ { i } \mid x _ { < i } )$ is often parametrized by Transformer architecture $\lVert \boldsymbol { 5 2 } \rVert$ .
53
+
54
+ # 3.3 Diffusion Models for Continuous Domains
55
+
56
+ A diffusion model $\textcircled { 1 3 } \textcircled { 3 3 } \textcircled { }$ is a latent variable model that models the data $\mathbf { x } _ { 0 } \in \mathbb { R } ^ { d }$ as a Markov chain $\mathbf { x } _ { T } \ldots \mathbf { x } _ { 0 }$ with each variable in $\mathbb { R } ^ { d }$ , and $\mathbf { x } _ { T }$ is a Gaussian. The diffusion model incrementally denoises the sequence of latent variables $\mathbf { x } _ { T : 1 }$ to approximate samples from the target data distribution (Figure $\boxed { 2 }$ . The initial state $p _ { \theta } ( \mathbf { x } _ { T } ) \approx \mathcal { N } ( 0 , \mathbf { I } )$ , and each denoising transition ${ \bf x } _ { t } { \bf x } _ { t - 1 }$ is parametrized by the model $p _ { \theta } ( \mathbf { x } _ { t - 1 } \mid \mathbf { x } _ { t } ) = \mathcal { N } ( \mathbf { x } _ { t - 1 } ; \mu _ { \theta } ( \mathbf { x } _ { t } , t ) , \Sigma _ { \theta } ( \mathbf { x } _ { t } , t ) )$ . For example, $\mu _ { \theta }$ and $\Sigma _ { \theta }$ may be computed by a U-Net or a Tranformer.
57
+
58
+ To train the diffusion model, we define a forward process that constructs the intermediate latent variables $\mathbf { x } _ { 1 : T }$ . The forward process incrementally adds Gaussian noise to data $\mathbf { x } _ { \mathrm { 0 } }$ until, at diffusion step $T$ , samples $\mathbf { x } _ { T }$ are approximately Gaussian. Each transition $\mathbf { x } _ { t - 1 } \mathbf { x } _ { t }$ is parametrized by $q ( \bar { \mathbf { x } } _ { t } \mid \mathbf { x } _ { t - 1 } ) = \mathcal { N } ( \mathbf { x } _ { t } ; \sqrt { 1 - \beta _ { t } } \mathbf { x } _ { t - 1 } , \bar { \beta } _ { t } \mathbf { I } )$ , where the hyperparameter $\beta _ { t }$ is the amount of noise added at diffusion step $t$ . This parametrization of the forward process $q$ contains no trainable parameters and allows us to define a training objective that involves generating noisy data according to a pre-defined forward process $q$ and training a model to reverse the process and reconstruct the data.
59
+
60
+ ![](images/1946d9d19dfde1075af467cf5c5709359b2cd6b243909836ee2ca4584222e44f.jpg)
61
+ Figure 2: A graphical model representing the forward and reverse diffusion processes. In addition to the original diffusion models $\bar { \mathbb { 1 } } \bar { 1 } \bar { 3 } \mathbb { I }$ , we add a Markov transition between $\mathbf { x } _ { \mathrm { 0 } }$ and $\mathbf { w }$ , and propose the embedding §4.1 and rounding $\ S 4 . 2$ techniques.
62
+
63
+ The diffusion model is trained to maximize the marginal likelihood of the data $\mathbb { E } _ { \mathbf { x } _ { 0 } \sim p _ { \mathrm { d a t a } } } [ \log p _ { \theta } ( \mathbf { x } _ { 0 } ) ]$ , and the canonical objective is the variational lower bound of $\log p _ { \theta } ( \mathbf { x } _ { 0 } )$ [47],
64
+
65
+ $$
66
+ \mathcal { L } _ { \mathrm { v l b } } ( \mathbf { x } _ { 0 } ) = \underset { q ( \mathbf { x } _ { 1 : T } | \mathbf { x } _ { 0 } ) } { \mathbb { E } } \left[ \log \frac { q ( \mathbf { x } _ { T } | \mathbf { x } _ { 0 } ) } { p _ { \theta } ( \mathbf { x } _ { T } ) } + \sum _ { t = 2 } ^ { T } \log \frac { q ( \mathbf { x } _ { t - 1 } | \mathbf { x } _ { 0 } , \mathbf { x } _ { t } ) } { p _ { \theta } ( \mathbf { x } _ { t - 1 } | \mathbf { x } _ { t } ) } - \log p _ { \theta } ( \mathbf { x } _ { 0 } | \mathbf { x } _ { 1 } ) \right] .
67
+ $$
68
+
69
+ However, this objective can be unstable and require many optimization tricks to stabilize $\pmb { \mathbb { B 3 } }$ . To circumvent this issue, Ho et al. $\mathbb { \lVert \lambda \rVert }$ devised a simple surrogate objective that expands and reweights each KL-divergence term in ${ \mathcal { L } } _ { \mathrm { v l b } }$ to obtain a mean-squared error loss (derivation in Appendix $\mathrm { J } )$ which we will refer to as
70
+
71
+ $$
72
+ \mathcal { L } _ { \mathrm { s i m p l e } } ( \mathbf { x } _ { 0 } ) = \sum _ { t = 1 } ^ { T } \underset { q ( \mathbf { x } _ { t } | \mathbf { x } _ { 0 } ) } { \mathbb { E } } | | \mu _ { \boldsymbol { \theta } } ( \mathbf { x } _ { t } , t ) - \hat { \mu } ( \mathbf { x } _ { t } , \mathbf { x } _ { 0 } ) | | ^ { 2 } ,
73
+ $$
74
+
75
+ where $\hat { \mu } ( \mathbf { x } _ { t } , \mathbf { x } _ { 0 } )$ is the mean of the posterior $q ( \mathbf { x } _ { t - 1 } | \mathbf { x } _ { 0 } , \mathbf { x } _ { t } )$ which is a closed from Gaussian, and $\mu _ { \theta } ( \mathbf { x } _ { t } , t )$ is the predicted mean of $p _ { \theta } ( \mathbf { x } _ { t - 1 } \mid \mathbf { x } _ { t } )$ computed by a neural network. While $\mathcal { L } _ { \mathrm { s i m p l e } }$ is no longer a valid lower bound, prior work has found that it empirically made training more stable and improved sample qualit $^ { , 2 } .$ We will make use of similar simplifications in Diffusion-LM to stabilize training and improve sample quality $( | \ S 4 . 1 )$ .
76
+
77
+ # 4 Diffusion-LM: Continuous Diffusion Language Modeling
78
+
79
+ Constructing Diffusion-LM requires several modifications to the standard diffusion model. First, we must define an embedding function that maps discrete text into a continuous space. To address this, we propose an end-to-end training objective for learning embeddings $( \ S 4 . 1 )$ . Second, we require a rounding method to map vectors in embedding space back to words. To address this, we propose training and decoding time methods to facilitate rounding $( \ S 4 . 2 )$ .
80
+
81
+ # 4.1 End-to-end Training
82
+
83
+ To apply a continuous diffusion model to discrete text, we define an embedding function $\operatorname { E M B } ( w _ { i } )$ that maps each word to a vector in $\mathbb { R } ^ { d }$ . We define the embedding of a sequence w of length $n$ to be: $\mathbf { E M B } ( \bar { \mathbf { w } _ { n } } ) = [ \mathbf { E M B } ( w _ { 1 } ) , \dots , \mathbf { E M B } ( w _ { n } ) ] \in \mathbb { R } ^ { n d }$ .
84
+
85
+ We propose a modification of the diffusion model training objective (Equation $\bigstar \bigstar \bigstar \bigstar$ that jointly learns the diffusion model’s parameters and word embeddings. In preliminary experiments, we explored random Gaussian embeddings, as well as pre-trained word embeddings $[ \bar { 1 } 5 , \bar { 1 } \bar { 3 } 9 ]$ . We found that these fixed embeddings are suboptimal for Diffusion-LM compared to end-to-end training3.
86
+
87
+ As shown in Figure $\bigstar$ our approach adds a Markov transition from discrete words w to $\mathbf { x } _ { \mathrm { 0 } }$ in the forward process, parametrized by $q _ { \phi } ( \mathbf { x } _ { 0 } | \mathbf { w } ) = \mathcal { N } ( \mathrm { E M B } ( \mathbf { w } ) , \sigma _ { 0 } I )$ . In the reverse process, we add a |trainable rounding step, parametrized by $p _ { \theta } ( \mathbf { w } \mid \mathbf { x } _ { 0 } ) = \prod _ { i = 1 } ^ { n } p _ { \theta } ( w _ { i } \mid x _ { i } )$ , where $p _ { \theta } ( w _ { i } \mid x _ { i } )$ is a softmax distribution. The training objectives introduced in §3 now becomes
88
+
89
+ $$
90
+ \begin{array} { r l } & { \mathcal { L } _ { \mathrm { v l b } } ^ { \mathrm { e 2 e } } ( \mathbf { w } ) = \underset { q _ { \phi } ( \mathbf { x } _ { 0 } | \mathbf { w } ) } { \mathbb { E } } [ \mathcal { L } _ { \mathrm { v l b } } ( \mathbf { x } _ { 0 } ) + \log q _ { \phi } ( \mathbf { x } _ { 0 } | \mathbf { w } ) - \log p _ { \theta } ( \mathbf { w } | \mathbf { x } _ { 0 } ) ] ] , } \\ & { \mathcal { L } _ { \mathrm { s i m p l e } } ^ { \mathrm { e 2 e } } ( \mathbf { w } ) = \underset { q _ { \phi } ( \mathbf { x } _ { 0 : T } | \mathbf { w } ) } { \mathbb { E } } [ \mathcal { L } _ { \mathrm { s i m p l e } } ( \mathbf { x } _ { 0 } ) + | | \mathrm { E M B } ( \mathbf { w } ) - \mu _ { \theta } ( \mathbf { x } _ { 1 } , 1 ) | | ^ { 2 } - \log p _ { \theta } ( \mathbf { w } | \mathbf { x } _ { 0 } ) ] . } \end{array}
91
+ $$
92
+
93
+ We derive the simplifi $\mathcal { L } _ { \mathrm { s i m p l e } } ^ { \mathrm { e 2 e } } ( \mathbf { w } )$ m an $\mathcal { L } _ { \mathrm { v l b } } ^ { \mathrm { e 2 e } } ( \mathbf { w } )$ followingrivation de$\boxed { \ S 3 . 3 }$ tails are in Appendix J. Since we are training the embedding function, $q _ { \phi }$ now contains trainable parameters and we use the reparametrization trick [42, 20] to backpropagate through this sampling step. Empirically, we find the learned embeddings cluster meaningfully: words with the same part-of-speech tags (syntactic role) tend to be clustered, as shown in Figure 3.
94
+
95
+ ![](images/fdd8dd625de4da7094d9257338732ff9b4bdeb41d92145faac400af29970f0ad.jpg)
96
+ Figure 3: A t-SNE [51] plot of the learned word embeddings. Each word is colored by its POS.
97
+
98
+ # 4.2 Reducing Rounding Errors
99
+
100
+ The learned embeddings define a mapping from discrete text to the continuous $\mathbf { x } _ { \mathrm { 0 } }$ . We now describe the inverse process of rounding a predicted $\mathbf { x } _ { \mathrm { 0 } }$ back to discrete text. Rounding is achieved by choosing the most probable word for each position, according to argmax $\begin{array} { r } { p _ { \theta } ( \mathbf { w } \mid \mathbf { \bar { x } } _ { 0 } ) = \prod _ { i = 1 } ^ { n } \bar { p _ { \theta } } ( w _ { i } \mid x _ { i } ) } \end{array}$ Ideally, this argmax-rounding would be sufficient to map back to discrete text, as the denoising steps should ensure that $\mathbf { x } _ { \mathrm { 0 } }$ lies exactly on the embedding of some word. However, empirically, the model fails to generate $\mathbf { x } _ { \mathrm { 0 } }$ that commits to a single word.
101
+
102
+ One explanation for this phenomenon is that the $\mathcal { L } _ { \mathrm { s i m p l e } } ( \mathbf { x } _ { 0 } )$ term in our objective $2$ puts insufficient emphasis on modeling the structure of $\mathbf { x } _ { \mathrm { 0 } }$ . Recall that we defined $L _ { \mathrm { s i m p l e } } ( \mathbf { x } _ { 0 } ) \ =$ $\begin{array} { r } { \sum _ { t = 1 } ^ { T } \mathbb { E } _ { \mathbf { x } _ { t } } | | \mu _ { \theta } ( \mathbf { x } _ { t } , t ) - \hat { \mu } ( \mathbf { x } _ { t } , \mathbf { x } _ { 0 } ) | | ^ { 2 } } \end{array}$ , where our model $\mu _ { \theta } ( \mathbf { x } _ { t } , t )$ directly predicts the mean of $p _ { \theta } ( \mathbf { x } _ { t - 1 } \mid \mathbf { x } _ { t } )$ for each denoising step $t$ . In this objective, the constraint that $\mathbf { x } _ { \mathrm { 0 } }$ has to commit to a single word embedding will only appear in the terms with $t$ near 0, and we found that this parametrization required careful tuning to force the objective to emphasize those terms (see Appendix $\boxed { \mathbf { M } }$ .
103
+
104
+ Our approach re-parametrizes $\mathcal { L } _ { \mathrm { s i m p l e } }$ to force Diffusion-LM to explicitly model $\mathbf { x } _ { \mathrm { 0 } }$ in every term of the objective. Specifically, we derive an analogue to $\mathcal { L } _ { \mathrm { s i m p l e } }$ which is parametrized via $\mathbf { x } _ { \mathrm { 0 } }$ $\begin{array} { r } { \mathcal { L } _ { \mathbf { x } _ { 0 } - \mathrm { s i m p l e } } ^ { \mathrm { e 2 e } } ( \mathbf { x } _ { 0 } ) = \sum _ { t = 1 } ^ { T } \mathbb { E } _ { \mathbf { x } _ { t } } | | f _ { \theta } ( \mathbf { x } _ { t } , t ) - \mathbf { x } _ { 0 } | | ^ { 2 } } \end{array}$ , where our model $f _ { \theta } ( \mathbf { x } _ { t } , t )$ predicts $\mathbf { x } _ { \mathrm { 0 } }$ directly 4. This forces the neural network to predict $\mathbf { x } _ { \mathrm { 0 } }$ in every term and we found that models trained with this objective quickly learn that $\mathbf { x } _ { \mathrm { 0 } }$ should precisely centered at a word embedding.
105
+
106
+ We described how re-parametrization can be helpful for model training, but we also found that the same intuition could be used at decoding time in a technique that we call the clamping trick. In the standard generation approach for a $\mathbf { x } _ { \mathrm { 0 } }$ -parametrized model, the model denoises $\mathbf { x } _ { t }$ to $\mathbf { x } _ { t - 1 }$ by first computing an estimate of $\mathbf { x } _ { \mathrm { 0 } }$ via $f _ { \theta } ( \mathbf { x } _ { t } , t )$ and then sampling $\mathbf { x } _ { t - 1 }$ conditioned on this estimate: $\mathbf { x } _ { t - 1 } = \sqrt { \bar { \alpha } } f _ { \theta } ( \mathbf { x } _ { t } , t ) + \sqrt { 1 - \bar { \alpha } } \epsilon$ , where $\begin{array} { r } { \bar { \alpha } _ { t } = \prod _ { s = 0 } ^ { t } ( 1 - \beta _ { s } ) } \end{array}$ and $\overline { { \epsilon } } \sim \bar { \mathcal { N } } ( 0 , I ) \big \lbrack \bar { \mathfrak { z } } \big \rbrack$ In the clamping trick, the model additionally maps the predicted vector $f _ { \theta } ( \mathbf { x } _ { t } , t )$ to its nearest word embedding sequence. Now, the sampling step becomes $\mathbf { x } _ { t - 1 } = \sqrt { \bar { \alpha } } \cdot \mathrm { C l a m p } ( f _ { \theta } ( \mathbf { x } _ { t } , t ) ) + \sqrt { 1 - \bar { \alpha } } \epsilon$ . The clamping trick forces the predicted vector to commit to a word for intermediate diffusion steps, making the vector predictions more precise and reducing rounding errors.6
107
+
108
+ # 5 Decoding and Controllable Generation with Diffusion-LM
109
+
110
+ Having described the Diffusion-LM, we now consider the problem of controllable text generation $\underline { { ( \ S ^ { 5 . 1 ) } } }$ and decoding $( \ S 5 . 2 )$ .
111
+
112
+ # 5.1 Controllable Text Generation
113
+
114
+ We now describe a procedure that enables plug-and-play control on Diffusion-LM. Our approach to control is inspired by the Bayesian formulation in $\underline { { \vec { \ S } \vec { 3 . 1 } } } ,$ but instead of performing control directly on the discrete text, we perform control on the sequence of continuous latent variables $\mathbf { x } _ { \mathrm { 0 : } T }$ defined by Diffusion-LM, and apply the rounding step to convert these latents into text.
115
+
116
+ Controlling $\mathbf { x } _ { \mathrm { 0 : } T }$ is equivalent to decoding from the posterior $\begin{array} { r } { p ( \mathbf { x } _ { 0 : T } | \mathbf { c } ) = \prod _ { t = 1 } ^ { T } p ( \mathbf { x } _ { t - 1 } \mid \mathbf { x } _ { t } , \mathbf { c } ) } \end{array}$ , and we decompose this joint inference problem to a sequence of control problems at each diffusion step: $p ( \mathbf { x } _ { t - 1 } \mid \mathbf { \bar { x } } _ { t } , \mathbf { c } ) \propto \bar { p } ( \mathbf { x } _ { t - 1 } \mid \mathbf { x } _ { t } ) \cdot \bar { p } ( \mathbf { c } \mid \mathbf { x } _ { t - 1 } , \mathbf { x } _ { t } )$ . We further simplify $p ( \mathbf { c } \mid \mathbf { x } _ { t - 1 } , \mathbf { x } _ { t } ) = p ( \mathbf { c } \mid$ $\mathbf { x } _ { t - 1 } )$ via conditional independence assumptions from prior work on controlling diffusions $[ | \overline { { 4 9 } } | |$ . Consequently, for the $t$ -th step, we run gradient update on $\mathbf { x } _ { t - 1 }$ :
117
+
118
+ $$
119
+ \nabla _ { \mathbf x _ { t - 1 } } \log p ( \mathbf x _ { t - 1 } \mid \mathbf x _ { t } , \mathbf c ) = \nabla _ { \mathbf x _ { t - 1 } } \log p ( \mathbf x _ { t - 1 } \mid \mathbf x _ { t } ) + \nabla _ { \mathbf x _ { t - 1 } } \log p ( \mathbf c \mid \mathbf x _ { t - 1 } ) ,
120
+ $$
121
+
122
+ where both $\log p ( \mathbf { x } _ { t - 1 } \mid \mathbf { x } _ { t } )$ and $\log p ( \mathbf { c } \mid \mathbf { x } _ { t - 1 } )$ are differentiable: the first term is parametrized by Diffusion-LM, and the second term is parametrized by a neural network classifier.
123
+
124
+ Similar to work in the image setting $ { \mathbb { B } } , { \mathbb { H } } 9 { \mathbb { I } }$ , we train the classifier on the diffusion latent variables and run gradient updates on the latent space $\mathbf { x } _ { t - 1 }$ to steer it towards fulfilling the control. These image diffusion works take one gradient step towards $\nabla _ { \mathbf { x } _ { t - 1 } } \log p ( \mathbf { c } \mid \mathbf { x } _ { t - 1 } )$ per diffusion steps. To improve performance on text and speed up decoding, we introduce two key modifications: fluency regularization and multiple gradient steps.
125
+
126
+ To generate fluent text, we run gradient updates on a control objective with fluency regularization: $\lambda \log p ( \mathbf { x } _ { t - 1 } \mid \mathbf { x } _ { t } ) + \log p ( \mathbf { c } \mid \bar { \mathbf { x } _ { t - 1 } } )$ , where $\lambda$ is a hyperparameter that trades off fluency (the first term) and control (the second term). While existing controllable generation methods for diffusions do not include the $\lambda \log p ( \mathbf { x } _ { t - 1 } \mid \mathbf { x } _ { t } )$ term in the objective, we found this term to be instrumental for generating fluent text. The resulting controllable generation process can be viewed as a stochastic decoding method that balances maximizing and sampling $p ( \mathbf { x } _ { t - 1 } \mid \mathbf { x } _ { t } , \mathbf { c } )$ , much like popular text generation techniques such as nucleus sampling $\textcircled { 1 1 4 } \textcircled { 1 }$ or sampling with low temperature. In order to improve the control quality, we take multiple gradient steps for each diffusion step: we run 3 steps of the Adagrad $^ 7 \mathbb { \equiv } { \frac { } { \mathbb { I } \mathbb { 0 } } } \mathbb { I }$ update for each diffusion steps. To mitigate for the increased computation cost, we downsample the diffusion steps from 2000 to 200, which speeds up our controllable generation algorithm without hurting sample quality much.
127
+
128
+ # 5.2 Minimum Bayes Risk Decoding
129
+
130
+ Many conditional text generation tasks require a single high-quality output sequence, such as machine translation or sentence infilling. In these settings, we apply Minimum Bayes Risk (MBR) decoding $\left[ \left[ 2 6 \right] \right]$ to aggregate a set of samples $s$ drawn from the Diffusion-LM , and select the sample that achieves the minimum expected risk under a loss function $\mathcal { L }$ (e.g., negative BLEU score): $\hat { \textbf { w } } =$ $\begin{array} { r } { \operatorname * { a r g m i n } _ { \mathbf { w } \in S } \sum _ { \mathbf { w } ^ { \prime } \in S } \frac { 1 } { | S | } \mathcal { L } ( \mathbf { \dot { w } } , \mathbf { w } ^ { \prime } ) } \end{array}$ . We found that MBR decoding often returned high quality outputs, since a low quality sample would be dissimilar from the remaining samples and penalized by the loss function.
131
+
132
+ # 6 Experimental Setup
133
+
134
+ With the above improvements on training $\textcircled{8 4 }$ and decoding $( \ S 5 )$ , we train Diffusion-LM for two language modeling tasks. We then apply the controllable generation method to 5 classifier-guided control tasks, and apply MBR decoding to a classifier-free control task (i.e. infilling).
135
+
136
+ # 6.1 Datasets and Hyperparameters
137
+
138
+ We train Diffusion-LM on two datasets: E2E $\pmb { \Vert 3 4 \Vert }$ and ROCStories $\left[ \left| 3 2 \right| \right]$ . The E2E dataset consists of 50K restaurant reviews labeled by 8 fields including food type, price, and customer rating. The ROCStories dataset consists of 98K five-sentence stories, capturing a rich set of causal and temporal commonsense relations between daily events. This dataset is more challenging to model than E2E, because the stories contain a larger vocabulary of 11K words and more diverse semantic content.
139
+
140
+ Table 1: Example input control and output text for each control tasks.
141
+
142
+ <table><tr><td>input (Semantic Content) output text</td><td>food : Japanese Browns Cambridge is good for Japanese food and also children friendly near The Sorrento.</td></tr><tr><td>input (Parts-of-speech) output text</td><td>PROPN AUX DET ADJ NOUN NOUN VERB ADP DET NOUN ADP DET NOUN PUNCT Zizzi is a local coffee shop located on the outskirts of the city .</td></tr><tr><td>input (Syntax Tree) output text</td><td>(TOP (S (NP(*) (*) (*)) (VP(*) (NP (NP(*) (*))) The Twenty Two has great food</td></tr><tr><td>input (Syntax Spans) output text</td><td>(7,10,VP) Wildwood pub serves multicultural dishes and is ranked 3 stars</td></tr><tr><td>input (Length) output text</td><td>14 Browns Cambridge offers Japanese food located near The Sorrento in the city centre .</td></tr><tr><td>input (left context) input (right context) output text</td><td>My dog loved tennis balls. My dog had stolen every one and put it under there. One day,I found all of my lost tennis balls underneath the bed.</td></tr></table>
143
+
144
+ Our Diffusion-LM is based on Transformer $\pmb { \Vert 5 2 } \Vert$ architecture with 80M parameters, with a sequence length $n = 6 4$ , diffusion steps $T = 2 0 0 0$ and a square-root noise schedule (see Appendix $\boxed { \mathrm { A } }$ for details). We treat the embedding dimension as a hyperparameter, setting $d = 1 6$ for E2E and $d = 1 2 8$ for ROCStories. See Appendix $\mathbf { B }$ for hyperparameter details. At decoding time, we downsample to 200 diffusion steps for E2E and maintain 2000 steps for ROCStories. Decoding Diffusion-LM for 200 steps is still $7 \mathbf { x }$ slower than decoding autoregressive LMs. For controllable generation, our method based on Diffusion-LM is $1 . 5 \mathrm { x }$ slower than FUDGE but $6 0 \mathrm { x }$ faster than PPLM.
145
+
146
+ # 6.2 Control tasks
147
+
148
+ We consider 6 control tasks shown in Table 1: the first 4 tasks rely on a classifier, and the last 2 tasks are classifier free8. For each control task (e.g. semantic content), we sample 200 control targets c (e.g., rating ${ = } 5$ star) from the validation splits, and we generate 50 samples for each control target. To evaluate the fluency of the generated text, we follow the prior works [55, 6] and feed the generated text to a teacher LM (i.e., a carefully fine-tuned GPT-2 model) and report the perplexity of generated text under the teacher LM. We call this metric lm-score (denoted as lm): a lower lm-score indicates better sample quality. 9 We define success metrics for each control task as follows:
149
+
150
+ Semantic Content. Given a field (e.g., rating) and value (e.g., 5 star), generate a sentence that covers field $\equiv$ value, and report the success rate by exact match of ‘value’.
151
+
152
+ Parts-of-speech. Given a sequence of parts-of-speech (POS) tags (e.g., Pronoun Verb Determiner Noun), generate a sequence of words of the same length whose POS tags (under an oracle POS tagger) match the target (e.g., I ate an apple). We quantify success via word-level exact match.
153
+
154
+ Syntax Tree. Given a target syntactic parse tree (see Figure 1), generate text whose syntactic parse matches the given parse. To evaluate the success, we parse the generated text by an off-the-shelf parser $\pmb { \left. \left[ 2 2 \right] \right. }$ , and report F1 scores.
155
+
156
+ Syntax Spans. Given a target (span, syntactic category) pair, generate text whose parse tree over span $[ i , j ]$ matches the target syntactic category (e.g. prepositional phrase).We quantify success via the fraction of spans that match exactly.
157
+
158
+ Length. Given a target length $1 0 , \ldots , 4 0$ , generate a sequence with a length within $\pm 2$ of the target.
159
+ In the case of Diffusion-LM, we treat this as a classifier-free control task.
160
+
161
+ Infilling. Given a left context $( O _ { 1 } )$ and a right context $( O _ { 2 } )$ from the aNLG dataset $\pmb { \mathbb { D } } \mathbf { l }$ , and the goal is to generate a sentence that logically connects $O _ { 1 }$ and $O _ { 2 }$ (algorithm details in Appendix $\mathbf { G } )$ . For evaluation, we report both automatic and human evaluation from the Genie leaderboard $\mathbb { 1 1 9 } \mathrm { j }$
162
+
163
+ <table><tr><td></td><td colspan="2">Semantic Content</td><td colspan="2">Parts-of-speech</td><td colspan="2">Syntax Tree</td><td colspan="2">Syntax Spans</td><td colspan="2">Length</td></tr><tr><td></td><td>ctrl 个</td><td>lm↓</td><td>ctrl个</td><td>im↓</td><td>ctrl个</td><td>lm↓</td><td>ctrl个</td><td>im↓</td><td>ctrl个</td><td>lm↓</td></tr><tr><td>PPLM FUDGE</td><td>9.9 69.9</td><td>5.32 2.83</td><td>1</td><td>1 7.96</td><td>1</td><td>-</td><td>1</td><td>1</td><td>1</td><td>-</td></tr><tr><td>Diffusion-LM</td><td></td><td></td><td>27.0</td><td></td><td>17.9</td><td>3.39</td><td>54.2</td><td>4.03</td><td>46.9</td><td>3.11</td></tr><tr><td></td><td>81.2</td><td>2.55</td><td>90.0</td><td>5.16</td><td>86.0</td><td>3.71</td><td>93.8</td><td>2.53</td><td>99.9</td><td>2.16</td></tr><tr><td>FT-sample</td><td>72.5</td><td>2.87</td><td>89.5</td><td>4.72</td><td>64.8</td><td>5.72</td><td>26.3</td><td>2.88</td><td>98.1</td><td>3.84</td></tr><tr><td>FT-search</td><td>89.9</td><td>1.78</td><td>93.0</td><td>3.31</td><td>76.4</td><td>3.24</td><td>54.4</td><td>2.19</td><td>100.0</td><td>1.83</td></tr></table>
164
+
165
+ Table 2: Diffusion-LM achieves high success rate (ctrl ") and good fluency $( \ln \downarrow )$ across all 5 control tasks, outperforming the PPLM and FUDGE baselines. Our method even outperforms the fine-tuning oracle (FT) on controlling syntactic parse trees and spans.
166
+
167
+ # 6.3 Classifier-Guided Control Baselines
168
+
169
+ For the first 5 control tasks, we compare our method with PPLM, FUDGE, and a fine-tuning oracle. Both PPLM and FUDGE are plug-and-play controllable generation approaches based on an autoregressive LM, which we train from scratch using the GPT-2 small architecture $\pmb { \mathbb { B } } \pmb { \mathrm { 9 } } \|$
170
+
171
+ PPLM[6]. This method runs gradient ascent on the LM activations to increase the classifier probabilities and language model probabilities, and has been successful on simple attribute control. We apply PPLM to control semantic content, but not the remaining 4 tasks which require positional information, as PPLM’s classifier lacks positional information.
172
+
173
+ FUDGE[55]. For each control task, FUDGE requires a future discriminator that takes in a prefix sequence and predicts whether the complete sequence would satisfy the constraint. At decoding time, FUDGE reweights the LM prediction by the discriminator scores.
174
+
175
+ FT. For each control task, we fine-tune GPT-2 on (control, text) pair, yielding an oracle conditional language model that’s not plug-and-play. We report both the sampling (with temperature 1.0) and beam search (with beam size 4) outputs of the fine-tuned models, denoted as FT-sample and FT-search.
176
+
177
+ # 6.4 Infilling Baselines
178
+
179
+ We compare to 3 specialized baseline methods developed in past work for the infilling task.
180
+
181
+ DELOREAN [36]. This method continuously relaxes the output space of a left-to-right autoregressive LM, and iteratively performs gradient updates on the continuous space to enforce fluent connection to the right contexts. This yields a continuous vector which is rounded back to text.
182
+
183
+ COLD[37]. COLD specifies an energy-based model that includes fluency (from left-to-right and right-to-left LM) and coherence constraints (from lexical overlap). It samples continuous vectors from this energy-based model and round them to text.
184
+
185
+ AR-infilling. We train an autoregressive LM from scratch to do sentence infilling task $\pmb { \Vert }$ . Similar to training Diffusion-LM, we train on the ROCStories dataset, but pre-process it by reordering sentences from $( O _ { 1 } , O _ { \mathrm { m i d d l e } , } O _ { 2 } )$ to $( O _ { 1 } , O _ { 2 } , O _ { \mathrm { m i d d l e } } )$ . At evaluation time, we feed in $O _ { 1 } , O _ { 2 }$ , and the model generates the middle sentence.
186
+
187
+ # 7 Main Results
188
+
189
+ We train Diffusion-LMs on the E2E and ROCStories datasets. In terms of negative log-likelihood (NLL, lower is better), we find that the variational upper bound of Diffusion-LM NLL 10 underperforms the equivalent autoregressive Transformer model (2.28 vs. 1.77 for E2E, 3.88 vs 3.05 for ROCStories) although scaling up model and dataset size partially bridges the gap $3 . 8 8 3 . 1 0$ on ROCStories). Our best log-likelihoods required several modifications from $\ S 4 ;$ we explain these and give detailed log-likelihood results in Appendix $\boxed { \mathrm { K } }$ Despite worse likelihoods, controllable generation based on our Diffusion-LM results in significantly better outputs than systems based on autoregressive LMs, as we will show in §7.1,§7.2, and §7.3
190
+
191
+ # 7.1 Classifier-Guided Controllable Text Generation Results
192
+
193
+ As shown in Table 2, Diffusion-LM achieves high success and fluency across all classifier-guided control tasks. It significantly outperforms the PPLM and FUDGE baselines across all 5 tasks.
194
+
195
+ Table 3: Qualitative examples from the Syntax Tree control. The syntactic parse tree is linearized by nested brackets representing the constituents, and we use the standard PTB syntactic categories. Tokens within each span are represented as \* . We color failing spans red and bold the spans of interest that we discuss in $\ S 7 . 1 .$
196
+
197
+ <table><tr><td>Syntactic Parse</td><td>(S(S(NP*)(VP*(NP(NP**)(VP*(NP(ADJP**)*)))))*(S(NP***)(VP*( ADJP(ADJP *)))))</td></tr><tr><td>FUDGE</td><td>Zizzi is a cheap restaurant . [incomplete]</td></tr><tr><td>Diffusion-LM FT</td><td>Zizzi is a pub providing family friendly Indian food Its customer rating is low Cocum is a Pub serving moderately priced meals and the customer rating is high</td></tr><tr><td>Syntactic Parse</td><td>(S(S(VP*(PP*(NP**)))) *(NP***)(VP*(NP(NP**)(SBAR(WHNP*)(S( VP*(NP**))))))*)</td></tr><tr><td>FUDGE</td><td>In the city near The Portland Arms is a coffee and fast food place named The Cricketers which is not family - friendly with a customer rating of 5 out of 5 .</td></tr><tr><td>Diffusion-LM FT</td><td>Located on the riverside,The Rice Boat is a restaurant that serves Indian food . Located near The Sorrento, The Millis a pub that serves Indian cuisine.</td></tr></table>
198
+
199
+ <table><tr><td colspan="4">Semantic Content + Syntax Tree</td><td colspan="3">Semantic Content + Parts-of-speech</td></tr><tr><td></td><td>semantic ctrl ↑</td><td>syntax ctrl ↑</td><td>lm↓</td><td>semantic ctrl ↑</td><td>POS ctrl ↑</td><td>lm↓</td></tr><tr><td>FUDGE</td><td>61.7</td><td>15.4</td><td>3.52</td><td>64.5</td><td>24.1</td><td>3.52</td></tr><tr><td>Diffusion-LM</td><td>69.8</td><td>74.8</td><td>5.92</td><td>63.7</td><td>69.1</td><td>3.46</td></tr><tr><td>FT-PoE</td><td>61.7</td><td>29.2</td><td>2.77</td><td>29.4</td><td>10.5</td><td>2.97</td></tr></table>
200
+
201
+ Table 4: In this experiment, we compose semantic control and syntactic control: Diffusion-LM achieves higher success rate (ctrl $\uparrow ,$ ) at some cost of fluency $( \ln \downarrow )$ . Our method outperforms both FUDGE and FT-PoE (product of experts of two fine-tuned models) on control success rate, especially for the structured syntactic controls (i.e. syntactic parse tree and POS).
202
+
203
+ Surprisingly, our method outperforms the fine-tuning oracle on controlling syntactic parse trees and spans, while achieving similar performance on the remaining 3 tasks.
204
+
205
+ Controlling syntactic parse trees and spans are challenging tasks for fine-tuning, because conditioning on the parse tree requires reasoning about the nested structure of the parse tree, and conditioning on spans requires lookahead planning to ensure the right constituent appears at the target position.
206
+
207
+ We observe that PPLM fails in semantic content controls and conjecture that this is because PPLM is designed to control coarse-grained attributes, and may not be useful for more targeted tasks such as enforcing that a restaurant review contains a reference to Starbucks.
208
+
209
+ FUDGE performs well on semantic content control but does not perform well on the remaining four tasks. Controlling a structured output (Parts-of-speech and Syntax Tree) is hard for FUDGE because making one mistake anywhere in the prefix makes the discriminator assign low probabilities to all continuations. In other control tasks that require planning (Length and Syntax Spans), the future discriminator is difficult to train, as it must implicitly perform lookahead planning.
210
+
211
+ The non-autoregressive nature of our Diffusion-LM allows it to easily solve all the tasks that require precise future planning (Syntax Spans and Length). We believe that it works well for complex controls that involve global structures (Parts-of-speech, Syntax Tree) because the coarse-to-fine representations allow the classifier to exert control on the entire sequence (near $t = T$ ) as well as on individual tokens (near $t = 0$ ).
212
+
213
+ Qualitative Results. Table $\textcircled { 3 }$ shows samples of Syntax Tree control. Our method and fine-tuning both provide fluent sentences that mostly satisfy controls, whereas FUDGE deviates from the constraints after the first few words. One key difference between our method and fine-tuning is that Diffusion-LM is able to correct for a failed span and have suffix spans match the target. In the first example, the generated span (“Family friendly Indian food”) is wrong because it contains 1 more word than the target. Fortunately, this error doesn’t propagate to later spans, since Diffusion-LM adjusts by dropping the conjunction.
214
+
215
+ # 7.2 Composition of Controls
216
+
217
+ One unique capability of plug-and-play controllable generation is its modularity. Given classifiers for multiple independent tasks, gradient guided control makes it simple to generate from the intersection of multiple controls by taking gradients on the sum of the classifier log-probabilities.
218
+
219
+ Table 5: For sentence infilling, Diffusion-LM significantly outperforms prior work COLD $\pmb { \Vert 3 7 \Vert }$ and Delorean $\pmb { \mathbb { B } } 6 \|$ (numbers taken from paper), and matches the performance of an autoregressive LM (AR) trained from scratch to do infilling.
220
+
221
+ <table><tr><td rowspan="2"></td><td colspan="4">Automatic Eval</td><td rowspan="2">Human Eval</td></tr><tr><td>BLEU-4个</td><td>ROUGE-L↑</td><td>CIDEr↑</td><td>BERTScore↑</td></tr><tr><td>Left-only</td><td>0.9</td><td>16.3</td><td>3.5</td><td>38.5</td><td>n/a</td></tr><tr><td>DELOREAN</td><td>1.6</td><td>19.1</td><td>7.9</td><td>41.7</td><td>n/a</td></tr><tr><td>COLD</td><td>1.8</td><td>19.5</td><td>10.7</td><td>42.7</td><td>n/a</td></tr><tr><td>Diffusion</td><td>7.1</td><td>28.3</td><td>30.7</td><td>89.0</td><td>0.37+0.03 -0.02</td></tr><tr><td>AR</td><td>6.7</td><td>27.0</td><td>26.9</td><td>89.0</td><td>0.39±0.02 -0.03</td></tr></table>
222
+
223
+ We evaluate this setting on the combination of Semantic Content $^ +$ Syntax Tree control and Semantic Content $^ +$ Parts-of-speech control. As shown in Table $^ { 4 , }$ our Diffusion-LM achieves a high success rate for both of the two components, whereas FUDGE gives up on the more global syntactic control. This is expected because FUDGE fails to control syntax on its own.
224
+
225
+ Fine-tuned models are good at POS and semantic content control individually but do not compose these two controls well by product of experts (PoE), leading to a large drop in success rates for both constraints.
226
+
227
+ # 7.3 Infilling Results
228
+
229
+ As shown in Table $5 ,$ our diffusion LM significantly outperforms continuous relaxation based methods for infilling (COLD and DELOREAN). Moreover, our method achieves comparable performance to fine-tuning a specialized model for this task. Our method has slightly better automatic evaluation scores and the human evaluation found no statistically significant improvement for either method. These results suggest that Diffusion LM can solve many types of controllable generation tasks that depend on generation order or lexical constraints (such as infilling) without specialized training.
230
+
231
+ # 7.4 Ablation Studies
232
+
233
+ We verify the importance of our proposed design choices in $\ S \dot { 4 }$ through two ablation studies. We measure the sample quality of DiffusionLM using the lm-score on 500 samples $\ S 6 . 2 .$
234
+
235
+ Learned v.s. Random Embeddings (§4.1) Learned embeddings outperform random embeddings on the ROCStories, which is a harder language modeling task. The same trend holds for the E2E dataset but with a smaller margin.
236
+
237
+ Objective Parametrization $\textcircled { \ S 4 . 2 }$ . We propose to let the diffusion model predict $\mathbf { x } _ { \mathrm { 0 } }$ directly. Here, we compare this with standard
238
+
239
+ ![](images/bf134d627ad1c396765036f971cdd59bda1220a6ed8e17b0a956d4be0e69a6df.jpg)
240
+ Figure 4: We measure the impact of our proposed design choices through lm-score. We find both learned embeddings and reparametrization substantially improves sample quality.
241
+
242
+ parametrization in image generation which parametrizes by the noise term ✏. Figure $\boxed { 4 }$ (right) shows that parametrizing by $\mathbf { x } _ { \mathrm { 0 } }$ consistently attains good performance across dimensions, whereas parametrizing by $\epsilon$ works fine for small dimensions, but quickly collapses for larger dimensions.
243
+
244
+ # 8 Conclusion and Limitations
245
+
246
+ We proposed Diffusion-LM, a novel and controllable language model based on continuous diffusions, which enables new forms of complex fine-grained control tasks. We demonstrate Diffusion-LM’s success in 6 fine-grained control tasks: our method almost doubles the control success rate of prior methods and is competitive with baseline fine-tuning methods that require additional training.
247
+
248
+ We find the complex controls enabled by Diffusion-LM to be compelling, and we are excited by how Diffusion-LM is a substantial departure from the current paradigm of discrete autoregressive generation. As with any new technologies, there are drawbacks to the Diffusion-LMs that we constructed: (1) it has higher perplexity; (2) decoding is substantially slower; and (3) training converges more slowly. We believe that with more follow-up work and optimization, many of these issues can be addressed, and this approach will turn out to be a compelling way to do controllable generation at scale.
249
+
250
+ # Acknowledgments and Disclosure of Funding
251
+
252
+ We thank Yang Song, Jason Eisner, Tianyi Zhang, Rohan Taori, Xuechen Li, Niladri Chatterji, and the members of p-lambda group for early discussions and feedbacks. We gratefully acknowledge the support of a PECASE award. Xiang Lisa Li is supported by a Stanford Graduate Fellowship.
253
+
254
+ # References
255
+
256
+ [1] Jacob Austin, Daniel D. Johnson, Jonathan Ho, Daniel Tarlow, and Rianne van den Berg. Structured denoising diffusion models in discrete state-spaces. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, 2021. URL https://openreview.net/forum?id=h7-XixPCAL.
257
+
258
+ [2] Chandra Bhagavatula, Ronan Le Bras, Chaitanya Malaviya, Keisuke Sakaguchi, Ari Holtzman, Hannah Rashkin, Doug Downey, Wen tau Yih, and Yejin Choi. Abductive commonsense reasoning. In International Conference on Learning Representations, 2020. URL https: //openreview.net/forum?id=Byg1v1HKDB.
259
+ [3] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D 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 Ziegler, Jeffrey Wu, Clemens Winter, Chris 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 H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 1877–1901. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/file/ 1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf.
260
+ [4] Nanxin Chen, Yu Zhang, Heiga Zen, Ron J Weiss, Mohammad Norouzi, and William Chan. Wavegrad: Estimating gradients for waveform generation. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=NsMLjcFaO8O.
261
+ [5] 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 M. Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Benton C. 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 García, 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 Oliveira Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathleen S. Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, and Noah Fiedel. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022.
262
+ [6] Sumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung, Eric Frank, Piero Molino, Jason Yosinski, and Rosanne Liu. Plug and play language models: A simple approach to controlled text generation. In International Conference on Learning Representations, 2020. URL https: //openreview.net/forum?id=H1edEyBKDS.
263
+ [7] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. ArXiv, abs/1810.04805, 2019.
264
+ [8] Prafulla Dhariwal and Alexander Quinn Nichol. Diffusion models beat GANs on image synthesis. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, 2021. URL https://openreview.net/forum? id=AAWuCvzaVt.
265
+ [9] Chris Donahue, Mina Lee, and Percy Liang. Enabling language models to fill in the blanks. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2492–2501, Online, July 2020. Association for Computational Linguistics. doi: 10.18653/v1/ 2020.acl-main.225. URL https://aclanthology.org/2020.acl-main.225.
266
+ [10] John C. Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. In J. Mach. Learn. Res., 2010.
267
+
268
+ [11] Marjan Ghazvininejad, Omer Levy, Yinhan Liu, and Luke Zettlemoyer. Mask-predict: Parallel decoding of conditional masked language models. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 6112–6121, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1633. URL https://aclanthology.org/D19-1633.
269
+
270
+ [12] Jiatao Gu, James Bradbury, Caiming Xiong, Victor O.K. Li, and Richard Socher. Nonautoregressive neural machine translation. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=B1l8BtlCb.
271
+
272
+ [13] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, pages 6840–6851, 2020.
273
+
274
+ [14] Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, and Yejin Choi. The curious case of neural text degeneration. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=rygGQyrFvH.
275
+
276
+ [15] Emiel Hoogeboom, Didrik Nielsen, Priyank Jaini, Patrick Forré, and Max Welling. Argmax flows and multinomial diffusion: Towards non-autoregressive language models. arXiv preprint arXiv:2102.05379, 2021.
277
+
278
+ [16] Emiel Hoogeboom, Alexey A. Gritsenko, Jasmijn Bastings, Ben Poole, Rianne van den Berg, and Tim Salimans. Autoregressive diffusion models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=Lm8T39vLDTE.
279
+
280
+ [17] Lukasz Kaiser, Samy Bengio, Aurko Roy, Ashish Vaswani, Niki Parmar, Jakob Uszkoreit, and Noam Shazeer. Fast decoding in sequence models using discrete latent variables. In Jennifer Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 2390–2399. PMLR, 10–15 Jul 2018. URL https://proceedings.mlr.press/v80/kaiser18a.html.
281
+
282
+ [18] N. Keskar, B. McCann, L. R. Varshney, Caiming Xiong, and R. Socher. Ctrl: A conditional transformer language model for controllable generation. ArXiv, abs/1909.05858, 2019.
283
+
284
+ [19] Daniel Khashabi, Gabriel Stanovsky, Jonathan Bragg, Nicholas Lourie, Jungo Kasai, Yejin Choi, Noah A. Smith, and Daniel S. Weld. Genie: A leaderboard for human-in-the-loop evaluation of text generation. ArXiv, abs/2101.06561, 2021.
285
+
286
+ [20] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. International Conference on Learning Representations (ICLR), 2014.
287
+
288
+ [21] Diederik P Kingma, Tim Salimans, Ben Poole, and Jonathan Ho. Variational diffusion models. arXiv preprint arXiv:2107.00630, 2021.
289
+
290
+ [22] Nikita Kitaev and Dan Klein. Constituency parsing with a self-attentive encoder. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2676–2686, Melbourne, Australia, July 2018. Association for Computational Linguistics. doi: 10.18653/v1/P18-1249. URL https://aclanthology.org/P18-1249.
291
+
292
+ [23] Zhifeng Kong and Wei Ping. On fast sampling of diffusion probabilistic models. In ICML Workshop on Invertible Neural Networks, Normalizing Flows, and Explicit Likelihood Models, 2021. URL https://openreview.net/forum?id=agj4cdOfrAP.
293
+
294
+ [24] Zhifeng Kong, Wei Ping, Jiaji Huang, Kexin Zhao, and Bryan Catanzaro. Diffwave: A versatile diffusion model for audio synthesis. arXiv preprint arXiv:2009.09761, 2020.
295
+
296
+ [25] Ben Krause, Akhilesh Deepak Gotmare, Bryan McCann, Nitish Shirish Keskar, Shafiq Joty, Richard Socher, and Nazneen Fatema Rajani. GeDi: Generative Discriminator Guided Sequence Generation. arXiv preprint arXiv:2009.06367, 2020.
297
+
298
+ [26] Shankar Kumar and William Byrne. Minimum Bayes-risk decoding for statistical machine translation. In Proceedings of the Human Language Technology Conference of the North American Chapter of the Association for Computational Linguistics: HLT-NAACL 2004, pages 169–176, Boston, Massachusetts, USA, May 2 - May 7 2004. Association for Computational Linguistics. URL https://aclanthology.org/N04-1022.
299
+
300
+ [27] Jason Lee, Elman Mansimov, and Kyunghyun Cho. Deterministic non-autoregressive neural sequence modeling by iterative refinement. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1173–1182, Brussels, Belgium, OctoberNovember 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1149. URL https://aclanthology.org/D18-1149.
301
+
302
+ [28] Alisa Liu, Maarten Sap, Ximing Lu, Swabha Swayamdipta, Chandra Bhagavatula, Noah A. Smith, and Yejin Choi. DExperts: Decoding-time controlled text generation with experts and anti-experts. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 6691–6706, Online, August 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.acl-long.522. URL https: //aclanthology.org/2021.acl-long.522.
303
+
304
+ [29] Xuezhe Ma, Chunting Zhou, Xian Li, Graham Neubig, and Eduard Hovy. FlowSeq: Nonautoregressive conditional sequence generation with generative flow. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 4282–4292, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/ D19-1437. URL https://aclanthology.org/D19-1437.
305
+
306
+ [30] Chenlin Meng, Yutong He, Yang Song, Jiaming Song, Jiajun Wu, Jun-Yan Zhu, and Stefano Ermon. SDEdit: Guided image synthesis and editing with stochastic differential equations. In International Conference on Learning Representations, 2022. URL https://openreview. net/forum?id=aBsCjcPu_tE.
307
+
308
+ [31] Gautam Mittal, Jesse Engel, Curtis Hawthorne, and Ian Simon. Symbolic music generation with diffusion models. arXiv preprint arXiv:2103.16091, March 2021.
309
+
310
+ [32] Nasrin Mostafazadeh, Nathanael Chambers, Xiaodong He, Devi Parikh, Dhruv Batra, Lucy Vanderwende, Pushmeet Kohli, and James Allen. A corpus and cloze evaluation for deeper understanding of commonsense stories. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 839–849, San Diego, California, June 2016. Association for Computational Linguistics. doi: 10.18653/v1/N16-1098. URL https://aclanthology.org/N16-1098.
311
+
312
+ [33] Alex Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic models. arXiv preprint arXiv:2102.09672, 2021.
313
+
314
+ [34] Jekaterina Novikova, Ondˇrej Dušek, and Verena Rieser. The E2E dataset: New challenges for end-to-end generation. In Proceedings of the 18th Annual SIGdial Meeting on Discourse and Dialogue, pages 201–206, Saarbrücken, Germany, August 2017. Association for Computational Linguistics. doi: 10.18653/v1/W17-5525. URL https://aclanthology.org/W17-5525.
315
+
316
+ [35] Jeffrey Pennington, Richard Socher, and Christopher Manning. GloVe: Global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1532–1543, Doha, Qatar, October 2014. Association for Computational Linguistics. doi: 10.3115/v1/D14-1162. URL https://aclanthology. org/D14-1162.
317
+
318
+ [36] Lianhui Qin, Vered Shwartz, Peter West, Chandra Bhagavatula, Jena D. Hwang, Ronan Le Bras, Antoine Bosselut, and Yejin Choi. Back to the future: Unsupervised backprop-based decoding for counterfactual and abductive commonsense reasoning. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 794–805, Online, November 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020. emnlp-main.58. URL https://aclanthology.org/2020.emnlp-main.58.
319
+
320
+ [37] Lianhui Qin, Sean Welleck, Daniel Khashabi, and Yejin Choi. Cold decoding: Energy-based constrained text generation with langevin dynamics, 2022. URL https://arxiv.org/abs/ 2202.11705.
321
+
322
+ [38] Alec Radford and Karthik Narasimhan. Improving language understanding by generative pre-training. https://openai.com/blog/language-unsupervised/, 2018.
323
+
324
+ [39] Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. https://openai.com/blog/better-language-models/, 2019.
325
+
326
+ [40] Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with clip latents, 2022. URL https://arxiv.org/abs/ 2204.06125.
327
+
328
+ [41] Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125, April 2022.
329
+
330
+ [42] Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014.
331
+
332
+ [43] Chitwan Saharia, William Chan, Saurabh Saxena, and Mohammad Norouzi. Non-autoregressive machine translation with latent alignments. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1098–1108, 2020.
333
+
334
+ [44] Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily Denton, Seyed Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, S. Sara Mahdavi, Rapha Gontijo Lopes, Tim Salimans, Jonathan Ho, David J Fleet, and Mohammad Norouzi. Photorealistic text-to-image diffusion models with deep language understanding, 2022. URL https://arxiv.org/abs/ 2205.11487.
335
+
336
+ [45] Tim Salimans and Jonathan Ho. Progressive distillation for fast sampling of diffusion models. In International Conference on Learning Representations, 2022. URL https://openreview. net/forum?id=TIdIXIpzhoI.
337
+
338
+ [46] Lei Sha. Gradient-guided unsupervised lexically constrained text generation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 8692–8703, Online, November 2020. Association for Computational Linguistics. doi: 10.18653/ v1/2020.emnlp-main.701. URL https://aclanthology.org/2020.emnlp-main.701.
339
+
340
+ [47] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In Francis Bach and David Blei, editors, Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 2256–2265, Lille, France, 07–09 Jul 2015. PMLR. URL https://proceedings.mlr.press/v37/sohl-dickstein15.html.
341
+
342
+ [48] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021. URL https://openreview. net/forum?id=St1giarCHLP.
343
+
344
+ [49] 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. URL https://openreview. net/forum?id=PxTIG12RRHS.
345
+
346
+ [50] Mitchell Stern, William Chan, Jamie Kiros, and Jakob Uszkoreit. Insertion transformer: Flexible sequence generation via insertion operations. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 5976–5985. PMLR, 09–15 Jun 2019. URL https://proceedings.mlr.press/v97/stern19a.html.
347
+
348
+ [51] Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-SNE. Journal of Machine Learning Research, 2008.
349
+
350
+ [52] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30, pages 5998–6008. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper/2017/file/ 3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf.
351
+
352
+ [53] Ben Wang and Aran Komatsuzaki. GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model. https://github.com/kingoflolz/mesh-transformer-jax, May 2021.
353
+
354
+ [54] Chunqi Wang, Ji Zhang, and Haiqing Chen. Semi-autoregressive neural machine translation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 479–488, Brussels, Belgium, October-November 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1044. URL https://aclanthology.org/D18-1044.
355
+
356
+ [55] Kevin Yang and Dan Klein. FUDGE: Controlled text generation with future discriminators. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 3511–3535, Online, June 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.naacl-main.276. URL https://aclanthology.org/2021.naacl-main.276.
357
+
358
+ [56] Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, Todor Mihaylov, Myle Ott, Sam Shleifer, Kurt Shuster, Daniel Simig, Punit Singh Koura, Anjali Sridhar, Tianlu Wang, and Luke Zettlemoyer. Opt: Open pre-trained transformer language models, 2022. URL https: //arxiv.org/abs/2205.01068.
parse/dev/3s9IrEsjLyk/3s9IrEsjLyk_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/3s9IrEsjLyk/3s9IrEsjLyk_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/3s9IrEsjLyk/3s9IrEsjLyk_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/BryMFPQ4L6/BryMFPQ4L6.md ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Augmenting Language Models with Long-Term Memory
2
+
3
+ Weizhi Wang†, Li Dong‡, Hao Cheng‡, Xiaodong Liu‡, Xifeng $\mathbf { Y a n } ^ { \dagger }$ , Jianfeng Gao‡, Furu Wei‡ †University of California, Santa Barbara ‡Microsoft Research weizhiwang@ucsb.edu, {lidong1, chehao, xiaodl}@microsoft.com
4
+
5
+ # Abstract
6
+
7
+ Existing large language models (LLMs) can only afford fix-sized inputs due to the input length limit, preventing them from utilizing rich long-context information from past inputs. To address this, we propose a framework, Language Models Augmented with Long-Term Memory (LONGMEM), which enables LLMs to memorize long history. We design a novel decoupled network architecture with the original backbone LLM frozen as a memory encoder and an adaptive residual side-network as a memory retriever and reader. Such a decoupled memory design can easily cache and update long-term past contexts for memory retrieval without suffering from memory staleness. Enhanced with memory-augmented adaptation training, LONGMEM can thus memorize long past context and use long-term memory for language modeling. The proposed memory retrieval module can handle unlimited-length context in its memory bank to benefit various downstream tasks. Typically, LONGMEM can enlarge the long-form memory to $6 5 \mathrm { k }$ tokens and thus cache many-shot extra demonstration examples as long-form memory for in-context learning. Experiments show that our method outperforms strong longcontext models on ChapterBreak, a challenging long-context modeling benchmark, and achieves remarkable improvements on memory-augmented in-context learning over LLMs. The results demonstrate that the proposed method is effective in helping language models to memorize and utilize long-form contents. Our code is open-sourced at https://aka.ms/LongMem.
8
+
9
+ # 1 Introduction
10
+
11
+ Large language models (LLMs) have revolutionized natural language processing with great successes in advancing the state-of-the-art on various understanding and generation tasks [DCLT19, $\mathrm { R W C ^ { + } } 1 9$ , $\mathrm { L O G ^ { + } } 1 9$ , $\bar { \mathrm { Y } } \mathrm { { D Y } ^ { + } 1 9 }$ , $\mathrm { B M R } ^ { + } 2 0$ , $\mathrm { R S R } ^ { + } 2 0 ]$ . Most LLMs benefit from self-supervised training over large corpora via harvesting knowledge from fix-sized local context, showing emergent abilities, e.g., zero-shot prompting $[ \mathrm { R W C ^ { + } } 1 9 ]$ , in-context learning $[ \mathrm { B M R } ^ { + } 2 0 ]$ , and Chain-of-Thought (CoT) reasoning $[ \mathrm { W } \bar { \mathrm { W } } \mathrm { S } ^ { + } \bar { 2 } 2 ]$ . Nevertheless, the input length limit of existing LLMs prevents them from generalizing to real-world scenarios where the capability of processing long-form information beyond a fix-sized session is critical, e.g., long horizontal planning.
12
+
13
+ To address the length limit issue, the most straightforward method is to simply scale up the input context length. For instance, GPT-3 $[ \mathrm { B M R } ^ { + } 2 0 ]$ increases the input length from 1k tokens in GPT-2 $[ \mathrm { R W C ^ { + } } 1 9 ]$ to $2 \mathrm { k }$ tokens, thereby allowing for better capture of long-range dependencies. However, this approach typically incurs computation-intensive training from scratch and the in-context dense attention is still heavily constrained by the quadratic computation complexity of Transformer self-attention $[ \mathrm { V S P ^ { + } 1 7 } ]$ . Another recent line of work [BPC20, $\mathrm { Z G D ^ { + } } 2 0 ]$ instead focuses on developing in-context sparse attention to avoid the quadratic cost of self-attention, which still largely requires training from scratch. In contrast, the prominent work, Memorizing Transformer (MemTRM) [WRHS22], approximates in-context sparse attention via dense attention over both incontext tokens and memorized tokens retrieved from a non-differentiable memory for Transformers. Thus, MemTRM scales up the resulting language model to handle up to 65k tokens and achieves substantial perplexity gains in modeling full-length books or long papers. However, MemTRM faces the memory staleness challenge during training due to its coupled memory design, which uses a single model for encoding memory and fusing memory for language modeling. In other words, as the model parameters are updated, cached older representations in memory may have distributional shifts from those from the latest model, thereby limiting the effectiveness of the memory augmentation.
14
+
15
+ ![](images/519066b13ea667f961d700ed9c3ecfb54d07e061e20fe2698ba0a94c8f74e2a8.jpg)
16
+ Figure 1: Overview of the memory caching and retrieval flow of LONGMEM. The long text sequence is divided into fix-length segments with each previous segment processed through a frozen backbone LLM and the corresponding attention key and value vectors of $m$ -th layer are cached into the memory bank. Given current inputs, the corresponding attention query vectors are used to retrieve the top- $K$ attention key-value pairs from previous segments stored in the memory bank, which will be then fused with local context for language modeling.
17
+
18
+ In this paper, we present a framework for Language Models Augmented with Long-Term Memory (LONGMEM). This framework enables language models to cache lengthy previous context or knowledge into a non-differentiable memory bank, and then utilize them via a decoupled memory module to mitigate the issue of memory staleness. To achieve decoupled memory, we design a novel residual side-network (SideNet) in conjunction with a frozen backbone LLM. Paired attention keys and values of the previous context are extracted using the frozen backbone LLM, which are subsequently stored in the memory bank. In the memory-augmented layer of SideNet, the generated attention query of the current input is used to retrieve cached key-value pairs of previous contexts from the memory, and the corresponding memory augmentations are then fused into adaptable hidden states via a joint-attention mechanism. Furthermore, newly designed cross-network residual connections between the SideNet and the frozen backbone LLM facilitate better knowledge transfer from the pretrained backbone LLM. Through continuous training of the residual SideNet to retrieve and fuse memory augmentations, the pre-trained LLM can be adapted to effectively leverage longcontextual memory for enhanced modeling. The detailed memory cache, retrieval and fusion process is illustrated in Figure 1.
19
+
20
+ Our decoupled memory design offers two key advantages. First, our proposed architecture effectively separates the process of encoding previous inputs into memory and the process of memory retrieval and fusion, thanks to the decoupled frozen backbone LLM and SideNet. In this way, the backbone LLM only works as the long-context knowledge encoder, while the residual SideNet works as the memory retriever and reader, which effectively resolves the issue of memory staleness. Second, directly adapting the entire LLM with memory augmentations is computationally inefficient and also prone to catastrophic forgetting. As the backbone LLM is frozen during the efficient memoryaugmented adaptation stage, LONGMEM can not only tap into the pretrained knowledge but also avoid catastrophic forgetting.
21
+
22
+ LONGMEM is capable of taking various types of long-form text and knowledge into the memory bank based on downstream tasks. Here, we consider two representative cases, language modeling with full-length book contexts, and memory-augmented in-context learning with thousands of task-relevant demonstration examples. Specifically, we evaluate the effectiveness of the proposed LONGMEM on various long-text language modeling, and memory-augmented in-context learning for natural language understanding (NLU) tasks. Experimental results demonstrate that our model consistently outperforms the strong baselines in terms of long-text modeling and in-context learning abilities. Our method substantially improves LLM’s long-context language modeling capabilities, with a reduction in perplexity of $1 . 3 8 { \sim } 1 . 6 2$ over different length splits of Gutenberg-2022 corpus. Notably, our model achieves state-of-the-art performance of $4 0 . 5 \%$ identification accuracy on ChapterBreak, a challenging long-context modeling benchmark, significantly surpassing existing strong $\mathbf { X }$ -former baselines. Finally, with 2k demonstration examples in memory, LONGMEM shows pronounced improvements in in-context learning on popular NLU tasks, compared with prominent memoryaugmented and non-memory-augmented baselines.
23
+
24
+ ![](images/d5df7c5e3ae9fa9662e6eb6a4ae1aa993ad2d4d732eab292a975c3119339853b.jpg)
25
+ Figure 2: Overview of LONGMEM architecture. “MemAug” represents Memory-Augmented Layer.
26
+
27
+ # 2 Methods
28
+
29
+ To enable LLMs to harvest relevant information from the past long context in memory, we propose to augment the frozen backbone LLM with a decoupled memory module. To fuse the memory context information, we design a novel lightweight residual SideNet, which can be continually trained in an efficient way. In the following, we first discuss the problem formulation of language modeling with memory augmentations. Then, we formally introduce our efficient residual SideNet for adapting the frozen pretrained LLM to jointly attend over local input context and retrieved memory context. Lastly, we provide our designed processes of how past memory is encoded, stored, recalled and fused for language modeling.
30
+
31
+ # 2.1 Language Models Augmented with Long-Term Memory
32
+
33
+ Here, we focus on the high-level problem setup and defer more component details to later sections. Given its wide adoption for pretrained LLMs, our LONGMEM model is built on the Transformer architecture $[ \mathrm { V S P ^ { + } \bar { 1 } 7 } ]$ . For LONGMEM, there are three key components: the frozen backbone LLM, SideNet, and Cache Memory Bank. As most existing pretrained LLMs can only take a fix-sized input, only the input segment of a long sequence (e.g., a book) that can fit in the length limit is denoted as the current input as done for most existing autoregressive language models. Those previous segments that can not fit are denoted as previous inputs, which are used for memory augmentations. To tap into the learned knowledge of the pretrained LLM, both previous and current inputs are encoded using the frozen backbone LLM but different representations are extracted. For previous inputs, the key-value pairs from the Transformer self-attention at $m$ -th layer are stored in Cache Memory Bank, whereas the hidden states from each LLM decoder layer for the current inputs are retained and transferred to SideNet. For each current input token, top relevant key-value vector pairs are retrieved as memory augmentations for language modeling. The SideNet module can be viewed as an efficient adaption model that is trained to fuse the current input context and relevant cached previous contexts in the decoupled memory.
34
+
35
+ Formally, for a fix-sized input text sequence $\{ { \bf x } _ { i } \} _ { i = 1 } ^ { | x | }$ (the current input), LONGMEM first performs a forward pass using the backbone LLM (indicated in blue in Figure 2) without any gradient calculation. The embedding layer of the backbone LLM first encodes the input $\{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { | x | }$ into embedding space and outputs the initial hidden states, $\mathbf { H } _ { \mathrm { L L M } } ^ { 0 } \in \mathbb { R } ^ { | x | \times E }$ , where $E$ is the hidden dimension. Then each successive Transformer decoder layer of the frozen backbone LLM computes the new hidden states using the hidden states from the previous layer, Hl′LLM = fθl′LLM ( $\mathbf { H } _ { \mathrm { L L M } } ^ { l ^ { \prime } } = f _ { \theta _ { \mathrm { L L M } } ^ { l ^ { \prime } } } ( \mathbf { H } _ { \mathrm { L L M } } ^ { l ^ { \prime } - 1 } ) , \forall l ^ { \prime } \in$ $[ 1 , L ^ { \prime } ]$ and $L ^ { \prime }$ is the total # layers for the backbone LLM. During the forward pass with the backbone LLM for all previous inputs, the key-value pairs used for self-attention at the $m$ -th Transformer decoder layer are stored in Cached Memory Bank (highlighted in orange in upper-left of Figure 2). These pairs are subsequently recalled as memory augmentations for future inputs.
36
+
37
+ Cached Memory Bank is a head-wise vector queue $\mathcal { Z } _ { k } , \mathcal { Z } _ { v } \in \mathbb { R } ^ { H \times M \times d }$ , which maintains attention key-value pairs of latest $M$ previous inputs $\widetilde { \mathbf { K } } , \widetilde { \mathbf { V } } \in \mathbb { R } ^ { H \times | x | \times d }$ , where $H , d$ denotes the number of attention heads and per-head dimension respectively. After memory retrieval and fusion (§2.3), the memory bank removes the key-value pairs of the oldest sequences and appends the current sequences to the cached vector bank. This update mechanism ensures the language modeling causality at the sequences level and enables the memory bank to consistently maintain records of the most recent previous context for the current inputs.
38
+
39
+ After the forward pass with the backbone LLM, the SideNet module then takes all current input hidden states from the backbone LLM {Hl′LLM}L′l′=1 and the past key-value pairs in the Cached Memory Bank for computing memory-augmented representations. Specifically, our SideNet of LONGMEM consists of $( L - 1 )$ normal Transformer decoder layers and one special memory-augmented decoder layer. For efficient purposes, we mainly consider the case where #layers $L$ of the SideNet is smaller than that of the backbone LLM, i.e., $L < L ^ { \prime }$ . Our SideNet encodes $\mathbf { H } ^ { 0 }$ into memory-augmented contextual representation via $( L - 1 )$ normal Transformer decoder layers and a special memory-augmented layer.
40
+
41
+ The memory-augmented layer is an extension of the vanilla Transformer decoder layer that takes a memory-augmented input, including both top relevant key-value pairs in memory and the hidden states from the current input. Here, the cached key-value pairs are recalled using a token-based memory retrieval module $( \ S 2 . 3 )$ . For each current input token, the memory retrieval module $s _ { r t } ( : )$ retrieves top- $K$ relevant key-value pairs in the memory bank $\{ \widetilde { \pmb { k } } _ { i j } , \widetilde { \pmb { v } } _ { i j } \} _ { j = 1 } ^ { K } = s _ { r t } ( \mathbf { x } _ { i } ) .$ . Then SideNet computes the output using the memory-augmented input, $\mathbf { H } _ { \mathrm { S i d e } } ^ { m _ { s } } = f _ { \theta _ { \mathrm { M e m } } } ( \mathbf { H } _ { \mathrm { S i d e } } ^ { m _ { s } - 1 } , \{ \{ \widetilde { \mathbf { k } } _ { i j } , \widetilde { \mathbf { v } } _ { i j } \} _ { j = 1 } ^ { K } \} _ { i = 1 } ^ { | x | } )$ , where is the layer index where we inject the memory-augmentation layer.
42
+
43
+ Finally, the token probability is computed using the last SideNet hidden states $P ( \mathbf { x } _ { i } | \mathbf { x } _ { 1 } , \cdot \cdot \cdot , \mathbf { x } _ { i - 1 } ) =$ softmax $( W \mathbf { H } ^ { L } )$ , where $W$ is the frozen output embedding weight shared by both the backbone LLM and SideNet. We perform a memory-augmented adaptation training for LONGMEM to utilize the decoupled memory. Following the generative unsupervised pre-training [RNSS18], the training objective of LONGMEM is the standard left-to-right language modeling objective, which maximizes the likelihood of the next token based on the left context: max $\begin{array} { r } { \sum _ { x \in \mathcal { D } } \sum _ { i = 1 } ^ { | \mathbf { x } | } \log P ( \mathbf { x } _ { i } | \mathbf { x } _ { 1 } , \cdots , \mathbf { x } _ { i - 1 } ) } \end{array}$ , where $x$ is a randomly sampled sentence from the pre-training text corpus $\mathcal { D }$ .
44
+
45
+ # 2.2 Residual SideNet
46
+
47
+ SideNet Architecture and Initialization. Here, we implement SideNet based on Transformer $[ \mathrm { V S P ^ { + } 1 7 } ]$ . Specifically, the number of decoder layers $L$ in SideNet is equal to the number of layers $L ^ { \prime }$ in the backbone LLM divided by a reduction factor (a layer reduction factor of 2 is used throughout this work, i.e., $L ^ { \prime } = 2 L$ ). The weights of each decoder layer in SideNet are initialized from the corresponding pre-trained decoder layer of the backbone LLM at the same depth: $\Theta _ { \mathrm { S i d e } } ^ { l } = \Theta _ { \mathrm { L L M } } ^ { 2 l }$ . As illustrated in Figure 2, the SideNet model takes the output of backbone LLM’ser and reuses the language modeling head of the backbone LLM, which remains frozen during the continual adaption stage. Throughout the memory-augmented adaptation stage, all other parameters of SideNet are updated based on the training signal. In this way, the lightweight SideNet adaptation achieves fast convergence with knowledge transferred from pre-trained parameters.
48
+
49
+ Cross-Network Residual Connections. To tap into knowledge from the pretrained backbone LLM, we utilize our proposed cross-network residual connections to fuse representations from the backbone
50
+
51
+ LLM into SideNet. Specifically, we add the difference between output hidden states at $2 l$ -th and $( 2 l - 2 )$ -th layers of the backbone LLM as the residual connections to the output hidden states at $l$ -th layer of SideNet. Then, the input to the next $( l + 1 )$ -th layer of SideNet is the sum of the original hidden state forwarded through the previous layer $f _ { \Theta _ { \mathrm { S i d e } } ^ { l } } ( \mathbf { H } _ { \mathrm { S i d e } } ^ { l - 1 } )$ and the cross-network residual connection of the hidden state difference from the backbone LLM
52
+
53
+ $$
54
+ \mathbf { H } _ { \mathrm { S i d e } } ^ { l } = f _ { \ominus _ { \mathrm { S i d e } } ^ { l } } ( \mathbf { H } _ { \mathrm { S i d e } } ^ { l - 1 } ) + ( \mathbf { H } _ { \mathrm { L L M } } ^ { 2 l } - \mathbf { H } _ { \mathrm { L L M } } ^ { 2 l - 2 } ) , \forall l \in [ 1 , L ] ,
55
+ $$
56
+
57
+ where $\mathbf { H } ^ { 0 }$ is the output of embedding layer. It is worth noting that the residual connections after the self-attention and feed-forward network of a decoder layer $[ \mathrm { V S P ^ { + } 1 7 } ]$ will be performed as normal in $f _ { \Theta _ { \mathrm { S i d e } } ^ { l } } ( \mathbf { H } _ { \mathrm { S i d e } } ^ { l - 1 } )$ and parallel to the proposed cross-network residual connections.
58
+
59
+ # 2.3 Memory Retrieval and Fusion
60
+
61
+ The long-term memory capability of LONGMEM is achieved via a memory-augmentation module for retrieval and fusion.
62
+
63
+ Token-to-Chunk Memory Retrieval. Instead of performing token-to-token retrieval, we focus on token-to-chunk retrieval for acceleration and integrity. A text-chunk refers to an n-gram structure of chunk-size $c s z$ number of contiguous tokens. The memory bank stores cached key-value pairs at the level of token chunks. We divide the memory bank into $M / c s z$ attention key-value paired chunks and use the mean-pooled vector on the chunk-size dimension to get the key vector for retrieval. Then we retrieve the top- $\left( K / c s z \right)$ attention key-value chunks w.r.t the dot product between the attention query of the current input token and the mean-pooled attention key of a candidate chunk. Finally, we squeeze the chunk-size dimension for retrieved key-value paired chunks and flatten them into $K$ key-value pairs at token-level the retrieval index and acceler $\{ \widetilde { \mathbf { K } } _ { j } , \widetilde { \mathbf { V } } _ { j } \} _ { j = 1 } ^ { K }$ . Adopting token-to-chunk retrieval reduces the sizess. Meanwhile, the retrieval accuracy can be further improved, which is also observed in $[ \mathrm { L G W } ^ { + } 2 3 ]$ and $[ \mathrm { B M H ^ { + } } 2 1 ]$ . The hyperparameter chunk-size $c s z$ controls the granularity of retrieved contexts, which can be empirically adjusted based on downstream tasks. For instance, in-context learning requires more fine-grained label tokens from demonstration examples cached in memory, where a smaller $c s z$ is helpful.
64
+
65
+ Memory Fusion. The memory fusion is performed within a special memory-augmented layer. As the conventional Transformer decoder layer uses the multi-head self-attention $[ \bar { \mathrm { V } } \mathrm { S P ^ { + } 1 7 } ]$ , we follow [WRHS22] to extend it to a joint-attention mechanism and propose a long-term memory fusion process to enable each token to attend on both local contexts and retrieved memory contexts. With the head-wise hidden state output from previous layer $\mathbf { H } ^ { l - 1 } \in \mathbb { R } ^ { | x | \times d }$ and the corresponding retrieved attention key-value pairs are $\{ \widetilde { \mathbf { K } } _ { i } , \widetilde { \mathbf { V } } _ { i } \} _ { i = 1 } ^ { | x | } \in \mathbb { R } ^ { | x | \times \mathrm { K } \times \mathrm { d } }$ , the output hidden state for the $l$ -th memory-augmented layer $\mathbf { H } ^ { l }$ is computed as:
66
+
67
+ $$
68
+ \begin{array} { r l } & { \mathbf { A } = \mathrm { s o f t m a x } ( \frac { \mathbf { Q } \mathbf { K } ^ { T } } { \sqrt { d } } ) \mathbf { V } , \mathbf { M } = \mathrm { C o n c a t } \{ \mathrm { s o f t m a x } ( \frac { \mathbf { Q } _ { i } \widetilde { \mathbf { K } } _ { i } ^ { T } } { \sqrt { d } } ) \widetilde { \mathbf { V } } _ { i } \} _ { i = 1 } ^ { | x | } , } \\ & { \mathbf { H } ^ { l } = \mathrm { s i g m o i d } ( g ) \cdot \mathbf { A } + ( 1 - \mathrm { s i g m o i d } ( g ) ) \cdot \mathbf { M } , } \end{array}
69
+ $$
70
+
71
+ where $\mathbf { Q } , \mathbf { K } , \mathbf { V } , \mathbf { A } , \mathbf { M } \in \mathbb { R } ^ { | x | \times \mathrm { d } }$ , $\mathrm { K }$ is the number of retrieved attention key-value pairs in cached memory for each token, and $g$ is a trainable head-wise gating vector. The hidden state output from previous layer $\mathbf { H } ^ { ( l - 1 ) }$ is linearly projected into attention queries, keys, and values $\mathbf { Q } , \mathbf { K } , \mathbf { V }$ separately via three matrices $W ^ { Q } , W ^ { K } , \bar { W } ^ { V } \in \mathbb { R } ^ { \mathrm { d } \times \mathrm { d } }$ . It is worth noting that the retrieved attention key-value pairs in cached memory are distinct to each token.
72
+
73
+ # 3 Experiments
74
+
75
+ We evaluate our proposed LONGMEM model on different tasks that require long-context modeling: a) long-text language modeling and language understanding when loading the past long-context into cached memory; b) infinite-length in-context learning when loading a large number of demonstration examples into cached memory.
76
+
77
+ ![](images/14da8024824c325b74cd1423e98cb487ba217111ca406b50973d6930b171469c.jpg)
78
+ Figure 3: Batchfying the large text corpora into batches to ensure that each consecutive segments within each document is distributed in consecutive batches.
79
+
80
+ # 3.1 Training Setup
81
+
82
+ Batchfying the training corpora. The conventional batchyfing process for large corpora truncates the whole corpora into consecutive fix-length text segments without padding and shuffles all segments to construct mini-batches $[ \mathrm { R W C ^ { + } } 1 9 ]$ . In contrast, LONGMEM must disable global shuffling and ensure the global causality at the segment level. Firstly, we divide all long documents in training corpora into batch-size number of document groups with equivalent length and then perform a document-level shuffling within each group. Then, we concatenate shuffled documents within one group and truncate them into ordered segments. In order to ensure that two consecutive segments of one long document are distributed in two consecutive input batches after batchfying, we select one segment from batch-size number of document groups with the same inner-group index. Thus a mini-batch with batch-size number of segments are constructed from exactly the batch-size number of document groups. In this way, as the training iteration steps, the cached attention key-value pairs in the memory bank are previous context of current inputs within the same document. The batchfying process is illustrated in Figure 3.
83
+
84
+ Training Corpus, Backbone LLM and Hyperparameter. We sample a subset of the Pile $[ \mathrm { G B B ^ { + } } 2 0 ]$ as the training corpus, including BookCorpus2, Books3, OpenWebText2, Stack Exchange, Wikipedia, Gutenberg (PG-19), NIH ExPorter, and Pile-CC datasets. We reproduce GPT- $^ { . 2 ^ { * } }$ (407M-params) as the pre-trained backbone LLM with Alibi [PSL21] position embedding because original GPT$2 \left[ \mathrm { R W } \bar { \mathrm { C } } ^ { + } 1 9 \right]$ adopts absolute position embedding, which is found to perform poorly to enable LLM to learn long-distance dependencies $\mathrm { [ D Y Y ^ { + } 1 9 ] }$ . The backbone LLM holds a $L ^ { \prime } = 2 4 , H = 1 6 , d = 6 4$ architecture. The SideNet holds a $L = 1 2 , H = 1 6 , d = 6 4$ architecture. The training for memoryaugmented adaptation iterates on 26B tokens, with a global 256 batch-size and 1024 sequence length. The chunk-size $c s z$ is 4 tokens and the memory size $M$ is $6 5 \mathrm { k }$ key-value pairs of tokens. For each token, we retrieve $K { = } 6 4$ attention key-value pairs for augmentation, which are $K / c s z { = } 1 6$ text chunks. The memory-augmentation layer is the 9-th layer of SideNet. The attention keys and values from 18-th layer of backbone LLM is cached into memory and used for future retrieval. Other training details are presented in Appendix C.
85
+
86
+ Memory Retrieval Module. The fixed memory-size of cached memory bank in one GPU is 65536 key-value pairs of tokens. We enable each GPU to construct and update their own memory retrieval module for efficiency. For the implementation of the efficient token-to-chunk retrieval, we use the faiss [JDJ21] toolkit to construct an exact-search index on GPU to store the mean-pooled attention keys of text chunks and perform efficient retrieval. The faiss index maintains a fixed $M / c s z$ keys and provides the efficient exact search w.r.t. inner product. The retrieval takes about 15ms per 1k tokens, which is $55 \%$ timecost of backbone LLM forwarding pass. We can easily adapt the exact search index to approximate search index to gain more retrieval efficiency.
87
+
88
+ Baselines. In addition to the baseline of our pre-trained GPT- $^ { 2 ^ { * } }$ variant, we consider Memorizing Transformer (MemTRM) [WRHS22] and TRIME [ZLC22] as two memory-augmented baselines. The MemTRM model can be easily adapted to tune a pre-trained LLM to use external memory. We insert the KNN-augmented layer proposed by MemTRM as the same 18-th layer in the LLM decoder.
89
+
90
+ <table><tr><td>Dataset Splits</td><td>S2</td><td></td><td>PG-22 S3</td><td>S4</td><td>S5</td><td>ArXiv</td></tr><tr><td>Len. Range</td><td>5K-10K</td><td>10K-100K</td><td>100K-500K</td><td>500K-1M</td><td>&gt;1M</td><td>&lt;60K</td></tr><tr><td>#Documents</td><td>500</td><td>100</td><td>30</td><td>8</td><td>1</td><td>100</td></tr><tr><td>Avg. #tokens</td><td>7.6K</td><td>47.6K</td><td>140K</td><td>640K</td><td>1.2M</td><td>15.4K</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
91
+
92
+ Table 1: Dataset Statistics of five splits of PG-22 based on length range and ArXiv.
93
+
94
+ To adapt TRIME for our experiments, we replace the batchfying function and loss function of training GPT- $^ { 2 ^ { * } }$ with those proposed by TRIME, which enables a memory-augmented adaptation tuning method for LLMs. The two reproduced baselines are trained for the same number of tokens under the same hyperparameter setting as LONGMEM.
95
+
96
+ # 3.2 Long-Context Language Modeling
97
+
98
+ The long-context language modeling can potentially benefit from the augmented memory of past longcontexts. The knowledge stored in retrieved attention key-values can provide valuable background and contextual information, helping models perform better in long-context language modeling. For instance, when trying to model a long-text book, acquiring knowledge from previous background and character relationships can be helpful in modeling the subsequent stories.
99
+
100
+ Evaluation Setting. We first compare LONGMEM and baselines on three long-context modeling datasets, Project Gutenberg 2020-2022, ArXiv, and ChapterBreak. The majority of included books or papers in these datasets have the length of at least 16k tokens. All listed datasets are evaluated in a zero-shot manner without any task-specific tuning. The detailed evaluation settings on the three datasets are as follows:
101
+
102
+ • Project Gutenberg 2020-2022 Language Modeling Dataset. We crawled and cleaned the books published between 2020 and 2022 under Project Gutenberg Library1 to build up a completely new long-text modeling dataset, named PG-22. It is significantly different from our training subset PG-19 in terms of domains and writing styles, because books in PG-19 [RPJL19] are published before 1919. We provide different validation splits of PG-22 based on length range, and the data statistics are presented in Table 1.
103
+
104
+ • ArXiv Dataset. The ArXiv dataset includes papers in the areas of Math, Computer Science, and Physics. We select a validation split of ArXiv paper subset in the Pile corpus $[ \mathrm { G B B ^ { + } } 2 0 ]$ . The ArXiv subset of Pile is excluded from our training and serves an out-of-distribution dataset. We report the token-level language modeling perplexity on the long-context language modeling benchmarks of PG-22 and ArXiv.
105
+
106
+ • ChapterBreak Benchmark. ChapterBreak [STI22] is a challenging suffix identification dataset that requires LLMs to distinguish the beginning of the ground-truth next chapter from a set of hard negative segments sampled from the same book, given the long context of previous chapters. ChapterBreak requires processing global long-context to comprehend and identify the correct suffix. [STI22] demonstrated that even state-of-the-art $\mathbf { X }$ -formers for long-text processing fail to effectively leverage long-range context to perform well on ChapterBreak. ChapterBreak has two subsets, the PG-19 subset and the Archive of Our Own (AO3) subset. As the PG-19 corpus has been included in the pre-training corpus of LONGMEM, it cannot be further used for evaluation. Thus, we select AO3 subset, which contains fan-fictions extracted from AO3. ChapterBreak provides 8 splits based on the prefix length from $0 . 5 \mathrm { k }$ to $^ \mathrm { 8 k }$ tokens to fit the length limit of different models. The splits of 4k, 6k, and $^ \mathrm { 8 k }$ prefix are selected for evaluation. For LLMs that cannot process over 4k tokens, we abandon the front prefix to fulfill the maximum input length of LLMs. For memory-augmented models (MemTRM and LONGMEM), we load the given $4 \mathrm { k } / 6 \mathrm { k } / 8 \mathrm { k }$ prefix contexts into the cached memory and then do the scoring. we use the perplexity as the scorer for each candidate suffix segment in a zero-shot manner. Then the suffix segment with lower perplexity is selected as the label. The suffix identification accuracy is used as the evaluation metric.
107
+
108
+ Results. The main results on evaluated long-context datasets are summarized in Table 2. The proposed LONGMEM model significantly outperforms all considered baselines on long-text language modeling datasets, with improvements of 1.38 to 1.62 perplexity on different length splits of $P G \mathrm { - } 2 2$ , and 1.0 on ARXIV datasets. Surprisingly, the proposed method achieves the state-of-the-art performance of $40 . 5 \%$ accuracy on ChapterBreakAO3 suffix identification benchmark and outperforms both the strong long-context transformers and GPT-3 with $3 1 3 \mathrm { x }$ larger parameters. The substantial improvements on these datasets demonstrate that LONGMEM can comprehend past long-context in cached memory well for predicting future inputs.
109
+
110
+ Table 2: Evaluation results on long-context language modeling datasets. We report token-level perplexity (PPL) (lower the better) on all datasets.
111
+
112
+ <table><tr><td rowspan="2">Model</td><td rowspan="2">In-Context Len.</td><td rowspan="2">In-Memory Len.</td><td colspan="5">PG-22</td><td rowspan="2">ArXiv</td></tr><tr><td>5K-10K</td><td>10K-100K</td><td>100K-500K</td><td>500K-1M</td><td>&gt;1M</td></tr><tr><td>GPT-2*</td><td>1k</td><td>N/A</td><td>22.78</td><td>24.39</td><td>24.12</td><td>24.97</td><td>18.07</td><td>11.05</td></tr><tr><td>MemTRM</td><td>1k</td><td>65K</td><td>21.77</td><td>23.56</td><td>23.23</td><td>24.16</td><td>17.39</td><td>10.81</td></tr><tr><td>TRIME</td><td>1k</td><td>65K</td><td>22.21</td><td>23.50</td><td>23.74</td><td>24.32</td><td>17.80</td><td>10.95</td></tr><tr><td>LONGMEM</td><td>1k</td><td>65K</td><td>21.29</td><td>23.01</td><td>22.55</td><td>23.35</td><td>16.71</td><td>10.05</td></tr></table>
113
+
114
+ Table 3: Zero-shot Suffix Identification Accuracy on AO3 subset of ChapterBreak. Baselines marked with † are directly cited from [STI22]. The MemTRM and LONGMEM loads the given $4 \mathrm { k } / 6 \mathrm { k } / 8 \mathrm { k }$ prefix contexts into cached memory, while the input length to local context is still 1k tokens.
115
+
116
+ <table><tr><td rowspan="2">Model</td><td rowspan="2">#Params</td><td rowspan="2">In-Context Len.</td><td rowspan="2">In-Memory Len.</td><td colspan="3">ChapterBreakao3</td></tr><tr><td>ctx-4k</td><td>ctx-6k</td><td>ctx-8k</td></tr><tr><td>GPT-2-XLt [RWC+19]</td><td>1.5B</td><td>1K</td><td>N/A</td><td>24%</td><td>24%</td><td>24%</td></tr><tr><td>GPT-3† [BMR+20]</td><td>175B</td><td>2K</td><td>N/A</td><td>28%</td><td>28%</td><td>28%</td></tr><tr><td>LocalTRM+ [RSVG21]</td><td>516M</td><td>8K</td><td>N/A</td><td>24%</td><td>24%</td><td>24%</td></tr><tr><td>RoutTRM+ [RSVG21]</td><td>490M</td><td>8K</td><td>N/A</td><td>25%</td><td>24%</td><td>24%</td></tr><tr><td>Bigbirdt [ZGD+20]</td><td>128M</td><td>4K</td><td>N/A</td><td>26%</td><td>26%</td><td>26%</td></tr><tr><td>GPT-2*</td><td>407M</td><td>1K</td><td>N/A</td><td>18.4%</td><td>18.4%</td><td>18.4%</td></tr><tr><td>MemTRM</td><td>407M</td><td>1K</td><td>8</td><td>28.3%</td><td>28.7%</td><td>28.7%</td></tr><tr><td>LONGMEM</td><td>558M</td><td>1K</td><td>8</td><td>37.7%</td><td>39.4%</td><td>40.5%</td></tr></table>
117
+
118
+ # 3.3 Memory-Augmented In-Context Learning
119
+
120
+ LLMs have the emerging capability of in-context learning (ICL) via learning knowledge nonparametrically from few-shot demonstration examples in the local context. However, conventional in-context learning is heavily restricted by input context length, rendering it ineffective to absorb supervision from sufficient demonstration examples in the training set. With the proposed unlimited-length memory augmentation, LONGMEM can overcome the limitation of the number of demonstration examples in the local context and even attend on the whole training set by loading it into the cached memory. In this way, LONGMEM generalizes the conventional few-shot in-context learning to memory-augmented in-context learning with thousands of auxiliary demonstration examples.
121
+
122
+ Evaluation Setting. Here, we evaluate the in-context learning capability of baselines and the proposed LONGMEM model on five NLU datasets, SST-2 $[ \mathrm { S P W ^ { + } } 1 \bar { 3 } ]$ , MPQA [WWC05], MR $[ \mathrm { A } \mathrm { \bar { B } } \mathrm { K } ^ { + } 0 7 ]$ , Subj [PL04] and SST-5 $[ \mathrm { S P W ^ { + } } 1 3 ]$ . We evaluate models on two few-shot settings, 4-shot and 20- shot. The 4-shot case is the data-insufficient scenario, while the 20-shot demonstrations can almost fulfill the 1k input length and provide sufficient contextual self-supervisions. We transform the $\mathbf { k }$ -shot examples to semantically meaningful demonstration examples via fixed text template, i.e., $d _ { i } = "$ "Review: $x _ { i }$ Sentiment: $y _ { i } " , \forall \{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { k } \in { \mathcal { D } } _ { \operatorname { t r a i n } }$ for sentiment analysis tasks. Additionally, we evaluate the 3-shot ICL on question-answering using SQuAD [RZLL16] under an open-ended generation setting. The details of all prompt templates are presented in Appendix D. Then we concatenate the demonstration examples with newlines to delimit them. The prediction label is directly generated using greedy decoding given the demonstration examples and test cases in context. The prediction accuracy is used as the evaluation metric. We report the mean and standard deviation of 6 runs with different random seeds to assess the randomness in selecting $\mathbf { k }$ -shot demonstration examples. As mentioned previously, the chunk size controls the granularity of retrieved text chunks. Since the considered NLU datasets require more fine-grained labels from cached memory, we perform a hyperparameter selection on the validation set of SST-2, and the best chunk-size 2 is used to report the results for MemTRM, TRIME and our model.
123
+
124
+ Table 5: Accuracy $[ \% ]$ of 4-shot and 20-shot ICL on 5 NLU tasks (SST-2, mr, subj, SST-5, mpqa). We sample 2000 extra demonstration examples and load them into cached memory. The subscript is the standard deviation across 6 runs. Avg. refers to the average accuracy on 5 datasets.
125
+
126
+ <table><tr><td>Model</td><td>In-Context #Demons.</td><td>In-Memory #Demons.</td><td>SST-2 ACC↑</td><td>MR ACC↑</td><td>Subj ACC↑</td><td>SST-5 ACC↑</td><td>MPQA ACC↑</td><td>Avg.</td></tr><tr><td>Majority</td><td>N/A</td><td>N/A</td><td>50.9</td><td>50.0</td><td>50.0</td><td>20.0</td><td>50.0</td><td>44.2</td></tr><tr><td>GPT-2*</td><td>4</td><td>N/A</td><td>68.311.6</td><td>64.712.5</td><td>51.94.2</td><td>31.44.4</td><td>61.511.8</td><td>55.6</td></tr><tr><td>MemTRM</td><td>4</td><td>2000</td><td>67.512.4</td><td>64.611.3</td><td>53.26.0</td><td>29.64.4</td><td>63.012.1</td><td>55.6</td></tr><tr><td>TRIME</td><td>4</td><td>2000</td><td>69.514.5</td><td>63.89.8</td><td>51.51.5</td><td>31.86.7</td><td>63.612.9</td><td>56.0</td></tr><tr><td>LONGMEM</td><td>4</td><td>2000</td><td>71.814.0</td><td>65.111.0</td><td>53.83.7</td><td>36.06.8</td><td>65.412.8</td><td>58.4</td></tr><tr><td>GPT-2*</td><td>20</td><td>N/A</td><td>68.211.5</td><td>63.45.2</td><td>57.610.2</td><td>33.66.0</td><td>70.87.6</td><td>58.7</td></tr><tr><td>MemTRM</td><td>20</td><td>2000</td><td>65.19.6</td><td>65.19.3</td><td>58.210.6</td><td>31.96.3</td><td>72.77.4</td><td>58.6</td></tr><tr><td>TRIME</td><td>20</td><td>2000</td><td>74.313.9</td><td>71.52.5</td><td>57.511.4</td><td>33.04.6</td><td>69.87.8</td><td>61.1</td></tr><tr><td>LONGMEM</td><td>20</td><td>2000</td><td>78.014.1</td><td>78.63.3</td><td>65.68.5</td><td>36.57.5</td><td>74.67.3</td><td>66.7</td></tr></table>
127
+
128
+ Results. The results on in-context learning are summarized in Table 5 and Table 4. LONGMEM achieves remarkable improvements on all NLU tasks under the 20-shot sufficient in-context setting, with $+ 5 . 6$ average scores increase over pretrained GPT- $^ { 2 ^ { * } }$ , MemTRM, and TRIME.
129
+
130
+ Meanwhile, LONGMEM also brings performance improvements on the 4-shot case. Additionally, LONGMEM improves the in-context learning capabilities of LLMs on open-ended generation tasks, with $+ 4 . 5$ EM score increase on SQuAD. The results indicate that having more demonstration examples loaded in cached memory can provide additional contextual cues to assist in-context learning. LONGMEM can utilize task-relevant knowledge from both local contextual demonstrations and in-memory augmented demonstrations, thereby achieving superior incontext learning capabilities.
131
+
132
+ <table><tr><td>Model</td><td>EM</td><td>F1</td></tr><tr><td>GPT-2*</td><td>22.282.3</td><td>30.782.0</td></tr><tr><td>MemTRM</td><td>22.843.5</td><td>32.652.8</td></tr><tr><td>LONGMEM</td><td>26.772.3</td><td>35.702.0</td></tr></table>
133
+
134
+ Table 4: Exact match (EM) and F1 scores of 3-shot (about 1k tokens) in-context learning on SQuAD. LONGMEM loads 200 extra demonstration examples into cached memory.
135
+
136
+ # 3.4 Ablation Studies
137
+
138
+ So far, we empirically verify the effectiveness and superiority of LONGMEM in utilizing cached memory for long-context modeling, long-context understanding, and many-shot in-context learning. Furthermore, we would like to investigate the extend to which the cached memory contributes to the long-context understanding capability of LONGMEM through an ablation study of removing memory augmentations. Besides, since the design of the cached memory bank involves several hyperparameters, such as memory size $m s z$ and chunk-size $c s z$ , we conduct a series of ablation studies to evaluate the effects of those choices.
139
+
140
+ Effects of Long-Term Memory Augmentation. To evaluate the effects and contributions of memory augmentations, we set the memory-size to 0 and maintain the SideNet parameters during inference. The results of LONGMEM without memory augmentation are shown in Table 6 of Appendix. As expected, without augmented long-term memory, the vanilla model with only backbone LLM and SideNet only gains 59.4 average scores on ICL NLU tasks, which is a 7.3 average accuracy decrease due to the removal of memory augmentation.
141
+
142
+ Effects of Chunk-Size. As analyzed before, the chunk-size $c s z$ controls the granularity of retrieval and thus it may make a difference to tasks with requirements of fine-grained retrieval. We perform an ablation study on the effects of various chunk-size choices $c s z \in \bar { \{ 2 , 4 , 8 \} }$ for in-context learning and the results are presented in 4(a). The chunk size of 2 yields the best performance on in-context learning tasks on five NLU datasets, which is consistent with the property of NLU tasks with the requirement of fine-grained retrieval and fusion towards classification label tokens.
143
+
144
+ Effects of Memory Size. The memory size (msz) controls the capacity of the memory bank. In general, the memory size should be compatible with the average length of documents or contexts, i.e., a set of books with average 16k tokens should deploy the memory size of 16k tokens in cached memory. The training $m s z$ of 65 tokens is excessive for downstream tasks such as ChapterBreak as the whole prefix context length does not exceed $6 5 \mathrm { k }$ tokens. Thus, we perform an ablation study on the effects of memory size $m s z \in \{ 8 k , 1 6 k , 3 2 k , 6 5 k \}$ during the inference stage on the PG-22 language modeling datasets and the results are shown in 4(b). To model the books with lengths of $8 \mathrm { k } { - } 5 0 \mathrm { k }$ , the smaller memory size $1 6 k$ which is consistent with the average length of target books yields the best perplexity.
145
+
146
+ ![](images/de4bcd827ba3f0d14048dea90d518ae335fe99f3a1ab8e426f36f59efb7a7395.jpg)
147
+ Figure 4: (a) Accuracy on 5 NLU datasets given different chunk size during inference; (b) ∆Perplexity on 4 splits of PG-22 given different memory size during inference, in which the perplexity when $\scriptstyle { m s z = 6 5 \mathrm { k } }$ is used as baseline.
148
+
149
+ # 4 Related Work
150
+
151
+ Large Language Models. Large Language Models, i.e., GPT-3 $[ \mathrm { B M R } ^ { + } 2 0 ]$ , LLAMA $[ \mathrm { T M S ^ { + } } 2 3 ]$ , GPT-4 [Ope23], significantly revolutionized NLP research and promoted the state-of-the-art of various language understanding, language generation $[ \mathrm { W } Z \mathrm { G } ^ { + } 2 2 ]$ , and even vision-language tasks $[ \mathrm { W D C ^ { + } } 2 2 ]$ . Additionally, enabled by multi-task instruction tuning $[ \mathrm { W B } Z ^ { + } 2 1$ , $\mathrm { O W J ^ { + } } 2 2 ]$ , LLMs exhibit “emergent abilities“ $[ \dot { \mathrm { W } } \mathrm { T B } ^ { + } 2 2 ]$ like mathematical reasoning $[ \mathrm { W } \mathrm { W } \mathrm { S } ^ { + } 2 2 ]$ , code completion $[ \mathbf { C } \mathbf { T } \mathbf { J } ^ { + } 2 1 ]$ , etc.
152
+
153
+ $\mathbf { X }$ -formers. To enable transformers to attend on longer context, many variants of “ $\mathbf { \dot { x } }$ -formers“ are proposed. Transformer-XL $\mathrm { [ D Y Y ^ { + } 1 9 ] }$ proposes to cache attention keys and values of past segment and reuse them in recurrent manner. Recent seminal works of $\mathbf { X }$ -formers, including LinFormer $[ \bar { \mathrm { W } } \mathrm { L K } ^ { + } 2 0 ]$ , LongFormer [BPC20], Routing Transformer [RSVG21], proposed various sparse attention mechanisms for decreasing $O ( n ^ { 2 } )$ complexity to $O ( n \log n )$ or even $O ( n )$ . BigBird $[ Z \mathrm { G D } ^ { + } 2 0 ]$ achieves a $4 \mathrm { k }$ sequence length via attending on a subset of context tokens. Although these $\mathbf { X }$ -formers achieve substantial efficiency improvements, such efficiency gains are not remarkable when modeling sequences that spans book-level length. Moreover, the largest sequence length of these methods is still upper-bounded by 16k tokens, making them invalid in modeling long-sequences at the book or wikipedia-page level (i.e., average 70k tokens for full-length books in PG19 dataset [RPJL19]).
154
+
155
+ Side-Tuning. The method of Side-Tuning $[ Z \mathrm { S } Z ^ { + } 2 0$ , SCB22] is a task-specific tuning method for pre-trained models via training a lightweight side-network that is fused with the fixed pre-trained network via summation. Our method inherits the idea of adopting a side-network but distinguishes the side-tuning method in terms of learning objective and cross-network fusion ways. LONGMEM proposes to augment LLMs with decoupled memory to retrain information from long past inputs without any task-specific tuning. The cross-network residual connections introduced here are novel and distinct from the vanilla summation used in Side-Tuning.
156
+
157
+ # 5 Conclusion
158
+
159
+ In this paper, we propose to augment LLMs with long-term memory for enabling them to memorize long-form context and gain long-form memory. The designed decoupled memory module can cache attention key and value pairs of past inputs for future retrieval and fusion. A decoupled residual SideNet is introduced as the memory retriever and reader, meanwhile the LLM itself is frozen and works as knowledge and memory encoder. Experiments on various long-contextual language modeling datasets demonstrate the effectiveness of our model over other memory-augmentation baselines. The proposed method can also enable in-context learning of LLMs to overcome the limited number of demonstration examples in context, which is constrained by the contextual length, via caching thousands of auxiliary demonstration examples in memory.
160
+
161
+ # Acknowledgement
162
+
163
+ This work is done during the first author’s internship at Microsoft Research. We would like to thank the anonymous reviewers for the helpful comments. We appreciate Yutao Sun and Yaru Hao for helpful suggestions on implementation and evaluation benchmarks. The first author was partly sponsored by the DARPA PTG program (HR001122C0009). Any opinions, findings, conclusions, or recommendations expressed in this paper are those of the authors and do not necessarily reflect the views of funding agencies.
164
+
165
+ # References
166
+
167
+ $[ \mathrm { A B K ^ { + } } 0 7 ]$ Sören Auer, Christian Bizer, Georgi Kobilarov, Jens Lehmann, Richard Cyganiak, and Zachary Ives. Dbpedia: A nucleus for a web of open data. In The semantic web, pages 722–735. Springer, 2007.
168
+ $[ \mathrm { B M H } ^ { + } 2 1 ]$ Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George van den Driessche, Jean-Baptiste Lespiau, Bogdan Damoc, Aidan Clark, Diego de Las Casas, Aurelia Guy, Jacob Menick, Roman Ring, T. W. Hennigan, Saffron Huang, Lorenzo Maggiore, Chris Jones, Albin Cassirer, Andy Brock, Michela Paganini, Geoffrey Irving, Oriol Vinyals, Simon Osindero, Karen Simonyan, Jack W. Rae, Erich Elsen, and L. Sifre. Improving language models by retrieving from trillions of tokens. ArXiv, abs/2112.04426, 2021.
169
+ $[ { \bf B } { \bf M } { \bf R } ^ { + } 2 0 ]$ 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. [BPC20] Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020.
170
+ $[ \mathrm { C T J } ^ { + } 2 1 ]$ ] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
171
+ [DCLT19] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In NAACL, 2019.
172
+ $\mathrm { [ D Y Y ^ { + } 1 9 ] }$ Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019.
173
+ $[ \mathrm { G B B } ^ { + } 2 0 ]$ Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. The pile: An 800gb dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027, 2020. [JDJ21] Jeff Johnson, Matthijs Douze, and Hervé Jégou. Billion-scale similarity search with gpus. IEEE Transactions on Big Data, 7:535–547, 2021. [KB15] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2015.
174
+ $[ \mathrm { L G W } ^ { + } 2 3 ]$ Rui Lv, Junliang Guo, Rui Wang, Xu Tan, Qi Liu, and Tao Qin. N-gram nearest neighbor machine translation. arXiv preprint arXiv:2301.12866, 2023.
175
+ $[ \mathrm { L O G ^ { + } } 1 9 ]$ Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. RoBERTa: A robustly optimized bert pretraining approach. ArXiv, abs/1907.11692, 2019. [Ope23] OpenAI. Gpt-4. https://openai.com/research/gpt-4, 2023. Accessed on March 14, 2023.
176
+ $[ \mathrm { O W J } ^ { + } 2 2 ]$ Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730–27744, 2022. [PL04] Bo Pang and Lillian Lee. A sentimental education: Sentiment analysis using subjectivity summarization based on minimum cuts. arXiv preprint cs/0409058, 2004. [PSL21] Ofir Press, Noah A Smith, and Mike Lewis. Train short, test long: Attention with linear biases enables input length extrapolation. arXiv preprint arXiv:2108.12409, 2021.
177
+ [RNSS18] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding with unsupervised learning. 2018.
178
+ [RPJL19] Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, and Timothy P Lillicrap. Compressive transformers for long-range sequence modelling. arXiv preprint arXiv:1911.05507, 2019.
179
+ $[ \mathrm { R S R } ^ { + } 2 0 ]$ Colin Raffel, Noam M. 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, abs/1910.10683, 2020.
180
+ [RSVG21] Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. Transactions of the Association for Computational Linguistics, 9:53–68, 2021.
181
+ $[ \mathrm { R W C ^ { + } } 1 9 ]$ Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. 2019.
182
+ [RZLL16] Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: $1 0 0 { , } 0 0 0 { + }$ Questions for Machine Comprehension of Text. arXiv e-prints, page arXiv:1606.05250, 2016. [SCB22] Yi-Lin Sung, Jaemin Cho, and Mohit Bansal. Lst: Ladder side-tuning for parameter and memory efficient transfer learning. arXiv preprint arXiv:2206.06522, 2022.
183
+ $[ \mathrm { S P W ^ { + } } 1 3 ]$ Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew Y Ng, and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pages 1631–1642, 2013. [STI22] Simeng Sun, Katherine Thai, and Mohit Iyyer. Chapterbreak: A challenge dataset for long-range language models. arXiv preprint arXiv:2204.10878, 2022.
184
+ $\mathrm { [ T M S ^ { + } } 2 3 $ ] Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023.
185
+ $[ \mathrm { V S P ^ { + } 1 7 } ]$ Ashish Vaswani, Noam M. Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, 2017.
186
+ $[ \mathrm { W B Z ^ { + } } 2 1 ]$ Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M Dai, and Quoc V Le. Finetuned language models are zero-shot learners. In International Conference on Learning Representations, 2021.
187
+ $[ \mathrm { W D C ^ { + } } 2 2 ]$ Weizhi Wang, Li Dong, Hao Cheng, Haoyu Song, Xiaodong Liu, Xifeng Yan, Jianfeng Gao, and Furu Wei. Visually-augmented language modeling. arXiv preprint arXiv:2205.10178, 2022.
188
+ $[ \mathrm { W L K ^ { + } } 2 0 ]$ Sinong Wang, Belinda Z Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020.
189
+ [WRHS22] Yuhuai Wu, Markus N. Rabe, DeLesley S. Hutchins, and Christian Szegedy. Memorizing transformers. ArXiv, abs/2203.08913, 2022.
190
+ $[ \mathrm { W T B } ^ { + } 2 2 ]$ Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. Emergent abilities of large language models. arXiv preprint arXiv:2206.07682, 2022.
191
+ [WWC05] Janyce Wiebe, Theresa Wilson, and Claire Cardie. Annotating expressions of opinions and emotions in language. Language resources and evaluation, 39(2):165–210, 2005.
192
+ $[ \mathrm { W } \mathrm { W } \mathrm { S } ^ { + } 2 2 ]$ Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903, 2022.
193
+ $[ \mathrm { W } Z \mathrm { G } ^ { + } 2 2 ]$ Weizhi Wang, Zhirui Zhang, Junliang Guo, Yinpei Dai, Boxing Chen, and Weihua Luo. Taskoriented dialogue system as natural language generation. In Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 2698–2703, 2022.
194
+ $[ \mathrm { Y } \mathrm { D } \mathrm { Y } ^ { + } 1 9 ]$ Zhilin Yang, Zihang Dai, Yiming Yang, Jaime G. Carbonell, Ruslan Salakhutdinov, and Quoc V. Le. XLNet: Generalized autoregressive pretraining for language understanding. In NeurIPS, 2019.
195
+ $[ Z \mathrm { G D } ^ { + } 2 0 ]$ Manzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. Big bird: Transformers for longer sequences. Advances in neural information processing systems, 33:17283–17297, 2020. [ZLC22] Zexuan Zhong, Tao Lei, and Danqi Chen. Training language models with memory augmentation. arXiv preprint arXiv:2205.12674, 2022.
196
+ $[ Z \mathbf { S } Z ^ { + } 2 0 ]$ Jeffrey O Zhang, Alexander Sax, Amir Zamir, Leonidas Guibas, and Jitendra Malik. Side-tuning: a baseline for network adaptation via additive side networks. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part III 16, pages 698–714. Springer, 2020.
197
+
198
+ A Ablation Study on the Effect of Memory Augmentation
199
+
200
+ <table><tr><td>Model</td><td>In-Context #Demons.</td><td>In-Memory #Demons.</td><td>SST-2 ACC↑</td><td>MR ACC↑</td><td>Subj ACC↑</td><td>SST-5 ACC↑</td><td>MPQA ACC↑</td><td>Avg.</td></tr><tr><td>Majority</td><td>N/A</td><td>N/A</td><td>50.9</td><td>50.0</td><td>50.0</td><td>20.0</td><td>50.0</td><td>44.2</td></tr><tr><td>GPT-2*</td><td>4</td><td>N/A</td><td>68.311.6</td><td>64.712.5</td><td>51.94.2</td><td>31.44.4</td><td>61.511.8</td><td>55.6</td></tr><tr><td>MemTRM</td><td>4</td><td>2000</td><td>67.512.4</td><td>64.611.3</td><td>53.26.0</td><td>29.64.4</td><td>63.012.1</td><td>55.6</td></tr><tr><td>TRIME</td><td>4</td><td>2000</td><td>69.514.5</td><td>63.89.8</td><td>51.51.5</td><td>31.86.7</td><td>63.612.9</td><td>56.0</td></tr><tr><td>LONGMEM</td><td>4</td><td>2000</td><td>71.814.0</td><td>65.111.0</td><td>53.83.7</td><td>36.06.8</td><td>65.412.8</td><td>58.4</td></tr><tr><td>w/o Memory</td><td>4</td><td>0</td><td>69.412.4</td><td>64.312.1</td><td>53.47.7</td><td>29.05.2</td><td>62.512.3</td><td>55.7</td></tr><tr><td>GPT-2*</td><td>20</td><td>N/A</td><td>68.211.5</td><td>63.45.2</td><td>57.610.2</td><td>33.66.0</td><td>70.87.6</td><td>58.7</td></tr><tr><td>MemTRM</td><td>20</td><td>2000</td><td>65.19.6</td><td>65.19.3</td><td>58.210.6</td><td>31.96.3</td><td>72.77.4</td><td>58.6</td></tr><tr><td>TRIME</td><td>20</td><td>2000</td><td>74.313.9</td><td>71.52.5</td><td>57.511.4</td><td>33.04.6</td><td>69.87.8</td><td>61.1</td></tr><tr><td>LONGMEM</td><td>20</td><td>2000</td><td>78.014.1</td><td>78.63.3</td><td>65.68.5</td><td>36.57.5</td><td>74.67.3</td><td>66.7</td></tr><tr><td>w/o Memory</td><td>20</td><td>0</td><td>70.012.8</td><td>70.86.2</td><td>52.94.6</td><td>30.96.4</td><td>72.57.5</td><td>59.4</td></tr></table>
201
+
202
+ Table 6: Ablation study results on the effect of memory augmentation of 4-shot and 20-shot ICL on 5 NLU tasks (SST-2, mr, subj, SST-5, mpqa). We sample 2000 extra demonstration examples and load them into cached memory. The subscript is the standard deviation across 6 runs. Avg. refers to the average accuracy on 5 datasets. "w/o" is short for "without".
203
+
204
+ # B Inference Efficiency and GPU-Memory Efficiency
205
+
206
+ When the model is required to comprehend long sequences, the proposed method LONGMEM can load the out-of-boundary inputs into the cached memory as previous context. Thus, the memory usage and inference speed can be significantly improved compared with vanilla self-attention-based models. The detailed statistics in terms of the efficiency is presented in Table 7.
207
+
208
+ <table><tr><td>Model</td><td>In-Context Len.</td><td>In-Memory Len.</td><td>Inference Speed (tokens/s)↑</td><td>GPU-Memory Usage (MBs)↓</td></tr><tr><td>GPT-2*</td><td>4k</td><td>N/A</td><td>14666</td><td>20671</td></tr><tr><td>LONGMEM</td><td>1k</td><td>3k</td><td>22638</td><td>13335</td></tr><tr><td>GPT-2*</td><td>8k</td><td>N/A</td><td>8417</td><td>54195</td></tr><tr><td>LONGMEM</td><td>1k</td><td>7k</td><td>21343</td><td>13437</td></tr></table>
209
+
210
+ Table 7: The superiority of our method over fully dense self-attention (GPT- $2 ^ { * }$ ) in terms of inference speed and GPU-memory utilization.
211
+
212
+ # C Training Details
213
+
214
+ The pre-training of reproduced GPT- $^ { 2 ^ { * } }$ iterates on 117B tokens in total, with 512 batch-size and 1024-token fixed segment-length. The Adam optimizer [KB15] is adopted in memory-augmented adaptation training. The pre-training and adaptation are trained on 16 32GB-Tesla-V100 GPUs. Other detailed training hypperparamters and settings are presented in Table 8.
215
+
216
+ <table><tr><td>Hyperparameter</td><td>LONGMEM</td></tr><tr><td colspan="2">Reproduced GPT-2* Backbone LLMHyperparameters</td></tr><tr><td>Parameters</td><td>407M</td></tr><tr><td>Precision</td><td>float16</td></tr><tr><td>Layers Hidden dim.</td><td>24</td></tr><tr><td>Attention heads</td><td>1024</td></tr><tr><td></td><td>16</td></tr><tr><td>Head Dim</td><td>64</td></tr><tr><td>Vocab size</td><td>52k</td></tr><tr><td>Sequence length</td><td>1024</td></tr><tr><td>Position emb.</td><td>Alibi</td></tr><tr><td>Tied embedding</td><td>False</td></tr><tr><td colspan="2">SideNetHyperparameters</td></tr><tr><td>Parameters</td><td>151M</td></tr><tr><td>Precision</td><td>float16</td></tr><tr><td>Layers</td><td>12</td></tr><tr><td>Hidden dim.</td><td>1024</td></tr><tr><td>Attention heads</td><td>16</td></tr><tr><td>Head Dim</td><td>64</td></tr><tr><td>Sequence length</td><td>1024</td></tr><tr><td colspan="2">Memory-Augmented Adaptation Hyperparameters</td></tr><tr><td>Global Batch Size</td><td>256</td></tr><tr><td>Learning rate</td><td>2.0e-4</td></tr><tr><td>Total tokens</td><td>26B</td></tr><tr><td>Warmup tokens</td><td>0</td></tr><tr><td>LR Decay style</td><td>polynomial</td></tr><tr><td>Adam(β1,β2)</td><td>(0.9, 0.98)</td></tr><tr><td>Adam eps</td><td>1e-06</td></tr><tr><td>Weight decay</td><td>0.01</td></tr><tr><td></td><td></td></tr><tr><td>Gradient clipping</td><td>2.0</td></tr></table>
217
+
218
+ Table 8: Memory-Augmented Adaptation and Architectural Hyperparameters.
219
+
220
+ # D Prompting Templates
221
+
222
+ We present all hand-crafted in-context learning prompting templates and labels for 5 NLU datasets and Squad QA dataset in Tabel 9.
223
+
224
+ <table><tr><td>Task</td><td>Prompt</td><td>Labels</td></tr><tr><td>SST-2</td><td>Review: [Sentence] Sentiment: [Label]</td><td>{positive, negative}</td></tr><tr><td>MR</td><td>Review: [Sentence] Sentiment: [Label]</td><td>{positive, negative}</td></tr><tr><td>MPQA</td><td>Review: [Sentence] Sentiment: [Label]</td><td>{positive, negative}</td></tr><tr><td>SST-5</td><td>input: [Sentence] type: [Label]</td><td>{terrible,bad,okay,good,great}</td></tr><tr><td>Subj</td><td>input: [Sentence] type: [Label]</td><td>{objective, subjective}</td></tr><tr><td> Squad</td><td colspan="2">Passage: [Passage]\n Question: [Question] Answer: [Answer]</td></tr></table>
225
+
226
+ Table 9: The hand-crafted prompts used to query the model predictions on the zero-shot evaluation of 5 NLU datasets and one question-answering dataset Squad.
parse/dev/BryMFPQ4L6/BryMFPQ4L6_content_list.json ADDED
@@ -0,0 +1,1100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Augmenting Language Models with Long-Term Memory ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 282,
8
+ 122,
9
+ 714,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Weizhi Wang†, Li Dong‡, Hao Cheng‡, Xiaodong Liu‡, Xifeng $\\mathbf { Y a n } ^ { \\dagger }$ , Jianfeng Gao‡, Furu Wei‡ †University of California, Santa Barbara ‡Microsoft Research weizhiwang@ucsb.edu, {lidong1, chehao, xiaodl}@microsoft.com ",
17
+ "bbox": [
18
+ 240,
19
+ 224,
20
+ 756,
21
+ 285
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 319,
32
+ 535,
33
+ 335
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Existing large language models (LLMs) can only afford fix-sized inputs due to the input length limit, preventing them from utilizing rich long-context information from past inputs. To address this, we propose a framework, Language Models Augmented with Long-Term Memory (LONGMEM), which enables LLMs to memorize long history. We design a novel decoupled network architecture with the original backbone LLM frozen as a memory encoder and an adaptive residual side-network as a memory retriever and reader. Such a decoupled memory design can easily cache and update long-term past contexts for memory retrieval without suffering from memory staleness. Enhanced with memory-augmented adaptation training, LONGMEM can thus memorize long past context and use long-term memory for language modeling. The proposed memory retrieval module can handle unlimited-length context in its memory bank to benefit various downstream tasks. Typically, LONGMEM can enlarge the long-form memory to $6 5 \\mathrm { k }$ tokens and thus cache many-shot extra demonstration examples as long-form memory for in-context learning. Experiments show that our method outperforms strong longcontext models on ChapterBreak, a challenging long-context modeling benchmark, and achieves remarkable improvements on memory-augmented in-context learning over LLMs. The results demonstrate that the proposed method is effective in helping language models to memorize and utilize long-form contents. Our code is open-sourced at https://aka.ms/LongMem. ",
40
+ "bbox": [
41
+ 233,
42
+ 352,
43
+ 764,
44
+ 627
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 654,
55
+ 310,
56
+ 671
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Large language models (LLMs) have revolutionized natural language processing with great successes in advancing the state-of-the-art on various understanding and generation tasks [DCLT19, $\\mathrm { R W C ^ { + } } 1 9$ , $\\mathrm { L O G ^ { + } } 1 9$ , $\\bar { \\mathrm { Y } } \\mathrm { { D Y } ^ { + } 1 9 }$ , $\\mathrm { B M R } ^ { + } 2 0$ , $\\mathrm { R S R } ^ { + } 2 0 ]$ . Most LLMs benefit from self-supervised training over large corpora via harvesting knowledge from fix-sized local context, showing emergent abilities, e.g., zero-shot prompting $[ \\mathrm { R W C ^ { + } } 1 9 ]$ , in-context learning $[ \\mathrm { B M R } ^ { + } 2 0 ]$ , and Chain-of-Thought (CoT) reasoning $[ \\mathrm { W } \\bar { \\mathrm { W } } \\mathrm { S } ^ { + } \\bar { 2 } 2 ]$ . Nevertheless, the input length limit of existing LLMs prevents them from generalizing to real-world scenarios where the capability of processing long-form information beyond a fix-sized session is critical, e.g., long horizontal planning. ",
63
+ "bbox": [
64
+ 174,
65
+ 685,
66
+ 825,
67
+ 796
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "To address the length limit issue, the most straightforward method is to simply scale up the input context length. For instance, GPT-3 $[ \\mathrm { B M R } ^ { + } 2 0 ]$ increases the input length from 1k tokens in GPT-2 $[ \\mathrm { R W C ^ { + } } 1 9 ]$ to $2 \\mathrm { k }$ tokens, thereby allowing for better capture of long-range dependencies. However, this approach typically incurs computation-intensive training from scratch and the in-context dense attention is still heavily constrained by the quadratic computation complexity of Transformer self-attention $[ \\mathrm { V S P ^ { + } 1 7 } ]$ . Another recent line of work [BPC20, $\\mathrm { Z G D ^ { + } } 2 0 ]$ instead focuses on developing in-context sparse attention to avoid the quadratic cost of self-attention, which still largely requires training from scratch. In contrast, the prominent work, Memorizing Transformer (MemTRM) [WRHS22], approximates in-context sparse attention via dense attention over both incontext tokens and memorized tokens retrieved from a non-differentiable memory for Transformers. Thus, MemTRM scales up the resulting language model to handle up to 65k tokens and achieves substantial perplexity gains in modeling full-length books or long papers. However, MemTRM faces the memory staleness challenge during training due to its coupled memory design, which uses a single model for encoding memory and fusing memory for language modeling. In other words, as the model parameters are updated, cached older representations in memory may have distributional shifts from those from the latest model, thereby limiting the effectiveness of the memory augmentation. ",
74
+ "bbox": [
75
+ 174,
76
+ 803,
77
+ 825,
78
+ 900
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/519066b13ea667f961d700ed9c3ecfb54d07e061e20fe2698ba0a94c8f74e2a8.jpg",
85
+ "image_caption": [
86
+ "Figure 1: Overview of the memory caching and retrieval flow of LONGMEM. The long text sequence is divided into fix-length segments with each previous segment processed through a frozen backbone LLM and the corresponding attention key and value vectors of $m$ -th layer are cached into the memory bank. Given current inputs, the corresponding attention query vectors are used to retrieve the top- $K$ attention key-value pairs from previous segments stored in the memory bank, which will be then fused with local context for language modeling. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 271,
91
+ 92,
92
+ 723,
93
+ 276
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "",
100
+ "bbox": [
101
+ 174,
102
+ 393,
103
+ 825,
104
+ 518
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "In this paper, we present a framework for Language Models Augmented with Long-Term Memory (LONGMEM). This framework enables language models to cache lengthy previous context or knowledge into a non-differentiable memory bank, and then utilize them via a decoupled memory module to mitigate the issue of memory staleness. To achieve decoupled memory, we design a novel residual side-network (SideNet) in conjunction with a frozen backbone LLM. Paired attention keys and values of the previous context are extracted using the frozen backbone LLM, which are subsequently stored in the memory bank. In the memory-augmented layer of SideNet, the generated attention query of the current input is used to retrieve cached key-value pairs of previous contexts from the memory, and the corresponding memory augmentations are then fused into adaptable hidden states via a joint-attention mechanism. Furthermore, newly designed cross-network residual connections between the SideNet and the frozen backbone LLM facilitate better knowledge transfer from the pretrained backbone LLM. Through continuous training of the residual SideNet to retrieve and fuse memory augmentations, the pre-trained LLM can be adapted to effectively leverage longcontextual memory for enhanced modeling. The detailed memory cache, retrieval and fusion process is illustrated in Figure 1. ",
111
+ "bbox": [
112
+ 174,
113
+ 525,
114
+ 825,
115
+ 732
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Our decoupled memory design offers two key advantages. First, our proposed architecture effectively separates the process of encoding previous inputs into memory and the process of memory retrieval and fusion, thanks to the decoupled frozen backbone LLM and SideNet. In this way, the backbone LLM only works as the long-context knowledge encoder, while the residual SideNet works as the memory retriever and reader, which effectively resolves the issue of memory staleness. Second, directly adapting the entire LLM with memory augmentations is computationally inefficient and also prone to catastrophic forgetting. As the backbone LLM is frozen during the efficient memoryaugmented adaptation stage, LONGMEM can not only tap into the pretrained knowledge but also avoid catastrophic forgetting. ",
122
+ "bbox": [
123
+ 174,
124
+ 738,
125
+ 825,
126
+ 863
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "LONGMEM is capable of taking various types of long-form text and knowledge into the memory bank based on downstream tasks. Here, we consider two representative cases, language modeling with full-length book contexts, and memory-augmented in-context learning with thousands of task-relevant demonstration examples. Specifically, we evaluate the effectiveness of the proposed LONGMEM on various long-text language modeling, and memory-augmented in-context learning for natural language understanding (NLU) tasks. Experimental results demonstrate that our model consistently outperforms the strong baselines in terms of long-text modeling and in-context learning abilities. Our method substantially improves LLM’s long-context language modeling capabilities, with a reduction in perplexity of $1 . 3 8 { \\sim } 1 . 6 2$ over different length splits of Gutenberg-2022 corpus. Notably, our model achieves state-of-the-art performance of $4 0 . 5 \\%$ identification accuracy on ChapterBreak, a challenging long-context modeling benchmark, significantly surpassing existing strong $\\mathbf { X }$ -former baselines. Finally, with 2k demonstration examples in memory, LONGMEM shows pronounced improvements in in-context learning on popular NLU tasks, compared with prominent memoryaugmented and non-memory-augmented baselines. ",
133
+ "bbox": [
134
+ 176,
135
+ 869,
136
+ 825,
137
+ 911
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "image",
143
+ "img_path": "images/d5df7c5e3ae9fa9662e6eb6a4ae1aa993ad2d4d732eab292a975c3119339853b.jpg",
144
+ "image_caption": [
145
+ "Figure 2: Overview of LONGMEM architecture. “MemAug” represents Memory-Augmented Layer. "
146
+ ],
147
+ "image_footnote": [],
148
+ "bbox": [
149
+ 176,
150
+ 92,
151
+ 823,
152
+ 270
153
+ ],
154
+ "page_idx": 2
155
+ },
156
+ {
157
+ "type": "text",
158
+ "text": "",
159
+ "bbox": [
160
+ 174,
161
+ 329,
162
+ 825,
163
+ 481
164
+ ],
165
+ "page_idx": 2
166
+ },
167
+ {
168
+ "type": "text",
169
+ "text": "2 Methods ",
170
+ "text_level": 1,
171
+ "bbox": [
172
+ 174,
173
+ 507,
174
+ 277,
175
+ 523
176
+ ],
177
+ "page_idx": 2
178
+ },
179
+ {
180
+ "type": "text",
181
+ "text": "To enable LLMs to harvest relevant information from the past long context in memory, we propose to augment the frozen backbone LLM with a decoupled memory module. To fuse the memory context information, we design a novel lightweight residual SideNet, which can be continually trained in an efficient way. In the following, we first discuss the problem formulation of language modeling with memory augmentations. Then, we formally introduce our efficient residual SideNet for adapting the frozen pretrained LLM to jointly attend over local input context and retrieved memory context. Lastly, we provide our designed processes of how past memory is encoded, stored, recalled and fused for language modeling. ",
182
+ "bbox": [
183
+ 174,
184
+ 542,
185
+ 825,
186
+ 654
187
+ ],
188
+ "page_idx": 2
189
+ },
190
+ {
191
+ "type": "text",
192
+ "text": "2.1 Language Models Augmented with Long-Term Memory ",
193
+ "text_level": 1,
194
+ "bbox": [
195
+ 173,
196
+ 676,
197
+ 601,
198
+ 691
199
+ ],
200
+ "page_idx": 2
201
+ },
202
+ {
203
+ "type": "text",
204
+ "text": "Here, we focus on the high-level problem setup and defer more component details to later sections. Given its wide adoption for pretrained LLMs, our LONGMEM model is built on the Transformer architecture $[ \\mathrm { V S P ^ { + } \\bar { 1 } 7 } ]$ . For LONGMEM, there are three key components: the frozen backbone LLM, SideNet, and Cache Memory Bank. As most existing pretrained LLMs can only take a fix-sized input, only the input segment of a long sequence (e.g., a book) that can fit in the length limit is denoted as the current input as done for most existing autoregressive language models. Those previous segments that can not fit are denoted as previous inputs, which are used for memory augmentations. To tap into the learned knowledge of the pretrained LLM, both previous and current inputs are encoded using the frozen backbone LLM but different representations are extracted. For previous inputs, the key-value pairs from the Transformer self-attention at $m$ -th layer are stored in Cache Memory Bank, whereas the hidden states from each LLM decoder layer for the current inputs are retained and transferred to SideNet. For each current input token, top relevant key-value vector pairs are retrieved as memory augmentations for language modeling. The SideNet module can be viewed as an efficient adaption model that is trained to fuse the current input context and relevant cached previous contexts in the decoupled memory. ",
205
+ "bbox": [
206
+ 174,
207
+ 705,
208
+ 825,
209
+ 911
210
+ ],
211
+ "page_idx": 2
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "Formally, for a fix-sized input text sequence $\\{ { \\bf x } _ { i } \\} _ { i = 1 } ^ { | x | }$ (the current input), LONGMEM first performs a forward pass using the backbone LLM (indicated in blue in Figure 2) without any gradient calculation. The embedding layer of the backbone LLM first encodes the input $\\{ \\mathbf { x } _ { i } \\} _ { i = 1 } ^ { | x | }$ into embedding space and outputs the initial hidden states, $\\mathbf { H } _ { \\mathrm { L L M } } ^ { 0 } \\in \\mathbb { R } ^ { | x | \\times E }$ , where $E$ is the hidden dimension. Then each successive Transformer decoder layer of the frozen backbone LLM computes the new hidden states using the hidden states from the previous layer, Hl′LLM = fθl′LLM ( $\\mathbf { H } _ { \\mathrm { L L M } } ^ { l ^ { \\prime } } = f _ { \\theta _ { \\mathrm { L L M } } ^ { l ^ { \\prime } } } ( \\mathbf { H } _ { \\mathrm { L L M } } ^ { l ^ { \\prime } - 1 } ) , \\forall l ^ { \\prime } \\in$ $[ 1 , L ^ { \\prime } ]$ and $L ^ { \\prime }$ is the total # layers for the backbone LLM. During the forward pass with the backbone LLM for all previous inputs, the key-value pairs used for self-attention at the $m$ -th Transformer decoder layer are stored in Cached Memory Bank (highlighted in orange in upper-left of Figure 2). These pairs are subsequently recalled as memory augmentations for future inputs. ",
216
+ "bbox": [
217
+ 173,
218
+ 88,
219
+ 825,
220
+ 242
221
+ ],
222
+ "page_idx": 3
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "Cached Memory Bank is a head-wise vector queue $\\mathcal { Z } _ { k } , \\mathcal { Z } _ { v } \\in \\mathbb { R } ^ { H \\times M \\times d }$ , which maintains attention key-value pairs of latest $M$ previous inputs $\\widetilde { \\mathbf { K } } , \\widetilde { \\mathbf { V } } \\in \\mathbb { R } ^ { H \\times | x | \\times d }$ , where $H , d$ denotes the number of attention heads and per-head dimension respectively. After memory retrieval and fusion (§2.3), the memory bank removes the key-value pairs of the oldest sequences and appends the current sequences to the cached vector bank. This update mechanism ensures the language modeling causality at the sequences level and enables the memory bank to consistently maintain records of the most recent previous context for the current inputs. ",
227
+ "bbox": [
228
+ 173,
229
+ 247,
230
+ 825,
231
+ 348
232
+ ],
233
+ "page_idx": 3
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "After the forward pass with the backbone LLM, the SideNet module then takes all current input hidden states from the backbone LLM {Hl′LLM}L′l′=1 and the past key-value pairs in the Cached Memory Bank for computing memory-augmented representations. Specifically, our SideNet of LONGMEM consists of $( L - 1 )$ normal Transformer decoder layers and one special memory-augmented decoder layer. For efficient purposes, we mainly consider the case where #layers $L$ of the SideNet is smaller than that of the backbone LLM, i.e., $L < L ^ { \\prime }$ . Our SideNet encodes $\\mathbf { H } ^ { 0 }$ into memory-augmented contextual representation via $( L - 1 )$ normal Transformer decoder layers and a special memory-augmented layer. ",
238
+ "bbox": [
239
+ 173,
240
+ 354,
241
+ 825,
242
+ 467
243
+ ],
244
+ "page_idx": 3
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "The memory-augmented layer is an extension of the vanilla Transformer decoder layer that takes a memory-augmented input, including both top relevant key-value pairs in memory and the hidden states from the current input. Here, the cached key-value pairs are recalled using a token-based memory retrieval module $( \\ S 2 . 3 )$ . For each current input token, the memory retrieval module $s _ { r t } ( : )$ retrieves top- $K$ relevant key-value pairs in the memory bank $\\{ \\widetilde { \\pmb { k } } _ { i j } , \\widetilde { \\pmb { v } } _ { i j } \\} _ { j = 1 } ^ { K } = s _ { r t } ( \\mathbf { x } _ { i } ) .$ . Then SideNet computes the output using the memory-augmented input, $\\mathbf { H } _ { \\mathrm { S i d e } } ^ { m _ { s } } = f _ { \\theta _ { \\mathrm { M e m } } } ( \\mathbf { H } _ { \\mathrm { S i d e } } ^ { m _ { s } - 1 } , \\{ \\{ \\widetilde { \\mathbf { k } } _ { i j } , \\widetilde { \\mathbf { v } } _ { i j } \\} _ { j = 1 } ^ { K } \\} _ { i = 1 } ^ { | x | } )$ , where is the layer index where we inject the memory-augmentation layer. ",
249
+ "bbox": [
250
+ 173,
251
+ 473,
252
+ 825,
253
+ 580
254
+ ],
255
+ "page_idx": 3
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "Finally, the token probability is computed using the last SideNet hidden states $P ( \\mathbf { x } _ { i } | \\mathbf { x } _ { 1 } , \\cdot \\cdot \\cdot , \\mathbf { x } _ { i - 1 } ) =$ softmax $( W \\mathbf { H } ^ { L } )$ , where $W$ is the frozen output embedding weight shared by both the backbone LLM and SideNet. We perform a memory-augmented adaptation training for LONGMEM to utilize the decoupled memory. Following the generative unsupervised pre-training [RNSS18], the training objective of LONGMEM is the standard left-to-right language modeling objective, which maximizes the likelihood of the next token based on the left context: max $\\begin{array} { r } { \\sum _ { x \\in \\mathcal { D } } \\sum _ { i = 1 } ^ { | \\mathbf { x } | } \\log P ( \\mathbf { x } _ { i } | \\mathbf { x } _ { 1 } , \\cdots , \\mathbf { x } _ { i - 1 } ) } \\end{array}$ , where $x$ is a randomly sampled sentence from the pre-training text corpus $\\mathcal { D }$ . ",
260
+ "bbox": [
261
+ 173,
262
+ 585,
263
+ 825,
264
+ 686
265
+ ],
266
+ "page_idx": 3
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "2.2 Residual SideNet ",
271
+ "text_level": 1,
272
+ "bbox": [
273
+ 174,
274
+ 709,
275
+ 331,
276
+ 724
277
+ ],
278
+ "page_idx": 3
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "SideNet Architecture and Initialization. Here, we implement SideNet based on Transformer $[ \\mathrm { V S P ^ { + } 1 7 } ]$ . Specifically, the number of decoder layers $L$ in SideNet is equal to the number of layers $L ^ { \\prime }$ in the backbone LLM divided by a reduction factor (a layer reduction factor of 2 is used throughout this work, i.e., $L ^ { \\prime } = 2 L$ ). The weights of each decoder layer in SideNet are initialized from the corresponding pre-trained decoder layer of the backbone LLM at the same depth: $\\Theta _ { \\mathrm { S i d e } } ^ { l } = \\Theta _ { \\mathrm { L L M } } ^ { 2 l }$ . As illustrated in Figure 2, the SideNet model takes the output of backbone LLM’ser and reuses the language modeling head of the backbone LLM, which remains frozen during the continual adaption stage. Throughout the memory-augmented adaptation stage, all other parameters of SideNet are updated based on the training signal. In this way, the lightweight SideNet adaptation achieves fast convergence with knowledge transferred from pre-trained parameters. ",
283
+ "bbox": [
284
+ 173,
285
+ 737,
286
+ 826,
287
+ 877
288
+ ],
289
+ "page_idx": 3
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "Cross-Network Residual Connections. To tap into knowledge from the pretrained backbone LLM, we utilize our proposed cross-network residual connections to fuse representations from the backbone ",
294
+ "bbox": [
295
+ 174,
296
+ 883,
297
+ 823,
298
+ 911
299
+ ],
300
+ "page_idx": 3
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "LLM into SideNet. Specifically, we add the difference between output hidden states at $2 l$ -th and $( 2 l - 2 )$ -th layers of the backbone LLM as the residual connections to the output hidden states at $l$ -th layer of SideNet. Then, the input to the next $( l + 1 )$ -th layer of SideNet is the sum of the original hidden state forwarded through the previous layer $f _ { \\Theta _ { \\mathrm { S i d e } } ^ { l } } ( \\mathbf { H } _ { \\mathrm { S i d e } } ^ { l - 1 } )$ and the cross-network residual connection of the hidden state difference from the backbone LLM ",
305
+ "bbox": [
306
+ 173,
307
+ 90,
308
+ 825,
309
+ 165
310
+ ],
311
+ "page_idx": 4
312
+ },
313
+ {
314
+ "type": "equation",
315
+ "img_path": "images/040828e0245aa9e8d567ab7b330a216b431fe020694158056838a8164d07d476.jpg",
316
+ "text": "$$\n\\mathbf { H } _ { \\mathrm { S i d e } } ^ { l } = f _ { \\ominus _ { \\mathrm { S i d e } } ^ { l } } ( \\mathbf { H } _ { \\mathrm { S i d e } } ^ { l - 1 } ) + ( \\mathbf { H } _ { \\mathrm { L L M } } ^ { 2 l } - \\mathbf { H } _ { \\mathrm { L L M } } ^ { 2 l - 2 } ) , \\forall l \\in [ 1 , L ] ,\n$$",
317
+ "text_format": "latex",
318
+ "bbox": [
319
+ 318,
320
+ 174,
321
+ 678,
322
+ 196
323
+ ],
324
+ "page_idx": 4
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "where $\\mathbf { H } ^ { 0 }$ is the output of embedding layer. It is worth noting that the residual connections after the self-attention and feed-forward network of a decoder layer $[ \\mathrm { V S P ^ { + } 1 7 } ]$ will be performed as normal in $f _ { \\Theta _ { \\mathrm { S i d e } } ^ { l } } ( \\mathbf { H } _ { \\mathrm { S i d e } } ^ { l - 1 } )$ and parallel to the proposed cross-network residual connections. ",
329
+ "bbox": [
330
+ 174,
331
+ 208,
332
+ 825,
333
+ 253
334
+ ],
335
+ "page_idx": 4
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "2.3 Memory Retrieval and Fusion ",
340
+ "text_level": 1,
341
+ "bbox": [
342
+ 176,
343
+ 276,
344
+ 421,
345
+ 291
346
+ ],
347
+ "page_idx": 4
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "The long-term memory capability of LONGMEM is achieved via a memory-augmentation module for retrieval and fusion. ",
352
+ "bbox": [
353
+ 173,
354
+ 303,
355
+ 823,
356
+ 332
357
+ ],
358
+ "page_idx": 4
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "Token-to-Chunk Memory Retrieval. Instead of performing token-to-token retrieval, we focus on token-to-chunk retrieval for acceleration and integrity. A text-chunk refers to an n-gram structure of chunk-size $c s z$ number of contiguous tokens. The memory bank stores cached key-value pairs at the level of token chunks. We divide the memory bank into $M / c s z$ attention key-value paired chunks and use the mean-pooled vector on the chunk-size dimension to get the key vector for retrieval. Then we retrieve the top- $\\left( K / c s z \\right)$ attention key-value chunks w.r.t the dot product between the attention query of the current input token and the mean-pooled attention key of a candidate chunk. Finally, we squeeze the chunk-size dimension for retrieved key-value paired chunks and flatten them into $K$ key-value pairs at token-level the retrieval index and acceler $\\{ \\widetilde { \\mathbf { K } } _ { j } , \\widetilde { \\mathbf { V } } _ { j } \\} _ { j = 1 } ^ { K }$ . Adopting token-to-chunk retrieval reduces the sizess. Meanwhile, the retrieval accuracy can be further improved, which is also observed in $[ \\mathrm { L G W } ^ { + } 2 3 ]$ and $[ \\mathrm { B M H ^ { + } } 2 1 ]$ . The hyperparameter chunk-size $c s z$ controls the granularity of retrieved contexts, which can be empirically adjusted based on downstream tasks. For instance, in-context learning requires more fine-grained label tokens from demonstration examples cached in memory, where a smaller $c s z$ is helpful. ",
363
+ "bbox": [
364
+ 173,
365
+ 338,
366
+ 826,
367
+ 535
368
+ ],
369
+ "page_idx": 4
370
+ },
371
+ {
372
+ "type": "text",
373
+ "text": "Memory Fusion. The memory fusion is performed within a special memory-augmented layer. As the conventional Transformer decoder layer uses the multi-head self-attention $[ \\bar { \\mathrm { V } } \\mathrm { S P ^ { + } 1 7 } ]$ , we follow [WRHS22] to extend it to a joint-attention mechanism and propose a long-term memory fusion process to enable each token to attend on both local contexts and retrieved memory contexts. With the head-wise hidden state output from previous layer $\\mathbf { H } ^ { l - 1 } \\in \\mathbb { R } ^ { | x | \\times d }$ and the corresponding retrieved attention key-value pairs are $\\{ \\widetilde { \\mathbf { K } } _ { i } , \\widetilde { \\mathbf { V } } _ { i } \\} _ { i = 1 } ^ { | x | } \\in \\mathbb { R } ^ { | x | \\times \\mathrm { K } \\times \\mathrm { d } }$ , the output hidden state for the $l$ -th memory-augmented layer $\\mathbf { H } ^ { l }$ is computed as: ",
374
+ "bbox": [
375
+ 174,
376
+ 540,
377
+ 826,
378
+ 645
379
+ ],
380
+ "page_idx": 4
381
+ },
382
+ {
383
+ "type": "equation",
384
+ "img_path": "images/68b8fc294f00baf996704deea45628f6b7e88f240defb47c1e900ffc3f9c256c.jpg",
385
+ "text": "$$\n\\begin{array} { r l } & { \\mathbf { A } = \\mathrm { s o f t m a x } ( \\frac { \\mathbf { Q } \\mathbf { K } ^ { T } } { \\sqrt { d } } ) \\mathbf { V } , \\mathbf { M } = \\mathrm { C o n c a t } \\{ \\mathrm { s o f t m a x } ( \\frac { \\mathbf { Q } _ { i } \\widetilde { \\mathbf { K } } _ { i } ^ { T } } { \\sqrt { d } } ) \\widetilde { \\mathbf { V } } _ { i } \\} _ { i = 1 } ^ { | x | } , } \\\\ & { \\mathbf { H } ^ { l } = \\mathrm { s i g m o i d } ( g ) \\cdot \\mathbf { A } + ( 1 - \\mathrm { s i g m o i d } ( g ) ) \\cdot \\mathbf { M } , } \\end{array}\n$$",
386
+ "text_format": "latex",
387
+ "bbox": [
388
+ 277,
389
+ 655,
390
+ 717,
391
+ 714
392
+ ],
393
+ "page_idx": 4
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "where $\\mathbf { Q } , \\mathbf { K } , \\mathbf { V } , \\mathbf { A } , \\mathbf { M } \\in \\mathbb { R } ^ { | x | \\times \\mathrm { d } }$ , $\\mathrm { K }$ is the number of retrieved attention key-value pairs in cached memory for each token, and $g$ is a trainable head-wise gating vector. The hidden state output from previous layer $\\mathbf { H } ^ { ( l - 1 ) }$ is linearly projected into attention queries, keys, and values $\\mathbf { Q } , \\mathbf { K } , \\mathbf { V }$ separately via three matrices $W ^ { Q } , W ^ { K } , \\bar { W } ^ { V } \\in \\mathbb { R } ^ { \\mathrm { d } \\times \\mathrm { d } }$ . It is worth noting that the retrieved attention key-value pairs in cached memory are distinct to each token. ",
398
+ "bbox": [
399
+ 173,
400
+ 723,
401
+ 825,
402
+ 796
403
+ ],
404
+ "page_idx": 4
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "3 Experiments ",
409
+ "text_level": 1,
410
+ "bbox": [
411
+ 174,
412
+ 820,
413
+ 312,
414
+ 838
415
+ ],
416
+ "page_idx": 4
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "We evaluate our proposed LONGMEM model on different tasks that require long-context modeling: a) long-text language modeling and language understanding when loading the past long-context into cached memory; b) infinite-length in-context learning when loading a large number of demonstration examples into cached memory. ",
421
+ "bbox": [
422
+ 174,
423
+ 854,
424
+ 825,
425
+ 911
426
+ ],
427
+ "page_idx": 4
428
+ },
429
+ {
430
+ "type": "image",
431
+ "img_path": "images/14da8024824c325b74cd1423e98cb487ba217111ca406b50973d6930b171469c.jpg",
432
+ "image_caption": [
433
+ "Figure 3: Batchfying the large text corpora into batches to ensure that each consecutive segments within each document is distributed in consecutive batches. "
434
+ ],
435
+ "image_footnote": [],
436
+ "bbox": [
437
+ 171,
438
+ 87,
439
+ 812,
440
+ 279
441
+ ],
442
+ "page_idx": 5
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "3.1 Training Setup ",
447
+ "text_level": 1,
448
+ "bbox": [
449
+ 174,
450
+ 338,
451
+ 316,
452
+ 353
453
+ ],
454
+ "page_idx": 5
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "Batchfying the training corpora. The conventional batchyfing process for large corpora truncates the whole corpora into consecutive fix-length text segments without padding and shuffles all segments to construct mini-batches $[ \\mathrm { R W C ^ { + } } 1 9 ]$ . In contrast, LONGMEM must disable global shuffling and ensure the global causality at the segment level. Firstly, we divide all long documents in training corpora into batch-size number of document groups with equivalent length and then perform a document-level shuffling within each group. Then, we concatenate shuffled documents within one group and truncate them into ordered segments. In order to ensure that two consecutive segments of one long document are distributed in two consecutive input batches after batchfying, we select one segment from batch-size number of document groups with the same inner-group index. Thus a mini-batch with batch-size number of segments are constructed from exactly the batch-size number of document groups. In this way, as the training iteration steps, the cached attention key-value pairs in the memory bank are previous context of current inputs within the same document. The batchfying process is illustrated in Figure 3. ",
459
+ "bbox": [
460
+ 173,
461
+ 366,
462
+ 825,
463
+ 546
464
+ ],
465
+ "page_idx": 5
466
+ },
467
+ {
468
+ "type": "text",
469
+ "text": "Training Corpus, Backbone LLM and Hyperparameter. We sample a subset of the Pile $[ \\mathrm { G B B ^ { + } } 2 0 ]$ as the training corpus, including BookCorpus2, Books3, OpenWebText2, Stack Exchange, Wikipedia, Gutenberg (PG-19), NIH ExPorter, and Pile-CC datasets. We reproduce GPT- $^ { . 2 ^ { * } }$ (407M-params) as the pre-trained backbone LLM with Alibi [PSL21] position embedding because original GPT$2 \\left[ \\mathrm { R W } \\bar { \\mathrm { C } } ^ { + } 1 9 \\right]$ adopts absolute position embedding, which is found to perform poorly to enable LLM to learn long-distance dependencies $\\mathrm { [ D Y Y ^ { + } 1 9 ] }$ . The backbone LLM holds a $L ^ { \\prime } = 2 4 , H = 1 6 , d = 6 4$ architecture. The SideNet holds a $L = 1 2 , H = 1 6 , d = 6 4$ architecture. The training for memoryaugmented adaptation iterates on 26B tokens, with a global 256 batch-size and 1024 sequence length. The chunk-size $c s z$ is 4 tokens and the memory size $M$ is $6 5 \\mathrm { k }$ key-value pairs of tokens. For each token, we retrieve $K { = } 6 4$ attention key-value pairs for augmentation, which are $K / c s z { = } 1 6$ text chunks. The memory-augmentation layer is the 9-th layer of SideNet. The attention keys and values from 18-th layer of backbone LLM is cached into memory and used for future retrieval. Other training details are presented in Appendix C. ",
470
+ "bbox": [
471
+ 173,
472
+ 553,
473
+ 826,
474
+ 732
475
+ ],
476
+ "page_idx": 5
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "Memory Retrieval Module. The fixed memory-size of cached memory bank in one GPU is 65536 key-value pairs of tokens. We enable each GPU to construct and update their own memory retrieval module for efficiency. For the implementation of the efficient token-to-chunk retrieval, we use the faiss [JDJ21] toolkit to construct an exact-search index on GPU to store the mean-pooled attention keys of text chunks and perform efficient retrieval. The faiss index maintains a fixed $M / c s z$ keys and provides the efficient exact search w.r.t. inner product. The retrieval takes about 15ms per 1k tokens, which is $55 \\%$ timecost of backbone LLM forwarding pass. We can easily adapt the exact search index to approximate search index to gain more retrieval efficiency. ",
481
+ "bbox": [
482
+ 174,
483
+ 738,
484
+ 825,
485
+ 849
486
+ ],
487
+ "page_idx": 5
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "Baselines. In addition to the baseline of our pre-trained GPT- $^ { 2 ^ { * } }$ variant, we consider Memorizing Transformer (MemTRM) [WRHS22] and TRIME [ZLC22] as two memory-augmented baselines. The MemTRM model can be easily adapted to tune a pre-trained LLM to use external memory. We insert the KNN-augmented layer proposed by MemTRM as the same 18-th layer in the LLM decoder. ",
492
+ "bbox": [
493
+ 176,
494
+ 856,
495
+ 825,
496
+ 911
497
+ ],
498
+ "page_idx": 5
499
+ },
500
+ {
501
+ "type": "table",
502
+ "img_path": "images/767e8ee56de095af38507a92e5f16ee5ec3b11a1b236012a9f8d8e42d178e8ae.jpg",
503
+ "table_caption": [],
504
+ "table_footnote": [
505
+ "Table 1: Dataset Statistics of five splits of PG-22 based on length range and ArXiv. "
506
+ ],
507
+ "table_body": "<table><tr><td>Dataset Splits</td><td>S2</td><td></td><td>PG-22 S3</td><td>S4</td><td>S5</td><td>ArXiv</td></tr><tr><td>Len. Range</td><td>5K-10K</td><td>10K-100K</td><td>100K-500K</td><td>500K-1M</td><td>&gt;1M</td><td>&lt;60K</td></tr><tr><td>#Documents</td><td>500</td><td>100</td><td>30</td><td>8</td><td>1</td><td>100</td></tr><tr><td>Avg. #tokens</td><td>7.6K</td><td>47.6K</td><td>140K</td><td>640K</td><td>1.2M</td><td>15.4K</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
508
+ "bbox": [
509
+ 232,
510
+ 89,
511
+ 764,
512
+ 170
513
+ ],
514
+ "page_idx": 6
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "To adapt TRIME for our experiments, we replace the batchfying function and loss function of training GPT- $^ { 2 ^ { * } }$ with those proposed by TRIME, which enables a memory-augmented adaptation tuning method for LLMs. The two reproduced baselines are trained for the same number of tokens under the same hyperparameter setting as LONGMEM. ",
519
+ "bbox": [
520
+ 174,
521
+ 204,
522
+ 823,
523
+ 260
524
+ ],
525
+ "page_idx": 6
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "3.2 Long-Context Language Modeling ",
530
+ "text_level": 1,
531
+ "bbox": [
532
+ 176,
533
+ 276,
534
+ 454,
535
+ 292
536
+ ],
537
+ "page_idx": 6
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "The long-context language modeling can potentially benefit from the augmented memory of past longcontexts. The knowledge stored in retrieved attention key-values can provide valuable background and contextual information, helping models perform better in long-context language modeling. For instance, when trying to model a long-text book, acquiring knowledge from previous background and character relationships can be helpful in modeling the subsequent stories. ",
542
+ "bbox": [
543
+ 174,
544
+ 303,
545
+ 825,
546
+ 372
547
+ ],
548
+ "page_idx": 6
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "Evaluation Setting. We first compare LONGMEM and baselines on three long-context modeling datasets, Project Gutenberg 2020-2022, ArXiv, and ChapterBreak. The majority of included books or papers in these datasets have the length of at least 16k tokens. All listed datasets are evaluated in a zero-shot manner without any task-specific tuning. The detailed evaluation settings on the three datasets are as follows: ",
553
+ "bbox": [
554
+ 174,
555
+ 377,
556
+ 825,
557
+ 448
558
+ ],
559
+ "page_idx": 6
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "• Project Gutenberg 2020-2022 Language Modeling Dataset. We crawled and cleaned the books published between 2020 and 2022 under Project Gutenberg Library1 to build up a completely new long-text modeling dataset, named PG-22. It is significantly different from our training subset PG-19 in terms of domains and writing styles, because books in PG-19 [RPJL19] are published before 1919. We provide different validation splits of PG-22 based on length range, and the data statistics are presented in Table 1. ",
564
+ "bbox": [
565
+ 174,
566
+ 460,
567
+ 825,
568
+ 544
569
+ ],
570
+ "page_idx": 6
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "• ArXiv Dataset. The ArXiv dataset includes papers in the areas of Math, Computer Science, and Physics. We select a validation split of ArXiv paper subset in the Pile corpus $[ \\mathrm { G B B ^ { + } } 2 0 ]$ . The ArXiv subset of Pile is excluded from our training and serves an out-of-distribution dataset. We report the token-level language modeling perplexity on the long-context language modeling benchmarks of PG-22 and ArXiv. ",
575
+ "bbox": [
576
+ 174,
577
+ 549,
578
+ 825,
579
+ 618
580
+ ],
581
+ "page_idx": 6
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "• ChapterBreak Benchmark. ChapterBreak [STI22] is a challenging suffix identification dataset that requires LLMs to distinguish the beginning of the ground-truth next chapter from a set of hard negative segments sampled from the same book, given the long context of previous chapters. ChapterBreak requires processing global long-context to comprehend and identify the correct suffix. [STI22] demonstrated that even state-of-the-art $\\mathbf { X }$ -formers for long-text processing fail to effectively leverage long-range context to perform well on ChapterBreak. ChapterBreak has two subsets, the PG-19 subset and the Archive of Our Own (AO3) subset. As the PG-19 corpus has been included in the pre-training corpus of LONGMEM, it cannot be further used for evaluation. Thus, we select AO3 subset, which contains fan-fictions extracted from AO3. ChapterBreak provides 8 splits based on the prefix length from $0 . 5 \\mathrm { k }$ to $^ \\mathrm { 8 k }$ tokens to fit the length limit of different models. The splits of 4k, 6k, and $^ \\mathrm { 8 k }$ prefix are selected for evaluation. For LLMs that cannot process over 4k tokens, we abandon the front prefix to fulfill the maximum input length of LLMs. For memory-augmented models (MemTRM and LONGMEM), we load the given $4 \\mathrm { k } / 6 \\mathrm { k } / 8 \\mathrm { k }$ prefix contexts into the cached memory and then do the scoring. we use the perplexity as the scorer for each candidate suffix segment in a zero-shot manner. Then the suffix segment with lower perplexity is selected as the label. The suffix identification accuracy is used as the evaluation metric. ",
586
+ "bbox": [
587
+ 174,
588
+ 623,
589
+ 825,
590
+ 844
591
+ ],
592
+ "page_idx": 6
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "Results. The main results on evaluated long-context datasets are summarized in Table 2. The proposed LONGMEM model significantly outperforms all considered baselines on long-text language modeling datasets, with improvements of 1.38 to 1.62 perplexity on different length splits of $P G \\mathrm { - } 2 2$ , and 1.0 on ARXIV datasets. Surprisingly, the proposed method achieves the state-of-the-art performance of $40 . 5 \\%$ accuracy on ChapterBreakAO3 suffix identification benchmark and outperforms both the strong long-context transformers and GPT-3 with $3 1 3 \\mathrm { x }$ larger parameters. The substantial improvements on these datasets demonstrate that LONGMEM can comprehend past long-context in cached memory well for predicting future inputs. ",
597
+ "bbox": [
598
+ 174,
599
+ 858,
600
+ 821,
601
+ 886
602
+ ],
603
+ "page_idx": 6
604
+ },
605
+ {
606
+ "type": "table",
607
+ "img_path": "images/75325f716cc6ff8805acac774eda3c1185125fae3bedbeb4de3eb20780771ea8.jpg",
608
+ "table_caption": [
609
+ "Table 2: Evaluation results on long-context language modeling datasets. We report token-level perplexity (PPL) (lower the better) on all datasets. "
610
+ ],
611
+ "table_footnote": [],
612
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">In-Context Len.</td><td rowspan=\"2\">In-Memory Len.</td><td colspan=\"5\">PG-22</td><td rowspan=\"2\">ArXiv</td></tr><tr><td>5K-10K</td><td>10K-100K</td><td>100K-500K</td><td>500K-1M</td><td>&gt;1M</td></tr><tr><td>GPT-2*</td><td>1k</td><td>N/A</td><td>22.78</td><td>24.39</td><td>24.12</td><td>24.97</td><td>18.07</td><td>11.05</td></tr><tr><td>MemTRM</td><td>1k</td><td>65K</td><td>21.77</td><td>23.56</td><td>23.23</td><td>24.16</td><td>17.39</td><td>10.81</td></tr><tr><td>TRIME</td><td>1k</td><td>65K</td><td>22.21</td><td>23.50</td><td>23.74</td><td>24.32</td><td>17.80</td><td>10.95</td></tr><tr><td>LONGMEM</td><td>1k</td><td>65K</td><td>21.29</td><td>23.01</td><td>22.55</td><td>23.35</td><td>16.71</td><td>10.05</td></tr></table>",
613
+ "bbox": [
614
+ 176,
615
+ 89,
616
+ 826,
617
+ 181
618
+ ],
619
+ "page_idx": 7
620
+ },
621
+ {
622
+ "type": "table",
623
+ "img_path": "images/638a21e4708aceb0600a8a86c4aec1ab460ff35f70412234d7607cbecd696f63.jpg",
624
+ "table_caption": [
625
+ "Table 3: Zero-shot Suffix Identification Accuracy on AO3 subset of ChapterBreak. Baselines marked with † are directly cited from [STI22]. The MemTRM and LONGMEM loads the given $4 \\mathrm { k } / 6 \\mathrm { k } / 8 \\mathrm { k }$ prefix contexts into cached memory, while the input length to local context is still 1k tokens. "
626
+ ],
627
+ "table_footnote": [],
628
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">#Params</td><td rowspan=\"2\">In-Context Len.</td><td rowspan=\"2\">In-Memory Len.</td><td colspan=\"3\">ChapterBreakao3</td></tr><tr><td>ctx-4k</td><td>ctx-6k</td><td>ctx-8k</td></tr><tr><td>GPT-2-XLt [RWC+19]</td><td>1.5B</td><td>1K</td><td>N/A</td><td>24%</td><td>24%</td><td>24%</td></tr><tr><td>GPT-3† [BMR+20]</td><td>175B</td><td>2K</td><td>N/A</td><td>28%</td><td>28%</td><td>28%</td></tr><tr><td>LocalTRM+ [RSVG21]</td><td>516M</td><td>8K</td><td>N/A</td><td>24%</td><td>24%</td><td>24%</td></tr><tr><td>RoutTRM+ [RSVG21]</td><td>490M</td><td>8K</td><td>N/A</td><td>25%</td><td>24%</td><td>24%</td></tr><tr><td>Bigbirdt [ZGD+20]</td><td>128M</td><td>4K</td><td>N/A</td><td>26%</td><td>26%</td><td>26%</td></tr><tr><td>GPT-2*</td><td>407M</td><td>1K</td><td>N/A</td><td>18.4%</td><td>18.4%</td><td>18.4%</td></tr><tr><td>MemTRM</td><td>407M</td><td>1K</td><td>8</td><td>28.3%</td><td>28.7%</td><td>28.7%</td></tr><tr><td>LONGMEM</td><td>558M</td><td>1K</td><td>8</td><td>37.7%</td><td>39.4%</td><td>40.5%</td></tr></table>",
629
+ "bbox": [
630
+ 215,
631
+ 229,
632
+ 781,
633
+ 386
634
+ ],
635
+ "page_idx": 7
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "",
640
+ "bbox": [
641
+ 174,
642
+ 460,
643
+ 825,
644
+ 545
645
+ ],
646
+ "page_idx": 7
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "3.3 Memory-Augmented In-Context Learning ",
651
+ "text_level": 1,
652
+ "bbox": [
653
+ 174,
654
+ 560,
655
+ 506,
656
+ 577
657
+ ],
658
+ "page_idx": 7
659
+ },
660
+ {
661
+ "type": "text",
662
+ "text": "LLMs have the emerging capability of in-context learning (ICL) via learning knowledge nonparametrically from few-shot demonstration examples in the local context. However, conventional in-context learning is heavily restricted by input context length, rendering it ineffective to absorb supervision from sufficient demonstration examples in the training set. With the proposed unlimited-length memory augmentation, LONGMEM can overcome the limitation of the number of demonstration examples in the local context and even attend on the whole training set by loading it into the cached memory. In this way, LONGMEM generalizes the conventional few-shot in-context learning to memory-augmented in-context learning with thousands of auxiliary demonstration examples. ",
663
+ "bbox": [
664
+ 174,
665
+ 587,
666
+ 825,
667
+ 698
668
+ ],
669
+ "page_idx": 7
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "Evaluation Setting. Here, we evaluate the in-context learning capability of baselines and the proposed LONGMEM model on five NLU datasets, SST-2 $[ \\mathrm { S P W ^ { + } } 1 \\bar { 3 } ]$ , MPQA [WWC05], MR $[ \\mathrm { A } \\mathrm { \\bar { B } } \\mathrm { K } ^ { + } 0 7 ]$ , Subj [PL04] and SST-5 $[ \\mathrm { S P W ^ { + } } 1 3 ]$ . We evaluate models on two few-shot settings, 4-shot and 20- shot. The 4-shot case is the data-insufficient scenario, while the 20-shot demonstrations can almost fulfill the 1k input length and provide sufficient contextual self-supervisions. We transform the $\\mathbf { k }$ -shot examples to semantically meaningful demonstration examples via fixed text template, i.e., $d _ { i } = \"$ \"Review: $x _ { i }$ Sentiment: $y _ { i } \" , \\forall \\{ ( x _ { i } , y _ { i } ) \\} _ { i = 1 } ^ { k } \\in { \\mathcal { D } } _ { \\operatorname { t r a i n } }$ for sentiment analysis tasks. Additionally, we evaluate the 3-shot ICL on question-answering using SQuAD [RZLL16] under an open-ended generation setting. The details of all prompt templates are presented in Appendix D. Then we concatenate the demonstration examples with newlines to delimit them. The prediction label is directly generated using greedy decoding given the demonstration examples and test cases in context. The prediction accuracy is used as the evaluation metric. We report the mean and standard deviation of 6 runs with different random seeds to assess the randomness in selecting $\\mathbf { k }$ -shot demonstration examples. As mentioned previously, the chunk size controls the granularity of retrieved text chunks. Since the considered NLU datasets require more fine-grained labels from cached memory, we perform a hyperparameter selection on the validation set of SST-2, and the best chunk-size 2 is used to report the results for MemTRM, TRIME and our model. ",
674
+ "bbox": [
675
+ 174,
676
+ 705,
677
+ 826,
678
+ 911
679
+ ],
680
+ "page_idx": 7
681
+ },
682
+ {
683
+ "type": "table",
684
+ "img_path": "images/8dd298b8dcafb5a2f53b9a69e4b15a2867b4664b36c02027f248041552035358.jpg",
685
+ "table_caption": [
686
+ "Table 5: Accuracy $[ \\% ]$ of 4-shot and 20-shot ICL on 5 NLU tasks (SST-2, mr, subj, SST-5, mpqa). We sample 2000 extra demonstration examples and load them into cached memory. The subscript is the standard deviation across 6 runs. Avg. refers to the average accuracy on 5 datasets. "
687
+ ],
688
+ "table_footnote": [],
689
+ "table_body": "<table><tr><td>Model</td><td>In-Context #Demons.</td><td>In-Memory #Demons.</td><td>SST-2 ACC↑</td><td>MR ACC↑</td><td>Subj ACC↑</td><td>SST-5 ACC↑</td><td>MPQA ACC↑</td><td>Avg.</td></tr><tr><td>Majority</td><td>N/A</td><td>N/A</td><td>50.9</td><td>50.0</td><td>50.0</td><td>20.0</td><td>50.0</td><td>44.2</td></tr><tr><td>GPT-2*</td><td>4</td><td>N/A</td><td>68.311.6</td><td>64.712.5</td><td>51.94.2</td><td>31.44.4</td><td>61.511.8</td><td>55.6</td></tr><tr><td>MemTRM</td><td>4</td><td>2000</td><td>67.512.4</td><td>64.611.3</td><td>53.26.0</td><td>29.64.4</td><td>63.012.1</td><td>55.6</td></tr><tr><td>TRIME</td><td>4</td><td>2000</td><td>69.514.5</td><td>63.89.8</td><td>51.51.5</td><td>31.86.7</td><td>63.612.9</td><td>56.0</td></tr><tr><td>LONGMEM</td><td>4</td><td>2000</td><td>71.814.0</td><td>65.111.0</td><td>53.83.7</td><td>36.06.8</td><td>65.412.8</td><td>58.4</td></tr><tr><td>GPT-2*</td><td>20</td><td>N/A</td><td>68.211.5</td><td>63.45.2</td><td>57.610.2</td><td>33.66.0</td><td>70.87.6</td><td>58.7</td></tr><tr><td>MemTRM</td><td>20</td><td>2000</td><td>65.19.6</td><td>65.19.3</td><td>58.210.6</td><td>31.96.3</td><td>72.77.4</td><td>58.6</td></tr><tr><td>TRIME</td><td>20</td><td>2000</td><td>74.313.9</td><td>71.52.5</td><td>57.511.4</td><td>33.04.6</td><td>69.87.8</td><td>61.1</td></tr><tr><td>LONGMEM</td><td>20</td><td>2000</td><td>78.014.1</td><td>78.63.3</td><td>65.68.5</td><td>36.57.5</td><td>74.67.3</td><td>66.7</td></tr></table>",
690
+ "bbox": [
691
+ 176,
692
+ 88,
693
+ 823,
694
+ 258
695
+ ],
696
+ "page_idx": 8
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "",
701
+ "bbox": [
702
+ 174,
703
+ 324,
704
+ 821,
705
+ 352
706
+ ],
707
+ "page_idx": 8
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "Results. The results on in-context learning are summarized in Table 5 and Table 4. LONGMEM achieves remarkable improvements on all NLU tasks under the 20-shot sufficient in-context setting, with $+ 5 . 6$ average scores increase over pretrained GPT- $^ { 2 ^ { * } }$ , MemTRM, and TRIME. ",
712
+ "bbox": [
713
+ 173,
714
+ 358,
715
+ 825,
716
+ 400
717
+ ],
718
+ "page_idx": 8
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "Meanwhile, LONGMEM also brings performance improvements on the 4-shot case. Additionally, LONGMEM improves the in-context learning capabilities of LLMs on open-ended generation tasks, with $+ 4 . 5$ EM score increase on SQuAD. The results indicate that having more demonstration examples loaded in cached memory can provide additional contextual cues to assist in-context learning. LONGMEM can utilize task-relevant knowledge from both local contextual demonstrations and in-memory augmented demonstrations, thereby achieving superior incontext learning capabilities. ",
723
+ "bbox": [
724
+ 174,
725
+ 401,
726
+ 553,
727
+ 553
728
+ ],
729
+ "page_idx": 8
730
+ },
731
+ {
732
+ "type": "table",
733
+ "img_path": "images/4a71d68fdc00c4708fa7ad0d1f15298e7d92f93b98dbf38e7b016824f0485b02.jpg",
734
+ "table_caption": [],
735
+ "table_footnote": [
736
+ "Table 4: Exact match (EM) and F1 scores of 3-shot (about 1k tokens) in-context learning on SQuAD. LONGMEM loads 200 extra demonstration examples into cached memory. "
737
+ ],
738
+ "table_body": "<table><tr><td>Model</td><td>EM</td><td>F1</td></tr><tr><td>GPT-2*</td><td>22.282.3</td><td>30.782.0</td></tr><tr><td>MemTRM</td><td>22.843.5</td><td>32.652.8</td></tr><tr><td>LONGMEM</td><td>26.772.3</td><td>35.702.0</td></tr></table>",
739
+ "bbox": [
740
+ 575,
741
+ 416,
742
+ 813,
743
+ 486
744
+ ],
745
+ "page_idx": 8
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "3.4 Ablation Studies ",
750
+ "text_level": 1,
751
+ "bbox": [
752
+ 174,
753
+ 573,
754
+ 328,
755
+ 588
756
+ ],
757
+ "page_idx": 8
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "So far, we empirically verify the effectiveness and superiority of LONGMEM in utilizing cached memory for long-context modeling, long-context understanding, and many-shot in-context learning. Furthermore, we would like to investigate the extend to which the cached memory contributes to the long-context understanding capability of LONGMEM through an ablation study of removing memory augmentations. Besides, since the design of the cached memory bank involves several hyperparameters, such as memory size $m s z$ and chunk-size $c s z$ , we conduct a series of ablation studies to evaluate the effects of those choices. ",
762
+ "bbox": [
763
+ 174,
764
+ 599,
765
+ 825,
766
+ 696
767
+ ],
768
+ "page_idx": 8
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "Effects of Long-Term Memory Augmentation. To evaluate the effects and contributions of memory augmentations, we set the memory-size to 0 and maintain the SideNet parameters during inference. The results of LONGMEM without memory augmentation are shown in Table 6 of Appendix. As expected, without augmented long-term memory, the vanilla model with only backbone LLM and SideNet only gains 59.4 average scores on ICL NLU tasks, which is a 7.3 average accuracy decrease due to the removal of memory augmentation. ",
773
+ "bbox": [
774
+ 174,
775
+ 704,
776
+ 825,
777
+ 787
778
+ ],
779
+ "page_idx": 8
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "Effects of Chunk-Size. As analyzed before, the chunk-size $c s z$ controls the granularity of retrieval and thus it may make a difference to tasks with requirements of fine-grained retrieval. We perform an ablation study on the effects of various chunk-size choices $c s z \\in \\bar { \\{ 2 , 4 , 8 \\} }$ for in-context learning and the results are presented in 4(a). The chunk size of 2 yields the best performance on in-context learning tasks on five NLU datasets, which is consistent with the property of NLU tasks with the requirement of fine-grained retrieval and fusion towards classification label tokens. ",
784
+ "bbox": [
785
+ 174,
786
+ 794,
787
+ 825,
788
+ 877
789
+ ],
790
+ "page_idx": 8
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "Effects of Memory Size. The memory size (msz) controls the capacity of the memory bank. In general, the memory size should be compatible with the average length of documents or contexts, i.e., a set of books with average 16k tokens should deploy the memory size of 16k tokens in cached memory. The training $m s z$ of 65 tokens is excessive for downstream tasks such as ChapterBreak as the whole prefix context length does not exceed $6 5 \\mathrm { k }$ tokens. Thus, we perform an ablation study on the effects of memory size $m s z \\in \\{ 8 k , 1 6 k , 3 2 k , 6 5 k \\}$ during the inference stage on the PG-22 language modeling datasets and the results are shown in 4(b). To model the books with lengths of $8 \\mathrm { k } { - } 5 0 \\mathrm { k }$ , the smaller memory size $1 6 k$ which is consistent with the average length of target books yields the best perplexity. ",
795
+ "bbox": [
796
+ 173,
797
+ 883,
798
+ 821,
799
+ 911
800
+ ],
801
+ "page_idx": 8
802
+ },
803
+ {
804
+ "type": "image",
805
+ "img_path": "images/de4bcd827ba3f0d14048dea90d518ae335fe99f3a1ab8e426f36f59efb7a7395.jpg",
806
+ "image_caption": [
807
+ "Figure 4: (a) Accuracy on 5 NLU datasets given different chunk size during inference; (b) ∆Perplexity on 4 splits of PG-22 given different memory size during inference, in which the perplexity when $\\scriptstyle { m s z = 6 5 \\mathrm { k } }$ is used as baseline. "
808
+ ],
809
+ "image_footnote": [],
810
+ "bbox": [
811
+ 181,
812
+ 98,
813
+ 807,
814
+ 231
815
+ ],
816
+ "page_idx": 9
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "",
821
+ "bbox": [
822
+ 174,
823
+ 285,
824
+ 825,
825
+ 382
826
+ ],
827
+ "page_idx": 9
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "4 Related Work ",
832
+ "text_level": 1,
833
+ "bbox": [
834
+ 174,
835
+ 395,
836
+ 321,
837
+ 411
838
+ ],
839
+ "page_idx": 9
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "Large Language Models. Large Language Models, i.e., GPT-3 $[ \\mathrm { B M R } ^ { + } 2 0 ]$ , LLAMA $[ \\mathrm { T M S ^ { + } } 2 3 ]$ , GPT-4 [Ope23], significantly revolutionized NLP research and promoted the state-of-the-art of various language understanding, language generation $[ \\mathrm { W } Z \\mathrm { G } ^ { + } 2 2 ]$ , and even vision-language tasks $[ \\mathrm { W D C ^ { + } } 2 2 ]$ . Additionally, enabled by multi-task instruction tuning $[ \\mathrm { W B } Z ^ { + } 2 1$ , $\\mathrm { O W J ^ { + } } 2 2 ]$ , LLMs exhibit “emergent abilities“ $[ \\dot { \\mathrm { W } } \\mathrm { T B } ^ { + } 2 2 ]$ like mathematical reasoning $[ \\mathrm { W } \\mathrm { W } \\mathrm { S } ^ { + } 2 2 ]$ , code completion $[ \\mathbf { C } \\mathbf { T } \\mathbf { J } ^ { + } 2 1 ]$ , etc. ",
844
+ "bbox": [
845
+ 174,
846
+ 425,
847
+ 825,
848
+ 496
849
+ ],
850
+ "page_idx": 9
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "$\\mathbf { X }$ -formers. To enable transformers to attend on longer context, many variants of “ $\\mathbf { \\dot { x } }$ -formers“ are proposed. Transformer-XL $\\mathrm { [ D Y Y ^ { + } 1 9 ] }$ proposes to cache attention keys and values of past segment and reuse them in recurrent manner. Recent seminal works of $\\mathbf { X }$ -formers, including LinFormer $[ \\bar { \\mathrm { W } } \\mathrm { L K } ^ { + } 2 0 ]$ , LongFormer [BPC20], Routing Transformer [RSVG21], proposed various sparse attention mechanisms for decreasing $O ( n ^ { 2 } )$ complexity to $O ( n \\log n )$ or even $O ( n )$ . BigBird $[ Z \\mathrm { G D } ^ { + } 2 0 ]$ achieves a $4 \\mathrm { k }$ sequence length via attending on a subset of context tokens. Although these $\\mathbf { X }$ -formers achieve substantial efficiency improvements, such efficiency gains are not remarkable when modeling sequences that spans book-level length. Moreover, the largest sequence length of these methods is still upper-bounded by 16k tokens, making them invalid in modeling long-sequences at the book or wikipedia-page level (i.e., average 70k tokens for full-length books in PG19 dataset [RPJL19]). ",
855
+ "bbox": [
856
+ 173,
857
+ 501,
858
+ 825,
859
+ 640
860
+ ],
861
+ "page_idx": 9
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Side-Tuning. The method of Side-Tuning $[ Z \\mathrm { S } Z ^ { + } 2 0$ , SCB22] is a task-specific tuning method for pre-trained models via training a lightweight side-network that is fused with the fixed pre-trained network via summation. Our method inherits the idea of adopting a side-network but distinguishes the side-tuning method in terms of learning objective and cross-network fusion ways. LONGMEM proposes to augment LLMs with decoupled memory to retrain information from long past inputs without any task-specific tuning. The cross-network residual connections introduced here are novel and distinct from the vanilla summation used in Side-Tuning. ",
866
+ "bbox": [
867
+ 174,
868
+ 646,
869
+ 825,
870
+ 743
871
+ ],
872
+ "page_idx": 9
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "5 Conclusion ",
877
+ "text_level": 1,
878
+ "bbox": [
879
+ 174,
880
+ 756,
881
+ 299,
882
+ 772
883
+ ],
884
+ "page_idx": 9
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "In this paper, we propose to augment LLMs with long-term memory for enabling them to memorize long-form context and gain long-form memory. The designed decoupled memory module can cache attention key and value pairs of past inputs for future retrieval and fusion. A decoupled residual SideNet is introduced as the memory retriever and reader, meanwhile the LLM itself is frozen and works as knowledge and memory encoder. Experiments on various long-contextual language modeling datasets demonstrate the effectiveness of our model over other memory-augmentation baselines. The proposed method can also enable in-context learning of LLMs to overcome the limited number of demonstration examples in context, which is constrained by the contextual length, via caching thousands of auxiliary demonstration examples in memory. ",
889
+ "bbox": [
890
+ 174,
891
+ 786,
892
+ 825,
893
+ 911
894
+ ],
895
+ "page_idx": 9
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "Acknowledgement ",
900
+ "text_level": 1,
901
+ "bbox": [
902
+ 176,
903
+ 89,
904
+ 330,
905
+ 106
906
+ ],
907
+ "page_idx": 10
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "This work is done during the first author’s internship at Microsoft Research. We would like to thank the anonymous reviewers for the helpful comments. We appreciate Yutao Sun and Yaru Hao for helpful suggestions on implementation and evaluation benchmarks. The first author was partly sponsored by the DARPA PTG program (HR001122C0009). Any opinions, findings, conclusions, or recommendations expressed in this paper are those of the authors and do not necessarily reflect the views of funding agencies. ",
912
+ "bbox": [
913
+ 174,
914
+ 121,
915
+ 825,
916
+ 204
917
+ ],
918
+ "page_idx": 10
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "References ",
923
+ "text_level": 1,
924
+ "bbox": [
925
+ 174,
926
+ 223,
927
+ 266,
928
+ 238
929
+ ],
930
+ "page_idx": 10
931
+ },
932
+ {
933
+ "type": "text",
934
+ "text": "$[ \\mathrm { A B K ^ { + } } 0 7 ]$ Sören Auer, Christian Bizer, Georgi Kobilarov, Jens Lehmann, Richard Cyganiak, and Zachary Ives. Dbpedia: A nucleus for a web of open data. In The semantic web, pages 722–735. Springer, 2007. \n$[ \\mathrm { B M H } ^ { + } 2 1 ]$ Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George van den Driessche, Jean-Baptiste Lespiau, Bogdan Damoc, Aidan Clark, Diego de Las Casas, Aurelia Guy, Jacob Menick, Roman Ring, T. W. Hennigan, Saffron Huang, Lorenzo Maggiore, Chris Jones, Albin Cassirer, Andy Brock, Michela Paganini, Geoffrey Irving, Oriol Vinyals, Simon Osindero, Karen Simonyan, Jack W. Rae, Erich Elsen, and L. Sifre. Improving language models by retrieving from trillions of tokens. ArXiv, abs/2112.04426, 2021. \n$[ { \\bf B } { \\bf M } { \\bf R } ^ { + } 2 0 ]$ 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. [BPC20] Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020. \n$[ \\mathrm { C T J } ^ { + } 2 1 ]$ ] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021. \n[DCLT19] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In NAACL, 2019. \n$\\mathrm { [ D Y Y ^ { + } 1 9 ] }$ Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019. \n$[ \\mathrm { G B B } ^ { + } 2 0 ]$ Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. The pile: An 800gb dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027, 2020. [JDJ21] Jeff Johnson, Matthijs Douze, and Hervé Jégou. Billion-scale similarity search with gpus. IEEE Transactions on Big Data, 7:535–547, 2021. [KB15] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2015. \n$[ \\mathrm { L G W } ^ { + } 2 3 ]$ Rui Lv, Junliang Guo, Rui Wang, Xu Tan, Qi Liu, and Tao Qin. N-gram nearest neighbor machine translation. arXiv preprint arXiv:2301.12866, 2023. \n$[ \\mathrm { L O G ^ { + } } 1 9 ]$ Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. RoBERTa: A robustly optimized bert pretraining approach. ArXiv, abs/1907.11692, 2019. [Ope23] OpenAI. Gpt-4. https://openai.com/research/gpt-4, 2023. Accessed on March 14, 2023. \n$[ \\mathrm { O W J } ^ { + } 2 2 ]$ Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730–27744, 2022. [PL04] Bo Pang and Lillian Lee. A sentimental education: Sentiment analysis using subjectivity summarization based on minimum cuts. arXiv preprint cs/0409058, 2004. [PSL21] Ofir Press, Noah A Smith, and Mike Lewis. Train short, test long: Attention with linear biases enables input length extrapolation. arXiv preprint arXiv:2108.12409, 2021. \n[RNSS18] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding with unsupervised learning. 2018. \n[RPJL19] Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, and Timothy P Lillicrap. Compressive transformers for long-range sequence modelling. arXiv preprint arXiv:1911.05507, 2019. \n$[ \\mathrm { R S R } ^ { + } 2 0 ]$ Colin Raffel, Noam M. 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, abs/1910.10683, 2020. \n[RSVG21] Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. Transactions of the Association for Computational Linguistics, 9:53–68, 2021. \n$[ \\mathrm { R W C ^ { + } } 1 9 ]$ Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. 2019. \n[RZLL16] Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: $1 0 0 { , } 0 0 0 { + }$ Questions for Machine Comprehension of Text. arXiv e-prints, page arXiv:1606.05250, 2016. [SCB22] Yi-Lin Sung, Jaemin Cho, and Mohit Bansal. Lst: Ladder side-tuning for parameter and memory efficient transfer learning. arXiv preprint arXiv:2206.06522, 2022. \n$[ \\mathrm { S P W ^ { + } } 1 3 ]$ Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew Y Ng, and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pages 1631–1642, 2013. [STI22] Simeng Sun, Katherine Thai, and Mohit Iyyer. Chapterbreak: A challenge dataset for long-range language models. arXiv preprint arXiv:2204.10878, 2022. \n$\\mathrm { [ T M S ^ { + } } 2 3 $ ] Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023. \n$[ \\mathrm { V S P ^ { + } 1 7 } ]$ Ashish Vaswani, Noam M. Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, 2017. \n$[ \\mathrm { W B Z ^ { + } } 2 1 ]$ Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M Dai, and Quoc V Le. Finetuned language models are zero-shot learners. In International Conference on Learning Representations, 2021. \n$[ \\mathrm { W D C ^ { + } } 2 2 ]$ Weizhi Wang, Li Dong, Hao Cheng, Haoyu Song, Xiaodong Liu, Xifeng Yan, Jianfeng Gao, and Furu Wei. Visually-augmented language modeling. arXiv preprint arXiv:2205.10178, 2022. \n$[ \\mathrm { W L K ^ { + } } 2 0 ]$ Sinong Wang, Belinda Z Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020. \n[WRHS22] Yuhuai Wu, Markus N. Rabe, DeLesley S. Hutchins, and Christian Szegedy. Memorizing transformers. ArXiv, abs/2203.08913, 2022. \n$[ \\mathrm { W T B } ^ { + } 2 2 ]$ Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. Emergent abilities of large language models. arXiv preprint arXiv:2206.07682, 2022. \n[WWC05] Janyce Wiebe, Theresa Wilson, and Claire Cardie. Annotating expressions of opinions and emotions in language. Language resources and evaluation, 39(2):165–210, 2005. \n$[ \\mathrm { W } \\mathrm { W } \\mathrm { S } ^ { + } 2 2 ]$ Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903, 2022. \n$[ \\mathrm { W } Z \\mathrm { G } ^ { + } 2 2 ]$ Weizhi Wang, Zhirui Zhang, Junliang Guo, Yinpei Dai, Boxing Chen, and Weihua Luo. Taskoriented dialogue system as natural language generation. In Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 2698–2703, 2022. \n$[ \\mathrm { Y } \\mathrm { D } \\mathrm { Y } ^ { + } 1 9 ]$ Zhilin Yang, Zihang Dai, Yiming Yang, Jaime G. Carbonell, Ruslan Salakhutdinov, and Quoc V. Le. XLNet: Generalized autoregressive pretraining for language understanding. In NeurIPS, 2019. \n$[ Z \\mathrm { G D } ^ { + } 2 0 ]$ Manzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. Big bird: Transformers for longer sequences. Advances in neural information processing systems, 33:17283–17297, 2020. [ZLC22] Zexuan Zhong, Tao Lei, and Danqi Chen. Training language models with memory augmentation. arXiv preprint arXiv:2205.12674, 2022. \n$[ Z \\mathbf { S } Z ^ { + } 2 0 ]$ Jeffrey O Zhang, Alexander Sax, Amir Zamir, Leonidas Guibas, and Jitendra Malik. Side-tuning: a baseline for network adaptation via additive side networks. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part III 16, pages 698–714. Springer, 2020. ",
935
+ "bbox": [
936
+ 174,
937
+ 239,
938
+ 826,
939
+ 912
940
+ ],
941
+ "page_idx": 10
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "",
946
+ "bbox": [
947
+ 174,
948
+ 36,
949
+ 828,
950
+ 916
951
+ ],
952
+ "page_idx": 11
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "",
957
+ "bbox": [
958
+ 174,
959
+ 90,
960
+ 826,
961
+ 327
962
+ ],
963
+ "page_idx": 12
964
+ },
965
+ {
966
+ "type": "table",
967
+ "img_path": "images/41ee4fba3ae19faab87c83e8b488ff35ae3d64a49f42261ffd95e5e279236023.jpg",
968
+ "table_caption": [
969
+ "A Ablation Study on the Effect of Memory Augmentation "
970
+ ],
971
+ "table_footnote": [
972
+ "Table 6: Ablation study results on the effect of memory augmentation of 4-shot and 20-shot ICL on 5 NLU tasks (SST-2, mr, subj, SST-5, mpqa). We sample 2000 extra demonstration examples and load them into cached memory. The subscript is the standard deviation across 6 runs. Avg. refers to the average accuracy on 5 datasets. \"w/o\" is short for \"without\". "
973
+ ],
974
+ "table_body": "<table><tr><td>Model</td><td>In-Context #Demons.</td><td>In-Memory #Demons.</td><td>SST-2 ACC↑</td><td>MR ACC↑</td><td>Subj ACC↑</td><td>SST-5 ACC↑</td><td>MPQA ACC↑</td><td>Avg.</td></tr><tr><td>Majority</td><td>N/A</td><td>N/A</td><td>50.9</td><td>50.0</td><td>50.0</td><td>20.0</td><td>50.0</td><td>44.2</td></tr><tr><td>GPT-2*</td><td>4</td><td>N/A</td><td>68.311.6</td><td>64.712.5</td><td>51.94.2</td><td>31.44.4</td><td>61.511.8</td><td>55.6</td></tr><tr><td>MemTRM</td><td>4</td><td>2000</td><td>67.512.4</td><td>64.611.3</td><td>53.26.0</td><td>29.64.4</td><td>63.012.1</td><td>55.6</td></tr><tr><td>TRIME</td><td>4</td><td>2000</td><td>69.514.5</td><td>63.89.8</td><td>51.51.5</td><td>31.86.7</td><td>63.612.9</td><td>56.0</td></tr><tr><td>LONGMEM</td><td>4</td><td>2000</td><td>71.814.0</td><td>65.111.0</td><td>53.83.7</td><td>36.06.8</td><td>65.412.8</td><td>58.4</td></tr><tr><td>w/o Memory</td><td>4</td><td>0</td><td>69.412.4</td><td>64.312.1</td><td>53.47.7</td><td>29.05.2</td><td>62.512.3</td><td>55.7</td></tr><tr><td>GPT-2*</td><td>20</td><td>N/A</td><td>68.211.5</td><td>63.45.2</td><td>57.610.2</td><td>33.66.0</td><td>70.87.6</td><td>58.7</td></tr><tr><td>MemTRM</td><td>20</td><td>2000</td><td>65.19.6</td><td>65.19.3</td><td>58.210.6</td><td>31.96.3</td><td>72.77.4</td><td>58.6</td></tr><tr><td>TRIME</td><td>20</td><td>2000</td><td>74.313.9</td><td>71.52.5</td><td>57.511.4</td><td>33.04.6</td><td>69.87.8</td><td>61.1</td></tr><tr><td>LONGMEM</td><td>20</td><td>2000</td><td>78.014.1</td><td>78.63.3</td><td>65.68.5</td><td>36.57.5</td><td>74.67.3</td><td>66.7</td></tr><tr><td>w/o Memory</td><td>20</td><td>0</td><td>70.012.8</td><td>70.86.2</td><td>52.94.6</td><td>30.96.4</td><td>72.57.5</td><td>59.4</td></tr></table>",
975
+ "bbox": [
976
+ 176,
977
+ 391,
978
+ 838,
979
+ 585
980
+ ],
981
+ "page_idx": 12
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "B Inference Efficiency and GPU-Memory Efficiency ",
986
+ "text_level": 1,
987
+ "bbox": [
988
+ 174,
989
+ 676,
990
+ 624,
991
+ 695
992
+ ],
993
+ "page_idx": 12
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "When the model is required to comprehend long sequences, the proposed method LONGMEM can load the out-of-boundary inputs into the cached memory as previous context. Thus, the memory usage and inference speed can be significantly improved compared with vanilla self-attention-based models. The detailed statistics in terms of the efficiency is presented in Table 7. ",
998
+ "bbox": [
999
+ 174,
1000
+ 708,
1001
+ 825,
1002
+ 765
1003
+ ],
1004
+ "page_idx": 12
1005
+ },
1006
+ {
1007
+ "type": "table",
1008
+ "img_path": "images/884af934d937a8d106c0fb940857a7a3a0703d20a5773858f1cbe97b236f373a.jpg",
1009
+ "table_caption": [],
1010
+ "table_footnote": [
1011
+ "Table 7: The superiority of our method over fully dense self-attention (GPT- $2 ^ { * }$ ) in terms of inference speed and GPU-memory utilization. "
1012
+ ],
1013
+ "table_body": "<table><tr><td>Model</td><td>In-Context Len.</td><td>In-Memory Len.</td><td>Inference Speed (tokens/s)↑</td><td>GPU-Memory Usage (MBs)↓</td></tr><tr><td>GPT-2*</td><td>4k</td><td>N/A</td><td>14666</td><td>20671</td></tr><tr><td>LONGMEM</td><td>1k</td><td>3k</td><td>22638</td><td>13335</td></tr><tr><td>GPT-2*</td><td>8k</td><td>N/A</td><td>8417</td><td>54195</td></tr><tr><td>LONGMEM</td><td>1k</td><td>7k</td><td>21343</td><td>13437</td></tr></table>",
1014
+ "bbox": [
1015
+ 230,
1016
+ 777,
1017
+ 766,
1018
+ 877
1019
+ ],
1020
+ "page_idx": 12
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "C Training Details ",
1025
+ "text_level": 1,
1026
+ "bbox": [
1027
+ 174,
1028
+ 88,
1029
+ 344,
1030
+ 107
1031
+ ],
1032
+ "page_idx": 13
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "The pre-training of reproduced GPT- $^ { 2 ^ { * } }$ iterates on 117B tokens in total, with 512 batch-size and 1024-token fixed segment-length. The Adam optimizer [KB15] is adopted in memory-augmented adaptation training. The pre-training and adaptation are trained on 16 32GB-Tesla-V100 GPUs. Other detailed training hypperparamters and settings are presented in Table 8. ",
1037
+ "bbox": [
1038
+ 174,
1039
+ 119,
1040
+ 825,
1041
+ 176
1042
+ ],
1043
+ "page_idx": 13
1044
+ },
1045
+ {
1046
+ "type": "table",
1047
+ "img_path": "images/bbe4829da276b35eb32314ee031f4b833bf85a3cfaa5e45005c058445b3fff60.jpg",
1048
+ "table_caption": [],
1049
+ "table_footnote": [
1050
+ "Table 8: Memory-Augmented Adaptation and Architectural Hyperparameters. "
1051
+ ],
1052
+ "table_body": "<table><tr><td>Hyperparameter</td><td>LONGMEM</td></tr><tr><td colspan=\"2\">Reproduced GPT-2* Backbone LLMHyperparameters</td></tr><tr><td>Parameters</td><td>407M</td></tr><tr><td>Precision</td><td>float16</td></tr><tr><td>Layers Hidden dim.</td><td>24</td></tr><tr><td>Attention heads</td><td>1024</td></tr><tr><td></td><td>16</td></tr><tr><td>Head Dim</td><td>64</td></tr><tr><td>Vocab size</td><td>52k</td></tr><tr><td>Sequence length</td><td>1024</td></tr><tr><td>Position emb.</td><td>Alibi</td></tr><tr><td>Tied embedding</td><td>False</td></tr><tr><td colspan=\"2\">SideNetHyperparameters</td></tr><tr><td>Parameters</td><td>151M</td></tr><tr><td>Precision</td><td>float16</td></tr><tr><td>Layers</td><td>12</td></tr><tr><td>Hidden dim.</td><td>1024</td></tr><tr><td>Attention heads</td><td>16</td></tr><tr><td>Head Dim</td><td>64</td></tr><tr><td>Sequence length</td><td>1024</td></tr><tr><td colspan=\"2\">Memory-Augmented Adaptation Hyperparameters</td></tr><tr><td>Global Batch Size</td><td>256</td></tr><tr><td>Learning rate</td><td>2.0e-4</td></tr><tr><td>Total tokens</td><td>26B</td></tr><tr><td>Warmup tokens</td><td>0</td></tr><tr><td>LR Decay style</td><td>polynomial</td></tr><tr><td>Adam(β1,β2)</td><td>(0.9, 0.98)</td></tr><tr><td>Adam eps</td><td>1e-06</td></tr><tr><td>Weight decay</td><td>0.01</td></tr><tr><td></td><td></td></tr><tr><td>Gradient clipping</td><td>2.0</td></tr></table>",
1053
+ "bbox": [
1054
+ 312,
1055
+ 189,
1056
+ 681,
1057
+ 595
1058
+ ],
1059
+ "page_idx": 13
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "D Prompting Templates ",
1064
+ "text_level": 1,
1065
+ "bbox": [
1066
+ 174,
1067
+ 657,
1068
+ 390,
1069
+ 676
1070
+ ],
1071
+ "page_idx": 13
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "We present all hand-crafted in-context learning prompting templates and labels for 5 NLU datasets and Squad QA dataset in Tabel 9. ",
1076
+ "bbox": [
1077
+ 171,
1078
+ 689,
1079
+ 825,
1080
+ 717
1081
+ ],
1082
+ "page_idx": 13
1083
+ },
1084
+ {
1085
+ "type": "table",
1086
+ "img_path": "images/40a066a735aa209607e510bd79468b4276c6467a149455a6ea143707b72c99ba.jpg",
1087
+ "table_caption": [],
1088
+ "table_footnote": [
1089
+ "Table 9: The hand-crafted prompts used to query the model predictions on the zero-shot evaluation of 5 NLU datasets and one question-answering dataset Squad. "
1090
+ ],
1091
+ "table_body": "<table><tr><td>Task</td><td>Prompt</td><td>Labels</td></tr><tr><td>SST-2</td><td>Review: [Sentence] Sentiment: [Label]</td><td>{positive, negative}</td></tr><tr><td>MR</td><td>Review: [Sentence] Sentiment: [Label]</td><td>{positive, negative}</td></tr><tr><td>MPQA</td><td>Review: [Sentence] Sentiment: [Label]</td><td>{positive, negative}</td></tr><tr><td>SST-5</td><td>input: [Sentence] type: [Label]</td><td>{terrible,bad,okay,good,great}</td></tr><tr><td>Subj</td><td>input: [Sentence] type: [Label]</td><td>{objective, subjective}</td></tr><tr><td> Squad</td><td colspan=\"2\">Passage: [Passage]\\n Question: [Question] Answer: [Answer]</td></tr></table>",
1092
+ "bbox": [
1093
+ 174,
1094
+ 729,
1095
+ 828,
1096
+ 868
1097
+ ],
1098
+ "page_idx": 13
1099
+ }
1100
+ ]
parse/dev/BryMFPQ4L6/BryMFPQ4L6_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/BryMFPQ4L6/BryMFPQ4L6_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/CzceR82CYc/CzceR82CYc.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/CzceR82CYc/CzceR82CYc_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/CzceR82CYc/CzceR82CYc_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/DhmYYrH_M3m/DhmYYrH_M3m.md ADDED
@@ -0,0 +1,319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Trajectory-guided Control Prediction for End-to-end Autonomous Driving: A Simple yet Strong Baseline
2
+
3
+ Penghao Wu∗† Shanghai AI Laboratory
4
+ Shanghai Jiao Tong University
5
+ wupenghaocraig@sjtu.edu.cn
6
+
7
+ Li Chen∗ Shanghai AI Laboratory lichen@pjlab.org.cn
8
+
9
+ Xiaosong Jia∗ Shanghai Jiao Tong University Shanghai AI Laboratory jiaxiaosong@sjtu.edu.cn
10
+
11
+ # Hongyang Li
12
+
13
+ Junchi Yan† Shanghai Jiao Tong University Shanghai AI Laboratory yanjunchi@sjtu.edu.cn
14
+
15
+ Yu Qiao Shanghai AI Laboratory qiaoyu@pjlab.org.cn
16
+
17
+ Shanghai AI Laboratory Shanghai Jiao Tong University lihongyang@pjlab.org.cn
18
+
19
+ # Abstract
20
+
21
+ Current end-to-end autonomous driving methods either run a controller based on a planned trajectory or perform control prediction directly, which have spanned two separately studied lines of research. Seeing their potential mutual benefits to each other, this paper takes the initiative to explore the combination of these two well-developed worlds. Specifically, our integrated approach has two branches for trajectory planning and direct control, respectively. The trajectory branch predicts the future trajectory, while the control branch involves a novel multi-step prediction scheme such that the relationship between current actions and future states can be reasoned. The two branches are connected so that the control branch receives corresponding guidance from the trajectory branch at each time step. The outputs from two branches are then fused to achieve complementary advantages. Our results are evaluated in the closed-loop urban driving setting with challenging scenarios using the CARLA simulator. Even with a monocular camera input, the proposed approach ranks first on the official CARLA Leaderboard, outperforming other complex candidates with multiple sensors or fusion mechanisms by a large margin. The source code is publicly available at https://github.com/OpenPerceptionX/TCP.
22
+
23
+ # 1 Introduction
24
+
25
+ End-to-end autonomous driving methods, which directly map raw sensor data to a planned trajectory or low-level control actions, show the virtue of simplicity, conceptually avoiding the cascading error of complex modular design and heavy hand-crafted rules. The output prediction of the model for end-toend autonomous driving generally falls into two forms: trajectory/waypoints [48, 4, 11, 46, 15, 29, 10] and direct control actions [17, 39, 18, 42, 12, 60, 9]. However, there is still no clear conclusion as to which of these two forms is better for all circumstances or certain scenarios.
26
+
27
+ Different from control predictions that could be directly applied to the vehicle, for methods that plan trajectory, additional controllers such as PID controllers are usually needed as a subsequent step to convert the planned trajectory into control signals. One attractive and potential supremacy of trajectory-based prediction is that it actually considers a relatively longer time horizon into the future and could be further combined with other modules (e.g., multi-agent trajectory prediction [59, 10], semantic or occupancy prediction modules [15, 8, 25]) to reduce possible collisions. However, turning the trajectory into control actions so that the vehicle could follow the planned trajectory is not trivial [57]. The industry usually adopts sophisticated control algorithms such as model predictive control to achieve reliable trajectory-following performance [5, 21]. Simple PID controllers may perform worse in situations such as taking a big turn or starting at the red light due to the inertial problem of end-to-end models [29]. For control-based methods, the control signals are directly optimized. Nevertheless, their focus on the current step may cause deferred reactions to avoid potential collisions with other moving agents. The independence between the control predictions of different steps also makes the actions of the vehicle more unstable or discontinuous. Fig. 1 shows two typical cases where two paradigms fail respectively. How to combine these two forms of prediction model as well as their outputs is an interesting yet relatively rarely studied area, which motivates this work.
28
+
29
+ ![](images/dc328a5f264bf26dbd64785b080f1b34da0a839f92d97a09d835508162b051d8.jpg)
30
+ Figure 1: Typical failure cases of two prediction paradigms. Red dots indicate the trajectory prediction, blue dots are the actual path following the red trajectory with PID controllers, and green dots denote the actual path from control-based method. (a) trajectory-based methods may struggle for big turns. (b) control-based methods may have a reaction latency and suffer from abrupt obstacles due to focusing on current time step only. These observations motivate us to propose a unified framework to combine these two worlds for mutual benefits.
31
+
32
+ One straightforward (but in fact rarely studied in literature) idea is to train a control prediction model and a trajectory planning model separately, and combine their ultimate outputs directly. It can be viewed as an ensemble of two different models. However, such a naive approach not only doubles the size of the model, but also ignores possible useful correlations between these two forms. To this end, we introduce the TCP (Trajectory-guided Control Prediction) framework, packing these two branches into a unified framework. It can be viewed as a multi-task learning (MTL) [7, 2] framework where a shared backbone extracts common features with decreased computational complexity as well as the increased ability of generalization due to the close relationship between the two tasks [38, 34, 13]. Furthermore, to address the drawbacks of current control prediction methods, we delicately devise a novel multi-step control branch and a trajectory-guided control prediction scheme.
33
+
34
+ While trajectory planning considers several steps into the future, directly learning the control in a behavior cloning fashion [44, 41, 17, 18, 11] often focuses on the current time step only, given prior on each state-action pair as independent and identical distributed (IID). This assumption is not accurate and may hamper the long-term performance since the driving task is a sequential decisionmaking problem. To alleviate the problem, we propose to predict multi-step control actions into the future. However, the multi-step control process needs interactions with the environment. Thus we formulate a temporal module to learn the forward process and interactions between the ego agent and the environment. A temporal module implemented with GRU [16] progressively deals with the feature representation for each time step, implicitly taking into account the dynamic motion of agents, interaction among them and dynamic environment information such as the changing of traffic lights.
35
+
36
+ Additionally, to generate accurate control signals in the multi-step prediction scheme, the model should retrieve proper location information from current sensor input for different future time steps. For example, an agent may pay more attention to nearby regions for a few early future time steps and far away regions for the remote ones. Considering that the knowledge has already been partly encoded in the trajectory branch, we adopt the attention mechanism to locate those critical and helpful areas in the long-term trajectory prediction branch, and guide the control prediction branch to pay attention to them at each future step in a corresponding way. As a result, our model is capable of reasoning about how to optimize current control prediction so that the future states are similar to those from the expert when the predicted control actions are applied.
37
+
38
+ With the predicted trajectory and control signals from two branches, we propose a situation based fusion scheme to adaptively combine these two forms in a self-ensemble way to form the ultimate output according to the experiments results and prior knowledge. It combines the best of these two forms, which further boosts the performance under different scenarios.
39
+
40
+ TCP has shown superior performance when being validated in the CARLA driving simulator [20]. Our method, which only uses a monocular camera, achieves a 75.137 driving score and ranks 1st on the public CARLA Leaderboard [1], even surpassing prior state-of-the-art methods using multiple cameras and a LiDAR by 13.291 points. The main contributions of this paper include:
41
+
42
+ • We examine two dominant paradigms for end-to-end autonomous driving: trajectory planning and direct control, and propose to combine them in an integrated learning pipeline. To our knowledge, this is the first time that such two branches are jointly learned and fused for prediction.
43
+ • A multi-step control prediction branch with a temporal module and trajectory-guided attention is devised to enable temporal reasoning. To combine the best of two branches, we design a situation based scheme to fuse the two outputs.
44
+ • As a simple yet strong baseline, our method with only a monocular camera as input achieves new state-of-the-art on the CARLA Leaderboard with many competitors using multiple sensors. We conduct thorough ablation studies to verify the effectiveness of our approach.
45
+
46
+ # 2 Related Work
47
+
48
+ # 2.1 End-to-end Autonomous Driving
49
+
50
+ Learning-based end-to-end autonomous driving has emerged as an active research topic in recent years. Studies usually fall into two categories: reinforcement learning (RL) and imitation learning. RL is a promising way to address the problem of being more robust to the distribution shifts of datasets. Liang et al. [39] use DDPG to train a policy which is pre-trained in a supervised way. Kendall et al. [30] train their deep RL algorithm onboard to efficiently learn to drive a real-world vehicle. The perception task is decoupled out of the online RL process in [50, 9, 62]. The model-based method WoR [12] assumes world on rails and uses policy distillation to realize powerful performance.
51
+
52
+ Imitation learning (IL), especially behavior cloning, collects recorded data for models to mimic with high data efficiency. The expert data typically has two forms, trajectories and control actions. Zeng et al. [58] train a cost volume to generate the planning route, while [49, 8, 25] explicitly design safety and comfort costs based on semantic occupancy maps to select the best one in the expert trajectory sets. Zhang et al. [59] predict trajectories of surrounding vehicles with labeled BEV map. LBC [11] and NEAT [15] decode waypoints from a dense heatmap or offset map. These approaches aforementioned all utilize a relatively dense representation to obtain results which increases model complexity. Transfuser and its variants [46, 29] adopt a simple GRU to auto-regress waypoints. LAV [10] adopts a temporal GRU module to further refine the trajectory. They unanimously achieve impressive performance on the CARLA leaderboard, motivating us to adapt the auto-regression scheme as well in our design. On the other hand, all trajectory-based methods use PID controllers to get the ultimate actions, which may cause inferior effects in complicated scenarios.
53
+
54
+ Another genre to predict control actions directly is proposed in [44, 40, 3, 54]. CIL [17] adds a measurement encoder and multiple branches for different high level commands with the image encoder. CILRS [18] is proposed afterwards and further introduces a speed prediction head. They stand as classic baselines for IL in the CARLA driving simulator. Diverse optimized approaches are presented based on them, such as multi-modal inputs [22, 53], multi-task learning [56, 37, 24, 27, 31, 26, 63], dataset aggregation [45] and knowledge distillation [61, 60]. However, the compact control-based methods often have higher vehicles collision rates, remaining an interesting domain to explore. Similar work exists in other related domains such as robotic navigation as well. [43] learns a controller after a local trajectory planner to improve the overall navigation behavior.
55
+
56
+ # 2.2 Multi-task and Ensemble Learning for Autonomous Driving
57
+
58
+ Multi-task learning is a popular approach to train several related tasks simultaneously to help each other and improve generalization [7, 2]. Combinations of various autonomous driving tasks such as object detection, lane detection, semantic segmentation, depth estimation, etc. have been proved to be capable of achieving incredible performance [38, 14, 47, 34, 52, 13]. MTL is also suitable in the end-to-end problem since it is observed the performance of a direct mapping from an image to control signals is limited. [56] adds a speed prediction task similar to CIL [17] and [63] separates the lateral and longitudinal controls as two tasks. LAV [10] trains an extra scene mapping network, and [24, 27, 29] additionally predict optical flow or dense depth. Our idea of training trajectory and control simultaneously is closely related to FASNet [31]. FASNet predicts future positions of the ego agent as an auxiliary task and adds a kinematic loss considering the relation between control and locations. However, the constrain is based on a constant velocity model which neglects the important throttle and brake, and it does not work at the inference time. On the other hand, our TCP framework has feature interactions at an earlier stage to fully explore their potential mutual benefits.
59
+
60
+ Ensembles of models have long been utilized to improve the performance in computer vision [19, 33, 35, 51, 55, 45]. Besides the normal combination of models, two classic ensemble learning methods are particularly preferred in the autonomous driving regime. One is the Test-Time Augmentation (TTA), which is of great help to the 3D object detection task with LiDAR [6, 36]. Another one is the fusion of experts [28] where experts are trained on a subset of the input space and a gating network is trained to provide the fusion weights. LSD [42] and MoDE [32] divide a dataset into sub-scenarios to get different sub-policies for end-to-end autonomous driving. These traditional ensemble approaches combine models of the same structure while our approach tries to combine two different representations. Also, the multiple experts design increases the complexity of the training strategy and we seek to have a simpler situation based fusion scheme to boost the performance.
61
+
62
+ # 3 Trajectory-guided Control Prediction
63
+
64
+ # 3.1 Problem Setting
65
+
66
+ Problem formulation. Given the state x comprised of the sensor signal i, the speed of the vehicle $v$ , and the high level navigation information $\mathbf { g }$ including a discrete navigation command and the coordinates of navigation target provided by the global planner, the end-to-end model needs to output control signals a comprised of longitudinal control signals throttle $\in [ 0 , 1 ]$ and brake $\in [ 0 , 1 ]$ , and the lateral control signal steer $\in [ - 1 , 1 ]$ .
67
+
68
+ Conventional methods tackle this problem with either a trajectory-output or a control-output only model. However, TCP combines both of them as two branches: a trajectory branch which predicts the planned trajectory and a control branch which is guided by the trajectory one and outputs both current and multi-step control signals into the future. Both branches are trained in a supervised manner. Consider an expert which directly outputs the control signals at each step, supervising the predicted trajectory with the ground truth trajectory makes it not strictly satisfy the setting of behavior cloning in imitation learning. The ground truth trajectory indeed involves future expert actions and future states about the environment, so we formulate it as a trajectory planning task with ground truth trajectory as supervision for our trajectory branch. As for the control branch, training a control model which makes current control prediction supervised by the expert control is just behavior cloning in imitation learning, and it can be formulated as:
69
+
70
+ $$
71
+ \arg \operatorname* { m i n } _ { \theta } \mathbb { E } _ { ( \mathbf { x } , \mathbf { a } ^ { * } ) \sim \mathrm { D } } [ \mathcal { L } ( \mathbf { a } ^ { * } , \pi _ { \theta } ( \mathbf { x } ) ) ] ,
72
+ $$
73
+
74
+ where $D = \{ ( { \bf x } , { \bf a } ^ { * } ) \}$ is a dataset comprised of state-action pairs collected from the expert. $\pi _ { \theta }$ denotes the policy of the control branch, and $\mathcal { L }$ is the loss measuring how close the action from the expert and the action from our model is. The expert collects the dataset by controlling the vehicle and interacting with the world. Each collected route is a trajectory $\xi = ( { \bf x } _ { 0 } , { \bf a } _ { 0 } ^ { * } , { \bf x } _ { 1 } , { \bf a } _ { 1 } ^ { * } , \cdot \cdot \ , { \bf x } _ { \mathrm { T } } )$ as a sequence of state action pairs $\{ ( \mathbf { x } _ { \mathrm { i } } , \mathbf { a } _ { \mathrm { i } } ^ { * } ) \} _ { \mathrm { i = 0 } } ^ { \mathrm { T } }$ , which is then added into the whole dataset $D$ .
75
+
76
+ Expert demonstration. Here we choose Roach [60] as the expert. Roach is a simple model trained by RL with privileged information, including roads, lanes, routes, vehicles, pedestrians, traffic lights, and stops, all being rendered into a 2D BEV image. Such a learning-based expert can transfer more information besides the direct supervision signals compared with an expert made by hand-crafted rules. Specifically, we have a feature loss which forces the latent features before the final output head from the student model to be similar to that of the expert. A value loss is also added as an auxiliary task for the student model to predict an expected return.
77
+
78
+ ![](images/fee42be328edcdba4670ef51cd570a25aecc8c5ad8913a4b67b4fa9191c7581f.jpg)
79
+ Figure 2: Overview of Trajectory-guided Control Prediction (TCP). The encoded features are shared by the trajectory and multi-step control branch. The trajectory branch provides per-step guidance for multi-step control prediction. Outputs from two branches are combined according to our situation based fusion scheme to generate the ultimate control actions.
80
+
81
+ # 3.2 Architecture Design
82
+
83
+ Overview. As illustrated in Fig. 2, the whole architecture is comprised of an input encoding stage and two subsequent branches. The input image i goes through a CNN based image encoder, such as ResNet [23], to generate a feature map $\mathbf { F }$ . In the meantime, the navigation information $\mathbf { g }$ is concatenated with the current speed $v$ to form the measurement input m, then an MLP based measurement encoder takes m as its input and outputs the measurement feature $\mathbf { j } _ { \mathrm { { m } } }$ . The encoded features are then shared by two branches for subsequent trajectory and control predictions. Specifically, the control branch is a novel multi-step prediction design with guidance from the trajectory one, which will be illustrated in detail in the following sections. Finally, a situation based fusion scheme is adopted to combine the best of the two output paradigms. We will go over each part in detail below.
84
+
85
+ # 3.2.1 Trajectory planning branch
86
+
87
+ Different from control prediction which directly predicts control actions, the trajectory planning branch first generates a planned trajectory comprised of waypoints at $K$ steps for the agent to follow, and then the trajectory is processed by low-level controllers to get the final control actions. With the shared feature from the input encoder, the image feature map $\mathbf { F }$ is average pooled and concatenated with the measurement feature $\mathbf { j } _ { \mathrm { { m } } }$ to form $\mathbf { j } ^ { \mathrm { t r a j } }$ . Inspired by [46], we feed $\mathbf { \hat { j } } ^ { \mathrm { t r a j } }$ into a GRU [16] to auto-regressively obtain future waypoints one by one to form the planned trajectory altogether.
88
+
89
+ We have two PID controllers for longitudinal and lateral control respectively. With the planned trajectory, we first calculate the vectors between consecutive waypoints. The magnitudes of these vectors represent the desired speed and are sent to the longitudinal controller to generate throttle and brake control actions, and the orientations are sent to the lateral controller to get the steer action.
90
+
91
+ # 3.2.2 Multi-step control prediction branch
92
+
93
+ As discussed in Sec. 3.1, for a control model predicting current control actions based on current input only, the supervised training is just behavior cloning, which relies on the independent and identically distributed (IID) assumption. This assumption apparently does not hold because of the distribution shifts in test cases, since the closed-loop tests require sequential decision making where the historical actions will affect the future states and actions. Instead of modeling it as a Markov Decision Process (MDP) and resorting to reinforcement learning, here we devise a simple way to mitigate the problem by predicting multi-step control into the future.
94
+
95
+ Given the current state $\mathbf { x } _ { \mathrm { t } }$ , now our multi-step control prediction branch outputs multiple actions: $\pi _ { \theta _ { m u l t i } } = ( \mathbf { a } _ { \mathrm { t } } , \mathbf { a } _ { \mathrm { t + 1 } } , \cdot \cdot \cdot , \mathbf { a } _ { \mathrm { t + K } } )$ . However, it is difficult to predict future control actions since we only have sensor inputs at the current time step. Towards this problem, we devise a temporal module to implicitly carry out the changing and interaction process of the environment and our agent. It is supposed to provide mainly dynamic information about the environment and the status of the agent itself, such as the motion of other objects, the changing of traffic lights, and the status of the ego agent. Meanwhile, to improve the ability of incorporating critical static information (e.g., curbs and lanes) and boost the spatial consistency of two branches, we propose to use the trajectory branch to guide the control counterpart to attend to proper regions of the input image at each future time step.
96
+
97
+ Temporal module. Our temporal module is implemented with a GRU for better consistency with the trajectory branch. At step $t$ $( 0 \leq t \leq K - 1 )$ , the input for the temporal module is the concatenation of the current feature $\mathbf { j } _ { \mathrm { t } } ^ { \mathrm { c t l } }$ (more construction details in the next section) and current predicted action $\mathbf { a } _ { \mathrm { t } }$ , which is a compact representation about the current states of the environment and the agent itself. The temporal module is supposed to reason about the dynamic changing process based on current feature vector and the predicted action. Then the updated hidden state $\bar { \mathbf { h } } _ { \mathrm { t + 1 } } ^ { \mathrm { c t l } }$ will contain dynamic information about the environment and the updated status of the agent at time step $t + 1$ . To some extent, the temporal module acts as a coarse simulator with the whole environment and the agent being abstracted as a feature vector. It then simulates the interaction between the environment and the agent based on current prediction of actions.
98
+
99
+ Trajectory-guided attention. With the sensor input at current step only, it is hard to pick out desirable regions where the model should focus on at future steps. However, the location of the ego agent contains important cues about how to find those regions containing critical static information for control prediction at each step.
100
+
101
+ Therefore, we seek help from the trajectory planning branch to get information about the possible location of our agent at that corresponding step. As shown in Fig. 3, TCP implements this by learning an attention map to extract important information from the encoded feature map. The interaction between two branches enhances the consistency of these two strongly related output paradigms and further elaborates the multi-task spirit. Specifically, with the 2D feature map extracted by the image encoder $\mathbf { F }$ at time step $t \left( 1 \leq t \leq K \right)$ , we calculate an attention map $\mathbf { w } _ { \mathrm { t } } \in \mathbb { R } ^ { 1 \times \mathrm { H } \times \mathrm { W } }$ using the corresponding hidden states from the control branch and the trajectory branch:
102
+
103
+ ![](images/25b080d38b97bd1dfc38f40927262d28a3b1c74c42cf2a7dda2e2fb99ef54e45.jpg)
104
+ Figure 3: Detailed trajectory guiding process. For predictions at time step $t$ , the hidden states from the waypoint GRU and the temporal module are combined to learn an attention weight map to re-aggregate the 2D image feature map for control prediction.
105
+
106
+ $$
107
+ \mathbf { w } _ { \mathrm { t } } = \mathrm { M L P } ( \mathrm { C o n c a t } [ \mathbf { h } _ { \mathrm { t } } ^ { \mathrm { t r a j } } , \mathbf { h } _ { \mathrm { t } } ^ { \mathrm { c t l } } ] ) .
108
+ $$
109
+
110
+ The attention map $\mathbf { w } _ { \mathrm { t } } \in \mathbb { R } ^ { 1 \times \mathrm { H } \times \mathrm { W } }$ is adopted to aggregate the feature map $\mathbf { F }$ for this step. We then combine the attended feature map with $\mathbf { h } _ { \mathrm { t } } ^ { \mathrm { c t l } }$ to form the informative representation feature $\mathbf { j } _ { \mathrm { t } } ^ { \mathrm { c t l } }$ containing both static and dynamic information about the environment and the ego agent. The process can be described as follows:
111
+
112
+ $$
113
+ \mathbf { j } _ { \mathrm { t } } ^ { \mathrm { c t l } } = \mathrm { M L P } ( \mathrm { C o n c a t } [ \mathrm { S u m } ( \mathrm { S o f t m a x } ( \mathbf { w } _ { \mathrm { t } } ) \odot \mathbf { F } ) , \mathbf { h } _ { \mathrm { t } } ^ { \mathrm { c t l } } ] ) .
114
+ $$
115
+
116
+ The informative representation feature $\mathbf { j } _ { \mathrm { t } } ^ { \mathrm { c t l } }$ is fed into a policy head which is shared among all time steps to predict the corresponding control action $\mathbf { a } _ { \mathrm { t } }$ . Note that for the initial step, we only use the measurement feature to calculate the initial attention map and combine the attended image feature with the measurement feature to form the initial feature vector $\mathbf { j } _ { 0 } ^ { \mathrm { c t l } }$ . To guarantee the feature $\mathbf { j } _ { \mathrm { t } } ^ { \mathrm { c t l } }$ does describe the state at that step and contain the important information for control prediction, we add a feature loss at each step to make $\mathbf { j } _ { \mathrm { t } } ^ { \mathrm { c t l } }$ close to the feature of the expert as well.
117
+
118
+ To this end, our TCP framework endows the model with the reasoning ability along a short time horizon. It emphasizes how to make current control prediction close to the one from the expert. Furthermore, it takes into account what current control prediction can make the environment states and status of ego agent in future time steps similar to the ones from the expert.
119
+
120
+ # 3.3 Loss Design
121
+
122
+ Our loss contains trajectory planning loss $\mathcal { L } _ { t r a j }$ , control prediction $\mathcal { L } _ { c t l }$ , and auxiliary loss $\mathcal { L } _ { a u x }$
123
+
124
+ For the trajectory planning branch, the loss $\mathcal { L } _ { t r a j }$ can be expressed as:
125
+
126
+ $$
127
+ \mathcal { L } _ { t r a j } = \sum _ { t = 1 } ^ { K } \| \mathbf { w p } _ { \mathrm { t } } - \mathbf { w } \mathbf { \hat { p } } _ { \mathrm { t } } \| _ { 1 } + \lambda _ { \mathrm { F } } \cdot \mathcal { L } _ { \mathrm { F } } \left( \mathbf { j } _ { 0 } ^ { \mathrm { t r a j } } , \mathbf { j } _ { 0 } ^ { \mathrm { E x p e r t } } \right) ,
128
+ $$
129
+
130
+ where $\mathbf { w p } _ { \mathrm { t } } , \mathbf { w } \mathbf { \hat { p } _ { \mathrm { t } } }$ are the predicted and ground truth waypoint at the $t ^ { t h }$ step respectively. $\mathcal { L } _ { F }$ indicates the feature loss measuring the $L _ { 2 }$ distance between $\mathbf { j } _ { 0 } ^ { \mathrm { t r a j } }$ j and the feature jEx0 pert from the expert at the current step as an additional supervision signal [60]. $\lambda _ { F }$ is a tunable loss weight.
131
+
132
+ For the control prediction branch, we model the action as a beta distribution. The loss $\mathcal { L } _ { c t l }$ is:
133
+
134
+ $$
135
+ \begin{array} { r l r } { { \mathcal { L } _ { c t l } = \mathbf { K } \mathbf { L } ( \mathrm { B e t a } ( \mathbf { a } _ { 0 } ) | | \mathrm { B e t a } ( \hat { \mathbf { a } } _ { 0 } ) ) + \frac { 1 } { K } \sum _ { t = 1 } ^ { K } \mathbf { K } \mathbf { L } ( \mathrm { B e t a } ( \mathbf { a } _ { \mathrm { t } } ) | | \mathrm { B e t a } ( \hat { \mathbf { a } } _ { \mathrm { t } } ) ) } } \\ & { } & { + \lambda _ { F } \cdot \mathcal { L } _ { F } ( \mathbf { j } _ { 0 } ^ { \mathrm { c t l } } , \mathbf { j } _ { 0 } ^ { \mathrm { E x p e r t } } ) + \frac { 1 } { K } \sum _ { t = 1 } ^ { K } \mathcal { L } _ { F } ( \mathbf { j } _ { \mathrm { t } } ^ { \mathrm { c t l } } , \mathbf { j } _ { \mathrm { t } } ^ { \mathrm { E x p e r t } } ) , } \end{array}
136
+ $$
137
+
138
+ where $\mathrm { B e t a } ( \mathbf { a } )$ denotes the beta distribution represented by the corresponding predicted distribution parameters and KL-divergence is used to measure the similarity between the predicted control distribution and the one from expert, i.e., Beta(aˆ). Feature loss is applied here as well. Note that all losses for future time steps $( t \geq 1 )$ ) are averaged and then added to the loss for the current time step $( t = 0$ ), since the action executed immediately should be our key target to optimize.
139
+
140
+ To help the agent better estimate its current state, we add a speed prediction head to predict current speed $s$ from the image feature and a value prediction head to predict the expected return estimated by the expert, similarly as in [60]. We take the $L _ { 1 }$ loss for the speed prediction and $L _ { 2 }$ loss for the value prediction, denoting their weighted sum as $\mathcal { L } _ { a u x }$ .
141
+
142
+ The overall loss is as follows, as weighted by $\lambda _ { t r a j } , \lambda _ { c t l } , \lambda _ { a u x }$ :
143
+
144
+ $$
145
+ \mathcal { L } = \lambda _ { t r a j } \cdot \mathcal { L } _ { t r a j } + \lambda _ { c t l } \cdot \mathcal { L } _ { c t l } + \lambda _ { a u x } \cdot \mathcal { L } _ { a u x } .
146
+ $$
147
+
148
+ # 3.4 Output Fusion
149
+
150
+ We have two forms of output representations from our TCP framework: the planned trajectory and the predicted control. To further combine their advantages, we devise a situation-based fusion strategy as depicted in Algorithm 1. Specifically, denote $\alpha$ as a combination weight whose value is between 0 to 0.5, in a certain situation where one representation is more suitable according to our prior belief, we combine the results from trajectory and control predictions by taking average with weight $\alpha$ so that the more suitable one takes up more weight $( 1 - \alpha )$ . Note that the combination weight $\alpha$ indeed does not need to be
151
+
152
+ <table><tr><td>Algorithm1:Situation based fusion scheme to com- bine the two output paradigms</td></tr><tr><td>Input: sensory input i, speed of the ego vehicle v, high level navigation information g.</td></tr><tr><td>Hyper parameters:combination weight α E [0,0.5] Output: final control signals a</td></tr><tr><td>{wpt}=o,actl ← TCP(i,u, g) atraj ←Low-level Controller ({wpt}ε=0) a</td></tr><tr><td>Getcurrent situation if situationis trajectory specialized then</td></tr><tr><td>a←α×act1+(1-α)×atraj</td></tr><tr><td></td></tr><tr><td>else a←α×atraj+(1-α) ×actl</td></tr></table>
153
+
154
+ a constant or symmetric, which means we can set it to different values under different situations or different for specific control signals. In our experiment, we choose the situation according to whether the ego vehicle is turning, implying that if it is turning, the situation is control specialized otherwise trajectory specialized.
155
+
156
+ # 4 Experiments
157
+
158
+ # 4.1 Experimental Setup
159
+
160
+ Task & Evaluation metrics. Our method is validated and tested in the CARLA driving simulator [20]. Given a route defined by a sequence of sparse navigation points together with high level commands (straight, turn left/right, lane changing, and lane following), the closed-loop driving task requires the autonomous agent to drive towards the destination point. It is designed to simulate realistic traffic situations and includes different challenging scenarios such as obstacle avoidance, crossing an unsignalized intersection, and sudden control loss. There are three major metrics: Driving Score, Route Completion, and Infraction Score. Route Completion is the percentage of the route completed by the autonomous agent. Infraction Score measures the number of infractions made along the route, with pedestrians, vehicles, road layouts, red lights, and etc. Driving Score is the main metric which is the product of Route Completion and Infraction Score.
161
+
162
+ Table 1: Evaluation on the public CARLA Leaderboard [1] (accessed in May 2022). Our method TCP and TCP-Ens achieve a driving score of 69.714 and 75.137 respectively with only a monocular camera. More detailed infraction statistics can be found in the Supplementary.
163
+
164
+ <table><tr><td rowspan="2">Rank</td><td rowspan="2">Method</td><td colspan="2">Sensor Inputs</td><td colspan="3">Key Metrics ↑</td></tr><tr><td>#Cameras</td><td>LiDAR</td><td>Driving Score</td><td>Route Completion</td><td>Infraction Score</td></tr><tr><td>1</td><td>TCP-Ens (ours)</td><td>1</td><td>X</td><td>75.137</td><td>85.629</td><td>0.873</td></tr><tr><td>1</td><td>TCP (ours)</td><td>1</td><td>X</td><td>69.714</td><td>82.962</td><td>0.851</td></tr><tr><td>1</td><td>TCP-SB (ours)</td><td>1</td><td>X</td><td>68.695</td><td>82.957</td><td>0.833</td></tr><tr><td>2</td><td>LAV [10]</td><td>4</td><td>√</td><td>61.846</td><td>94.459</td><td>0.640</td></tr><tr><td>3</td><td>Transfuser</td><td>3</td><td>√</td><td>61.181</td><td>86.694</td><td>0.714</td></tr><tr><td>4</td><td>Latent Transfuser</td><td>3</td><td></td><td>45.029</td><td>75.366</td><td>0.618</td></tr><tr><td>5</td><td>GRIAD [9]</td><td>3</td><td>xx/</td><td>36.787</td><td>61.855</td><td>0.597</td></tr><tr><td>6</td><td>Transfuser+ [29]</td><td>4</td><td></td><td>34.577</td><td>69.841</td><td>0.562</td></tr><tr><td>7</td><td>WoR[12]</td><td>4</td><td>X</td><td>31.370</td><td>57.647</td><td>0.557</td></tr><tr><td>8</td><td>MaRLn [50]</td><td>1</td><td>X</td><td>24.980</td><td>46.968</td><td>0.518</td></tr><tr><td>9</td><td>NEAT[15]</td><td>3</td><td>X</td><td>21.832</td><td>41.707</td><td>0.650</td></tr></table>
165
+
166
+ Table 2: Comparison between the control and trajectory only model in terms of infractions frequency. TurnRatio means the corresponding ratio of happening during turning.
167
+
168
+ <table><tr><td rowspan="2">Model</td><td rowspan="2">Driving Score</td><td colspan="2">Collisions vehicles</td><td colspan="2">Collisions layout</td><td colspan="2">Off-road infractions</td><td colspan="2">Agent blocked</td></tr><tr><td>#/km↓</td><td>TurnRatio</td><td>#/km↓</td><td>TurnRatio</td><td>#/km↓</td><td>TurnRatio</td><td>#/km↓</td><td>TurnRatio</td></tr><tr><td>Control-Only</td><td>32.45±2.23</td><td>1.25</td><td>50.90%</td><td>0.23</td><td>10.00%</td><td>0.59</td><td>46.15%</td><td>0.41</td><td>50.00%</td></tr><tr><td>Trajectory-Only</td><td>28.29±3.03</td><td>0.85</td><td>38.70%</td><td>0.77</td><td>64.20%</td><td>0.74</td><td>62.90%</td><td>0.77</td><td>64.20%</td></tr></table>
169
+
170
+ Dataset. We use randomly generated routes under random weather conditions to collect 420K data in the 8 public towns offered by the CARLA simulator. Similar to [10], we train TCP on 189K of data in 4 out of 8 towns (Town01, Town03, Town04, and Town06) for ablations and train with all 420K data for our online leaderboard submission.
171
+
172
+ # 4.2 State-of-the-art Comparison
173
+
174
+ Table 1 shows the result of the comparison between our method and the top 8 entries on the public CARLA Leaderboard [1]. We report the results of TCP and two variants. TCP-SB replaces shared encoders of TCP with two separate ones for two branches, and TCP-Ens is the ensemble of TCP and TCP-SB. Our method TCP-Ens ranks first on the leaderboard with a 75.137 driving score and highest infraction score, and TCP alone also surpasses prior methods. Note that our method only uses a monocular camera while the top 2-4 methods all use multiple cameras and a LiDAR. Our driving score is 50.157 higher than the second-best monocular camera method, MaRLn [50]. Our route completion is slightly inferior to the LiDAR candidates - one reason is that methods using LiDAR may have a better object detection ability. Based on the detection results, they usually adopt a crawling strategy, indicating that the vehicle would move slowly when it has stopped for a long time and there are no obstacles ahead. As described in [29], this could alleviate ego vehicle’s blocking problems to boost the route completion performance.
175
+
176
+ ![](images/53625470e10efe8de104f7eaed01f6b709a62241dccde0c71d9743b472e0849d.jpg)
177
+ Figure 4: The trajectory-guided attention maps in two cases. In each case (row), from the left to right we show that the input image with the predicted trajectory (the first waypoint is projected out of the image), the predicted trajectory in the top-down view, the attention map $\mathbf { w } _ { 1 }$ , the attention map $\mathbf { w } _ { 3 }$ .
178
+
179
+ Table 3: Ablative study on the effectiveness of different components design of our model.
180
+
181
+ <table><tr><td>Exp.</td><td>Driving Score</td><td>Route Completion</td><td>Infraction Score</td></tr><tr><td>Control</td><td>32.45±2.23</td><td>76.54±3.22</td><td>0.45±0.03</td></tr><tr><td>+ traj-task</td><td>34.98±1.96</td><td>81.32±5.50</td><td>0.49±0.05</td></tr><tr><td>+ temporal</td><td>42.87±4.77</td><td>87.51±3.63</td><td>0.49±0.07</td></tr><tr><td>+ traj-attn</td><td>46.08±3.47</td><td>84.95±1.84</td><td>0.56±0.03</td></tr><tr><td>+ fusion</td><td>57.01±1.88</td><td>85.27±1.20</td><td>0.67±0.01</td></tr></table>
182
+
183
+ Table 4: Comparison between MTL and ensemble methods ( $\alpha$ is 0.3 for all experiments).
184
+
185
+ <table><tr><td>Exp.</td><td>Driving Score</td><td>#Param.</td><td>FLOPs</td><td>FPS</td></tr><tr><td>Ensemble</td><td>45.03±1.28</td><td>46.81M</td><td>17.07G</td><td>69.47</td></tr><tr><td>MTL</td><td>48.27±0.58</td><td>23.58M</td><td>8.54G</td><td>133.30</td></tr><tr><td>TCP-SB</td><td>52.46±4.66</td><td>47.26M</td><td>17.07G</td><td>69.35</td></tr><tr><td>TCP</td><td>57.01±1.88</td><td>25.77M</td><td>8.54G</td><td>125.71</td></tr><tr><td>TCP-Ens</td><td>59.09±3.66</td><td>73.03M</td><td>25.61G</td><td>44.70</td></tr></table>
186
+
187
+ # 4.3 Control vs. Trajectory
188
+
189
+ In this section, we conduct quantitative experiments to compare the Control-Only model and the Trajectory-Only model to demonstrate their advantages and disadvantages. For both models, we use the same setting except for the output head and its corresponding loss. We use a ResNet-34 to encode visual inputs and a measurement module to encode the navigation information. Similar to [60], we add speed and value heads as auxiliary tasks to help the model better encode the environment. For Control-Only, we predict the control distribution based on the concatenated latent feature from the two encoders. As for Trajectory-Only, we feed the feature to a GRU decoder to generate waypoints. As shown in Table 2, though Trajectory-Only collides with vehicles less frequently than Control-Only, it has more layout collisions, off-road infractions, and agent blocks. We also count the ratio of each kind of infraction that occurs during turning. It can be observed that for Trajectory-Only, a large portion of such infractions happen when the ego agent is turning compared to Control-Only. This has verified that Trajectory-Only performs worse when the agent is turning, which is probably caused by the unsatisfactory trajectory following performance of simple PID controllers as discussed in Sec. 1. As for the fact that Control-Only has a higher vehicle-collision rate, it is because the model focuses on the current time step and the reaction to potential collisions tends to be late, as depicted in Sec. 1 as well. The results above further validate the necessity of combining the two output paradigms.
190
+
191
+ # 4.4 Ablative Study and Visualization
192
+
193
+ Component analysis. We first validate the effectiveness of the trajectory-guided multi-step control prediction design, as shown in Table 3. We only employ the control branch output except for the last complete one when fusion is applied for these ablations. Adding a trajectory branch as an auxiliary task improves the performance by 2.5 points. The multi-step predictions with our temporal module greatly help with 7.9 points gain, and adding the trajectory-guided attention further acquires an improvement of 3.2 points. Finally, applying our situation based fusion scheme $\alpha$ is set to 0.3) significantly boosts the infraction score, leading the overall driving score to 57.
194
+
195
+ Multi-task vs. Ensemble. The comparison regarding their performances and computational complexity is given in Table 4. Ensemble denotes directly combining the outputs of Control-Only and Trajectory-Only with our situation based fusion scheme. MTL represents the model with a shared CNN backbone and measurement encoders followed by a trajectory branch and a control branch, but the control branch predicts current step prediction only and there are no interactions between the two branches. We conclude that directly combining two models with our fusion scheme greatly improves the performance, and using an MTL approach works better than ensemble but with a much smaller model size and GFLOPs. A conventional ensemble approach to combine results from TCP and TCP-SB as TCP-Ens brings further performance gain at the cost of computational complexity.
196
+
197
+ Situation based fusion weight. We investigate the choice of the combination weight $\alpha$ in the situation based fusion scheme and show the box plot of the driving scores in the figure to the right. Besides $\alpha \in [ 0 , 0 . 5 ]$ , we additionally test 0.7 and 1, meaning that two results are conversely mixed with our specialization definition. We see that only using the control from the specialized branch $\alpha = 0$ performs poorly while directly taking the average or fusing conversely still has comparable results. One reason is that the situation criterion used here is whether the vehicle is turning, making most cases trajectory specialized, and the stronger control branch is not utilized enough if $\alpha$ is small. Note that the situation based fusion scheme is general and flexible, and the criterion or $\alpha$ value used here is relatively coarse.
198
+
199
+ ![](images/ae0af0918b5103ea2f1a91df9591e840d500bd976dd0ad542cf879b0a8494b56.jpg)
200
+ Figure 5: Box plot of the driving score with different $\alpha$ values (3 trials for each $\alpha$ ).
201
+
202
+ Visualization. Fig. 4 visualizes the trajectory-guided attention maps. The trajectory branch provides location-related information to guide the control branch to focus on important regions which are useful for future control prediction. See more qualitative results in the Supplementary.
203
+
204
+ # 5 Conclusion
205
+
206
+ In this work, we study two learning and prediction paradigms based on trajectory and direct control, respectively, for end-to-end autonomous driving. We propose a unified framework comprised of a trajectory branch and a novel multi-step control branch with interactions in between. We design a situation based fusion scheme to combine the results from two branches. Our method with only a monocular camera has achieved state-of-the-art performance on the CARLA Leaderboard.
207
+
208
+ # Acknowledgments
209
+
210
+ This work was partly supported by National Key Research and Development Program of China (2020AAA0107600), NSFC (62206172, 61972250), Shanghai Municipal Science and Technology Major Project (2021SHZDZX0102), and Shanghai Committee of Science and Technology (21DZ1100100, 22511105100).
211
+
212
+ # References
213
+
214
+ [1] CARLA autonomous driving leaderboard. https://leaderboard.carla.org/, 2022. 3, 8
215
+
216
+ [2] Andreas Argyriou, Theodoros Evgeniou, and Massimiliano Pontil. Multi-task feature learning. In NeurIPS, 2006. 2, 3
217
+ [3] Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016. 3
218
+ [4] Mariusz Bojarski, Chenyi Chen, Joyjit Daw, Alperen Degirmenci, Joya Deri, Bernhard Firner, Beat Flepp, ˘ Sachin Gogri, Jesse Hong, Lawrence Jackel, et al. The nvidia pilotnet experiments. arXiv preprint arXiv:2010.08776, 2020. 1
219
+ [5] Eduardo F Camacho and Carlos Bordons Alba. Model predictive control. Springer science & business media, 2013. 2
220
+ [6] Manuel Carranza-García, Pedro Lara-Benítez, Jorge García-Gutiérrez, and José C Riquelme. Enhancing object detection for autonomous driving by optimizing anchor generation and addressing class imbalance. Neurocomputing, 2021. 4
221
+ [7] Rich Caruana. Multitask learning. Machine learning, 1997. 2, 3
222
+ [8] Sergio Casas, Abbas Sadat, and Raquel Urtasun. Mp3: A unified model to map, perceive, predict and plan. In CVPR, 2021. 2, 3
223
+ [9] Raphael Chekroun, Marin Toromanoff, Sascha Hornauer, and Fabien Moutarde. Gri: General reinforced imitation and its application to vision-based autonomous driving. arXiv preprint arXiv:2111.08575, 2021. 1, 3, 8
224
+ [10] Dian Chen and Philipp Krähenbühl. Learning from all vehicles. In CVPR, 2022. 1, 3, 4, 8
225
+ [11] Dian Chen, Brady Zhou, Vladlen Koltun, and Philipp Krähenbühl. Learning by cheating. In CoRL, 2020. 1, 2, 3
226
+ [12] Dian Chen, Vladlen Koltun, and Philipp Krähenbühl. Learning to drive from a world on rails. In ICCV, 2021. 1, 3, 8
227
+ [13] Li Chen, Chonghao Sima, Yang Li, Zehan Zheng, Jiajie Xu, Xiangwei Geng, Hongyang Li, Conghui He, Jianping Shi, Yu Qiao, et al. Persformer: 3d lane detection via perspective transformer and the openlane benchmark. arXiv preprint arXiv:2203.11089, 2022. 2, 4
228
+ [14] Sumanth Chennupati, Ganesh Sistu, Senthil Yogamani, and Samir A Rawashdeh. Multinet++: Multi-stream feature aggregation and geometric loss strategy for multi-task learning. In CVPRW, 2019. 4
229
+ [15] Kashyap Chitta, Aditya Prakash, and Andreas Geiger. Neat: Neural attention fields for end-to-end autonomous driving. In ICCV, 2021. 1, 2, 3, 8
230
+ [16] Kyunghyun Cho, Bart van Merrienboer, Çaglar Gülçehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder–decoder for statistical machine translation. In EMNLP, 2014. 2, 5
231
+ [17] Felipe Codevilla, Matthias Müller, Antonio López, Vladlen Koltun, and Alexey Dosovitskiy. End-to-end driving via conditional imitation learning. In ICRA, 2018. 1, 2, 3, 4
232
+ [18] Felipe Codevilla, Eder Santana, Antonio M López, and Adrien Gaidon. Exploring the limitations of behavior cloning for autonomous driving. In ICCV, 2019. 1, 2, 3
233
+ [19] Thomas G Dietterich. Ensemble methods in machine learning. In MCS, 2000. 4
234
+ [20] Alexey Dosovitskiy, German Ros, Felipe Codevilla, Antonio Lopez, and Vladlen Koltun. CARLA: An open urban driving simulator. In CoRL, 2017. 3, 7
235
+ [21] Hongyan Guo, Dongpu Cao, Hong Chen, Zhenping Sun, and Yunfeng Hu. Model predictive path following control for autonomous cars considering a measurable disturbance: Implementation, testing, and verification. MSSP, 2019. 2
236
+ [22] Jeffrey Hawke, Richard Shen, Corina Gurau, Siddharth Sharma, Daniele Reda, Nikolay Nikolov, Przemysław Mazur, Sean Micklethwaite, Nicolas Griffiths, Amar Shah, et al. Urban driving with conditional imitation learning. In ICRA, 2020. 3
237
+ [23] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 5
238
+ [24] Yuenan Hou, Zheng Ma, Chunxiao Liu, and Chen Change Loy. Learning to steer by mimicking features from heterogeneous auxiliary networks. In AAAI, 2019. 3, 4
239
+ [25] Shengchao Hu, Li Chen, Penghao Wu, Hongyang Li, Junchi Yan, and Dacheng Tao. St-p3: End-to-end vision-based autonomous driving via spatial-temporal feature learning. In ECCV, 2022. 2, 3
240
+ [26] Sebastian Huch, Aybike Ongel, Johannes Betz, and Markus Lienkamp. Multi-task end-to-end self-driving architecture for cav platoons. Sensors, 2021. 3
241
+ [27] Keishi Ishihara, Anssi Kanervisto, Jun Miura, and Ville Hautamaki. Multi-task learning with attention for end-to-end autonomous driving. In CVPR, 2021. 3, 4
242
+ [28] Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. Adaptive mixtures of local experts. Neural computation, 1991. 4
243
+ [29] Bernhard Jaeger. Expert drivers for autonomous driving. Master’s thesis, University of Tübingen, 2021. 1, 2, 3, 4, 8
244
+ [30] Alex Kendall, Jeffrey Hawke, David Janz, Przemyslaw Mazur, Daniele Reda, John-Mark Allen, Vinh-Dieu Lam, Alex Bewley, and Amar Shah. Learning to drive in a day. In ICRA, 2019. 3
245
+ [31] Inhan Kim, Hyemin Lee, Joonyeong Lee, Eunseop Lee, and Daijin Kim. Multi-task learning with future states for vision-based autonomous driving. In ACCV, 2020. 3, 4
246
+ [32] Inhan Kim, Joonyeong Lee, and Daijin Kim. Learning mixture of domain-specific experts via disentangled factors for autonomous driving. In AAAI, 2022. 4
247
+ [33] Philipp Krähenbühl and Vladlen Koltun. Learning to propose objects. In CVPR, 2015. 4
248
+ [34] Varun Ravi Kumar, Senthil Yogamani, Hazem Rashed, Ganesh Sitsu, Christian Witt, Isabelle Leang, Stefan Milz, and Patrick Mäder. Omnidet: Surround view cameras based multi-task visual perception network for autonomous driving. RA-L, 2021. 2, 4
249
+ [35] Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In NeurIPS, 2017. 4
250
+ [36] Yingwei Li, Adams Wei Yu, Tianjian Meng, Ben Caine, Jiquan Ngiam, Daiyi Peng, Junyang Shen, Bo Wu, Yifeng Lu, Denny Zhou, et al. Deepfusion: Lidar-camera deep fusion for multi-modal 3d object detection. In CVPR, 2022. 4
251
+ [37] Zhihao Li, Toshiyuki Motoyoshi, Kazuma Sasaki, Tetsuya Ogata, and Shigeki Sugano. Rethinking selfdriving: Multi-task knowledge for better generalization and accident explanation ability. arXiv preprint arXiv:1809.11100, 2018. 3
252
+ [38] Ming Liang, Bin Yang, Yun Chen, Rui Hu, and Raquel Urtasun. Multi-task multi-sensor fusion for 3d object detection. In CVPR, 2019. 2, 4
253
+ [39] Xiaodan Liang, Tairui Wang, Luona Yang, and Eric Xing. Cirl: Controllable imitative reinforcement learning for vision-based self-driving. In ECCV, 2018. 1, 3
254
+ [40] Urs Muller, Jan Ben, Eric Cosatto, Beat Flepp, and Yann Cun. Off-road obstacle avoidance through end-to-end learning. In NeurIPS, 2005. 3
255
+ [41] Urs Muller, Jan Ben, Eric Cosatto, Beat Flepp, and Yann Cun. Off-road obstacle avoidance through end-to-end learning. In NeurIPS, 2005. 2
256
+ [42] Eshed Ohn-Bar, Aditya Prakash, Aseem Behl, Kashyap Chitta, and Andreas Geiger. Learning situational driving. In CVPR, 2020. 1, 4
257
+ [43] Ashwini Pokle, Roberto Martín-Martín, Patrick Goebel, Vincent Chow, Hans M Ewald, Junwei Yang, Zhenkai Wang, Amir Sadeghian, Dorsa Sadigh, Silvio Savarese, et al. Deep local trajectory replanning and control for robot navigation. In ICRA, 2019. 3
258
+ [44] Dean A Pomerleau. Alvinn: An autonomous land vehicle in a neural network. In NeurIPS, 1988. 2, 3
259
+ [45] Aditya Prakash, Aseem Behl, Eshed Ohn-Bar, Kashyap Chitta, and Andreas Geiger. Exploring data aggregation in policy learning for vision-based urban autonomous driving. In CVPR, 2020. 3, 4
260
+ [46] Aditya Prakash, Kashyap Chitta, and Andreas Geiger. Multi-modal fusion transformer for end-to-end autonomous driving. In CVPR, 2021. 1, 3, 5
261
+ [47] Georgia Rajamanoharan, Aytaç Kanacı, Minxian Li, Shaogang Gong, et al. Multi-task mutual learning for vehicle re-identification. In CVPR, 2019. 4
262
+ [48] Nicholas Rhinehart, Rowan McAllister, and Sergey Levine. Deep imitative models for flexible inference, planning, and control. In ICLR, 2019. 1
263
+ [49] Abbas Sadat, Sergio Casas, Mengye Ren, Xinyu Wu, Pranaab Dhawan, and Raquel Urtasun. Perceive, predict, and plan: Safe motion planning through interpretable semantic representations. In ECCV, 2020. 3
264
+ [50] Marin Toromanoff, Emilie Wirbel, and Fabien Moutarde. End-to-end model-free reinforcement learning for urban driving using implicit affordances. In CVPR, 2020. 3, 8
265
+ [51] Apoorv Vyas, Nataraj Jammalamadaka, Xia Zhu, Dipankar Das, Bharat Kaul, and Theodore L Willke. Out-of-distribution detection using an ensemble of self supervised leave-out classifiers. In ECCV, pages 550–564, 2018. 4
266
+ [52] Dong Wu, Manwen Liao, Weitian Zhang, and Xinggang Wang. Yolop: You only look once for panoptic driving perception. arXiv preprint arXiv:2108.11250, 2021. 4
267
+ [53] Yi Xiao, Felipe Codevilla, Akhil Gurram, Onay Urfalioglu, and Antonio M López. Multimodal end-to-end autonomous driving. T-ITS, 2020. 3
268
+ [54] Huazhe Xu, Yang Gao, Fisher Yu, and Trevor Darrell. End-to-end learning of driving models from large-scale video datasets. In CVPR, 2017. 3
269
+ [55] Jie Xu, Wei Wang, Hanyuan Wang, and Jinhong Guo. Multi-model ensemble with rich spatial information for object detection. Pattern Recognition, 2020. 4
270
+ [56] Zhengyuan Yang, Yixuan Zhang, Jerry Yu, Junjie Cai, and Jiebo Luo. End-to-end multi-modal multi-task vehicle control for self-driving cars with visual perceptions. In ICPR, 2018. 3, 4
271
+ [57] Éloi Zablocki, Hédi Ben-Younes, Patrick Pérez, and Matthieu Cord. Explainability of vision-based autonomous driving systems: Review and challenges. arXiv preprint arXiv:2101.05307, 2021. 2
272
+ [58] Wenyuan Zeng, Wenjie Luo, Simon Suo, Abbas Sadat, Bin Yang, Sergio Casas, and Raquel Urtasun. End-to-end interpretable neural motion planner. In CVPR, 2019. 3
273
+ [59] Jimuyang Zhang and Eshed Ohn-Bar. Learning by watching. In CVPR, 2021. 1, 3
274
+ [60] Zhejun Zhang, Alexander Liniger, Dengxin Dai, Fisher Yu, and Luc Van Gool. End-to-end urban driving by imitating a reinforcement learning coach. In ICCV, 2021. 1, 3, 4, 7, 9
275
+ [61] Albert Zhao, Tong He, Yitao Liang, Haibin Huang, Guy Van den Broeck, and Stefano Soatto. Sam: Squeeze-and-mimic networks for conditional visual driving policy learning. In CoRL, 2021. 3
276
+ [62] Yinuo Zhao, Kun Wu, Zhiyuan Xu, Zhengping Che, Qi Lu, Jian Tang, and Chi Harold Liu. Cadre: A cascade deep reinforcement learning framework for vision-based autonomous urban driving. In AAAI, 2022. 3
277
+ [63] Zeyu Zhu and Huijing Zhao. Multi-task conditional imitation learning for autonomous navigation at crowded intersections. arXiv preprint arXiv:2202.10124, 2022. 3, 4
278
+
279
+ # Checklist
280
+
281
+ The checklist follows the references. Please read the checklist guidelines carefully for information on how to answer these questions. For each question, change the default [TODO] to [Yes] , [No] , or [N/A] . You are strongly encouraged to include a justification to your answer, either by referencing the appropriate section of your paper or providing a brief inline description. For example:
282
+
283
+ • Did you include the license to the code and datasets? [Yes] See Section XX.
284
+ • Did you include the license to the code and datasets? [No] The code and the data are proprietary.
285
+ • Did you include the license to the code and datasets? [N/A]
286
+
287
+ Please do not modify the questions and only use the provided macros for your answers. Note that the Checklist section does not count towards the page limit. In your paper, please delete this instructions block and only keep the Checklist section heading above along with the questions/answers below.
288
+
289
+ 1. For all authors...
290
+
291
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
292
+ (b) Did you describe the limitations of your work? [Yes] See the Supplementary.
293
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See the Supplementary.
294
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
295
+
296
+ 2. If you are including theoretical results...
297
+
298
+ (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]
299
+
300
+ 3. If you ran experiments...
301
+
302
+ (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] The zip file of source code and the URL of data are in the Supplementary.
303
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Sec. 4.1 and the Supplementary.
304
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Sec. 4.
305
+ (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 the Supplementary.
306
+
307
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
308
+
309
+ (a) If your work uses existing assets, did you cite the creators? [Yes] We use the CARLA simulator and pretrained ResNet model.
310
+ (b) Did you mention the license of the assets? [Yes] See the Supplementary.
311
+ (c) Did you include any new assets either in the supplemental material or as a URL? [Yes] The zip file of source code and the URL of data are in the Supplementary.
312
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [No] CARLA is a public simulator.
313
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] Data in the public simulator does not have these issues.
314
+
315
+ 5. If you used crowdsourcing or conducted research with human subjects...
316
+
317
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
318
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
319
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/dev/DhmYYrH_M3m/DhmYYrH_M3m_content_list.json ADDED
@@ -0,0 +1,1356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Trajectory-guided Control Prediction for End-to-end Autonomous Driving: A Simple yet Strong Baseline ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 181,
8
+ 122,
9
+ 818,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Penghao Wu∗† Shanghai AI Laboratory \nShanghai Jiao Tong University \nwupenghaocraig@sjtu.edu.cn ",
17
+ "bbox": [
18
+ 184,
19
+ 226,
20
+ 408,
21
+ 282
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Li Chen∗ Shanghai AI Laboratory lichen@pjlab.org.cn ",
28
+ "bbox": [
29
+ 650,
30
+ 226,
31
+ 812,
32
+ 268
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Xiaosong Jia∗ Shanghai Jiao Tong University Shanghai AI Laboratory jiaxiaosong@sjtu.edu.cn ",
39
+ "bbox": [
40
+ 428,
41
+ 226,
42
+ 629,
43
+ 281
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Hongyang Li ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 470,
53
+ 303,
54
+ 563,
55
+ 318
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Junchi Yan† Shanghai Jiao Tong University Shanghai AI Laboratory yanjunchi@sjtu.edu.cn ",
62
+ "bbox": [
63
+ 189,
64
+ 303,
65
+ 393,
66
+ 358
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Yu Qiao Shanghai AI Laboratory qiaoyu@pjlab.org.cn ",
73
+ "bbox": [
74
+ 643,
75
+ 303,
76
+ 807,
77
+ 345
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Shanghai AI Laboratory Shanghai Jiao Tong University lihongyang@pjlab.org.cn ",
84
+ "bbox": [
85
+ 416,
86
+ 318,
87
+ 617,
88
+ 359
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "Abstract ",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 462,
98
+ 395,
99
+ 535,
100
+ 411
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Current end-to-end autonomous driving methods either run a controller based on a planned trajectory or perform control prediction directly, which have spanned two separately studied lines of research. Seeing their potential mutual benefits to each other, this paper takes the initiative to explore the combination of these two well-developed worlds. Specifically, our integrated approach has two branches for trajectory planning and direct control, respectively. The trajectory branch predicts the future trajectory, while the control branch involves a novel multi-step prediction scheme such that the relationship between current actions and future states can be reasoned. The two branches are connected so that the control branch receives corresponding guidance from the trajectory branch at each time step. The outputs from two branches are then fused to achieve complementary advantages. Our results are evaluated in the closed-loop urban driving setting with challenging scenarios using the CARLA simulator. Even with a monocular camera input, the proposed approach ranks first on the official CARLA Leaderboard, outperforming other complex candidates with multiple sensors or fusion mechanisms by a large margin. The source code is publicly available at https://github.com/OpenPerceptionX/TCP. ",
107
+ "bbox": [
108
+ 233,
109
+ 426,
110
+ 766,
111
+ 647
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "1 Introduction ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 174,
121
+ 672,
122
+ 310,
123
+ 690
124
+ ],
125
+ "page_idx": 0
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "End-to-end autonomous driving methods, which directly map raw sensor data to a planned trajectory or low-level control actions, show the virtue of simplicity, conceptually avoiding the cascading error of complex modular design and heavy hand-crafted rules. The output prediction of the model for end-toend autonomous driving generally falls into two forms: trajectory/waypoints [48, 4, 11, 46, 15, 29, 10] and direct control actions [17, 39, 18, 42, 12, 60, 9]. However, there is still no clear conclusion as to which of these two forms is better for all circumstances or certain scenarios. ",
130
+ "bbox": [
131
+ 174,
132
+ 704,
133
+ 825,
134
+ 787
135
+ ],
136
+ "page_idx": 0
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Different from control predictions that could be directly applied to the vehicle, for methods that plan trajectory, additional controllers such as PID controllers are usually needed as a subsequent step to convert the planned trajectory into control signals. One attractive and potential supremacy of trajectory-based prediction is that it actually considers a relatively longer time horizon into the future and could be further combined with other modules (e.g., multi-agent trajectory prediction [59, 10], semantic or occupancy prediction modules [15, 8, 25]) to reduce possible collisions. However, turning the trajectory into control actions so that the vehicle could follow the planned trajectory is not trivial [57]. The industry usually adopts sophisticated control algorithms such as model predictive control to achieve reliable trajectory-following performance [5, 21]. Simple PID controllers may perform worse in situations such as taking a big turn or starting at the red light due to the inertial problem of end-to-end models [29]. For control-based methods, the control signals are directly optimized. Nevertheless, their focus on the current step may cause deferred reactions to avoid potential collisions with other moving agents. The independence between the control predictions of different steps also makes the actions of the vehicle more unstable or discontinuous. Fig. 1 shows two typical cases where two paradigms fail respectively. How to combine these two forms of prediction model as well as their outputs is an interesting yet relatively rarely studied area, which motivates this work. ",
141
+ "bbox": [
142
+ 174,
143
+ 794,
144
+ 825,
145
+ 863
146
+ ],
147
+ "page_idx": 0
148
+ },
149
+ {
150
+ "type": "image",
151
+ "img_path": "images/dc328a5f264bf26dbd64785b080f1b34da0a839f92d97a09d835508162b051d8.jpg",
152
+ "image_caption": [
153
+ "Figure 1: Typical failure cases of two prediction paradigms. Red dots indicate the trajectory prediction, blue dots are the actual path following the red trajectory with PID controllers, and green dots denote the actual path from control-based method. (a) trajectory-based methods may struggle for big turns. (b) control-based methods may have a reaction latency and suffer from abrupt obstacles due to focusing on current time step only. These observations motivate us to propose a unified framework to combine these two worlds for mutual benefits. "
154
+ ],
155
+ "image_footnote": [],
156
+ "bbox": [
157
+ 174,
158
+ 88,
159
+ 823,
160
+ 191
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "",
167
+ "bbox": [
168
+ 174,
169
+ 338,
170
+ 825,
171
+ 491
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "One straightforward (but in fact rarely studied in literature) idea is to train a control prediction model and a trajectory planning model separately, and combine their ultimate outputs directly. It can be viewed as an ensemble of two different models. However, such a naive approach not only doubles the size of the model, but also ignores possible useful correlations between these two forms. To this end, we introduce the TCP (Trajectory-guided Control Prediction) framework, packing these two branches into a unified framework. It can be viewed as a multi-task learning (MTL) [7, 2] framework where a shared backbone extracts common features with decreased computational complexity as well as the increased ability of generalization due to the close relationship between the two tasks [38, 34, 13]. Furthermore, to address the drawbacks of current control prediction methods, we delicately devise a novel multi-step control branch and a trajectory-guided control prediction scheme. ",
178
+ "bbox": [
179
+ 174,
180
+ 497,
181
+ 825,
182
+ 636
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "While trajectory planning considers several steps into the future, directly learning the control in a behavior cloning fashion [44, 41, 17, 18, 11] often focuses on the current time step only, given prior on each state-action pair as independent and identical distributed (IID). This assumption is not accurate and may hamper the long-term performance since the driving task is a sequential decisionmaking problem. To alleviate the problem, we propose to predict multi-step control actions into the future. However, the multi-step control process needs interactions with the environment. Thus we formulate a temporal module to learn the forward process and interactions between the ego agent and the environment. A temporal module implemented with GRU [16] progressively deals with the feature representation for each time step, implicitly taking into account the dynamic motion of agents, interaction among them and dynamic environment information such as the changing of traffic lights. ",
189
+ "bbox": [
190
+ 174,
191
+ 642,
192
+ 825,
193
+ 780
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Additionally, to generate accurate control signals in the multi-step prediction scheme, the model should retrieve proper location information from current sensor input for different future time steps. For example, an agent may pay more attention to nearby regions for a few early future time steps and far away regions for the remote ones. Considering that the knowledge has already been partly encoded in the trajectory branch, we adopt the attention mechanism to locate those critical and helpful areas in the long-term trajectory prediction branch, and guide the control prediction branch to pay attention to them at each future step in a corresponding way. As a result, our model is capable of reasoning about how to optimize current control prediction so that the future states are similar to those from the expert when the predicted control actions are applied. ",
200
+ "bbox": [
201
+ 174,
202
+ 786,
203
+ 825,
204
+ 911
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "With the predicted trajectory and control signals from two branches, we propose a situation based fusion scheme to adaptively combine these two forms in a self-ensemble way to form the ultimate output according to the experiments results and prior knowledge. It combines the best of these two forms, which further boosts the performance under different scenarios. ",
211
+ "bbox": [
212
+ 174,
213
+ 92,
214
+ 825,
215
+ 147
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "TCP has shown superior performance when being validated in the CARLA driving simulator [20]. Our method, which only uses a monocular camera, achieves a 75.137 driving score and ranks 1st on the public CARLA Leaderboard [1], even surpassing prior state-of-the-art methods using multiple cameras and a LiDAR by 13.291 points. The main contributions of this paper include: ",
222
+ "bbox": [
223
+ 176,
224
+ 154,
225
+ 825,
226
+ 209
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "• We examine two dominant paradigms for end-to-end autonomous driving: trajectory planning and direct control, and propose to combine them in an integrated learning pipeline. To our knowledge, this is the first time that such two branches are jointly learned and fused for prediction. \n• A multi-step control prediction branch with a temporal module and trajectory-guided attention is devised to enable temporal reasoning. To combine the best of two branches, we design a situation based scheme to fuse the two outputs. \n• As a simple yet strong baseline, our method with only a monocular camera as input achieves new state-of-the-art on the CARLA Leaderboard with many competitors using multiple sensors. We conduct thorough ablation studies to verify the effectiveness of our approach. ",
233
+ "bbox": [
234
+ 217,
235
+ 219,
236
+ 825,
237
+ 367
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "2 Related Work ",
244
+ "text_level": 1,
245
+ "bbox": [
246
+ 174,
247
+ 385,
248
+ 321,
249
+ 402
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "2.1 End-to-end Autonomous Driving ",
256
+ "text_level": 1,
257
+ "bbox": [
258
+ 176,
259
+ 416,
260
+ 441,
261
+ 431
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "Learning-based end-to-end autonomous driving has emerged as an active research topic in recent years. Studies usually fall into two categories: reinforcement learning (RL) and imitation learning. RL is a promising way to address the problem of being more robust to the distribution shifts of datasets. Liang et al. [39] use DDPG to train a policy which is pre-trained in a supervised way. Kendall et al. [30] train their deep RL algorithm onboard to efficiently learn to drive a real-world vehicle. The perception task is decoupled out of the online RL process in [50, 9, 62]. The model-based method WoR [12] assumes world on rails and uses policy distillation to realize powerful performance. ",
268
+ "bbox": [
269
+ 173,
270
+ 441,
271
+ 825,
272
+ 539
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "Imitation learning (IL), especially behavior cloning, collects recorded data for models to mimic with high data efficiency. The expert data typically has two forms, trajectories and control actions. Zeng et al. [58] train a cost volume to generate the planning route, while [49, 8, 25] explicitly design safety and comfort costs based on semantic occupancy maps to select the best one in the expert trajectory sets. Zhang et al. [59] predict trajectories of surrounding vehicles with labeled BEV map. LBC [11] and NEAT [15] decode waypoints from a dense heatmap or offset map. These approaches aforementioned all utilize a relatively dense representation to obtain results which increases model complexity. Transfuser and its variants [46, 29] adopt a simple GRU to auto-regress waypoints. LAV [10] adopts a temporal GRU module to further refine the trajectory. They unanimously achieve impressive performance on the CARLA leaderboard, motivating us to adapt the auto-regression scheme as well in our design. On the other hand, all trajectory-based methods use PID controllers to get the ultimate actions, which may cause inferior effects in complicated scenarios. ",
279
+ "bbox": [
280
+ 173,
281
+ 545,
282
+ 825,
283
+ 710
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "Another genre to predict control actions directly is proposed in [44, 40, 3, 54]. CIL [17] adds a measurement encoder and multiple branches for different high level commands with the image encoder. CILRS [18] is proposed afterwards and further introduces a speed prediction head. They stand as classic baselines for IL in the CARLA driving simulator. Diverse optimized approaches are presented based on them, such as multi-modal inputs [22, 53], multi-task learning [56, 37, 24, 27, 31, 26, 63], dataset aggregation [45] and knowledge distillation [61, 60]. However, the compact control-based methods often have higher vehicles collision rates, remaining an interesting domain to explore. Similar work exists in other related domains such as robotic navigation as well. [43] learns a controller after a local trajectory planner to improve the overall navigation behavior. ",
290
+ "bbox": [
291
+ 173,
292
+ 717,
293
+ 825,
294
+ 842
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "2.2 Multi-task and Ensemble Learning for Autonomous Driving ",
301
+ "text_level": 1,
302
+ "bbox": [
303
+ 174,
304
+ 857,
305
+ 630,
306
+ 872
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "Multi-task learning is a popular approach to train several related tasks simultaneously to help each other and improve generalization [7, 2]. Combinations of various autonomous driving tasks such as object detection, lane detection, semantic segmentation, depth estimation, etc. have been proved to be capable of achieving incredible performance [38, 14, 47, 34, 52, 13]. MTL is also suitable in the end-to-end problem since it is observed the performance of a direct mapping from an image to control signals is limited. [56] adds a speed prediction task similar to CIL [17] and [63] separates the lateral and longitudinal controls as two tasks. LAV [10] trains an extra scene mapping network, and [24, 27, 29] additionally predict optical flow or dense depth. Our idea of training trajectory and control simultaneously is closely related to FASNet [31]. FASNet predicts future positions of the ego agent as an auxiliary task and adds a kinematic loss considering the relation between control and locations. However, the constrain is based on a constant velocity model which neglects the important throttle and brake, and it does not work at the inference time. On the other hand, our TCP framework has feature interactions at an earlier stage to fully explore their potential mutual benefits. ",
313
+ "bbox": [
314
+ 174,
315
+ 883,
316
+ 823,
317
+ 911
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "",
324
+ "bbox": [
325
+ 174,
326
+ 90,
327
+ 825,
328
+ 243
329
+ ],
330
+ "page_idx": 3
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "Ensembles of models have long been utilized to improve the performance in computer vision [19, 33, 35, 51, 55, 45]. Besides the normal combination of models, two classic ensemble learning methods are particularly preferred in the autonomous driving regime. One is the Test-Time Augmentation (TTA), which is of great help to the 3D object detection task with LiDAR [6, 36]. Another one is the fusion of experts [28] where experts are trained on a subset of the input space and a gating network is trained to provide the fusion weights. LSD [42] and MoDE [32] divide a dataset into sub-scenarios to get different sub-policies for end-to-end autonomous driving. These traditional ensemble approaches combine models of the same structure while our approach tries to combine two different representations. Also, the multiple experts design increases the complexity of the training strategy and we seek to have a simpler situation based fusion scheme to boost the performance. ",
335
+ "bbox": [
336
+ 174,
337
+ 250,
338
+ 825,
339
+ 388
340
+ ],
341
+ "page_idx": 3
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "3 Trajectory-guided Control Prediction ",
346
+ "text_level": 1,
347
+ "bbox": [
348
+ 174,
349
+ 409,
350
+ 517,
351
+ 426
352
+ ],
353
+ "page_idx": 3
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "3.1 Problem Setting ",
358
+ "text_level": 1,
359
+ "bbox": [
360
+ 174,
361
+ 443,
362
+ 326,
363
+ 457
364
+ ],
365
+ "page_idx": 3
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "Problem formulation. Given the state x comprised of the sensor signal i, the speed of the vehicle $v$ , and the high level navigation information $\\mathbf { g }$ including a discrete navigation command and the coordinates of navigation target provided by the global planner, the end-to-end model needs to output control signals a comprised of longitudinal control signals throttle $\\in [ 0 , 1 ]$ and brake $\\in [ 0 , 1 ]$ , and the lateral control signal steer $\\in [ - 1 , 1 ]$ . ",
370
+ "bbox": [
371
+ 174,
372
+ 468,
373
+ 825,
374
+ 539
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "Conventional methods tackle this problem with either a trajectory-output or a control-output only model. However, TCP combines both of them as two branches: a trajectory branch which predicts the planned trajectory and a control branch which is guided by the trajectory one and outputs both current and multi-step control signals into the future. Both branches are trained in a supervised manner. Consider an expert which directly outputs the control signals at each step, supervising the predicted trajectory with the ground truth trajectory makes it not strictly satisfy the setting of behavior cloning in imitation learning. The ground truth trajectory indeed involves future expert actions and future states about the environment, so we formulate it as a trajectory planning task with ground truth trajectory as supervision for our trajectory branch. As for the control branch, training a control model which makes current control prediction supervised by the expert control is just behavior cloning in imitation learning, and it can be formulated as: ",
381
+ "bbox": [
382
+ 174,
383
+ 544,
384
+ 825,
385
+ 696
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "equation",
391
+ "img_path": "images/0c254f11455176f7d5c53eea78227e0b74fd4ce54c0c8b5e8642e58c2f7939ed.jpg",
392
+ "text": "$$\n\\arg \\operatorname* { m i n } _ { \\theta } \\mathbb { E } _ { ( \\mathbf { x } , \\mathbf { a } ^ { * } ) \\sim \\mathrm { D } } [ \\mathcal { L } ( \\mathbf { a } ^ { * } , \\pi _ { \\theta } ( \\mathbf { x } ) ) ] ,\n$$",
393
+ "text_format": "latex",
394
+ "bbox": [
395
+ 383,
396
+ 705,
397
+ 611,
398
+ 728
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "where $D = \\{ ( { \\bf x } , { \\bf a } ^ { * } ) \\}$ is a dataset comprised of state-action pairs collected from the expert. $\\pi _ { \\theta }$ denotes the policy of the control branch, and $\\mathcal { L }$ is the loss measuring how close the action from the expert and the action from our model is. The expert collects the dataset by controlling the vehicle and interacting with the world. Each collected route is a trajectory $\\xi = ( { \\bf x } _ { 0 } , { \\bf a } _ { 0 } ^ { * } , { \\bf x } _ { 1 } , { \\bf a } _ { 1 } ^ { * } , \\cdot \\cdot \\ , { \\bf x } _ { \\mathrm { T } } )$ as a sequence of state action pairs $\\{ ( \\mathbf { x } _ { \\mathrm { i } } , \\mathbf { a } _ { \\mathrm { i } } ^ { * } ) \\} _ { \\mathrm { i = 0 } } ^ { \\mathrm { T } }$ , which is then added into the whole dataset $D$ . ",
405
+ "bbox": [
406
+ 174,
407
+ 738,
408
+ 823,
409
+ 809
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "Expert demonstration. Here we choose Roach [60] as the expert. Roach is a simple model trained by RL with privileged information, including roads, lanes, routes, vehicles, pedestrians, traffic lights, and stops, all being rendered into a 2D BEV image. Such a learning-based expert can transfer more information besides the direct supervision signals compared with an expert made by hand-crafted rules. Specifically, we have a feature loss which forces the latent features before the final output head from the student model to be similar to that of the expert. A value loss is also added as an auxiliary task for the student model to predict an expected return. ",
416
+ "bbox": [
417
+ 174,
418
+ 814,
419
+ 825,
420
+ 911
421
+ ],
422
+ "page_idx": 3
423
+ },
424
+ {
425
+ "type": "image",
426
+ "img_path": "images/fee42be328edcdba4670ef51cd570a25aecc8c5ad8913a4b67b4fa9191c7581f.jpg",
427
+ "image_caption": [
428
+ "Figure 2: Overview of Trajectory-guided Control Prediction (TCP). The encoded features are shared by the trajectory and multi-step control branch. The trajectory branch provides per-step guidance for multi-step control prediction. Outputs from two branches are combined according to our situation based fusion scheme to generate the ultimate control actions. "
429
+ ],
430
+ "image_footnote": [],
431
+ "bbox": [
432
+ 230,
433
+ 93,
434
+ 767,
435
+ 270
436
+ ],
437
+ "page_idx": 4
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "3.2 Architecture Design ",
442
+ "text_level": 1,
443
+ "bbox": [
444
+ 174,
445
+ 366,
446
+ 352,
447
+ 381
448
+ ],
449
+ "page_idx": 4
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "Overview. As illustrated in Fig. 2, the whole architecture is comprised of an input encoding stage and two subsequent branches. The input image i goes through a CNN based image encoder, such as ResNet [23], to generate a feature map $\\mathbf { F }$ . In the meantime, the navigation information $\\mathbf { g }$ is concatenated with the current speed $v$ to form the measurement input m, then an MLP based measurement encoder takes m as its input and outputs the measurement feature $\\mathbf { j } _ { \\mathrm { { m } } }$ . The encoded features are then shared by two branches for subsequent trajectory and control predictions. Specifically, the control branch is a novel multi-step prediction design with guidance from the trajectory one, which will be illustrated in detail in the following sections. Finally, a situation based fusion scheme is adopted to combine the best of the two output paradigms. We will go over each part in detail below. ",
454
+ "bbox": [
455
+ 173,
456
+ 390,
457
+ 825,
458
+ 516
459
+ ],
460
+ "page_idx": 4
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "3.2.1 Trajectory planning branch ",
465
+ "text_level": 1,
466
+ "bbox": [
467
+ 176,
468
+ 531,
469
+ 418,
470
+ 546
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "Different from control prediction which directly predicts control actions, the trajectory planning branch first generates a planned trajectory comprised of waypoints at $K$ steps for the agent to follow, and then the trajectory is processed by low-level controllers to get the final control actions. With the shared feature from the input encoder, the image feature map $\\mathbf { F }$ is average pooled and concatenated with the measurement feature $\\mathbf { j } _ { \\mathrm { { m } } }$ to form $\\mathbf { j } ^ { \\mathrm { t r a j } }$ . Inspired by [46], we feed $\\mathbf { \\hat { j } } ^ { \\mathrm { t r a j } }$ into a GRU [16] to auto-regressively obtain future waypoints one by one to form the planned trajectory altogether. ",
477
+ "bbox": [
478
+ 174,
479
+ 554,
480
+ 825,
481
+ 638
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "We have two PID controllers for longitudinal and lateral control respectively. With the planned trajectory, we first calculate the vectors between consecutive waypoints. The magnitudes of these vectors represent the desired speed and are sent to the longitudinal controller to generate throttle and brake control actions, and the orientations are sent to the lateral controller to get the steer action. ",
488
+ "bbox": [
489
+ 174,
490
+ 643,
491
+ 825,
492
+ 700
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "3.2.2 Multi-step control prediction branch ",
499
+ "text_level": 1,
500
+ "bbox": [
501
+ 176,
502
+ 714,
503
+ 478,
504
+ 729
505
+ ],
506
+ "page_idx": 4
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "As discussed in Sec. 3.1, for a control model predicting current control actions based on current input only, the supervised training is just behavior cloning, which relies on the independent and identically distributed (IID) assumption. This assumption apparently does not hold because of the distribution shifts in test cases, since the closed-loop tests require sequential decision making where the historical actions will affect the future states and actions. Instead of modeling it as a Markov Decision Process (MDP) and resorting to reinforcement learning, here we devise a simple way to mitigate the problem by predicting multi-step control into the future. ",
511
+ "bbox": [
512
+ 174,
513
+ 738,
514
+ 825,
515
+ 835
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "Given the current state $\\mathbf { x } _ { \\mathrm { t } }$ , now our multi-step control prediction branch outputs multiple actions: $\\pi _ { \\theta _ { m u l t i } } = ( \\mathbf { a } _ { \\mathrm { t } } , \\mathbf { a } _ { \\mathrm { t + 1 } } , \\cdot \\cdot \\cdot , \\mathbf { a } _ { \\mathrm { t + K } } )$ . However, it is difficult to predict future control actions since we only have sensor inputs at the current time step. Towards this problem, we devise a temporal module to implicitly carry out the changing and interaction process of the environment and our agent. It is supposed to provide mainly dynamic information about the environment and the status of the agent itself, such as the motion of other objects, the changing of traffic lights, and the status of the ego agent. Meanwhile, to improve the ability of incorporating critical static information (e.g., curbs and lanes) and boost the spatial consistency of two branches, we propose to use the trajectory branch to guide the control counterpart to attend to proper regions of the input image at each future time step. ",
522
+ "bbox": [
523
+ 174,
524
+ 842,
525
+ 823,
526
+ 911
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "",
533
+ "bbox": [
534
+ 174,
535
+ 90,
536
+ 825,
537
+ 147
538
+ ],
539
+ "page_idx": 5
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "Temporal module. Our temporal module is implemented with a GRU for better consistency with the trajectory branch. At step $t$ $( 0 \\leq t \\leq K - 1 )$ , the input for the temporal module is the concatenation of the current feature $\\mathbf { j } _ { \\mathrm { t } } ^ { \\mathrm { c t l } }$ (more construction details in the next section) and current predicted action $\\mathbf { a } _ { \\mathrm { t } }$ , which is a compact representation about the current states of the environment and the agent itself. The temporal module is supposed to reason about the dynamic changing process based on current feature vector and the predicted action. Then the updated hidden state $\\bar { \\mathbf { h } } _ { \\mathrm { t + 1 } } ^ { \\mathrm { c t l } }$ will contain dynamic information about the environment and the updated status of the agent at time step $t + 1$ . To some extent, the temporal module acts as a coarse simulator with the whole environment and the agent being abstracted as a feature vector. It then simulates the interaction between the environment and the agent based on current prediction of actions. ",
544
+ "bbox": [
545
+ 173,
546
+ 152,
547
+ 825,
548
+ 292
549
+ ],
550
+ "page_idx": 5
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "Trajectory-guided attention. With the sensor input at current step only, it is hard to pick out desirable regions where the model should focus on at future steps. However, the location of the ego agent contains important cues about how to find those regions containing critical static information for control prediction at each step. ",
555
+ "bbox": [
556
+ 173,
557
+ 299,
558
+ 825,
559
+ 354
560
+ ],
561
+ "page_idx": 5
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "Therefore, we seek help from the trajectory planning branch to get information about the possible location of our agent at that corresponding step. As shown in Fig. 3, TCP implements this by learning an attention map to extract important information from the encoded feature map. The interaction between two branches enhances the consistency of these two strongly related output paradigms and further elaborates the multi-task spirit. Specifically, with the 2D feature map extracted by the image encoder $\\mathbf { F }$ at time step $t \\left( 1 \\leq t \\leq K \\right)$ , we calculate an attention map $\\mathbf { w } _ { \\mathrm { t } } \\in \\mathbb { R } ^ { 1 \\times \\mathrm { H } \\times \\mathrm { W } }$ using the corresponding hidden states from the control branch and the trajectory branch: ",
566
+ "bbox": [
567
+ 173,
568
+ 361,
569
+ 459,
570
+ 582
571
+ ],
572
+ "page_idx": 5
573
+ },
574
+ {
575
+ "type": "image",
576
+ "img_path": "images/25b080d38b97bd1dfc38f40927262d28a3b1c74c42cf2a7dda2e2fb99ef54e45.jpg",
577
+ "image_caption": [
578
+ "Figure 3: Detailed trajectory guiding process. For predictions at time step $t$ , the hidden states from the waypoint GRU and the temporal module are combined to learn an attention weight map to re-aggregate the 2D image feature map for control prediction. "
579
+ ],
580
+ "image_footnote": [],
581
+ "bbox": [
582
+ 472,
583
+ 366,
584
+ 823,
585
+ 500
586
+ ],
587
+ "page_idx": 5
588
+ },
589
+ {
590
+ "type": "equation",
591
+ "img_path": "images/47f265125f1ec50517a85a1d219a63de9fd06fa429fc489727daced7c8b1bc5c.jpg",
592
+ "text": "$$\n\\mathbf { w } _ { \\mathrm { t } } = \\mathrm { M L P } ( \\mathrm { C o n c a t } [ \\mathbf { h } _ { \\mathrm { t } } ^ { \\mathrm { t r a j } } , \\mathbf { h } _ { \\mathrm { t } } ^ { \\mathrm { c t l } } ] ) .\n$$",
593
+ "text_format": "latex",
594
+ "bbox": [
595
+ 385,
596
+ 585,
597
+ 611,
598
+ 604
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "The attention map $\\mathbf { w } _ { \\mathrm { t } } \\in \\mathbb { R } ^ { 1 \\times \\mathrm { H } \\times \\mathrm { W } }$ is adopted to aggregate the feature map $\\mathbf { F }$ for this step. We then combine the attended feature map with $\\mathbf { h } _ { \\mathrm { t } } ^ { \\mathrm { c t l } }$ to form the informative representation feature $\\mathbf { j } _ { \\mathrm { t } } ^ { \\mathrm { c t l } }$ containing both static and dynamic information about the environment and the ego agent. The process can be described as follows: ",
605
+ "bbox": [
606
+ 174,
607
+ 609,
608
+ 825,
609
+ 666
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "equation",
615
+ "img_path": "images/3c9f4b4a79e1a9c6f15088941125bd50c3647447a9691bb3192b00e49433693c.jpg",
616
+ "text": "$$\n\\mathbf { j } _ { \\mathrm { t } } ^ { \\mathrm { c t l } } = \\mathrm { M L P } ( \\mathrm { C o n c a t } [ \\mathrm { S u m } ( \\mathrm { S o f t m a x } ( \\mathbf { w } _ { \\mathrm { t } } ) \\odot \\mathbf { F } ) , \\mathbf { h } _ { \\mathrm { t } } ^ { \\mathrm { c t l } } ] ) .\n$$",
617
+ "text_format": "latex",
618
+ "bbox": [
619
+ 316,
620
+ 675,
621
+ 679,
622
+ 694
623
+ ],
624
+ "page_idx": 5
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "The informative representation feature $\\mathbf { j } _ { \\mathrm { t } } ^ { \\mathrm { c t l } }$ is fed into a policy head which is shared among all time steps to predict the corresponding control action $\\mathbf { a } _ { \\mathrm { t } }$ . Note that for the initial step, we only use the measurement feature to calculate the initial attention map and combine the attended image feature with the measurement feature to form the initial feature vector $\\mathbf { j } _ { 0 } ^ { \\mathrm { c t l } }$ . To guarantee the feature $\\mathbf { j } _ { \\mathrm { t } } ^ { \\mathrm { c t l } }$ does describe the state at that step and contain the important information for control prediction, we add a feature loss at each step to make $\\mathbf { j } _ { \\mathrm { t } } ^ { \\mathrm { c t l } }$ close to the feature of the expert as well. ",
629
+ "bbox": [
630
+ 173,
631
+ 704,
632
+ 825,
633
+ 789
634
+ ],
635
+ "page_idx": 5
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "To this end, our TCP framework endows the model with the reasoning ability along a short time horizon. It emphasizes how to make current control prediction close to the one from the expert. Furthermore, it takes into account what current control prediction can make the environment states and status of ego agent in future time steps similar to the ones from the expert. ",
640
+ "bbox": [
641
+ 174,
642
+ 795,
643
+ 825,
644
+ 851
645
+ ],
646
+ "page_idx": 5
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "3.3 Loss Design ",
651
+ "text_level": 1,
652
+ "bbox": [
653
+ 174,
654
+ 869,
655
+ 295,
656
+ 885
657
+ ],
658
+ "page_idx": 5
659
+ },
660
+ {
661
+ "type": "text",
662
+ "text": "Our loss contains trajectory planning loss $\\mathcal { L } _ { t r a j }$ , control prediction $\\mathcal { L } _ { c t l }$ , and auxiliary loss $\\mathcal { L } _ { a u x }$ ",
663
+ "bbox": [
664
+ 171,
665
+ 896,
666
+ 805,
667
+ 912
668
+ ],
669
+ "page_idx": 5
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "For the trajectory planning branch, the loss $\\mathcal { L } _ { t r a j }$ can be expressed as: ",
674
+ "bbox": [
675
+ 173,
676
+ 90,
677
+ 633,
678
+ 107
679
+ ],
680
+ "page_idx": 6
681
+ },
682
+ {
683
+ "type": "equation",
684
+ "img_path": "images/8f9c417e8d44545ec7cba4c9784e875fcb2d8dcfd37e235b59816c92fc49e844.jpg",
685
+ "text": "$$\n\\mathcal { L } _ { t r a j } = \\sum _ { t = 1 } ^ { K } \\| \\mathbf { w p } _ { \\mathrm { t } } - \\mathbf { w } \\mathbf { \\hat { p } } _ { \\mathrm { t } } \\| _ { 1 } + \\lambda _ { \\mathrm { F } } \\cdot \\mathcal { L } _ { \\mathrm { F } } \\left( \\mathbf { j } _ { 0 } ^ { \\mathrm { t r a j } } , \\mathbf { j } _ { 0 } ^ { \\mathrm { E x p e r t } } \\right) ,\n$$",
686
+ "text_format": "latex",
687
+ "bbox": [
688
+ 312,
689
+ 113,
690
+ 684,
691
+ 156
692
+ ],
693
+ "page_idx": 6
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "where $\\mathbf { w p } _ { \\mathrm { t } } , \\mathbf { w } \\mathbf { \\hat { p } _ { \\mathrm { t } } }$ are the predicted and ground truth waypoint at the $t ^ { t h }$ step respectively. $\\mathcal { L } _ { F }$ indicates the feature loss measuring the $L _ { 2 }$ distance between $\\mathbf { j } _ { 0 } ^ { \\mathrm { t r a j } }$ j and the feature jEx0 pert from the expert at the current step as an additional supervision signal [60]. $\\lambda _ { F }$ is a tunable loss weight. ",
698
+ "bbox": [
699
+ 174,
700
+ 162,
701
+ 825,
702
+ 209
703
+ ],
704
+ "page_idx": 6
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "For the control prediction branch, we model the action as a beta distribution. The loss $\\mathcal { L } _ { c t l }$ is: ",
709
+ "bbox": [
710
+ 173,
711
+ 214,
712
+ 785,
713
+ 229
714
+ ],
715
+ "page_idx": 6
716
+ },
717
+ {
718
+ "type": "equation",
719
+ "img_path": "images/6b9bee417c2aa9d56263b0b28438619aef5954f13c1005e336979b127873ecda.jpg",
720
+ "text": "$$\n\\begin{array} { r l r } { { \\mathcal { L } _ { c t l } = \\mathbf { K } \\mathbf { L } ( \\mathrm { B e t a } ( \\mathbf { a } _ { 0 } ) | | \\mathrm { B e t a } ( \\hat { \\mathbf { a } } _ { 0 } ) ) + \\frac { 1 } { K } \\sum _ { t = 1 } ^ { K } \\mathbf { K } \\mathbf { L } ( \\mathrm { B e t a } ( \\mathbf { a } _ { \\mathrm { t } } ) | | \\mathrm { B e t a } ( \\hat { \\mathbf { a } } _ { \\mathrm { t } } ) ) } } \\\\ & { } & { + \\lambda _ { F } \\cdot \\mathcal { L } _ { F } ( \\mathbf { j } _ { 0 } ^ { \\mathrm { c t l } } , \\mathbf { j } _ { 0 } ^ { \\mathrm { E x p e r t } } ) + \\frac { 1 } { K } \\sum _ { t = 1 } ^ { K } \\mathcal { L } _ { F } ( \\mathbf { j } _ { \\mathrm { t } } ^ { \\mathrm { c t l } } , \\mathbf { j } _ { \\mathrm { t } } ^ { \\mathrm { E x p e r t } } ) , } \\end{array}\n$$",
721
+ "text_format": "latex",
722
+ "bbox": [
723
+ 264,
724
+ 234,
725
+ 730,
726
+ 324
727
+ ],
728
+ "page_idx": 6
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "where $\\mathrm { B e t a } ( \\mathbf { a } )$ denotes the beta distribution represented by the corresponding predicted distribution parameters and KL-divergence is used to measure the similarity between the predicted control distribution and the one from expert, i.e., Beta(aˆ). Feature loss is applied here as well. Note that all losses for future time steps $( t \\geq 1 )$ ) are averaged and then added to the loss for the current time step $( t = 0$ ), since the action executed immediately should be our key target to optimize. ",
733
+ "bbox": [
734
+ 174,
735
+ 329,
736
+ 825,
737
+ 398
738
+ ],
739
+ "page_idx": 6
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "To help the agent better estimate its current state, we add a speed prediction head to predict current speed $s$ from the image feature and a value prediction head to predict the expected return estimated by the expert, similarly as in [60]. We take the $L _ { 1 }$ loss for the speed prediction and $L _ { 2 }$ loss for the value prediction, denoting their weighted sum as $\\mathcal { L } _ { a u x }$ . ",
744
+ "bbox": [
745
+ 174,
746
+ 405,
747
+ 825,
748
+ 462
749
+ ],
750
+ "page_idx": 6
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "The overall loss is as follows, as weighted by $\\lambda _ { t r a j } , \\lambda _ { c t l } , \\lambda _ { a u x }$ : ",
755
+ "bbox": [
756
+ 174,
757
+ 467,
758
+ 586,
759
+ 482
760
+ ],
761
+ "page_idx": 6
762
+ },
763
+ {
764
+ "type": "equation",
765
+ "img_path": "images/75207cebe1df83cb9e916d658f1fe79f7ab74d832cb33adbe353d7f9cebddac3.jpg",
766
+ "text": "$$\n\\mathcal { L } = \\lambda _ { t r a j } \\cdot \\mathcal { L } _ { t r a j } + \\lambda _ { c t l } \\cdot \\mathcal { L } _ { c t l } + \\lambda _ { a u x } \\cdot \\mathcal { L } _ { a u x } .\n$$",
767
+ "text_format": "latex",
768
+ "bbox": [
769
+ 344,
770
+ 488,
771
+ 651,
772
+ 506
773
+ ],
774
+ "page_idx": 6
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "3.4 Output Fusion ",
779
+ "text_level": 1,
780
+ "bbox": [
781
+ 174,
782
+ 520,
783
+ 313,
784
+ 535
785
+ ],
786
+ "page_idx": 6
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "We have two forms of output representations from our TCP framework: the planned trajectory and the predicted control. To further combine their advantages, we devise a situation-based fusion strategy as depicted in Algorithm 1. Specifically, denote $\\alpha$ as a combination weight whose value is between 0 to 0.5, in a certain situation where one representation is more suitable according to our prior belief, we combine the results from trajectory and control predictions by taking average with weight $\\alpha$ so that the more suitable one takes up more weight $( 1 - \\alpha )$ . Note that the combination weight $\\alpha$ indeed does not need to be ",
791
+ "bbox": [
792
+ 174,
793
+ 545,
794
+ 472,
795
+ 738
796
+ ],
797
+ "page_idx": 6
798
+ },
799
+ {
800
+ "type": "table",
801
+ "img_path": "images/098539f595937f71f2a16721946283e39b6677e8b19afaf0e58f92056957d02c.jpg",
802
+ "table_caption": [],
803
+ "table_footnote": [],
804
+ "table_body": "<table><tr><td>Algorithm1:Situation based fusion scheme to com- bine the two output paradigms</td></tr><tr><td>Input: sensory input i, speed of the ego vehicle v, high level navigation information g.</td></tr><tr><td>Hyper parameters:combination weight α E [0,0.5] Output: final control signals a</td></tr><tr><td>{wpt}=o,actl ← TCP(i,u, g) atraj ←Low-level Controller ({wpt}ε=0) a</td></tr><tr><td>Getcurrent situation if situationis trajectory specialized then</td></tr><tr><td>a←α×act1+(1-α)×atraj</td></tr><tr><td></td></tr><tr><td>else a←α×atraj+(1-α) ×actl</td></tr></table>",
805
+ "bbox": [
806
+ 486,
807
+ 530,
808
+ 823,
809
+ 728
810
+ ],
811
+ "page_idx": 6
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "a constant or symmetric, which means we can set it to different values under different situations or different for specific control signals. In our experiment, we choose the situation according to whether the ego vehicle is turning, implying that if it is turning, the situation is control specialized otherwise trajectory specialized. ",
816
+ "bbox": [
817
+ 174,
818
+ 738,
819
+ 826,
820
+ 794
821
+ ],
822
+ "page_idx": 6
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "4 Experiments ",
827
+ "text_level": 1,
828
+ "bbox": [
829
+ 174,
830
+ 813,
831
+ 312,
832
+ 830
833
+ ],
834
+ "page_idx": 6
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "4.1 Experimental Setup ",
839
+ "text_level": 1,
840
+ "bbox": [
841
+ 174,
842
+ 843,
843
+ 351,
844
+ 859
845
+ ],
846
+ "page_idx": 6
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "Task & Evaluation metrics. Our method is validated and tested in the CARLA driving simulator [20]. Given a route defined by a sequence of sparse navigation points together with high level commands (straight, turn left/right, lane changing, and lane following), the closed-loop driving task requires the autonomous agent to drive towards the destination point. It is designed to simulate realistic traffic situations and includes different challenging scenarios such as obstacle avoidance, crossing an unsignalized intersection, and sudden control loss. There are three major metrics: Driving Score, Route Completion, and Infraction Score. Route Completion is the percentage of the route completed by the autonomous agent. Infraction Score measures the number of infractions made along the route, with pedestrians, vehicles, road layouts, red lights, and etc. Driving Score is the main metric which is the product of Route Completion and Infraction Score. ",
851
+ "bbox": [
852
+ 174,
853
+ 869,
854
+ 825,
855
+ 911
856
+ ],
857
+ "page_idx": 6
858
+ },
859
+ {
860
+ "type": "table",
861
+ "img_path": "images/2f1a100f50c77049356a8acbdf4588aa785bbc7c0ace574a5e344059d7679db3.jpg",
862
+ "table_caption": [
863
+ "Table 1: Evaluation on the public CARLA Leaderboard [1] (accessed in May 2022). Our method TCP and TCP-Ens achieve a driving score of 69.714 and 75.137 respectively with only a monocular camera. More detailed infraction statistics can be found in the Supplementary. "
864
+ ],
865
+ "table_footnote": [],
866
+ "table_body": "<table><tr><td rowspan=\"2\">Rank</td><td rowspan=\"2\">Method</td><td colspan=\"2\">Sensor Inputs</td><td colspan=\"3\">Key Metrics ↑</td></tr><tr><td>#Cameras</td><td>LiDAR</td><td>Driving Score</td><td>Route Completion</td><td>Infraction Score</td></tr><tr><td>1</td><td>TCP-Ens (ours)</td><td>1</td><td>X</td><td>75.137</td><td>85.629</td><td>0.873</td></tr><tr><td>1</td><td>TCP (ours)</td><td>1</td><td>X</td><td>69.714</td><td>82.962</td><td>0.851</td></tr><tr><td>1</td><td>TCP-SB (ours)</td><td>1</td><td>X</td><td>68.695</td><td>82.957</td><td>0.833</td></tr><tr><td>2</td><td>LAV [10]</td><td>4</td><td>√</td><td>61.846</td><td>94.459</td><td>0.640</td></tr><tr><td>3</td><td>Transfuser</td><td>3</td><td>√</td><td>61.181</td><td>86.694</td><td>0.714</td></tr><tr><td>4</td><td>Latent Transfuser</td><td>3</td><td></td><td>45.029</td><td>75.366</td><td>0.618</td></tr><tr><td>5</td><td>GRIAD [9]</td><td>3</td><td>xx/</td><td>36.787</td><td>61.855</td><td>0.597</td></tr><tr><td>6</td><td>Transfuser+ [29]</td><td>4</td><td></td><td>34.577</td><td>69.841</td><td>0.562</td></tr><tr><td>7</td><td>WoR[12]</td><td>4</td><td>X</td><td>31.370</td><td>57.647</td><td>0.557</td></tr><tr><td>8</td><td>MaRLn [50]</td><td>1</td><td>X</td><td>24.980</td><td>46.968</td><td>0.518</td></tr><tr><td>9</td><td>NEAT[15]</td><td>3</td><td>X</td><td>21.832</td><td>41.707</td><td>0.650</td></tr></table>",
867
+ "bbox": [
868
+ 251,
869
+ 143,
870
+ 745,
871
+ 333
872
+ ],
873
+ "page_idx": 7
874
+ },
875
+ {
876
+ "type": "table",
877
+ "img_path": "images/54cf02afd8a2b5388701c9b2f82a3edd772dd819b3ad7704744443e308153477.jpg",
878
+ "table_caption": [
879
+ "Table 2: Comparison between the control and trajectory only model in terms of infractions frequency. TurnRatio means the corresponding ratio of happening during turning. "
880
+ ],
881
+ "table_footnote": [],
882
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">Driving Score</td><td colspan=\"2\">Collisions vehicles</td><td colspan=\"2\">Collisions layout</td><td colspan=\"2\">Off-road infractions</td><td colspan=\"2\">Agent blocked</td></tr><tr><td>#/km↓</td><td>TurnRatio</td><td>#/km↓</td><td>TurnRatio</td><td>#/km↓</td><td>TurnRatio</td><td>#/km↓</td><td>TurnRatio</td></tr><tr><td>Control-Only</td><td>32.45±2.23</td><td>1.25</td><td>50.90%</td><td>0.23</td><td>10.00%</td><td>0.59</td><td>46.15%</td><td>0.41</td><td>50.00%</td></tr><tr><td>Trajectory-Only</td><td>28.29±3.03</td><td>0.85</td><td>38.70%</td><td>0.77</td><td>64.20%</td><td>0.74</td><td>62.90%</td><td>0.77</td><td>64.20%</td></tr></table>",
883
+ "bbox": [
884
+ 176,
885
+ 407,
886
+ 826,
887
+ 472
888
+ ],
889
+ "page_idx": 7
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "",
894
+ "bbox": [
895
+ 174,
896
+ 515,
897
+ 825,
898
+ 613
899
+ ],
900
+ "page_idx": 7
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "Dataset. We use randomly generated routes under random weather conditions to collect 420K data in the 8 public towns offered by the CARLA simulator. Similar to [10], we train TCP on 189K of data in 4 out of 8 towns (Town01, Town03, Town04, and Town06) for ablations and train with all 420K data for our online leaderboard submission. ",
905
+ "bbox": [
906
+ 174,
907
+ 618,
908
+ 825,
909
+ 674
910
+ ],
911
+ "page_idx": 7
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "4.2 State-of-the-art Comparison ",
916
+ "text_level": 1,
917
+ "bbox": [
918
+ 176,
919
+ 712,
920
+ 410,
921
+ 727
922
+ ],
923
+ "page_idx": 7
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "Table 1 shows the result of the comparison between our method and the top 8 entries on the public CARLA Leaderboard [1]. We report the results of TCP and two variants. TCP-SB replaces shared encoders of TCP with two separate ones for two branches, and TCP-Ens is the ensemble of TCP and TCP-SB. Our method TCP-Ens ranks first on the leaderboard with a 75.137 driving score and highest infraction score, and TCP alone also surpasses prior methods. Note that our method only uses a monocular camera while the top 2-4 methods all use multiple cameras and a LiDAR. Our driving score is 50.157 higher than the second-best monocular camera method, MaRLn [50]. Our route completion is slightly inferior to the LiDAR candidates - one reason is that methods using LiDAR may have a better object detection ability. Based on the detection results, they usually adopt a crawling strategy, indicating that the vehicle would move slowly when it has stopped for a long time and there are no obstacles ahead. As described in [29], this could alleviate ego vehicle’s blocking problems to boost the route completion performance. ",
928
+ "bbox": [
929
+ 173,
930
+ 744,
931
+ 825,
932
+ 911
933
+ ],
934
+ "page_idx": 7
935
+ },
936
+ {
937
+ "type": "image",
938
+ "img_path": "images/53625470e10efe8de104f7eaed01f6b709a62241dccde0c71d9743b472e0849d.jpg",
939
+ "image_caption": [
940
+ "Figure 4: The trajectory-guided attention maps in two cases. In each case (row), from the left to right we show that the input image with the predicted trajectory (the first waypoint is projected out of the image), the predicted trajectory in the top-down view, the attention map $\\mathbf { w } _ { 1 }$ , the attention map $\\mathbf { w } _ { 3 }$ . "
941
+ ],
942
+ "image_footnote": [],
943
+ "bbox": [
944
+ 178,
945
+ 92,
946
+ 820,
947
+ 184
948
+ ],
949
+ "page_idx": 8
950
+ },
951
+ {
952
+ "type": "table",
953
+ "img_path": "images/5eebe91fbd82f69a1db359a12723bdc8752dbef9e86d494a30e25f3d53bce238.jpg",
954
+ "table_caption": [
955
+ "Table 3: Ablative study on the effectiveness of different components design of our model. "
956
+ ],
957
+ "table_footnote": [],
958
+ "table_body": "<table><tr><td>Exp.</td><td>Driving Score</td><td>Route Completion</td><td>Infraction Score</td></tr><tr><td>Control</td><td>32.45±2.23</td><td>76.54±3.22</td><td>0.45±0.03</td></tr><tr><td>+ traj-task</td><td>34.98±1.96</td><td>81.32±5.50</td><td>0.49±0.05</td></tr><tr><td>+ temporal</td><td>42.87±4.77</td><td>87.51±3.63</td><td>0.49±0.07</td></tr><tr><td>+ traj-attn</td><td>46.08±3.47</td><td>84.95±1.84</td><td>0.56±0.03</td></tr><tr><td>+ fusion</td><td>57.01±1.88</td><td>85.27±1.20</td><td>0.67±0.01</td></tr></table>",
959
+ "bbox": [
960
+ 176,
961
+ 294,
962
+ 488,
963
+ 391
964
+ ],
965
+ "page_idx": 8
966
+ },
967
+ {
968
+ "type": "table",
969
+ "img_path": "images/79d743380124702e004eaa2f584b254a65cc6de98406944f1b0b99bf92b3e8f1.jpg",
970
+ "table_caption": [
971
+ "Table 4: Comparison between MTL and ensemble methods ( $\\alpha$ is 0.3 for all experiments). "
972
+ ],
973
+ "table_footnote": [],
974
+ "table_body": "<table><tr><td>Exp.</td><td>Driving Score</td><td>#Param.</td><td>FLOPs</td><td>FPS</td></tr><tr><td>Ensemble</td><td>45.03±1.28</td><td>46.81M</td><td>17.07G</td><td>69.47</td></tr><tr><td>MTL</td><td>48.27±0.58</td><td>23.58M</td><td>8.54G</td><td>133.30</td></tr><tr><td>TCP-SB</td><td>52.46±4.66</td><td>47.26M</td><td>17.07G</td><td>69.35</td></tr><tr><td>TCP</td><td>57.01±1.88</td><td>25.77M</td><td>8.54G</td><td>125.71</td></tr><tr><td>TCP-Ens</td><td>59.09±3.66</td><td>73.03M</td><td>25.61G</td><td>44.70</td></tr></table>",
975
+ "bbox": [
976
+ 500,
977
+ 294,
978
+ 816,
979
+ 392
980
+ ],
981
+ "page_idx": 8
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "4.3 Control vs. Trajectory ",
986
+ "text_level": 1,
987
+ "bbox": [
988
+ 174,
989
+ 419,
990
+ 367,
991
+ 434
992
+ ],
993
+ "page_idx": 8
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "In this section, we conduct quantitative experiments to compare the Control-Only model and the Trajectory-Only model to demonstrate their advantages and disadvantages. For both models, we use the same setting except for the output head and its corresponding loss. We use a ResNet-34 to encode visual inputs and a measurement module to encode the navigation information. Similar to [60], we add speed and value heads as auxiliary tasks to help the model better encode the environment. For Control-Only, we predict the control distribution based on the concatenated latent feature from the two encoders. As for Trajectory-Only, we feed the feature to a GRU decoder to generate waypoints. As shown in Table 2, though Trajectory-Only collides with vehicles less frequently than Control-Only, it has more layout collisions, off-road infractions, and agent blocks. We also count the ratio of each kind of infraction that occurs during turning. It can be observed that for Trajectory-Only, a large portion of such infractions happen when the ego agent is turning compared to Control-Only. This has verified that Trajectory-Only performs worse when the agent is turning, which is probably caused by the unsatisfactory trajectory following performance of simple PID controllers as discussed in Sec. 1. As for the fact that Control-Only has a higher vehicle-collision rate, it is because the model focuses on the current time step and the reaction to potential collisions tends to be late, as depicted in Sec. 1 as well. The results above further validate the necessity of combining the two output paradigms. ",
998
+ "bbox": [
999
+ 173,
1000
+ 445,
1001
+ 825,
1002
+ 666
1003
+ ],
1004
+ "page_idx": 8
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "4.4 Ablative Study and Visualization ",
1009
+ "text_level": 1,
1010
+ "bbox": [
1011
+ 176,
1012
+ 684,
1013
+ 441,
1014
+ 699
1015
+ ],
1016
+ "page_idx": 8
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "Component analysis. We first validate the effectiveness of the trajectory-guided multi-step control prediction design, as shown in Table 3. We only employ the control branch output except for the last complete one when fusion is applied for these ablations. Adding a trajectory branch as an auxiliary task improves the performance by 2.5 points. The multi-step predictions with our temporal module greatly help with 7.9 points gain, and adding the trajectory-guided attention further acquires an improvement of 3.2 points. Finally, applying our situation based fusion scheme $\\alpha$ is set to 0.3) significantly boosts the infraction score, leading the overall driving score to 57. ",
1021
+ "bbox": [
1022
+ 174,
1023
+ 710,
1024
+ 825,
1025
+ 808
1026
+ ],
1027
+ "page_idx": 8
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "Multi-task vs. Ensemble. The comparison regarding their performances and computational complexity is given in Table 4. Ensemble denotes directly combining the outputs of Control-Only and Trajectory-Only with our situation based fusion scheme. MTL represents the model with a shared CNN backbone and measurement encoders followed by a trajectory branch and a control branch, but the control branch predicts current step prediction only and there are no interactions between the two branches. We conclude that directly combining two models with our fusion scheme greatly improves the performance, and using an MTL approach works better than ensemble but with a much smaller model size and GFLOPs. A conventional ensemble approach to combine results from TCP and TCP-SB as TCP-Ens brings further performance gain at the cost of computational complexity. ",
1032
+ "bbox": [
1033
+ 174,
1034
+ 814,
1035
+ 825,
1036
+ 911
1037
+ ],
1038
+ "page_idx": 8
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "",
1043
+ "bbox": [
1044
+ 171,
1045
+ 90,
1046
+ 823,
1047
+ 119
1048
+ ],
1049
+ "page_idx": 9
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "Situation based fusion weight. We investigate the choice of the combination weight $\\alpha$ in the situation based fusion scheme and show the box plot of the driving scores in the figure to the right. Besides $\\alpha \\in [ 0 , 0 . 5 ]$ , we additionally test 0.7 and 1, meaning that two results are conversely mixed with our specialization definition. We see that only using the control from the specialized branch $\\alpha = 0$ performs poorly while directly taking the average or fusing conversely still has comparable results. One reason is that the situation criterion used here is whether the vehicle is turning, making most cases trajectory specialized, and the stronger control branch is not utilized enough if $\\alpha$ is small. Note that the situation based fusion scheme is general and flexible, and the criterion or $\\alpha$ value used here is relatively coarse. ",
1054
+ "bbox": [
1055
+ 174,
1056
+ 126,
1057
+ 562,
1058
+ 319
1059
+ ],
1060
+ "page_idx": 9
1061
+ },
1062
+ {
1063
+ "type": "image",
1064
+ "img_path": "images/ae0af0918b5103ea2f1a91df9591e840d500bd976dd0ad542cf879b0a8494b56.jpg",
1065
+ "image_caption": [
1066
+ "Figure 5: Box plot of the driving score with different $\\alpha$ values (3 trials for each $\\alpha$ ). "
1067
+ ],
1068
+ "image_footnote": [],
1069
+ "bbox": [
1070
+ 578,
1071
+ 131,
1072
+ 821,
1073
+ 277
1074
+ ],
1075
+ "page_idx": 9
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Visualization. Fig. 4 visualizes the trajectory-guided attention maps. The trajectory branch provides location-related information to guide the control branch to focus on important regions which are useful for future control prediction. See more qualitative results in the Supplementary. ",
1080
+ "bbox": [
1081
+ 173,
1082
+ 325,
1083
+ 825,
1084
+ 367
1085
+ ],
1086
+ "page_idx": 9
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "5 Conclusion ",
1091
+ "text_level": 1,
1092
+ "bbox": [
1093
+ 174,
1094
+ 386,
1095
+ 299,
1096
+ 404
1097
+ ],
1098
+ "page_idx": 9
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "In this work, we study two learning and prediction paradigms based on trajectory and direct control, respectively, for end-to-end autonomous driving. We propose a unified framework comprised of a trajectory branch and a novel multi-step control branch with interactions in between. We design a situation based fusion scheme to combine the results from two branches. Our method with only a monocular camera has achieved state-of-the-art performance on the CARLA Leaderboard. ",
1103
+ "bbox": [
1104
+ 174,
1105
+ 417,
1106
+ 825,
1107
+ 486
1108
+ ],
1109
+ "page_idx": 9
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Acknowledgments ",
1114
+ "text_level": 1,
1115
+ "bbox": [
1116
+ 174,
1117
+ 506,
1118
+ 328,
1119
+ 522
1120
+ ],
1121
+ "page_idx": 9
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "This work was partly supported by National Key Research and Development Program of China (2020AAA0107600), NSFC (62206172, 61972250), Shanghai Municipal Science and Technology Major Project (2021SHZDZX0102), and Shanghai Committee of Science and Technology (21DZ1100100, 22511105100). ",
1126
+ "bbox": [
1127
+ 174,
1128
+ 536,
1129
+ 825,
1130
+ 592
1131
+ ],
1132
+ "page_idx": 9
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "References ",
1137
+ "text_level": 1,
1138
+ "bbox": [
1139
+ 174,
1140
+ 611,
1141
+ 266,
1142
+ 626
1143
+ ],
1144
+ "page_idx": 9
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "[1] CARLA autonomous driving leaderboard. https://leaderboard.carla.org/, 2022. 3, 8 ",
1149
+ "bbox": [
1150
+ 179,
1151
+ 632,
1152
+ 759,
1153
+ 647
1154
+ ],
1155
+ "page_idx": 9
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "[2] Andreas Argyriou, Theodoros Evgeniou, and Massimiliano Pontil. Multi-task feature learning. In NeurIPS, 2006. 2, 3 \n[3] Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016. 3 \n[4] Mariusz Bojarski, Chenyi Chen, Joyjit Daw, Alperen Degirmenci, Joya Deri, Bernhard Firner, Beat Flepp, ˘ Sachin Gogri, Jesse Hong, Lawrence Jackel, et al. The nvidia pilotnet experiments. arXiv preprint arXiv:2010.08776, 2020. 1 \n[5] Eduardo F Camacho and Carlos Bordons Alba. Model predictive control. Springer science & business media, 2013. 2 \n[6] Manuel Carranza-García, Pedro Lara-Benítez, Jorge García-Gutiérrez, and José C Riquelme. Enhancing object detection for autonomous driving by optimizing anchor generation and addressing class imbalance. Neurocomputing, 2021. 4 \n[7] Rich Caruana. Multitask learning. Machine learning, 1997. 2, 3 \n[8] Sergio Casas, Abbas Sadat, and Raquel Urtasun. Mp3: A unified model to map, perceive, predict and plan. In CVPR, 2021. 2, 3 \n[9] Raphael Chekroun, Marin Toromanoff, Sascha Hornauer, and Fabien Moutarde. Gri: General reinforced imitation and its application to vision-based autonomous driving. arXiv preprint arXiv:2111.08575, 2021. 1, 3, 8 \n[10] Dian Chen and Philipp Krähenbühl. Learning from all vehicles. In CVPR, 2022. 1, 3, 4, 8 \n[11] Dian Chen, Brady Zhou, Vladlen Koltun, and Philipp Krähenbühl. Learning by cheating. In CoRL, 2020. 1, 2, 3 \n[12] Dian Chen, Vladlen Koltun, and Philipp Krähenbühl. Learning to drive from a world on rails. In ICCV, 2021. 1, 3, 8 \n[13] Li Chen, Chonghao Sima, Yang Li, Zehan Zheng, Jiajie Xu, Xiangwei Geng, Hongyang Li, Conghui He, Jianping Shi, Yu Qiao, et al. Persformer: 3d lane detection via perspective transformer and the openlane benchmark. arXiv preprint arXiv:2203.11089, 2022. 2, 4 \n[14] Sumanth Chennupati, Ganesh Sistu, Senthil Yogamani, and Samir A Rawashdeh. Multinet++: Multi-stream feature aggregation and geometric loss strategy for multi-task learning. In CVPRW, 2019. 4 \n[15] Kashyap Chitta, Aditya Prakash, and Andreas Geiger. Neat: Neural attention fields for end-to-end autonomous driving. In ICCV, 2021. 1, 2, 3, 8 \n[16] Kyunghyun Cho, Bart van Merrienboer, Çaglar Gülçehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder–decoder for statistical machine translation. In EMNLP, 2014. 2, 5 \n[17] Felipe Codevilla, Matthias Müller, Antonio López, Vladlen Koltun, and Alexey Dosovitskiy. End-to-end driving via conditional imitation learning. In ICRA, 2018. 1, 2, 3, 4 \n[18] Felipe Codevilla, Eder Santana, Antonio M López, and Adrien Gaidon. Exploring the limitations of behavior cloning for autonomous driving. In ICCV, 2019. 1, 2, 3 \n[19] Thomas G Dietterich. Ensemble methods in machine learning. In MCS, 2000. 4 \n[20] Alexey Dosovitskiy, German Ros, Felipe Codevilla, Antonio Lopez, and Vladlen Koltun. CARLA: An open urban driving simulator. In CoRL, 2017. 3, 7 \n[21] Hongyan Guo, Dongpu Cao, Hong Chen, Zhenping Sun, and Yunfeng Hu. Model predictive path following control for autonomous cars considering a measurable disturbance: Implementation, testing, and verification. MSSP, 2019. 2 \n[22] Jeffrey Hawke, Richard Shen, Corina Gurau, Siddharth Sharma, Daniele Reda, Nikolay Nikolov, Przemysław Mazur, Sean Micklethwaite, Nicolas Griffiths, Amar Shah, et al. Urban driving with conditional imitation learning. In ICRA, 2020. 3 \n[23] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 5 \n[24] Yuenan Hou, Zheng Ma, Chunxiao Liu, and Chen Change Loy. Learning to steer by mimicking features from heterogeneous auxiliary networks. In AAAI, 2019. 3, 4 \n[25] Shengchao Hu, Li Chen, Penghao Wu, Hongyang Li, Junchi Yan, and Dacheng Tao. St-p3: End-to-end vision-based autonomous driving via spatial-temporal feature learning. In ECCV, 2022. 2, 3 \n[26] Sebastian Huch, Aybike Ongel, Johannes Betz, and Markus Lienkamp. Multi-task end-to-end self-driving architecture for cav platoons. Sensors, 2021. 3 \n[27] Keishi Ishihara, Anssi Kanervisto, Jun Miura, and Ville Hautamaki. Multi-task learning with attention for end-to-end autonomous driving. In CVPR, 2021. 3, 4 \n[28] Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. Adaptive mixtures of local experts. Neural computation, 1991. 4 \n[29] Bernhard Jaeger. Expert drivers for autonomous driving. Master’s thesis, University of Tübingen, 2021. 1, 2, 3, 4, 8 \n[30] Alex Kendall, Jeffrey Hawke, David Janz, Przemyslaw Mazur, Daniele Reda, John-Mark Allen, Vinh-Dieu Lam, Alex Bewley, and Amar Shah. Learning to drive in a day. In ICRA, 2019. 3 \n[31] Inhan Kim, Hyemin Lee, Joonyeong Lee, Eunseop Lee, and Daijin Kim. Multi-task learning with future states for vision-based autonomous driving. In ACCV, 2020. 3, 4 \n[32] Inhan Kim, Joonyeong Lee, and Daijin Kim. Learning mixture of domain-specific experts via disentangled factors for autonomous driving. In AAAI, 2022. 4 \n[33] Philipp Krähenbühl and Vladlen Koltun. Learning to propose objects. In CVPR, 2015. 4 \n[34] Varun Ravi Kumar, Senthil Yogamani, Hazem Rashed, Ganesh Sitsu, Christian Witt, Isabelle Leang, Stefan Milz, and Patrick Mäder. Omnidet: Surround view cameras based multi-task visual perception network for autonomous driving. RA-L, 2021. 2, 4 \n[35] Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In NeurIPS, 2017. 4 \n[36] Yingwei Li, Adams Wei Yu, Tianjian Meng, Ben Caine, Jiquan Ngiam, Daiyi Peng, Junyang Shen, Bo Wu, Yifeng Lu, Denny Zhou, et al. Deepfusion: Lidar-camera deep fusion for multi-modal 3d object detection. In CVPR, 2022. 4 \n[37] Zhihao Li, Toshiyuki Motoyoshi, Kazuma Sasaki, Tetsuya Ogata, and Shigeki Sugano. Rethinking selfdriving: Multi-task knowledge for better generalization and accident explanation ability. arXiv preprint arXiv:1809.11100, 2018. 3 \n[38] Ming Liang, Bin Yang, Yun Chen, Rui Hu, and Raquel Urtasun. Multi-task multi-sensor fusion for 3d object detection. In CVPR, 2019. 2, 4 \n[39] Xiaodan Liang, Tairui Wang, Luona Yang, and Eric Xing. Cirl: Controllable imitative reinforcement learning for vision-based self-driving. In ECCV, 2018. 1, 3 \n[40] Urs Muller, Jan Ben, Eric Cosatto, Beat Flepp, and Yann Cun. Off-road obstacle avoidance through end-to-end learning. In NeurIPS, 2005. 3 \n[41] Urs Muller, Jan Ben, Eric Cosatto, Beat Flepp, and Yann Cun. Off-road obstacle avoidance through end-to-end learning. In NeurIPS, 2005. 2 \n[42] Eshed Ohn-Bar, Aditya Prakash, Aseem Behl, Kashyap Chitta, and Andreas Geiger. Learning situational driving. In CVPR, 2020. 1, 4 \n[43] Ashwini Pokle, Roberto Martín-Martín, Patrick Goebel, Vincent Chow, Hans M Ewald, Junwei Yang, Zhenkai Wang, Amir Sadeghian, Dorsa Sadigh, Silvio Savarese, et al. Deep local trajectory replanning and control for robot navigation. In ICRA, 2019. 3 \n[44] Dean A Pomerleau. Alvinn: An autonomous land vehicle in a neural network. In NeurIPS, 1988. 2, 3 \n[45] Aditya Prakash, Aseem Behl, Eshed Ohn-Bar, Kashyap Chitta, and Andreas Geiger. Exploring data aggregation in policy learning for vision-based urban autonomous driving. In CVPR, 2020. 3, 4 \n[46] Aditya Prakash, Kashyap Chitta, and Andreas Geiger. Multi-modal fusion transformer for end-to-end autonomous driving. In CVPR, 2021. 1, 3, 5 \n[47] Georgia Rajamanoharan, Aytaç Kanacı, Minxian Li, Shaogang Gong, et al. Multi-task mutual learning for vehicle re-identification. In CVPR, 2019. 4 \n[48] Nicholas Rhinehart, Rowan McAllister, and Sergey Levine. Deep imitative models for flexible inference, planning, and control. In ICLR, 2019. 1 \n[49] Abbas Sadat, Sergio Casas, Mengye Ren, Xinyu Wu, Pranaab Dhawan, and Raquel Urtasun. Perceive, predict, and plan: Safe motion planning through interpretable semantic representations. In ECCV, 2020. 3 \n[50] Marin Toromanoff, Emilie Wirbel, and Fabien Moutarde. End-to-end model-free reinforcement learning for urban driving using implicit affordances. In CVPR, 2020. 3, 8 \n[51] Apoorv Vyas, Nataraj Jammalamadaka, Xia Zhu, Dipankar Das, Bharat Kaul, and Theodore L Willke. Out-of-distribution detection using an ensemble of self supervised leave-out classifiers. In ECCV, pages 550–564, 2018. 4 \n[52] Dong Wu, Manwen Liao, Weitian Zhang, and Xinggang Wang. Yolop: You only look once for panoptic driving perception. arXiv preprint arXiv:2108.11250, 2021. 4 \n[53] Yi Xiao, Felipe Codevilla, Akhil Gurram, Onay Urfalioglu, and Antonio M López. Multimodal end-to-end autonomous driving. T-ITS, 2020. 3 \n[54] Huazhe Xu, Yang Gao, Fisher Yu, and Trevor Darrell. End-to-end learning of driving models from large-scale video datasets. In CVPR, 2017. 3 \n[55] Jie Xu, Wei Wang, Hanyuan Wang, and Jinhong Guo. Multi-model ensemble with rich spatial information for object detection. Pattern Recognition, 2020. 4 \n[56] Zhengyuan Yang, Yixuan Zhang, Jerry Yu, Junjie Cai, and Jiebo Luo. End-to-end multi-modal multi-task vehicle control for self-driving cars with visual perceptions. In ICPR, 2018. 3, 4 \n[57] Éloi Zablocki, Hédi Ben-Younes, Patrick Pérez, and Matthieu Cord. Explainability of vision-based autonomous driving systems: Review and challenges. arXiv preprint arXiv:2101.05307, 2021. 2 \n[58] Wenyuan Zeng, Wenjie Luo, Simon Suo, Abbas Sadat, Bin Yang, Sergio Casas, and Raquel Urtasun. End-to-end interpretable neural motion planner. In CVPR, 2019. 3 \n[59] Jimuyang Zhang and Eshed Ohn-Bar. Learning by watching. In CVPR, 2021. 1, 3 \n[60] Zhejun Zhang, Alexander Liniger, Dengxin Dai, Fisher Yu, and Luc Van Gool. End-to-end urban driving by imitating a reinforcement learning coach. In ICCV, 2021. 1, 3, 4, 7, 9 \n[61] Albert Zhao, Tong He, Yitao Liang, Haibin Huang, Guy Van den Broeck, and Stefano Soatto. Sam: Squeeze-and-mimic networks for conditional visual driving policy learning. In CoRL, 2021. 3 \n[62] Yinuo Zhao, Kun Wu, Zhiyuan Xu, Zhengping Che, Qi Lu, Jian Tang, and Chi Harold Liu. Cadre: A cascade deep reinforcement learning framework for vision-based autonomous urban driving. In AAAI, 2022. 3 \n[63] Zeyu Zhu and Huijing Zhao. Multi-task conditional imitation learning for autonomous navigation at crowded intersections. arXiv preprint arXiv:2202.10124, 2022. 3, 4 ",
1160
+ "bbox": [
1161
+ 178,
1162
+ 651,
1163
+ 826,
1164
+ 912
1165
+ ],
1166
+ "page_idx": 9
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "",
1171
+ "bbox": [
1172
+ 171,
1173
+ 92,
1174
+ 828,
1175
+ 915
1176
+ ],
1177
+ "page_idx": 10
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "",
1182
+ "bbox": [
1183
+ 171,
1184
+ 58,
1185
+ 828,
1186
+ 917
1187
+ ],
1188
+ "page_idx": 11
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "",
1193
+ "bbox": [
1194
+ 171,
1195
+ 92,
1196
+ 828,
1197
+ 478
1198
+ ],
1199
+ "page_idx": 12
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "Checklist ",
1204
+ "text_level": 1,
1205
+ "bbox": [
1206
+ 174,
1207
+ 502,
1208
+ 254,
1209
+ 518
1210
+ ],
1211
+ "page_idx": 12
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "The checklist follows the references. Please read the checklist guidelines carefully for information on how to answer these questions. For each question, change the default [TODO] to [Yes] , [No] , or [N/A] . You are strongly encouraged to include a justification to your answer, either by referencing the appropriate section of your paper or providing a brief inline description. For example: ",
1216
+ "bbox": [
1217
+ 176,
1218
+ 532,
1219
+ 825,
1220
+ 589
1221
+ ],
1222
+ "page_idx": 12
1223
+ },
1224
+ {
1225
+ "type": "text",
1226
+ "text": "• Did you include the license to the code and datasets? [Yes] See Section XX. \n• Did you include the license to the code and datasets? [No] The code and the data are proprietary. \n• Did you include the license to the code and datasets? [N/A] ",
1227
+ "bbox": [
1228
+ 217,
1229
+ 599,
1230
+ 825,
1231
+ 667
1232
+ ],
1233
+ "page_idx": 12
1234
+ },
1235
+ {
1236
+ "type": "text",
1237
+ "text": "Please do not modify the questions and only use the provided macros for your answers. Note that the Checklist section does not count towards the page limit. In your paper, please delete this instructions block and only keep the Checklist section heading above along with the questions/answers below. ",
1238
+ "bbox": [
1239
+ 173,
1240
+ 678,
1241
+ 825,
1242
+ 720
1243
+ ],
1244
+ "page_idx": 12
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "1. For all authors... ",
1249
+ "bbox": [
1250
+ 214,
1251
+ 733,
1252
+ 339,
1253
+ 747
1254
+ ],
1255
+ "page_idx": 12
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "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 the Supplementary. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See the Supplementary. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1260
+ "bbox": [
1261
+ 238,
1262
+ 752,
1263
+ 825,
1264
+ 858
1265
+ ],
1266
+ "page_idx": 12
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "2. If you are including theoretical results... ",
1271
+ "bbox": [
1272
+ 215,
1273
+ 861,
1274
+ 493,
1275
+ 876
1276
+ ],
1277
+ "page_idx": 12
1278
+ },
1279
+ {
1280
+ "type": "text",
1281
+ "text": "(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] ",
1282
+ "bbox": [
1283
+ 236,
1284
+ 881,
1285
+ 738,
1286
+ 911
1287
+ ],
1288
+ "page_idx": 12
1289
+ },
1290
+ {
1291
+ "type": "text",
1292
+ "text": "3. If you ran experiments... ",
1293
+ "bbox": [
1294
+ 214,
1295
+ 92,
1296
+ 393,
1297
+ 106
1298
+ ],
1299
+ "page_idx": 13
1300
+ },
1301
+ {
1302
+ "type": "text",
1303
+ "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] The zip file of source code and the URL of data are in the Supplementary. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Sec. 4.1 and the Supplementary. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Sec. 4. \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 the Supplementary. ",
1304
+ "bbox": [
1305
+ 238,
1306
+ 109,
1307
+ 825,
1308
+ 242
1309
+ ],
1310
+ "page_idx": 13
1311
+ },
1312
+ {
1313
+ "type": "text",
1314
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1315
+ "bbox": [
1316
+ 214,
1317
+ 247,
1318
+ 823,
1319
+ 261
1320
+ ],
1321
+ "page_idx": 13
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We use the CARLA simulator and pretrained ResNet model. \n(b) Did you mention the license of the assets? [Yes] See the Supplementary. \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] The zip file of source code and the URL of data are in the Supplementary. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [No] CARLA is a public simulator. \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] Data in the public simulator does not have these issues. ",
1326
+ "bbox": [
1327
+ 238,
1328
+ 265,
1329
+ 825,
1330
+ 414
1331
+ ],
1332
+ "page_idx": 13
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1337
+ "bbox": [
1338
+ 214,
1339
+ 419,
1340
+ 705,
1341
+ 433
1342
+ ],
1343
+ "page_idx": 13
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "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] ",
1348
+ "bbox": [
1349
+ 238,
1350
+ 436,
1351
+ 825,
1352
+ 526
1353
+ ],
1354
+ "page_idx": 13
1355
+ }
1356
+ ]
parse/dev/DhmYYrH_M3m/DhmYYrH_M3m_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/DhmYYrH_M3m/DhmYYrH_M3m_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/JvIFpZOjLF4/JvIFpZOjLF4.md ADDED
@@ -0,0 +1,391 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Geo-Neus: Geometry-Consistent Neural Implicit Surfaces Learning for Multi-view Reconstruction
2
+
3
+ Qiancheng $\mathbf { F u } ^ { 1 * }$ Qingshan $\mathbf { X } \mathbf { u } ^ { 2 * }$ Yew-Soon Ong2,3 Wenbing Tao1†
4
+
5
+ Huazhong University of Science and Technology 2Nanyang Technological University 3A\*STAR, Singapore 1{fqc98,wenbingtao}@hust.edu.cn 2{qingshan.xu,asysong}@ntu.edu.sg
6
+
7
+ # Abstract
8
+
9
+ Recently, neural implicit surfaces learning by volume rendering has become popular for multi-view reconstruction. However, one key challenge remains: existing approaches lack explicit multi-view geometry constraints, hence usually fail to generate geometry-consistent surface reconstruction. To address this challenge, we propose geometry-consistent neural implicit surfaces learning for multi-view reconstruction. We theoretically analyze that there exists a gap between the volume rendering integral and point-based signed distance function (SDF) modeling. To bridge this gap, we directly locate the zero-level set of SDF networks and explicitly perform multi-view geometry optimization by leveraging the sparse geometry from structure from motion (SFM) and photometric consistency in multi-view stereo. This makes our SDF optimization unbiased and allows the multi-view geometry constraints to focus on the true surface optimization. Extensive experiments show that our proposed method achieves high-quality surface reconstruction in both complex thin structures and large smooth regions, thus outperforming the state-ofthe-arts by a large margin. Code: https://github.com/GhiXu/Geo-Neus.
10
+
11
+ # 1 Introduction
12
+
13
+ Reconstructing surfaces from calibrated multi-view images is a long-standing problem in computer vision and graphics. In the past years, traditional methods [30, 37, 15, 17] have adopted a multi-step pipeline to achieve impressive reconstruction results. Such a pipeline requires depth maps or point clouds to generate surface meshes. These intermediate representations inevitably introduce accumulated errors for the final reconstructed geometry. Recently, directly reconstructing surfaces from images [25, 43, 35, 42, 26] has attracted great interest for its potential to alleviate the accumulated errors and produce high-quality reconstructions. To achieve this, existing approaches represent surfaces as neural implicit representations and leverage volume rendering [21] to optimize them.
14
+
15
+ Inspired by neural volume rendering [23, 45] that simultaneously learns volume density and radiance field from input images, recent works [35, 42] use signed distance functions (SDF) [27] for surface representation and introduce the SDF-induced density function to enable the volume rendering to learn an implicit SDF representation. In essence, these works still focus on direct color field modeling by volume rendering integral rather than explicit multi-view geometry optimization. Therefore, existing approaches usually fail to generate geometry-consistent surface reconstruction. Intuitively, volume rendering samples multiple points along each ray and expresses the output pixel colors as the integral of the radiance field, or the weighted sum of sampled colors along the ray (cf. Fig. 1(a)). It means that the volume rendering integral directly optimizes the integral of geometry instead of the single surface intersection along the ray. This obviously introduces bias for geometry modeling, thus hindering true surface optimization. In Fig.1(b), we show the reconstruction case of NeuS [35], in which the bias between rendered colors and object geometry can be observed intuitively. Rendered colors are obtained by the color network via volume rendering. Surface colors are formed by the predicted colors of the surface where the SDF values are zeroes. It can be easily seen that there exists a gap between the rendered colors and the surface colors. Thus the reconstructed surface is imprecise despite the high-quality rendered image, indicating the bias between the color rendering and implicit geometry. (Detailed theoretical analysis will be elaborated later).
16
+
17
+ ![](images/90a6b99b8c1b05b232700c2d8987b12e9830cd5cf62799f60db308efab134256.jpg)
18
+ Figure 1: (a) Illustration of volume rendering. (b) A visual example. The volume rendering in NeuS uses integral colors to implicitly supervise surface modeling. Although its rendered colors achieve good results, the colors of estimated surface fail to preserve object geometry information. This shows the bias between rendered colors and geometry. In contrast, our approach achieves structurepreserving colors of estimated surface and produces geometry-consistent surface reconstruction.
19
+
20
+ To address the above problem, we propose Geo-Neus to devise an explicit and accurate neural geometry optimization model for geometry-consistent neural implicit surfaces learning by volume rendering, leading to better multi-view 3D reconstruction. Specifically, we directly locate the zerolevel set of SDF networks and explicitly perform multi-view geometry optimization by leveraging the sparse geometry from structure from motion (SFM) and photometric consistency in multi-view stereo. This model has several benefits. First, directly locating the zero-level set of SDF networks guarantees that our geometry modeling is unbiased. This enables our method to focus on true surface optimization. Second, we show that explicitly enforcing multi-view geometry constraints on the located zero-level set of SDF networks allows our method to generate geometry-consistent surface reconstruction. Previous neural implicit surfaces learning mainly uses the rendering loss to implicitly optimize SDF networks. This results in geometry ambiguity during the training optimization. Our introduced two types of explicit multi-view constraints encourage our SDF networks to reason about the correct geometry, including both complex thin structures and large smooth regions.
21
+
22
+ In summary, our contributions are: 1) We theoretically analyze that there exists a gap between volume rendering integral and point-based SDF modeling. This demonstrates that it is necessary to directly supervise the SDF networks to boost the neural implicit surfaces learning. 2) Based on our theoretical analysis, we propose to directly locate the zero-level set of SDF networks and leverage multi-view geometry constraints to explicitly supervise the training of SDF networks. In this way, the SDF networks are encouraged to focus on true surface optimization. Extensive experiments further validate the effectiveness of our theoretical analysis and the proposed direct optimization of SDF networks. We show that our proposed Geo-Neus is capable to reconstruct both complex thin structures and large smooth regions. Therefore, it greatly outperforms the state-of-the-art surface reconstruction methods, including traditional methods and neural implicit surface learning methods.
23
+
24
+ # 2 Related work
25
+
26
+ Traditional multi-view 3D reconstruction. Traditional multi-view 3D reconstruction is the classical pipeline of surface reconstruction from multi-view images. Given multi-view input images, traditional multi-view 3D reconstruction uses structure from motion (SFM) [33, 29] to extract and match features of neighbor views, and estimate camera parameters and sparse 3D points. After that, multi-view stereo (MVS) [30, 9, 37, 38, 36] is applied to estimate dense depth maps for each view and then all the depth maps are fused into dense point clouds. Finally, the surface reconstruction method [15, 17, 6], e.g., screened Poisson Surface Reconstruction [15] is used to reconstruct surfaces from point clouds. Traditional methods have achieved great success on various occasions, but there exists incompleteness of surface in some cases because their multiple intermediate steps are not made into an ensemble. With the development of deep learning, many attempts have been made on learning-based multi-view reconstruction [14, 40, 39, 27, 22], but the problem still exists.
27
+
28
+ Implicit representation of surface. Surface reconstruction methods can be generally divided into explicit methods and implicit methods, depending on the representation of surface. Explicit representation includes voxels [5, 31] and triangular mesh [3, 4, 16], which are limited by the resolution. Implicit representation uses an implicit function to represent the surface and thus is continuous. The surface can be extracted using the implicit function at any resolution. Traditional reconstruction methods, e.g., screened Poisson Surface Reconstruction [15], use basic functions to form the implicit function. As for learning-based methods, the most commonly used forms are the occupancy function [22, 28] and the signed distance function (SDF) [27] represented by the network. Based on these functions, many implicit surface reconstruction methods from point clouds have been proposed, e.g., ONet [22], DeepSDF [27], Point2Surf [8] and etc. For these methods, point clouds are obtained by scanner devices or multi-view stereo methods. That is, these point clouds are uniform and complete. Therefore, these methods are rarely applied on the sparse point clouds produced by SFM to reconstruct surfaces (In fact, we show that these methods degrade on sparse point clouds from SFM in our supplementary material). In this work, we use the sparse points from SFM as an explicit geometry supervision and show that they can facilitate the neural implicit surface reconstruction.
29
+
30
+ Neural implicit surface reconstruction. Neural implicit field is a new way to represent the geometry of objects. With NeRF [23] first using the neural radiance field represented by Multi-Layer Perceptron (MLP) in novel view synthesis, plenty of works [32, 18, 20] have sprung up using neural networks to represent scenes. IDR [43] reconstructs surfaces with neural networks by representing the geometry as the zero level set of an MLP that is considered to be an SDF. MVSDF [44] imports information from the MVS network to arrive at more geometry priors. VolSDF [42] and NeuS [35] use the weight function that involved SDF during the rendering process to make colors and geometry closer. UNISURF [26] explores the balance between surface rendering and volume rendering. The surface reconstructed by the neural network shows better completeness compared with the traditional multi-view reconstruction methods, especially when dealing with non-Lambertian cases. However, complex structures are not handled well. Meanwhile, flat planes and sharp corners could not be guaranteed. NeuralWarp [7], a concurrent work, also explores the use of patch-match on neural surface reconstruction. It combines volumetric rendering with a patch warping integration technique, which aggregates colors from points sampled along the camera ray from source views with patch warping. This way of patch aggregation is similar with volume rendering and shares the same sampled points and the same weights with those used by color integration. Note that NeuralWarp uses patch match with the color aggregation to optimize weights of sampled points, and thus to optimize the geometry indirectly. As we will analyze later, this kind of color integration operation will cause bias in the colors and the geometry. Therefore, NeuralWarp could not be trained from scratch and relies on the pre-trained model of VolSDF. Differently from NeuralWarp, our method locates the predicted surface of the SDF network using SDF-based interpolation and uses patch match to measure the photometric consistency among neighboring views. In this way, Geo-Neus can be trained from scratch and gets much better performance.
31
+
32
+ # 3 Method
33
+
34
+ Given posed multi-view images of an object, we aim at reconstructing the surface by neural volume rendering without mask supervision. The spatial field of the object is represented by a signed distance function (SDF), and the corresponding surface is extracted using the zero level set of the SDF. In the process of volume rendering, our goal is to optimize the signed distance function. In this section, we first analyze the inherent bias in color rendering which causes the inconsistency between rendered colors and implicit geometry. Then we introduce explicit SDF optimization to achieve geometry consistency. An overview of our approach is shown in Fig. 2.
35
+
36
+ # 3.1 Bias in color rendering
37
+
38
+ In the process of volume rending, there is a gap between the rendered colors and the geometry of the object. The rendered colors are not consistent with the real colors of the surface.
39
+
40
+ ![](images/ee6db9693d98ca7f9ee408647ee199688745c46c7259cdefc676cf3a1efedfab.jpg)
41
+ Figure 2: Overview of Geo-Neus. Previous neural implicit surfaces learning methods mainly depend on the color loss to implicitly supervise the SDF network. Our proposed Geo-Neus explicitly supervises the SDF network by introducing the SDF loss from sparse 3D points and photometric consistency loss from multi-view stereo.
42
+
43
+ For an opaque solid object $\varOmega \in \mathbb { R } ^ { 3 }$ , the opacity can be represented by an indicator function $\mathcal { O } ( \pmb { p } )$
44
+
45
+ $$
46
+ \begin{array} { r } { \mathscr { O } ( { p } ) = \left\{ \begin{array} { l l } { 1 , p \in \varOmega } \\ { 0 , p \notin \varOmega } \end{array} \right. . } \end{array}
47
+ $$
48
+
49
+ When we see some colors or we capture some colors with cameras, the colors are the light that transfers along the light ray into our eyes or cameras. Based on the inherent optical properties of the opaque solid object, we approximately assume that the colors $C$ of image set $\{ I _ { i } \}$ are the colors $c$ of object intersecting with the light ray $\nu$ from the corresponding camera position $\mathbf { \delta } _ { \pmb { o } }$ :
50
+
51
+ $$
52
+ C \left( \pmb { \sigma } , \pmb { \nu } \right) = c \left( \pmb { \sigma } + t ^ { * } \pmb { \nu } \right) ,
53
+ $$
54
+
55
+ where t∗ = argmin $\{ t | { \pmb { o } } + t { \pmb { v } } = { \pmb { p } }$ , $\pmb { p } \in \partial \Omega$ , $t \in ( 0 , \infty ) \}$ . $\partial \Omega$ represents geometry surfaces. The assumption is appropriate because light that transmits through the opaque object can be omitted. The intensity of light decays to about zero drastically when passing through the surface of the opaque object. Let us represent the surface of the object mathematically with the signed distance function. The signed distance function $s d f ( \pmb { p } )$ is the signed distance between a spatial point $\pmb { p }$ and the surface $\partial \varOmega$ . In this way, the surface $\partial \varOmega$ can be represented as:
56
+
57
+ $$
58
+ \partial \varOmega = \left\{ p | s d f \left( p \right) = 0 \right\} .
59
+ $$
60
+
61
+ With neural volume rendering, we estimate the signed distance function $s { \hat { d } } f$ and color field $\hat { c }$ by Multi-Layer Perceptron (MLP) networks $F _ { \Theta }$ and $G _ { \Phi }$ :
62
+
63
+ $$
64
+ s \hat { d } f \left( \pmb { p } \right) = F _ { \Theta } \left( \pmb { p } \right) ,
65
+ $$
66
+
67
+ $$
68
+ \hat { c } \left( \pmb { \sigma } , \pmb { \nu } , t \right) = G _ { \Phi } \left( \pmb { \sigma } , \pmb { \nu } , t \right) .
69
+ $$
70
+
71
+ Thus the estimated colors of the image with camera position $\pmb { o }$ can be represented as:
72
+
73
+ $$
74
+ \hat { C } = \int _ { 0 } ^ { + \infty } w \left( t \right) \hat { c } \left( t \right) d t ,
75
+ $$
76
+
77
+ where $t$ is the depth along the ray that comes from $\mathbf { \delta } _ { \pmb { o } }$ with the direction $\nu$ and $w ( t )$ is a weight for the point at $t$ . For simplicity, the notes $\mathbf { \delta } _ { \pmb { o } }$ and $\nu$ are omitted. To obtain discrete counterparts of $w$ and $\hat { c }$ we also sample $t _ { i }$ discretely along the ray and use the Riemann sum:
78
+
79
+ $$
80
+ \hat { C } = \sum _ { i = 1 } ^ { n } w \left( t _ { i } \right) \hat { c } \left( t _ { i } \right) .
81
+ $$
82
+
83
+ Following NeuS [35], $w ( t _ { i } )$ is computed as $w ( t _ { i } ) = T ( t _ { i } ) \alpha ( t _ { i } )$ , where $\begin{array} { r } { T ( t _ { i } ) = \prod _ { j = 1 } ^ { i - 1 } ( 1 - \alpha ( t _ { j } ) ) } \end{array}$ represents accumulated transmittance, $\begin{array} { r } { \alpha ( t _ { i } ) = \operatorname* { m a x } ( \frac { \Phi _ { s } ( s d f ( p _ { i } ) ) - \Phi _ { s } ( s d f ( p _ { i + 1 } ) ) } { \Phi _ { s } ( s d f ( p _ { i } ) ) } , 0 ) } \end{array}$ j=1is opacity, and $\pmb { p } _ { i }$ represents the sampled spatial point at $t _ { i }$ . $\Phi _ { s } ( x ) = ( 1 + e ^ { - s x } ) ^ { - 1 }$ is a Sigmoid function, where $s$ is a learnable parameter which controls the smoothness of the transition at the surface.
84
+
85
+ Notably, the goal of novel view synthesis is to make an accurate prediction of the colors $\hat { C }$ , and bend efforts to minimize the difference between the colors of ground truth images $C$ and the prediction $\hat { C }$ :
86
+
87
+ $$
88
+ C = \hat { C } = \sum _ { i = 1 } ^ { n } w \left( t _ { i } \right) \hat { c } \left( t _ { i } \right) .
89
+ $$
90
+
91
+ In surface reconstruction tasks, what we concentrate more is the surface of the object rather than the color. In this way, the above formula can be rewritten as:
92
+
93
+ $$
94
+ \begin{array} { l } { { \displaystyle C = \sum _ { i = 1 } ^ { j - 1 } w \left( t _ { i } \right) \hat { c } \left( t _ { i } \right) + w \left( t _ { j } \right) \hat { c } \left( \hat { t ^ { * } } \right) + w \left( t _ { j } \right) \left( \hat { c } \left( t _ { j } \right) - \hat { c } \left( \hat { t ^ { * } } \right) \right) + \sum _ { i = j + 1 } ^ { n } w \left( t _ { i } \right) \hat { c } \left( t _ { i } \right) } } \\ { { \displaystyle ~ = w \left( t _ { j } \right) \hat { c } \left( \hat { t ^ { * } } \right) + \varepsilon _ { s a m p l e } + \sum _ { i = 1 } ^ { n } w \left( t _ { i } \right) \hat { c } \left( t _ { i } \right) } } \\ { { \displaystyle ~ = w \left( t _ { j } \right) \hat { c } \left( \hat { t ^ { * } } \right) + \varepsilon _ { s a m p l e } + \varepsilon _ { w e i g h t } } , } \end{array}
95
+ $$
96
+
97
+ where $s \hat { d } f ( \hat { t ^ { * } } ) = 0$ , $t _ { j }$ denotes the nearest sample point from $\hat { t ^ { * } }$ , $\varepsilon _ { s a m p l e }$ denotes the bias caused by sampling operation and $\varepsilon _ { w e i g h t }$ denotes the bias caused by weighted sum operation of volume rendering. With Formula (2), it can be rewritten as:
98
+
99
+ $$
100
+ w \left( t _ { j } \right) \hat { c } \left( \hat { t ^ { * } } \right) + \varepsilon _ { s a m p l e } + \varepsilon _ { w e i g h t } = c \left( t ^ { * } \right) ,
101
+ $$
102
+
103
+ $$
104
+ \hat { c } \left( t ^ { * } \right) = \frac { c \left( t ^ { * } \right) - \varepsilon _ { s a m p l e } - \varepsilon _ { w e i g h t } } { w \left( t _ { j } \right) } .
105
+ $$
106
+
107
+ There the total bias between the colors of object surface and estimated surface is:
108
+
109
+ $$
110
+ \Delta c = \hat { c } \left( \hat { t ^ { * } } \right) - c \left( t ^ { * } \right) = \frac { ( 1 - w \left( t _ { j } \right) ) c \left( t ^ { * } \right) - \varepsilon _ { s a m p l e } - \varepsilon _ { w e i g h t } } { w \left( t _ { j } \right) } .
111
+ $$
112
+
113
+ The relative bias is:
114
+
115
+ $$
116
+ \delta c = \frac { \Delta c } { c \left( t ^ { * } \right) } = \frac { 1 } { w \left( t _ { j } \right) } - 1 - \frac { \varepsilon _ { s a m p l e } + \varepsilon _ { w e i g h t } } { w \left( t _ { j } \right) c \left( t ^ { * } \right) } .
117
+ $$
118
+
119
+ When $w \left( t _ { j } \right)$ approaches to 1 $, \varepsilon _ { w e i g h t }$ approaches to 0 and $\delta c$ approaches to $\varepsilon _ { s a m p l e } \Big / c \big ( t ^ { * } \big )$ . In this case, the total bias is only caused by discrete sampling, which is small (but still exists). Simulated weights of some existing neural reconstruction methods are shown in Fig. 3. As can be seen, it is nearly impossible to get right there in practice, especially without any geometric constraints. Furthermore, the problem becomes more intractable when dealing with cases of occlusion. Therefore, the weighted manner of volume rendering integral introduces a bias to implicit geometry modeling. Because the supervision of the whole network almost depends exclusively on the difference between rendered colors and ground truth colors, the bias would make it difficult to supervise the colors of surface and the SDF network, leading to a gap between the colors and the geometry.
120
+
121
+ ![](images/9e4e9c119ac41a43ccfce41ffc4f5c370512d6c1e2b27ddbdd2b5c790a4f6136.jpg)
122
+ Figure 3: Simulated weight in color rendering process of neural reconstruction methods.
123
+
124
+ A trivial solution is to directly supervise the geometry of the object. In this way, we design explicit supervision on the SDF network and geometry-consistent supervision with multi-view constraints.
125
+
126
+ # 3.2 Explicit supervision on SDF network
127
+
128
+ The SDF network, which estimates the signed distance from any spatial point to the surface of the object, is the key network that we need to optimize. So we propose an explicit supervision method on the SDF network to ensure its accuracy directly with points in 3D space.
129
+
130
+ For less extra cost, we use points generated by structure from motion (SFM) [29, 33] to supervise the SDF network. In fact, SFM is a canonical solution to compute the camera parameters of input images, where 2D feature matches $X$ and sparse 3D points $P$ are also generated as byproducts. Thus, these sparse 3D points can be used as "free" explicit geometry information. Approximately, we suppose that these sparse points are on the surface of the object. That is, the SDF values of the sparse points are zeroes: sdf $( \bar { { \pmb p } _ { i } } ) = 0$ , where $\pmb { p } _ { i } \in \pmb { P }$ . In practice, after obtaining sparse 3D points, a radius filter is applied to exclude some outliers [46].
131
+
132
+ Occlusion handling. Because we focus on opaque objects, some parts of objects are invisible from view of a certain camera position. Therefore, there are only some of the sparse points visible for each view. For an image $I _ { i }$ with camera position $\mathbf { \delta } _ { \pmb { o } _ { i } }$ , the visible points $\mathbf { \nabla } P _ { i }$ are consistent with feature points $X _ { i }$ of $I _ { i }$ :
133
+
134
+ $$
135
+ X _ { i } = K _ { i } \left[ { \pmb R } _ { i } | { \pmb t } _ { i } \right] P _ { i } ,
136
+ $$
137
+
138
+ where $\pmb { K } _ { i }$ is the internal calibration matrix, $\pmb { R } _ { i }$ is the rotation matrix and $t _ { i }$ is the translation vector for image $I _ { i }$ . The coordinates of $X _ { i }$ and $\mathbf { \nabla } P _ { i }$ are all homogeneous coordinates. The scale index before $X _ { i }$ is omitted for simplicity. According to feature points of each image, we get visible points for each view and use them to supervise the SDF network while rendering image from the corresponding view.
139
+
140
+ View-aware SDF loss. While rendering image $I _ { i }$ from view $V _ { i }$ , we use the SDF network to estimate SDF values for the visible points $\mathbf { \nabla } P _ { i }$ of $V _ { i }$ (see supplementary for the SDF loss by random sampling from sparse 3D points). Based on the approximation that the SDF values of sparse points are zeroes, we propose the view-aware SDF loss:
141
+
142
+ $$
143
+ \mathcal { L } _ { S D F } = \sum _ { \pmb { p _ { j } \in P _ { i } } } \frac { 1 } { N _ { i } } | s \hat { d } f \left( \pmb { p _ { j } } \right) - s d f \left( \pmb { p _ { j } } \right) | = \sum _ { \pmb { p _ { j } \in P _ { i } } } \frac { 1 } { N _ { i } } | s \hat { d } f \left( \pmb { p _ { j } } \right) | ,
144
+ $$
145
+
146
+ where $N _ { i }$ is the number of points in $\mathbf { \nabla } P _ { i }$ and $| \cdot |$ denotes the $L _ { 1 }$ distance. It is worth noting that the loss we use to supervise the SDF network varies according to the view being rendered. In this way, the introduced SDF loss is consistent with the process of color rendering.
147
+
148
+ With the explicit supervision on the SDF network, our network could converge faster owing to the use of geometry prior. Besides, because the complex geometric structures with strong textures are the concentrated distribution areas of the sparse points, our method could capture more meticulous geometries.
149
+
150
+ # 3.3 Geometry-consistent supervision with multi-view constraints
151
+
152
+ With SDF loss, our network could capture complex geometric details with strong textures. Since the sparse 3D points mainly provide the explicit constraints on the areas with rich textures, large smooth regions still lack explicit geometry constraints. To go a step further, we design geometry-consistent supervision on the implicit surface with multi-view stereo constraints.
153
+
154
+ Occlusion-aware implicit surface capture. We use the implicit representation of the surface, and extract surface with the zero-level set of the implicit function. So the question is: Where is our implicit surface? According to Formula (3), the estimated surface is:
155
+
156
+ $$
157
+ \hat { \partial \Omega } = \left\{ \pmb { p } | s \hat { d } f ( \pmb { p } ) = 0 \right\} .
158
+ $$
159
+
160
+ We aim to optimize $ { \partial } { \hat { \boldsymbol { \Omega } } }$ with geometry-consistent constraints among different views. Because the number of points on the surface is infinite, we need to sample points from $ { \partial } { \hat { \varOmega } }$ in practice. To maintain consistency with the process of color rendering using view rays, we sample the surface points on these rays. As mentioned in 3.1, we sample $t$ discretely along the view ray and use the Riemann sum to obtain the rendered colors. Based on the sampled points, we use linear interpolation to get the surface points, which is similar to the root-finding used in [25, 26] to estimate the surface.
161
+
162
+ Specifically, with sampled point $t$ on the ray, the corresponding 3D point is $\pmb { p } = \pmb { o } + t \pmb { \nu }$ , and the predicted SDF value is $s { \hat { d } } f ( \pmb { p } )$ . For simplicity, we further represent $s d f ( \pmb { p } )$ as $s { \hat { d } } f ( t )$ , which is the function of $t$ . We find the sample point $t _ { i }$ , the sign of whose SDF value is different from the next sample point $t _ { i + 1 }$ . The sample points set $T$ formed by $t _ { i }$ is:
163
+
164
+ $$
165
+ T = \left\{ t _ { i } | s \hat { d } f ( t _ { i } ) \cdot s \hat { d } f ( t _ { i + 1 } ) < 0 \right\} .
166
+ $$
167
+
168
+ In this situation, the line $t _ { i } t _ { i + 1 }$ intersects with the surface $ { \partial } { \hat { \varOmega } }$ . The intersection points set $\hat { T } ^ { * }$ is:
169
+
170
+ $$
171
+ \hat { T ^ { * } } = \left\{ t | t = \frac { s \hat { d } f ( t _ { i } ) t _ { i + 1 } - s \hat { d } f ( t _ { i + 1 } ) t _ { i } } { s \hat { d } f ( t _ { i } ) - s \hat { d } f ( t _ { i + 1 } ) } , t _ { i } \in T \right\} .
172
+ $$
173
+
174
+ The ray that interacts with the object may have more than one intersection with the surface. Specifically speaking, there may be at least two intersections. Similar to the SDF supervision mechanism, we just use the first intersection point along the ray considering the occlusion problem:
175
+
176
+ $$
177
+ t ^ { * } = \mathrm { a r g m i n } \left. t | t \in \hat { T ^ { * } } \right. .
178
+ $$
179
+
180
+ The selection of $t ^ { * }$ guarantees the sample points of the implicit surface are all visible for the corresponding view and makes the supervision consistent with the process of color rendering.
181
+
182
+ Multi-view photometric consistency constraints. We capture our estimated implicit surface, of which the geometric structures are supposed to be consistent among different views. Based on this intuition, we use the photometric consistency constraints in multi-view stereo (MVS) [9, 37, 10] to supervise our extracted implicit surface.
183
+
184
+ For a small area $s$ on the surface, the projection of $s$ on the image is a small pixel patch $q$ . The patches corresponding to $s$ are supposed to be geometry-consistent among different views, except for occlusion occasions. Similar to patch warping in traditional MVS methods, we use the central point and its normal to represent $s$ . For convenience, we represent the plane equation of $s$ in the camera coordinate of the reference image $I _ { r }$ :
185
+
186
+ $$
187
+ \pmb { n } ^ { T } \pmb { p } + d = 0 ,
188
+ $$
189
+
190
+ where $\pmb { p }$ is the intersection point computed through Formula (19) and ${ \pmb n } ^ { T }$ is the normal computed with automatic differentiation of SDF network at $\pmb { p }$ . Then the image point $\boldsymbol { x }$ in the pixel patch $q _ { i }$ of reference image $I _ { r }$ is related to the corresponding point $ { \boldsymbol { { x } } } ^ { \prime }$ in the pixel patch $q _ { i s }$ of the source image $I _ { s }$ via the plane-induced homography $\pmb { H }$ [12]:
191
+
192
+ $$
193
+ \pmb { x } = \pmb { H } \pmb { x } ^ { \prime } , \pmb { H } = \pmb { K } _ { s } ( \pmb { R } _ { s } \pmb { R } _ { r } ^ { T } - \frac { \pmb { R } _ { s } ( \pmb { R } _ { s } ^ { T } \pmb { t } _ { s } - \pmb { R } _ { r } ^ { T } \pmb { t } _ { r } ) \pmb { n } ^ { T } } { \pmb { d } } ) \pmb { K } _ { r } ^ { - 1 } ,
194
+ $$
195
+
196
+ where $\pmb { K }$ donates the intrinsic matrix, $\pmb { R }$ donates the rotation matrix and $t$ donates the translation vector. The index indicates which image the donation belongs to. To concentrate on the geometric information, we convert color images $\{ I _ { i } \}$ into gray images $\left\{ { { I } _ { i } ^ { \prime } } \right\}$ , and supervise our implicit surface with the photometric consistency among patches in $\{ I _ { i } ^ { \prime } \}$ (see supplementary for RGB image settings).
197
+
198
+ Photometric consistency loss. To measure the photometric consistency, we use the normalization cross correlation (NCC) of patches in the reference gray image $\left\{ I _ { r } ^ { \prime } \right\}$ and the source gray image $\{ I _ { s } ^ { \prime } \}$ :
199
+
200
+ $$
201
+ N C C ( I _ { r } ^ { \prime } ( q _ { i } ) , I _ { s } ^ { \prime } ( q _ { i s } ) ) = \frac { C o v ( I _ { r } ^ { \prime } ( q _ { i } ) , I _ { s } ^ { \prime } ( q _ { i s } ) ) } { \sqrt { V a r ( I _ { r } ^ { \prime } ( q _ { i } ) ) V a r ( I _ { s } ^ { \prime } ( q _ { i s } ) ) } } ,
202
+ $$
203
+
204
+ where $C o v$ denotes covariance and $V a r$ donates variance. While rendering colors for an image, we use the patches which take the pixels being rendered as center and the patch size is $1 1 \times 1 1$ . We take the rendered image as the reference image and compute NCC scores between its sampled patches and their corresponding patches on all source images. To handle occlusions, we find the best four of the computed NCC scores for each sampled patch following [10], and use them to compute the photometric consistency loss for the corresponding view:
205
+
206
+ $$
207
+ \mathcal { L } _ { p h o t o } = \frac { \sum _ { i = 1 } ^ { N } \sum _ { s = 1 } ^ { 4 } 1 - N C C ( I _ { r } ^ { \prime } ( q _ { i } ) , I _ { s } ^ { \prime } ( q _ { i s } ) ) } { 4 N } ,
208
+ $$
209
+
210
+ where $N$ is the number of sampled pixels on the rendered image. With the photometric consistency loss, the geometric consistency of the implicit surface among multiple views is guaranteed.
211
+
212
+ # 3.4 Loss function
213
+
214
+ During rendering colors from a specific view, our total loss is:
215
+
216
+ $$
217
+ \mathcal { L } = \mathcal { L } _ { c o l o r } + \alpha \mathcal { L } _ { r e g } + \beta \mathcal { L } _ { S D F } + \gamma \mathcal { L } _ { p h o t o } .
218
+ $$
219
+
220
+ $\mathcal { L } _ { c o l o r }$ is the difference between the ground truth colors and the rendered colors:
221
+
222
+ $$
223
+ \mathcal { L } _ { c o l o r } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } | C _ { i } - \hat { C } _ { i } | .
224
+ $$
225
+
226
+ And $\mathcal { L } _ { \boldsymbol { r } \boldsymbol { e } \boldsymbol { g } }$ is an eikonal term [11] to regularize the gradients of SDF network:
227
+
228
+ $$
229
+ \mathcal { L } _ { r e g } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } { \left( | \nabla \hat { s d f } ( \pmb { p } _ { i } ) | - 1 \right) ^ { 2 } } .
230
+ $$
231
+
232
+ In our experiments, we choose $\alpha$ , $\beta$ and $\gamma$ as 0.1, 1.0 and 0.5 respectively.
233
+
234
+ # 4 Experiments
235
+
236
+ # 4.1 Experimental setting
237
+
238
+ Datasets. Following previous practices [43, 35, 42], we reconstruct surfaces from 15 scans of DTU dataset [1] to evaluate our method. DTU dataset has objects of various categories, which are quite different in terms of appearance and geometries. There are 49 or 64 images at a resolution of $1 2 0 0 \times$ 1600 in each scan with camera parameters. We also test on 7 challenging scenes from the low-res set of the BlendedMVS dataset [41] (CC-4 License). Scenes in BlendedMVS have various numbers of views and camera parameters. The scenes are captured by images at a resolution of $7 6 8 \times 5 7 6$ , and the numbers of views vary from 31 to 143. We evaluate our reconstructed surfaces on DTU dataset with the Chamfer Distance provided by DTU evaluation metrics [1]. For the BlendedMVS dataset, we show the visual effects of the reconstructed surfaces.
239
+
240
+ Baselines. To better evaluate our method, we compare it with the-state-of-art learning-based methods and the traditional reconstruction method, colmap [30]. For learning-based methods, we compare with IDR [43], VolSDF [42], NeuS [35] and NeuralWarp [7]. For colmap, we use the reconstructed surface with trim parameter 7 (the best performance) [26].
241
+
242
+ Implementation details. Similar to [43, 35, 42], the SDF network is modeled by an 8-layer MLP with 256 hidden units and a skip connection in the middle. It is initialized by the geometric initialization presented in [2]. The radiance network is parameterized by a 4-layer MLP with 256 hidden units. Positional encoding [20] is applied to 3D location with 6 frequencies and to viewing direction with 4 frequencies. We sample 512 rays per batch and follow the hierarchical sampling strategy in NeuS [35] to sample points for each ray. We train our model for $3 0 0 \mathrm { k }$ iterations for around 16 hours on a single NVIDIA RTX2080Ti GPU. After network training, a mesh can be extracted from the SDF in a predefined bounding box by the Marching Cube [19] with the volume size of $5 1 2 ^ { 3 }$
243
+
244
+ # 4.2 Comparisons
245
+
246
+ We compare the reconstruction quality of our method and baselines on DTU dataset. Table 1 shows the quantitative results. Notably, our method outperforms baselines by a large margin. Specifically, it outperforms state-of-the-art neural implicit surfaces learning methods by over $2 5 \%$ and outperforms the traditional method colmap by $2 2 \%$ . As shown qualitatively in Fig. 4, our method achieves high-quality surface reconstruction in both complex thin structures and large smooth regions. For example, our method can recover abrupt depth changes in Scan 37 and reconstruct planar structures in Scan 24 and 40. To test the capability of handling
247
+
248
+ Table 1: Results on DTU scenes. The surfaces produced by colmap are trimmed with trimming value 7.
249
+
250
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>with mask</td><td rowspan=1 colspan=5>without mask</td></tr><tr><td rowspan=1 colspan=1>Scan</td><td rowspan=1 colspan=1>IDR</td><td rowspan=1 colspan=1>NeuS</td><td rowspan=1 colspan=1>VolSDF</td><td rowspan=1 colspan=1>NeuS</td><td rowspan=1 colspan=1>NeuralWarp</td><td rowspan=1 colspan=1>colmap</td><td rowspan=1 colspan=1>Ours</td></tr><tr><td rowspan=1 colspan=1>37</td><td rowspan=1 colspan=1>1.87</td><td rowspan=1 colspan=1>0.95</td><td rowspan=1 colspan=1>1.26</td><td rowspan=1 colspan=1>1.21</td><td rowspan=1 colspan=1>0.71</td><td rowspan=1 colspan=1>0.91</td><td></td></tr><tr><td></td><td rowspan=3 colspan=1>0.63</td><td></td><td rowspan=3 colspan=1>0.81</td><td rowspan=3 colspan=1>0.73</td><td rowspan=3 colspan=1>0.38</td><td rowspan=3 colspan=1>0.37</td><td></td></tr><tr><td></td><td></td><td rowspan=2 colspan=1>0.5370.336</td></tr><tr><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>0.80</td></tr><tr><td rowspan=1 colspan=1>55</td><td rowspan=1 colspan=1>0.48</td><td rowspan=1 colspan=1>0.39</td><td rowspan=1 colspan=1>0.49</td><td rowspan=1 colspan=1>0.40</td><td rowspan=1 colspan=1>0.38</td><td rowspan=1 colspan=1>0.37</td><td rowspan=1 colspan=1>0.357</td></tr><tr><td rowspan=1 colspan=1>63</td><td rowspan=1 colspan=1>1.04</td><td rowspan=1 colspan=1>1.26</td><td rowspan=1 colspan=1>1.25</td><td rowspan=1 colspan=1>1.20</td><td rowspan=1 colspan=1>0.79</td><td rowspan=1 colspan=1>0.90</td><td rowspan=1 colspan=1>0.800</td></tr><tr><td rowspan=1 colspan=1>65</td><td rowspan=1 colspan=1>0.79</td><td rowspan=1 colspan=1>0.72</td><td rowspan=1 colspan=1>0.70</td><td rowspan=1 colspan=1>0.70</td><td rowspan=1 colspan=1>0.81</td><td rowspan=1 colspan=1>1.00</td><td rowspan=1 colspan=1>0.454</td></tr><tr><td rowspan=1 colspan=1>69</td><td rowspan=1 colspan=1>0.77</td><td rowspan=1 colspan=1>0.69</td><td rowspan=1 colspan=1>0.72</td><td rowspan=1 colspan=1>0.72</td><td rowspan=1 colspan=1>0.82</td><td rowspan=1 colspan=1>0.54</td><td rowspan=1 colspan=1>0.408</td></tr><tr><td rowspan=1 colspan=1>83</td><td rowspan=1 colspan=1>1.33</td><td rowspan=1 colspan=1>0.94</td><td rowspan=1 colspan=1>1.29</td><td rowspan=1 colspan=1>1.01</td><td rowspan=1 colspan=1>1.20</td><td rowspan=1 colspan=1>1.22</td><td rowspan=1 colspan=1>1.032</td></tr><tr><td rowspan=1 colspan=1>97</td><td rowspan=1 colspan=1>1.16</td><td rowspan=1 colspan=1>1.14</td><td rowspan=1 colspan=1>1.18</td><td rowspan=1 colspan=1>1.16</td><td rowspan=1 colspan=1>1.06</td><td rowspan=1 colspan=1>1.08</td><td rowspan=1 colspan=1>0.843</td></tr><tr><td rowspan=1 colspan=1>105</td><td rowspan=1 colspan=1>0.76</td><td rowspan=1 colspan=1>0.77</td><td rowspan=1 colspan=1>0.70</td><td rowspan=1 colspan=1>0.82</td><td rowspan=1 colspan=1>0.68</td><td rowspan=1 colspan=1>0.64</td><td rowspan=1 colspan=1>0.548</td></tr><tr><td rowspan=1 colspan=1>106</td><td rowspan=1 colspan=1>0.67</td><td rowspan=1 colspan=1>0.66</td><td rowspan=1 colspan=1>0.66</td><td rowspan=1 colspan=1>0.66</td><td rowspan=1 colspan=1>0.66</td><td rowspan=1 colspan=1>0.48</td><td rowspan=1 colspan=1>0.460</td></tr><tr><td rowspan=1 colspan=1>110</td><td rowspan=1 colspan=1>0.90</td><td rowspan=1 colspan=1>1.35</td><td rowspan=1 colspan=1>1.08</td><td rowspan=1 colspan=1>1.69</td><td rowspan=1 colspan=1>0.74</td><td rowspan=1 colspan=1>0.59</td><td rowspan=2 colspan=1>0.4730.294</td></tr><tr><td rowspan=1 colspan=1>114</td><td rowspan=1 colspan=1>0.42</td><td rowspan=1 colspan=1>0.39</td><td rowspan=1 colspan=1>0.42</td><td rowspan=1 colspan=1>0.39</td><td rowspan=1 colspan=1>0.41</td><td rowspan=1 colspan=1>0.32</td></tr><tr><td rowspan=2 colspan=1>118122</td><td rowspan=1 colspan=1>0.51</td><td rowspan=1 colspan=1>0.51</td><td rowspan=1 colspan=1>0.61</td><td rowspan=1 colspan=1>0.49</td><td rowspan=1 colspan=1>0.63</td><td rowspan=1 colspan=1>0.45</td><td rowspan=1 colspan=1>0.355</td></tr><tr><td rowspan=1 colspan=1>0.53</td><td rowspan=1 colspan=1>0.52</td><td rowspan=1 colspan=1>0.55</td><td rowspan=1 colspan=1>0.51</td><td rowspan=1 colspan=1>0.51</td><td rowspan=1 colspan=1>0.43</td><td rowspan=1 colspan=1>0.345</td></tr><tr><td rowspan=1 colspan=1>mean</td><td rowspan=1 colspan=1>0.90</td><td rowspan=1 colspan=1>0.82</td><td rowspan=1 colspan=1>0.86</td><td rowspan=1 colspan=1>0.87</td><td rowspan=1 colspan=1>0.68</td><td rowspan=1 colspan=1>0.65</td><td rowspan=1 colspan=1>0.508</td></tr></table>
251
+
252
+ ![](images/cb73f9cdbdd42118bd011d9fbfd86cd6b9ab775c99c884efef12e705d90a773a.jpg)
253
+ Figure 4: Surfaces reconstructed on DTU and BlendedMVS. We use NeuS trained with mask supervision and colmap with trimming value 7 (see supplementary for comparison with NeuralWarp).
254
+
255
+ ![](images/76152ed8adc8f74884a1cc6e8beeec59d9be8245837557a6452c4ce040d7a6e6.jpg)
256
+ Figure 5: Surface quality of ablation models.
257
+
258
+ various scenes, we test on 7 challenging
259
+ scenes of the BlendedMVS dataset. Qualitative results in Fig. 4 show that our method yields more smooth and consistent surface quality than other methods.
260
+
261
+ # 4.3 Analysis
262
+
263
+ Ablation study. To evaluate the effect of our proposed contributions, we conduct an ablation study on DTU dataset. NeuS is adopted as our baseline. Different modules are progressively added to the baseline to investigate their efficacy. Results are reported in Table 2. We see that, with very sparse 3D supervision on SDF networks, Model-A has begun to outperform colmap (0.62 vs 0.65). This demonstrates that explicit SDF optimization is very beneficial to improve geometries. With the proposed photometric consistency loss, Model-B can optimize SDF networks more completely, leading to much more performance improvement. Fig. 5 shows how the proposed loss functions improve the surface quality. Model-A reconstructs the apple stem finely but the surface is not smooth enough. Model-B reconstructs the smooth surface but the apple stem is lost. That is, the SDF loss is better to improve the reconstruction of complex thin structures, while the photometric loss is better for the reconstruction of large smooth regions. Moreover, our full model, Geo-Neus absorbs their individual advantages and achieves the best performance.
264
+
265
+ Geometry bias of volumetric integration. To further investigate the geometric bias of volumetric integration, we render the depth images from a particular pose in a similar fashion to rendering RGB pixels [20] (see supplementary for details), and then use the depth images to construct sparse 3D points and photometric consistency constraints. NeuS is also used as the baseline. Comparison results are shown in Table 3. As can be seen, compared with baseline (0.87), multi-view geometry constraints with depth integral bring little performance improvement or even degradation. It is a remarkable fact that photometric consistency supervision with depth integral surface location could not converge because of the initial immense bias while the SDF location model converges smoothly. As an alternative, we train these two models based on the baseline model pretrained with $2 0 0 \mathrm { k }$ iterations. The result of the depth integral model still degrades compared with the baseline. This verifies the existence of geometric bias in volumetric integration. With our proposed SDF-oriented optimization, surface reconstruction quality can be significantly boosted.
266
+
267
+ Table 2: Ablation study on DTU scenes.
268
+
269
+ <table><tr><td>Method</td><td>Lcolor</td><td>LsDF</td><td>Lphoto</td><td>mean</td></tr><tr><td>Baseline</td><td>√</td><td></td><td></td><td>0.87</td></tr><tr><td>Model-A</td><td></td><td>厂</td><td></td><td>0.62</td></tr><tr><td>Model-B</td><td></td><td></td><td></td><td>0.54</td></tr><tr><td>Geo-Neus</td><td></td><td></td><td></td><td>0.51</td></tr></table>
270
+
271
+ <table><tr><td rowspan=1 colspan=1>Constraint</td><td rowspan=1 colspan=1>Setting</td><td rowspan=1 colspan=1>mean</td></tr><tr><td rowspan=1 colspan=1>Sparse 3D points</td><td rowspan=1 colspan=1>DepthintegralSDF location</td><td rowspan=1 colspan=1>0.850.62</td></tr><tr><td rowspan=1 colspan=1>Photometric consistency</td><td rowspan=1 colspan=1>DepthintegralSDF location</td><td rowspan=1 colspan=1>1.080.57</td></tr></table>
272
+
273
+ Table 3: Comparison results between depth integral and SDF location.
274
+
275
+ Convergence speed. We further study the convergence speed of our proposed method, Geo-Neus, and baseline, NeuS. As shown in Fig. 6, our method converges rapidly from scratch and becomes stable after $2 0 0 \mathrm { k }$ iterations. In contrast, NeuS cannot extract the reasonable surface from SDF networks in the beginning and starts to become stable after $2 5 0 \mathrm { k }$ iterations. This demonstrates that our proposed explicit SDF optimization also improves the efficiency of neural surfaces learning by volume rendering, reducing the training time from around 16 hours to around 10 hours.
276
+
277
+ Limitation. We show failure cases of our method on scenes with strong specular highlights and transparent objects. Fig. 7(a) shows our reconstructed surfaces on the scene with strong specular highlights, DTU scan77. In this case, the strong specular highlights lead to large view-dependent effects, making the multi-view photometric consistency loss unable to reliably measure multi-view geometry constraints. Thus, our method cannot produce satisfactory surfaces in this case. In addition, Fig. 7(b) shows our reconstructed surfaces on the scene with transparent objects [13]. As proposed in Sec. 3.1, we assume the target objects are all opaque and solid. For transparent objects, the proposed bias between rendered colors and implicit geometry is invalid. Furthermore, the geometric loss we proposed may not work well, just like the photometric consistency used in traditional reconstruction methods.
278
+
279
+ ![](images/99ec3e33b7a24f38900cd11c343f1137e1b9f4c05021d17d11436c245638805c.jpg)
280
+ Figure 6: Convergence speed.
281
+
282
+ ![](images/1b534d2462c2d1abfe4c3b537e35bbf0cc1db2b68d97a654007530e4ecc586e8.jpg)
283
+ Figure 7: Failure cases.
284
+
285
+ # 5 Conclusion
286
+
287
+ We have proposed Geo-Neus, a new method to perform neural implicit surfaces learning by enforcing explicit SDF optimization. In our paper, we first provide the theoretical analysis that there exists a gap between volume rendering integration and neural SDF learning. With this theoretical support, we propose to explicitly optimize neural SDF learning by introducing two multi-view geometry constraints: sparse 3D points in structure from motion and photometric consistency in multi-view stereo. In this way, Geo-Neus produces high-quality surface reconstruction in both complex thin structures and large smooth regions. Therefore, it outperforms the state-of-the-arts by a large margin, including both traditional and neural implicit surfaces learning methods. We note that although our method greatly improves reconstruction quality, its efficiency is still limited. In the future, it will be interesting to explore accelerating neural implicit surfaces learning by volume rendering through super-fast per-scene radiance field optimization methods [34, 24]. We don’t see an immediate negative societal impact of our work, but accurate 3D models may be used from malevolence.
288
+
289
+ Acknowledgments This work was in part supported by the National Natural Science Foundation of China under Grants 62176096 and 61991412, the Data Science and Artificial Intelligence Research Center (DSAIR), School of Computer Science and Engineering, Nanyang Technological University and the A\*Star Center for Frontier AI Research (CFAR).
290
+
291
+ References
292
+ [1] Henrik Aanæs, Rasmus Ramsbøl Jensen, George Vogiatzis, Engin Tola, and Anders Bjorholm Dahl. Large-scale data for multiple-view stereopsis. International Journal of Computer Vision, 120(2):153–168, 2016.
293
+ [2] Matan Atzmon and Yaron Lipman. Sal: Sign agnostic learning of shapes from raw data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2565–2574, 2020.
294
+ [3] Bruce G Baumgart. A polyhedron representation for computer vision. In Proceedings of the National Computer Conference and Exposition, pages 589–596, 1975.
295
+ [4] Jean-Daniel Boissonnat and Bernhard Geiger. Three-dimensional reconstruction of complex shapes based on the delaunay triangulation. In Biomedical Image Processing and Biomedical Visualization, volume 1905, pages 964–975, 1993.
296
+ [5] Adrian Broadhurst, Tom W Drummond, and Roberto Cipolla. A probabilistic framework for space carving. In Proceedings of the IEEE International Conference on Computer Vision, volume 1, pages 388–393, 2001.
297
+ [6] Brian Curless and Marc Levoy. A volumetric method for building complex models from range images. In Proceedings of the 23rd annual conference on Computer graphics and interactive techniques, pages 303–312, 1996.
298
+ [7] François Darmon, Bénédicte Bascle, Jean-Clément Devaux, Pascal Monasse, and Mathieu Aubry. Improving neural implicit surfaces geometry with patch warping. arXiv preprint arXiv:2112.09648, 2021.
299
+ [8] Philipp Erler, Paul Guerrero, Stefan Ohrhallinger, Niloy J Mitra, and Michael Wimmer. Points2surf learning implicit surfaces from point clouds. In Proceedings of the European Conference on Computer Vision, pages 108–124. Springer, 2020.
300
+ [9] Yasutaka Furukawa and Jean Ponce. Accurate, dense, and robust multiview stereopsis. IEEE Transactions on Pattern Analysis and Machine Intelligence, 32(8):1362–1376, 2010.
301
+ [10] S. Galliani, K. Lasinger, and K. Schindler. Massively parallel multiview stereopsis by surface normal diffusion. In Proceedings of the IEEE International Conference on Computer Vision, pages 873–881, 2015.
302
+ [11] Amos Gropp, Lior Yariv, Niv Haim, Matan Atzmon, and Yaron Lipman. Implicit geometric regularization for learning shapes. arXiv preprint arXiv:2002.10099, 2020.
303
+ [12] Richard Hartley and Andrew Zisserman. Multiple View Geometry in Computer Vision. Cambridge University Press, 2 edition, 2004.
304
+ [13] Jeffrey Ichnowski, Yahav Avigal, Justin Kerr, and Ken Goldberg. Dex-nerf: Using a neural radiance field to grasp transparent objects. arXiv preprint arXiv:2110.14217, 2021.
305
+ [14] Abhishek Kar, Christian Häne, and Jitendra Malik. Learning a multi-view stereo machine. Advances in neural information processing systems, 30, 2017.
306
+ [15] Michael Kazhdan and Hugues Hoppe. Screened poisson surface reconstruction. ACM Transactions on Graphics, 32(3):1–13, 2013.
307
+ [16] Patrick Labatut, J-P Pons, and Renaud Keriven. Robust and efficient surface reconstruction from range data. In Computer Graphics Forum, volume 28, pages 2275–2290, 2009.
308
+ [17] Patrick Labatut, Jean-Philippe Pons, and Renaud Keriven. Efficient multi-view reconstruction of large-scale scenes using interest points, delaunay triangulation and graph cuts. In Proceedings of the IEEE International Conference on Computer Vision, pages 1–8, 2007.
309
+ [18] Lingjie Liu, Jiatao Gu, Kyaw Zaw Lin, Tat-Seng Chua, and Christian Theobalt. Neural sparse voxel fields. Advances in Neural Information Processing Systems, 33:15651–15663, 2020.
310
+
311
+ [19] William E Lorensen and Harvey E Cline. Marching cubes: A high resolution 3d surface construction algorithm. ACM siggraph computer graphics, 21(4):163–169, 1987.
312
+
313
+ [20] Ricardo Martin-Brualla, Noha Radwan, Mehdi SM Sajjadi, Jonathan T Barron, Alexey Dosovitskiy, and Daniel Duckworth. Nerf in the wild: Neural radiance fields for unconstrained photo collections. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7210–7219, 2021.
314
+
315
+ [21] Nelson Max. Optical models for direct volume rendering. IEEE Transactions on Visualization and Computer Graphics, 1(2):99–108, 1995.
316
+
317
+ [22] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4460–4470, 2019.
318
+
319
+ [23] Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren $\mathrm { N g }$ . Nerf: Representing scenes as neural radiance fields for view synthesis. In Proceedings of the European Conference on Computer Vision, pages 405–421, 2020.
320
+
321
+ [24] Thomas Müller, Alex Evans, Christoph Schied, and Alexander Keller. Instant neural graphics primitives with a multiresolution hash encoding. arXiv preprint arXiv:2201.05989, 2022.
322
+
323
+ [25] Michael Niemeyer, Lars Mescheder, Michael Oechsle, and Andreas Geiger. Differentiable volumetric rendering: Learning implicit 3d representations without 3d supervision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3504–3515, 2020.
324
+
325
+ [26] Michael Oechsle, Songyou Peng, and Andreas Geiger. Unisurf: Unifying neural implicit surfaces and radiance fields for multi-view reconstruction. In Proceedings of the IEEE International Conference on Computer Vision, pages 5589–5599, 2021.
326
+
327
+ [27] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 165–174, 2019.
328
+
329
+ [28] Songyou Peng, Michael Niemeyer, Lars Mescheder, Marc Pollefeys, and Andreas Geiger. Convolutional occupancy networks. In Proceedings of the European Conference on Computer Vision, pages 523–540, 2020.
330
+
331
+ [29] Johannes L Schonberger and Jan-Michael Frahm. Structure-from-motion revisited. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4104–4113, 2016.
332
+
333
+ [30] Johannes L. Schönberger, Enliang Zheng, Jan-Michael Frahm, and Marc Pollefeys. Pixelwise view selection for unstructured multi-view stereo. In Proceedings of the European Conference on Computer Vision, pages 501–518, 2016.
334
+
335
+ [31] Steven M Seitz and Charles R Dyer. Photorealistic scene reconstruction by voxel coloring. International Journal of Computer Vision, 35(2):151–173, 1999.
336
+
337
+ [32] Vincent Sitzmann, Julien Martel, Alexander Bergman, David Lindell, and Gordon Wetzstein. Implicit neural representations with periodic activation functions. Advances in Neural Information Processing Systems, 33:7462–7473, 2020.
338
+
339
+ [33] Noah Snavely, Steven M Seitz, and Richard Szeliski. Photo tourism: exploring photo collections in 3d. In ACM SIGGRAPH, pages 835–846, 2006.
340
+
341
+ [34] Cheng Sun, Min Sun, and Hwann-Tzong Chen. Direct voxel grid optimization: Super-fast convergence for radiance fields reconstruction. arXiv preprint arXiv:2111.11215, 2021.
342
+
343
+ [35] Peng Wang, Lingjie Liu, Yuan Liu, Christian Theobalt, Taku Komura, and Wenping Wang. Neus: Learning neural implicit surfaces by volume rendering for multi-view reconstruction. arXiv preprint arXiv:2106.10689, 2021.
344
+
345
+ [36] Qingshan Xu, Weihang Kong, Wenbing Tao, and Marc Pollefeys. Multi-scale geometric consistency guided and planar prior assisted multi-view stereo. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2022.
346
+ [37] Qingshan Xu and Wenbing Tao. Multi-scale geometric consistency guided multi-view stereo. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5483–5492, 2019.
347
+ [38] Qingshan Xu and Wenbing Tao. Planar prior assisted patchmatch multi-view stereo. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 12516–12523, 2020.
348
+ [39] Qingshan Xu and Wenbing Tao. Pvsnet: Pixelwise visibility-aware multi-view stereo network. arXiv preprint arXiv:2007.07714, 2020.
349
+ [40] Yao Yao, Zixin Luo, Shiwei Li, Tian Fang, and Long Quan. Mvsnet: Depth inference for unstructured multi-view stereo. In Proceedings of the European Conference on Computer Vision, pages 767–783, 2018.
350
+ [41] Yao Yao, Zixin Luo, Shiwei Li, Jingyang Zhang, Yufan Ren, Lei Zhou, Tian Fang, and Long Quan. Blendedmvs: A large-scale dataset for generalized multi-view stereo networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1790–1799, 2020.
351
+ [42] Lior Yariv, Jiatao Gu, Yoni Kasten, and Yaron Lipman. Volume rendering of neural implicit surfaces. In Advances in Neural Information Processing Systems, volume 34, 2021.
352
+ [43] Lior Yariv, Yoni Kasten, Dror Moran, Meirav Galun, Matan Atzmon, Basri Ronen, and Yaron Lipman. Multiview neural surface reconstruction by disentangling geometry and appearance. In Advances in Neural Information Processing Systems, volume 33, pages 2492–2502, 2020.
353
+ [44] Jingyang Zhang, Yao Yao, and Long Quan. Learning signed distance field for multi-view surface reconstruction. In Proceedings of the IEEE International Conference on Computer Vision, pages 6525–6534, 2021.
354
+ [45] Kai Zhang, Gernot Riegler, Noah Snavely, and Vladlen Koltun. Nerf $^ { + + }$ : Analyzing and improving neural radiance fields. arXiv preprint arXiv:2010.07492, 2020.
355
+ [46] Qian-Yi Zhou, Jaesik Park, and Vladlen Koltun. Open3d: A modern library for 3d data processing. arXiv preprint arXiv:1801.09847, 2018.
356
+
357
+ # Checklist
358
+
359
+ 1. For all authors...
360
+
361
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
362
+ (b) Did you describe the limitations of your work? [Yes] See Section 4.3.
363
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 5.
364
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
365
+
366
+ 2. If you are including theoretical results...
367
+
368
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 3.1.
369
+ (b) Did you include complete proofs of all theoretical results? [Yes] See Section 3.1.
370
+
371
+ 3. If you ran experiments...
372
+
373
+ (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] We plan to release the code completely but have not yet with submission.
374
+
375
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 4.1.
376
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No]
377
+ (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 Section 4.1.
378
+
379
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
380
+
381
+ (a) If your work uses existing assets, did you cite the creators? [Yes] See Section 4.1.
382
+ (b) Did you mention the license of the assets? [Yes] See Section 4.1.
383
+ (c) Did you include any new assets either in the supplemental material or as a URL? [No]
384
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
385
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
386
+
387
+ 5. If you used crowdsourcing or conducted research with human subjects...
388
+
389
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
390
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
391
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/dev/JvIFpZOjLF4/JvIFpZOjLF4_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/JvIFpZOjLF4/JvIFpZOjLF4_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/K3BMejPSyQ/K3BMejPSyQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/MR7XubKUFB/MR7XubKUFB.md ADDED
@@ -0,0 +1,445 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ADVERSARIAL RETRIEVER-RANKER FOR DENSE TEXT RETRIEVAL
2
+
3
+ Hang Zhang1∗, Yeyun Gong2†, Yelong Shen3, Jiancheng $\mathbf { L } \mathbf { v } ^ { 1 }$ , Nan Duan2, Weizhu Chen3
4
+
5
+ 1College of Computer Science, Sichuan University,
6
+ 2Microsoft Research Asia, 3Microsoft Azure AI
7
+ hangzhang scu@foxmail.com,{yegong,yelong.shen}@microsoft.com,
8
+ lvjiancheng@scu.edu.cn, {nanduan,wzchen}@microsoft.com
9
+
10
+ # ABSTRACT
11
+
12
+ Current dense text retrieval models face two typical challenges. First, they adopt a siamese dual-encoder architecture to encode queries and documents independently for fast indexing and searching, while neglecting the finer-grained termwise interactions. This results in a sub-optimal recall performance. Second, their model training highly relies on a negative sampling technique to build up the negative documents in their contrastive losses. To address these challenges, we present Adversarial Retriever-Ranker (AR2), which consists of a dual-encoder retriever plus a cross-encoder ranker. The two models are jointly optimized according to a minimax adversarial objective: the retriever learns to retrieve negative documents to cheat the ranker, while the ranker learns to rank a collection of candidates including both the ground-truth and the retrieved ones, as well as providing progressive direct feedback to the dual-encoder retriever. Through this adversarial game, the retriever gradually produces harder negative documents to train a better ranker, whereas the cross-encoder ranker provides progressive feedback to improve retriever. We evaluate AR2 on three benchmarks. Experimental results show that AR2 consistently and significantly outperforms existing dense retriever methods and achieves new state-of-the-art results on all of them. This includes the improvements on Natural Questions $\mathbf { R } @ 5$ to $7 7 . 9 \%$ $( + 2 . 1 \% )$ , TriviaQA $\mathbf { R } @ 5$ to $7 8 . { \bar { 2 } } \%$ $( + 1 . 4 \% )$ , and MS-MARCO MRR $@ 1 0$ to $3 9 . 5 \%$ $( + 1 . 3 \% )$ . Code and models are available at https://github.com/microsoft/AR2.
13
+
14
+ # 1 INTRODUCTION
15
+
16
+ Dense text retrieval (Lee et al., 2019; Karpukhin et al., 2020) has achieved great successes in a wide variety of both research and industrial areas, such as search engines (Brickley et al., 2019; Shen et al., 2014), recommendation system (Hu et al., 2020), open-domain question answering (Guo et al., 2018; Liu et al., 2020), etc. A typical dense retrieval model adopts a dual-encoder (Huang et al., 2013) architecture to encode queries and documents into low-dimensional embedding vectors, with the relevance between query and document being measured by the similarity between embeddings. In real-world dense text retrieval applications, it pre-computes all the embedding vectors of documents in the corpus, and leverages the approximate nearest neighbor (ANN) (Johnson et al., 2019) technique for efficiency. To train a dense retriever, contrastive loss with negative samples is widely applied in the literature (Xiong et al., 2021; Karpukhin et al., 2020). During training, the model utilizes a negative sampling method to obtain negative documents for a given querydocument pair, and then minimizes the contrastive loss which relies on both the positive document and the sampled negative ones (Shen et al., 2014; Chen et al., 2017; Radford et al., 2021).
17
+
18
+ Recent studies on contrastive learning (Xiong et al., 2021; Karpukhin et al., 2020) show that the iterative “hard-negative” sampling technique can significantly improve the performance compared with “random-negative” sampling approach, as it can pick more representative negative samples to … …learn a more discriminative retriever. In the work (Qu et al., 2021), it suggests leveraging crossquery documentencoder model to heuristically filter “hard-negative” samples to further improve performance and shows the importance of sampling technique in the contrastive learning.
19
+
20
+ ![](images/5e5bf19d07f1949b33be18db2543d959a08b45a74baf60171568fd5b53de55ff.jpg)
21
+ Figure 1: Illustration of two modules in AR2. (a) Retriever: query and document are encoded independently by a dual-encoder. (b) Ranker: concatenated, jointly encoded by a cross-encoder.
22
+
23
+ On the other hand, the model architecture of dual-encoders enables the encoding of queries and documents independently which is essential for document indexing and fast retrieval. However, this ignores the modeling of finer-grained interactions between queries and documents which could be a sub-optimal solution in terms of retrieval accuracy.
24
+
25
+ Motivated by these phenomena, we propose an Adversarial Retriever-Ranker (AR2) framework. The intuitive idea of AR2 is inspired by the “retriever-ranker” architecture in the classical information retrieval systems. AR2 consists of two modules: a dual-encoder model served as the retrieval module in Figure 1a and a cross-encoder model served as the ranker module in Figure 1b. The crossencoder model takes the concatenation of a query and document as input text, and can generate more accurate relevance scores compared with the dual-encoder model, since it can fully explore the interactions between the query and document through a self-attention mechanism using a conventional transformer model (Vaswani et al., 2017; Guo et al., 2020). Instead of training “retriever-ranker” modules independently in some IR systems (Manning et al., 2008; Mitra & Craswell, 2017), AR2 constructs a unified minimax game for training the retriever and ranker models interactively, as shown in Figure 2.
26
+
27
+ In particular, AR2 adopts a minimax objective from the adversarial game (Goodfellow et al., 2014) where the retrieval model is optimized to produce relevant documents to fool the ranker model, whereas the ranker model learns to distinguish the ground-truth relevant document and retrieved ones by its opponent retrieval model. Within the adversarial “retriever-ranker” training framework, the retrieval model receives the smooth training signals from the ranker model which helps alleviate the harmful effects of “false-negative” issues. For example, a “false-negative” example which is rated as high-relevance by the ranker model, will also be granted with high probability by retrieval model in order to fool the ranker, meanwhile the ranker model with better generalization capability is more resistant to label noises compared to the retrieval model.
28
+
29
+ In the empirical studies of AR2, we further introduce a distillation regularization approach to help stabilize/improve the training of the retriever. Intuitively, the retriever would converge to sharp conditionalprobabilities over documents given a query within the adversarial training framework, i.e., high retrieval probabilities for the top relevant documents and near-zero retrieval ones for the rest. However, it is not a desirable property as it might impede exploring different documents during training. Thus, we incorporate the distillation loss between the retriever and ranker models as a smooth term for further improvement.
30
+
31
+ ![](images/85c68087bda71924e2c7993414684ed5eed03fe0c65d0dff0374f0a4db869bcb.jpg)
32
+ Figure 2: Illustration of the AR2 training pipeline. $q , d ,$ , and $\mathbb { D } _ { q } ^ { - }$ represent the query, positive document, and retrieved documents, respectively.
33
+
34
+ In experiments, we evaluate AR2 on three widely used benchmarks for dense text retrieval: Natural Questions, Trivia QA and MS-MARCO. Experimental results show that AR2 achieves state-of-theart performance on all these datasets. Meanwhile, we provide a comprehensive ablation study to demonstrate the advantage of different AR2 components.
35
+
36
+ # 2 PRELIMINARIES
37
+
38
+ Dense Text Retrieval: We mainly consider a contrastive-learning paradigm for dense text retrieval in this work, where the training set consists of a collection of text pairs. $C = \{ ( q _ { 1 } , d _ { 1 } ) , . . . , ( q _ { n } , d _ { n } ) \}$ . In the scenario of open-domain question answering, a text pair $( q , d )$ refers to a question and a corresponding document which contains the answer. A typical dense retrieval model adopts a dual encoder architecture, where questions and documents are represented as dense vectors separately and the relevance score $s _ { \theta } ( q , d )$ between them is measured by the similarity between their embeddings:
39
+
40
+ $$
41
+ s _ { \theta } ( q , d ) = \langle E ( q ; \theta ) , E ( d ; \theta ) ) \rangle
42
+ $$
43
+
44
+ where $E ( \cdot ; \theta )$ denotes the encoder module parameterized with $\theta$ , and $\langle \cdot \rangle$ is the similarity function, e.g., inner-product, Euclidean distance. Based on the embeddings, existing solutions generally leverage on-the-shelf fast ANN-search (Johnson et al., 2019) for efficiency.
45
+
46
+ A conventional contrastive-learning algorithm could be applied for training the dual encoders (Shen et al., 2014; Chen et al., 2017; Liu et al., 2020). For example, given a training instance $( q , d )$ , we select $n$ negative irrelevant documents $( d _ { 1 } ^ { - } , . . . , d _ { n } ^ { - } )$ (denoted as $\mathbb { D } _ { q } ^ { - }$ ) to optimize the loss function of the negative log likelihood of the positive document:
47
+
48
+ $$
49
+ L _ { \theta } ( q , d , \mathbb { D } _ { q } ^ { - } ) = - \mathrm { l o g } \frac { e ^ { \tau s _ { \theta } ( q , d ) } } { e ^ { \tau s _ { \theta } ( q , d ) } + \sum _ { i = 1 } ^ { n } e ^ { \tau s _ { \theta } ( q , d _ { i } ^ { - } ) } }
50
+ $$
51
+
52
+ where $\tau$ is a hyper-parameter to control the temperature. Previous works (Shen et al., 2014; Chen et al., 2017; Liu et al., 2020) present an effective strategy on negative document sampling, called “InBatch Negatives” where negative documents are randomly sampled from a collection of documents which are within the same mini-batch as question-document training pairs.
53
+
54
+ Recently, some studies e.g., ANCE (Xiong et al., 2021) and Condenser (Gao & Callan, 2021b), have shown that selecting “hard-negatives” in the training can significantly improve the retrieval performance in open-domain question answering. For example, instead of sampling negative document randomly, “hard-negatives” are iteratively retrieved through previous checkpoints of the dual encoder model. However, a more recent work RocketQA (Qu et al., 2021) continues to point out that the retrieved “hard-negatives” could potential be “false-negatives” in some cases, which might limit the performance.
55
+
56
+ Generative Adversarial Network: GANs have been widely studied for generating the realisticlooking images in computation vision (Goodfellow et al., 2014; Brock et al., 2018). In the past few years, the idea of GANs has been applied in information retrieval (Wang et al., 2017). For example, IRGAN (Wang et al., 2017), proposes a minimax retrieval framework which constructs two types of IR models: a generative retrieval model and a discriminative retrieval model. The two IR models are optimized through a minimax game: the generative retrieval model generates relevant documents that look like ground-truth relevant documents to fool the discriminative retrieval model, whereas the discriminative retrieval model learns to draw a clear distinction between the groundtruth relevant documents and the generated ones made by its opponent generative retrieval model. The minimax objective is formulated as:
57
+
58
+ $$
59
+ \begin{array} { r } { J ^ { G ^ { * } , D ^ { * } } = \operatorname* { m i n } _ { \theta } \operatorname* { m a x } _ { \phi } \mathrm { E } _ { d \sim p _ { \mathrm { t w e } } ( \cdot \vert q ) } \left[ \log D _ { \phi } ( d , q ) \right] + \mathrm { E } _ { d ^ { - } \sim G _ { \theta } ( \cdot \vert q ) } \left[ \log \left( 1 - D _ { \phi } ( d ^ { - } , q ) \right) \right] } \end{array}
60
+ $$
61
+
62
+ where $G _ { \theta } ( \cdot | q )$ and $D _ { \phi } ( d ^ { - } , q )$ denote the generative retrieval model and discriminative retrieval model in IRGAN, respectively. It is worth noting the original IRGAN model doesn’t work for dense retrieval tasks as it doesn’t contain the dual-encoder model for document indexing or fast retrieval.
63
+
64
+ # 3 METHOD
65
+
66
+ In this section, we introduce the proposed adversarial retriever-ranker (AR2) approach. It consists of two modules: the dual-encoder retriever module $G _ { \theta }$ as in Figure 1a, and the cross-encoder ranker module $D _ { \phi }$ as in Figure 1b. $G _ { \theta }$ and $D _ { \phi }$ computes the relevance score between question and document as follows:
67
+
68
+ $$
69
+ \begin{array} { r l } & { G _ { \theta } ( q , d ) = E _ { \theta } ( q ) ^ { T } E _ { \theta } ( d ) } \\ & { D _ { \phi } ( q , d ) = \mathbf { w _ { \phi } } ^ { T } E _ { \phi } \left( [ q , d ] \right) } \end{array}
70
+ $$
71
+
72
+ where $E _ { \theta } ( \cdot )$ and $E _ { \phi } ( \cdot )$ are language model encoders which can be initialized with any pre-trained language model, $\mathbf { w } _ { \phi }$ is the linear projector in $D _ { \phi }$ , and $[ q , d ]$ is the concatenation of question and document.
73
+
74
+ In AR2, the retriever and ranker modules are optimized jointly through a contrastive minimax objective:
75
+
76
+ $$
77
+ J ^ { G ^ { * } , D ^ { * } } = \operatorname* { m i n } _ { \theta } \mathrm { m a x } _ { \phi } { \bf E } _ { \mathbb { D } _ { q } ^ { - } \sim G _ { \theta } ( q , \cdot ) } \left[ \log p _ { \phi } ( d | q ; \mathbb { D } _ { q } ) \right]
78
+ $$
79
+
80
+ where $\mathbb { D } _ { q } ^ { - } \colon \{ d _ { i } ^ { - } \} _ { i = 1 } ^ { n }$ is the set of $n$ negative documents sampled by $G _ { \theta } ( \boldsymbol { q } , \cdot )$ given $q$ , and $p _ { \phi } ( d | q ; \mathbb { D } _ { q } )$ denotes the probability of selecting the ground-truth document $d$ from the document set $\mathbb { D } _ { q }$ $\mathbb { D } _ { q } =$ $\{ d \} \cup \mathbb { D } _ { q } ^ { - } )$ by the ranker module $D _ { \phi }$ ;
81
+
82
+ $$
83
+ p _ { \phi } ( d | q ; \mathbb { D } _ { q } ) = \frac { e ^ { \tau D _ { \phi } ( q , d ) } } { \sum _ { d ^ { \prime } \in \mathbb { D } _ { q } } e ^ { \tau D _ { \phi } ( q , d ^ { \prime } ) } }
84
+ $$
85
+
86
+ According to the objective function (Eqn. 5), the dual-encoder retrieval model $G _ { \theta } ( \boldsymbol { q } , \cdot )$ would try to sample the high-relevant documents to fool the ranker model, whereas the ranker model $D _ { \phi } ( q , \cdot )$ is optimized to draw distinctions between ground-truth passage and the ones sampled by $G _ { \theta } ( q , \cdot )$ . We present the illustration of the AR2 framework in Figure 2. In order to optimize the minimax objective function, we adopt a conventional iterative-learning mechanism to optimize the retriever and ranker modules coordinately.
87
+
88
+ # 3.1 TRAINING THE RANKER $D _ { \phi }$
89
+
90
+ Given the fixed retriever $G _ { \theta }$ , the ranker model $D _ { \phi }$ is updated by maximizing the log likelihood of selecting ground-truth $d$ from set $\mathbb { D } _ { q }$ given a query $q$ :
91
+
92
+ $$
93
+ \begin{array} { r } { \phi ^ { * } = \mathrm { a r g m a x } _ { \phi } \log p _ { \phi } ( d | q ; \mathbb { D } _ { q } ) } \end{array}
94
+ $$
95
+
96
+ where $\mathbb { D } _ { q }$ consists of ground-truth document $d$ and negative document set $\mathbb { D } _ { q } ^ { - }$ . $\mathbb { D } _ { q } ^ { - }$ is sampled by $G _ { \theta }$ according to Eqn. 5. In experiments, we first retrieve top-100 negative documents, and then randomly sample $n$ examples from them to obtain $\mathbb { D } _ { q } ^ { - }$ .
97
+
98
+ # 3.2 TRAINING RETRIEVER $G _ { \theta }$
99
+
100
+ With fixing the ranker $D _ { \phi }$ , the model parameters $\theta ^ { * }$ for the retriever $G _ { \theta }$ is optimized by minimizing the expectation of log likelihood of function. In particular, by isolating $\theta$ from the minimax function (Eqn. 5), the objective for the retriever can be written as:
101
+
102
+ $$
103
+ \theta ^ { * } = \operatorname * { a r g m i n } _ { \theta } J ^ { \theta } = \mathbf { E } _ { \mathbb { D } _ { q } ^ { - } \sim G _ { \theta } ( q , \cdot ) } \left[ \log p _ { \phi } ( d | q ; \mathbb { D } _ { q } ) \right]
104
+ $$
105
+
106
+ However, it is intractable to optimize $\theta$ directly through Eqn. 8, as the computation of probability $\mathbb { D } _ { q } ^ { - } \sim G _ { \theta } ( q , \cdot )$ does not follow a close form. Thus, we seek to minimize an alternative upper-bound of the loss criteria:
107
+
108
+ $$
109
+ J ^ { \theta } \leq \hat { J } ^ { \theta } = \mathbf { E } _ { d ^ { - } \sim p _ { \theta } ( \cdot | q ; \mathbb { D } _ { q } ^ { - } ) } \left[ \log p _ { \phi } ( d | q ; \{ d , d ^ { - } \} ) \right]
110
+ $$
111
+
112
+ The detailed deviation of Eqn. 9 is provided in the Appendix A.1. Therefore, the gradient of parameter $\theta$ can be computed as the derivative of ${ \hat { J } } ^ { \theta }$ with respect to $\theta$ :
113
+
114
+ $$
115
+ \nabla _ { \theta } \hat { J } ^ { \theta } = \mathbf { E } _ { d ^ { - } \sim p _ { \theta } ( \cdot | q ; \mathbb { D } _ { q } ^ { - } ) } \nabla _ { \theta } \log p _ { \theta } ( d ^ { - } | q ; \mathbb { D } _ { q } ^ { - } ) \left[ \log p _ { \phi } ( d | q ; \{ d , d ^ { - } \} ) \right]
116
+ $$
117
+
118
+ Require: Retriever $G _ { \theta }$ ; Ranker $D _ { \phi }$ ; Document pool $\mathbb { D }$ ; Training dataset $C$ .
119
+ 1: Initialize the retriever $G _ { \theta }$ and the ranker $D _ { \phi }$ with pre-trained language models.
120
+ 2: Train the warm-up retriever $G _ { \theta } ^ { 0 }$ on training dataset $C$ .
121
+ 3: Build ANN index on $\mathbb { D }$
122
+ 4: Retrieve negative samples on $\mathbb { D }$ .
123
+ 5: Train the warm-up ranker $D _ { \theta } ^ { 0 }$
124
+ 6: while AR2 has not converged do
125
+ 7: for Retriever training step do
126
+ 8: Sample $n$ documents $\{ d _ { i } ^ { - } \} _ { n }$ from ANN index.
127
+ 9: Update parameters of the retriever $G _ { \theta }$ .
128
+ 10: end for
129
+ 11: Refresh ANN Index.
130
+ 12: for Ranker training step do
131
+ 13: Sample $n$ hard negatives $\{ d _ { i } ^ { - } \} _ { n }$ from ANN index.
132
+ 14: Update parameters of the ranker $D _ { \phi }$ .
133
+ 15: end for
134
+ 16: end while
135
+
136
+ Here, the same approach is applied to obtain set $\mathbb { D } _ { q } ^ { - }$ as in Eqn. 7.
137
+
138
+ Regularization: we further introduce a distillation regularization term in $G _ { \theta }$ ’s training, which encourages the retriever model to distill from the ranker model.
139
+
140
+ $$
141
+ J _ { \mathcal { R } } ^ { \theta } = H ( p _ { \phi } ( \cdot | q ; \mathbb { D } ) , p _ { \theta } ( \cdot | q ; \mathbb { D } ) )
142
+ $$
143
+
144
+ $H ( \cdot )$ is the cross entropy function. $p _ { \phi } ( \cdot | q ; \mathbb { D } )$ and $p _ { \theta } ( \cdot | q ; \mathbb { D } )$ denote the conditional probabilities of document in the whole corpus $\mathbb { D }$ by the ranker and the retriever model, respectively. In practice, we also limit the sampling space over documents to a fixed set, i.e., $\mathbb { D } _ { q } = { \bar { \{ d \} } } \cup { \bar { \mathbb { D } } } _ { q } ^ { - }$ . Thus the regularization loss for the retriever model can be rewritten as:
145
+
146
+ $$
147
+ J _ { \mathcal { R } } ^ { \theta } = H \left( p _ { \phi } ( \cdot | q ; \mathbb { D } _ { q } ) , p _ { \theta } ( \cdot | q ; \mathbb { D } _ { q } ) \right)
148
+ $$
149
+
150
+ # 3.3 INDEX REFRESH
151
+
152
+ During each training iteration of retriever and ranker models in AR2, we refresh the document index to keep the retrieved document set updated. To build the document index, we take the document encoder from the retrieval model to compute the embeddings $E ( d ; \theta )$ for every document $d$ from the corpus: $d \in C$ , and then build the inner-product based ANN search index with FAISS tool.
153
+
154
+ In summary, Algorithm 1 shows the full implementation details of the proposed AR2.
155
+
156
+ # 4 EXPERIMENTS
157
+
158
+ # 4.1 DATASETS
159
+
160
+ We conduct experiments on three popular benchmarks: Natural Questions (Kwiatkowski et al., 2019), Trivia QA (Joshi et al., 2017), and MS-MARCO Passage Ranking (Nguyen et al., 2016).
161
+
162
+ Natural Questions (NQ) collects real questions from the Google search engine and each question is paired with an answer span and golden passages from the Wikipedia pages. In NQ, the goal of the retrieval stage is to find positive passages from a large passage pool. We report Recall of top- $k$ $( \mathbb { R } ^ { \circledcirc \mathrm { k } ) }$ , which represents the proportion of top k retrieved passages that contain the answers.
163
+
164
+ Trivia QA is a reading comprehension corpus authored by trivia enthusiasts. Each sample is a hquestion, answer, evidencei triple. In the retrieval stage, the goal is to find passages that contain the answer. We also use Recall of top- $k$ as the evaluation metric for Trivia QA.
165
+
166
+ MS-MARCO Passage Ranking is widely used in information retrieval. It collects real questions from the Bing search engine. Each question is paired with several web documents. Following previous works (Ren et al., 2021; Qu et al., 2021), we report MRR $@ 1 0$ , $\mathrm { R @ 5 0 }$ , ${ \textrm { R @ 1 k } }$ on the dev set. Mean Reciprocal Rank (MRR) is the mean of Reciprocal Rank(RR) across questions, calculated as the reciprocal of the rank where the first relevant document was retrieved.
167
+
168
+ Table 1: The comparison of the first-stage retrieval performance on Natural Questions test set, Trivia QA test set, and MS-MARCO dev set. The results of the first two blocks are from published papers. If the results are not provided, we mark them as “-”.
169
+
170
+ <table><tr><td></td><td colspan="3">Natural Questions</td><td colspan="3">Trivia QA</td><td colspan="3">MS-MARCO</td></tr><tr><td></td><td>R@5</td><td>R@20</td><td>R@100</td><td>R@5</td><td>R@20</td><td>R@100</td><td>MRR@10</td><td>R@50</td><td>R@1k</td></tr><tr><td>BM25 (Yang et al.,2017)</td><td>-</td><td>59.1</td><td>73.7</td><td>-</td><td>66.9</td><td>76.7</td><td>18.7</td><td>59.2</td><td>85.7</td></tr><tr><td>GAR (Mao et al., 2021a)</td><td>60.9</td><td>74.4</td><td>85.3</td><td>73.1</td><td>80.4</td><td>85.7</td><td>-</td><td>=</td><td></td></tr><tr><td>doc2query (Nogueira et al.,2019b)</td><td></td><td>=</td><td>=</td><td></td><td></td><td>1</td><td>21.5</td><td>64.4</td><td>89.1</td></tr><tr><td>DeepCT (Dai&amp; Callan,2019)</td><td>=</td><td>=</td><td>-</td><td>=</td><td></td><td>-</td><td>24.3</td><td>69.0</td><td>91.0</td></tr><tr><td>docTTTTTquery (Nogueira et al.,2019a)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>27.7</td><td>75.6</td><td>94.7</td></tr><tr><td>DPR (Karpukhin et al.,2020)</td><td>-</td><td>78.4</td><td>85.3</td><td>-</td><td>79.3</td><td>84.9</td><td>-</td><td>-</td><td></td></tr><tr><td>ANCE (Xiong et al.,2021)</td><td>-</td><td>81.9</td><td>87.5</td><td></td><td>80.3</td><td>85.3</td><td>33.0</td><td>-</td><td>95.9</td></tr><tr><td>RDR(Yang&amp; Seo,2020)</td><td>=</td><td>82.8</td><td>88.2</td><td>=</td><td>82.5</td><td>87.3</td><td></td><td>-</td><td></td></tr><tr><td>ColBERT(Khattab &amp; Zaharia,2020)</td><td>=</td><td>-</td><td>1</td><td>=</td><td>-</td><td>-</td><td>36.0</td><td>82.9</td><td>96.8</td></tr><tr><td>RocketQA (Qu et al.,2021)</td><td>74.0</td><td>82.7</td><td>88.5</td><td>=</td><td></td><td>-</td><td>37.0</td><td>85.5</td><td>97.9</td></tr><tr><td>COIL (Gao et al.,2021)</td><td>-</td><td>1</td><td>-</td><td>=</td><td></td><td></td><td>35.5</td><td>-</td><td>96.3</td></tr><tr><td>ME-BERT(Luan et al.,2021)</td><td>=</td><td>-</td><td>=</td><td>-</td><td>-</td><td>-</td><td>33.8</td><td>1</td><td>-</td></tr><tr><td>Joint Top-k(Sachan et al.,2021a)</td><td>72.1</td><td>81.8</td><td>87.8</td><td>74.1</td><td>81.3</td><td>86.3</td><td>-</td><td></td><td>=</td></tr><tr><td>Individual Top-k (Sachan et al.,2021a)</td><td>75.0</td><td>84.0</td><td>89.2</td><td>76.8</td><td>83.1</td><td>87.0</td><td></td><td>-</td><td>-</td></tr><tr><td>PAIR (Ren et al., 2021) DPR-PAQ (Oguz et al., 2021)</td><td>74.9</td><td>83.5</td><td>89.1</td><td>-</td><td></td><td>1</td><td>37.9</td><td>86.4</td><td>98.2</td></tr><tr><td>-BERTbase</td><td>74.5</td><td>83.7</td><td>88.6</td><td>=</td><td>=</td><td>=</td><td>31.4</td><td>=</td><td>=</td></tr><tr><td>-RoBERTabase</td><td>74.2</td><td>84.0</td><td>89.2</td><td></td><td></td><td>=</td><td>31.1</td><td>=</td><td>=</td></tr><tr><td>Condenser(Gao &amp; Callan,2021b)</td><td>-</td><td>83.2</td><td>88.4</td><td>-</td><td>81.9</td><td>86.2</td><td>36.6</td><td></td><td>97.4</td></tr><tr><td>coCondenser (Gao &amp; Callan,2021a)</td><td>75.8</td><td>84.3</td><td>89.0</td><td>76.8</td><td>83.2</td><td>87.3</td><td>38.2</td><td>-</td><td>98.4</td></tr><tr><td>AR2-G0</td><td>69.7</td><td>80.8</td><td>87.1</td><td>74.4</td><td>81.7</td><td>86.6</td><td>34.8</td><td>84.2</td><td>98.0</td></tr><tr><td>AR2-G</td><td>77.9</td><td>86.0</td><td>90.1</td><td>78.2</td><td>84.4</td><td>87.9</td><td>39.5</td><td>87.8</td><td>98.6</td></tr></table>
171
+
172
+ # 4.2 IMPLEMENTATION DETAILS
173
+
174
+ First step, we follow the experiments in Sachan et al. (2021b) and Gao & Callan (2021a) to continuous pre-training the ERNIE-2.0-base model (Sun et al., 2020) with Inverse Cloze Task (ICT) training (Lee et al., 2019) for NQ and TriviaQA datasets, and coCondenser training (Gao & Callan, 2021a) for MS-MARCO dataset.
175
+
176
+ Second step, we follow the experiment settings of DPR (Karpukhin et al., 2020) to train a warm-up dual-encoder retrieval model $\mathbf { \dot { G } ^ { 0 } }$ . It is initialized with the continuous pretrained ERNIE-2.0-based model we obtained in step one. Then we train a warm-up cross-encoder model $\mathbf { D ^ { 0 } }$ initialized with the ERNIE-2.0-Large. $\hat { \mathbf { D } } ^ { \mathbf { 0 } }$ learns to rank the Top- $\mathbf { \nabla \cdot k }$ documents selected by $\mathbf { G } ^ { 0 }$ with contrastive learning. The detailed hyper-parameters in training are listed in Appendix A.3.
177
+
178
+ Third step, we iteratively train the ranker (AR2-D) model initialized with ERNIE-2.0-large and the retriever (AR2-G) initialized with $\mathbf { G } ^ { 0 }$ according to Algorithm 1. The number of training iterations is set to 10. During each iteration of training, the retriever model is scheduled to train with $1 5 0 0 \mathrm { { m i n i } }$ batches, while the ranker model is scheduled to train with 500 mini-batches. The document index is refreshed after each iteration of training. The other hyper-parameters are shown in Appendix A.3.
179
+
180
+ All the experiments in this work run on 8 NVIDIA Tesla A100 GPUs. The implementation code of AR2 is based on Huggingface Transformers (Wolf et al., 2020) utilizing gradient checkpointing (Chen et al., 2016), Apex1, and gradient accumulation to reduce GPU memory consumption.
181
+
182
+ # 4.3 RESULTS
183
+
184
+ Performance of Retriever AR2-G: The comparison of retrieval performance on NQ, Trivia QA, and MS-MARCO are presented in Table 1.
185
+
186
+ We compare AR2-G with previous state-of-the-art methods, including sparse and dense retrieval models. The top block shows the performance of sparse retrieval methods. BM25 (Yang et al., 2017) is a traditional sparse retriever based on the exact term matching. DeepCT (Dai & Callan, 2019) uses
187
+
188
+ Table 2: Performance of rankers before and after AR2 training on NQ test set.
189
+
190
+ <table><tr><td>Retriever</td><td>Ranker</td><td>R@1</td><td>R@5</td><td>R@10</td></tr><tr><td>AR2-G0</td><td>- AR2-D0 AR2-D</td><td>48.3 60.6 64.2</td><td>69.7 78.7 79.0</td><td>76.2 82.6</td></tr><tr><td>AR2-G</td><td>- AR2-D0 AR2-D</td><td>58.7 61.1 65.6</td><td>77.9 80.1 81.5</td><td>82.6 82.5 84.3 84.9</td></tr></table>
191
+
192
+ Table 3: Performance of AR2-G on NQ test set with different negative sample size $n$ .
193
+
194
+ <table><tr><td></td><td>R@1</td><td>R@5</td><td>R@20</td><td>R@100</td><td>Latency</td></tr><tr><td>n=1</td><td>56.3</td><td>76.4</td><td>85.3</td><td>89.7</td><td>210ms</td></tr><tr><td>n=5</td><td>57.8</td><td>76.9</td><td>85.3</td><td>89.7</td><td>330ms</td></tr><tr><td>n=7</td><td>58.0</td><td>77.2</td><td>85.2</td><td>89.7</td><td>396ms</td></tr><tr><td>n=11</td><td>58.0</td><td>77.1</td><td>85.4</td><td>89.8</td><td>510ms</td></tr><tr><td>n=15</td><td>57.8</td><td>77.3</td><td>85.6</td><td>90.1</td><td>630ms</td></tr></table>
195
+
196
+ Table 4: Comparison of AR2 and IRGAN.
197
+
198
+ <table><tr><td></td><td>R@1</td><td>R@5</td><td>R@20</td><td>R@100</td></tr><tr><td>AR2</td><td>58.7</td><td>77.9</td><td>86.0</td><td>90.1</td></tr><tr><td>IRGAN</td><td>55.2</td><td>75.2</td><td>84.5</td><td>89.2</td></tr></table>
199
+
200
+ Table 5: Effect of regularization in AR2.
201
+
202
+ <table><tr><td></td><td>R@1</td><td>R@5</td><td>R@20</td><td>R@100</td><td>Entropy</td></tr><tr><td>AR2-G</td><td>58.7</td><td>77.9</td><td>86.0</td><td>90.1</td><td>2.10</td></tr><tr><td>-w/oR</td><td>57.8</td><td>77.3</td><td>85.6</td><td>90.1</td><td>1.70</td></tr></table>
203
+
204
+ BERT to dynamically generate lexical weights to augment BM25 Systems. doc2Query (Nogueira et al., 2019b), docTTTTTQuery (Nogueira et al., 2019a), and GAR (Mao et al., 2021a) use text generation to expand queries or documents to make better use of BM25. The middle block lists the results of strong dense retrieval methods, including DPR (Karpukhin et al., 2020), ANCE (Xiong et al., 2021), RDR (Yang & Seo, 2020), RocketQA (Qu et al., 2021), Joint and Individual Top- $\mathbf { \nabla } \cdot \mathbf { k }$ (Sachan et al., 2021a), PAIR (Ren et al., 2021), DPR-PAQ (Oguz et al., 2021), Condenser (Gao & Callan, ˘ 2021b). coCondenser (Gao & Callan, 2021a), ME-BERT (Luan et al., 2021), CoIL (Gao et al., 2021). These methods improve the performance of dense retrieval by constructing hard negative samples, jointly training the retriever and downstream tasks, pre-training, knowledge distillation, and multi-vector representations.
205
+
206
+ The bottom block in Table 1 shows the results of proposed AR2 models. AR2- $\mathbf { G } ^ { 0 }$ refers to the warm-up retrieval model in AR2 (details can be found in section 4.2) which leverages the existing continuous pre-training technique for dense text retrieval tasks. i.e., it shows a better performance compared with DPR (Karpukhin et al., 2020) and ANCE (Xiong et al., 2021), etc approaches that do not adopt the continuous pre-training procedure. We also observed that AR2-G: the retrieval model trained with the adversary framework, significantly outperforms the warm-up AR2- $\mathbf { G } ^ { 0 }$ model, and achieves new state-of-the-art performance on all three datasets.
207
+
208
+ # 4.4 ANALYSIS
209
+
210
+ In this section, we conduct a set of detailed experiments on analyzing the proposed AR2 training framework to help understand its pros and cons.
211
+
212
+ Performance of Ranker AR2-D: To evaluate the performance of ranker AR2-D on NQ, we first retrieve the top-100 documents for each query in the test set with the help of dual-encoder AR2- $\mathbf { G }$ model, and then re-rank them with the scores produced by the AR2-D model. The results are shown in Table 2. “-” represents without ranker. ${ \bf A } { \bf R } { \bf \Lambda } ^ { 2 - { \bf D } ^ { 0 } }$ refers to the warm-up ranker model in AR2. The results show that the ranker obtains better performance compared with only using retriever. It suggests that we could use a two-stage ranking strategy to further boost the retrieval performance. Comparing the results of AR2-D and $\mathbf { \Delta } \mathbf { A } \mathbf { R } \mathbf { \hat { \mathbf { \xi } } } \mathbf { - } \mathbf { \bar { D } } ^ { 0 }$ , we further find that the ranker AR2- $\mathbf { D }$ gets a significant gain with adversarial training.
213
+
214
+ Impact of Negative Sample Size: In the training of AR2, the number of negative documents $n$ would affect both the model performance and training time. In Table 3, we show the performance and the training latency per batch with different negative sample size $n$ . In this setting, we evaluate AR2 without the regularization term. We observe the improvement over $\mathbb { R } \ @ 1$ and $\mathbf { R } @ 5$ by increasing $n$ from 1 to 7, and marginal improvement when keep increasing $n$ from 7 to 15. The latency of training per batch is almost linear increased by improving $n$ .
215
+
216
+ Comparison with IRGAN: The original IRGAN (Wang et al., 2017) doesn’t work for dense text retrieval tasks as it does not contain the dual-encoder retrieval model for fast document indexing and search. However, it provides an conventional GAN framework for training the generative and discriminative models jointly for IR tasks. To compare the proposed AR2 with IRGAN, we replaced the generative and discriminative models in IRGAN with the retriever and ranker models in AR2, respectively. Therefore, with the configuration of the same model architectures for generator (retriever) and discriminator (ranker), The performance of the retriever is shown in Table 4. We see that AR2 outperforms IRGAN significantly.
217
+
218
+ ![](images/9ed4eebe27b9538efbce9ef46526c7359931f3359b2d736544c9148c38400ece.jpg)
219
+ Figure 3: NQ $\mathbf { R } @ 5$ on the number of iteration for both the AR2-retriever and the AR2-ranker.
220
+
221
+ ![](images/c0596fd0e5c8521280d2dfd1f94ba2408780e3394bf1e155aaa64797bcf8122d.jpg)
222
+ Figure 4: The comparison of ANCE and AR2 on NQ test set.
223
+
224
+ Table 6: The results of the second-stage ranking on Natural Questions test set. Note that we copy the numbers of the first block from the RIDER paper (Mao et al., 2021b).
225
+
226
+ <table><tr><td>Retriever</td><td>Ranker</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@20</td><td>R@50</td><td>R@100</td></tr><tr><td>GAR+ (Mao et al., 2021a)</td><td>1</td><td>46.8</td><td>70.7</td><td>77.0</td><td>81.5</td><td>1</td><td>88.9</td></tr><tr><td>GAR+ (Mao et al., 2021a)</td><td>BERT</td><td>51.4</td><td>67.6</td><td>75.7</td><td>82.4</td><td>1</td><td>88.9</td></tr><tr><td>GAR+ (Mao et al., 2021a)</td><td>BART</td><td>55.2</td><td>73.5</td><td>78.5</td><td>82.2</td><td>1</td><td>88.9</td></tr><tr><td>GAR+ (Mao et al., 2021a)</td><td>RIDER</td><td>53.5</td><td>75.2</td><td>80.0</td><td>83.2</td><td>1</td><td>88.9</td></tr><tr><td>AR2-G</td><td>-</td><td>58.7</td><td>77.9</td><td>82.5</td><td>86.0</td><td>88.5</td><td>90.1</td></tr><tr><td>AR2-G</td><td>AR2-D</td><td>65.6</td><td>81.5</td><td>84.9</td><td>87.2</td><td>89.5</td><td>90.1</td></tr></table>
227
+
228
+ Effect of Regularization: To study the effectiveness of regularization, we conducted ablation studies by removing the regularization term in the training of retrieval model. In Table 5, $" R "$ refers to the regularization item, it shows that the regularization approach helps to improve the $\mathbf { R } \ @ 1$ and $\mathbf { R } @ 5$ evaluation metrics. In additional, we compute the average entropy of distribution $p _ { \theta } ( \cdot | q , d , \mathbb { D } _ { q } )$ on the NQ test set, where $\mathbb { D } _ { q }$ is the retrieved top-15 documents. The average entropy measures the sharpness of distribution $p _ { \theta } \dot { ( \cdot | } q , d , \mathbb { D } _ { q } )$ . In experiments, the average entropies for with $R$ and w/o $R$ in AR2-G are 2.10 and 1.70 respectively. This indicates that the regularization term could help smooth the prediction of probabilities in the retriever.
229
+
230
+ Visualization of the Training Procedure: We visualize the changes of $\mathbf { R } @ 5$ during the AR2- $\mathbf { G }$ training. The result is shown in Figure 3. We see that as adversarial iteration increases, the $\mathbf { R } @ 5$ of both AR2-retriever and AR2-ranker also gradually increases. AR2-retriever has the most significant improvement (about $4 . 5 \%$ ) after the first iteration. While the training advances closer to the convergence, the improvement of $\mathbf { R } @ 5$ also gradually slows down. In the end, AR2-retriever is improved by approximately $8 \%$ and AR2-ranker is improved by approximately $3 \%$ .
231
+
232
+ Adversarial Training versus Iterative Hard-Negative Sampling: To give a fair comparison of AR2 and ANCE (Xiong et al., 2021), we retrain the ANCE model by initializing it with the same warm-up ${ \bf A } { \bf R } 2 – { \bf G } ^ { \bf 0 }$ which leverages the advantage of the continuous pre-training technique. In experiments, ANCE trains the retriever with an iterative hard-negative sampling approach instead of adversarial training in AR2. In Figure 4, we observe that AR2 steadily outperforms ANCE during training in terms of $\mathbf { R } @ 5$ and $\mathrm { R @ 1 0 }$ evaluation metrics with the same model-initialization. It shows that AR2 is a superior training framework compared with ANCE.
233
+
234
+ Performance of the Pipeline: We evaluate the performance of the retrieve-then-rank pipeline on NQ dataset. The results are shown in Table 6. $\mathrm { G A R ^ { + } }$ is a sparse retriever which ensembles GAR (Mao et al., 2021a) and DPR (Karpukhin et al., 2020). BERT (Nogueira & Cho, 2019), BART (Nogueira et al., 2020), and RIDER (Mao et al., 2021b) are three ranking methods. BERT ranker is a cross-encoder, which makes a binary relevance decision for each query-passage pair.
235
+
236
+ BART ranker generates relevance labels as target tokens in a seq2seq manner. RIDER re-ranks the retrieved passages based on the lexical overlap with the top predicted answers from the reader. The results show that AR2 pipeline significantly outperforms existing public pipelines.
237
+
238
+ # 5 RELATED WORK
239
+
240
+ Text Retrieval: Text retrieval aims to find related documents from a large corpus given a query.
241
+ Retrieval-then-rank is the widely used pipeline (Huang et al., 2020; Zou et al., 2021).
242
+
243
+ For the first stage retrieval, early researchers used sparse vector space models, e.g., BM25 (Yang et al., 2017). Recently, some works improve the traditional sparse retriever with neural network, e.g., Dai & Callan (2019) use BERT to dynamically generate term weights, doc2Query (Nogueira et al., 2019b), docTTTTTQuery (Nogueira et al., 2019a), and GAR (Mao et al., 2021a) use text generation to expand queries or documents to make better use of BM25.
244
+
245
+ Recently, dense retrieval methods have become a new paradigm for the first stage of retrieval. Various methods have been proposed to enhance dense retrieval, e.g., DPR (Karpukhin et al., 2020) and ME-BERT (Luan et al., 2021) use in-batch negatives and construct hard negatives by BM25; ANCE (Xiong et al., 2021), RocketQA (Qu et al., 2021), and ADORE (Zhan et al., 2021) improve the hard negative sampling by iterative replacement, denoising, and dynamic sampling, respectively; PAIR (Ren et al., 2021) leverages passage-centric similarity relation into training object; FID-KD (Izacard & Grave, 2020) and RDR (Yang & Seo, 2020) distill knowledge from reader to retriever; Guu et al. (2020) and Sachan et al. (2021b) enhance retriever by jointly training with downstream tasks. Some researchers focus on the pre-training of dense retrieval, such as ICT (Lee et al., 2019), Condenser (Gao & Callan, 2021b) and Cocondenser (Gao & Callan, 2021a).
246
+
247
+ For the second stage ranking, previous works typically use cross-encoder based methods. The crossencoder models which capture the token-level interactions between the query and the document (Guo et al., 2016; Xiong et al., 2017), have shown to be more effective. Various methods are proposed to enhance ranker, e.g., Nogueira & Cho (2019) use BERT to make a binary relevance decision for each query-passage pair; Nogueira et al. (2020) adopt BART to generate relevance labels as target tokens in a seq2seq manner; Khattab & Zaharia (2020) and Gao et al. (2020) adopt the lightweight interaction based on the representations of dense retrievers to reduce computation. However, negative samples are statically sampled in these works. In AR2, negative samples for training the ranker will be dynamically adjusted with the progressive retriever.
248
+
249
+ Generative Adversarial Nets: Generative Adversarial Nets (Goodfellow et al., 2014) have been widely studied in the generation field, i.e., image generation (Brock et al., 2018) and text generation (Yu et al., 2017). With a minimax game, GAN aims to train a generative model to fit the real data distribution under the guidance of a discriminative model. Few works study GAN to text retrieval. A related work is IRGAN (Wang et al., 2017). It proposes a minimax retrieval framework that aims to unify the generative and discriminative retrieval models.
250
+
251
+ # 6 CONCLUSION
252
+
253
+ In this paper, we introduce AR2, an adversarial retriever-ranker framework to jointly train the end-toend retrieve-then-rank pipeline. In AR2, the retriever retrieves hard negatives to cheat the ranker, and the ranker learns to rank the collection of positives and hard negatives while providing progressive rewards to the retriever. AR2 can iteratively improve the performance of both the retriever and the ranker because (1) the retriever is guided by the progressive ranker; (2) the ranker learns better through the harder negatives sampled by the progressive retriever. AR2 achieves new state-of-the-art performance on all three competitive benchmarks.
254
+
255
+ # Acknowledgement
256
+
257
+ This work is supported by the National Natural Science Fund for Distinguished Young Scholar (Grant No. 61625204), and partially supported by the Key Program of National Science Foundation of China (Grant No. 61836006).
258
+
259
+ # REFERENCES
260
+
261
+ Dan Brickley, Matthew Burgess, and Natasha Noy. Google dataset search: Building a search engine for datasets in an open web ecosystem. In WWW, 2019.
262
+
263
+ Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. In ICLR, 2018.
264
+
265
+ Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. Reading wikipedia to answer opendomain questions. In ACL, 2017.
266
+
267
+ Tianqi Chen, Bing Xu, Chiyuan Zhang, and Carlos Guestrin. Training deep nets with sublinear memory cost. arXiv preprint arXiv:1604.06174, 2016.
268
+
269
+ Zhuyun Dai and Jamie Callan. Deeper text understanding for ir with contextual neural language modeling. In SIGIR, 2019.
270
+
271
+ Luyu Gao and Jamie Callan. Unsupervised corpus aware language model pre-training for dense passage retrieval. arXiv preprint arXiv:2108.05540, 2021a.
272
+
273
+ Luyu Gao and Jamie Callan. Is your language model ready for dense representation fine-tuning? arXiv preprint arXiv:2104.08253, 2021b.
274
+
275
+ Luyu Gao, Zhuyun Dai, and Jamie Callan. Modularized transfomer-based ranking framework. In EMNLP, 2020.
276
+
277
+ Luyu Gao, Zhuyun Dai, and Jamie Callan. COIL: revisit exact lexical match in information retrieval with contextualized inverted list. In NAACL-HLT, 2021.
278
+
279
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. NIPS, 2014.
280
+
281
+ Daya Guo, Duyu Tang, Nan Duan, Ming Zhou, and Jian Yin. Dialog-to-action: Conversational question answering over a large-scale knowledge base. 2018.
282
+
283
+ Daya Guo, Shuo Ren, Shuai Lu, Zhangyin Feng, Duyu Tang, Shujie Liu, Long Zhou, Nan Duan, Alexey Svyatkovskiy, Shengyu Fu, et al. Graphcodebert: Pre-training code representations with data flow. arXiv preprint arXiv:2009.08366, 2020.
284
+
285
+ Jiafeng Guo, Yixing Fan, Qingyao Ai, and W Bruce Croft. A deep relevance matching model for ad-hoc retrieval. In CIKM, 2016.
286
+
287
+ Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. Retrieval augmented language model pre-training. In ICML, 2020.
288
+
289
+ Shuguang Han, Xuanhui Wang, Mike Bendersky, and Marc Najork. Learning-to-rank with bert in tf-ranking. arXiv preprint arXiv:2004.08476, 2020.
290
+
291
+ Linmei Hu, Siyong Xu, Chen Li, Cheng Yang, Chuan Shi, Nan Duan, Xing Xie, and Ming Zhou. Graph neural news recommendation with unsupervised preference disentanglement. In ACL, 2020.
292
+
293
+ Jui-Ting Huang, Ashish Sharma, Shuying Sun, Li Xia, David Zhang, Philip Pronin, Janani Padmanabhan, Giuseppe Ottaviano, and Linjun Yang. Embedding-based retrieval in facebook search. In KDD, 2020.
294
+
295
+ Po-Sen Huang, Xiaodong He, Jianfeng Gao, Li Deng, Alex Acero, and Larry Heck. Learning deep structured semantic models for web search using clickthrough data. In CIKM, 2013.
296
+
297
+ Gautier Izacard and Edouard Grave. Distilling knowledge from reader to retriever for question answering. arXiv preprint arXiv:2012.04584, 2020.
298
+
299
+ Jeff Johnson, Matthijs Douze, and Herve J ´ egou. Billion-scale similarity search with gpus. ´ IEEE Transactions on Big Data, 2019.
300
+
301
+ Mandar Joshi, Eunsol Choi, Daniel S. Weld, and Luke Zettlemoyer. Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension. In ACL, 2017.
302
+
303
+ Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick S. H. Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. Dense passage retrieval for open-domain question answering. In EMNLP, 2020.
304
+
305
+ Omar Khattab and Matei Zaharia. Colbert: Efficient and effective passage search via contextualized late interaction over bert. In SIGIR, 2020.
306
+
307
+ 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 Le, and Slav Petrov. Natural questions: a benchmark for question answering research. Trans. Assoc. Comput. Linguistics, 7:452–466, 2019.
308
+
309
+ Kenton Lee, Ming-Wei Chang, and Kristina Toutanova. Latent retrieval for weakly supervised open domain question answering. In ACL, 2019.
310
+
311
+ Dayiheng Liu, Yeyun Gong, Jie Fu, Yu Yan, Jiusheng Chen, Daxin Jiang, Jiancheng Lv, and Nan Duan. Rikinet: Reading wikipedia pages for natural question answering. In ACL, 2020.
312
+
313
+ Yi Luan, Jacob Eisenstein, Kristina Toutanova, and Michael Collins. Sparse, dense, and attentional representations for text retrieval. Transactions of the Association for Computational Linguistics, 9:329–345, 2021.
314
+
315
+ Christopher D. Manning, Prabhakar Raghavan, and Hinrich Schutze. ¨ Introduction to Information Retrieval. Cambridge University Press, Cambridge, UK, 2008. ISBN 978-0-521-86571-5.
316
+
317
+ Yuning Mao, Pengcheng He, Xiaodong Liu, Yelong Shen, Jianfeng Gao, Jiawei Han, and Weizhu Chen. Generation-augmented retrieval for open-domain question answering. In ACL, 2021a.
318
+
319
+ Yuning Mao, Pengcheng He, Xiaodong Liu, Yelong Shen, Jianfeng Gao, Jiawei Han, and Weizhu Chen. Reader-guided passage reranking for open-domain question answering. In Findings of ACL/IJCNLP, 2021b.
320
+
321
+ Bhaskar Mitra and Nick Craswell. Neural models for information retrieval. CoRR, abs/1705.01509, 2017. URL http://arxiv.org/abs/1705.01509.
322
+
323
+ Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, Rangan Majumder, and Li Deng. Ms marco: A human generated machine reading comprehension dataset. In CoCo@ NIPS, 2016.
324
+
325
+ Rodrigo Nogueira and Kyunghyun Cho. Passage re-ranking with bert. arXiv preprint arXiv:1901.04085, 2019.
326
+
327
+ Rodrigo Nogueira, Jimmy Lin, and AI Epistemic. From doc2query to doctttttquery. Online preprint, 2019a.
328
+
329
+ Rodrigo Nogueira, Wei Yang, Jimmy Lin, and Kyunghyun Cho. Document expansion by query prediction. arXiv preprint arXiv:1904.08375, 2019b.
330
+
331
+ Rodrigo Nogueira, Zhiying Jiang, and Jimmy Lin. Document ranking with a pretrained sequenceto-sequence model. arXiv preprint arXiv:2003.06713, 2020.
332
+
333
+ Barlas Oguz, Kushal Lakhotia, Anchit Gupta, Patrick Lewis, Vladimir Karpukhin, Aleksandra Pik- ˘ tus, Xilun Chen, Sebastian Riedel, Wen-tau Yih, Sonal Gupta, et al. Domain-matched pre-training tasks for dense retrieval. arXiv preprint arXiv:2107.13602, 2021.
334
+
335
+ Yingqi Qu, Yuchen Ding, Jing Liu, Kai Liu, Ruiyang Ren, Wayne 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-HLT, 2021.
336
+
337
+ 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. CoRR, abs/2103.00020, 2021.
338
+
339
+ Ruiyang Ren, Shangwen Lv, Yingqi Qu, Jing Liu, Wayne Xin Zhao, Qiaoqiao She, Hua Wu, Haifeng Wang, and Ji-Rong Wen. PAIR: leveraging passage-centric similarity relation for improving dense passage retrieval. In Findings of ACL/IJCNLP, 2021.
340
+
341
+ Devendra Singh Sachan, Mostofa Patwary, Mohammad Shoeybi, Neel Kant, Wei Ping, William L. Hamilton, and Bryan Catanzaro. End-to-end training of neural retrievers for open-domain question answering. In ACL/IJCNLP, 2021a.
342
+
343
+ Devendra Singh Sachan, Siva Reddy, William Hamilton, Chris Dyer, and Dani Yogatama. End-toend training of multi-document reader and retriever for open-domain question answering. arXiv preprint arXiv:2106.05346, 2021b.
344
+
345
+ Yelong Shen, Xiaodong He, Jianfeng Gao, Li Deng, and Gregoire Mesnil. Learning semantic rep- ´ resentations using convolutional neural networks for web search. In WWW, 2014.
346
+
347
+ Yu Sun, Shuohuan Wang, Yukun Li, Shikun Feng, Hao Tian, Hua Wu, and Haifeng Wang. Ernie 2.0: A continual pre-training framework for language understanding. In AAAI, 2020.
348
+
349
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, 2017.
350
+
351
+ Jun Wang, Lantao Yu, Weinan Zhang, Yu Gong, Yinghui Xu, Benyou Wang, Peng Zhang, and Dell Zhang. Irgan: A minimax game for unifying generative and discriminative information retrieval models. In SIGIR, 2017.
352
+
353
+ Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick ´ von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. Transformers: State-of-the-art natural language processing. In EMNLP, 2020.
354
+
355
+ Chenyan Xiong, Zhuyun Dai, Jamie Callan, Zhiyuan Liu, and Russell Power. End-to-end neural ad-hoc ranking with kernel pooling. In SIGIR, 2017.
356
+
357
+ Lee Xiong, Chenyan Xiong, Ye Li, Kwok-Fung Tang, Jialin Liu, Paul N. Bennett, Junaid Ahmed, and Arnold Overwijk. Approximate nearest neighbor negative contrastive learning for dense text retrieval. In ICLR, 2021.
358
+
359
+ Peilin Yang, Hui Fang, and Jimmy Lin. Anserini: Enabling the use of lucene for information retrieval research. In SIGIR, 2017.
360
+
361
+ Sohee Yang and Minjoon Seo. Is retriever merely an approximator of reader? arXiv preprint arXiv:2010.10999, 2020.
362
+
363
+ Lantao Yu, Weinan Zhang, Jun Wang, and Yong Yu. Seqgan: Sequence generative adversarial nets with policy gradient. In AAAI, 2017.
364
+
365
+ Jingtao Zhan, Jiaxin Mao, Yiqun Liu, Min Zhang, and Shaoping Ma. Repbert: Contextualized text embeddings for first-stage retrieval. arXiv preprint arXiv:2006.15498, 2020.
366
+
367
+ Jingtao Zhan, Jiaxin Mao, Yiqun Liu, Jiafeng Guo, Min Zhang, and Shaoping Ma. Optimizing dense retrieval model training with hard negatives. In SIGIR, 2021.
368
+
369
+ Lixin Zou, Shengqiang Zhang, Hengyi Cai, Dehong Ma, Suqi Cheng, Shuaiqiang Wang, Daiting Shi, Zhicong Cheng, and Dawei Yin. Pre-trained language model based ranking in baidu search. In KDD, 2021.
370
+
371
+ # A APPENDIX
372
+
373
+ A.1 PROOF
374
+
375
+ Proof of Eqn. 9: Suppose $d _ { i } ^ { - } \in { \mathbb { D } } _ { q } ^ { - }$ is sampled by $p _ { \theta } ( \cdot | q ; \mathbb { D } _ { q } ^ { - } )$ , thus
376
+
377
+ $$
378
+ \begin{array} { r l } & { J ^ { \theta } = \mathbf { E } _ { \mathbb { D } _ { q } ^ { - } \sim G _ { \theta } ( q , \cdot ) } \left[ \log p _ { \phi } ( d | q ; \{ d \} \cup \mathbb { D } _ { q } ^ { - } ) \right] } \\ & { \qquad \le \mathbf { E } _ { \mathbb { D } _ { q } ^ { - } \sim G _ { \theta } ( q , \cdot ) } \left( \mathbf { E } _ { d _ { i } ^ { - } \sim p _ { \phi } ( \cdot | q ; \mathbb { D } _ { q } ^ { - } ) } \left[ \log p _ { \phi } ( d | q ; \{ d , d _ { i } ^ { - } \} ) \right] \right) } \end{array}
379
+ $$
380
+
381
+ where $\mathbb { D } _ { q } ^ { - }$ indicates the set of negative documents sampled by $G _ { \theta } ( q , \cdot )$ . In practice, we approximate $\mathbb { D } _ { q } ^ { - }$ by sampling $n$ documents from the top- $K$ retrieved negative set. Therefore, we could further obtain the following approximately equation in implementation.
382
+
383
+ $$
384
+ \approx \mathbf { E } _ { d _ { i } ^ { - } \sim p _ { \theta } ( \cdot \vert q ; \mathbb { D } _ { q } ^ { - } ) } \left[ \log p _ { \phi } ( d \vert q ; \{ d , d _ { i } ^ { - } \} ) \right] = \hat { J } ^ { \theta }
385
+ $$
386
+
387
+ Proof of Eqn. 10:
388
+
389
+ $$
390
+ \begin{array} { l } { { \nabla _ { \theta } \hat { J } ^ { \theta } = \nabla _ { \theta } \mathbf { E } _ { d _ { i } ^ { - } \sim p _ { \theta } ( \cdot \vert q ; \mathbb { D } _ { q } ^ { - } ) } \left[ \log p _ { \phi } ( d \vert q ; \{ d , d _ { i } ^ { - } \} ) \right] } } \\ { { { { } } } = \displaystyle \sum _ { i } \nabla _ { \theta } p _ { \theta } ( d _ { i } ^ { - } \vert q ; \mathbb { D } _ { q } ^ { - } ) \left[ \log p _ { \phi } ( d \vert q ; \{ d , d _ { i } ^ { - } \} ) \right] } \\ { { { } } } \\ { { { } } = \displaystyle \sum _ { i } p _ { \theta } ( d _ { i } ^ { - } \vert q ; \mathbb { D } _ { q } ^ { - } ) \nabla _ { \theta } \log p _ { \theta } ( d _ { i } ^ { - } \vert q ; \mathbb { D } _ { q } ^ { - } ) \left[ \log p _ { \phi } ( d \vert q ; \{ d , d _ { i } ^ { - } \} ) \right] } \\ { { { } } } \\ { { { } } = \displaystyle \mathbf { E } _ { d _ { i } ^ { - } \sim p _ { \theta } ( \cdot \vert q ; \mathbb { D } _ { q } ^ { - } ) } \nabla _ { \theta } \log p _ { \theta } ( d _ { i } ^ { - } \vert q ; \mathbb { D } _ { q } ^ { - } ) \left[ \log p _ { \phi } ( d \vert q ; \{ d , d _ { i } ^ { - } \} ) \right] } \end{array}
391
+ $$
392
+
393
+ # A.2 EFFICIENCY REPORT
394
+
395
+ We list the time cost of training and inference in Table 7. The evaluation is made with 8 NVIDIA A100 GPUs. The max step of ANCE training is from the ANCE’s open-source website 2.We estimate the overall training time without taking account of the time of continuous pre-training step and warming-up step.
396
+
397
+ Table 7: Comparison of Efficiency
398
+
399
+ <table><tr><td></td><td>DPR</td><td>ANCE</td><td>AR2(n=15)</td><td>AR2(n=1)</td></tr><tr><td>Training Batch Size Max Step</td><td>128 20k 1.8h</td><td>128 136k</td><td>64 20k</td><td>64 20k</td></tr><tr><td>BPfor Retriever BP for Ranker Iteration Number Index Refresh</td><td>1 0 0.5</td><td>11h 1 10</td><td>2.3h 0.75h 10</td><td>1h 0.35h 10</td></tr><tr><td>Overall</td><td>1.85h</td><td>0.5h 16h</td><td>0.5h</td><td>0.5h</td></tr><tr><td>Inference</td><td></td><td></td><td>9.1h</td><td>6.4h</td></tr><tr><td></td><td>20min</td><td></td><td></td><td></td></tr><tr><td>Encoding of Corpus</td><td></td><td>20min</td><td>20min</td><td>20min</td></tr><tr><td>Query Encoding</td><td>40ns</td><td>40ns</td><td>40ns</td><td>40ns</td></tr><tr><td>ANNIndexBuild</td><td>2min</td><td>2min</td><td>2min</td><td></td></tr><tr><td></td><td>2ms</td><td></td><td></td><td>2min</td></tr><tr><td>ANN Retrieval(Top-100)</td><td></td><td>2ms</td><td>2ms</td><td>2ms</td></tr></table>
400
+
401
+ # A.3 HYPERPARAMETERS
402
+
403
+ Table 8: Hyperparameters for AR2 training.
404
+
405
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=9>Parameter</td><td rowspan=1 colspan=1>NQ TriviaQA MS-MARCO</td></tr><tr><td rowspan=1 colspan=1>Default</td><td rowspan=1 colspan=9>Max query lengthMax passage length</td><td rowspan=1 colspan=1>32 32 32128 128 128</td></tr><tr><td rowspan=5 colspan=1>AR2-G0</td><td rowspan=5 colspan=9>Learning rateNegative sizeBatch sizeTemperature TOptimizerSchedulerWarmup proportionTraining epoch</td><td rowspan=1 colspan=1>1e-5 1e-5 1e-4</td></tr><tr><td rowspan=1 colspan=3></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>255 255 127</td></tr><tr><td rowspan=1 colspan=2></td><td rowspan=1 colspan=1></td><td rowspan=3 colspan=1>128 128 641 1 1AdamW AdamW AdamWLinear Linear Linear0.1 0.1 0.140 40 3</td></tr><tr><td rowspan=1 colspan=2></td></tr><tr><td rowspan=1 colspan=2>Scheduler</td><td rowspan=1 colspan=3>r</td></tr><tr><td rowspan=9 colspan=1>AR2-D0</td><td rowspan=3 colspan=9>Learning rateNegative sizeBatch size</td><td rowspan=1 colspan=1>1e-5 1e-5 1e-5</td></tr><tr><td rowspan=1 colspan=1>15 15 15</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>64 64 256</td></tr><tr><td rowspan=2 colspan=9>Temperature TOptimizer</td><td rowspan=2 colspan=1>1 1 1AdamW AdamW AdamW</td></tr><tr><td rowspan=3 colspan=1>AdamW AdamW AdamWLinear Linear Linear0.1 0.1 0.1</td></tr><tr><td rowspan=1 colspan=9>Scheduler</td><td rowspan=1 colspan=1>Linear Linear</td></tr><tr><td rowspan=3 colspan=9>Warmup proportionTraining step per iterationMax step</td></tr><tr><td rowspan=1 colspan=1>1500 1500 1500</td></tr><tr><td rowspan=1 colspan=5></td><td rowspan=1 colspan=1>2000 2000 4000</td></tr><tr><td rowspan=8 colspan=1>AR2-G</td><td rowspan=8 colspan=9>Learning rateNegative sizeBatch sizeTemperature TOptimizerSchedulerWarmup proportionTraining step per iterationMax step</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>15 15 15</td></tr><tr><td rowspan=1 colspan=1>64 64 64</td></tr><tr><td rowspan=1 colspan=1>1 1 1AdamW AdamW AdamW</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Linear Linear Linear</td></tr><tr><td rowspan=1 colspan=1>0.1 0.1 0.1</td></tr><tr><td rowspan=1 colspan=1>1500 1500 1500</td></tr><tr><td rowspan=1 colspan=5></td><td rowspan=1 colspan=1>15000 15000 15000</td></tr><tr><td rowspan=8 colspan=1>AR2-D</td><td rowspan=5 colspan=9>Negative sizeLearning rateBatch sizeTemperature TOptimizerScheduler</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1></td><td></td></tr><tr><td rowspan=1 colspan=1>64 64 64</td></tr><tr><td rowspan=1 colspan=1>1 1 1AdamW AdamW AdamW</td></tr><tr><td rowspan=1 colspan=1>Linear Linear Linear</td></tr><tr><td rowspan=2 colspan=9>Warmup proportionTraining step per iteration</td><td rowspan=1 colspan=1>0.1 0.1 0.1</td></tr><tr><td rowspan=1 colspan=1>500 500 500</td></tr><tr><td rowspan=1 colspan=9>Max step</td><td rowspan=1 colspan=1>5000 5000 5000</td></tr></table>
406
+
407
+ # A.4 MODEL CONFIGURATION AND EXPERIMENT SETTINGS
408
+
409
+ We list the detailed configuration of AR2 and baseline models in Table 9.
410
+
411
+ Table 9: Model configuration and experiment settings.
412
+
413
+ <table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>InitialModel</td><td rowspan=1 colspan=1>Parameters</td><td rowspan=1 colspan=1>FurtherPretrain</td><td rowspan=1 colspan=1>AdditionalData</td></tr><tr><td rowspan=1 colspan=1>DPR (Karpukhin et al., 2020)</td><td rowspan=1 colspan=1>BERT-Base</td><td rowspan=1 colspan=1>110M</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>ANCE (Xiong et al., 2021)</td><td rowspan=1 colspan=1>BERT/RoBERTa-Base</td><td rowspan=1 colspan=1>110M/125M</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>RocketQA (Qu et al., 2021)</td><td rowspan=1 colspan=1>ERNIE-2.0-BaseERNIE-2.0-Large</td><td rowspan=1 colspan=1>110M330M</td><td rowspan=1 colspan=1>--</td><td rowspan=1 colspan=1>1.7 M</td></tr><tr><td rowspan=1 colspan=1>PAIR (Ren et al., 2021)</td><td rowspan=1 colspan=1>ERNIE-2.0-BaseERNIE-2.0-Large</td><td rowspan=1 colspan=1>110M330M</td><td rowspan=1 colspan=1>--</td><td rowspan=1 colspan=1>1.7 M</td></tr><tr><td rowspan=1 colspan=1>Individual Top-k (Sachan et al., 2021a)</td><td rowspan=1 colspan=1>ERNIE-2.0-BaseT5-Large</td><td rowspan=1 colspan=1>110M739M</td><td rowspan=1 colspan=1>Yes1</td><td rowspan=1 colspan=1>-</td></tr><tr><td rowspan=1 colspan=1>coCondenser (Gao &amp; Callan,2021a)</td><td rowspan=1 colspan=1>BERT-Base</td><td rowspan=1 colspan=1>110M</td><td rowspan=1 colspan=1>Yes</td><td rowspan=1 colspan=1>=</td></tr><tr><td rowspan=1 colspan=1>Our (AR2-G) (Retriever)Our (AR2-D) (Ranker)</td><td rowspan=1 colspan=1>ERNIE-2.0-BaseERNIE-2.0-Large</td><td rowspan=1 colspan=1>110M330M</td><td rowspan=1 colspan=1>Yes-</td><td rowspan=1 colspan=1>==</td></tr></table>
414
+
415
+ # A.5 ABLATION STUDY ON DIFFERENT INITIAL MODELS
416
+
417
+ Table 10 shows the results of our method with different initial models. We see that ERNIE-Base as the initial model achieves a little better performance than BERT-Base. And AR2-G using BERTBase as the initial model still achieves better performance than other methods under the same initial model. Meanwhile, ICT pre-training improves the performance of AR2-G.
418
+
419
+ Table 10: Performance of AR2-G on NQ test set with different initial model
420
+
421
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Initial Model</td><td rowspan=1 colspan=1>R@1</td><td rowspan=1 colspan=1>R@5</td><td rowspan=1 colspan=2>R@20</td><td rowspan=1 colspan=1>R@100</td></tr><tr><td rowspan=4 colspan=1>DPR (Karpukhin et al., 2020)ANCE (Xiong et al., 2021)RocketQA (Qu et al., 2021)PAIR (Ren et al.,2021)</td><td rowspan=4 colspan=1>BERT-BaseBERT-BaseERNIE-BaseERNIE-Base</td><td rowspan=4 colspan=1>1111</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=2>78.4</td><td rowspan=1 colspan=1>85.3</td></tr><tr><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=2>81.9</td><td rowspan=1 colspan=1>87.5</td></tr><tr><td rowspan=1 colspan=1>74.0</td><td rowspan=2 colspan=2>82.783.5</td><td rowspan=2 colspan=1>88.589.1</td></tr><tr><td rowspan=1 colspan=1>74.9</td></tr><tr><td rowspan=3 colspan=1>AR2-GAR2-GAR2-G</td><td rowspan=3 colspan=1>BERT-BaseERNIE-BaseERNIE-Base w/ ICT</td><td rowspan=3 colspan=1>56.757.258.7</td><td rowspan=1 colspan=1>76.1</td><td rowspan=1 colspan=2>85.0</td><td rowspan=1 colspan=1>89.3</td></tr><tr><td rowspan=2 colspan=1>76.677.9</td><td rowspan=1 colspan=1>85.3</td><td></td><td rowspan=1 colspan=1>89.8</td></tr><tr><td rowspan=1 colspan=2>86.0</td><td rowspan=1 colspan=1>90.1</td></tr></table>
422
+
423
+ # A.6 COMPARISON WITH SEVERAL EXISTING APPROACHES
424
+
425
+ Table 11 shows the comparison of AR2 and several existing retrieval approaches. “Extra Label” refers to whether the answer label is used. AR2 jointly optimizes both the retriever and the ranker according to a principle adversarial objective, which is the key difference with previous works.
426
+
427
+ Table 11: Comparison with existing approaches
428
+
429
+ <table><tr><td>Model</td><td>Extra Label</td><td>Retriever-Ranker/ Retriever-Reader</td><td>Adversarial Objective</td><td>Update Hard Negatives</td></tr><tr><td>FID-KD (Izacard &amp; Grave,2020)</td><td>Yes</td><td>Yes</td><td>No</td><td>No</td></tr><tr><td>RDR(Yang&amp; Seo,2020)</td><td>Yes</td><td>Yes</td><td>No</td><td>No</td></tr><tr><td>RocketQA (Qu et al.,2021)</td><td>No</td><td>Yes</td><td>No</td><td>Yes</td></tr><tr><td>ANCE (Xiong et al.,2021)</td><td>No</td><td>No</td><td>No</td><td>Yes</td></tr><tr><td>RIDER (Mao et al., 2021b)</td><td>Yes</td><td>Yes</td><td>No</td><td>No</td></tr><tr><td>AR2</td><td>No</td><td>Yes</td><td>Yes</td><td>Yes</td></tr></table>
430
+
431
+ # A.7 PERFORMANCE OF THE PIPELINE
432
+
433
+ Table 12 shows the performance of the retrieve-then-rank pipeline on Trivia QA and MS-MARCO. From the results of Table 6 and Table 12, we find that the ranker AR2-D improves the performance on all three benchmarks including NQ, Trivia QA, and MS-MARCO. Meanwhile, the pipeline based on AR2 achieves state-of-the-art performances on all benchmarks.
434
+
435
+ Table 12: The results of the second-stage ranking on Trivia QA and MS-MARCO.
436
+
437
+ <table><tr><td rowspan="2">Retriever</td><td rowspan="2">Ranker</td><td colspan="3">Trivia QA</td><td rowspan="2">MS-MARCO MRR@10</td></tr><tr><td>R@1</td><td>R@5</td><td>R@10</td><td>R@20</td></tr><tr><td>RepBERT (Zhan et al., 2020)</td><td>RepBERT (Zhan et al.,2020)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>37.7</td></tr><tr><td>ME-HYBIRD (Luan et al., 2021)</td><td>ME-HYBIRD (Luan et al., 2021)</td><td>-</td><td>-</td><td>:</td><td>■</td><td>39.4</td></tr><tr><td>ME-BERT(Luan et al.,2021)</td><td>ME-BERT (Luan et al.,2021)</td><td>-</td><td>-</td><td>■</td><td>■</td><td>39.5</td></tr><tr><td>BM25 (Yang et al.,2017)</td><td>TFR-BERT (Han et al.,2020)</td><td>-</td><td>-</td><td>=</td><td>-</td><td>40.5</td></tr><tr><td>GAR+ (Mao et al.,2021a)</td><td>RIDER (Mao et al.,2021b)</td><td>71.9</td><td>77.5</td><td>79.8</td><td>81.8</td><td>-</td></tr><tr><td>AR2-G</td><td>■</td><td>64.2</td><td>78.2</td><td>81.8</td><td>84.4</td><td>39.5</td></tr><tr><td>AR2-G</td><td>AR2-D</td><td>73.0</td><td>82.1</td><td>84.1</td><td>85.8</td><td>43.2</td></tr></table>
438
+
439
+ # A.8 PERFORMANCE OF THE LARGE-SIZE MODEL
440
+
441
+ Table 13 shows the results of AR2-G (Retriever) initialized with ERNIE-2.0-Large (without continuous pre-training (ICT)). All baselines are initialized by large-size model, and DPR-PAQ (Oguz ˘ et al., 2021) utilizes a large external corpus $6 5 \mathrm { m }$ question-answer pairs) to continue pre-training the model; Individual Top-K (Sachan et al., 2021a) utilizes T5-Large model (739M parameters vs 330M parameters ERNIE-2.0-Large) as reader to guide the retriever. Compared with these baseline methods, AR2-G achieves a significant performance improvement, which further demonstrates the effectiveness of AR2-G (Retriever).
442
+
443
+ Table 13: The performance of large-size models on Natural Questions test set,
444
+
445
+ <table><tr><td></td><td>Size</td><td>R@1</td><td>R@5</td><td>R@20</td><td>R@100</td></tr><tr><td>DPR-PAQBERT (Oguz et al., 2021) DPR-PAQRoBERTa (Oguz et al., 2021)</td><td>Large Large</td><td>1 1</td><td>75.3 76.9</td><td>84.4 84.7</td><td>88.9 89.2</td></tr><tr><td>Individual Top-K (Sachan et al., 2021a) AR2-G AR2-G</td><td>Large Base Large</td><td>57.5 58.7 61.1</td><td>76.2 77.9 78.8</td><td>84.8 86.0 86.5</td><td>89.8 90.1 90.4</td></tr></table>
parse/dev/MR7XubKUFB/MR7XubKUFB_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/MR7XubKUFB/MR7XubKUFB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/gEZrGCozdqR/gEZrGCozdqR.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/gEZrGCozdqR/gEZrGCozdqR_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/gEZrGCozdqR/gEZrGCozdqR_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/gEZrGCozdqR/gEZrGCozdqR_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/rFbR4Fv-D6-/rFbR4Fv-D6-.md ADDED
@@ -0,0 +1,525 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AUTOMATED SELF-SUPERVISED LEARNING FOR GRAPHS
2
+
3
+ Wei Jin ∗ Michigan State University jinwei2@msu.edu
4
+
5
+ Xiaorui Liu Michigan State University xiaorui@msu.edu
6
+
7
+ Xiaoyu Zhao City University of Hong Kong xy.zhao@cityu.edu.hk
8
+
9
+ # Yao Ma
10
+
11
+ Neil Shah
12
+ Snap Inc.
13
+ nshah@snap.com
14
+
15
+ New Jersey Institute of Technology yao.ma@njit.edu
16
+
17
+ Jiliang Tang Michigan State University tangjili@msu.edu
18
+
19
+ # ABSTRACT
20
+
21
+ Graph self-supervised learning has gained increasing attention due to its capacity to learn expressive node representations. Many pretext tasks, or loss functions have been designed from distinct perspectives. However, we observe that different pretext tasks affect downstream tasks differently across datasets, which suggests that searching over pretext tasks is crucial for graph self-supervised learning. Different from existing works focusing on designing single pretext tasks, this work aims to investigate how to automatically leverage multiple pretext tasks effectively. Nevertheless, evaluating representations derived from multiple pretext tasks without direct access to ground truth labels makes this problem challenging. To address this obstacle, we make use of a key principle of many real-world graphs, i.e., homophily, or the principle that “like attracts like,” as the guidance to effectively search various self-supervised pretext tasks. We provide theoretical understanding and empirical evidence to justify the flexibility of homophily in this search task. Then we propose the AUTOSSL framework to automatically search over combinations of various self-supervised tasks. By evaluating the framework on 8 real-world datasets, our experimental results show that AUTOSSL can significantly boost the performance on downstream tasks including node clustering and node classification compared with training under individual tasks.
22
+
23
+ # 1 INTRODUCTION
24
+
25
+ Graphs are pivotal data structures describing the relationships between entities in various domains such as social media, biology, transportation and financial systems (Wu et al., 2019b; Battaglia et al., 2018). Due to their prevalence and rich descriptive capacity, pattern mining and discovery on graph data is a prominent research area with powerful implications. As the generalization of deep neural networks on graph data, graph neural networks (GNNs) have proved to be powerful in learning representations for graphs and associated entities (nodes, edges, subgraphs), and they have been employed in various applications such as node classification (Kipf & Welling, 2016a; Velickovi ˇ c´ et al., 2018), node clustering (Pan et al., 2018), recommender systems (Ying et al., 2018) and drug discovery (Duvenaud et al., 2015).
26
+
27
+ In recent years, the explosive interest in self-supervised learning (SSL) has suggested its great potential in empowering stronger neural networks in an unsupervised manner (Chen et al., 2020; Kolesnikov et al., 2019; Doersch et al., 2015). Many self-supervised methods have also been developed to facilitate graph representation learning (Jin et al., 2020; Xie et al., 2021; Wang et al., 2022) such as DGI (Velickovi ˇ c et al., 2019), P ´ AR/CLU (You et al., 2020) and MVGRL (Hassani & Khasahmadi, 2020). Given graph and node attribute data, they construct pretext tasks, which are called SSL tasks, based on structural and attribute information to provide self-supervision for training graph neural networks without accessing any labeled data. For example, the pretext task of
28
+
29
+ ![](images/e589eafb1c39688767e8fbb4f446e62601e368e39e032ad6949f5c6f51d6f19d.jpg)
30
+ Figure 1: (a)(b): Performance of 5 SSL tasks ranked best (1) to worst (5) by color on node clustering and classification, showing disparate performance across datasets and tasks. (c): Clustering performance heatmap on Citeseer when combining 2 SSL tasks, PAIRSIM and PAIRDIS, with different weights. (d) AUTOSSL’s search trajectory for task weights, achieving near-ideal performance.
31
+
32
+ PAR is to predict the graph partitions of nodes. We examine how a variety of SSL tasks including DGI, PAR, CLU, PAIRDIS (Peng et al., 2020) and PAIRSIM (Jin et al., 2020; 2021) perform over 3 datasets. Their node clustering and node classification performance ranks are illustrated in Figure 1a and 1b, respectively. From these figures, we observe that different SSL tasks have distinct downstream performance cross datasets. This observation suggests that the success of SSL tasks strongly depends on the datasets and downstream tasks. Learning representations with a single task naturally leads to ignoring useful information from other tasks. As a result, searching SSL tasks is crucial, which motivates us to study on how to automatically compose a variety of graph self-supervised tasks to learn better node representations.
33
+
34
+ However, combining multiple different SSL tasks for unlabeled representation learning is immensely challenging. Although promising results have been achieved in multi-task self-supervised learning for computer vision, most of them assign equal weights to SSL tasks (Doersch & Zisserman, 2017; Ren & Lee, 2018; Zamir et al., 2018). Such combination might not always yield better performance than a single task, as different tasks have distinct importance according to specific dataset and downstream tasks. To illustrate this intuition, we combine two SSL tasks, PAIRDIS and PAIRSIM, with varied weights and illustrate the corresponding node clustering performance in Figure 1c. It clearly indicates that different choices of weights yield different performance. To circumvent this problem, we could plausibly search different weights for SSL tasks to optimize downstream tasks. However, to achieve such goal, we have two obstacles. First, the search space is huge, and thus search can be highly expensive. Hence, it is desirable to automatically learn these weights. Second, searching for optimal task weights typically requires guidance from downstream performance, which is naturally missing under the unsupervised setting. Thus, how to design an unsupervised surrogate evaluation measure that can guide the search process is necessary.
35
+
36
+ It is evident that many real-world graphs such as friendship networks, citation networks, coauthorship networks and co-purchase networks (McPherson et al., 2001; Shchur et al., 2018) satisfy the homophily assumption, i.e., “like attracts like”, or that connected nodes tend to share the same label. This is useful prior knowledge, as it directly relates the label information of downstream tasks to the graph structure. In this work, we explicitly take advantage of this prior knowledge and assume that the predicted labels from good node embeddings should also adhere to homophily. Given the lack of ground-truth labels during SSL, we propose a pseudo-homophily measure to evaluate the quality of the node embeddings trained from specific combinations of SSL task. With pseudohomophily, we are able to design an automated framework for SSL task search, namely AUTOSSL. Our work makes three significant contributions:
37
+
38
+ (1) To bridge the gap between unsupervised representation and downstream labels, we propose pseudo-homophily to measure the quality of the representation. Moreover, given graphs with high homophily, we theoretically show that pseudo-homophily maximization can help maximize the upper bound of mutual information between pseudo-labels and downstream labels.
39
+ (2) Based on pseudo-homophily, we propose two strategies to efficiently search SSL tasks, one employing evolution algorithm and the other performing differentiable search via meta-gradient descent. AUTOSSL is able to adjust the task weights during search as shown in Figure 1d.
40
+ (3) We evaluate the proposed AUTOSSL by composing various individual tasks on 8 real-world datasets. Extensive experiments have demonstrated that AUTOSSL can significantly improve
41
+
42
+ the performance of individual tasks on node clustering and node classification (e.g., up to $10 . 0 \%$ relative improvement on node clustering).
43
+
44
+ # 2 BACKGROUND AND RELATED WORK
45
+
46
+ Graph Neural Networks. Graph neural networks (GNNs) are powerful tools for extracting useful information from graph data (Liu et al., 2021; Wu et al., 2019b; Kipf & Welling, 2016a; Velickovi ˇ c´ et al., 2018; Hamilton et al., 2017; Kipf & Welling, 2016b; Pan et al., 2018; Liu et al., 2020). They aim to learn a mapping function $f _ { \theta }$ parameterized by $\theta$ to map the input graph into a low-dimensional space. Most graph neural networks follow a message passing scheme (Gilmer et al., 2017) where the node representation is obtained by aggregating the representation of its neighbors.
47
+
48
+ Self-Supervised Learning in GNNs. Graph neural networks have achieved superior performance in various applications; but they also require costly task-dependent labels to learn rich representations. To alleviate the need for the huge amount of labeled data, recent studies have employed self-supervised learning in graph neural networks to provide additional supervision (Jin et al., 2020; Velickovi ˇ c et al., 2019; You et al., 2020; Hassani & Khasahmadi, 2020; Hu et al., 2019; Qiu et al., ´ 2020; Zhu et al., 2020b). Specifically, those SSL methods construct a pre-defined pretext task to assign pseudo-labels for unlabeled nodes/graphs and then train the model on the designed pretext task to learn representations. A recent work JOAO (You et al., 2021) on graph contrastive learning is proposed to automatically select data augmentation and focuses on graph classification task. Another related work is AUX-TS (Han et al., 2021), which also adaptively combines different SSL tasks but the combination happens at the fine-tuning stage and thus requires label information.
49
+
50
+ Multi-Task Self-Supervised Learning. Our work is also related to multi-task self-supervised learning (Doersch & Zisserman, 2017; Ren & Lee, 2018; Zamir et al., 2018). Most of them assume the tasks with equal weights and perform training under the supervised setting. But our work learns different weights for different tasks and does not require access to labeled data.
51
+
52
+ Automated Loss Function Search. Tremendous efforts have been paid to automate every aspect of machine learning applications (Yao et al., 2018; Liu et al., 2018; Zhao et al., 2021b), such as feature engineering, model architecture search and loss function search. Among them, our work is highly related to loss function search (Zhao et al., 2021a; Xu et al., 2018; Wang et al., 2020; Li et al., 2019). However, these methods are developed under the supervised setting and not applicable in selfsupervised learning. Another related work, ELo (Piergiovanni et al., 2020), evolves multiple selfsupervised losses based on Zipf distribution matching for action recognition. However, it is designed exclusively for image data and not applicable to non-grid graph-structured data. The problem of self-supervised loss search for graphs remains rarely explored. To bridge the gap, we propose an automated framework for searching SSL losses towards graph data in an unsupervised manner.
53
+
54
+ # 3 AUTOMATED SELF-SUPERVISED TASK SEARCH WITH AUTOSSL
55
+
56
+ In this section, we present the proposed framework of automated self-supervised task search, namely AUTOSSL. Given a graph $\mathcal { G }$ , a GNN encoder $f _ { \theta } ( \cdot )$ and a set of $n$ self-supervised losses (tasks) $\{ \ell _ { 1 } , \ell _ { 2 } , \dots , \ell _ { n } \}$ , we aim at learning a set of loss weights $\{ \lambda _ { 1 } , \lambda _ { 2 } , \ldots , \lambda _ { n } \}$ such that $f _ { \theta } ( \cdot )$ trained with the weighted loss combination data. The key challenge is how to $\textstyle \sum _ { i = 1 } ^ { n } \lambda _ { i } \ell _ { i }$ can extract meaningful features from the given graphically define “meaningful features”. If we have the access to the labels of the downstream task, we can define “meaningful features” as the features (node embeddings) that can have high performance on the given downstream task. Then we can simply adopt the downstream performance as the optimization goal and formulate the problem of automated self-supervised task search as follows:
57
+
58
+ $$
59
+ \operatorname* { m i n } _ { \lambda _ { 1 } , \cdots , \lambda _ { n } } \mathcal { H } ( f _ { \theta ^ { * } } ( \mathcal { G } ) ) , \quad \mathrm { s . t . } \theta ^ { * } = \arg \operatorname* { m i n } _ { \theta } \mathcal { L } ( f _ { \theta } , \{ \lambda _ { i } \} , \{ \ell _ { i } \} ) = \arg \operatorname* { m i n } _ { \theta } \sum _ { i = 1 } ^ { n } \lambda _ { i } \ell _ { i } ( f _ { \theta } ( \mathcal { G } ) ) ,
60
+ $$
61
+
62
+ where $\mathcal { H }$ denotes the quality measure for the obtained node embeddings, and it can be any metric that evaluates the downstream performance such as cross-entropy loss for the node classification task. However, under the self-supervised setting, we do not have the access to labeled data and thus cannot employ the downstream performance to measure the embedding quality. Instead, we need an unsupervised quality measure $\mathcal { H }$ to evaluate the quality of obtained embeddings. In a nutshell, one challenge of automated self-supervised learning is: how to construct the goal of automated task search without the access to label information of the downstream tasks.
63
+
64
+ # 3.1 PSEUDO-HOMOPHILY
65
+
66
+ Most common graphs adhere to the principle of homophily, i.e., “birds of a feather flock together” (McPherson et al., 2001), which suggests that connected nodes often belong to the same class; e.g. connected publications in a citation network often have the same topic, and friends in social networks often share interests (Newman, 2018). Homophily is often calculated as the fraction of intra-class edges in a graph (Zhu et al., 2020a). Formally, it can be defined as follows,
67
+
68
+ Definition 1 (Homophily). The homophily of a graph $\mathcal { G }$ with node label vector $y$ is given by
69
+
70
+ $$
71
+ h ( \mathcal { G } , y ) = \frac { 1 } { \vert \mathcal { E } \vert } \sum _ { ( v _ { 1 } , v _ { 2 } ) \in \mathcal { E } } \mathbb { 1 } ( y _ { v _ { 1 } } = y _ { v _ { 2 } } ) ,
72
+ $$
73
+
74
+ where $y _ { v _ { i } }$ indicates node $v _ { i }$ ’s label and $\mathbb { 1 } ( \cdot )$ is the indicator function.
75
+
76
+ We calculate the homophily for seven widely used datasets as shown in Appendix A and we find that they all have high homophily, e.g., 0.93 in the Physics dataset. Considering the high homophily in those datasets, intuitively the predicted labels from the extracted node features should also have high homophily. Hence, the prior information of graph homophily in ground truth labels can serve as strong guidance for searching combinations of self-supervised tasks. As mentioned before, in self-supervised tasks, the ground truth labels are not available. Motivated by DeepCluster (Caron et al., 2018) which uses the cluster assignments of learned features as pseudo-labels to train the neural network, we propose to calculate the homophily based on the cluster assignments, which we term as pseudo-homophily. Specifically, we first perform $k$ -means clustering on the obtained node embeddings to get $k$ clusters. Then the cluster results are used as the pseudo labels to calculate homophily based on Eq. (2). Note that though many graphs in the real world have high homophily, there also exist heterophily graphs (Zhu et al., 2020a; Pei et al., 2020) which have low homophily. We include a discussion on the homophily assumption in Appendix D.
77
+
78
+ Theoretical analysis. In this work, we propose to achieve self-supervised task search via maximizing pseudo-homophily. To understand its rationality, we develop the following theorem to show that pseudo-homophily maximization is related to the upper bound of mutual information between pseudo-labels and ground truth labels.
79
+
80
+ Theorem 1. Suppose that we are given with a graph $\mathcal { G } = \{ \nu , \varepsilon \}$ , a pseudo label vector $A \ \in$ $\{ 0 , 1 \} ^ { N }$ and a ground truth label vector $B \in \{ 0 , \bar { 1 } \} ^ { N }$ defined on the node set. We denote the homophily of $A$ and $B$ over $\mathcal { G }$ as $h _ { A }$ and $h _ { B }$ , respectively. If the classes in $A$ and $B$ are balanced and $h _ { A } < h _ { B }$ , the following results hold: $( l )$ the mutual information between $A$ and $B _ { i }$ , i.e., $M I ( A , B )$ , has an upper bound $\mathcal { U } _ { A , B }$ , where $\begin{array} { r } { \mathcal { U } _ { A , B } = \frac { 1 } { N } \left[ 2 \Delta \log \left( \frac { 4 } { N } \Delta \right) + 2 ( \frac { N } { 2 } - \Delta ) \log \left( \frac { 4 } { N } ( \frac { N } { 2 } - \Delta ) \right) \right] } \end{array}$ with ∆ = (hB−hA)|E|2d and dmax denoting the largest node degree in the graph; (2) if hA < hA0 < hB, we have $\mathcal { U } _ { A , B } \backslash \mathcal { < } \mathcal { U } _ { A ^ { \prime } , B }$ .
81
+
82
+ Proof. The detailed proof of this theorem can be found in Appendix B.
83
+
84
+ The above theorem suggests that a larger difference between pseudo-homophily and real homophily results in a lower upper bound of mutual information between the pseudo-labels and ground truth labels. Thus, maximizing pseudo-homophily is to maximize the upper bound of mutual information between pseudo-labels and ground truth labels, since we assume high homophily of the graph. Notably, while maximizing the upper bound does not guarantee the optimality of the mutual information, we empirically found that it works well in increasing the NMI value in different datasets, showing that it provides the right direction to promote the mutual information.
85
+
86
+ # 3.2 SEARCH ALGORITHMS
87
+
88
+ In the last subsection, we have demonstrated the importance of maximizing pseudo-homophily. Thus in the optimization problem of Eq. (1), we can simply set $\mathcal { H }$ to be negative pseudo-homophily. However, the evaluation of a specific task combination involves fitting a model and evaluating its pseudo-homophily, which can be highly expensive. Therefore, another challenge for automated selfsupervised task search is how to design an efficient algorithm. In the following, we introduce the details of the search strategies designed in this work, i.e. AUTOSSL-ES and AUTOSSL-DS.
89
+
90
+ # 3.2.1 AUTOSSL-ES: EVOLUTIONARY STRATEGY
91
+
92
+ Evolution algorithms are often used in automated machine learning such as hyperparameter tuning due to their parallelism nature by design (Loshchilov & Hutter, 2016). In this work, we employ the covariance matrix adaptation evolution strategy (CMA-ES) (Hansen et al., 2003), a state-of-theart optimizer for continuous black-box functions, to evolve the combined self-supervised loss. We name this self-supervised task search approach as AUTOSSL-ES. In each iteration of CMA-ES, it samples a set of candidate solutions (i.e., task weights $\{ \lambda _ { i } \} )$ from a multivariate normal distribution and trains the GNN encoder under the combined loss function. The embeddings from the trained encoder are then evaluated by $\mathcal { H }$ . Based on $\mathcal { H }$ , CMA-ES adjusts the normal distribution to give higher probabilities to good samples that can potentially produce a lower value of $\mathcal { H }$ . Note that we constrain $\{ \lambda _ { i } \}$ in [0, 1] and sample 8 candidate combinations for each iteration, which is trivially parallelizable as every candidate combination can be evaluated independently.
93
+
94
+ # 3.2.2 AUTOSSL-DS: DIFFERENTIABLE SEARCH VIA META-GRADIENT DESCENT
95
+
96
+ While the aforementioned AUTOSSL-ES is parallelizable, the search cost is still expensive because it requires to evaluate a large population of candidate combinations where every evaluation involves fitting the model in large training epochs. Thus, it is desired to develop gradient-based search methods to accelerate the search process. In this subsection, we introduce the other variant of our proposed framework, AUTOSSL-DS, which performs differentiable search via meta-gradient descent. However, pseudo-homophily is not differentiable as it is based on hard cluster assignments from $k$ -means clustering. Next, we will first present how to make the clustering process differentiable and then introduce how to perform differentiable search.
97
+
98
+ Soft Clustering. Although $k$ -means clustering assigns hard assignments of data samples to clusters, it can be viewed as a special case of Gaussian mixture model which makes soft assignments based on the posterior probabilities (Bishop, 2006). Given a Gaussian mixture model with centroids $\{ \mathbf { c } _ { 1 } , \mathbf { c } _ { 2 } , \ldots , \mathbf { c } _ { k } \}$ and fixed variances $\sigma ^ { 2 }$ , we can calculate the posterior probability as follows:
99
+
100
+ $$
101
+ p \left( \mathbf { x } \mid \mathbf { c } _ { i } \right) = \frac { 1 } { \sqrt { 2 \pi \sigma ^ { 2 } } } \exp \left( - \frac { \left\| \mathbf { x } - \mathbf { c } _ { i } \right\| _ { 2 } } { 2 \sigma ^ { 2 } } \right) ,
102
+ $$
103
+
104
+ where $\mathbf { x }$ is the feature vector of data samples. By Bayes rule and considering an equal prior, i.e., $p ( \mathbf { c } _ { 1 } ) = p ( \mathbf { c } _ { 2 } ) = . . . = p ( \mathbf { c } _ { k } )$ , we can compute the probability of a feature vector $\mathbf { x }$ belonging to a cluster $\mathbf { c } _ { i }$ as:
105
+
106
+ $$
107
+ p \left( \mathbf { c } _ { i } \mid \mathbf { x } \right) = { \frac { p \left( \mathbf { c } _ { i } \right) p \left( \mathbf { x } \mid \mathbf { c } _ { i } \right) } { \sum _ { j } ^ { k } p \left( \mathbf { c } _ { j } \right) p \left( \mathbf { x } \mid \mathbf { c } _ { j } \right) } } = { \frac { \exp - { \frac { ( \mathbf { x } - \mathbf { c } _ { i } ) ^ { 2 } } { 2 \sigma ^ { 2 } } } } { \sum _ { j = 1 } ^ { k } \exp - { \frac { \left( \mathbf { x } - \mathbf { c } _ { j } \right) ^ { 2 } } { 2 \sigma ^ { 2 } } } } } .
108
+ $$
109
+
110
+ If $\sigma 0$ , we can obtain the hard assignments as the $k$ -means algorithm. As we can see, the probability of each feature vector belonging to a cluster reduces to computing the distance between them. Then we can construct our homophily loss function as follows:
111
+
112
+ $$
113
+ { \mathcal H } ( f _ { \theta ^ { * } } ( \boldsymbol { \mathcal G } ) ) = \frac { 1 } { k | \mathcal { E } | } \sum _ { i = 1 } ^ { k } \sum _ { ( v _ { 1 } , v _ { 2 } ) \in \mathcal E } \ell ( p ( \mathbf { c } _ { i } | \mathbf { x } _ { v _ { 1 } } ) , p ( \mathbf { c } _ { i } | \mathbf { x } _ { v _ { 2 } } ) ) ,
114
+ $$
115
+
116
+ where $\ell$ is a loss function measuring the difference between the inputs. With soft assignments, the gradient of $\mathcal { H }$ w.r.t. $\theta$ becomes tractable.
117
+
118
+ Search via Meta Gradient Descent. We now detail the differentiable search process for AUTOSSL-DS. A naive method to tackle bilevel problems is to alternatively optimize the inner and outer problems through gradient descent. However, we cannot perform gradient descent for the outer problem in Eq. (1) where $\mathcal { H }$ is not directly related to $\{ \lambda _ { i } \}$ . To address this issue, we can utilize meta-gradients, i.e., gradients w.r.t. hyperparameters, which have been widely used in solving bi-level problems in meta learning (Finn et al., 2017; Zugner¨ $\&$ G unnemann, 2019). To obtain meta- ¨ gradients, we need to backpropagate through the learning phase of the neural network. Concretely, the meta-gradient of $\mathcal { H }$ with respect to $\{ \lambda _ { i } \}$ is expressed as
119
+
120
+ $$
121
+ \nabla _ { \{ \lambda _ { i } \} } ^ { \mathrm { m e t a } } : = \nabla _ { \{ \lambda _ { i } \} } \mathcal { H } ( f _ { \theta ^ { * } } ( G ) ) \quad \mathrm { s . t . } \ \theta ^ { * } = \mathrm { o p t } _ { \theta } ( \mathcal { L } ( f _ { \theta } , \{ \lambda _ { i } , \ell _ { i } \} ) ) ,
122
+ $$
123
+
124
+ where $\operatorname { o p t } _ { \theta }$ stands for the inner optimization that obtains $\theta ^ { * }$ and it is typically multiple steps of gradient descent. As an illustration, we consider $\operatorname { o p t } _ { \theta }$ as $T + 1$ steps of vanilla gradient descent with learning rate $\epsilon$ ,
125
+
126
+ $$
127
+ \boldsymbol { \theta } _ { t + 1 } = \boldsymbol { \theta } _ { t } - \epsilon \nabla _ { \boldsymbol { \theta } _ { t } } \mathcal { L } \big ( f _ { \boldsymbol { \theta } _ { t } } , \{ \lambda _ { i } , \boldsymbol { \ell } _ { i } \} \big ) .
128
+ $$
129
+
130
+ By unrolling the training procedure, we can express meta-gradient as
131
+
132
+ $$
133
+ \begin{array} { r } { \nabla _ { \{ \lambda _ { i } \} } ^ { \mathrm { m e t a } } : = \nabla _ { \{ \lambda _ { i } \} } \mathcal { H } ( f _ { \theta _ { T } } ( G ) ) = \nabla _ { f _ { \theta _ { T } } } \mathcal { H } ( f _ { \theta _ { T } } ( G ) ) \cdot [ \nabla _ { \{ \lambda _ { i } \} } f _ { \theta _ { T } } ( G ) + \nabla _ { \theta _ { T } } f _ { \theta _ { T } } ( G ) \nabla _ { \{ \lambda _ { i } \} } \theta _ { T } ] , } \end{array}
134
+ $$
135
+
136
+ with $\begin{array} { r l } & { \nabla _ { \{ \lambda _ { i } \} } \theta _ { T } = \nabla _ { \{ \lambda _ { i } \} } \theta _ { T - 1 } - \epsilon \nabla _ { \{ \lambda _ { i } \} } \nabla _ { \theta _ { T - 1 } } \mathcal { L } ( f _ { \theta _ { T - 1 } } , \{ \lambda _ { i } , \ell _ { i } \} ) . \mathrm { S i n c e } \ \nabla _ { \{ \lambda _ { i } \} } f _ { \theta _ { T } } ( G ) = } \\ & { \qquad \nabla _ { \{ \lambda _ { i } \} } ^ { \mathrm { m e t a } } : = \nabla _ { \{ \lambda _ { i } \} } \mathcal { H } ( f _ { \theta _ { T } } ( G ) ) = \nabla _ { f _ { \theta _ { T } } } \mathcal { H } ( f _ { \theta _ { T } } ( G ) ) \cdot \nabla _ { \theta _ { T } } f _ { \theta _ { T } } ( G ) \nabla _ { \{ \lambda _ { i } \} } \theta _ { T } . } \end{array}$ , we have (9)
137
+
138
+ Note that $\theta _ { T - 1 }$ also depends on the task weights $\{ \lambda _ { i } \}$ (see Eq. (7)). Thus, its derivative w.r.t. the task weights chains back until $\theta _ { 0 }$ . By unrolling all the inner optimization steps, we can obtain the meta-gradient $\nabla _ { \{ \lambda _ { i } \} } ^ { \mathrm { m e t a } }$ and use it to perform gradient descent on $\{ \lambda _ { i } \}$ to reduce $\mathcal { H }$ :
139
+
140
+ $$
141
+ \{ \lambda _ { i } \} \{ \lambda _ { i } \} - \eta \nabla _ { \{ \lambda _ { i } \} } ^ { \mathrm { m e t a } } ,
142
+ $$
143
+
144
+ where $\eta$ is the learning rate for meta-gradient descent (outer optimization).
145
+
146
+ However, if we use the whole training trajectory $\theta _ { 0 } , \theta _ { 1 } , \ldots , \theta _ { T }$ to calculate the precise metagradient, it would have an extremely high memory footprint since we need to store $\theta _ { 0 } , \theta _ { 1 } , \ldots , \theta _ { T }$ in memory. Thus, inspired by DARTS (Liu et al., 2018), we use an online updating rule where we only perform one step gradient descent on $\theta$ and then update $\{ \lambda _ { i } \}$ in each iteration. During the process, we constrain $\{ \lambda _ { i } \}$ in [0, 1] and dynamically adjust the task weights in a differentiable manner. The detailed algorithm for AUTOSSL-DS is summarized in Appendix C.
147
+
148
+ # 4 EXPERIMENTAL EVALUATION
149
+
150
+ In this section, we empirically evaluate the effectiveness of the proposed AUTOSSL on selfsupervised task search on real-world datasets. We aim to answer four questions as follows. Q1: Can AUTOSSL achieve better performance compared to training on individual SSL tasks? Q2: How does AUTOSSL compare to other unsupervised and supervised node representation learning baselines? Q3: Can we observe relations between AUTOSSL’s pseudo-homophily objective and downstream classification performance? and Q4: How do the SSL task weights, pseudo-homophily objective, and downstream performance evolve during AUTOSSL’s training?
151
+
152
+ # 4.1 EXPERIMENTAL SETTING
153
+
154
+ Since our goal is to enable automated combination search and discovery of SSL tasks, we use 5 such tasks including 1 contrastive learning method and 4 predictive methods – (1) DGI (Velickovi ˇ c´ et al., 2019): it is a contrastive learning method maximizing the mutual information between graph representation and node representation; (2) CLU (You et al., 2020), it predicts partition labels from Metis graph partition (Karypis & Kumar, 1998); (3) PAR (You et al., 2020), it predicts clustered labels from $k$ -means clustering on node features; (4) PAIRSIM (Jin et al., 2020; 2021), it predicts pairwise feature similarity between node pairs and (5) PAIRDIS (Peng et al., 2020), it predicts shortest path length between node pairs. The proposed AUTOSSL framework automatically learns to jointly leverage the 5 above tasks and carefully mediate their influence. We also note that (1) the recent contrastive learning method, MVGRL (Hassani & Khasahmadi, 2020), needs to deal with a dense diffusion matrix and is prohibitively memory/time-consuming for larger graphs; thus, we only include it as a baseline to compare as shown in Table 2; and (2) the proposed framework is general and it is straightforward to combine other SSL tasks.
155
+
156
+ We perform experiments on 8 real-world datasets widely used in the literature (Yang et al., 2016; Shchur et al., 2018; Mernyei & Cangea, 2020; Hu et al., 2020), i.e., Physics, CS, Photo, Computers, WikiCS, Citeseer, CoraFull, and ogbn-arxiv. To demonstrate the effectiveness of the proposed framework, we follow (Hassani & Khasahmadi, 2020) and evaluate all methods on two different downstream tasks: node clustering and node classification. For the task of node clustering, we perform $k$ -means clustering on the obtained embeddings. We set the number of clusters to the number of ground truth classes and report the normalized mutual information (NMI) between the cluster results and ground truth labels. Regarding the node classification task, we train a logistic regression model on the obtained node embeddings and report the classification accuracy on test nodes. Note that labels are never used for self-supervised task search. All experiments are performed under 5 different random seeds and results are averaged. Following DGI and MVGRL, we use a simple one-layer GCN (Kipf & Welling, 2016a) as our encoder and set the size of hidden dimensions to 512. We set $2 \sigma ^ { 2 } = 0 . { \dot { 0 } } 0 1$ and use L1 loss in the homophily loss function throughout the experiments. Further details of experimental setup can be found in Appendix A.
157
+
158
+ # 4.2 PERFORMANCE COMPARISON WITH INDIVIDUAL TASKS
159
+
160
+ To answer Q1, Table 1 summarizes the results for individual self-supervised tasks and AUTOSSL under the two downstream tasks, i.e., node clustering and node classification. From the table, we make several observations. Obs. 1: individual self-supervised tasks have different node clustering and node classification performance for different datasets. For example, in Photo, DGI achieves the highest classification accuracy while PAR achieves the highest clustering performance; CLU performs better than PAIRDIS in both NMI and ACC on Physics while it cannot outperform PAIRDIS in WikiCS, Citeseer, Computers and CoraFull. This observation suggests the importance of searching suitable SSL tasks to benefit downstream tasks on different datasets. Obs. 2: Most of the time, combinations of SSL tasks searched by AUTOSSL can consistently improve the node clustering and classification performance over the best individual task on the all datasets. For example, the relative improvement over the best individual task on NMI from AUTOSSL-ES is $7 . 3 \%$ for WikiCS and $10 . 0 \%$ for Photo, and its relative improvement on ACC is $1 . 3 \%$ for WikiCS. These results indicate that composing multiple SSL tasks can help the model encode different types of information and avoid overfitting to one single task. Obs. 3: We further note that individual tasks resulted in different pseudo-homophily as shown in the P-H rows of Table 1. Among them, CLU tends to result in a low pseudo-homophily and often performs much worse than other tasks in node clustering task, which supports our theoretical analysis in Section 3.1. It also demonstrates the necessity to increase pseudo-homophily as the two variants of AUTOSSL effectively search tasks that lead to higher pseudo-homophily. Obs. 4: The performance of AUTOSSL-ES and AUTOSSLDS is close when their searched tasks lead to similar pseudo-homophily: the differences in pseudohomophily, NMI and ACC are relative smaller in datasets other than Photo and Computers. It is worth noting that sometimes AUTOSSL-DS can even achieve higher pseudo-homophily than AUTOSSL-ES. This indicates that the online updating rule for $\{ \lambda _ { i } \}$ in AUTOSSL-DS not only can greatly reduce the searching time but also can generate good task combinations. In addition to efficiency, we highlight another major difference between them: AUTOSSL-ES directly finds the best task weights while AUTOSSL-DS adjusts the task weights to generate appropriate gradients to update model parameters. Hence, if we hope to find the best task weights and retrain the model, we should turn to AUTOSSL-ES. More details on their differences can be found in Appendix E.3.
161
+
162
+ Table 1: Performance comparison of self-supervised tasks (losses) on node clustering and node classification. The NMI rows indicate node clustering performance; ACC rows indicate node classification accuracy $( \% )$ ; P-H stands for pseudo-homophily. AUTOSSL regularly outperforms individual pretext tasks. (Bold: best in all methods; Underline: best in individual tasks). Blue and red numbers indicate the statistically significant improvements over the best individual task, via paired t-test at level 0.05 and 0.1, respectively (same for Table 2 and Table 3).
163
+
164
+ <table><tr><td rowspan="2">Dataset</td><td rowspan="2">Metric</td><td colspan="5">Self-Supervised Task</td><td colspan="2">AUTOSSL</td></tr><tr><td>CLU</td><td>PAR</td><td>PAIRSIM</td><td>PAIRDIS</td><td>DGI</td><td>ES</td><td>DS</td></tr><tr><td rowspan="3">WikiCS</td><td>NMI</td><td>0.177±0.02</td><td>0.262±0.02</td><td>0.341±0.01</td><td>0.169±0.04</td><td>0.310±0.02</td><td>0.366±0.01</td><td>0.344±0.02</td></tr><tr><td>ACC</td><td>74.19±0.21</td><td>75.81±0.17</td><td>75.80±0.17</td><td>75.28±0.08</td><td>75.49±0.17</td><td>76.80±0.13</td><td>76.58±0.28</td></tr><tr><td>P-H</td><td>0.549</td><td>0.567</td><td>0.693</td><td>0.463</td><td>0.690</td><td>0.751</td><td>0.749</td></tr><tr><td rowspan="3">Citeseer</td><td>NMI</td><td>0.318±0.00</td><td>0.416±0.00</td><td>0.428±0.01</td><td>0.404±0.01</td><td>0.439±0.00</td><td>0.449±0.01</td><td>0.449±0.01</td></tr><tr><td>ACC</td><td>63.17±0.19</td><td>69.25±0.51</td><td>71.36±0.42</td><td>70.72±0.53</td><td>71.64±0.44</td><td>72.14±0.41</td><td>72.00±0.32</td></tr><tr><td>P-H</td><td>0.787</td><td>0.916</td><td>0.885</td><td>0.901</td><td>0.934</td><td>0.943</td><td>0.934</td></tr><tr><td rowspan="3">Computers</td><td>NMI</td><td>0.171±0.00</td><td>0.433±0.00</td><td>0.387±0.01</td><td>0.300±0.01</td><td>0.318±0.02</td><td>0.447±0.01</td><td>0.448±0.01</td></tr><tr><td>ACC</td><td>75.20±0.20</td><td>87.26±0.15</td><td>82.64±1.15</td><td>85.20±0.41</td><td>83.45±0.54</td><td>87.26±0.64</td><td>88.18±0.43</td></tr><tr><td>P-H</td><td>0.240</td><td>0.471</td><td>0.314</td><td>0.206</td><td>0.298</td><td>0.503</td><td>0.511</td></tr><tr><td rowspan="3">CoraFull</td><td>NMI</td><td>0.128±0.00</td><td>0.498±0.00</td><td>0.409±0.02</td><td>0.406±0.01</td><td>0.462±0.01</td><td>0.506±0.01</td><td>0.500±0.00</td></tr><tr><td>ACC</td><td>44.93±0.53</td><td>57.54±0.32</td><td>56.23±0.59</td><td>58.48±0.80</td><td>60.42±0.39</td><td>61.01±0.50</td><td>61.10±0.68</td></tr><tr><td>P-H</td><td>0.494</td><td>0.887</td><td>0.649</td><td>0.728</td><td>0.888</td><td>0.903</td><td>0.895</td></tr><tr><td rowspan="3">CS</td><td>NMI</td><td>0.658±0.01</td><td>0.767±0.01</td><td>0.749±0.01</td><td>0.635±0.03</td><td>0.747±0.01</td><td>0.772±0.01</td><td>0.771±0.01</td></tr><tr><td>ACC</td><td>88.58±0.27</td><td>92.75±0.12</td><td>92.68±0.09</td><td>89.56±1.01</td><td>90.91±0.51</td><td>93.26±0.16</td><td>93.35±0.09</td></tr><tr><td>P-H</td><td>0.845</td><td>0.882</td><td>0.886</td><td>0.786</td><td>0.883</td><td>0.895</td><td>0.890</td></tr><tr><td rowspan="3">Physics</td><td>NMI</td><td>0.692±0.00</td><td>0.704±0.00</td><td>0.674±0.00</td><td>0.420±0.05</td><td>0.670±0.00</td><td>0.725±0.00</td><td>0.726±0.00</td></tr><tr><td>ACC</td><td>93.60±0.07</td><td>95.07±0.06</td><td>95.05±0.10</td><td>91.69±1.02</td><td>94.03±0.15</td><td>95.57±0.02</td><td>95.13±0.36</td></tr><tr><td>P-H</td><td>0.911</td><td>0.913</td><td>0.905</td><td>0.821</td><td>0.906</td><td>0.921</td><td>0.923</td></tr><tr><td rowspan="3">Photo</td><td>NMI</td><td>0.327±0.00</td><td>0.509±0.01</td><td>0.439±0.04</td><td>0.293±0.08</td><td>0.376±0.03</td><td>0.560±0.04</td><td>0.515±0.03</td></tr><tr><td>ACC</td><td>90.33±0.22</td><td>91.75±0.25</td><td>91.13±0.35</td><td>91.97±0.32</td><td>92.08±0.37</td><td>92.04±0.89</td><td>92.71±0.32</td></tr><tr><td>P-H</td><td>0.434</td><td>0.602</td><td>0.428</td><td>0.327</td><td>0.401</td><td>0.791</td><td>0.616</td></tr><tr><td rowspan="3">ogbn-arxiv</td><td>NMI</td><td>0.305±0.01</td><td>0.410±0.01</td><td>0.379±0.01</td><td>0.314±0.01</td><td>0.319±0.01</td><td>0.424±0.00</td><td>0.417±0.00</td></tr><tr><td>ACC</td><td>66.68±0.34</td><td>67.90±0.10</td><td>67.82±0.20</td><td>67.63±0.13</td><td>67.95±0.56</td><td>68.31±0.05</td><td>69.13±0.04</td></tr><tr><td>P-H</td><td>0.441</td><td>0.660</td><td>0.482</td><td>0.326</td><td>0.390</td><td>0.830</td><td>0.780</td></tr><tr><td rowspan="2">Average Rank</td><td>NMI</td><td>6.3</td><td>3.5</td><td>4.1</td><td>6.5</td><td>4.6</td><td>1.3</td><td>1.5</td></tr><tr><td>ACC</td><td>6.8</td><td>3.9</td><td>4.9</td><td>5.4</td><td>3.9</td><td>1.8</td><td>1.4</td></tr></table>
165
+
166
+ To answer Q2, we compare AUTOSSL with representative unsupervised and supervised node representation learning baselines. Specifically, for node classification we include 4 unsupervised baselines, i.e., GAE (Kipf & Welling, 2016b), VGAE (Kipf & Welling, 2016b), ARVGA (Pan et al., 2018) and MVGRL, and 2 supervised baselines, i.e. GCN and GAT (Velickovi ˇ c et al., 2018). We also ´ provide the logistic regression performance on raw features and embeddings generated by a randomly initialized encoder, named as Raw-Feat and Random-Init, respectively. Note that the two supervised baselines, GCN and GAT, use label information for node representation learning in an end-to-end manner, while other baselines and AUTOSSL do not leverage label information to learn representations. The average performance and variances are reported in Table 2. From the table, we find that AUTOSSL outperforms unsupervised baselines in all datasets except Citeseer while the performance on Citeseer is still comparable to the state-of-the-art contrastive learning method MVGRL. When compared to supervised baselines, AUTOSSL-DS outperforms GCN and GAT in 4 out of 8 datasets, e.g., a $1 . 7 \%$ relative improvement over GAT on Computers. AUTOSSL-ES also outperforms GCN and GAT in 3/4 out of 8 datasets. In other words, our unsupervised representation learning AUTOSSL can achieve comparable performance with supervised representation learning baselines. In addition, we use the same unsupervised baselines for node clustering and report the results in Table 3. Both AUTOSSL-ES and AUTOSSL-DS show highly competitive clustering performance. For instance, AUTOSSL-ES achieves $2 2 . 2 \%$ and $2 7 . 5 \%$ relative improvement over the second best baseline on Physics and WikiCS; AUTOSSL-DS also achieves $2 2 . 2 \%$ and $1 9 . 8 \%$ relative improvement on these two datasets. These results further validate that composing SSL tasks appropriately can produce expressive and generalizable representations.
167
+
168
+ Table 2: Node classification accuracy $( \% )$ . The last two rows are supervised baselines. AUTOSSL consistently outperforms alternative self-supervised approaches, and frequently outperforms supervised ones. (Bold/Underline: best/runner-up among self-supervised approaches)
169
+
170
+ <table><tr><td>Model</td><td>WikiCs</td><td>Citeseer</td><td>Computers</td><td>CoraFull</td><td>Cs</td><td>Physics</td><td>Photo</td><td>ogbn-arxiv</td><td>Avg. Rank</td></tr><tr><td>Random-Init</td><td>75.07±0.15</td><td>64.06±2.28</td><td>74.42±0.29</td><td>45.07±0.38</td><td>28.57±0.90</td><td>53.33±0.52</td><td>87.01±0.39</td><td>67.55±0.27</td><td>6.0</td></tr><tr><td>Raw-Feat</td><td>72.06±0.03</td><td>61.50±0.00</td><td>74.15±0.48</td><td>37.17±0.30</td><td>87.12±0.42</td><td>92.81±0.24</td><td>79.03±0.37</td><td>51.07±0.00</td><td>7.0</td></tr><tr><td>GAE</td><td>74.85±0.24</td><td>64.76±1.35</td><td>80.25±0.42</td><td>57.85±0.29</td><td>92.35±0.09</td><td>94.66±0.10</td><td>91.51±0.39</td><td>52.57±0.04</td><td>4.1</td></tr><tr><td>VGAE</td><td>74.16±0.16</td><td>67.50±0.42</td><td>81.05±0.41</td><td>53.72±0.30</td><td>92.15±0.16</td><td>94.58±0.17</td><td>88.98±1.05</td><td>52.00±0.19</td><td>4.6</td></tr><tr><td>ARVGA</td><td>71.64±1.03</td><td>46.88±2.15</td><td>67.61±0.92</td><td>45.20±1.33</td><td>87.26±1.07</td><td>93.84±0.13</td><td>77.74±1.16</td><td>31.57±2.96</td><td>7.1</td></tr><tr><td>MvGRL</td><td>75.89±0.12</td><td>72.36±0.49</td><td>84.66±0.62</td><td>60.56±0.33</td><td>90.18±0.19</td><td>94.30±0.20</td><td>92.49±0.40</td><td>0OM</td><td>3.1</td></tr><tr><td>AUTOSSL-ES</td><td>76.80±0.13</td><td>72.14±0.41</td><td>87.26±0.64</td><td>61.01±0.50</td><td>93.26±0.16</td><td>95.57±0.02</td><td>92.04±0.89</td><td>68.31±0.05</td><td>1.9</td></tr><tr><td>AUTOSSL-DS</td><td>76.58±0.28</td><td>72.00±0.32</td><td>88.18±0.43</td><td>61.10±0.68</td><td>93.35±0.09</td><td>95.13±0.36</td><td>92.71±0.32</td><td>69.13±0.04</td><td>1.5</td></tr><tr><td>GCN</td><td>76.42±0.02</td><td>71.26±0.15</td><td>87.53±0.21</td><td>63.77±0.37</td><td>93.04±0.09</td><td>95.66±0.15</td><td>93.09±0.11</td><td>71.74±0.29</td><td>-</td></tr><tr><td>GAT</td><td>77.30±0.01</td><td>71.00±0.62</td><td>86.74±0.69</td><td>63.73±0.43</td><td>92.53±0.19</td><td>95.54±0.08</td><td>92.30±0.28</td><td>71.46±0.34</td><td>-</td></tr></table>
171
+
172
+ Table 3: Clustering performance (NMI). AUTOSSL embeddings routinely exhibit superior NMI to alternatives. (Bold: best; Underline: runner-up).
173
+
174
+ <table><tr><td>Model</td><td>Wikics</td><td>Citeseer</td><td>Computers</td><td>CoraFull</td><td>CS</td><td>Physics</td><td>Photo</td><td>ogbn-arxiv</td><td>Avg. Rank</td></tr><tr><td>Random-Init</td><td>0.107±0.02</td><td>0.354±0.03</td><td>0.155±0.01</td><td>0.318±0.01</td><td>0.716±0.02</td><td>0.551±0.01</td><td>0.246±0.04</td><td>0.306±0.01</td><td>6.4</td></tr><tr><td>Raw-Feat</td><td>0.182±0.00</td><td>0.316±0.00</td><td>0.166±0.00</td><td>0.215±0.00</td><td>0.642±0.00</td><td>0.489±0.00</td><td>0.282±0.00</td><td>0.150±0.01</td><td>7.1</td></tr><tr><td>GAE</td><td>0.243±0.02</td><td>0.313±0.02</td><td>0.441±0.00</td><td>0.485±0.00</td><td>0.731±0.01</td><td>0.545±0.06</td><td>0.616±0.01</td><td>0.325±0.01</td><td>4.3</td></tr><tr><td>VGAE</td><td>0.261±0.01</td><td>0.364±0.01</td><td>0.423±0.00</td><td>0.453±0.01</td><td>0.733±0.00</td><td>0.563±0.02</td><td>0.530±0.04</td><td>0.311±0.01</td><td>4.0</td></tr><tr><td>ARVGA</td><td>0.287±0.02</td><td>0.191±0.02</td><td>0.237±0.01</td><td>0.301±0.01</td><td>0.616±0.03</td><td>0.526±0.05</td><td>0.301±0.01</td><td>0.201±0.01</td><td>6.4</td></tr><tr><td>MvGRL</td><td>0.263±0.01</td><td>0.452±0.01</td><td>0.244±0.00</td><td>0.400±0.01</td><td>0.740±0.01</td><td>0.594±0.00</td><td>0.344±0.04</td><td>OOM</td><td>4.3</td></tr><tr><td>AUTOSSL-ES</td><td>0.366±0.01</td><td>0.449±0.01</td><td>0.447±0.01</td><td>0.506±0.01</td><td>0.772±0.01</td><td>0.725±0.00</td><td>0.560±0.04</td><td>0.424±0.00</td><td>1.6</td></tr><tr><td>AUTOSSL-DS</td><td>0.344±0.02</td><td>0.449±0.01</td><td>0.448±0.01</td><td>0.500±0.00</td><td>0.771±0.01</td><td>0.726±0.00</td><td>0.515±0.03</td><td>0.417±0.00</td><td>2.1</td></tr></table>
175
+
176
+ # 4.4 RELATION BETWEEN DOWNSTREAM PERFORMANCE AND PSEUDO-HOMOPHILY
177
+
178
+ In this subsection, we investigate the relation between downstream performance and pseudohomophily and correspondingly answer Q3. Specifically, we use the candidate task weights sampled in the AUTOSSL-ES searching trajectory, and illustrate their node clustering (NMI) and node classification performance (ACC) with respect to their pseudo-homophily. The results on Computers and WikiCS are shown in Figure 2 and results for other datasets are shown in Appendix E.1. We observe that the downstream performance tends to be better if the learned embeddings tend to have higher pseudo-homophily. We also can observe that clustering performance has a clear relation with pseudo-homophily for all datasets. Hence, the results empirically support our theoretical analysis in Section 3.1 that lower pseudo-homophily leads to a lower upper bound of mutual information with ground truth labels. While classification accuracy has a less evident pattern, we can still observe that higher accuracy tends to concentrate on the high pseudo-homophily regions for 5 out of 7 datasets.
179
+
180
+ ![](images/0f44c5b78c22187294c3f0317663445e4b4fba33a4b1c415f473e77bcbabc464.jpg)
181
+ Figure 2: Relationship between downstream performance and pseudo-homophily.
182
+
183
+ ![](images/05e9a86a0047b55c80e283ce969d1fafc3e2a0d92bb29f900cd6ba6aade8dd87.jpg)
184
+ Figure 3: Visualization of Task Weights.
185
+
186
+ ![](images/05dd0d84837dced1cd172deea41865a3ec9602f4c2d0b066edfe339179763910.jpg)
187
+ Figure 4: P-H change of AUTOSSL-ES
188
+
189
+ 4.5 EVOLUTION OF SSL TASK WEIGHTS, PSEUDO-HOMOPHILY AND PERFORMANCE
190
+
191
+ To answer Q4, we visualize the final task weights searched by AUTOSSL-ES on all datasets through the heatmap in Figure 3a. From the figure, we make three observations. Obs. 1: The searched task weights vary significantly from dataset to dataset. For example, the weights for PAR and DGI are [0.198, 0.980] on Physics while they are [0.955, 0.066] on WikiCS. Obs. 2: In general, Par benefits co-purchase networks, i.e. Photo and Computers; DGI is crucial for citation/coauthorship networks, i.e. Physics, CS, Citeseer, and CoraFull. We conjecture that local structure information (the information that PAR captures) is essential for co-purchase networks while both local and global information (the information that DGI captures) are necessary in citation/coauthorship networks. Obs. 3: AUTOSSL-ES always gives very low weights to CLU, which indicates the pseudo-labels clustered from raw features are not good supervision on the selected datasets.
192
+
193
+ We also provide the evolution of task weights in AUTOSSL-DS for CoraFull dataset in Figure 3b. The weights of the 5 tasks eventually become stable: CLU and PAIRDIS are assigned with small values while PAIRSIM, DGI and CLU are assigned with large values. Thus, both AUTOSSL-ES and AUTOSSL-DS agree that PAIRDIS and PAR are less important for CoraFull.
194
+
195
+ We further investigate how pseudo-homophily changes over iterations. For AUTOSSL-ES, we illustrate the mean value of resulted pseudo-homophily in each iteration (round) in Figure 4. We only show the results on CoraFull and Citeseer while similar patterns are exhibited in other datasets. It is clear that AUTOSSL-ES can effectively increase the pseudo-homophily and thus search for better self-supervised task weights. The results for AUTOSSL-DS are deferred to Appendix E.2 due to the page limit.
196
+
197
+ # 5 CONCLUSION
198
+
199
+ Graph self-supervised learning has achieved great success in learning expressive node/graph representations. In this work, however, we find that SSL tasks designed for graphs perform differently on different datasets and downstream tasks. Thus, it is worth composing multiple SSL tasks to jointly encode multiple sources of information and produce more generalizable representations. However, without access to labeled data, it poses a great challenge in measuring the quality of the combinations of SSL tasks. To address this issue, we take advantage of graph homophily and propose pseudo-homophily to measure the quality of combinations of SSL tasks. We then theoretically show that maximizing pseudo-homophily can help maximize the upper bound of mutual information between the pseudo-labels and ground truth labels. Based on the pseudo-homophily measure, we develop two automated frameworks AUTOSSL-ES and AUTOSSL-DS to search the task weights efficiently. Extensive experiments have demonstrated that AUTOSSL is able to produce more generalize representations by combining various SSL tasks.
200
+
201
+ # ACKNOLWEDGEMENT
202
+
203
+ Wei Jin and Jiliang Tang are supported by the National Science Foundation (NSF) under grant numbers IIS1714741, CNS1815636, IIS1845081, IIS1907704, IIS1928278, IIS1955285, IOS2107215, and IOS2035472, the Army Research Office (ARO) under grant number W911NF-21-1-0198, the Home Depot, Cisco Systems Inc. and SNAP Inc.
204
+
205
+ # ETHICS STATEMENT
206
+
207
+ To the best of our knowledge, there are no ethical issues with this paper.
208
+
209
+ # REPRODUCIBILITY STATEMENT
210
+
211
+ To ensure reproducibility of our experiments, we provide our source code at https://github.
212
+ com/ChandlerBang/AutoSSL. The hyper-parameters are described in details in the appendix.
213
+ We also provide a pseudo-code implementation of our framework in the appendix.
214
+
215
+ # REFERENCES
216
+
217
+ Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018.
218
+
219
+ Emily M Bender, Timnit Gebru, Angelina McMillan-Major, and Shmargaret Shmitchell. On the dangers of stochastic parrots: Can language models be too big? In Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency, pp. 610–623, 2021.
220
+
221
+ Christopher M Bishop. Pattern recognition and machine learning. springer, 2006.
222
+
223
+ Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 132–149, 2018.
224
+
225
+ 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, 2020.
226
+
227
+ Enyan Dai and Suhang Wang. Say no to the discrimination: Learning fair graph neural networks with limited sensitive attribute information. In Proceedings of the 14th ACM International Conference on Web Search and Data Mining, pp. 680–688, 2021.
228
+
229
+ Carl Doersch and Andrew Zisserman. Multi-task self-supervised visual learning. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2051–2060, 2017.
230
+
231
+ Carl Doersch, Abhinav Gupta, and Alexei A Efros. Unsupervised visual representation learning by context prediction. In ICCV, 2015.
232
+
233
+ David K Duvenaud, Dougal Maclaurin, Jorge Aguilera-Iparraguirre, Rafael Gomez-Bombarelli, ´ Timothy Hirzel, Alan Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs ´ for learning molecular fingerprints. In Advances in neural information processing systems, 2015.
234
+
235
+ Matthias Fey and Jan Eric Lenssen. Fast graph representation learning with pytorch geometric. arXiv preprint arXiv:1903.02428, 2019.
236
+
237
+ Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, pp. 1126–1135. PMLR, 2017.
238
+
239
+ Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In ICML, 2017.
240
+
241
+ Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in neural information processing systems, 2017.
242
+
243
+ Xueting Han, Zhenhuan Huang, Bang An, and Jing Bai. Adaptive transfer learning on graph neural networks. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery amp; Data Mining, KDD ’21, pp. 565–574. Association for Computing Machinery, 2021.
244
+
245
+ Nikolaus Hansen, Sibylle D Muller, and Petros Koumoutsakos. Reducing the time complexity of ¨ the derandomized evolution strategy with covariance matrix adaptation (cma-es). Evolutionary computation, 11(1):1–18, 2003.
246
+
247
+ Kaveh Hassani and Amir Hosein Khasahmadi. Contrastive multi-view representation learning on graphs. In International Conference on Machine Learning, 2020.
248
+
249
+ Weihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik, Percy Liang, Vijay Pande, and Jure Leskovec. Strategies for pre-training graph neural networks. In International Conference on Learning Representations, 2019.
250
+
251
+ 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. arXiv preprint arXiv:2005.00687, 2020.
252
+
253
+ Wei Jin, Tyler Derr, Haochen Liu, Yiqi Wang, Suhang Wang, Zitao Liu, and Jiliang Tang. Self-supervised learning on graphs: Deep insights and new direction. arXiv preprint arXiv:2006.10141, 2020.
254
+
255
+ Wei Jin, Tyler Derr, Yiqi Wang, Yao Ma, Zitao Liu, and Jiliang Tang. Node similarity preserving graph convolutional networks. In Proceedings of the 14th ACM International Conference on Web Search and Data Mining. ACM, 2021.
256
+
257
+ George Karypis and Vipin Kumar. A fast and high quality multilevel scheme for partitioning irregular graphs. SIAM Journal on scientific Computing, 1998.
258
+
259
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
260
+
261
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016a.
262
+
263
+ Thomas N Kipf and Max Welling. Variational graph auto-encoders. arXiv preprint arXiv:1611.07308, 2016b.
264
+
265
+ Alexander Kolesnikov, Xiaohua Zhai, and Lucas Beyer. Revisiting self-supervised visual representation learning. In In CVPR, pp. 1920–1929, 2019.
266
+
267
+ Chuming Li, Xin Yuan, Chen Lin, Minghao Guo, Wei Wu, Junjie Yan, and Wanli Ouyang. Am-lfs: Automl for loss function search. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 8410–8419, 2019.
268
+
269
+ Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018.
270
+
271
+ Meng Liu, Hongyang Gao, and Shuiwang Ji. Towards deeper graph neural networks. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. ACM, 2020.
272
+
273
+ Xiaorui Liu, Wei Jin, Yao Ma, Yaxin Li, Hua Liu, Yiqi Wang, Ming Yan, and Jiliang Tang. Elastic graph neural networks. In International Conference on Machine Learning, 2021.
274
+
275
+ Ilya Loshchilov and Frank Hutter. Cma-es for hyperparameter optimization of deep neural networks. arXiv preprint arXiv:1604.07269, 2016.
276
+
277
+ Miller McPherson, Lynn Smith-Lovin, and James M Cook. Birds of a feather: Homophily in social networks. Annual review of sociology, 27(1):415–444, 2001.
278
+
279
+ Peter Mernyei and C ´ at˘ alina Cangea. Wiki-cs: A wikipedia-based benchmark for graph neural net- ˘ works. arXiv preprint arXiv:2007.02901, 2020.
280
+
281
+ Mark Newman. Networks. Oxford university press, 2018.
282
+
283
+ Shirui Pan, Ruiqi Hu, Guodong Long, Jing Jiang, Lina Yao, and Chengqi Zhang. Adversarially regularized graph autoencoder for graph embedding. In Proceedings of the 27th International Joint Conference on Artificial Intelligence, IJCAI’18, pp. 2609–2615. AAAI Press, 2018.
284
+
285
+ Hongbin Pei, Bingzhe Wei, Kevin Chen-Chuan Chang, Yu Lei, and Bo Yang. Geom-gcn: Geometric graph convolutional networks. arXiv preprint arXiv:2002.05287, 2020.
286
+
287
+ Zhen Peng, Yixiang Dong, Minnan Luo, Xiao-Ming Wu, and Qinghua Zheng. Self-supervised graph representation learning via global context prediction. arXiv preprint arXiv:2003.01604, 2020.
288
+
289
+ AJ Piergiovanni, Anelia Angelova, and Michael S Ryoo. Evolving losses for unsupervised video representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 133–142, 2020.
290
+
291
+ Jiezhong Qiu, Qibin Chen, Yuxiao Dong, Jing Zhang, Hongxia Yang, Ming Ding, Kuansan Wang, and Jie Tang. Gcc: Graph contrastive coding for graph neural network pre-training. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1150–1160, 2020.
292
+
293
+ Zhongzheng Ren and Yong Jae Lee. Cross-domain self-supervised multi-task feature learning using synthetic imagery. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 762–771, 2018.
294
+
295
+ Claudia Veronica Roberts et al. Quantifying the extent to which popular pre-trained convolutional neural networks implicitly learn high-level protected attributes. PhD thesis, Princeton University, 2018.
296
+
297
+ Aravind Sankar, Yozen Liu, Jun Yu, and Neil Shah. Graph neural networks for friend ranking in large-scale social platforms. In Proceedings of the Web Conference 2021, pp. 2535–2546, 2021.
298
+
299
+ Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Gunnemann. Pitfalls ¨ of graph neural network evaluation. arXiv preprint arXiv:1811.05868, 2018.
300
+
301
+ Shubhranshu Shekhar, Neil Shah, and Leman Akoglu. Fairod: Fairness-aware outlier detection. arXiv preprint arXiv:2012.03063, 2020.
302
+
303
+ Susheel Suresh, Vinith Budde, Jennifer Neville, Pan Li, and Jianzhu Ma. Breaking the limit of graph neural networks by improving the assortativity of graphs with local mixing patterns. arXiv preprint arXiv:2106.06586, 2021.
304
+
305
+ Xianfeng Tang, Yozen Liu, Neil Shah, Xiaolin Shi, Prasenjit Mitra, and Suhang Wang. Knowing your fate: Friendship, action and temporal explanations for user engagement prediction on social apps. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 2269–2279, 2020a.
306
+
307
+ Xianfeng Tang, Huaxiu Yao, Yiwei Sun, Yiqi Wang, Jiliang Tang, Charu Aggarwal, Prasenjit Mitra, and Suhang Wang. Investigating and mitigating degree-related biases in graph convoltuional networks. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management, pp. 1435–1444, 2020b.
308
+
309
+ Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. In ICLR, 2018.
310
+
311
+ Petar Velickovi ˇ c, William Fedus, William L. Hamilton, Pietro Li ´ o, Yoshua Bengio, and R Devon \` Hjelm. Deep Graph Infomax. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=rklz9iAcKQ.
312
+
313
+ Xiaobo Wang, Shuo Wang, Cheng Chi, Shifeng Zhang, and Tao Mei. Loss function search for face recognition. In International Conference on Machine Learning, pp. 10029–10038. PMLR, 2020.
314
+
315
+ Yu Wang, Wei Jin, and Tyler Derr. Graph neural networks: Self-supervised learning. In Graph Neural Networks: Foundations, Frontiers, and Applications, pp. 391–420. Springer, 2022.
316
+
317
+ Shu Wu, Yuyuan Tang, Yanqiao Zhu, Liang Wang, Xing Xie, and Tieniu Tan. Session-based recommendation with graph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, pp. 346–353, 2019a.
318
+
319
+ Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and Philip S Yu. A comprehensive survey on graph neural networks. arXiv preprint arXiv:1901.00596, 2019b.
320
+
321
+ Yaochen Xie, Zhao Xu, Jingtun Zhang, Zhengyang Wang, and Shuiwang Ji. Self-supervised learning of graph neural networks: A unified review. arXiv preprint arXiv:2102.10757, 2021.
322
+
323
+ Haowen Xu, Hao Zhang, Zhiting Hu, Xiaodan Liang, Ruslan Salakhutdinov, and Eric Xing. Autoloss: Learning discrete schedules for alternate optimization. arXiv preprint arXiv:1810.02442, 2018.
324
+
325
+ Zhilin Yang, William Cohen, and Ruslan Salakhudinov. Revisiting semi-supervised learning with graph embeddings. In International conference on machine learning, pp. 40–48. PMLR, 2016.
326
+
327
+ Quanming Yao, Mengshuo Wang, Yuqiang Chen, Wenyuan Dai, Yu-Feng Li, Wei-Wei Tu, Qiang Yang, and Yang Yu. Taking human out of learning applications: A survey on automated machine learning. arXiv preprint arXiv:1810.13306, 2018.
328
+
329
+ Rex Ying, Ruining He, Kaifeng Chen, Pong Eksombatchai, William L Hamilton, and Jure Leskovec. Graph convolutional neural networks for web-scale recommender systems. In KDD. ACM, 2018.
330
+
331
+ Yuning You, Tianlong Chen, Zhangyang Wang, and Yang Shen. When does self-supervision help graph convolutional networks? ICML, 2020.
332
+
333
+ Yuning You, Tianlong Chen, Yang Shen, and Zhangyang Wang. Graph contrastive learning automated. Proceedings of International Conference on Machine Learning, 2021.
334
+
335
+ Amir R Zamir, Alexander Sax, William Shen, Leonidas J Guibas, Jitendra Malik, and Silvio Savarese. Taskonomy: Disentangling task transfer learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3712–3722, 2018.
336
+
337
+ Jieyu Zhao, Tianlu Wang, Mark Yatskar, Ryan Cotterell, Vicente Ordonez, and Kai-Wei Chang. Gender bias in contextualized word embeddings. arXiv preprint arXiv:1904.03310, 2019.
338
+
339
+ Xiangyu Zhao, Haochen Liu, Wenqi Fan, Hui Liu, Jiliang Tang, and Chong Wang. Autoloss: Automated loss function search in recommendations. In Proceedings of the 27th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2021a.
340
+
341
+ Yue Zhao, Ryan Rossi, and Leman Akoglu. Automatic unsupervised outlier model selection. Advances in Neural Information Processing Systems, 34, 2021b.
342
+
343
+ Jiong Zhu, Yujun Yan, Lingxiao Zhao, Mark Heimann, Leman Akoglu, and Danai Koutra. Beyond homophily in graph neural networks: Current limitations and effective designs. Advances in Neural Information Processing Systems, 33, 2020a.
344
+
345
+ Yanqiao Zhu, Yichen Xu, Feng Yu, Qiang Liu, Shu Wu, and Liang Wang. Graph contrastive learning with adaptive augmentation. arXiv preprint arXiv:2010.14945, 2020b.
346
+
347
+ Daniel Zugner and Stephan G ¨ unnemann. Adversarial attacks on graph neural networks via meta ¨ learning. arXiv preprint arXiv:1902.08412, 2019.
348
+
349
+ # A EXPERIMENTAL SETUP
350
+
351
+ Dataset Statistics. We evaluate the proposed framework on seven real-world datasets. The dataset statistics are shown in 4. All datasets can be loaded from PyTorch Geometric (Fey & Lenssen, 2019). When we evaluate the node classification performance, we need to use the training and test data. For WikiCS (Mernyei & Cangea, 2020), ogbn-arxiv (Hu et al., 2020) and Citeseer (Yang et al., 2016), we use the public data splits provided by the authors. For other datasets, we split the nodes into $1 0 \% / 1 0 \% / 8 0 \%$ for training/validation/test.
352
+
353
+ Table 4: Dataset statistics.
354
+
355
+ <table><tr><td>Dataset</td><td>Network Type</td><td>#Nodes</td><td>#Edges</td><td>#Classes</td><td>#Features</td><td>Homophily</td></tr><tr><td>WikiCS</td><td>Reference network</td><td>11,701</td><td>216,123</td><td>10</td><td>300</td><td>0.70</td></tr><tr><td>CS</td><td>Co-authorship network</td><td>18,333</td><td>81,894</td><td>15</td><td>6,805</td><td>0.81</td></tr><tr><td>Physics</td><td>Co-authorship network</td><td>34,493</td><td>247,962</td><td>5</td><td>8,415</td><td>0.93</td></tr><tr><td>Computers</td><td>Co-purchase network</td><td>13,381</td><td>245,778</td><td>10</td><td>767</td><td>0.78</td></tr><tr><td>Photo</td><td>Co-purchase network</td><td>7,487</td><td>119,043</td><td>8</td><td>745</td><td>0.83</td></tr><tr><td>CoraFull</td><td>Citation network</td><td>19,793</td><td>65,311</td><td>70</td><td>8,710</td><td>0.57</td></tr><tr><td>Citeseer</td><td>Citation network</td><td>3,327</td><td>4,732</td><td>6</td><td>3,703</td><td>0.74</td></tr><tr><td>ogbn-arxiv</td><td>Citation network</td><td>169,343</td><td>1,166,243</td><td>40</td><td>128</td><td>0.78</td></tr></table>
356
+
357
+ Hyper-parameter Settings. When calculating pseudo-homophily, we set the number of clusters to 10 for ogbn-arxiv and Computers, and 5 for other datasets. A small number of clusters can be more efficient but could be less stable. Following DGI (Velickovi ˇ c et al., 2019) and M ´ VGRL (Hassani & Khasahmadi, 2020), we we use a simple one-layer GCN (Kipf & Welling, 2016a) as our encoder. We set the size of hidden dimensions to 512, weight decay to 0, dropout rate to 0. For individual SSL methods and AUTOSSL-ES, we set learning rate to 0.001, use Adam optimizer (Kingma & Ba, 2014), train the models with 1000 epochs and adopt early stopping strategy. For AUTOSSLDS, we train the models with 1000 epochs and choose the model checkpoint that achieves the highest pseudo-homophily. We use Adam optimizer for both inner and outer optimization. The learning rate for outer optimization is set to 0.05. For AUTOSSL-ES, we use a population size of 8 for each round. Due to limited computational resources, we perform 80 rounds for Citeseer, 40 rounds for CS, Computers, CoraFull, Photo, Physics, Computers and WikiCS. We repeat the experiments on 5 different random seeds and report the mean values and variances for downstream performance. To fit DGI into GPU memory on larger datasets and accelerate its training, instead of using all the nodes we sample 2000 positive samples and 2000 negative samples for DGI on all datasets except Citeseer.
358
+
359
+ Hardware and Software Configurations. We perform experiments on one NVIDIA Tesla K80 GPU and one NVIDIA Tesla V100 GPU. Additionally, we use eight CPUs, with the model name as Intel(R) Xeon(R) Platinum 8260 CPU $\textcircled { a } 2 . 4 0 \mathrm { G H z }$ . The operating system we use is CentOS Linux 7 (Core).
360
+
361
+ # B PROOF
362
+
363
+ Theorem 1. Suppose that we are given with a graph $\mathcal { G } = \{ \nu , \varepsilon \}$ , a pseudo label vector $A \in$ $\{ 0 , 1 \} ^ { N }$ and a ground truth label vector $B \in \{ \breve { 0 } , \bar { 1 } \bar \} ^ { N }$ defined on the node set. We denote the homophily of $A$ and $B$ over $\mathcal { G }$ as $h _ { A }$ and $h _ { B }$ , respectively. If the classes in $A$ and $B$ are balanced and $h _ { A } \mathrm { ~ } / h _ { B }$ , the following results hold: $( l )$ the mutual information between $A$ and $B$ , i.e., $M I ( A , B )$ , has an upper bound $\mathcal { U } _ { A , B }$ , where $\begin{array} { r } { \mathcal { U } _ { A , B } = \frac { 1 } { N } \left[ 2 \Delta \log ( \frac { \check { \mathfrak { q } } } { N } \Delta ) + 2 ( \frac { N } { 2 } - \Delta ) \log \left( \frac { 4 } { N } ( \frac { N } { 2 } - \Delta ) \right) \right] } \end{array}$ with $\begin{array} { r } { \Delta = \frac { ( h _ { B } - h _ { A } ) | \mathcal { E } | } { 2 d _ { m a x } } } \end{array}$ and $d _ { m a x }$ denoting the largest node degree in the graph; (2) if $h _ { A } < h _ { A ^ { \prime } } < h _ { B }$ , we have $\mathcal { U } _ { A , B } < \mathcal { U } _ { A ^ { \prime } , B }$ .
364
+
365
+ Proof. (1) We start with the proof of the first result. The mutual information between two random variables $X$ and $Y$ is expressed as
366
+
367
+ $$
368
+ M I ( X , Y ) = \sum _ { y \in \mathcal { Y } } \sum _ { x \in \mathcal { X } } p _ { ( A , B ) } ( x , y ) \log \left( \frac { p _ { ( X , Y ) } ( x , y ) } { p _ { X } ( x ) p _ { Y } ( y ) } \right) .
369
+ $$
370
+
371
+ Let $\mathbf { \mathcal { A } } _ { i }$ and $B _ { i }$ denote the set of nodes in the $i$ -th class in $A$ and $B$ , respectively. Following the definition in Eq. (11), the mutual information between $A$ and $B$ can be formulated as,
372
+
373
+ $$
374
+ M I ( A , B ) = \sum _ { i = 0 } ^ { n _ { A } - 1 } \sum _ { j = 0 } ^ { n _ { B } - 1 } \frac { | A _ { i } \cap \mathcal { B } _ { j } | } { N } \log \frac { N | \mathcal { A } _ { i } \cap \mathcal { B } _ { j } | } { | \mathcal { A } _ { i } | | \mathcal { B } _ { j } | } ,
375
+ $$
376
+
377
+ where $n _ { A } , n _ { B }$ denote the number of classes in $A$ and $B$ . Since here we only consider 2 classes in $A$ and $B$ , we have
378
+
379
+ $$
380
+ \begin{array} { r l } & { \displaystyle M I ( A , B ) = \frac { \left| \mathcal A _ { 0 } \cap \mathcal B _ { 0 } \right| } { N } \log \frac { N \left| \mathcal A _ { 0 } \cap \mathcal B _ { 0 } \right| } { \left| \mathcal A _ { 0 } \right| \left| \mathcal B _ { 0 } \right| } + \frac { \left| \mathcal A _ { 0 } \cap \mathcal B _ { 1 } \right| } { N } \log \frac { N \left| \mathcal A _ { 0 } \cap \mathcal B _ { 1 } \right| } { \left| \mathcal A _ { 0 } \right| \left| \mathcal B _ { 1 } \right| } } \\ & { \quad \quad \quad \quad + \frac { \left| \mathcal A _ { 1 } \cap \mathcal B _ { 0 } \right| } { N } \log \frac { N \left| \mathcal A _ { 1 } \cap \mathcal B _ { 0 } \right| } { \left| \mathcal A _ { 1 } \right| \left| \mathcal B _ { 0 } \right| } + \frac { \left| \mathcal A _ { 1 } \cap \mathcal B _ { 1 } \right| } { N } \log \frac { N \left| \mathcal A _ { 1 } \cap \mathcal B _ { 1 } \right| } { \left| \mathcal A _ { 1 } \right| \left| \mathcal B _ { 1 } \right| } . } \end{array}
381
+ $$
382
+
383
+ Let $| \mathcal { A } _ { 0 } \cap \mathcal { B } _ { 0 } | = x , | \mathcal { A } _ { 0 } | = a$ and $| B _ { 0 } | = b$ . We then have
384
+
385
+ $$
386
+ \left\{ \begin{array} { l l } { \left| \mathcal { A } _ { 0 } \right| + \left| \mathcal { A } _ { 1 } \right| = N \Rightarrow \left| \mathcal { A } _ { 1 } \right| = N - a , } \\ { \left| \mathcal { B } _ { 0 } \right| + \left| \mathcal { B } _ { 1 } \right| = N \Rightarrow \left| \mathcal { B } _ { 1 } \right| = N - b , } \\ { \left| \mathcal { A } _ { 0 } \cap \mathcal { B } _ { 0 } \right| + \left| \mathcal { A } _ { 0 } \cap \mathcal { B } _ { 1 } \right| = \left| \mathcal { A } _ { 0 } \right| \Rightarrow \left| \mathcal { A } _ { 0 } \cap \mathcal { B } _ { 1 } \right| = a - x , } \\ { \left| \mathcal { A } _ { 0 } \cap \mathcal { B } _ { 0 } \right| + \left| \mathcal { A } _ { 1 } \cap \mathcal { B } _ { 0 } \right| = \left| \mathcal { B } _ { 0 } \right| \Rightarrow \left| \mathcal { A } _ { 1 } \cap \mathcal { B } _ { 0 } \right| = b - x , } \\ { \left| \mathcal { A } _ { 0 } \cap \mathcal { B } _ { 1 } \right| + \left| \mathcal { A } _ { 1 } \cap \mathcal { B } _ { 1 } \right| = \left| \mathcal { B } _ { 1 } \right| \Rightarrow \left| \mathcal { A } _ { 1 } \cap \mathcal { B } _ { 1 } \right| = N - b - a + x . } \end{array} \right.
387
+ $$
388
+
389
+ With the equations above, we rewrite $M I ( A , B )$ as follows,
390
+
391
+ $$
392
+ \begin{array} { c } { { M I ( A , B ) = \displaystyle \frac { 1 } { N } [ x \log \displaystyle \frac { N x } { a b } + ( a - x ) \log \displaystyle \frac { N ( a - x ) } { a ( N - b ) } } } \\ { { + ( b - x ) \log \displaystyle \frac { N ( b - x ) } { ( N - a ) b } + ( N - b - a + x ) \log \displaystyle \frac { N ( N - b - a + x ) } { ( N - a ) ( N - b ) } ] . } } \end{array}
393
+ $$
394
+
395
+ Then we rewrite result (1) in the theorem as an optimization problem,
396
+
397
+ $$
398
+ \operatorname* { m a x } f ( x ) = M I ( A , B )
399
+ $$
400
+
401
+ with constraints,
402
+
403
+ $$
404
+ \left\{ \begin{array} { l l } { 0 \leq | A _ { 0 } \cap B _ { 0 } | \leq | A _ { 0 } | \Rightarrow 0 \leq x \leq a , } \\ { 0 \leq | A _ { 0 } \cap B _ { 0 } | \leq | B _ { 0 } | \Rightarrow 0 \leq x \leq b , } \\ { | A _ { 1 } \cap B _ { 1 } | \geq 0 \Rightarrow x \geq a + b - N , } \\ { | A _ { 0 } \cap B _ { 0 } | + | A _ { 1 } \cap B _ { 1 } | \leq N \Rightarrow x \leq \frac { a + b } { 2 } , } \\ { | A _ { 0 } \cap B _ { 1 } | + | A _ { 1 } \cap B _ { 0 } | \leq N \Rightarrow x \geq \frac { a + b - N } { 2 } , } \end{array} \right.
405
+ $$
406
+
407
+ Note that the equality of $\begin{array} { r } { \left| \mathcal { A } _ { 0 } \cap \mathcal { B } _ { 0 } \right| + \left| \mathcal { A } _ { 1 } \cap \mathcal { B } _ { 1 } \right| \leq N } \end{array}$ holds when $A$ and $B$ are the same. However, $A$ and $B$ have different homophily, which indicates $\left| \mathcal { A } _ { 0 } \cap \mathcal { B } _ { 0 } \right| + \left| \mathcal { A } _ { 1 } \cap \mathcal { B } _ { 1 } \right|$ cannot reach $N$ (the same for $\left| \mathcal { A } _ { 0 } \cap \mathcal { B } _ { 1 } \right| + \left| \mathcal { A } _ { 1 } \cap \mathcal { B } _ { 0 } \right| )$ . Let $\mathcal { E } _ { A } , \mathcal { E } _ { B }$ denote the inter-class edges for $A$ and $B$ , respectively. Thus, $\begin{array} { r } { h _ { A } = 1 - \frac { | { \mathcal E } _ { A } | } { | { \mathcal E } | } } \end{array}$ and $\begin{array} { r } { h _ { B } = 1 - \frac { | { \mathcal E } _ { B } | } { | { \mathcal E } | } } \end{array}$ |EB ||E| . Since hA < hB , we have |EA| > |EB |. This indicates that there are at least $\left. \mathcal { E } _ { A } \right. - \left. \mathcal { E } _ { B } \right.$ edges in $A$ connecting nodes that belong to the same ground truth class, as shown in Figure 5.
408
+
409
+ ![](images/7af606b7dd6ad123d70029a07ef6828285e51bc874cd8f06b0bc928c507ebd1a.jpg)
410
+ Figure 5: Illustration for $\left| \mathcal { A } _ { 0 } \cap \mathcal { B } _ { 0 } \right| + \left| \mathcal { A } _ { 1 } \cap \mathcal { B } _ { 1 } \right|$ . The two dashed rectangles divide the nodes into $\mathcal { A } _ { 0 }$ and $\mathcal { A } _ { 1 }$ ; red and blue nodes denote nodes in $B _ { 0 }$ and $\boldsymbol { B } _ { 1 }$ , respectively.
411
+
412
+ Let $d _ { \mathrm { m a x } }$ denote the maximum degree in the graph and we know that at least $\frac { | \mathcal { E } _ { A } | - | \mathcal { E } _ { B } | } { d _ { \operatorname* { m a x } } }$ nodes are “misplaced” in $A$ , e.g., in Figure 5 the red node in $\boldsymbol { \mathcal { A } } _ { 1 }$ should be placed in $A _ { 0 }$ to achieve $| { \mathcal { A } } _ { 0 } \cap B _ { 0 } | +$ |A1 ∩ B1| = N . Let ∆ = |EA|−|EB| = $\begin{array} { r } { \Delta = \frac { | \mathcal { E } _ { A } | - | \mathcal { E } _ { B } | } { 2 d _ { \operatorname* { m a x } } } = \frac { ( h _ { B } - h _ { A } ) | \mathcal { E } | } { 2 d _ { \operatorname* { m a x } } } } \end{array}$ (hB−hA)|E| , and we have |A0 ∩ B0| + |A1 ∩ B1| ≤ N − 2∆ and $\begin{array} { r } { \left| \mathcal { A } _ { 0 } \cap \mathcal { B } _ { 1 } \right| + \left| \mathcal { A } _ { 1 } \cap \mathcal { B } _ { 0 } \right| \le \overline { { N } } - 2 \Delta } \end{array}$ .
413
+
414
+ With the new constraints, we rewrite the optimization problem as
415
+
416
+ $$
417
+ \operatorname* { m a x } f ( x ) = M I ( A , B ) \quad { \mathrm { s . t . ~ } } { \left\{ \begin{array} { l l } { 0 \leq x \leq a , } \\ { x \leq b , } \\ { x \geq a + b - N , } \\ { x \leq { \frac { a + b - 2 \Delta } { 2 } } , } \\ { x \geq { \frac { a + b - ( N - 2 \Delta ) } { 2 } } , } \end{array} \right. }
418
+ $$
419
+
420
+ Further, the derivative of $f ( x )$ is expressed as follows,
421
+
422
+ $$
423
+ f ^ { \prime } ( x ) = \frac { 1 } { N } \log \frac { x ( N - b - a + x ) } { ( a - x ) ( b - x ) } .
424
+ $$
425
+
426
+ Let $f ^ { \prime } ( x ) \ > \ 0$ , we have $\begin{array} { l l l } { x } & { > } & { { \frac { a b } { N } } } \end{array}$ ; let $f ^ { \prime } ( x ) \ < \ 0$ , we have $\begin{array} { l l l } { x } & { < } & { { \frac { a b } { N } } } \end{array}$ . Thus, $f ( x )$ is g at . $\begin{array} { r } { [ \operatorname* { m a x } ( 0 , a + b - N , \frac { a + b - ( N - 2 \Delta ) } { 2 } ) , \frac { a b } { N } ] } \end{array}$ and monotonically increasing $\begin{array} { r } { [ \frac { a b } { N } , \operatorname* { m i n } ( a , b , \frac { a + b - 2 \Delta } { 2 } ) ] } \end{array}$
427
+
428
+ Note that in the theorem we assume the pseudo-labels and ground truth classes are balanced, i.e., $\begin{array} { r } { a = b = \frac { N } { 2 } } \end{array}$ . Then $M I ( A , B )$ becomes,
429
+
430
+ $$
431
+ M I ( A , B ) = f ( x ) = \frac { 1 } { N } \left[ 2 x \log \frac { 4 } { N } x + 2 ( \frac { N } { 2 } - x ) \log \left( \frac { 4 } { N } ( \frac { N } { 2 } - x ) \right) \right] .
432
+ $$
433
+
434
+ Hence, $f ( x )$ is monotonically decreasing at $[ \Delta , \frac { N } { 4 } ]$ and monotonically increasing $\begin{array} { r } { [ \frac { N } { 4 } , \frac { N } { 2 } - \Delta ] } \end{array}$ . So the maximum value of $f ( x )$ is at either $x = \Delta$ or $\begin{array} { r } { x = \frac { N } { 2 } - \Delta } \end{array}$ . Further it is easy to know that $\begin{array} { r } { f ( \frac { N } { 4 } - x ) = f ( \frac { N } { 4 } + x ) } \end{array}$ . Then we have $\begin{array} { r } { f ( \Delta ) = f ( \frac { N } { 2 } - \Delta ) } \end{array}$ , and we can get the maximum value of $f ( x )$ as follows,
435
+
436
+ $$
437
+ \mathcal { U } _ { A , B } = \operatorname* { m a x } f ( x ) = f ( \Delta ) = \frac { 1 } { N } \left[ 2 \Delta \log ( \frac { 4 } { N } \Delta ) + 2 ( \frac { N } { 2 } - \Delta ) \log \left( \frac { 4 } { N } ( \frac { N } { 2 } - \Delta ) \right) \right]
438
+ $$
439
+
440
+ with $\begin{array} { r } { \Delta \ = \ \frac { ( h _ { B } - h _ { A } ) | \mathcal { E } | } { 2 d _ { \operatorname* { m a x } } } } \end{array}$ . In other words, $M I ( A , B )$ reaches its upper bound when $\vert { \mathcal { A } } _ { 0 } \cap { \mathcal { B } } _ { 0 } \vert =$ $\frac { ( h _ { B } - h _ { A } ) | \varepsilon | } { 2 d _ { \operatorname* { m a x } } }$ or $\begin{array} { r l r } { { \frac { N } { 2 } - \frac { ( h _ { B } - h _ { A } ) | \mathcal { E } | } { 2 d _ { \operatorname* { m a x } } } } } \end{array}$
441
+
442
+ aints . Bas $\begin{array} { r } { x \le \frac { a + b - 2 \Delta } { 2 } } \end{array}$ nd sio $\begin{array} { r } { x \ge \frac { a + b - ( N - 2 \Delta ) } { 2 } } \end{array}$ h 8), we have is monotoni $\frac { a + b - ( N - 2 \Delta ) } { 2 } \leq$ $\begin{array} { r } { \frac { a + b - 2 \Delta } { 2 } \Rightarrow \Delta \leq \frac { N } { 4 } } \end{array}$ N4 ed on the discus n in (1), we know t at f (∆) cally decreasing $[ 0 , \frac { N } { 4 } ]$ $\Delta$ $f ( \Delta )$ $\mathcal { U } _ { A , B }$ Since $\begin{array} { r } { \dot { \Delta } = \frac { ( h _ { B } - h _ { A } ) | \mathcal { E } | } { 2 d _ { \operatorname* { m a x } } } } \end{array}$ , a decrease in $h _ { A }$ will lead to a increase in $\Delta$ . Then we have $\mathcal { U } _ { A , B } < \mathcal { U } _ { A ^ { \prime } , B }$ if $h _ { A } < h _ { A ^ { \prime } } < h _ { B } ^ { -- }$ .
443
+
444
+ Remark on a more generalized case. We now discuss the case where we do not have assumptions on $a$ and $b$ . As we demonstrated in the above discussion, $f ( x )$ is mono$\begin{array} { r } { [ \operatorname* { m a x } ( 0 , a \ + \ b \ - \ N , \frac { a + b - ( N - 2 \Delta ) } { 2 } ) , \frac { a b } { N } ] } \end{array}$ and monotonically incrhould be one of the valAs our goal is to show that $\begin{array} { r } { [ \frac { a b } { N } , \operatorname* { m i n } ( a , b , \frac { a + b - 2 \Delta } { 2 } ) ] } \end{array}$ $f ( x )$ $\bar { f ( 0 ) } , f ( a + b - \bar { N ) } , f ( \frac { a + b - ( N - 2 \Delta ) } { 2 } ) , f ( a ) , f ( b )$ $f ( \frac { a + b - 2 \Delta } { 2 } )$ $\mathcal { U } _ { A , B }$ would be small with low $h _ { A }$ , to simplify the analysis, we consider a large value of $\Delta$ (or a small value of $h _ { A }$ ) which satisfies $\Delta \ge \frac { 1 } { 2 } | \dot { N } - \mathbf { \bar { \Phi } } ( a + b ) |$ and $\Delta \geq { \frac { 1 } { 2 } } | a - b |$ . This indicates $x$ is bounded by $\big [ \frac { a + b - ( N - 2 \Delta ) } { 2 } , \frac { a + b - 2 \Delta } { 2 } \big ]$ . Then the maximum value of $f ( x )$ , i.e., $\mathcal { U } _ { A , B }$ , is expressed as
445
+
446
+ $$
447
+ \mathcal { U } _ { A , B } = \operatorname* { m a x } ( f ( \frac { a + b - ( N - 2 \Delta ) } { 2 } ) , f ( \frac { a + b - 2 \Delta } { 2 } ) ) .
448
+ $$
449
+
450
+ When to smaWhen $\begin{array} { r } { \frac { a + b - ( N - 2 \Delta ) } { 2 } \leq \frac { a b } { N } \leq \frac { a + b - 2 \Delta } { 2 } } \end{array}$ larger be cl. It d $\Delta$ (or smaller r to the mineases with t $h _ { A }$ ) will la point ncrease d.f $\mathcal { U } _ { A , B }$ $\frac { a + b ^ { - } ( N - 2 \Delta ) } { 2 }$ a+b−2∆ will ose im ab $\textstyle { \frac { a b } { N } }$ $\begin{array} { r } { \frac { a b } { N } \ \leq \ \frac { a + b - ( N - 2 \Delta ) } { 2 } \ \leq \ \frac { a + b - 2 \overline { { \Delta } } } { 2 } } \end{array}$ $\mathcal { U } _ { A , B } ~ = ~ f ( \frac { a + b - 2 \Delta } { 2 } )$ $\Delta$ $h _ { A }$ $\frac { a + b - 2 \Delta } { 2 }$ gets closer to the minises with the increase of point (or the $\textstyle { \frac { a b } { N } }$ . Similarcrease of when). To $\begin{array} { r } { \frac { a + b - ( N - 2 \Delta ) } { 2 } \leq \frac { a + b - 2 \Delta } { 2 } \leq \frac { a b } { N } , \mathcal { U } _ { A , B } } \end{array}$ $\Delta$ $h _ { A }$ sum up, for small $h _ { A } ^ { - }$ , the upper bound of $M I ( A , B )$ , decreases with the decrease of
451
+
452
+ # C ALGORITHM
453
+
454
+ The detailed algorithm for AUTOSSL-ES is shown in Algorithm 1. Concretely, for each round (iteration) of AUTOSSL-ES, we sample $K$ sets of task weights, i.e., $K$ different combinations of SSL tasks, from a multivariate normal distribution. Then we train $K$ graph neural networks independently on each set of task weights. Afterwards, we calculate the pseudo-homohily for each network and adjust the mean and variance of the multivariate normal distribution through CMA-ES based on their pseudo-homohily.
455
+
456
+ The detailed algorithm for AUTOSSL-DS is summarized in Algorithm 2. Specifically, we first update the GNN parameter $\theta$ through one step gradient descent; then we perform $k$ -means clustering to obtain centroids, which are used to calculate the homophily loss $\mathcal { H }$ . Afterwards, we calculate the meta-gradient ∇meta{λ }, update $\{ \lambda _ { i } \}$ through gradient descent and clip $\{ \lambda _ { i } \}$ to $[ 0 , 1 ]$ .
457
+
458
+ # Algorithm 1: AUTOSSL-ES: AutoSSL with Evolutionary Strategy
459
+
460
+ for $r$ in $\{ 0 , \ldots , R \}$ do
461
+
462
+ 1. Sample $K$ sets of tasks weights from a multivariate normal distribution 2. Train $K$ networks w.r.t. each set of task weights from scratch 3. Calculate pseudo-homophily P-H of node embeddings from each network 4. Adjust the multivariate normal distribution through CMA-ES based on P-H nd
463
+
464
+ # Algorithm 2: AUTOSSL-DS: AutoSSL with Differential Search
465
+
466
+ Initialize self-supervised task weights $\{ \lambda _ { i } \}$ and GNN parameters $\theta$ ;
467
+ for t in $\{ 0 , \ldots , { \bar { T } } \}$ do 1. $\dot { \theta _ { t + 1 } } = \theta _ { t } - \epsilon \nabla _ { \theta _ { t } } \mathcal { L } ( f _ { \theta _ { t } } , \{ \lambda _ { i } , \ell _ { i } \} )$ 2. Perform $k$ -means clustering on $\dot { f } _ { \theta _ { t } } ( \mathcal { G } )$ and obtain centroids $\{ \mathbf { c } _ { 1 } , \mathbf { c } _ { 2 } , \ldots , \mathbf { c } _ { k } \}$ 3. Calculate $p \left( \mathbf { c } _ { i } \mid \mathbf { x } \right)$ according to Eq. (4) 4. Calculate homophily loss $\mathcal { H }$ according to Eq. (5) 5. $\{ \lambda _ { i } \} \{ \lambda _ { i } \} - \eta \nabla _ { \{ \lambda _ { i } \} } ^ { \mathrm { m e t a } }$ 6. Clip $\{ \lambda _ { i } \}$ to [0,1]
468
+
469
+ end
470
+
471
+ # D DISCUSSIONS ON HOMOPHILY ASSUMPTION
472
+
473
+ Most of the graphs in our real life satisfy the homophily assumption (McPherson et al., 2001), such as social networks, citation networks, co-purchase networks, etc. Thus, in general, we can treat homophily as a prior knowledge for a majority of real-world graphs. Moreover, it has been shown in (Zhu et al., 2020a; Pei et al., 2020) that most GNNs (such as GCN, GAT, ChebyNet and GraphSage) heavily rely on the homophily assumption and fail to generalize to low-homophily (heterophily) graphs even with label information. Thus, following the design of most GNNs, we focus on the homophily graphs. In addition, to apply our method on heterophily graphs, we can use the graph transformation algorithm (Suresh et al., 2021) to increase the homophily of a given graph. While heterophily graphs also exist in real-world applications, the research of GNNs on heterophily graphs is still at the very early stage even in the cases where the label information is available. Therefore, we will leave the research for heterophily graphs in the unsupervised setting as a future work.
474
+
475
+ # E ADDITIONAL EXPERIMENTAL RESULTS
476
+
477
+ # E.1 RELATIONSHIP BETWEEN DOWNSTREAM PERFORMANCE AND PSEUDO-HOMOPHILY
478
+
479
+ We provide more results on the relation between downstream performance and pseudo-homophily in Figure 6. Observations are already made in Section 4.4.
480
+
481
+ ![](images/00e121677eae83db8d9236610b701b47dfe2f995a1db7ce390fa32a75181337c.jpg)
482
+ Figure 6: Relationship between downstream performance and pseudo-homophily.
483
+
484
+ ![](images/ddfaf8cd6e011b0fb0cf2793ea9fe292451918f5530e9c4d2568781dab014b0e.jpg)
485
+ Figure 7: Pseudo-homophily versus NMI/ACC/Loss on Citeseer for AUTOSSL-DS. The vertical dashed line indicates the iteration when pseudo-homophily reaches the maximum value.
486
+
487
+ # E.2 PSEUDO-HOMOPHILY OVER ITERATIONS
488
+
489
+ We investigate how pseudo-homophily changes over iterations for AUTOSSL-DS. The changes of pseudo-homophily, NMI, ACC and homophily loss (Eq. (5)) are plotted in Figure 7. From Figure 7a and 7b, we can observe that pseudo-homophily first increases and then becomes stable through iterations. The situation is a bit different for clustering and classification performance: NMI and ACC first increase with the increase of pseudo-homophily and then drop when pseudo-homophily is relatively stable. This indicates that overtraining can hurt downstream performance as the model will have the risk of overfitting on the combined SSL tasks. However, as shown in the figure, if we stop at the iteration when pseudo-homophily reaches the maximum value we can still get a high NMI and ACC. On a separate note, Figure $\mathrm { 7 c }$ shows how the homophily loss used in AUTOSSL-DS changes over iterations. We note that in the first iterations the homophily loss is low but the pseudohomophily is also low. This is because the embeddings in the first few epochs are less separable and would lead to very close soft-assignment of clusters. As shown in the figure, however, the problem is resolved as the embeddings become more distinguishable through iterations. Thus, we argue that the homophily loss in Eq. (5) is still a good proxy in optimizing pseudo-homophily.
490
+
491
+ # E.3 EFFICIENCY ANALYSIS
492
+
493
+ # E.3.1 TIME COMPLEXITY ANALYSIS
494
+
495
+ We analyze the time complexity of the proposed AUTOSSL. Here we call one set of task weights $\{ \lambda _ { i } \}$ as one candidate solution. We denote the time of training one epoch on a given set of SSL tasks as $t _ { o }$ and the evaluation time is $t _ { e }$ . Suppose we need to train $T$ epochs for the network. Then the time for running one single candidate solution is $T t _ { o } + t _ { e }$ ; the time of running $R$ rounds of AUTOSSL-ES should be $R T t _ { o } + R t _ { e }$ . For AUTOSSL-DS, the running time is $T t _ { o } + T t _ { e }$ . As an illustration, in an $L$ -layer GCN with $d$ as the number of hidden dimensions, $t _ { o }$ can be expressed as $O ( L | \mathcal { E } | d + L N d ^ { 2 } )$ and $t _ { e }$ has time complexity of $O ( K I N d )$ with $K$ being the number of clusters and $I$ being the number of iterations for $k$ -means. Hence, we also express the time complexity of AUTOSSL-ES as $O ( R T L | \mathcal { E } | d + R T L N d ^ { 2 } + R K I N d )$ and that of AUTOSSL-DS as $\bar { O } ( T \bar { L } | \mathcal { E } | d + T L N d ^ { 2 } +$ $T K I N d )$ . Both of them linearly increase with the number of nodes $N$ when $\mathcal { E }$ is proportional to $N$ . We note that in AUTOSSL-DS, the complexity of calculating the second-order derivatives in backward propagation has an additional factor of $O ( | \theta | | \{ \lambda _ { i } \} | )$ , which can be reduced to $O ( | \{ \lambda _ { i } \} | )$ with approximated Hessian-vector products. The factor can be neglected as the number of tasks $O ( | \{ \lambda _ { i } \} | )$ is small.
496
+
497
+ # E.3.2 EMPIRICAL COMPARISON
498
+
499
+ For empirical comparison, we take Citeseer, Photo, CoraFull as examples to illustrate. As shown in Table 5, we compare the running time of different methods for training 1000 epochs on one NVIDIA-K80 GPU. The column of 5-Tasks indicates the running time of training a combination of 5 SSL tasks, i.e. CLU, PAR, PAIRSIM, PAIRDIS and DGI, for 1000 epochs. Note that we report the running time of AUTOSSL-ES as the multiplication between 500 and the time of 5-Tasks, i.e., running 500 candidate solutions. From the table, we can see that the running time of AUTOSSLES depends on the number of candidate solutions and usually takes a long time to run. However, AUTOSSL-DS significantly reduces the running time of AUTOSSL-ES. It is worth noting the stateof-the-art SSL task, MVGRL, takes a long time to run and suffers from the OOM issue when the dataset gets larger.
500
+
501
+ Table 5: Comparison of running time for training 1000 epochs on one NVIDIA-K80 GPU (12 GB memory). OOM indicates out-of-memory on this GPU.
502
+
503
+ <table><tr><td></td><td>DGI</td><td>MvGRL</td><td>5-Tasks</td><td>AUTOSSL-ES</td><td>AUTOSSL-DS</td></tr><tr><td>Citeseer</td><td>222s</td><td>1220s</td><td>322s</td><td>322s×500</td><td>1222s</td></tr><tr><td>Photo</td><td>177s</td><td>1074s</td><td>507s</td><td>507s×500</td><td>1766s</td></tr><tr><td>CoraFull</td><td>553s</td><td>0OM</td><td>858s</td><td>858s×500</td><td>3584s</td></tr></table>
504
+
505
+ # F COMPARISON WITH DIFFERENT STRATEGY
506
+
507
+ In this subsection, we examine how other strategies of assigning task weights affect the quality of learned representations. The results are summarized in Table 6. In this table, “Best SSL” indicates the best performance achieved by the individual tasks; “Random Weight” indicates the performance achieved by randomly assigning task weights; “Equal Weight” indicates the performance achieved by assigning the same task weights (i.e., all 1). The values that outperform “Best SSL” are underlined. From the table, we make two observations. Obs 1. Unlike AUTOSSL, “Random Weight” and “Equal Weight” would hurt both NMI and ACC on some datasets, e.g., Citeseer. This suggests that SSL tasks might conflict with each other and thus harm the downstream performance. Obs 2. In some cases like Physics, “Equal Weight” can also improve both ACC and NMI, which aligns well with our initial motivation that combinations of SSL can help capture multiple sources of information and benefit the downstream performance. The two observations suggest that it is important to design a clever strategy that can automatically compose graph SSL tasks.
508
+
509
+ # G COMPARISON WITH RANDOM SEARCH
510
+
511
+ In this subsection, we choose Citeseer to study the difference between random search and evolutionary algorithm (AUTOSSL-ES), and report the result in Table 7. Specifically, the random search method randomly generates 800 sets of tasks weights and we evaluate the pseudo-homophily from the models trained with those task weights. Note that in AUTOSSL-ES we also evaluated 800 sets of tasks weights in total. From the table, we can see that random search is not as efficient as AUTOSSLES: with the same search cost, the resulted pseudo-homophily of random search is not as high as AUTOSSL-ES and the downstream performance is also inferior. This result suggests that search with evolutionary algorithm can find the optimum faster than random search.
512
+
513
+ Table 6: Performance comparison of different strategies of assigning task weights. The NMI rows indicate node clustering performance; ACC rows indicate node classification accuracy $( \% )$ ; P-H stands for pseudo-homophily. (Underline: better than “Best SSL”).
514
+
515
+ <table><tr><td>Dataset</td><td>Metric</td><td>Best SSL</td><td>Random Weight</td><td>Equal Weight</td><td>AUTOSSL-ES</td><td>AUTOSSL-DS</td></tr><tr><td rowspan="3">Citeseer</td><td>NMI</td><td>0.439±0.00</td><td>0.398±0.01</td><td>0.408±0.00</td><td>0.449±0.01</td><td>0.449±0.01</td></tr><tr><td>ACC</td><td>71.64±0.44</td><td>70.64±0.07</td><td>70.80±0.31</td><td>72.14±0.41</td><td>72.00±0.32</td></tr><tr><td>P-H</td><td>1</td><td>0.897</td><td>0.904</td><td>0.943</td><td>0.934</td></tr><tr><td rowspan="3">Computers</td><td>NMI</td><td>0.433±0.00</td><td>0.341±0.03</td><td>0.290±0.00</td><td>0.447±0.01</td><td>0.448±0.01</td></tr><tr><td>ACC</td><td>87.26±0.15</td><td>86.86±0.25</td><td>87.24±0.38</td><td>87.26±0.64</td><td>88.18±0.43</td></tr><tr><td>P-H</td><td>1</td><td>0.406</td><td>0.378</td><td>0.503</td><td>0.511</td></tr><tr><td rowspan="3">CoraFull</td><td>NMI</td><td>0.498±0.00</td><td>0.458±0.02</td><td>0.493±0.00</td><td>0.506±0.01</td><td>0.500 ±0.00</td></tr><tr><td>ACC</td><td>60.42±0.39</td><td>58.88±0.32</td><td>59.01±0.29</td><td>61.01 ±0.50</td><td>61.10±0.68</td></tr><tr><td>P-H</td><td>1</td><td>0.811</td><td>0.868</td><td>0.903</td><td>0.895</td></tr><tr><td rowspan="3">CS</td><td>NMI</td><td>0.767±0.01</td><td>0.761±0.01</td><td>0.770 2±0.01</td><td>0.772 2±0.01</td><td>0.771 ±0.01</td></tr><tr><td>ACC</td><td>92.75±0.12</td><td>92.88±0.20</td><td>93.22 ±0.12</td><td>93.26 ±0.16</td><td>93.35 2±0.09</td></tr><tr><td>P-H</td><td>一</td><td>0.879</td><td>0.881</td><td>0.895</td><td>0.890</td></tr><tr><td rowspan="3">Photo</td><td>NMI</td><td>0.509±0.01</td><td>0.341±0.02</td><td>0.366±0.02</td><td>0.560±0.04</td><td>0.511 ±0.03</td></tr><tr><td>ACC</td><td>92.08±0.37</td><td>92.04±0.28</td><td>92.54±0.29</td><td>92.04±0.89</td><td>92.71±0.32</td></tr><tr><td>P-H</td><td>1</td><td>0.412</td><td>0.472</td><td>0.791</td><td>0.626</td></tr><tr><td rowspan="3">Physics</td><td>NMI</td><td>0.704±0.00</td><td>0.692±0.00</td><td>0.709 ±0.01</td><td>0.725±0.00</td><td>0.726±0.00</td></tr><tr><td>ACC</td><td>95.07±0.06</td><td>95.09±0.08</td><td>95.39±0.10</td><td>95.57±0.02</td><td>95.13±0.36</td></tr><tr><td>P-H</td><td>1</td><td>0.914</td><td>0.916</td><td>0.921</td><td>0.923</td></tr><tr><td rowspan="3">WikiCS</td><td>NMI</td><td>0.341±0.01</td><td>0.305±0.01</td><td>0.323±0.01</td><td>0.366±0.01</td><td>0.344±0.02</td></tr><tr><td>ACC</td><td>75.81±0.17</td><td>76.29±0.17</td><td>76.49±0.21</td><td>76.80±0.13</td><td>76.58±0.28</td></tr><tr><td>P-H</td><td>1</td><td>0.675</td><td>0.690</td><td>0.751</td><td>0.749</td></tr></table>
516
+
517
+ Table 7: Comparison with random search. The NMI indicates node clustering performance; ACC indicates node classification accuracy $( \% )$ ; P-H stands for pseudo-homophily.
518
+
519
+ <table><tr><td>Dataset</td><td>Metric</td><td>Random Search</td><td>AUTOSSL-ES</td></tr><tr><td rowspan="4">Citeseer</td><td>NMI</td><td>0.443±0.00</td><td>0.449±0.01</td></tr><tr><td>ACC</td><td>71.68±0.55</td><td>72.14±0.41</td></tr><tr><td>P-H</td><td>0.934</td><td>0.943</td></tr><tr><td></td><td></td><td></td></tr></table>
520
+
521
+ # H BROADER IMPACT
522
+
523
+ Graph neural networks (GNNs) are commonly used for node and graph representation learning tasks due to their representational power. Such models have also been recently proposed for use in largescale social platforms for tasks including forecasting (Tang et al., 2020a), friend ranking (Sankar et al., 2021) and item recommendation (Ying et al., 2018; Wu et al., 2019a), which impact many end users. Like other machine learning models, GNNs can suffer from typical unfairness issues which may arise due to sensitive attributes, label parity issues, and more (Dai & Wang, 2021). Moreover, GNNs can also suffer from degree-related biases (Tang et al., 2020b). Self-supervised learning (SSL) is often used to learn high-quality representations without supervision from labeled data sources, and is especially useful in low-resource settings or in pre-training/fine-tuning scenarios. Several works have illustrated the potential for representations learned in a self-supervised way to encode bias unintentionally, for example in language modeling (Bender et al., 2021; Zhao et al., 2019), image representation learning (Roberts et al., 2018) and outlier detection (Shekhar et al., 2020).
524
+
525
+ Our work on automated self-supervised learning with graph neural networks shares the caveats of these two domains in terms of producing inadvertent or biased outcomes. We propose an approach to learn self-supervised representations by utilizing multiple types of pretext tasks in conjunction with one another. While this produces improved performance on standard tasks used for benchmarking representation quality, it does not guarantee that these representations are fair and should be used without typical fairness checks in industrial contexts. However, such concerns are not inherently posed by our proposed ideas, but by the foundations it builds on in GNNs and SSL. We anticipate our ideas will drive further research in more sophisticated and powerful self-supervised graph learning, and do not anticipate direct negative outcomes from this work.
parse/dev/rFbR4Fv-D6-/rFbR4Fv-D6-_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/rFbR4Fv-D6-/rFbR4Fv-D6-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/rFbR4Fv-D6-/rFbR4Fv-D6-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/upJ3vrFKaL/upJ3vrFKaL.md ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # COLLECTING THE PUZZLE PIECES: DISENTANGLEDSELF-DRIVEN HUMAN POSE TRANSFER BY PERMUT-ING TEXTURES
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Human pose transfer aims to synthesize a new view of a person under a given pose. Recent works achieve this via self-reconstruction, which disentangles pose and texture features from the person image, then combines the two features to reconstruct the person. Such feature-level disentanglement is a difficult and illdefined problem that could lead to loss of details and unwanted artifacts. In this paper, we propose a self-driven human pose transfer method that permutes the textures at random, then reconstructs the image with a dual branch attention to achieve image-level disentanglement and detail-preserving texture transfer. We find that compared with feature-level disentanglement, image-level disentanglement is more controllable and reliable. Furthermore, we introduce a dual kernel encoder that gives different sizes of receptive fields in order to reduce the noise caused by permutation and thus recover clothing details while aligning pose and textures. Extensive experiments on DeepFashion and Market-1501 shows that our model improves the quality of generated images in terms of FID, LPIPS and SSIM over other self-driven methods, and even outperforming some fully-supervised methods. A user study also shows that among self-driven approaches, images generated by our method are preferred in $72 \%$ of cases over prior work.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ The goal of human pose transfer is to change the pose of a person while preserving the person’s appearance and clothing textures. It has wide applications such as virtual try-on (Yang et al., 2020b; Cui et al., 2021; Yu et al., 2019), controllable person image manipulation (Cui et al., 2021; Liu et al., 2021) and person re-identification (Zhang et al., 2021b). Recent work has focused on using paired image data (i.e., two images of the same person before and after reposing) (Zhou et al., 2022; Zhang et al., 2022), but collecting such data can be very labor intensive. Although self-driven methods have been proposed to train pose transfer models without paired data (Ma et al., 2021; Song et al., 2019), there still remains two major challenges: how to disentangle texture and pose, and how to preserve texture details across changes in pose. As illustrated in Figure 1a, prior research attempts to achieve the pose and texture disentanglement at a feature level (Ma et al., 2018; Yang et al., 2020a; Ma et al., 2021; Wang et al., 2022). However, without direct supervision from pose-invariant textures, disentangling texture features from the person image while also preserving specific clothing details in the disentangled features is a difficult and ill-defined problem (Locatello et al., 2019). Small imbalances between pose and texture could leave obvious artifacts in the generated images.
12
+
13
+ In this paper, we propose Pose Transfer by Permuting Textures $( \mathrm { P T ^ { 2 } } )$ , a self-driven pose transfer model using image-level disentanglement to represent detailed clothing patterns in any target pose. As shown in Figure 1b, a key novelty is our input permutation function that disentangles the raw inputs of texture and pose. Our method does not need supervised pose-invariant textures because most pose information has been removed by the permutation. The input permutation function creates a disentangled texture sample space by randomly reordering the texture patches on the person such that the source pose cannot be recovered from the permuted textures. This approach is similar in spirit to self-supervised representation learning methods that use jigsaw puzzle solving to learn a good feature representation (Noroozi & Favaro, 2016; Carlucci et al., 2019), where the pretext task divides the image into large patches and attempts to infer their relative positions by using the inherent geometry information within each patch. However, we differ in that our goal is to sample relevant patches based on the target posture. We make the patch much smaller in order to remove the position information and thus disentangle pose and texture. Furthermore, we mask some of the textures to force the generator to infer occluded and unseen regions, such as t-shirt occluded by crossed arms.
14
+
15
+ ![](images/3706d01db007440f12ea36da9627cdc9ea93e4c468362e3e2106b57386c9a536.jpg)
16
+ Figure 1: Pose transfer methods trained without supervision extract disentangled texture and pose representations and then learn to reconstruct the original image. (a) Recent work uses separate encoders to disentangle texture and pose (Pumarola et al., 2018; Ma et al., 2018; 2021; Wang et al., 2022). However, pose information may still appear in the texture features, and without supervision, disentangling them is difficult (Locatello et al., 2019). (b) Our approach disentangles textures from pose by permuting the image patches, effectively eliminating pose information, which enables our approach to disentangle pose and texture features better than prior work.
17
+
18
+ One challenge we face is that the permutation of textures causes loss of shape and relative position information, which has two significant consequences. First, the model cannot recognize different body parts and garments. For example, the generator could use texture from leggings to synthesize a top tank. Second, it makes the length of clothing items unknown because of lack of relative position of clothing pieces. The first issue can be easily solved by combining the person with a human parsing map to give a semantic identifier for each pixel (Ma et al., 2021). Whereas for the second problem, we need an additional sample space in the model that provides relative position information. This inspires us to add a pose branch, where we use the dense pose representation (Guler et al., 2018) as ¨ the sample space to provide position information for each pixel after permuting the textures. Each pixel value in the space indicates the position of that pixel under the texture coordinate system (Guler ¨ et al., 2018). In addition, we find that using different kernel sizes in the convolutional layers of our dual branch attention module provides a better representation for our task.
19
+
20
+ Our main contributions are:
21
+
22
+ • We propose Pose Transfer by Permuting Textures $( \mathrm { P T ^ { 2 } } )$ , a self-driven pose transfer model that utilizes input permutation to transfer clothing patterns to the target pose without using paired images for supervision.
23
+ • The proposed pose branch in $\mathrm { P T ^ { 2 } }$ provides relative geometry information for the permuted textures, which helps recover shape and length after pose transfer. In addition, different kernel sizes are introduced in the branch, which can reduce the noise caused by input permutation and thus preserve clothing details while aligning pose and textures.
24
+ • Extensive experiments on DeepFashion (Liu et al., 2016) and Market-1501 (Zheng et al., 2015) show that $\mathrm { P \bar { T } ^ { 2 } }$ significantly improves the image quality of self-driven approaches. A user study reports that our method are preferred in $72 \%$ of cases over the state-of-the-art.
25
+
26
+ # 2 RELATED WORK
27
+
28
+ Pose transfer with paired images. Methods trained with paired images aim to learn the complex non-rigid deformation of clothing items. In (Zhu et al., 2019; Zhang et al., 2022; Ren et al., 2022; Gao et al., 2020), this transformation is learned via soft attention that aggregates source image features with weighted sampling. Zhang et al. (2021a); Lv et al. (2021) further use semantic parsing maps as guidance to control the style of each body part. The major difficulty in such feature-level attention is that clothing details could be washed out in lower-resolution feature maps. To preserve these details after pose transfer, flow-based methods haven been proposed to approximate a dense flow field from the source to the target person. Han et al. (2019) introduced a pyramid feature network that outputs a pixel-level flow filed. Tang et al. (2021); Ren et al. (2020) further combined soft attention with dense flow to learn more accurate estimations. However, since the learned flow can only copy existing pixels in the source image to the target, it might fail at inferring occluded and unseen parts of the person. Grigorev et al. (2019); Sarkar et al. (2020); Albahar et al. (2021) explored inpainting 2D partial texture to 3D full texture in the UV space, and then projecting it back to the 2D pose. Although these methods can produce high-quality person images, they all require strong supervision from paired data, which might be difficult to collect in some real-world scenarios.
29
+
30
+ Pose transfer with unpaired images. In a self-driven setting where paired data is absent, it is more difficult to transfer the pose without losing texture details. Without supervision, the generated images tend to have repeated texture patterns and edge blurring (Wang et al., 2022). Prior work has addressed this problem by disentangling the texture and posture at a feature level. Early attempts produced poor quality images for large pose deformations (Pumarola et al., 2018; Esser et al., 2018; Ma et al., 2018). Song et al. (2019) introduced a generated target parsing map to a cycle-GAN pose transfer model, which requires paired segmentation maps for training the human parsing model. Sanyal et al. (2021) presents a 3D based reposing approach with appearance visibility inference. Wang et al. (2022) used part-wise encoder to learn texture features that are less correlated with pose, where global pose information can still be inferred from the texture features. The model in (Ma et al., 2021) first computes region-wise image features, and then takes their mean and variance as the texture features to be integrated with the pose representation. This helps erase the pose information in the texture features, but, as we show, it may miss clothing details. In contrast to these methods, our approach disentangles the texture at an image-level by permutation, and uses a dual kernel encoder with dual branch attention to transfer detailed clothing patterns to the target pose.
31
+
32
+ # 3 SELF-DRIVEN POSE TRANSFER BY PERMUTING TEXTURES $( \mathrm { P T ^ { 2 } } )$
33
+
34
+ Let $I _ { s }$ be the source image with posture $P _ { s }$ . Our goal is to synthesize a new view $I _ { t }$ of the same person in $I _ { s }$ and wearing the same clothes in a target posture $P _ { t }$ . Models requiring paired data use the target pose $P _ { t }$ and the target image $I _ { t }$ for training, but our approach needs only information derived from the source image. Specifically, the target pose/image in training is identical to the source pose/image. In inference, replacing the target pose with a different one enables pose transfer.
35
+
36
+ $\mathrm { P T ^ { 2 } }$ contains a pose transfer network (Sec. 3.1) that synthesizes a new view of the person in its target pose, and a background inpainting network that infers its full background (Sec. 3.2). The generated person and its full background are combined to create the final reconstructed image.
37
+
38
+ # 3.1 POSE TRANSFER NETWORK
39
+
40
+ The objective of the pose transfer network is to take the foreground person in the source image and generate a new view of them in a different pose. Figure 2 gives the overall architecture, which contains two branches: a pose branch that learns the geometric transformation function from pose $P _ { s }$ to pose $P _ { t }$ , and a texture branch that learns to transfer the textures of the person $E _ { s }$ to pose $P _ { t }$ . The permuted inputs (Sec. 3.1.1) from the two branches are first encoded with dual kernel encoder (Sec. 3.1.2), and then merged in a dual branch attention module (Sec. 3.1.3) to be decoded into the generated person $\hat { E } _ { d }$ and its segmentation $S$ .
41
+
42
+ # 3.1.1 INPUT PERMUTATION
43
+
44
+ Inputs to the Texture Branch. To guide the texture transfer with a posture in a self-driven way, we first need to disentangle the pose and textures in the image. The posture can be derived by a DensePose model (Guler et al., 2018) pretrained on COCO (Lin et al., 2014), which gives a 2D UV ¨ coordinate representation $P _ { s }$ . However, the texture representation should not simply be the source person $E _ { s }$ itself, as it is obviously entangled with posture. To erase the pose information from $E _ { s }$ , we create a texture sample space by dividing the image into $k \times k$ squares, referred to as “patches,” and then shuffling their locations. Intuitively, when the patch size $k$ is sufficiently small, the original posture cannot easily be retrieved from the permutation. Additionaly, $20 \%$ of the patches are masked to encourage the model to learn occluded regions. Formally, let RandMask $( \cdot )$ be the input permuting function. The inputs of the texture attention branch become $[ \tilde { E } _ { s } ; \tilde { M } ] = \mathrm { R a n d M a s k } ( [ E _ { s } ; M ] , m _ { t } )$ , where $[ ; ]$ means concatenation and $m _ { t }$ is the masking rate. We set $m _ { t } = 0 . 2$ in our experiments. The permuted tetxures $[ \tilde { E } _ { s } ; \tilde { M } ]$ are given as inputs to the dual-kernel texture encoder (Sec. 3.1.2).
45
+
46
+ ![](images/303bdb570b4412b24e01bef00cd95562dd32683df6bd9f9d6596ac4a3c269dbe.jpg)
47
+ Figure 2: The pose transfer network in $\mathrm { P T ^ { 2 } }$ . During training, the target pose $P _ { t }$ is the same as the source pose $P _ { s }$ . The network takes the source person $E _ { s }$ , source parsing map $M$ and source pose $P _ { s }$ as inputs. In the pose branch and texture branch, the inputs are first permuted (Sec. 3.1.1) to create the corresponding sample space, which is encoded with dual kernel encoders (Sec. 3.1.2). Then the encoded features are sampled in a dual branch attention module (Sec. 3.1.3) to be decoded into the generated person $\hat { E } _ { s }$ and its segmentation $S$ . The output of the pose transfer network is combined with the output of the background inpainting network (Sec. 3.2) to produce the final image.
48
+
49
+ Inputs to the Pose Branch. While prior work only uses a texture branch to transfer texture to the target pose (Pumarola et al., 2018; Ma et al., 2018; 2021; Wang et al., 2022), we propose a pose branch that provides relative geometry information for the permuted textures, which helps recover shape and length after pose transfer. To learn a powerful pose transformation function that supports large pose variations, the source pose in this branch is permuted the same way as the textures. In addition, we mask $50 \%$ of the source pose representation to force the model to learn the inherit symmetry in human body. The inputs to the pose branch become $[ \tilde { P } _ { s } ; \tilde { M } ] = \mathrm { R a n d M a s k } ( [ P _ { s } ; M ] , \stackrel { . . } { m } _ { p } )$ , where $m _ { p } = 0 . 5$ . Note that the inputs of the texture and pose branches are permuted the same way so they are spatially aligned in the dual branch attention module (see Sec. 3.1.3). The permuted pose representations $[ \tilde { P _ { s } } ; \tilde { M } ]$ are given as inputs to the dual-kernel pose encoder (Sec. 3.1.2).
50
+
51
+ # 3.1.2 DUAL KERNEL ENCODER
52
+
53
+ Following (Pumarola et al., 2018; Ma et al., 2018; 2021; Wang et al., 2022), we utilize separate encoders to learn both the texture and the pose information. However, in addition to providing permuted inputs from Sec. 3.1.1 to help further disentangle texture from pose, another way our approach differs is that we use multiple kernel sizes in the encoder’s convolutional layers. More formally, the texture/pose encoder learns a multi-dimensional feature map $F \in \mathbb { R } ^ { H \times W \times d }$ from the permuted texture/posture, where each vector $v \in \mathbb { R } ^ { d }$ in the feature map has a certain receptive field in the image. Let $l$ denote the length of the receptive field and $s$ be the stride of $F$ (both are measured by number of pixels in the image). Generally, larger receptive field is capable of learning more diverse features, and thus $l$ is usually much larger than $s$ . However, for a receptive field that crosses the boundary between two permuted image patches, the pixels within the field could be spatially faraway and irrelevant in the original image. In the left picture of Figure 3, the two black squares denote two adjacent receptive fields. While the left square lying within an image patch are seeing a consistent pattern (e.g., face), the right square crossing the boundary are seeing two distinct patterns (e.g., face and shoes). This could introduce high volume of noise to the feature vector $v$ , preventing the model from recognizing true clothing patterns.
54
+
55
+ ![](images/890e385af89e0320c8b5709a4c58db2a8edea42c1eb582bf4a556892ef415682.jpg)
56
+ Figure 3: Illustration of the receptive field in the large-kernel encoder (left) and small-kernel encoder (right). The kernel size $l$ is reduced to avoid overlap between receptive fields (see Sec. 3.1.2).
57
+ Figure 4: Dual branch attention module in Sec. 3.1.3. The top flow is PAM and the bottom flow is TAM. Res represents a residual layer. The cross-attention mechanism aligns the permuted texture with the target pose.
58
+
59
+ To solve the above issue, we introduce an additional pose encoder with reduced kernel size such that $l \ = \ s$ , which can be regarded as a Multi Layer Perceptron over image patches. We select our kernel size such that the kernel does not cross the boundary of the permuted inputs from Sec. 3.1.1. As shown in the right picture of Figure 3, this design avoids the overlap between receptive fields, enabling the convolutional kernel to learn a consistent pattern within its own receptive field. Note that large kernel size is still necessary as it has more parameters and larger receptive filed for learning larger image patterns. Therefore, by combining encoders with a large and small kernel sizes our model is capable of learning more diverse features. The outputs of the dual kernel encoders in both texture branch and pose branch are fed to the dual branch attention module in Sec. 3.1.3.
60
+
61
+ # 3.1.3 DUAL BRANCH ATTENTION
62
+
63
+ We use a cross-attention transformer (Tang et al., 2020; Tan et al., 2021; Zhang et al., 2022) to align texture and pose features. Specifically, we use a Pose Attention Module (PAM) for the pose branch and a Texture Attention Module (TAM) for the texture branch. Let $F _ { s } ^ { p l } , F _ { s } ^ { p s }$ represent the output feature map of the large-kernel pose encoder and the small-kernel pose encoder in the pose branch, respectively. Similarly, $F _ { s } ^ { t l } , F _ { s } ^ { t { \bar { s } } }$ are the encoded features from the texture encoders in the texture branch. $T _ { 1 }$ is the feature map of the target pose $P _ { t }$ encoded by the target pose encoder, which is implemented with six convolutional layers. As shown in Figure 4, both PAM and TAM are composed of three cross-attention vision transformers formulated as Attention $\begin{array} { r } { ( Q , K , V ) = \mathrm { s o f t m a x } ( \frac { Q K ^ { \hat { T } } } { \sqrt { d } } ) \cdot V } \end{array}$ . With cross-attention the model can sample textures based on the target pose to generate a person image. In the first two transformer layers, the pose attention in the pose branch is learned from the correlation between the source pose and the target pose, which is computed as:
64
+
65
+ $$
66
+ Q = W _ { i } ^ { p q } T _ { i } , K = W _ { i } ^ { p k } F _ { s } ^ { p l } , V = W _ { i } ^ { p v } F _ { s } ^ { t l } , i = 1 , 2 .
67
+ $$
68
+
69
+ Here, $W _ { i } ^ { p q } , W _ { i } ^ { p k } , W _ { i } ^ { p v }$ are learnable projection matrices. Similarly, the texture attention in the texture branch is formulated as the correlation between the texture and the target pose:
70
+
71
+ $$
72
+ Q = W _ { i } ^ { t q } T _ { i } , K = W _ { i } ^ { t k } F _ { s } ^ { t l } , V = W _ { i } ^ { t v } F _ { s } ^ { t l } , i = 1 , 2 .
73
+ $$
74
+
75
+ After each transformer layer, a residual layer is appended as in Figure 4. A random noise vector $z$ is injected to the residual layer as the affine transformation parameters of the feature map $T _ { i }$ to prevent mode collapse (Karras et al., 2019).
76
+
77
+ In the last transformer layer, wby small-kernel encoders (i.e., $F _ { s } ^ { p l } , F _ { s } ^ { t l }$ in the above equations with features produced to reconstruct more detailed information. The $F _ { s } ^ { p s } , F _ { s } ^ { t s } )$
78
+ output feature map $T$ of the last transformer layer is then fed to the decoder, where $T$ is gradually
79
+ upsampled to the target person $\hat { E } _ { s }$ and its segmentation mask $S$ .
80
+
81
+ PAM in the dual branch attention module learns geometric transformation between different postures, and TAM samples the given textures based on the target pose. Fusing the two source of information provides a more accurate match between the given pose and textures. By filling in more clothing details that are learned through small kernels, our pose transfer network can then faithfully recover the appearance of clothing items after pose transfer.
82
+
83
+ # 3.2 BACKGROUND INPAINTING NETWORK
84
+
85
+ As in (Dundar et al., 2021; Liu et al., 2021), we use a separate background inpainting network, implemented using UNet (Long et al., 2015), to infer the background pixels of the masked foreground region. However, we found if we only mask out the foreground segmentation $S$ , the model would ignore the unknown background in the mask and reconstruct only known pixels during inference. This is because the background area is always visible in the source image in self-supervised training, so the network does not learn how to infer missing areas. Therefore, we expand the mask to the whole bounding box of the detected person in order to create invisible background areas during training. Let $\hat { B }$ be the inpainted background. Given the generated person $\hat { E } _ { s }$ and its segmentation mask $S$ produced by the pose transfer network, the final reconstructed image is: $\hat { I } _ { s } = \dot { S } \odot \dot { E } _ { s } + ( 1 - S ) \odot \hat { B }$ .
86
+
87
+ # 3.3 LOSS FUNCTIONS
88
+
89
+ We train our model using an adversarial loss that can be written as:
90
+
91
+ $$
92
+ L _ { a d v } = D ( \hat { I } _ { s } ) ^ { 2 } + ( 1 - D ( I _ { s } ) ) ^ { 2 } + D _ { p } ( [ \hat { I } _ { s } ; P _ { s } ] ) ^ { 2 } + ( 1 - D _ { p } ( [ I _ { s } ; P _ { s } ] ) ) ^ { 2 } .
93
+ $$
94
+
95
+ where $D$ and $D _ { p }$ represent different discriminators. $D$ penalizes the distribution difference between the synthesized image $\hat { I } _ { s }$ and the ground truth $I _ { s }$ . $D _ { p }$ evaluates that if the posture in $\hat { I } _ { s }$ matches the source pose $P _ { s }$ . To ensure correctness of our image generation, we use three different loss functions that capture different desired properties. The first is a simple reconstruction loss,
96
+
97
+ $$
98
+ L _ { r e c } = | | \hat { I } _ { s } - I _ { s } | | _ { 1 } .
99
+ $$
100
+
101
+ In addition, we use a perceptual loss (Johnson et al., 2016) that encourages both the ground truth and reconstructed image have similar semantic properties,
102
+
103
+ $$
104
+ L _ { p e r c } = \sum _ { i } | | \phi ^ { i } ( \hat { I } _ { s } ) - \phi ^ { i } ( I _ { s } ) | | _ { 1 } ,
105
+ $$
106
+
107
+ where $\phi ^ { i }$ is the ith layer of a VGG model (Simonyan & Zisserman, 2014) pretrained on ImageNet Deng et al. (2009). Finally, we use a style loss that penalizes discrepancies on colors and textures using the Gram matrix $\mathbb { G } ( \cdot )$ of the features,
108
+
109
+ $$
110
+ L _ { s t y l e } = \sum _ { i } | | \mathbb { G } ( \phi ^ { i } ( \hat { I } _ { s } ) ) - \mathbb { G } ( \phi ^ { i } ( I _ { s } ) ) | | _ { 1 } .
111
+ $$
112
+
113
+ Thus, our total loss can be written as,
114
+
115
+ $$
116
+ L _ { t o t a l } = \lambda _ { 1 } L _ { a d v } + \lambda _ { 2 } L _ { r e c } + \lambda _ { 3 } L _ { p e r c } + \lambda _ { 4 } L _ { s t y l e } .
117
+ $$
118
+
119
+ where $\lambda _ { 1 - 4 }$ are scalar hyperparameters. Additional training details are provided in Appendix A.
120
+
121
+ # 4 EXPERIMENTS
122
+
123
+ Datasets. We evaluate our proposed model on two benchmarks: DeepFashion (Liu et al., 2016) and Market1501 (Zheng et al., 2015). DeepFashion contains 52,712 high-quality images with a clean background. Market-1501 has 32,668 low-resolution images with various lighting conditions and a noisy background. Following Zhang et al. (2022); Wang et al. (2022), we select 8,570 test pairs with a resolution of $2 5 6 \times 2 5 6$ on DeepFashion, and 12,000 test pairs with a resolution of $1 2 8 \times 6 4$ on Market-1501. As in prior self-driven methods (Ma et al., 2021; Wang et al., 2022), we use 37,332 training images for DeepFashion and 12,112 training images for Market-1501.
124
+
125
+ Metrics. Following (Ma et al., 2021; Wang et al., 2022), we use Structural Similarity Index Measure (SSIM) (Wang et al., 2004), Frechet Inception Distance (FID) (Heusel et al., 2017) , Learned Perceptual Image Patch Similarity (LPIPS) (Zhang et al., 2018) and Inception Score (IS) (Salimans et al., 2016) to evaluate the quality of the synthesized images. Among these metrics, SSIM measures structural similarity in the pixel space. FID computes Wasserstein-2 distance between two distributions. LPIPS evaluates perceptual similarity in deep network’s feature space. We use the default AlexNet as LPIPS’s backbone. IS assesses the quality of images generated by adversarial training. On Market-1501, we add Masked-SSIM and Masked-LPIPS computed on the target person region to exclude the influence of the irrelevant background.
126
+
127
+ Table 1: Pose transfer results for $2 5 6 \times 2 5 6$ resolution images on DeepFashion. All results for prior work are taken from the original papers or produced with the author’s source code.
128
+
129
+ <table><tr><td>Method</td><td>FID↓</td><td>SSIM↑</td><td>LPIPS↓</td><td>IS↑</td></tr><tr><td>Supervised by paired images</td><td></td><td></td><td></td><td></td></tr><tr><td>PATN (Zhu et al., 2019)</td><td>24.071</td><td>0.770</td><td>0.299</td><td>3.141</td></tr><tr><td>GFLA (Ren et al., 2020)</td><td>10.573</td><td>0.707</td><td>0.234</td><td>3.635</td></tr><tr><td>PISE (Zhang et al., 2021a)</td><td>13.610</td><td>-</td><td>0.206</td><td>1</td></tr><tr><td>SPIG (Lv et al., 2021)</td><td>12.243</td><td>0.782</td><td>0.211</td><td>=</td></tr><tr><td>DPTN (Zhang et al.,2022)</td><td>11.466</td><td>0.778</td><td>0.196</td><td></td></tr><tr><td>CASD (Zhou et al., 2022)</td><td>11.373</td><td>0.725</td><td>0.194</td><td></td></tr><tr><td>NTED (Ren et al., 2022)</td><td>6.786</td><td>0.808</td><td>0.133</td><td>3.264</td></tr><tr><td>No paired images</td><td></td><td></td><td></td><td></td></tr><tr><td>VU-Net (Esser et al.,2018)</td><td>23.580</td><td>0.786</td><td>0.321</td><td>3.087</td></tr><tr><td>E2E (Song et al., 2019)</td><td>29.900</td><td>0.736</td><td>0.238</td><td>3.441</td></tr><tr><td>DPIG (Ma et al., 2018)</td><td>48.200</td><td>0.614</td><td>0.284</td><td>3.228</td></tr><tr><td>MUST (Ma et al.,2021)</td><td>15.902</td><td>0.742</td><td>-</td><td>3.692</td></tr><tr><td>SCM-Net Wang et al. (2022)</td><td>12.180</td><td>0.751</td><td>0.182</td><td>3.632</td></tr><tr><td>PT²(Ours)</td><td>8.338</td><td>0.795</td><td>0.158</td><td>3.469</td></tr></table>
130
+
131
+ Table 2: Pose transfer results for $1 2 8 \times 6 4$ resolution images on Market-1501. All results for prior work are taken from the original papers or produced with the author’s source code.
132
+
133
+ <table><tr><td>Method</td><td>FID↓</td><td>SSIM↑</td><td>M-SSIM↑</td><td>LPIPS↓</td><td>M-LPIPS↓</td><td>IS↑</td></tr><tr><td>Supervised by paired images</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>PATN (Zhu et al., 2019)</td><td>22.657</td><td>0.311</td><td>0.811</td><td>0.320</td><td>0.159</td><td></td></tr><tr><td>GFLA (Ren et al.,2020)</td><td>19.751</td><td>0.281</td><td>0.796</td><td>0.282</td><td>0.148</td><td></td></tr><tr><td>SPIG (Lv et al., 2021)</td><td>23.331</td><td>0.315</td><td>0.818</td><td>0.278</td><td>0.139</td><td></td></tr><tr><td>DPTN (Zhang et al., 2022)</td><td>18.995</td><td>0.285</td><td>1</td><td>0.271</td><td>1</td><td></td></tr><tr><td> No paired images</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>PT²(Ours)</td><td>17.389</td><td>0.280</td><td>0.820</td><td>0.314</td><td>0.122</td><td>2.789</td></tr></table>
134
+
135
+ # 4.1 QUANTITATIVE RESULTS
136
+
137
+ Table 1 compares methods on the pose transfer task using DeepFashion, where our approach outperforms most methods on FID, SSIM, and LPIP by a large margin. For example, we improve FID by 4 points over the state-of-the-art. Notably, our model, which requires no paired training data, also achieves better performance than most supervised methods trained with paired data. Similar behavior is seen on Market-1501 (Table 2), where our self-driven $\mathrm { P T ^ { 2 } }$ gains in Masked-SSIM and Masked-LPIPS over supervised methods. However, we note that we do perform worse according to SSIM and LPIPS, which is computed over the entire image rather than just the target person region.
138
+
139
+ To investigate the reason behind the discrepancy when we use masked regions for evaluation, we computed the SSIM scores on different body parts of the person. The average scores for background, arms, legs, clothes and head for $\mathrm { P T ^ { 2 } }$ are: 0.237, 0.263, 0.283, 0.323, 0.337, respectively. The lowest SSIM is on the background because the dataset is collected from surveillance videos, where the background can change drastically in different time frames. This violates our assumption that the background does not change, explaining the relatively poor performance. That said, since our goal is pose transfer, the improved performance using M-SSIM and M-LPIPS demonstrates we are more successful than even the supervised methods on Market-1501 at that task.
140
+
141
+ User Study. To verify the quality of generated images, we also conducted a human evaluation on DeepFashion using Amazon Mechanical Turk. We collected 3 judgements for 50 images (150 total). Each worker was presented 3 pictures: the true image, a $\mathrm { P T ^ { 2 } }$ generated image, and a image generated by a method from prior work. The worker was asked to pick a picture that looks most similar to the true image. Table 3 shows that among self-driven methods, more than $72 \%$ workers believe our method achieves higher fidelity in the generated images. Compared with approaches supervised by paired images, our method achieves comparable performance with an average of over $62 \%$ user preference, demonstrating the effectiveness of our proposed approach.
142
+
143
+ ![](images/630f609496292089e9c22e4a445158b42ae2ba38d7e278fdbe3a3729dc014820.jpg)
144
+ Figure 5: Qualitative pose transfer results on DeepFashion (left) and Market-1501 (right). We enlarged the area marked with a red bounding box for a better view of clothing details. Examples from prior work are generated with the author’s code and pretrained models. MUST, E2E, and our $\mathrm { P T ^ { 2 } }$ are trained with unpaired data, while the rest are supervised by paired data. These results show our approach transfers the original clothing patterns onto the target pose better than prior work.
145
+
146
+ Table 3: A/B user preferences on DeepFashion. We report how often our approach was selected as most like the ground truth image. The number that follows $\pm$ is the corresponding standard deviation. We significantly outperform methods trained without paired images. Our results were also preferred over fully supervised methods.
147
+
148
+ <table><tr><td></td><td colspan="3"> Supervised by paired images</td><td colspan="2">No paired images</td></tr><tr><td></td><td>PISE</td><td>DPTN</td><td>CASD</td><td>E2E</td><td>MUST</td></tr><tr><td>PT²</td><td>68.7%±3.27</td><td>66.2%±3.35</td><td>53.8%±3.53</td><td>79.7%±2.84</td><td>(Zhang et al.,2021a) (Zhang et al.,2022) (Zhou et al.,2022) (Song et al.,2019) (Ma et al.,2021) 72.6%±3.15</td></tr></table>
149
+
150
+ # 4.2 QUALITATIVE RESULTS
151
+
152
+ Pose Transfer. Figure 5 visualizes pose transfer results. We enlarged the area marked with a red bounding box for a better view of clothing details. In the first row (left), our method transferred the arm tattoos to the target pose while other methods either ignored this detail or failed to reconstruct the arm. Similarly, our model learns the color pattern in the second row (left) better than other approaches. This is because the small kernel encoder in our model can capture such detailed texture and thus reconstruct it based on the target pose. On the right side of Figure 5, compared with supervised pose transfer methods, our approach faithfully recovered the shape and color of the dress and shirt in the two examples. More examples, including failure cases, are in Appendix B.
153
+
154
+ Garment Replacement. With a given parsing map, our approach can also switch the clothing pieces on two persons. Let $I _ { A } = \left( A _ { p o s e } , A _ { c l t } \right)$ be an image of person $A$ wearing clothes $A _ { c l t }$ under posture $A _ { p o s e }$ . To replace $A _ { c l t }$ with $B _ { c l t }$ in $I _ { B } = ( B _ { p o s e } , B _ { c l t } )$ , we first align $A , B$ ’s pose to $A _ { p o s e }$ using the proposed pose transfer method, and then replace $A _ { c l t }$ to $B _ { c l t }$ using their parsing maps. To fix small mis-alignment after copy-paste $B _ { c l t }$ using the parsing map, the image is fed to $\mathrm { P T ^ { 2 } }$ again for a more plausible reconstruction. Due to the shape difference of the source and reference garments (e.g., jeans and shorts), the model could give different ways of combining all the clothing pieces after replacing a specific garment. For example, in Figure 6, for the person in the top second source image, the upper clothes are tucked into the shorts but untucked to the jeans. Similarly, the shorts in the top first source image are occluded by the camel t-shirt and pink jackets, but are visible when combined with other shirts. Overall, Figure 6 shows that the proposed method successfully replaces various types of garments in the given images while preserving their patterns and details.
155
+
156
+ # 4.3 ABLATION STUDY
157
+
158
+ We performed an ablation study to evaluate the effectiveness of each component of our model. In Table $4 , w / \theta$ . Input Permuting does not permute the inputs, which results in entangled pose and textures. Input Warping, w/o. Input Permuting uses Thin Plate Spline transformation (TPS) to warp the source image, which can be viewed as a mild way of disentangling the pose and texture at the image-level. w/o. Pose Branch removes the pose branch in our method. w/o. small kernel uses only large kernel in the feature encoders, which should lead to loss of clothing details. w/o. large kernel uses only small kernel in the feature encoders. We train all these ablation models under the same configuration. As shown in Table 4, our complete model $\mathrm { P T ^ { 2 } }$ improves all the metrics, demonstrating the effectiveness of each component.
159
+
160
+ ![](images/d0b0dd4c6e3e1a06f09a713be2a3f23dc1c286ae23be5cde2033cf212a2fdb32.jpg)
161
+ Figure 6: Examples of garment replacement. The left column is the source image and the top row is reference image. All reference garments are marked with red bounding boxes.
162
+
163
+ Table 4: Ablations in DeepFashion. Compare with each ablation model, our full model $\mathrm { P T ^ { 2 } }$ that combines all the components improves the overall performance.
164
+
165
+ <table><tr><td>Method</td><td>FID↓</td><td>SSIM↑</td><td>LPIPS↓</td><td>IS个</td></tr><tr><td>Input Warping, w/o. Input Permuting</td><td>10.011</td><td>0.781±0.072</td><td>0.178±0.060</td><td>3.579±0.086</td></tr><tr><td>w/o. Input Permuting</td><td>10.279</td><td>0.780±0.069</td><td>0.169±0.059</td><td>3.525±0.095</td></tr><tr><td>w/o. Pose Branch</td><td>11.391</td><td>0.785±0.068</td><td>0.177±0.068</td><td>3.485±0.095</td></tr><tr><td>w/o. small kernel</td><td>8.905</td><td>0.782±0.067</td><td>0.170±0.060</td><td>3.442±0.119</td></tr><tr><td>w/o. large kernel</td><td>9.275</td><td>0.785±0.068</td><td>0.166±0.060</td><td>3.401±0.078</td></tr><tr><td>PT²(Ours)</td><td>8.338</td><td>0.795±0.067</td><td>0.158±0.059</td><td>3.469±0.098</td></tr></table>
166
+
167
+ # 5 CONLUSION
168
+
169
+ We propose $\mathrm { P T ^ { 2 } }$ , a self-driven human pose transfer method that permutes the textures at random and then reconstructs the image with dual branch attention to achieve image-level disentanglement and detail-preserving texture transfer. The introduced dual kernel encoder in the model gives different sizes of receptive fields, which can reduce the noise caused by permutation and thus recovers clothing details while aligning pose and texture. Extensive experiments on DeepFashion and Market-1501 shows that our model improves the image quality of self-driven approaches, where a user study shows our images are preferred over prior work in $72 \%$ of cases. Moreover, it obtains comparable objective and subjective results to most pose transfer methods supervised by paired data.
170
+
171
+ # 6 REPRODUCIBILITY STATEMENT
172
+
173
+ We include our source code in the Supplementary for other researchers to easily reproduce our results in this paper. The code has a README file with detailed instructions of running and evaluating our model. The training details and all the hyperparameters we used in our approach are provided in Appendix A.
174
+
175
+ # 7 ETHICS STATEMENT
176
+
177
+ The proposed method introduces image-level disentanglement of pose and texture, and provides a self-driven framework for the human pose transfer task. The results of this research could be broadly disseminated by exploiting the publicly available source code. The research is beneficial to the research community in that it builds a unified framework for self-driven pose transfer, and gives insights to other exemplar-guided image generation tasks. From the perspective of ethical considerations, our method has the potential to be used as a tool through the spread of misinformation, which echos concerns have been addressed in related machine learning research (Ramesh et al., 2022; Karnouskos, 2020). It is of utmost importance to follow certain policies and regulations against misinformation (Pennycook et al., 2020) when using these AI technologies, as well as highlight the importance of developing methods for detecting misinformation, including for media created using artificial intelligence (e.g., Wang et al. (2020); Tan et al. (2020)).
178
+
179
+ # REFERENCES
180
+
181
+ Badour Albahar, Jingwan Lu, Jimei Yang, Zhixin Shu, Eli Shechtman, and Jia-Bin Huang. Pose with style: Detail-preserving pose-guided image synthesis with conditional styleGAN. ACM Transactions on Graphics, 2021.
182
+ Z. Cao, G. Hidalgo Martinez, T. Simon, S. Wei, and Y. A. Sheikh. Openpose: Realtime multi-person 2d pose estimation using part affinity fields. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019.
183
+ Fabio M Carlucci, Antonio D’Innocente, Silvia Bucci, Barbara Caputo, and Tatiana Tommasi. Domain generalization by solving jigsaw puzzles. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019.
184
+ Aiyu Cui, Daniel McKee, and Svetlana Lazebnik. Dressing in order: Recurrent person image generation for pose transfer, virtual try-on and outfit editing. In Proceedings of the IEEE International Conference on Computer Vision, 2021.
185
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In IEEE conference on computer vision and pattern recognition, 2009.
186
+ Aysegul Dundar, Kevin J Shih, Animesh Garg, Robert Pottorf, Anrew Tao, and Bryan Catanzaro. Unsupervised disentanglement of pose, appearance and background from images and videos. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(7):3883–3894, 2021.
187
+ Patrick Esser, Ekaterina Sutter, and Bjorn Ommer. A variational u-net for conditional appearance ¨ and shape generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2018.
188
+ Chen Gao, Si Liu, Ran He, Shuicheng Yan, and Bo Li. Recapture as you want. arXiv preprint arXiv:2006.01435, 2020.
189
+ Artur Grigorev, Artem Sevastopolsky, Alexander Vakhitov, and Victor Lempitsky. Coordinate-based texture inpainting for pose-guided human image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019.
190
+ Rıza Alp Guler, Natalia Neverova, and Iasonas Kokkinos. Densepose: Dense human pose estimation ¨ in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018.
191
+
192
+ Xintong Han, Xiaojun Hu, Weilin Huang, and Matthew R Scott. Clothflow: A flow-based model for clothed person generation. In Proceedings of the IEEE International Conference on Computer Vision, 2019.
193
+
194
+ 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, 2017.
195
+
196
+ Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In Proceedings of the European conference on computer vision, 2016.
197
+
198
+ Stamatis Karnouskos. Artificial intelligence in digital media: The era of deepfakes. IEEE Transactions on Technology and Society, 1(3):138–147, 2020.
199
+
200
+ Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2019.
201
+
202
+ Jingyun Liang, Jiezhang Cao, Guolei Sun, Kai Zhang, Luc Van Gool, and Radu Timofte. Swinir: Image restoration using swin transformer. In Proceedings of the IEEE International Conference on Computer Vision, 2021.
203
+
204
+ Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ´ Proceedings of the European conference on computer vision, 2014.
205
+
206
+ Wen Liu, Zhixin Piao, Zhi Tu, Wenhan Luo, Lin Ma, and Shenghua Gao. Liquid warping GAN with attention: A unified framework for human image synthesis. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2021.
207
+
208
+ Ziwei Liu, Ping Luo, Shi Qiu, Xiaogang Wang, and Xiaoou Tang. Deepfashion: Powering robust clothes recognition and retrieval with rich annotations. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2016.
209
+
210
+ Francesco Locatello, Stefan Bauer, Mario Lucic, Gunnar Raetsch, Sylvain Gelly, Bernhard Scholkopf, and Olivier Bachem. Challenging common assumptions in the unsupervised learn- ¨ ing of disentangled representations. In international conference on machine learning, 2019.
211
+
212
+ Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2015.
213
+
214
+ Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
215
+
216
+ Zhengyao Lv, Xiaoming Li, Xin Li, Fu Li, Tianwei Lin, Dongliang He, and Wangmeng Zuo. Learning semantic person image generation by region-adaptive normalization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2021.
217
+
218
+ Liqian Ma, Qianru Sun, Stamatios Georgoulis, Luc Van Gool, Bernt Schiele, and Mario Fritz. Disentangled person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018.
219
+
220
+ Tianxiang Ma, Bo Peng, Wei Wang, and Jing Dong. MUST-GAN: Multi-level statistics transfer for self-driven person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2021.
221
+
222
+ Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In Proceedings of the European conference on computer vision, 2016.
223
+
224
+ Gordon Pennycook, Ziv Epstein, Mohsen Mosleh, Antonio Arechar, Dean Eckles, and David Rand. Understanding and reducing the spread of misinformation online. ACR North American Advances, 2020.
225
+
226
+ Albert Pumarola, Antonio Agudo, Alberto Sanfeliu, and Francesc Moreno-Noguer. Unsupervised person image synthesis in arbitrary poses. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018.
227
+
228
+ Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical textconditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 2022.
229
+
230
+ Yurui Ren, Xiaoming Yu, Junming Chen, Thomas H Li, and Ge Li. Deep image spatial transformation for person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2020.
231
+
232
+ Yurui Ren, Xiaoqing Fan, Ge Li, Shan Liu, and Thomas H Li. Neural texture extraction and distribution for controllable person image synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2022.
233
+
234
+ Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. In Advances in neural information processing systems, 2016.
235
+
236
+ Soubhik Sanyal, Alex Vorobiov, Timo Bolkart, Matthew Loper, Betty Mohler, Larry S Davis, Javier Romero, and Michael J Black. Learning realistic human reposing using cyclic self-supervision with 3d shape, pose, and appearance consistency. In Proceedings of the IEEE International Conference on Computer Vision, 2021.
237
+
238
+ Kripasindhu Sarkar, Dushyant Mehta, Weipeng Xu, Vladislav Golyanik, and Christian Theobalt. Neural re-rendering of humans from a single image. In Proceedings of the European conference on computer vision, 2020.
239
+
240
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations, 2014.
241
+
242
+ Sijie Song, Wei Zhang, Jiaying Liu, and Tao Mei. Unsupervised person image generation with semantic parsing transformation. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2019.
243
+
244
+ Reuben Tan, Bryan A. Plummer, and Kate Saenko. Detecting cross-modal inconsistency to defend against neural fake news. In Empirical Methods in Natural Language Processing (EMNLP), 2020.
245
+
246
+ Reuben Tan, Bryan Plummer, Kate Saenko, Hailin Jin, and Bryan Russell. Look at what i’m doing: Self-supervised spatial grounding of narrations in instructional videos. In Advances in Neural Information Processing Systems, 2021.
247
+
248
+ Hao Tang, Song Bai, Li Zhang, Philip HS Torr, and Nicu Sebe. XingGAN for person image generation. In Proceedings of the European Conference on Computer Vision, 2020.
249
+
250
+ Jilin Tang, Yi Yuan, Tianjia Shao, Yong Liu, Mengmeng Wang, and Kun Zhou. Structure-aware person image generation with pose decomposition and semantic correlation. In Proceedings of the AAAI Conference on Artificial Intelligence, 2021.
251
+
252
+ Sheng-Yu Wang, Oliver Wang, Richard Zhang, Andrew Owens, and Alexei A Efros. Cnn-generated images are surprisingly easy to spot...for now. In IEEE conference on computer vision and pattern recognition, 2020.
253
+
254
+ 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.
255
+
256
+ Zijian Wang, Xingqun Qi, Kun Yuan, and Muyi Sun. Self-supervised correlation mining network for person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2022.
257
+
258
+ Han Yang, Ruimao Zhang, Xiaobao Guo, Wei Liu, Wangmeng Zuo, and Ping Luo. Towards photorealistic virtual try-on by adaptively generating-preserving image content. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2020a.
259
+
260
+ Hongtao Yang, Tong Zhang, Wenbing Huang, Xuming He, and Fatih Porikli. Towards purely unsupervised disentanglement of appearance and shape for person images generation. In Proceedings of the International Workshop on Human-Centric Multimedia Analysis, 2020b.
261
+
262
+ Yasin Yaz, Chuan-Sheng Foo, Stefan Winkler, Kim-Hui Yap, Georgios Piliouras, Vijay Chandrasekhar, et al. The unusual effectiveness of averaging in GAN training. In International Conference on Learning Representations, 2019.
263
+
264
+ Ruiyun Yu, Xiaoqi Wang, and Xiaohui Xie. Vtnfp: An image-based virtual try-on network with body and clothing feature preservation. In Proceedings of the IEEE international conference on computer vision, 2019.
265
+
266
+ Jinsong Zhang, Kun Li, Yu-Kun Lai, and Jingyu Yang. Pise: Person image synthesis and editing with decoupled GAN. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2021a.
267
+
268
+ Pengze Zhang, Lingxiao Yang, Jian-Huang Lai, and Xiaohua Xie. Exploring dual-task correlation for pose guided person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2022.
269
+
270
+ Quan Zhang, Jianhuang Lai, Zhanxiang Feng, and Xiaohua Xie. Seeing like a human: Asynchronous learning with dynamic progressive refinement for person re-identification. IEEE Transactions on Image Processing, 31:352–365, 2021b.
271
+
272
+ Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2018.
273
+
274
+ Ziwei Zhang, Chi Su, Liang Zheng, and Xiaodong Xie. Correlating edge, pose with parsing. In IEEE Conference on Computer Vision and Pattern Recognition, 2020.
275
+
276
+ Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In Proceedings of the IEEE international conference on computer vision, 2015.
277
+
278
+ Xinyue Zhou, Mingyu Yin, Xinyuan Chen, Li Sun, Changxin Gao, and Qingli Li. Cross attention based style distribution for controllable person image synthesis. In Proceedings of the European conference on computer vision, 2022.
279
+
280
+ Zhen Zhu, Tengteng Huang, Baoguang Shi, Miao Yu, Bofei Wang, and Xiang Bai. Progressive pose attention transfer for person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019.
281
+
282
+ ![](images/8f9fa37bee3fc66c5cf0fbb73132b83b2eee491364c42c4f0fdbd957ba43295b.jpg)
283
+ Figure 7: Additional pose transfer examples on DeepFashion.
284
+
285
+ # A TRAINING DETAILS.
286
+
287
+ We use AdamW optimizer (Loshchilov & Hutter, 2019) for training with $\beta _ { 1 } = 0 . 5 , \beta _ { 2 } = 0 . 9 9 9 .$ . The initial learning rate is set to $1 0 ^ { - 3 }$ and decays to $2 \times 1 0 ^ { - 4 }$ after five starting epochs. The trade-off parameters are set to $\lambda _ { 1 } = 2 . 0 , \lambda _ { 2 } = 5 . 0 , \lambda _ { 3 } = 0 . 5$ , $\lambda _ { 4 } = 1 5 0$ in all experiments. The patch size is $1 6 \times 1 6$ for DeepFashion and $8 \times 8$ for Market-1501. To stabilize the training, we use the EMA strategy Yaz et al. (2019) to average the learned weights of the generator. Our pose representation is predicted by DensePose (Guler et al., 2018) and the parsing maps are obtained from CorrPM ¨ (Zhang et al., 2020). We found that the predicted dense pose in Market-1501 has poor quality as the image resolution is too low $( 1 2 8 \times 6 4 )$ for the DensePose model. Therefore, we use an offline super resolution model Liang et al. (2021) to upsample the Market-1501 images to $5 1 2 \times 2 5 6$ , get dense pose from these images, and then downsample the pose to the original image resolution $( 1 2 8 \times 6 4 )$ for our pose transfer task. We also add human keypoints predicted from OpenPose (Cao et al., 2019) as part of the pose representation to improve the accuracy of predicted posture on Market-1501.
288
+
289
+ # B DISCUSSIONS
290
+
291
+ Failure case analysis. Figure 7 provides several successful examples generated by the propsoed method on DeepFashion. However, one limitation of our model is that it relies on the segmentation map and DensePose prediction of the source image to obtain semantic and position information for the permuted textures. Thus, we found the accuracy of human parser and DensePose model greatly affects the transfer results. Figure 8 shows several failed examples due to this type of inaccuracy. In the first row, the coat wrapped around the dress was misrecognized as part of the dress in the parsing map, for which our generated back view incorrectly mixes up their textures. Similarly, the skirt in the second row was classified as shorts in the parsing map. As a result, our generator infers the occluded clothing piece as shorts in the front view. In the last row, the color of skirt is half-black and halfwhite because the skirt piece was not identified in the parsing map. More analysis on ablations. We present some visualized examples in Figure 9 to show the functionality of each component of our model. It’s clear that models with less perturbation of the input texture (i.e., w/o. Input Permuting and Input Warping) fail at large pose changes (e.g., from back view to front full view in the bottom row). Removing the pose branch (w/o. Pose Branch) causes loss of length information, resulting in extended dress in the second row. Without the small-kernel encoder (w/o. small kernel), the ablation model correctly transfers color and shape, but fails to recover complex clothing patterns and details in the third row. Without large kernel (w/o. large kernel), the model can correctly reconstruct clothes with singular color, but is less capable of transferring detailed textures (see the third and fourth row). To see if the large-kernel encoder is learning certain low-level information from permuted patches, we also tried replacing the inputs of the large-kernel encoder with heavily Gaussian blurred image without permutation. From the examples, we can see that images generated by $w .$ blur are much worse compared to the full model. This suggests that features learned by large-kernel encoder from the permuted image might have richer information than Gaussian blurred texture.
292
+
293
+ ![](images/294d67c7c1c181e865d3fb25958e69c9aad11960f1a0f5a572498ae4527c4d1b.jpg)
294
+ Figure 8: Failure cases in DeepFashion. Many failures are due to incorrect predictions of the source UV map and source parsing map.
295
+
296
+ ![](images/5f033af2f7020a2d905e7f6e9a262b37ccf0c222fb763e3f8c7f9c3d53c9a68c.jpg)
297
+ Figure 9: Generated images of ablations of our model. Each component of our model improves the transfer of shape information and detailed clothing patterns, resulting in our full model obtaining the best results.
298
+
299
+ ![](images/08b6d34fad50ea24aae456dddcde4a67878ecb6dd799a4fffd843f2bcb7f1f86.jpg)
300
+ Figure 10: Visualized feature map of the encoded texture features. The feature map is overlaid with the source image. The source image is downsampled to the resolution of the feature map. Each triplet includes a downsampled source image, the feature map from large-kernel encoder, and the feature map from small-kernel encoder. Red indicates higher value and blue means smaller value.
301
+
302
+ To further explore the differences of texture features learned by the large-kernel encoder and the small-kernel encoder, we sum up the encoded feature maps across all channels in the texture branch, and normalize their values to be in range [0, 1]. Then we downsample the image to the resolution of the feature map and overlay the normalized feature map with the downsampled source image. In Figure 10, each triplet includes the downsampled source image, the feature map from largekernel encoder, and the feature map from small-kernel encoder. Feature map given by large-kernel encoder (middle image in each triplet) appears to be much smoother than that of the small-kernel encoder (right image in each triplet). This suggests that large-kernel encoder might be learning coarse information from the clothing piece (e.g., color and shape), while small-kernel encoder is learning more fine-grained patterns (e.g., stripe and pleat).
parse/dev/upJ3vrFKaL/upJ3vrFKaL_content_list.json ADDED
@@ -0,0 +1,1579 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "COLLECTING THE PUZZLE PIECES: DISENTANGLEDSELF-DRIVEN HUMAN POSE TRANSFER BY PERMUT-ING TEXTURES",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 821,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 195,
20
+ 398,
21
+ 223
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 261,
32
+ 544,
33
+ 275
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Human pose transfer aims to synthesize a new view of a person under a given pose. Recent works achieve this via self-reconstruction, which disentangles pose and texture features from the person image, then combines the two features to reconstruct the person. Such feature-level disentanglement is a difficult and illdefined problem that could lead to loss of details and unwanted artifacts. In this paper, we propose a self-driven human pose transfer method that permutes the textures at random, then reconstructs the image with a dual branch attention to achieve image-level disentanglement and detail-preserving texture transfer. We find that compared with feature-level disentanglement, image-level disentanglement is more controllable and reliable. Furthermore, we introduce a dual kernel encoder that gives different sizes of receptive fields in order to reduce the noise caused by permutation and thus recover clothing details while aligning pose and textures. Extensive experiments on DeepFashion and Market-1501 shows that our model improves the quality of generated images in terms of FID, LPIPS and SSIM over other self-driven methods, and even outperforming some fully-supervised methods. A user study also shows that among self-driven approaches, images generated by our method are preferred in $72 \\%$ of cases over prior work. ",
40
+ "bbox": [
41
+ 233,
42
+ 290,
43
+ 764,
44
+ 526
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 553,
55
+ 336,
56
+ 568
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "The goal of human pose transfer is to change the pose of a person while preserving the person’s appearance and clothing textures. It has wide applications such as virtual try-on (Yang et al., 2020b; Cui et al., 2021; Yu et al., 2019), controllable person image manipulation (Cui et al., 2021; Liu et al., 2021) and person re-identification (Zhang et al., 2021b). Recent work has focused on using paired image data (i.e., two images of the same person before and after reposing) (Zhou et al., 2022; Zhang et al., 2022), but collecting such data can be very labor intensive. Although self-driven methods have been proposed to train pose transfer models without paired data (Ma et al., 2021; Song et al., 2019), there still remains two major challenges: how to disentangle texture and pose, and how to preserve texture details across changes in pose. As illustrated in Figure 1a, prior research attempts to achieve the pose and texture disentanglement at a feature level (Ma et al., 2018; Yang et al., 2020a; Ma et al., 2021; Wang et al., 2022). However, without direct supervision from pose-invariant textures, disentangling texture features from the person image while also preserving specific clothing details in the disentangled features is a difficult and ill-defined problem (Locatello et al., 2019). Small imbalances between pose and texture could leave obvious artifacts in the generated images. ",
63
+ "bbox": [
64
+ 174,
65
+ 584,
66
+ 825,
67
+ 777
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In this paper, we propose Pose Transfer by Permuting Textures $( \\mathrm { P T ^ { 2 } } )$ , a self-driven pose transfer model using image-level disentanglement to represent detailed clothing patterns in any target pose. As shown in Figure 1b, a key novelty is our input permutation function that disentangles the raw inputs of texture and pose. Our method does not need supervised pose-invariant textures because most pose information has been removed by the permutation. The input permutation function creates a disentangled texture sample space by randomly reordering the texture patches on the person such that the source pose cannot be recovered from the permuted textures. This approach is similar in spirit to self-supervised representation learning methods that use jigsaw puzzle solving to learn a good feature representation (Noroozi & Favaro, 2016; Carlucci et al., 2019), where the pretext task divides the image into large patches and attempts to infer their relative positions by using the inherent geometry information within each patch. However, we differ in that our goal is to sample relevant patches based on the target posture. We make the patch much smaller in order to remove the position information and thus disentangle pose and texture. Furthermore, we mask some of the textures to force the generator to infer occluded and unseen regions, such as t-shirt occluded by crossed arms. ",
74
+ "bbox": [
75
+ 174,
76
+ 785,
77
+ 825,
78
+ 924
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/3706d01db007440f12ea36da9627cdc9ea93e4c468362e3e2106b57386c9a536.jpg",
85
+ "image_caption": [
86
+ "Figure 1: Pose transfer methods trained without supervision extract disentangled texture and pose representations and then learn to reconstruct the original image. (a) Recent work uses separate encoders to disentangle texture and pose (Pumarola et al., 2018; Ma et al., 2018; 2021; Wang et al., 2022). However, pose information may still appear in the texture features, and without supervision, disentangling them is difficult (Locatello et al., 2019). (b) Our approach disentangles textures from pose by permuting the image patches, effectively eliminating pose information, which enables our approach to disentangle pose and texture features better than prior work. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 173,
91
+ 101,
92
+ 825,
93
+ 280
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "",
100
+ "bbox": [
101
+ 174,
102
+ 400,
103
+ 825,
104
+ 455
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "One challenge we face is that the permutation of textures causes loss of shape and relative position information, which has two significant consequences. First, the model cannot recognize different body parts and garments. For example, the generator could use texture from leggings to synthesize a top tank. Second, it makes the length of clothing items unknown because of lack of relative position of clothing pieces. The first issue can be easily solved by combining the person with a human parsing map to give a semantic identifier for each pixel (Ma et al., 2021). Whereas for the second problem, we need an additional sample space in the model that provides relative position information. This inspires us to add a pose branch, where we use the dense pose representation (Guler et al., 2018) as ¨ the sample space to provide position information for each pixel after permuting the textures. Each pixel value in the space indicates the position of that pixel under the texture coordinate system (Guler ¨ et al., 2018). In addition, we find that using different kernel sizes in the convolutional layers of our dual branch attention module provides a better representation for our task. ",
111
+ "bbox": [
112
+ 174,
113
+ 462,
114
+ 825,
115
+ 628
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Our main contributions are: ",
122
+ "bbox": [
123
+ 174,
124
+ 636,
125
+ 356,
126
+ 650
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "• We propose Pose Transfer by Permuting Textures $( \\mathrm { P T ^ { 2 } } )$ , a self-driven pose transfer model that utilizes input permutation to transfer clothing patterns to the target pose without using paired images for supervision. \n• The proposed pose branch in $\\mathrm { P T ^ { 2 } }$ provides relative geometry information for the permuted textures, which helps recover shape and length after pose transfer. In addition, different kernel sizes are introduced in the branch, which can reduce the noise caused by input permutation and thus preserve clothing details while aligning pose and textures. \n• Extensive experiments on DeepFashion (Liu et al., 2016) and Market-1501 (Zheng et al., 2015) show that $\\mathrm { P \\bar { T } ^ { 2 } }$ significantly improves the image quality of self-driven approaches. A user study reports that our method are preferred in $72 \\%$ of cases over the state-of-the-art. ",
133
+ "bbox": [
134
+ 173,
135
+ 657,
136
+ 825,
137
+ 796
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "2 RELATED WORK ",
144
+ "text_level": 1,
145
+ "bbox": [
146
+ 176,
147
+ 820,
148
+ 344,
149
+ 835
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "Pose transfer with paired images. Methods trained with paired images aim to learn the complex non-rigid deformation of clothing items. In (Zhu et al., 2019; Zhang et al., 2022; Ren et al., 2022; Gao et al., 2020), this transformation is learned via soft attention that aggregates source image features with weighted sampling. Zhang et al. (2021a); Lv et al. (2021) further use semantic parsing maps as guidance to control the style of each body part. The major difficulty in such feature-level attention is that clothing details could be washed out in lower-resolution feature maps. To preserve these details after pose transfer, flow-based methods haven been proposed to approximate a dense flow field from the source to the target person. Han et al. (2019) introduced a pyramid feature network that outputs a pixel-level flow filed. Tang et al. (2021); Ren et al. (2020) further combined soft attention with dense flow to learn more accurate estimations. However, since the learned flow can only copy existing pixels in the source image to the target, it might fail at inferring occluded and unseen parts of the person. Grigorev et al. (2019); Sarkar et al. (2020); Albahar et al. (2021) explored inpainting 2D partial texture to 3D full texture in the UV space, and then projecting it back to the 2D pose. Although these methods can produce high-quality person images, they all require strong supervision from paired data, which might be difficult to collect in some real-world scenarios. ",
156
+ "bbox": [
157
+ 174,
158
+ 854,
159
+ 825,
160
+ 924
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "",
167
+ "bbox": [
168
+ 174,
169
+ 103,
170
+ 825,
171
+ 242
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Pose transfer with unpaired images. In a self-driven setting where paired data is absent, it is more difficult to transfer the pose without losing texture details. Without supervision, the generated images tend to have repeated texture patterns and edge blurring (Wang et al., 2022). Prior work has addressed this problem by disentangling the texture and posture at a feature level. Early attempts produced poor quality images for large pose deformations (Pumarola et al., 2018; Esser et al., 2018; Ma et al., 2018). Song et al. (2019) introduced a generated target parsing map to a cycle-GAN pose transfer model, which requires paired segmentation maps for training the human parsing model. Sanyal et al. (2021) presents a 3D based reposing approach with appearance visibility inference. Wang et al. (2022) used part-wise encoder to learn texture features that are less correlated with pose, where global pose information can still be inferred from the texture features. The model in (Ma et al., 2021) first computes region-wise image features, and then takes their mean and variance as the texture features to be integrated with the pose representation. This helps erase the pose information in the texture features, but, as we show, it may miss clothing details. In contrast to these methods, our approach disentangles the texture at an image-level by permutation, and uses a dual kernel encoder with dual branch attention to transfer detailed clothing patterns to the target pose. ",
178
+ "bbox": [
179
+ 174,
180
+ 250,
181
+ 825,
182
+ 458
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "3 SELF-DRIVEN POSE TRANSFER BY PERMUTING TEXTURES $( \\mathrm { P T ^ { 2 } } )$ ",
189
+ "text_level": 1,
190
+ "bbox": [
191
+ 174,
192
+ 478,
193
+ 750,
194
+ 494
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "Let $I _ { s }$ be the source image with posture $P _ { s }$ . Our goal is to synthesize a new view $I _ { t }$ of the same person in $I _ { s }$ and wearing the same clothes in a target posture $P _ { t }$ . Models requiring paired data use the target pose $P _ { t }$ and the target image $I _ { t }$ for training, but our approach needs only information derived from the source image. Specifically, the target pose/image in training is identical to the source pose/image. In inference, replacing the target pose with a different one enables pose transfer. ",
201
+ "bbox": [
202
+ 174,
203
+ 510,
204
+ 825,
205
+ 580
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "$\\mathrm { P T ^ { 2 } }$ contains a pose transfer network (Sec. 3.1) that synthesizes a new view of the person in its target pose, and a background inpainting network that infers its full background (Sec. 3.2). The generated person and its full background are combined to create the final reconstructed image. ",
212
+ "bbox": [
213
+ 176,
214
+ 587,
215
+ 825,
216
+ 628
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "3.1 POSE TRANSFER NETWORK ",
223
+ "text_level": 1,
224
+ "bbox": [
225
+ 176,
226
+ 647,
227
+ 406,
228
+ 661
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "The objective of the pose transfer network is to take the foreground person in the source image and generate a new view of them in a different pose. Figure 2 gives the overall architecture, which contains two branches: a pose branch that learns the geometric transformation function from pose $P _ { s }$ to pose $P _ { t }$ , and a texture branch that learns to transfer the textures of the person $E _ { s }$ to pose $P _ { t }$ . The permuted inputs (Sec. 3.1.1) from the two branches are first encoded with dual kernel encoder (Sec. 3.1.2), and then merged in a dual branch attention module (Sec. 3.1.3) to be decoded into the generated person $\\hat { E } _ { d }$ and its segmentation $S$ . ",
235
+ "bbox": [
236
+ 174,
237
+ 672,
238
+ 825,
239
+ 772
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "3.1.1 INPUT PERMUTATION ",
246
+ "text_level": 1,
247
+ "bbox": [
248
+ 176,
249
+ 787,
250
+ 379,
251
+ 803
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "Inputs to the Texture Branch. To guide the texture transfer with a posture in a self-driven way, we first need to disentangle the pose and textures in the image. The posture can be derived by a DensePose model (Guler et al., 2018) pretrained on COCO (Lin et al., 2014), which gives a 2D UV ¨ coordinate representation $P _ { s }$ . However, the texture representation should not simply be the source person $E _ { s }$ itself, as it is obviously entangled with posture. To erase the pose information from $E _ { s }$ , we create a texture sample space by dividing the image into $k \\times k$ squares, referred to as “patches,” and then shuffling their locations. Intuitively, when the patch size $k$ is sufficiently small, the original posture cannot easily be retrieved from the permutation. Additionaly, $20 \\%$ of the patches are masked to encourage the model to learn occluded regions. Formally, let RandMask $( \\cdot )$ be the input permuting function. The inputs of the texture attention branch become $[ \\tilde { E } _ { s } ; \\tilde { M } ] = \\mathrm { R a n d M a s k } ( [ E _ { s } ; M ] , m _ { t } )$ , where $[ ; ]$ means concatenation and $m _ { t }$ is the masking rate. We set $m _ { t } = 0 . 2$ in our experiments. The permuted tetxures $[ \\tilde { E } _ { s } ; \\tilde { M } ]$ are given as inputs to the dual-kernel texture encoder (Sec. 3.1.2). ",
258
+ "bbox": [
259
+ 174,
260
+ 811,
261
+ 825,
262
+ 924
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "image",
268
+ "img_path": "images/303bdb570b4412b24e01bef00cd95562dd32683df6bd9f9d6596ac4a3c269dbe.jpg",
269
+ "image_caption": [
270
+ "Figure 2: The pose transfer network in $\\mathrm { P T ^ { 2 } }$ . During training, the target pose $P _ { t }$ is the same as the source pose $P _ { s }$ . The network takes the source person $E _ { s }$ , source parsing map $M$ and source pose $P _ { s }$ as inputs. In the pose branch and texture branch, the inputs are first permuted (Sec. 3.1.1) to create the corresponding sample space, which is encoded with dual kernel encoders (Sec. 3.1.2). Then the encoded features are sampled in a dual branch attention module (Sec. 3.1.3) to be decoded into the generated person $\\hat { E } _ { s }$ and its segmentation $S$ . The output of the pose transfer network is combined with the output of the background inpainting network (Sec. 3.2) to produce the final image. "
271
+ ],
272
+ "image_footnote": [],
273
+ "bbox": [
274
+ 176,
275
+ 98,
276
+ 826,
277
+ 311
278
+ ],
279
+ "page_idx": 3
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "",
284
+ "bbox": [
285
+ 173,
286
+ 446,
287
+ 825,
288
+ 508
289
+ ],
290
+ "page_idx": 3
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "Inputs to the Pose Branch. While prior work only uses a texture branch to transfer texture to the target pose (Pumarola et al., 2018; Ma et al., 2018; 2021; Wang et al., 2022), we propose a pose branch that provides relative geometry information for the permuted textures, which helps recover shape and length after pose transfer. To learn a powerful pose transformation function that supports large pose variations, the source pose in this branch is permuted the same way as the textures. In addition, we mask $50 \\%$ of the source pose representation to force the model to learn the inherit symmetry in human body. The inputs to the pose branch become $[ \\tilde { P } _ { s } ; \\tilde { M } ] = \\mathrm { R a n d M a s k } ( [ P _ { s } ; M ] , \\stackrel { . . } { m } _ { p } )$ , where $m _ { p } = 0 . 5$ . Note that the inputs of the texture and pose branches are permuted the same way so they are spatially aligned in the dual branch attention module (see Sec. 3.1.3). The permuted pose representations $[ \\tilde { P _ { s } } ; \\tilde { M } ]$ are given as inputs to the dual-kernel pose encoder (Sec. 3.1.2). ",
295
+ "bbox": [
296
+ 173,
297
+ 515,
298
+ 825,
299
+ 657
300
+ ],
301
+ "page_idx": 3
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "3.1.2 DUAL KERNEL ENCODER ",
306
+ "text_level": 1,
307
+ "bbox": [
308
+ 176,
309
+ 685,
310
+ 405,
311
+ 700
312
+ ],
313
+ "page_idx": 3
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "Following (Pumarola et al., 2018; Ma et al., 2018; 2021; Wang et al., 2022), we utilize separate encoders to learn both the texture and the pose information. However, in addition to providing permuted inputs from Sec. 3.1.1 to help further disentangle texture from pose, another way our approach differs is that we use multiple kernel sizes in the encoder’s convolutional layers. More formally, the texture/pose encoder learns a multi-dimensional feature map $F \\in \\mathbb { R } ^ { H \\times W \\times d }$ from the permuted texture/posture, where each vector $v \\in \\mathbb { R } ^ { d }$ in the feature map has a certain receptive field in the image. Let $l$ denote the length of the receptive field and $s$ be the stride of $F$ (both are measured by number of pixels in the image). Generally, larger receptive field is capable of learning more diverse features, and thus $l$ is usually much larger than $s$ . However, for a receptive field that crosses the boundary between two permuted image patches, the pixels within the field could be spatially faraway and irrelevant in the original image. In the left picture of Figure 3, the two black squares denote two adjacent receptive fields. While the left square lying within an image patch are seeing a consistent pattern (e.g., face), the right square crossing the boundary are seeing two distinct patterns (e.g., face and shoes). This could introduce high volume of noise to the feature vector $v$ , preventing the model from recognizing true clothing patterns. ",
318
+ "bbox": [
319
+ 174,
320
+ 715,
321
+ 825,
322
+ 924
323
+ ],
324
+ "page_idx": 3
325
+ },
326
+ {
327
+ "type": "image",
328
+ "img_path": "images/890e385af89e0320c8b5709a4c58db2a8edea42c1eb582bf4a556892ef415682.jpg",
329
+ "image_caption": [
330
+ "Figure 3: Illustration of the receptive field in the large-kernel encoder (left) and small-kernel encoder (right). The kernel size $l$ is reduced to avoid overlap between receptive fields (see Sec. 3.1.2). ",
331
+ "Figure 4: Dual branch attention module in Sec. 3.1.3. The top flow is PAM and the bottom flow is TAM. Res represents a residual layer. The cross-attention mechanism aligns the permuted texture with the target pose. "
332
+ ],
333
+ "image_footnote": [],
334
+ "bbox": [
335
+ 169,
336
+ 99,
337
+ 820,
338
+ 196
339
+ ],
340
+ "page_idx": 4
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "To solve the above issue, we introduce an additional pose encoder with reduced kernel size such that $l \\ = \\ s$ , which can be regarded as a Multi Layer Perceptron over image patches. We select our kernel size such that the kernel does not cross the boundary of the permuted inputs from Sec. 3.1.1. As shown in the right picture of Figure 3, this design avoids the overlap between receptive fields, enabling the convolutional kernel to learn a consistent pattern within its own receptive field. Note that large kernel size is still necessary as it has more parameters and larger receptive filed for learning larger image patterns. Therefore, by combining encoders with a large and small kernel sizes our model is capable of learning more diverse features. The outputs of the dual kernel encoders in both texture branch and pose branch are fed to the dual branch attention module in Sec. 3.1.3. ",
345
+ "bbox": [
346
+ 173,
347
+ 289,
348
+ 825,
349
+ 415
350
+ ],
351
+ "page_idx": 4
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "3.1.3 DUAL BRANCH ATTENTION ",
356
+ "text_level": 1,
357
+ "bbox": [
358
+ 176,
359
+ 434,
360
+ 421,
361
+ 449
362
+ ],
363
+ "page_idx": 4
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "We use a cross-attention transformer (Tang et al., 2020; Tan et al., 2021; Zhang et al., 2022) to align texture and pose features. Specifically, we use a Pose Attention Module (PAM) for the pose branch and a Texture Attention Module (TAM) for the texture branch. Let $F _ { s } ^ { p l } , F _ { s } ^ { p s }$ represent the output feature map of the large-kernel pose encoder and the small-kernel pose encoder in the pose branch, respectively. Similarly, $F _ { s } ^ { t l } , F _ { s } ^ { t { \\bar { s } } }$ are the encoded features from the texture encoders in the texture branch. $T _ { 1 }$ is the feature map of the target pose $P _ { t }$ encoded by the target pose encoder, which is implemented with six convolutional layers. As shown in Figure 4, both PAM and TAM are composed of three cross-attention vision transformers formulated as Attention $\\begin{array} { r } { ( Q , K , V ) = \\mathrm { s o f t m a x } ( \\frac { Q K ^ { \\hat { T } } } { \\sqrt { d } } ) \\cdot V } \\end{array}$ . With cross-attention the model can sample textures based on the target pose to generate a person image. In the first two transformer layers, the pose attention in the pose branch is learned from the correlation between the source pose and the target pose, which is computed as: ",
368
+ "bbox": [
369
+ 173,
370
+ 460,
371
+ 825,
372
+ 621
373
+ ],
374
+ "page_idx": 4
375
+ },
376
+ {
377
+ "type": "equation",
378
+ "img_path": "images/08cb15d9400dde602f18cb68602ce24e8d30c496e9f60f0efdbac47dde647bcc.jpg",
379
+ "text": "$$\nQ = W _ { i } ^ { p q } T _ { i } , K = W _ { i } ^ { p k } F _ { s } ^ { p l } , V = W _ { i } ^ { p v } F _ { s } ^ { t l } , i = 1 , 2 .\n$$",
380
+ "text_format": "latex",
381
+ "bbox": [
382
+ 325,
383
+ 631,
384
+ 671,
385
+ 651
386
+ ],
387
+ "page_idx": 4
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "Here, $W _ { i } ^ { p q } , W _ { i } ^ { p k } , W _ { i } ^ { p v }$ are learnable projection matrices. Similarly, the texture attention in the texture branch is formulated as the correlation between the texture and the target pose: ",
392
+ "bbox": [
393
+ 173,
394
+ 662,
395
+ 826,
396
+ 693
397
+ ],
398
+ "page_idx": 4
399
+ },
400
+ {
401
+ "type": "equation",
402
+ "img_path": "images/64f513c3a437971b397d218c36bcf61f801cf3dab242f1475cd24e00fa40cf53.jpg",
403
+ "text": "$$\nQ = W _ { i } ^ { t q } T _ { i } , K = W _ { i } ^ { t k } F _ { s } ^ { t l } , V = W _ { i } ^ { t v } F _ { s } ^ { t l } , i = 1 , 2 .\n$$",
404
+ "text_format": "latex",
405
+ "bbox": [
406
+ 328,
407
+ 702,
408
+ 668,
409
+ 722
410
+ ],
411
+ "page_idx": 4
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "After each transformer layer, a residual layer is appended as in Figure 4. A random noise vector $z$ is injected to the residual layer as the affine transformation parameters of the feature map $T _ { i }$ to prevent mode collapse (Karras et al., 2019). ",
416
+ "bbox": [
417
+ 176,
418
+ 739,
419
+ 823,
420
+ 782
421
+ ],
422
+ "page_idx": 4
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "In the last transformer layer, wby small-kernel encoders (i.e., $F _ { s } ^ { p l } , F _ { s } ^ { t l }$ in the above equations with features produced to reconstruct more detailed information. The $F _ { s } ^ { p s } , F _ { s } ^ { t s } )$ \noutput feature map $T$ of the last transformer layer is then fed to the decoder, where $T$ is gradually \nupsampled to the target person $\\hat { E } _ { s }$ and its segmentation mask $S$ . ",
427
+ "bbox": [
428
+ 174,
429
+ 787,
430
+ 825,
431
+ 848
432
+ ],
433
+ "page_idx": 4
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "PAM in the dual branch attention module learns geometric transformation between different postures, and TAM samples the given textures based on the target pose. Fusing the two source of information provides a more accurate match between the given pose and textures. By filling in more clothing details that are learned through small kernels, our pose transfer network can then faithfully recover the appearance of clothing items after pose transfer. ",
438
+ "bbox": [
439
+ 174,
440
+ 853,
441
+ 823,
442
+ 924
443
+ ],
444
+ "page_idx": 4
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "3.2 BACKGROUND INPAINTING NETWORK",
449
+ "text_level": 1,
450
+ "bbox": [
451
+ 176,
452
+ 103,
453
+ 478,
454
+ 117
455
+ ],
456
+ "page_idx": 5
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "As in (Dundar et al., 2021; Liu et al., 2021), we use a separate background inpainting network, implemented using UNet (Long et al., 2015), to infer the background pixels of the masked foreground region. However, we found if we only mask out the foreground segmentation $S$ , the model would ignore the unknown background in the mask and reconstruct only known pixels during inference. This is because the background area is always visible in the source image in self-supervised training, so the network does not learn how to infer missing areas. Therefore, we expand the mask to the whole bounding box of the detected person in order to create invisible background areas during training. Let $\\hat { B }$ be the inpainted background. Given the generated person $\\hat { E } _ { s }$ and its segmentation mask $S$ produced by the pose transfer network, the final reconstructed image is: $\\hat { I } _ { s } = \\dot { S } \\odot \\dot { E } _ { s } + ( 1 - S ) \\odot \\hat { B }$ . ",
461
+ "bbox": [
462
+ 173,
463
+ 128,
464
+ 825,
465
+ 260
466
+ ],
467
+ "page_idx": 5
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "3.3 LOSS FUNCTIONS ",
472
+ "text_level": 1,
473
+ "bbox": [
474
+ 174,
475
+ 275,
476
+ 338,
477
+ 290
478
+ ],
479
+ "page_idx": 5
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "We train our model using an adversarial loss that can be written as: ",
484
+ "bbox": [
485
+ 176,
486
+ 301,
487
+ 612,
488
+ 315
489
+ ],
490
+ "page_idx": 5
491
+ },
492
+ {
493
+ "type": "equation",
494
+ "img_path": "images/a6b0e87b45e59a3c85875f130f6c462b6e083a17696e279b33183d0fd1455d08.jpg",
495
+ "text": "$$\nL _ { a d v } = D ( \\hat { I } _ { s } ) ^ { 2 } + ( 1 - D ( I _ { s } ) ) ^ { 2 } + D _ { p } ( [ \\hat { I } _ { s } ; P _ { s } ] ) ^ { 2 } + ( 1 - D _ { p } ( [ I _ { s } ; P _ { s } ] ) ) ^ { 2 } .\n$$",
496
+ "text_format": "latex",
497
+ "bbox": [
498
+ 259,
499
+ 320,
500
+ 738,
501
+ 340
502
+ ],
503
+ "page_idx": 5
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "where $D$ and $D _ { p }$ represent different discriminators. $D$ penalizes the distribution difference between the synthesized image $\\hat { I } _ { s }$ and the ground truth $I _ { s }$ . $D _ { p }$ evaluates that if the posture in $\\hat { I } _ { s }$ matches the source pose $P _ { s }$ . To ensure correctness of our image generation, we use three different loss functions that capture different desired properties. The first is a simple reconstruction loss, ",
508
+ "bbox": [
509
+ 174,
510
+ 344,
511
+ 825,
512
+ 404
513
+ ],
514
+ "page_idx": 5
515
+ },
516
+ {
517
+ "type": "equation",
518
+ "img_path": "images/a99ab5c7793905ccbede912f31060a091cb1fd94f7467dc0b717dda3b0954e66.jpg",
519
+ "text": "$$\nL _ { r e c } = | | \\hat { I } _ { s } - I _ { s } | | _ { 1 } .\n$$",
520
+ "text_format": "latex",
521
+ "bbox": [
522
+ 431,
523
+ 407,
524
+ 566,
525
+ 428
526
+ ],
527
+ "page_idx": 5
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "In addition, we use a perceptual loss (Johnson et al., 2016) that encourages both the ground truth and reconstructed image have similar semantic properties, ",
532
+ "bbox": [
533
+ 169,
534
+ 431,
535
+ 823,
536
+ 460
537
+ ],
538
+ "page_idx": 5
539
+ },
540
+ {
541
+ "type": "equation",
542
+ "img_path": "images/cc7a2545ec839453996c650d75d65216a62fef8e225268a0e71fc45cb872565b.jpg",
543
+ "text": "$$\nL _ { p e r c } = \\sum _ { i } | | \\phi ^ { i } ( \\hat { I } _ { s } ) - \\phi ^ { i } ( I _ { s } ) | | _ { 1 } ,\n$$",
544
+ "text_format": "latex",
545
+ "bbox": [
546
+ 387,
547
+ 464,
548
+ 609,
549
+ 497
550
+ ],
551
+ "page_idx": 5
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "where $\\phi ^ { i }$ is the ith layer of a VGG model (Simonyan & Zisserman, 2014) pretrained on ImageNet Deng et al. (2009). Finally, we use a style loss that penalizes discrepancies on colors and textures using the Gram matrix $\\mathbb { G } ( \\cdot )$ of the features, ",
556
+ "bbox": [
557
+ 176,
558
+ 502,
559
+ 823,
560
+ 546
561
+ ],
562
+ "page_idx": 5
563
+ },
564
+ {
565
+ "type": "equation",
566
+ "img_path": "images/f85a29ce89abb51d501722a3aee160b4680fdabb446d4cae90c7d626610ad0e7.jpg",
567
+ "text": "$$\nL _ { s t y l e } = \\sum _ { i } | | \\mathbb { G } ( \\phi ^ { i } ( \\hat { I } _ { s } ) ) - \\mathbb { G } ( \\phi ^ { i } ( I _ { s } ) ) | | _ { 1 } .\n$$",
568
+ "text_format": "latex",
569
+ "bbox": [
570
+ 359,
571
+ 550,
572
+ 637,
573
+ 584
574
+ ],
575
+ "page_idx": 5
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "Thus, our total loss can be written as, ",
580
+ "bbox": [
581
+ 176,
582
+ 588,
583
+ 419,
584
+ 602
585
+ ],
586
+ "page_idx": 5
587
+ },
588
+ {
589
+ "type": "equation",
590
+ "img_path": "images/9d62c4dfc2bb8aaaf25c0b0016ea8309b39163f122ed856b8cdba6da101e638a.jpg",
591
+ "text": "$$\nL _ { t o t a l } = \\lambda _ { 1 } L _ { a d v } + \\lambda _ { 2 } L _ { r e c } + \\lambda _ { 3 } L _ { p e r c } + \\lambda _ { 4 } L _ { s t y l e } .\n$$",
592
+ "text_format": "latex",
593
+ "bbox": [
594
+ 330,
595
+ 607,
596
+ 668,
597
+ 625
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "where $\\lambda _ { 1 - 4 }$ are scalar hyperparameters. Additional training details are provided in Appendix A. ",
604
+ "bbox": [
605
+ 171,
606
+ 628,
607
+ 803,
608
+ 643
609
+ ],
610
+ "page_idx": 5
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "4 EXPERIMENTS ",
615
+ "text_level": 1,
616
+ "bbox": [
617
+ 174,
618
+ 662,
619
+ 326,
620
+ 679
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "Datasets. We evaluate our proposed model on two benchmarks: DeepFashion (Liu et al., 2016) and Market1501 (Zheng et al., 2015). DeepFashion contains 52,712 high-quality images with a clean background. Market-1501 has 32,668 low-resolution images with various lighting conditions and a noisy background. Following Zhang et al. (2022); Wang et al. (2022), we select 8,570 test pairs with a resolution of $2 5 6 \\times 2 5 6$ on DeepFashion, and 12,000 test pairs with a resolution of $1 2 8 \\times 6 4$ on Market-1501. As in prior self-driven methods (Ma et al., 2021; Wang et al., 2022), we use 37,332 training images for DeepFashion and 12,112 training images for Market-1501. ",
627
+ "bbox": [
628
+ 173,
629
+ 694,
630
+ 825,
631
+ 792
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "Metrics. Following (Ma et al., 2021; Wang et al., 2022), we use Structural Similarity Index Measure (SSIM) (Wang et al., 2004), Frechet Inception Distance (FID) (Heusel et al., 2017) , Learned Perceptual Image Patch Similarity (LPIPS) (Zhang et al., 2018) and Inception Score (IS) (Salimans et al., 2016) to evaluate the quality of the synthesized images. Among these metrics, SSIM measures structural similarity in the pixel space. FID computes Wasserstein-2 distance between two distributions. LPIPS evaluates perceptual similarity in deep network’s feature space. We use the default AlexNet as LPIPS’s backbone. IS assesses the quality of images generated by adversarial training. On Market-1501, we add Masked-SSIM and Masked-LPIPS computed on the target person region to exclude the influence of the irrelevant background. ",
638
+ "bbox": [
639
+ 173,
640
+ 797,
641
+ 825,
642
+ 924
643
+ ],
644
+ "page_idx": 5
645
+ },
646
+ {
647
+ "type": "table",
648
+ "img_path": "images/5bdfd0520598abd4b4df234e8fce397485d47fd752f6ea48fc4d05e09645cc76.jpg",
649
+ "table_caption": [
650
+ "Table 1: Pose transfer results for $2 5 6 \\times 2 5 6$ resolution images on DeepFashion. All results for prior work are taken from the original papers or produced with the author’s source code. "
651
+ ],
652
+ "table_footnote": [],
653
+ "table_body": "<table><tr><td>Method</td><td>FID↓</td><td>SSIM↑</td><td>LPIPS↓</td><td>IS↑</td></tr><tr><td>Supervised by paired images</td><td></td><td></td><td></td><td></td></tr><tr><td>PATN (Zhu et al., 2019)</td><td>24.071</td><td>0.770</td><td>0.299</td><td>3.141</td></tr><tr><td>GFLA (Ren et al., 2020)</td><td>10.573</td><td>0.707</td><td>0.234</td><td>3.635</td></tr><tr><td>PISE (Zhang et al., 2021a)</td><td>13.610</td><td>-</td><td>0.206</td><td>1</td></tr><tr><td>SPIG (Lv et al., 2021)</td><td>12.243</td><td>0.782</td><td>0.211</td><td>=</td></tr><tr><td>DPTN (Zhang et al.,2022)</td><td>11.466</td><td>0.778</td><td>0.196</td><td></td></tr><tr><td>CASD (Zhou et al., 2022)</td><td>11.373</td><td>0.725</td><td>0.194</td><td></td></tr><tr><td>NTED (Ren et al., 2022)</td><td>6.786</td><td>0.808</td><td>0.133</td><td>3.264</td></tr><tr><td>No paired images</td><td></td><td></td><td></td><td></td></tr><tr><td>VU-Net (Esser et al.,2018)</td><td>23.580</td><td>0.786</td><td>0.321</td><td>3.087</td></tr><tr><td>E2E (Song et al., 2019)</td><td>29.900</td><td>0.736</td><td>0.238</td><td>3.441</td></tr><tr><td>DPIG (Ma et al., 2018)</td><td>48.200</td><td>0.614</td><td>0.284</td><td>3.228</td></tr><tr><td>MUST (Ma et al.,2021)</td><td>15.902</td><td>0.742</td><td>-</td><td>3.692</td></tr><tr><td>SCM-Net Wang et al. (2022)</td><td>12.180</td><td>0.751</td><td>0.182</td><td>3.632</td></tr><tr><td>PT²(Ours)</td><td>8.338</td><td>0.795</td><td>0.158</td><td>3.469</td></tr></table>",
654
+ "bbox": [
655
+ 254,
656
+ 133,
657
+ 738,
658
+ 378
659
+ ],
660
+ "page_idx": 6
661
+ },
662
+ {
663
+ "type": "table",
664
+ "img_path": "images/ab86d464938c83918c6ccd01ef07c8bea675fc0a05fd914d8e54aea78c389b45.jpg",
665
+ "table_caption": [
666
+ "Table 2: Pose transfer results for $1 2 8 \\times 6 4$ resolution images on Market-1501. All results for prior work are taken from the original papers or produced with the author’s source code. "
667
+ ],
668
+ "table_footnote": [],
669
+ "table_body": "<table><tr><td>Method</td><td>FID↓</td><td>SSIM↑</td><td>M-SSIM↑</td><td>LPIPS↓</td><td>M-LPIPS↓</td><td>IS↑</td></tr><tr><td>Supervised by paired images</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>PATN (Zhu et al., 2019)</td><td>22.657</td><td>0.311</td><td>0.811</td><td>0.320</td><td>0.159</td><td></td></tr><tr><td>GFLA (Ren et al.,2020)</td><td>19.751</td><td>0.281</td><td>0.796</td><td>0.282</td><td>0.148</td><td></td></tr><tr><td>SPIG (Lv et al., 2021)</td><td>23.331</td><td>0.315</td><td>0.818</td><td>0.278</td><td>0.139</td><td></td></tr><tr><td>DPTN (Zhang et al., 2022)</td><td>18.995</td><td>0.285</td><td>1</td><td>0.271</td><td>1</td><td></td></tr><tr><td> No paired images</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>PT²(Ours)</td><td>17.389</td><td>0.280</td><td>0.820</td><td>0.314</td><td>0.122</td><td>2.789</td></tr></table>",
670
+ "bbox": [
671
+ 173,
672
+ 416,
673
+ 828,
674
+ 551
675
+ ],
676
+ "page_idx": 6
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "4.1 QUANTITATIVE RESULTS ",
681
+ "text_level": 1,
682
+ "bbox": [
683
+ 174,
684
+ 564,
685
+ 388,
686
+ 578
687
+ ],
688
+ "page_idx": 6
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "Table 1 compares methods on the pose transfer task using DeepFashion, where our approach outperforms most methods on FID, SSIM, and LPIP by a large margin. For example, we improve FID by 4 points over the state-of-the-art. Notably, our model, which requires no paired training data, also achieves better performance than most supervised methods trained with paired data. Similar behavior is seen on Market-1501 (Table 2), where our self-driven $\\mathrm { P T ^ { 2 } }$ gains in Masked-SSIM and Masked-LPIPS over supervised methods. However, we note that we do perform worse according to SSIM and LPIPS, which is computed over the entire image rather than just the target person region. ",
693
+ "bbox": [
694
+ 174,
695
+ 589,
696
+ 825,
697
+ 688
698
+ ],
699
+ "page_idx": 6
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "To investigate the reason behind the discrepancy when we use masked regions for evaluation, we computed the SSIM scores on different body parts of the person. The average scores for background, arms, legs, clothes and head for $\\mathrm { P T ^ { 2 } }$ are: 0.237, 0.263, 0.283, 0.323, 0.337, respectively. The lowest SSIM is on the background because the dataset is collected from surveillance videos, where the background can change drastically in different time frames. This violates our assumption that the background does not change, explaining the relatively poor performance. That said, since our goal is pose transfer, the improved performance using M-SSIM and M-LPIPS demonstrates we are more successful than even the supervised methods on Market-1501 at that task. ",
704
+ "bbox": [
705
+ 174,
706
+ 694,
707
+ 825,
708
+ 805
709
+ ],
710
+ "page_idx": 6
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "User Study. To verify the quality of generated images, we also conducted a human evaluation on DeepFashion using Amazon Mechanical Turk. We collected 3 judgements for 50 images (150 total). Each worker was presented 3 pictures: the true image, a $\\mathrm { P T ^ { 2 } }$ generated image, and a image generated by a method from prior work. The worker was asked to pick a picture that looks most similar to the true image. Table 3 shows that among self-driven methods, more than $72 \\%$ workers believe our method achieves higher fidelity in the generated images. Compared with approaches supervised by paired images, our method achieves comparable performance with an average of over $62 \\%$ user preference, demonstrating the effectiveness of our proposed approach. ",
715
+ "bbox": [
716
+ 174,
717
+ 811,
718
+ 825,
719
+ 924
720
+ ],
721
+ "page_idx": 6
722
+ },
723
+ {
724
+ "type": "image",
725
+ "img_path": "images/630f609496292089e9c22e4a445158b42ae2ba38d7e278fdbe3a3729dc014820.jpg",
726
+ "image_caption": [
727
+ "Figure 5: Qualitative pose transfer results on DeepFashion (left) and Market-1501 (right). We enlarged the area marked with a red bounding box for a better view of clothing details. Examples from prior work are generated with the author’s code and pretrained models. MUST, E2E, and our $\\mathrm { P T ^ { 2 } }$ are trained with unpaired data, while the rest are supervised by paired data. These results show our approach transfers the original clothing patterns onto the target pose better than prior work. "
728
+ ],
729
+ "image_footnote": [],
730
+ "bbox": [
731
+ 176,
732
+ 97,
733
+ 818,
734
+ 290
735
+ ],
736
+ "page_idx": 7
737
+ },
738
+ {
739
+ "type": "table",
740
+ "img_path": "images/e79bff95d54420d0f731e35c03ec322e6a0dcbf0361fc2814000c9f5d179dd51.jpg",
741
+ "table_caption": [
742
+ "Table 3: A/B user preferences on DeepFashion. We report how often our approach was selected as most like the ground truth image. The number that follows $\\pm$ is the corresponding standard deviation. We significantly outperform methods trained without paired images. Our results were also preferred over fully supervised methods. "
743
+ ],
744
+ "table_footnote": [],
745
+ "table_body": "<table><tr><td></td><td colspan=\"3\"> Supervised by paired images</td><td colspan=\"2\">No paired images</td></tr><tr><td></td><td>PISE</td><td>DPTN</td><td>CASD</td><td>E2E</td><td>MUST</td></tr><tr><td>PT²</td><td>68.7%±3.27</td><td>66.2%±3.35</td><td>53.8%±3.53</td><td>79.7%±2.84</td><td>(Zhang et al.,2021a) (Zhang et al.,2022) (Zhou et al.,2022) (Song et al.,2019) (Ma et al.,2021) 72.6%±3.15</td></tr></table>",
746
+ "bbox": [
747
+ 173,
748
+ 444,
749
+ 848,
750
+ 523
751
+ ],
752
+ "page_idx": 7
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "4.2 QUALITATIVE RESULTS ",
757
+ "text_level": 1,
758
+ "bbox": [
759
+ 176,
760
+ 542,
761
+ 379,
762
+ 558
763
+ ],
764
+ "page_idx": 7
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "Pose Transfer. Figure 5 visualizes pose transfer results. We enlarged the area marked with a red bounding box for a better view of clothing details. In the first row (left), our method transferred the arm tattoos to the target pose while other methods either ignored this detail or failed to reconstruct the arm. Similarly, our model learns the color pattern in the second row (left) better than other approaches. This is because the small kernel encoder in our model can capture such detailed texture and thus reconstruct it based on the target pose. On the right side of Figure 5, compared with supervised pose transfer methods, our approach faithfully recovered the shape and color of the dress and shirt in the two examples. More examples, including failure cases, are in Appendix B. ",
769
+ "bbox": [
770
+ 173,
771
+ 569,
772
+ 825,
773
+ 681
774
+ ],
775
+ "page_idx": 7
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "Garment Replacement. With a given parsing map, our approach can also switch the clothing pieces on two persons. Let $I _ { A } = \\left( A _ { p o s e } , A _ { c l t } \\right)$ be an image of person $A$ wearing clothes $A _ { c l t }$ under posture $A _ { p o s e }$ . To replace $A _ { c l t }$ with $B _ { c l t }$ in $I _ { B } = ( B _ { p o s e } , B _ { c l t } )$ , we first align $A , B$ ’s pose to $A _ { p o s e }$ using the proposed pose transfer method, and then replace $A _ { c l t }$ to $B _ { c l t }$ using their parsing maps. To fix small mis-alignment after copy-paste $B _ { c l t }$ using the parsing map, the image is fed to $\\mathrm { P T ^ { 2 } }$ again for a more plausible reconstruction. Due to the shape difference of the source and reference garments (e.g., jeans and shorts), the model could give different ways of combining all the clothing pieces after replacing a specific garment. For example, in Figure 6, for the person in the top second source image, the upper clothes are tucked into the shorts but untucked to the jeans. Similarly, the shorts in the top first source image are occluded by the camel t-shirt and pink jackets, but are visible when combined with other shirts. Overall, Figure 6 shows that the proposed method successfully replaces various types of garments in the given images while preserving their patterns and details. ",
780
+ "bbox": [
781
+ 173,
782
+ 684,
783
+ 825,
784
+ 851
785
+ ],
786
+ "page_idx": 7
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "4.3 ABLATION STUDY ",
791
+ "text_level": 1,
792
+ "bbox": [
793
+ 176,
794
+ 869,
795
+ 341,
796
+ 882
797
+ ],
798
+ "page_idx": 7
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "We performed an ablation study to evaluate the effectiveness of each component of our model. In Table $4 , w / \\theta$ . Input Permuting does not permute the inputs, which results in entangled pose and textures. Input Warping, w/o. Input Permuting uses Thin Plate Spline transformation (TPS) to warp the source image, which can be viewed as a mild way of disentangling the pose and texture at the image-level. w/o. Pose Branch removes the pose branch in our method. w/o. small kernel uses only large kernel in the feature encoders, which should lead to loss of clothing details. w/o. large kernel uses only small kernel in the feature encoders. We train all these ablation models under the same configuration. As shown in Table 4, our complete model $\\mathrm { P T ^ { 2 } }$ improves all the metrics, demonstrating the effectiveness of each component. ",
803
+ "bbox": [
804
+ 176,
805
+ 895,
806
+ 823,
807
+ 924
808
+ ],
809
+ "page_idx": 7
810
+ },
811
+ {
812
+ "type": "image",
813
+ "img_path": "images/d0b0dd4c6e3e1a06f09a713be2a3f23dc1c286ae23be5cde2033cf212a2fdb32.jpg",
814
+ "image_caption": [
815
+ "Figure 6: Examples of garment replacement. The left column is the source image and the top row is reference image. All reference garments are marked with red bounding boxes. "
816
+ ],
817
+ "image_footnote": [],
818
+ "bbox": [
819
+ 302,
820
+ 101,
821
+ 691,
822
+ 415
823
+ ],
824
+ "page_idx": 8
825
+ },
826
+ {
827
+ "type": "table",
828
+ "img_path": "images/1222e58f947b374546eeea56acc1f12c0120eef033c1323cc49ed2b89810ace3.jpg",
829
+ "table_caption": [
830
+ "Table 4: Ablations in DeepFashion. Compare with each ablation model, our full model $\\mathrm { P T ^ { 2 } }$ that combines all the components improves the overall performance. "
831
+ ],
832
+ "table_footnote": [],
833
+ "table_body": "<table><tr><td>Method</td><td>FID↓</td><td>SSIM↑</td><td>LPIPS↓</td><td>IS个</td></tr><tr><td>Input Warping, w/o. Input Permuting</td><td>10.011</td><td>0.781±0.072</td><td>0.178±0.060</td><td>3.579±0.086</td></tr><tr><td>w/o. Input Permuting</td><td>10.279</td><td>0.780±0.069</td><td>0.169±0.059</td><td>3.525±0.095</td></tr><tr><td>w/o. Pose Branch</td><td>11.391</td><td>0.785±0.068</td><td>0.177±0.068</td><td>3.485±0.095</td></tr><tr><td>w/o. small kernel</td><td>8.905</td><td>0.782±0.067</td><td>0.170±0.060</td><td>3.442±0.119</td></tr><tr><td>w/o. large kernel</td><td>9.275</td><td>0.785±0.068</td><td>0.166±0.060</td><td>3.401±0.078</td></tr><tr><td>PT²(Ours)</td><td>8.338</td><td>0.795±0.067</td><td>0.158±0.059</td><td>3.469±0.098</td></tr></table>",
834
+ "bbox": [
835
+ 173,
836
+ 503,
837
+ 820,
838
+ 619
839
+ ],
840
+ "page_idx": 8
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "",
845
+ "bbox": [
846
+ 173,
847
+ 646,
848
+ 825,
849
+ 744
850
+ ],
851
+ "page_idx": 8
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "5 CONLUSION ",
856
+ "text_level": 1,
857
+ "bbox": [
858
+ 174,
859
+ 775,
860
+ 307,
861
+ 790
862
+ ],
863
+ "page_idx": 8
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "We propose $\\mathrm { P T ^ { 2 } }$ , a self-driven human pose transfer method that permutes the textures at random and then reconstructs the image with dual branch attention to achieve image-level disentanglement and detail-preserving texture transfer. The introduced dual kernel encoder in the model gives different sizes of receptive fields, which can reduce the noise caused by permutation and thus recovers clothing details while aligning pose and texture. Extensive experiments on DeepFashion and Market-1501 shows that our model improves the image quality of self-driven approaches, where a user study shows our images are preferred over prior work in $72 \\%$ of cases. Moreover, it obtains comparable objective and subjective results to most pose transfer methods supervised by paired data. ",
868
+ "bbox": [
869
+ 174,
870
+ 811,
871
+ 825,
872
+ 924
873
+ ],
874
+ "page_idx": 8
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "6 REPRODUCIBILITY STATEMENT ",
879
+ "text_level": 1,
880
+ "bbox": [
881
+ 176,
882
+ 102,
883
+ 467,
884
+ 118
885
+ ],
886
+ "page_idx": 9
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "We include our source code in the Supplementary for other researchers to easily reproduce our results in this paper. The code has a README file with detailed instructions of running and evaluating our model. The training details and all the hyperparameters we used in our approach are provided in Appendix A. ",
891
+ "bbox": [
892
+ 174,
893
+ 133,
894
+ 825,
895
+ 189
896
+ ],
897
+ "page_idx": 9
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "7 ETHICS STATEMENT ",
902
+ "text_level": 1,
903
+ "bbox": [
904
+ 176,
905
+ 209,
906
+ 374,
907
+ 226
908
+ ],
909
+ "page_idx": 9
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "The proposed method introduces image-level disentanglement of pose and texture, and provides a self-driven framework for the human pose transfer task. The results of this research could be broadly disseminated by exploiting the publicly available source code. The research is beneficial to the research community in that it builds a unified framework for self-driven pose transfer, and gives insights to other exemplar-guided image generation tasks. From the perspective of ethical considerations, our method has the potential to be used as a tool through the spread of misinformation, which echos concerns have been addressed in related machine learning research (Ramesh et al., 2022; Karnouskos, 2020). It is of utmost importance to follow certain policies and regulations against misinformation (Pennycook et al., 2020) when using these AI technologies, as well as highlight the importance of developing methods for detecting misinformation, including for media created using artificial intelligence (e.g., Wang et al. (2020); Tan et al. (2020)). ",
914
+ "bbox": [
915
+ 173,
916
+ 241,
917
+ 825,
918
+ 393
919
+ ],
920
+ "page_idx": 9
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "REFERENCES ",
925
+ "text_level": 1,
926
+ "bbox": [
927
+ 174,
928
+ 415,
929
+ 285,
930
+ 429
931
+ ],
932
+ "page_idx": 9
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "Badour Albahar, Jingwan Lu, Jimei Yang, Zhixin Shu, Eli Shechtman, and Jia-Bin Huang. Pose with style: Detail-preserving pose-guided image synthesis with conditional styleGAN. ACM Transactions on Graphics, 2021. \nZ. Cao, G. Hidalgo Martinez, T. Simon, S. Wei, and Y. A. Sheikh. Openpose: Realtime multi-person 2d pose estimation using part affinity fields. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019. \nFabio M Carlucci, Antonio D’Innocente, Silvia Bucci, Barbara Caputo, and Tatiana Tommasi. Domain generalization by solving jigsaw puzzles. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. \nAiyu Cui, Daniel McKee, and Svetlana Lazebnik. Dressing in order: Recurrent person image generation for pose transfer, virtual try-on and outfit editing. In Proceedings of the IEEE International Conference on Computer Vision, 2021. \nJia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In IEEE conference on computer vision and pattern recognition, 2009. \nAysegul Dundar, Kevin J Shih, Animesh Garg, Robert Pottorf, Anrew Tao, and Bryan Catanzaro. Unsupervised disentanglement of pose, appearance and background from images and videos. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(7):3883–3894, 2021. \nPatrick Esser, Ekaterina Sutter, and Bjorn Ommer. A variational u-net for conditional appearance ¨ and shape generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2018. \nChen Gao, Si Liu, Ran He, Shuicheng Yan, and Bo Li. Recapture as you want. arXiv preprint arXiv:2006.01435, 2020. \nArtur Grigorev, Artem Sevastopolsky, Alexander Vakhitov, and Victor Lempitsky. Coordinate-based texture inpainting for pose-guided human image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. \nRıza Alp Guler, Natalia Neverova, and Iasonas Kokkinos. Densepose: Dense human pose estimation ¨ in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. ",
937
+ "bbox": [
938
+ 171,
939
+ 428,
940
+ 826,
941
+ 926
942
+ ],
943
+ "page_idx": 9
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "Xintong Han, Xiaojun Hu, Weilin Huang, and Matthew R Scott. Clothflow: A flow-based model for clothed person generation. In Proceedings of the IEEE International Conference on Computer Vision, 2019. ",
948
+ "bbox": [
949
+ 174,
950
+ 103,
951
+ 823,
952
+ 145
953
+ ],
954
+ "page_idx": 10
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "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, 2017. ",
959
+ "bbox": [
960
+ 174,
961
+ 155,
962
+ 825,
963
+ 198
964
+ ],
965
+ "page_idx": 10
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In Proceedings of the European conference on computer vision, 2016. ",
970
+ "bbox": [
971
+ 174,
972
+ 207,
973
+ 821,
974
+ 237
975
+ ],
976
+ "page_idx": 10
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "Stamatis Karnouskos. Artificial intelligence in digital media: The era of deepfakes. IEEE Transactions on Technology and Society, 1(3):138–147, 2020. ",
981
+ "bbox": [
982
+ 174,
983
+ 244,
984
+ 820,
985
+ 275
986
+ ],
987
+ "page_idx": 10
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2019. ",
992
+ "bbox": [
993
+ 174,
994
+ 284,
995
+ 825,
996
+ 327
997
+ ],
998
+ "page_idx": 10
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "Jingyun Liang, Jiezhang Cao, Guolei Sun, Kai Zhang, Luc Van Gool, and Radu Timofte. Swinir: Image restoration using swin transformer. In Proceedings of the IEEE International Conference on Computer Vision, 2021. ",
1003
+ "bbox": [
1004
+ 173,
1005
+ 335,
1006
+ 825,
1007
+ 378
1008
+ ],
1009
+ "page_idx": 10
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ´ Proceedings of the European conference on computer vision, 2014. ",
1014
+ "bbox": [
1015
+ 173,
1016
+ 387,
1017
+ 825,
1018
+ 431
1019
+ ],
1020
+ "page_idx": 10
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "Wen Liu, Zhixin Piao, Zhi Tu, Wenhan Luo, Lin Ma, and Shenghua Gao. Liquid warping GAN with attention: A unified framework for human image synthesis. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2021. ",
1025
+ "bbox": [
1026
+ 173,
1027
+ 439,
1028
+ 825,
1029
+ 483
1030
+ ],
1031
+ "page_idx": 10
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "Ziwei Liu, Ping Luo, Shi Qiu, Xiaogang Wang, and Xiaoou Tang. Deepfashion: Powering robust clothes recognition and retrieval with rich annotations. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2016. ",
1036
+ "bbox": [
1037
+ 173,
1038
+ 492,
1039
+ 823,
1040
+ 535
1041
+ ],
1042
+ "page_idx": 10
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "Francesco Locatello, Stefan Bauer, Mario Lucic, Gunnar Raetsch, Sylvain Gelly, Bernhard Scholkopf, and Olivier Bachem. Challenging common assumptions in the unsupervised learn- ¨ ing of disentangled representations. In international conference on machine learning, 2019. ",
1047
+ "bbox": [
1048
+ 174,
1049
+ 544,
1050
+ 825,
1051
+ 587
1052
+ ],
1053
+ "page_idx": 10
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2015. ",
1058
+ "bbox": [
1059
+ 174,
1060
+ 595,
1061
+ 825,
1062
+ 638
1063
+ ],
1064
+ "page_idx": 10
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. ",
1069
+ "bbox": [
1070
+ 173,
1071
+ 648,
1072
+ 821,
1073
+ 678
1074
+ ],
1075
+ "page_idx": 10
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Zhengyao Lv, Xiaoming Li, Xin Li, Fu Li, Tianwei Lin, Dongliang He, and Wangmeng Zuo. Learning semantic person image generation by region-adaptive normalization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2021. ",
1080
+ "bbox": [
1081
+ 173,
1082
+ 685,
1083
+ 825,
1084
+ 729
1085
+ ],
1086
+ "page_idx": 10
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Liqian Ma, Qianru Sun, Stamatios Georgoulis, Luc Van Gool, Bernt Schiele, and Mario Fritz. Disentangled person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. ",
1091
+ "bbox": [
1092
+ 174,
1093
+ 738,
1094
+ 825,
1095
+ 781
1096
+ ],
1097
+ "page_idx": 10
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Tianxiang Ma, Bo Peng, Wei Wang, and Jing Dong. MUST-GAN: Multi-level statistics transfer for self-driven person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2021. ",
1102
+ "bbox": [
1103
+ 174,
1104
+ 790,
1105
+ 825,
1106
+ 833
1107
+ ],
1108
+ "page_idx": 10
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In Proceedings of the European conference on computer vision, 2016. ",
1113
+ "bbox": [
1114
+ 171,
1115
+ 843,
1116
+ 823,
1117
+ 872
1118
+ ],
1119
+ "page_idx": 10
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "Gordon Pennycook, Ziv Epstein, Mohsen Mosleh, Antonio Arechar, Dean Eckles, and David Rand. Understanding and reducing the spread of misinformation online. ACR North American Advances, 2020. ",
1124
+ "bbox": [
1125
+ 174,
1126
+ 881,
1127
+ 823,
1128
+ 922
1129
+ ],
1130
+ "page_idx": 10
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "Albert Pumarola, Antonio Agudo, Alberto Sanfeliu, and Francesc Moreno-Noguer. Unsupervised person image synthesis in arbitrary poses. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. ",
1135
+ "bbox": [
1136
+ 176,
1137
+ 103,
1138
+ 823,
1139
+ 146
1140
+ ],
1141
+ "page_idx": 11
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical textconditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 2022. ",
1146
+ "bbox": [
1147
+ 171,
1148
+ 154,
1149
+ 823,
1150
+ 184
1151
+ ],
1152
+ "page_idx": 11
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "Yurui Ren, Xiaoming Yu, Junming Chen, Thomas H Li, and Ge Li. Deep image spatial transformation for person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2020. ",
1157
+ "bbox": [
1158
+ 176,
1159
+ 191,
1160
+ 823,
1161
+ 234
1162
+ ],
1163
+ "page_idx": 11
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "Yurui Ren, Xiaoqing Fan, Ge Li, Shan Liu, and Thomas H Li. Neural texture extraction and distribution for controllable person image synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2022. ",
1168
+ "bbox": [
1169
+ 176,
1170
+ 242,
1171
+ 823,
1172
+ 286
1173
+ ],
1174
+ "page_idx": 11
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. In Advances in neural information processing systems, 2016. ",
1179
+ "bbox": [
1180
+ 174,
1181
+ 294,
1182
+ 826,
1183
+ 337
1184
+ ],
1185
+ "page_idx": 11
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "Soubhik Sanyal, Alex Vorobiov, Timo Bolkart, Matthew Loper, Betty Mohler, Larry S Davis, Javier Romero, and Michael J Black. Learning realistic human reposing using cyclic self-supervision with 3d shape, pose, and appearance consistency. In Proceedings of the IEEE International Conference on Computer Vision, 2021. ",
1190
+ "bbox": [
1191
+ 174,
1192
+ 344,
1193
+ 825,
1194
+ 401
1195
+ ],
1196
+ "page_idx": 11
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "Kripasindhu Sarkar, Dushyant Mehta, Weipeng Xu, Vladislav Golyanik, and Christian Theobalt. Neural re-rendering of humans from a single image. In Proceedings of the European conference on computer vision, 2020. ",
1201
+ "bbox": [
1202
+ 174,
1203
+ 410,
1204
+ 825,
1205
+ 453
1206
+ ],
1207
+ "page_idx": 11
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations, 2014. ",
1212
+ "bbox": [
1213
+ 171,
1214
+ 462,
1215
+ 821,
1216
+ 491
1217
+ ],
1218
+ "page_idx": 11
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "Sijie Song, Wei Zhang, Jiaying Liu, and Tao Mei. Unsupervised person image generation with semantic parsing transformation. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2019. ",
1223
+ "bbox": [
1224
+ 173,
1225
+ 498,
1226
+ 826,
1227
+ 541
1228
+ ],
1229
+ "page_idx": 11
1230
+ },
1231
+ {
1232
+ "type": "text",
1233
+ "text": "Reuben Tan, Bryan A. Plummer, and Kate Saenko. Detecting cross-modal inconsistency to defend against neural fake news. In Empirical Methods in Natural Language Processing (EMNLP), 2020. ",
1234
+ "bbox": [
1235
+ 171,
1236
+ 550,
1237
+ 823,
1238
+ 579
1239
+ ],
1240
+ "page_idx": 11
1241
+ },
1242
+ {
1243
+ "type": "text",
1244
+ "text": "Reuben Tan, Bryan Plummer, Kate Saenko, Hailin Jin, and Bryan Russell. Look at what i’m doing: Self-supervised spatial grounding of narrations in instructional videos. In Advances in Neural Information Processing Systems, 2021. ",
1245
+ "bbox": [
1246
+ 174,
1247
+ 587,
1248
+ 825,
1249
+ 631
1250
+ ],
1251
+ "page_idx": 11
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "text": "Hao Tang, Song Bai, Li Zhang, Philip HS Torr, and Nicu Sebe. XingGAN for person image generation. In Proceedings of the European Conference on Computer Vision, 2020. ",
1256
+ "bbox": [
1257
+ 168,
1258
+ 638,
1259
+ 823,
1260
+ 667
1261
+ ],
1262
+ "page_idx": 11
1263
+ },
1264
+ {
1265
+ "type": "text",
1266
+ "text": "Jilin Tang, Yi Yuan, Tianjia Shao, Yong Liu, Mengmeng Wang, and Kun Zhou. Structure-aware person image generation with pose decomposition and semantic correlation. In Proceedings of the AAAI Conference on Artificial Intelligence, 2021. ",
1267
+ "bbox": [
1268
+ 174,
1269
+ 676,
1270
+ 823,
1271
+ 719
1272
+ ],
1273
+ "page_idx": 11
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "Sheng-Yu Wang, Oliver Wang, Richard Zhang, Andrew Owens, and Alexei A Efros. Cnn-generated images are surprisingly easy to spot...for now. In IEEE conference on computer vision and pattern recognition, 2020. ",
1278
+ "bbox": [
1279
+ 174,
1280
+ 727,
1281
+ 823,
1282
+ 770
1283
+ ],
1284
+ "page_idx": 11
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "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. ",
1289
+ "bbox": [
1290
+ 173,
1291
+ 779,
1292
+ 825,
1293
+ 821
1294
+ ],
1295
+ "page_idx": 11
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "Zijian Wang, Xingqun Qi, Kun Yuan, and Muyi Sun. Self-supervised correlation mining network for person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2022. ",
1300
+ "bbox": [
1301
+ 174,
1302
+ 830,
1303
+ 823,
1304
+ 872
1305
+ ],
1306
+ "page_idx": 11
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "Han Yang, Ruimao Zhang, Xiaobao Guo, Wei Liu, Wangmeng Zuo, and Ping Luo. Towards photorealistic virtual try-on by adaptively generating-preserving image content. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2020a. ",
1311
+ "bbox": [
1312
+ 174,
1313
+ 881,
1314
+ 825,
1315
+ 924
1316
+ ],
1317
+ "page_idx": 11
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "text": "Hongtao Yang, Tong Zhang, Wenbing Huang, Xuming He, and Fatih Porikli. Towards purely unsupervised disentanglement of appearance and shape for person images generation. In Proceedings of the International Workshop on Human-Centric Multimedia Analysis, 2020b. ",
1322
+ "bbox": [
1323
+ 174,
1324
+ 103,
1325
+ 821,
1326
+ 146
1327
+ ],
1328
+ "page_idx": 12
1329
+ },
1330
+ {
1331
+ "type": "text",
1332
+ "text": "Yasin Yaz, Chuan-Sheng Foo, Stefan Winkler, Kim-Hui Yap, Georgios Piliouras, Vijay Chandrasekhar, et al. The unusual effectiveness of averaging in GAN training. In International Conference on Learning Representations, 2019. ",
1333
+ "bbox": [
1334
+ 178,
1335
+ 155,
1336
+ 821,
1337
+ 196
1338
+ ],
1339
+ "page_idx": 12
1340
+ },
1341
+ {
1342
+ "type": "text",
1343
+ "text": "Ruiyun Yu, Xiaoqi Wang, and Xiaohui Xie. Vtnfp: An image-based virtual try-on network with body and clothing feature preservation. In Proceedings of the IEEE international conference on computer vision, 2019. ",
1344
+ "bbox": [
1345
+ 174,
1346
+ 205,
1347
+ 825,
1348
+ 250
1349
+ ],
1350
+ "page_idx": 12
1351
+ },
1352
+ {
1353
+ "type": "text",
1354
+ "text": "Jinsong Zhang, Kun Li, Yu-Kun Lai, and Jingyu Yang. Pise: Person image synthesis and editing with decoupled GAN. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2021a. ",
1355
+ "bbox": [
1356
+ 173,
1357
+ 257,
1358
+ 826,
1359
+ 300
1360
+ ],
1361
+ "page_idx": 12
1362
+ },
1363
+ {
1364
+ "type": "text",
1365
+ "text": "Pengze Zhang, Lingxiao Yang, Jian-Huang Lai, and Xiaohua Xie. Exploring dual-task correlation for pose guided person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2022. ",
1366
+ "bbox": [
1367
+ 173,
1368
+ 309,
1369
+ 825,
1370
+ 352
1371
+ ],
1372
+ "page_idx": 12
1373
+ },
1374
+ {
1375
+ "type": "text",
1376
+ "text": "Quan Zhang, Jianhuang Lai, Zhanxiang Feng, and Xiaohua Xie. Seeing like a human: Asynchronous learning with dynamic progressive refinement for person re-identification. IEEE Transactions on Image Processing, 31:352–365, 2021b. ",
1377
+ "bbox": [
1378
+ 174,
1379
+ 361,
1380
+ 825,
1381
+ 404
1382
+ ],
1383
+ "page_idx": 12
1384
+ },
1385
+ {
1386
+ "type": "text",
1387
+ "text": "Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2018. ",
1388
+ "bbox": [
1389
+ 173,
1390
+ 412,
1391
+ 825,
1392
+ 455
1393
+ ],
1394
+ "page_idx": 12
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "Ziwei Zhang, Chi Su, Liang Zheng, and Xiaodong Xie. Correlating edge, pose with parsing. In IEEE Conference on Computer Vision and Pattern Recognition, 2020. ",
1399
+ "bbox": [
1400
+ 168,
1401
+ 463,
1402
+ 825,
1403
+ 493
1404
+ ],
1405
+ "page_idx": 12
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In Proceedings of the IEEE international conference on computer vision, 2015. ",
1410
+ "bbox": [
1411
+ 174,
1412
+ 501,
1413
+ 823,
1414
+ 545
1415
+ ],
1416
+ "page_idx": 12
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "Xinyue Zhou, Mingyu Yin, Xinyuan Chen, Li Sun, Changxin Gao, and Qingli Li. Cross attention based style distribution for controllable person image synthesis. In Proceedings of the European conference on computer vision, 2022. ",
1421
+ "bbox": [
1422
+ 174,
1423
+ 553,
1424
+ 823,
1425
+ 597
1426
+ ],
1427
+ "page_idx": 12
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "Zhen Zhu, Tengteng Huang, Baoguang Shi, Miao Yu, Bofei Wang, and Xiang Bai. Progressive pose attention transfer for person image generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. ",
1432
+ "bbox": [
1433
+ 174,
1434
+ 604,
1435
+ 825,
1436
+ 648
1437
+ ],
1438
+ "page_idx": 12
1439
+ },
1440
+ {
1441
+ "type": "image",
1442
+ "img_path": "images/8f9fa37bee3fc66c5cf0fbb73132b83b2eee491364c42c4f0fdbd957ba43295b.jpg",
1443
+ "image_caption": [
1444
+ "Figure 7: Additional pose transfer examples on DeepFashion. "
1445
+ ],
1446
+ "image_footnote": [],
1447
+ "bbox": [
1448
+ 174,
1449
+ 95,
1450
+ 825,
1451
+ 547
1452
+ ],
1453
+ "page_idx": 13
1454
+ },
1455
+ {
1456
+ "type": "text",
1457
+ "text": "A TRAINING DETAILS. ",
1458
+ "text_level": 1,
1459
+ "bbox": [
1460
+ 176,
1461
+ 599,
1462
+ 379,
1463
+ 616
1464
+ ],
1465
+ "page_idx": 13
1466
+ },
1467
+ {
1468
+ "type": "text",
1469
+ "text": "We use AdamW optimizer (Loshchilov & Hutter, 2019) for training with $\\beta _ { 1 } = 0 . 5 , \\beta _ { 2 } = 0 . 9 9 9 .$ . The initial learning rate is set to $1 0 ^ { - 3 }$ and decays to $2 \\times 1 0 ^ { - 4 }$ after five starting epochs. The trade-off parameters are set to $\\lambda _ { 1 } = 2 . 0 , \\lambda _ { 2 } = 5 . 0 , \\lambda _ { 3 } = 0 . 5$ , $\\lambda _ { 4 } = 1 5 0$ in all experiments. The patch size is $1 6 \\times 1 6$ for DeepFashion and $8 \\times 8$ for Market-1501. To stabilize the training, we use the EMA strategy Yaz et al. (2019) to average the learned weights of the generator. Our pose representation is predicted by DensePose (Guler et al., 2018) and the parsing maps are obtained from CorrPM ¨ (Zhang et al., 2020). We found that the predicted dense pose in Market-1501 has poor quality as the image resolution is too low $( 1 2 8 \\times 6 4 )$ for the DensePose model. Therefore, we use an offline super resolution model Liang et al. (2021) to upsample the Market-1501 images to $5 1 2 \\times 2 5 6$ , get dense pose from these images, and then downsample the pose to the original image resolution $( 1 2 8 \\times 6 4 )$ for our pose transfer task. We also add human keypoints predicted from OpenPose (Cao et al., 2019) as part of the pose representation to improve the accuracy of predicted posture on Market-1501. ",
1470
+ "bbox": [
1471
+ 174,
1472
+ 632,
1473
+ 825,
1474
+ 799
1475
+ ],
1476
+ "page_idx": 13
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "text": "B DISCUSSIONS ",
1481
+ "text_level": 1,
1482
+ "bbox": [
1483
+ 176,
1484
+ 821,
1485
+ 323,
1486
+ 838
1487
+ ],
1488
+ "page_idx": 13
1489
+ },
1490
+ {
1491
+ "type": "text",
1492
+ "text": "Failure case analysis. Figure 7 provides several successful examples generated by the propsoed method on DeepFashion. However, one limitation of our model is that it relies on the segmentation map and DensePose prediction of the source image to obtain semantic and position information for the permuted textures. Thus, we found the accuracy of human parser and DensePose model greatly affects the transfer results. Figure 8 shows several failed examples due to this type of inaccuracy. In the first row, the coat wrapped around the dress was misrecognized as part of the dress in the parsing map, for which our generated back view incorrectly mixes up their textures. Similarly, the skirt in the second row was classified as shorts in the parsing map. As a result, our generator infers the occluded clothing piece as shorts in the front view. In the last row, the color of skirt is half-black and halfwhite because the skirt piece was not identified in the parsing map. More analysis on ablations. We present some visualized examples in Figure 9 to show the functionality of each component of our model. It’s clear that models with less perturbation of the input texture (i.e., w/o. Input Permuting and Input Warping) fail at large pose changes (e.g., from back view to front full view in the bottom row). Removing the pose branch (w/o. Pose Branch) causes loss of length information, resulting in extended dress in the second row. Without the small-kernel encoder (w/o. small kernel), the ablation model correctly transfers color and shape, but fails to recover complex clothing patterns and details in the third row. Without large kernel (w/o. large kernel), the model can correctly reconstruct clothes with singular color, but is less capable of transferring detailed textures (see the third and fourth row). To see if the large-kernel encoder is learning certain low-level information from permuted patches, we also tried replacing the inputs of the large-kernel encoder with heavily Gaussian blurred image without permutation. From the examples, we can see that images generated by $w .$ blur are much worse compared to the full model. This suggests that features learned by large-kernel encoder from the permuted image might have richer information than Gaussian blurred texture. ",
1493
+ "bbox": [
1494
+ 174,
1495
+ 854,
1496
+ 823,
1497
+ 924
1498
+ ],
1499
+ "page_idx": 13
1500
+ },
1501
+ {
1502
+ "type": "image",
1503
+ "img_path": "images/294d67c7c1c181e865d3fb25958e69c9aad11960f1a0f5a572498ae4527c4d1b.jpg",
1504
+ "image_caption": [
1505
+ "Figure 8: Failure cases in DeepFashion. Many failures are due to incorrect predictions of the source UV map and source parsing map. "
1506
+ ],
1507
+ "image_footnote": [],
1508
+ "bbox": [
1509
+ 174,
1510
+ 98,
1511
+ 823,
1512
+ 314
1513
+ ],
1514
+ "page_idx": 14
1515
+ },
1516
+ {
1517
+ "type": "image",
1518
+ "img_path": "images/5f033af2f7020a2d905e7f6e9a262b37ccf0c222fb763e3f8c7f9c3d53c9a68c.jpg",
1519
+ "image_caption": [
1520
+ "Figure 9: Generated images of ablations of our model. Each component of our model improves the transfer of shape information and detailed clothing patterns, resulting in our full model obtaining the best results. "
1521
+ ],
1522
+ "image_footnote": [],
1523
+ "bbox": [
1524
+ 173,
1525
+ 375,
1526
+ 825,
1527
+ 714
1528
+ ],
1529
+ "page_idx": 14
1530
+ },
1531
+ {
1532
+ "type": "text",
1533
+ "text": "",
1534
+ "bbox": [
1535
+ 173,
1536
+ 797,
1537
+ 825,
1538
+ 924
1539
+ ],
1540
+ "page_idx": 14
1541
+ },
1542
+ {
1543
+ "type": "image",
1544
+ "img_path": "images/08b6d34fad50ea24aae456dddcde4a67878ecb6dd799a4fffd843f2bcb7f1f86.jpg",
1545
+ "image_caption": [
1546
+ "Figure 10: Visualized feature map of the encoded texture features. The feature map is overlaid with the source image. The source image is downsampled to the resolution of the feature map. Each triplet includes a downsampled source image, the feature map from large-kernel encoder, and the feature map from small-kernel encoder. Red indicates higher value and blue means smaller value. "
1547
+ ],
1548
+ "image_footnote": [],
1549
+ "bbox": [
1550
+ 174,
1551
+ 101,
1552
+ 823,
1553
+ 224
1554
+ ],
1555
+ "page_idx": 15
1556
+ },
1557
+ {
1558
+ "type": "text",
1559
+ "text": "",
1560
+ "bbox": [
1561
+ 174,
1562
+ 318,
1563
+ 825,
1564
+ 443
1565
+ ],
1566
+ "page_idx": 15
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "text": "To further explore the differences of texture features learned by the large-kernel encoder and the small-kernel encoder, we sum up the encoded feature maps across all channels in the texture branch, and normalize their values to be in range [0, 1]. Then we downsample the image to the resolution of the feature map and overlay the normalized feature map with the downsampled source image. In Figure 10, each triplet includes the downsampled source image, the feature map from largekernel encoder, and the feature map from small-kernel encoder. Feature map given by large-kernel encoder (middle image in each triplet) appears to be much smoother than that of the small-kernel encoder (right image in each triplet). This suggests that large-kernel encoder might be learning coarse information from the clothing piece (e.g., color and shape), while small-kernel encoder is learning more fine-grained patterns (e.g., stripe and pleat). ",
1571
+ "bbox": [
1572
+ 174,
1573
+ 449,
1574
+ 825,
1575
+ 589
1576
+ ],
1577
+ "page_idx": 15
1578
+ }
1579
+ ]
parse/dev/upJ3vrFKaL/upJ3vrFKaL_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/upJ3vrFKaL/upJ3vrFKaL_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/-zgb2v8vV_w/-zgb2v8vV_w_layout.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a697d45fbbf1ba8c9c04a1e7a52900154f4af08b65fa12884141c3b4e97666c
3
+ size 1398553
parse/train/-zgb2v8vV_w/-zgb2v8vV_w_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dc95e541afd56f8805f32ee0e0a0ae1d77519191f3183a5dd77a90e71dd6647
3
+ size 1028460
parse/train/-zgb2v8vV_w/-zgb2v8vV_w_span.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74640b37c8662539396d9c727b031adb61335a05f828dfd1e24fa9af72e3eb06
3
+ size 1420622
parse/train/0CDKgyYaxC8/0CDKgyYaxC8_layout.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74de6b4d27e5d800760cda23ee18da9ab1c83ea442c795bc2714be3708637e94
3
+ size 5890033
parse/train/0CDKgyYaxC8/0CDKgyYaxC8_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12facbc0907f2ccccd8c4c5aa7662ccd4d2bef95e1b17b19fd54a15d00d141ae
3
+ size 5752797
parse/train/0CDKgyYaxC8/0CDKgyYaxC8_span.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:344d9867197b7d02374018b7e54e3994c0bf0c1dd95ddffeb4893067f3c1cb2b
3
+ size 5896327
parse/train/2rAiDBJgR_/2rAiDBJgR__layout.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b104a03ff8a823c50a6f17fa23fd61cb84a9e50b1f5bba75ca992fa671f470cd
3
+ size 1709698
parse/train/2rAiDBJgR_/2rAiDBJgR__origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbbdf30cbe1e3ddfbd537d4f50334d1eb59d03c86a67530e48812c871f3082f2
3
+ size 1243956
parse/train/2rAiDBJgR_/2rAiDBJgR__span.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d90300472530e42076827eb3ad7685d922ce5d97b292bab929a9a7c2949265c
3
+ size 1735134
parse/train/BJe-unNYPr/BJe-unNYPr_layout.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cd152c3e144cb14c707e23bb4dd67a5675d139aea2e1c60f4e33164fe3bc222
3
+ size 2362070
parse/train/BJe-unNYPr/BJe-unNYPr_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:310e009cae0c2394e450a56a3a0dc78acd3c07280ac2d0bd99536c320d6296f8
3
+ size 1880900