Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +107 -0
- parse/dev/10uNUgI5Kl/10uNUgI5Kl.md +386 -0
- parse/dev/10uNUgI5Kl/10uNUgI5Kl_content_list.json +0 -0
- parse/dev/10uNUgI5Kl/10uNUgI5Kl_middle.json +0 -0
- parse/dev/10uNUgI5Kl/10uNUgI5Kl_model.json +0 -0
- parse/dev/1KaSx3GrBBm/1KaSx3GrBBm.md +341 -0
- parse/dev/1KaSx3GrBBm/1KaSx3GrBBm_content_list.json +1855 -0
- parse/dev/1KaSx3GrBBm/1KaSx3GrBBm_middle.json +0 -0
- parse/dev/1KaSx3GrBBm/1KaSx3GrBBm_model.json +0 -0
- parse/dev/3lge0p5o-M-/3lge0p5o-M-.md +456 -0
- parse/dev/3lge0p5o-M-/3lge0p5o-M-_content_list.json +0 -0
- parse/dev/3lge0p5o-M-/3lge0p5o-M-_middle.json +0 -0
- parse/dev/3lge0p5o-M-/3lge0p5o-M-_model.json +0 -0
- parse/dev/67o9UQgTD0/67o9UQgTD0_middle.json +0 -0
- parse/dev/67o9UQgTD0/67o9UQgTD0_model.json +0 -0
- parse/dev/8H5bpVwvt5/8H5bpVwvt5.md +0 -0
- parse/dev/8H5bpVwvt5/8H5bpVwvt5_content_list.json +0 -0
- parse/dev/8H5bpVwvt5/8H5bpVwvt5_middle.json +0 -0
- parse/dev/8H5bpVwvt5/8H5bpVwvt5_model.json +0 -0
- parse/dev/9EAQVEINuum/9EAQVEINuum_middle.json +0 -0
- parse/dev/AhccnBXSne/AhccnBXSne.md +307 -0
- parse/dev/AhccnBXSne/AhccnBXSne_content_list.json +1171 -0
- parse/dev/AhccnBXSne/AhccnBXSne_middle.json +0 -0
- parse/dev/EXnIyMVTL8s/EXnIyMVTL8s.md +719 -0
- parse/dev/EXnIyMVTL8s/EXnIyMVTL8s_content_list.json +0 -0
- parse/dev/EXnIyMVTL8s/EXnIyMVTL8s_middle.json +0 -0
- parse/dev/EXnIyMVTL8s/EXnIyMVTL8s_model.json +0 -0
- parse/dev/G2Q2Mh3avow/G2Q2Mh3avow.md +0 -0
- parse/dev/G2Q2Mh3avow/G2Q2Mh3avow_content_list.json +0 -0
- parse/dev/G2Q2Mh3avow/G2Q2Mh3avow_middle.json +0 -0
- parse/dev/G2Q2Mh3avow/G2Q2Mh3avow_model.json +0 -0
- parse/dev/JCCi58IUsh/JCCi58IUsh_content_list.json +0 -0
- parse/dev/JCCi58IUsh/JCCi58IUsh_middle.json +0 -0
- parse/dev/JCCi58IUsh/JCCi58IUsh_model.json +0 -0
- parse/dev/LV8OmADmoOe/LV8OmADmoOe.md +223 -0
- parse/dev/LV8OmADmoOe/LV8OmADmoOe_content_list.json +1219 -0
- parse/dev/LV8OmADmoOe/LV8OmADmoOe_middle.json +0 -0
- parse/dev/LV8OmADmoOe/LV8OmADmoOe_model.json +0 -0
- parse/dev/Sxk8Bse3RKO/Sxk8Bse3RKO.md +297 -0
- parse/dev/Sxk8Bse3RKO/Sxk8Bse3RKO_content_list.json +1205 -0
- parse/dev/Sxk8Bse3RKO/Sxk8Bse3RKO_middle.json +0 -0
- parse/dev/Sxk8Bse3RKO/Sxk8Bse3RKO_model.json +0 -0
- parse/dev/TatRHT_1cK/TatRHT_1cK.md +314 -0
- parse/dev/TatRHT_1cK/TatRHT_1cK_content_list.json +0 -0
- parse/dev/TatRHT_1cK/TatRHT_1cK_middle.json +0 -0
- parse/dev/TatRHT_1cK/TatRHT_1cK_model.json +0 -0
- parse/dev/TntbHxxGd6j/TntbHxxGd6j_content_list.json +1876 -0
- parse/dev/TntbHxxGd6j/TntbHxxGd6j_model.json +0 -0
- parse/dev/TySnJ-0RdKI/TySnJ-0RdKI_middle.json +0 -0
- parse/dev/WVX0NNVBBkV/WVX0NNVBBkV.md +0 -0
.gitattributes
CHANGED
|
@@ -15644,3 +15644,110 @@ parse/train/IpmfpAGoH2KbX/IpmfpAGoH2KbX_origin.pdf filter=lfs diff=lfs merge=lfs
|
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 15647 |
+
parse/train/H1e0-30qKm/H1e0-30qKm_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15648 |
+
parse/train/H1e0-30qKm/H1e0-30qKm_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15649 |
+
parse/train/H1e0-30qKm/H1e0-30qKm_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15650 |
+
parse/train/Sklv5iRqYX/Sklv5iRqYX_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15651 |
+
parse/train/Sklv5iRqYX/Sklv5iRqYX_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15652 |
+
parse/train/Sklv5iRqYX/Sklv5iRqYX_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15653 |
+
parse/train/BklWt24tvH/BklWt24tvH_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15654 |
+
parse/train/piLPYqxtWuA/piLPYqxtWuA_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15655 |
+
parse/train/piLPYqxtWuA/piLPYqxtWuA_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15656 |
+
parse/train/piLPYqxtWuA/piLPYqxtWuA_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15657 |
+
parse/train/HklRKpEKDr/HklRKpEKDr_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15658 |
+
parse/train/HklRKpEKDr/HklRKpEKDr_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15659 |
+
parse/train/HklRKpEKDr/HklRKpEKDr_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15660 |
+
parse/train/Sk2u1g-0-/Sk2u1g-0-_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15661 |
+
parse/train/Sk2u1g-0-/Sk2u1g-0-_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15662 |
+
parse/train/Sk2u1g-0-/Sk2u1g-0-_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15663 |
+
parse/train/H1lmyRNFvr/H1lmyRNFvr_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15664 |
+
parse/train/H1lmyRNFvr/H1lmyRNFvr_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15665 |
+
parse/train/H1lmyRNFvr/H1lmyRNFvr_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15666 |
+
parse/train/H1uP7ebAW/H1uP7ebAW_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15667 |
+
parse/train/H1uP7ebAW/H1uP7ebAW_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15668 |
+
parse/train/H1uP7ebAW/H1uP7ebAW_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15669 |
+
parse/train/vQzcqQWIS0q/vQzcqQWIS0q_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15670 |
+
parse/train/vQzcqQWIS0q/vQzcqQWIS0q_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15671 |
+
parse/train/vQzcqQWIS0q/vQzcqQWIS0q_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15672 |
+
parse/train/CzVPfeqPOBu/CzVPfeqPOBu_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15673 |
+
parse/train/CzVPfeqPOBu/CzVPfeqPOBu_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15674 |
+
parse/train/CzVPfeqPOBu/CzVPfeqPOBu_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15675 |
+
parse/train/Kb26p7chwhf/Kb26p7chwhf_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15676 |
+
parse/train/Kb26p7chwhf/Kb26p7chwhf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15677 |
+
parse/train/Kb26p7chwhf/Kb26p7chwhf_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15678 |
+
parse/train/jDdzh5ul-d/jDdzh5ul-d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15679 |
+
parse/train/jDdzh5ul-d/jDdzh5ul-d_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15680 |
+
parse/train/jDdzh5ul-d/jDdzh5ul-d_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15681 |
+
parse/train/SyzKd1bCW/SyzKd1bCW_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15682 |
+
parse/train/SyzKd1bCW/SyzKd1bCW_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15683 |
+
parse/train/SyzKd1bCW/SyzKd1bCW_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15684 |
+
parse/train/BJe0Gn0cY7/BJe0Gn0cY7_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15685 |
+
parse/train/BJe0Gn0cY7/BJe0Gn0cY7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15686 |
+
parse/train/BJe0Gn0cY7/BJe0Gn0cY7_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15687 |
+
parse/train/S1e2agrFvS/S1e2agrFvS_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15688 |
+
parse/train/S1e2agrFvS/S1e2agrFvS_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15689 |
+
parse/train/S1e2agrFvS/S1e2agrFvS_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15690 |
+
parse/train/ByOvsIqeg/ByOvsIqeg_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15691 |
+
parse/train/ByOvsIqeg/ByOvsIqeg_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15692 |
+
parse/train/ByOvsIqeg/ByOvsIqeg_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15693 |
+
parse/train/B1uvH_gC-/B1uvH_gC-_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15694 |
+
parse/train/B1uvH_gC-/B1uvH_gC-_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15695 |
+
parse/train/B1uvH_gC-/B1uvH_gC-_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15696 |
+
parse/train/7Yhok3vJpU/7Yhok3vJpU_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15697 |
+
parse/train/7Yhok3vJpU/7Yhok3vJpU_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15698 |
+
parse/train/7Yhok3vJpU/7Yhok3vJpU_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15699 |
+
parse/train/S1lTg3RqYQ/S1lTg3RqYQ_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15700 |
+
parse/train/S1lTg3RqYQ/S1lTg3RqYQ_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15701 |
+
parse/train/S1lTg3RqYQ/S1lTg3RqYQ_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15702 |
+
parse/train/Y4RJQO2jivm/Y4RJQO2jivm_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15703 |
+
parse/train/Y4RJQO2jivm/Y4RJQO2jivm_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15704 |
+
parse/train/Y4RJQO2jivm/Y4RJQO2jivm_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15705 |
+
parse/train/CU0APx9LMaL/CU0APx9LMaL_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15706 |
+
parse/train/CU0APx9LMaL/CU0APx9LMaL_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15707 |
+
parse/train/CU0APx9LMaL/CU0APx9LMaL_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15708 |
+
parse/train/BJgza6VtPB/BJgza6VtPB_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15709 |
+
parse/train/BJgza6VtPB/BJgza6VtPB_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15710 |
+
parse/train/BJgza6VtPB/BJgza6VtPB_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15711 |
+
parse/train/YJL3amnDf2w/YJL3amnDf2w_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15712 |
+
parse/train/YJL3amnDf2w/YJL3amnDf2w_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15713 |
+
parse/train/YJL3amnDf2w/YJL3amnDf2w_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15714 |
+
parse/train/BybtVK9lg/BybtVK9lg_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15715 |
+
parse/train/BybtVK9lg/BybtVK9lg_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15716 |
+
parse/train/BybtVK9lg/BybtVK9lg_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15717 |
+
parse/train/HJgK0h4Ywr/HJgK0h4Ywr_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15718 |
+
parse/train/HJgK0h4Ywr/HJgK0h4Ywr_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15719 |
+
parse/train/HJgK0h4Ywr/HJgK0h4Ywr_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15720 |
+
parse/train/rJMcdsA5FX/rJMcdsA5FX_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15721 |
+
parse/train/rJMcdsA5FX/rJMcdsA5FX_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15722 |
+
parse/train/rJMcdsA5FX/rJMcdsA5FX_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15723 |
+
parse/train/B1G9tvcgx/B1G9tvcgx_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15724 |
+
parse/train/B1G9tvcgx/B1G9tvcgx_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15725 |
+
parse/train/B1G9tvcgx/B1G9tvcgx_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15726 |
+
parse/train/SkwSJ99ex/SkwSJ99ex_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15727 |
+
parse/train/SkwSJ99ex/SkwSJ99ex_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15728 |
+
parse/train/SkwSJ99ex/SkwSJ99ex_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15729 |
+
parse/train/HJg2b0VYDr/HJg2b0VYDr_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15730 |
+
parse/train/HJg2b0VYDr/HJg2b0VYDr_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15731 |
+
parse/train/HJg2b0VYDr/HJg2b0VYDr_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15732 |
+
parse/train/HJlNpoA5YQ/HJlNpoA5YQ_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15733 |
+
parse/train/HJlNpoA5YQ/HJlNpoA5YQ_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15734 |
+
parse/train/HJlNpoA5YQ/HJlNpoA5YQ_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15735 |
+
parse/train/OQ08SN70M1V/OQ08SN70M1V_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15736 |
+
parse/train/OQ08SN70M1V/OQ08SN70M1V_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15737 |
+
parse/train/OQ08SN70M1V/OQ08SN70M1V_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15738 |
+
parse/train/S1jBcueAb/S1jBcueAb_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15739 |
+
parse/train/S1jBcueAb/S1jBcueAb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15740 |
+
parse/train/S1jBcueAb/S1jBcueAb_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15741 |
+
parse/train/lQdXeXDoWtI/lQdXeXDoWtI_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15742 |
+
parse/train/lQdXeXDoWtI/lQdXeXDoWtI_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15743 |
+
parse/train/lQdXeXDoWtI/lQdXeXDoWtI_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15744 |
+
parse/train/B1x1ma4tDr/B1x1ma4tDr_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15745 |
+
parse/train/B1x1ma4tDr/B1x1ma4tDr_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15746 |
+
parse/train/B1x1ma4tDr/B1x1ma4tDr_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15747 |
+
parse/train/D51irFX8UOG/D51irFX8UOG_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15748 |
+
parse/train/D51irFX8UOG/D51irFX8UOG_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15749 |
+
parse/train/D51irFX8UOG/D51irFX8UOG_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15750 |
+
parse/train/rkeiQlBFPB/rkeiQlBFPB_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15751 |
+
parse/train/rkeiQlBFPB/rkeiQlBFPB_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15752 |
+
parse/train/rkeiQlBFPB/rkeiQlBFPB_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 15753 |
+
parse/train/SygKyeHKDH/SygKyeHKDH_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
parse/dev/10uNUgI5Kl/10uNUgI5Kl.md
ADDED
|
@@ -0,0 +1,386 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# REWARD DESIGN WITH LANGUAGE MODELS
|
| 2 |
+
|
| 3 |
+
Minae Kwon, Sang Michael Xie, Kalesha Bullard†, Dorsa Sadigh Stanford University, DeepMind† {minae, xie, dorsa}@cs.stanford.edu, ksbullard@deepmind.com†
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Reward design in reinforcement learning (RL) is challenging since specifying human notions of desired behavior may be difficult via reward functions or require many expert demonstrations. Can we instead cheaply design rewards using a natural language interface? This paper explores how to simplify reward design by prompting a large language model (LLM) such as GPT-3 as a proxy reward function, where the user provides a textual prompt containing a few examples (few-shot) or a description (zero-shot) of the desired behavior. Our approach leverages this proxy reward function in an RL framework. Specifically, users specify a prompt once at the beginning of training. During training, the LLM evaluates an RL agent’s behavior against the desired behavior described by the prompt and outputs a corresponding reward signal. The RL agent then uses this reward to update its behavior. We evaluate whether our approach can train agents aligned with user objectives in the Ultimatum Game, matrix games, and the DEALORNODEAL negotiation task. In all three tasks, we show that RL agents trained with our framework are well-aligned with the user’s objectives and outperform RL agents trained with reward functions learned via supervised learning. Code and prompts can be found here.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Autonomous agents are becoming increasingly capable with the rise of compute and data. This underscores the importance for human users to be able to control what policies the agents learn and ensure the policies are aligned with their objectives. For instance, imagine training an agent to represent users in a salary negotiation. A working mother fighting for a livable wage may want their agent to be stubborn whereas a new hire looking to develop a good relationship with the company may want their agent to be more versatile.
|
| 12 |
+
|
| 13 |
+
Currently, users specify desired behaviors by 1) designing reward functions or 2) providing large amounts of labeled data. Both approaches are challenging and impractical for different reasons. Designing reward functions is not an intuitive way to specify preferences. For instance, it isn’t straightforward how to write a reward function for a “versatile” negotiator. Furthermore, designing reward functions that balance between different objectives — also known as the “reward design problem” — is notoriously difficult because agents are susceptible to reward hacking (Amodei et al., 2016; Hadfield-Menell et al., 2017). On the other hand, one can learn a reward function from labeled examples. However, that is not possible with a single example; we need large amounts of labeled data to capture the nuances of different users’ preferences and objectives, which has shown to be costly (Zhang et al., 2016). Additionally, both approaches do not generalize well to new users who have different objectives — we would have to re-design our reward functions or re-collect data.
|
| 14 |
+
|
| 15 |
+
Our aim is to create an easier way for users to communicate their preferences, where the interface is more intuitive than crafting a reward function and where they can cheaply specify their preferences with no more than a few examples. To do this, we leverage large language models (LLMs) that are trained on internet-scale text data and have shown an impressive ability to learn in-context from few or zero examples (Brown et al., 2020). Our key insight is that
|
| 16 |
+
|
| 17 |
+
The scale of data that LLMs have been trained on make them great in-context learners and also allows them to capture meaningful commonsense priors about human behavior. Given a few examples or a description demonstrating the user’s objective, an LLM should be able to provide an accurate instantiation of reward values on a new test example, allowing for easier generalization to new objectives.
|
| 18 |
+
|
| 19 |
+
To this end, we explore how to prompt an LLM as a proxy reward function to train RL agents from user inputs. In our approach, the user specifies an objective with a natural language prompt. Objectives can be specified with a few examples when they are difficult to define (such as “versatility”) or as a single phrase when they are well-known concepts (such as “Pareto-optimality”). We use the prompt and the LLM to define a reward function for training an RL agent. The LLM takes the user prompt and a trajectory from an RL episode as input and outputs a score (e.g., “No” or $\ " { } 0 \ " { }$ ) for whether the trajectory satisfies the user’s objective, which we parse as an integer reward for the RL agent (Figure 1).
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Depiction of our framework on the DEALORNODEAL negotiation task. A user provides an example and explanation of desired negotiating behavior (e.g., versatility) before training. During training, (1) we provide the LLM with a task description, a user��s description of their objective, an outcome of an episode that is converted to a string, and a question asking if the outcome episode satisfies the user objective. (2-3) We then parse the LLM’s response back into a string and use that as the reward signal for the Alice the RL agent. (4) Alice updates their weights and rolls out a new episode. (5) We parse the episode outcome int a string and continue training. During evaluation, we sample a trajectory from Alice and evaluate whether it is aligned with the user’s objective.
|
| 23 |
+
|
| 24 |
+
There are two advantages to prompting LLMs as a proxy reward function: (1) we can leverage LLM’s in-context learning abilities and prior knowledge on human behavior so that users only need to provide a handful of example desirable behaviors and (2) users can specify their preferences intuitively using language. On the other hand, a potential disadvantage is that it is unclear how much prompt design will be required for the LLM to reliably infer user intent (see Sec. 5 for a discussion). The goal of this paper is to explore how well LLMs can train objective-aligned agents by providing reward signals, and empirically examine whether we can do so with no more than a few examples. Our contributions are as follows:
|
| 25 |
+
|
| 26 |
+
• We introduce the idea of using LLMs as a proxy reward function.
|
| 27 |
+
• We propose a general RL training framework that leverages this proxy reward and is agnostic to the RL algorithm used.
|
| 28 |
+
• We show that an LLM can more accurately train objective-aligned RL agents by an average of $3 5 \%$ compared the baseline. We use few-shot prompting for the Ultimatum Game and DEALORNODEAL negotiation task as well as zero-shot prompting in Matrix Games.
|
| 29 |
+
• We conduct a pilot study with 10 human users. Users rate our agent to be significantly more aligned with their objective than an agent trained with a different one, $p { < } 0 . 0 0 1$ .
|
| 30 |
+
• We provide further analysis quantifying the amount of user data required for our approach as well as the effect varying prompts has on the LLM’s reward signal accuracy.
|
| 31 |
+
|
| 32 |
+
# 2 RELATED WORK
|
| 33 |
+
|
| 34 |
+
Using Language for Reward Shaping. Recent Reinforcement Learning from Human Feedback (RLHF) works Ouyang et al. (2022); Bai et al. (2022) use LLMs as rewards by fine-tuning them on large amounts of user data. Our work does not fine-tune LLMs but uses in-context learning from only a handful of user data.
|
| 35 |
+
|
| 36 |
+
Several works Goyal et al. (2019); Carta et al. (2022); Mirchandani et al. (2021) shape rewards by training an RL agent to learn and complete intermediate tasks guided by language. In contrast, our framework does not focus on generating subtasks but leverages the in-context learning abilities of an LLM to determine whether an agent’s policy satisfies the higher-level task.
|
| 37 |
+
|
| 38 |
+
RL and Foundation Models. We leverage large language models such as GPT-3 (Brown et al., 2020) to learn a proxy reward function while avoiding the need for many expert demonstrations. Ahn et al. (2022); Huang et al. (2022) use an LLM to provide a plan which guides a robot with reasonable/feasible actions towards a human goal (e.g., with enumerating subtasks). In contrast, our work is different in that we are using an LLM to identify if a behavior satisfies “hard-to-specify” properties of a human’s objective and also offers users more control over how they want their policy to be executed. In the vision domain, Parisi et al. (2022) used pre-trained vision models as a feature extractor for the learned policy, but not to design a reward signal. In a similar spirit of leveraging self-supervised pre-training to design a flexible reward function, Chen et al. (2021) use a broad dataset of human videos and a small dataset of robot videos to train a reward function, which improves generalization to new environments and tasks. The interface for the desired task is a video of the task to be completed, instead of text in our framework, and the domain is restricted to robot tasks. More related works can be found in Sec. A.2.
|
| 39 |
+
|
| 40 |
+
# 3 USING LLMS AS A REWARD SIGNAL
|
| 41 |
+
|
| 42 |
+
Our goal is to use an LLM as a proxy reward function to train objective-aligned RL agents from user inputs. We formalize the task using a Markov Decision Process $\mathcal { M } { = } \langle S , \mathcal { A } , p , \mathcal { R } , \gamma \rangle$ , where $s$ is the state space (e.g., in DEALORNODEAL, the space of representations of utterances in the negotiation so far), $\mathcal { A }$ is the action space (e.g., set of all possible utterances), $p { : } S \times \mathcal { A } \times \mathcal { S } [ 0 , 1 ]$ is the transition probability, and $\gamma$ is the discount factor. Traditionally the reward function maps states and actions to a real number $\mathcal { R } : \mathcal { S } \times \mathcal { A } \mathbb { R }$ In our work, we use an LLM as a proxy reward function that takes in a text prompt and outputs a string. We define $A ^ { * }$ to be the set of all strings, $\rho \in A ^ { * }$ as our text prompt (input to the LLM) and the LLM as a function $L L M { \mathrel { : } } A ^ { * } { \mathrel { \to } } A ^ { * }$ . As illustrated in Fig. 1, the prompt $\rho$ is a concatenation of four components including a string to describe the task $\rho _ { 1 } \in A ^ { * }$ and a user-specified string that describes their objectives using examples or a description, $\rho _ { 2 } \in A ^ { * }$ . Additionally, we include a textual description of states and actions from an RL episode, $\rho _ { 3 }$ , using a parser $f : { \cal S } \times { \cal A } { \cal A } ^ { * }$ . $\rho _ { 3 }$ can describe the final state, final action, a trajectory, or any other representation of the episode. Finally, we include a question $\rho _ { 4 } \in A ^ { * }$ that asks whether the RL agent’s behavior, $\rho _ { 3 }$ , satisfies the user’s objective, $\rho _ { 2 }$ . We define an additional parser $g \colon A ^ { * } \to \{ 0 , 1 \}$ that maps the textual output of $L L M$ to a binary value. We use this as the reward signal. Our framework replaces the traditional reward function with a proxy reward, $L L M$ , and can be used with any RL training algorithm.
|
| 43 |
+
|
| 44 |
+
Our framework is depicted in Fig. 1. Before training, a user specifies $\rho _ { 2 }$ which can be $N$ examples describing their objective or a description of their objective using natural language. In Fig. 1 a user provides an example of their objective: versatile negotiating behavior. During training, we construct a prompt $\rho$ by concatenating a description of the task, the user-specified examples/description, an episode’s outcome, and a question asking if the outcome satisfies the objective. We (1) feed the prompt to the LLM, (2) take its output, and (3) parse it into an integer using function $g$ ; we use a handcrafted, task-specific parser. We use the integer as the reward signal. (4) The RL agent then updates its weights and rolls out an episode. (5) We parse the episode outcome into a string using $f$ and continue training; we also instantiate $f$ as handcrafted, task-specific parser. To evaluate our framework, we sample a trajectory (e.g., a negotiation) from the agent and evaluate whether the trajectory is aligned with the user’s objective (e.g., whether Alice demonstrated versatile negotiating behavior).
|
| 45 |
+
|
| 46 |
+
# 4 EXPERIMENTS
|
| 47 |
+
|
| 48 |
+
In this section we investigate three questions to determine the feasibility and efficacy of our approach: (Q1) Can LLMs produce reward signals that are consistent with user objectives from a few examples (few-shot prompting)? (Q2) When objectives are well-known, can LLMs produce objective-consistent reward signals without any examples (zero-shot prompting)? (Q3) Can LLMs provide objective-aligned reward signals from examples (few-shot prompting) in more complex, longer-horizon domains? We evaluate our approach on three tasks: the Ultimatum Game, 2-player Matrix Games, and the DEALORNODEAL negotiation task (Lewis et al., 2017). We address (Q1) using the Ultimatum Game. We use Matrix Games to address (Q2) because it has well-known solution concepts such as Pareto-optimality. The
|
| 49 |
+
|
| 50 |
+
DEALORNODEAL negotiation task is a longer-horizon domain where the LLM rewards agents for negotiating in a user-specified style; we address (Q3) in this task.
|
| 51 |
+
|
| 52 |
+
In practice, we do not have access to ground truth user reward functions — this is the function that we are trying to approximate. However, for most of our experiments, we assume access to the true reward by constructing user reward functions that humans have been shown to have inspired by prior work. We use the true rewards only to evaluate our framework’s performance. Finally, we include a pilot user study where we evaluate agent performance when we do not have access to the ground truth reward. We use the ‘text-davinci-002’ GPT-3 model with temperature 0 as our LLM and our results are reported across 3 random seeds. Details on how we trained RL agents for each task are in A.4. s
|
| 53 |
+
|
| 54 |
+
Evaluation Metrics. We evaluate our approach using the following metrics across our tasks (task-specific metrics are described within each subsection):
|
| 55 |
+
|
| 56 |
+
Labeling Accuracy. We construct ground-truth reward functions for each domain. We report the mean accuracy of predictions of the reward value during RL training with respect to the ground-truth reward functions. This assesses how effectively the LLM can produce reward signals that are consistent with the user’s objective.
|
| 57 |
+
|
| 58 |
+
RL Agent Accuracy. After RL training, we evaluate the learned policy with respect to the ground truth reward functions. We report the mean accuracy of RL agents.
|
| 59 |
+
|
| 60 |
+
# Baselines.
|
| 61 |
+
|
| 62 |
+
SL (Few-shot baseline). A supervised learning (SL) model trained to predict reward signals using the same examples given to the LLM in our framework. Examples are represented using structured non-text inputs, making it an easier problem for the SL model. This baseline only applies to tasks where we use few-shot prompting (Ultimatum Game, DEALORNODEAL). See A.5 for details on training and model architecture for each task.
|
| 63 |
+
|
| 64 |
+
No Objective (Zero-shot baseline). In our zero-shot task, Matrix Games, we do not use any examples so we do not use SL as a baseline. Instead, we use a No Objective baseline where we prompt the LLM without using the user’s description of their objective to isolate the effect the description has on the LLM’s response.
|
| 65 |
+
|
| 66 |
+
RL trained with Ground Truth Reward Functions. RL agents trained with ground truth reward functions.
|
| 67 |
+
We use this as an oracle.
|
| 68 |
+
|
| 69 |
+
4.1 ULTIMATUM GAME: TRAINING OBJECTIVE-ALIGNED AGENTS WITH FEW-SHOT PROMPTING
|
| 70 |
+
|
| 71 |
+
When defining a precise objective is difficult, we can instead give a few examples of desired behavior. For instance, in a resource division game like the Ultimatum Game, it may be difficult for a user to specify the exact percentage (such as $3 2 . 4 \%$ ) of resources they would be happy with receiving. Instead it could be easier for a user to give examples of splits that they would be happy with. We explore whether LLMs can produce reward signals that are consistent with user objectives from a few examples in the Ultimatum Game.
|
| 72 |
+
|
| 73 |
+
Task Description. The Ultimatum Game consists of two players, a Proposer and a Responder. A sum of money is endowed to the Proposer and they must propose a way to split the endowment with the Responder. The Responder can accept or reject the proposed split. If the Responder accepts, players receive money as per the split; if the Responder rejects, then both players get nothing. We train an RL agent to play the Responder. The agent learns to reject proposals according to a user’s preferences. The game consists of a single timestep and our RL agents are trained using DQN for 1e4 steps.
|
| 74 |
+
|
| 75 |
+
Ground Truth User Objectives. A rational Responder would accept any proposal, even if it is unfair because getting something is better than getting nothing (in fact, this is a Nash Equilibrium of the game). However, prior work in behavioral economics shows that humans are willing to “punish” the Proposer by rejecting unfair proposals (Vavra et al., 2018). For instance, a student may reject an unfair proposal only if she receives less than $30 \%$ of the endowment whereas a wealthier person may reject if they receive less than $60 \%$ . We experiment with the following preferences:
|
| 76 |
+
|
| 77 |
+
• Low vs High Percentages. Users will reject proposals if they receive less than $( 3 0 \%$ , $6 0 \% \}$ of the endowment.
|
| 78 |
+
• Low vs High Payoffs. Users will reject unfair proposals if they receive less than $\{ \$ 10,4100 \}$ . They accept unfair proposals otherwise.
|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
Figure 2: Ultimatum Game, Few-shot. (Top) Accuracy of reward signals provided by LLM and SL during RL training when prompted with/trained on 10 vs 1 example. (Bottom) Corresponding accuracy of RL agents after training. LLM is able to maintain a high accuracy when prompted with a single example followed by an explanation. We do not provide figures of Inequity Aversion because both LLM and SL trivially achieve perfect labeling and RL agent accuracy.
|
| 82 |
+
|
| 83 |
+
• Inequity Aversion (Fehr & Schmidt (2010)). Users will reject proposals if they do not receive exactly $5 0 \%$ of the endowment.
|
| 84 |
+
|
| 85 |
+
Prompt Design. We describe a user’s objective using 10 examples of the Ultimatum Game. An example consists of the proposed split, the Responder’s action, and a “yes/no” label of whether the Responder’s action was desirable or undesirable. These examples do not have explanations and resemble a traditional dataset used for supervised learning. We also experiment with using a single example followed by a short explanation. Importantly, we do not explicitly mention the user’s ground truth objective in the prompt. See Fig. 10 in the Appendix for an example of both types of prompts.
|
| 86 |
+
|
| 87 |
+
Design Procedure. We randomly generated 10 proposed splits used for our prompt and sampled one proposal from the set for our single-example case. For Low vs High Percentages and Low vs High Payoffs, we used the same set of proposals across variants (i.e., same proposals for $30 \%$ and $60 \%$ ) and $( \$ 10$ , $\$ 100)$ ). We also randomly generated 50 proposals used to evaluate the LLM. Due to limited resources when querying GPT-3, we query the model’s responses to the 50 evaluation splits in a batched manner and save them. We then use those responses as the reward signal.
|
| 88 |
+
|
| 89 |
+
# 4.1.1 RESULTS
|
| 90 |
+
|
| 91 |
+
Labeling Accuracy. We evaluated our approach on our test set of 50 proposals over 3 seeds; results are shown in Fig. $\cdot$ . When prompted with 10 examples without explanations, the LLM and SL perform similarly well (see Fig. 2, top row). This result is not surprising, given that the decision boundary for the binary decision tasks is relatively simple to learn with 10 training examples.
|
| 92 |
+
|
| 93 |
+
Instead, if we prompt the LLM with a single example followed by an explanation, it maintains a high accuracy whereas SL trained on the same, single example drops in accuracy. We did not use the explanation as part of input when training SL because it only takes non-textual inputs. This result highlights the advantage of using an LLM over a supervised learning model: they require far fewer examples because they can learn from explanations (Lampinen et al., 2022). We find that explanations are critical, as removing explanations when prompting the LLM with a single example results in a drop in LLM labeling accuracy (avg. drop of $3 1 . 6 7 \%$ ) and a drop in RL agent accuracy (avg. drop of $2 8 . 8 \%$ ).
|
| 94 |
+
|
| 95 |
+
RL Agent Accuracy. The accuracy of the trained RL agents mirror the labeling accuracy.
|
| 96 |
+
|
| 97 |
+
Summary. LLMs are efficient in-context learners. They are able to provide reward signals that are consistent with a user’s objectives from examples — even a single example with an explanation will suffice.
|
| 98 |
+
|
| 99 |
+
4.2 MATRIX GAMES: TRAINING OBJECTIVE-ALIGNED AGENTS WITH ZERO-SHOT PROMPTING
|
| 100 |
+
|
| 101 |
+
When objectives are well-known concepts such as Pareto-optimality, can we prompt the LLM without giving any examples? We hypothesize that well-known objectives are likely to be in-distribution for LLMs, and thus LLMs may be able to produce objective-aligned reward signals from zero-shot prompting. Since we do not use examples, we do not use a SL baseline. Instead we use a baseline No Objective where we do not mention any objectives and ask the LLM for a reward signal (see example in Fig. 11 in the Appendix). This baseline evaluates whether the LLM can successfully apply its knowledge of each objective.
|
| 102 |
+
|
| 103 |
+

|
| 104 |
+
Figure 3: Matrix Games, Zero-shot. (Top) Accuracy of reward signals provided by LLM and a No Objective baseline during RL training. We report results for both regular and scrambled versions of matrix games. (Bottom) Accuracy of RL agents after training.
|
| 105 |
+
|
| 106 |
+
Task Description. We consider two-player normal-form matrix games: Battle of the Sexes, Stag Hunt, Chicken, and Prisoner’s Dilemma. Each matrix game has four joint outcomes (i.e., a tuple of joint actions and rewards) and we address pure strategies in this task. The game consists of a single timestep and our RL agents are trained using DQN for 500 steps.
|
| 107 |
+
|
| 108 |
+
Ground Truth User Objectives. Although (mixed) Nash Equilibria are traditional solution concepts for normal form matrix games, users may prefer a solution for other properties. For instance, in Prisoner’s Dilemma, users may prefer both agents to cooperate because they will maximize total welfare even though it is not a Pure Nash Equilibrium. We experiment with four well-known solution concepts (or objectives):
|
| 109 |
+
|
| 110 |
+
• Total Welfare. Outcomes that achieve the greatest sum of player rewards.
|
| 111 |
+
• Equality. Outcomes that result in equal rewards between players.
|
| 112 |
+
• Rawlsian Fairness. Outcomes that maximize the minimum reward any player receives.
|
| 113 |
+
• Pareto-optimality. Outcomes where the one of the corresponding rewards cannot be improved without lowering the other.
|
| 114 |
+
|
| 115 |
+
Prompt Design. Prompts for each solution concept are shown in Fig. 11 in the Appendix. Due to limited resources with querying GPT-3, we queried GPT-3 in a batched manner and saved the corresponding labels to train our RL agents. Our prompt enumerates the outcomes of a matrix game and then asks the LLM for the outcome(s) that satisfy a solution concept. We do not mention the name of the matrix game in the prompt. As in Kojima et al. (2022), we elicit intermediate reasoning steps by asking the LLM to “think step-by-step” and provide a definition of the solution concept. To prevent any bias the LLM may have towards the order in which the outcomes of a matrix game are presented, we also randomly scramble associations between joint actions and rewards (example shown in Fig. 12 in the Appendix).
|
| 116 |
+
|
| 117 |
+
Design Procedure. We tuned the wording of our prompt (e.g., how to describe the matrix game, whether or not to use chain-of-thought prompting) on the Battle of the Sexes matrix game to find a prompt that gave us accurate results. During evaluation, we kept the structure of our prompt the same for all of the matrix games.
|
| 118 |
+
|
| 119 |
+
# 4.2.1 RESULTS
|
| 120 |
+
|
| 121 |
+
Labeling Accuracy. Given that each game can have many outcomes that satisfy a solution concept, we report the LLM’s accuracy if its response does not include any incorrect outcomes. If the LLM identifies any incorrect outcome, we report a score of 0. The LLM produces more objective-aligned reward signals with zero-shot prompting by applying its knowledge of well-known objectives, improving the labeling accuracy over having no objective by $48 \%$ on average with a regular ordering of matrix game outcomes and $36 \%$ with a scrambled order. Scrambling the order of matrix game outcomes in the prompt lowers accuracy for most solution concepts. We suspect that this is because the matrix games are well-known and likely to have been in the LLM’s training set, where each joint action is usually associated with particular payoffs. Scrambling the associations between joint actions and payoffs could make the matrix game more out-of-distribution for the LLM, and thus lower accuracy.
|
| 122 |
+
|
| 123 |
+
RL Agent Accuracy. Compared to labeling accuracy, it is easier for the resulting RL agents to be accurate because they only need to learn one correct outcome, not all of them. Thus, LLMs that only identify one out of two correct outcomes can still train objective-aligned RL agents. Results are shown on the bottom row of Fig. 3. RL agents trained using rewards from the LLM receive perfect accuracy for Total Welfare and Equality and $7 5 \%$ accuracy for the other two objectives. The baseline receives lower accuracy for all objectives.
|
| 124 |
+
|
| 125 |
+
Does the LLM Correctly Identify Each Objective? As part of our prompt, we ask the LLM to provide a definition of the objective before reasoning about whether an outcome satisfies the objective (see Fig. 11 in the Appendix). Table 2 in the Appendix shows how the LLM defines each objective zero-shot. The LLM is able to successfully recall the definitions for each objective except for Rawlsian Fairness – it gets it partially correct. However, the LLM varies in its ability to reason whether an outcome of a game satisfies the objective, which explains why the LLM does not receive perfect labeling accuracy for all objectives.
|
| 126 |
+
|
| 127 |
+
Summary. An LLM is able to identify well-known objectives and provide objective-aligned reward signals in a zero-shot setting.
|
| 128 |
+
|
| 129 |
+
# 4.3 DEALORNODEAL: TRAINING OBJECTIVE-ALIGNED AGENTS IN MULTI-TIMESTEP TASKS
|
| 130 |
+
|
| 131 |
+
We have shown that an LLM can provide objective-aligned reward signals in single-timestep tasks. In longer horizon tasks we must give trajectories instead of states as examples in our prompts. Longer prompts can be challenging because it is less likely for an LLM to have seen them during training. LLMs also have a recency bias which makes it harder for them to remember context introduced earlier on (Zhao et al., 2021). Can an LLM provide objective-aligned signals in longer horizon tasks? We investigate this question in the DEALORNODEAL negotiation task (Lewis et al., 2017).
|
| 132 |
+
|
| 133 |
+
Task Description. DEALORNODEAL is a long-horizon task with a maximum length of 100 timesteps. An agent Alice must come to an agreement with her partner Bob on the allocation of a set of objects (books, hats, and balls). Agents are shown a context, which includes the counts of each item and their private utilities for each item. In the original task, agents get rewarded based on the agreed upon split and their utilities. If Alice and Bob reach a disagreement, both agents get nothing. We train Alice using on-policy RL by negotiating against a fixed partner model, which we refer to as Bob. See Sec. A.4 for more details on the domain and training.
|
| 134 |
+
|
| 135 |
+
Ground Truth User Objectives. We train Alice to negotiate in different styles. For this experiment, we assume we have access to precise definitions in order to evaluate our models. Importantly, we do not give definitions of each style to the LLM, only examples. We experiment with the following negotiation styles inspired by previous literature Sycara et al. (1997); Caputo et al. (2019):
|
| 136 |
+
|
| 137 |
+
• Versatile. Alice does not suggest the same proposal more than once.
|
| 138 |
+
• Push-Over. Alice gets less points than Bob.
|
| 139 |
+
• Competitive. Alice gets more points than Bob.
|
| 140 |
+
• Stubborn. Alice repeatedly suggests the same proposal.
|
| 141 |
+
|
| 142 |
+
Prompt Design. We describe user objectives using three examples. Each example contains a negotiation between Alice and Bob, a question asking whether Alice negotiated in a particular style, and a yes or no answer followed by a short explanation. For an example, see Fig. 13 in the Appendix.
|
| 143 |
+
|
| 144 |
+
Design Procedure. To create example negotiations, we randomly sampled three negotiation contexts for each objective and trained an RL agent (using the original task reward, without the LLM) to negotiate against $B o b$ in these contexts. We then sampled negotiations from the trained model. We also made sure all three sampled negotiations did not have the same ground truth label. We use a separate set of contexts when training RL agents with an LLM in the loop.
|
| 145 |
+
|
| 146 |
+
# 4.3.1 RESULTS
|
| 147 |
+
|
| 148 |
+
Labeling Accuracy. The top row of Fig. 4 shows that the LLM labels more accurately than SL except for Versatile. For Versatile, both models perform similarly because SL learns to overwhelmingly predict a negative label (avg of $9 6 \%$ negative predictions) and the RL agent showed more negative examples of Versatile behavior (avg. of $7 0 \%$ ground truth negative labels). However, the large portion of negative examples prevents the agent from learning correct behavior as shown in the Versatile plot on the bottom of Fig. 4); here, we get a larger performance gap between the LLM and SL.
|
| 149 |
+
|
| 150 |
+

|
| 151 |
+
Figure 4: DEALORNODEAL, Few-shot. (Top) Accuracy of reward signals provided by LLM and SL during RL training. (Bottom) Accuracy of RL agents after training. (Right) Pilot study results. Agents trained with the user’s preferred style were rated as significantly more aligned than an agent trained with the opposite style $p { < } 0 . 0 0 1$ .
|
| 152 |
+
|
| 153 |
+
Table 1: Qualitative results describing negotiations produced by agents trained with LLM.
|
| 154 |
+
|
| 155 |
+
<table><tr><td></td><td>Advantage</td><td>Diversity</td><td>Agreement Rate</td></tr><tr><td>Versatile</td><td>0.17±0.91</td><td>0.99±0.01</td><td>0.98±1.89</td></tr><tr><td>Push-Over</td><td>-2.95±0.64</td><td>0.82±0.26</td><td>1.0±0.0</td></tr><tr><td>Competitive</td><td>2.92±0.64</td><td>0.74±0.25</td><td>0.88±6.5</td></tr><tr><td>Stubborn</td><td>1.36±2.24</td><td>0.52±0.1</td><td>0.82±12.35</td></tr></table>
|
| 156 |
+
|
| 157 |
+
RL Agent Accuracy. Results are shown on bottom row of of Fig. 4. LLM improves RL agent accuracy over SL by $4 6 \%$ on average. Our method approaches the performance of using the true reward; we under perform by an average of $4 \%$ . We remind readers that it is possible to outperform an agent trained with the true reward — especially when the LLM’s labeling accuracy is near-perfect as is the case for Competitive and Stubborn — due to reward hacking or stochasticity during training. For instance, agents trained with the true reward for Competitive end in more disagreements, leading to 0 reward for both agents and a lower accuracy.
|
| 158 |
+
|
| 159 |
+
Is There a Qualitative Difference in Styles? Example negotiations of agents trained with the LLM for each style are shown in Fig. 9 in the Appendix. To measure qualitative differences among styles, we looked at average advantage (Alice’s original task reward - Bob’s original task reward), diversity (percentage of Alice’s utterances that are unique in a negotiation), and agreement rate (percentage of negotiations that end in agreement). The results in Table 1 demonstrate qualitative differences in styles.
|
| 160 |
+
|
| 161 |
+
# 4.3.2 PILOT USER STUDY
|
| 162 |
+
|
| 163 |
+
We conduct a within-subjects pilot user study to determine whether our trained agents can meaningfully align themselves with different user objectives when we do not have access to ground truth objectives and users evaluate agent performance.
|
| 164 |
+
|
| 165 |
+
Method We asked $N { = } 1 0$ users to select a style in which they wanted their agent to negotiate in. We gave them an option to choose from our existing styles (Versatile, Push-Over, Competitive, Stubborn), or come up with their own. Importantly, users did not know how we defined these styles. We then showed users a list of 10 example negotiations generated via selfplay using an RL agent trained with a greedy objective (no particular style). We asked users to select 3 examples (1 positive, 1 negative, and 1 positive or negative) where Alice displayed positive or negative behavior of the user’s chosen style. For each chosen example, we asked users whether Alice demonstrated their chosen style and asked them to provide a ”Yes/No” answer as well as a short explanation. These examples corresponded to unknown, user-specific ground truth reward functions that we did not have access to. We then trained a negotiation agent by incorporating the user-provided examples in the prompt as described in Sec. 3. We also trained an agent to negotiate in the opposite style by flipping the ”Yes/No” labels in the user-provided explanations. We hypothesize that users should perceive a significant difference between these two agents. To evaluate our trained agents, we had both agents negotiate on a set of 10 test negotiations. For each test negotiation, we asked users to rate how well each agent aligned with their chosen style on a scale from 1 (least aligned) to 5 (most aligned).
|
| 166 |
+
|
| 167 |
+
Results Agents trained with the correct style were significantly more aligned (avg. $3 . 7 2 { \pm } 1 . 2 )$ than agents trained with the opposite style (avg. $1 . 5 6 \pm 1 . 0 5 )$ , $p < 0 . 0 0 1$ , see Fig. 4 (right). Users varied in which styles they preferred: 4 users chose styles such as Polite, Push-Over, Considerate and Compromising, 2 users chose Versatile, and 4 users chose styles such as Stubborn, Competitive and Ambitious. These results demonstrate that our framework can produce agents aligned with differently specified objectives by changing the examples in the prompt. Furthermore, these results suggest that our framework can be used when rewards are difficult to define and results are agents with humans.
|
| 168 |
+
|
| 169 |
+
Summary. Our framework can train objective-aligned agents when ground truth rewards are not present in complex, longer-horizon tasks. Agents are able to align the style in which they complete a task as evaluated by automated metrics as well as human users.
|
| 170 |
+
|
| 171 |
+
# 5 ANALYSIS OF DATA EFFICIENCY & PROMPT DESIGN
|
| 172 |
+
|
| 173 |
+
We have shown that we can use an LLM as a proxy reward function to successfully train objective-aligned agents across different tasks. This is a promising result because it represents an important step in enabling human-compatible and value-aligned AI systems. In this section, 1) we further quantify how data efficient our method is and 2) also analyze how robust LLM is to variations of prompt design.
|
| 174 |
+
|
| 175 |
+
1) How Data-efficient is Our Method? We quantify how much more user data a supervised learning baseline would need in order to achieve the same labeling accuracy as the LLM. Results in the Ultimatum Game demonstrate that 10 labeled examples is enough for an SL model to reach comparable performance, whereas a a single labeled example is not sufficient. In this section, we quantify the amount of data needed for DEALORNODEAL because it is an example of a task where the decision boundary is not as easy to learn as the Ultimatum Game. We train SL by adding additional class-balanced, labeled examples to the original three examples it was trained on. We plot the average labeling accuracy SL achieves when trained on increasingly larger amounts of examples as well as the accuracy LLM achieves with three examples, shown in Fig. 6 in the Appendix. Results show that SL requires on the order of hundreds of more labeled examples in order to be comparably accurate as LLM.
|
| 176 |
+
|
| 177 |
+
2) How Much Does LLM’s Labeling Accuracy Change When We Vary the Prompt? As with many approaches that use LLMs, a limitation of our approach is that it requires prompt design. We attempt to quantify the effort required for designing prompts as well as determine the feasibility of using nonengineered prompts from humans. We analyze the effect of prompt variation on labeling accuracy in DEALORNODEAL for the Stubborn objective. We vary different parts of the user-specified prompt at a time: the keyword (i.e., replacing “Stubborn” with its synonyms), the example negotiations, and the explanations associated with each example. Fig. 7 provides a summary of our results. See Sec. A.7 for the full results. Results illustrate that an LLM can be quite robust to different prompts — they all outperform SL. Furthermore, the quality of the explanation seems to be the most important in determining LLM accuracy.
|
| 178 |
+
|
| 179 |
+
# 6 LIMITATIONS & FUTURE WORK
|
| 180 |
+
|
| 181 |
+
User Studies. This work takes a first step in determining whether we can use LLMs as proxy rewards.
|
| 182 |
+
Given promising results, we plan on evaluating our approach with a larger user study.
|
| 183 |
+
|
| 184 |
+
Multimodal Foundation Models. Beyond language models, multimodal foundation models such as Flamingo (Alayrac et al., 2022) can enable us to provide more complex environment states to the foundation model through images or other modalities while preserving an intuitive language interface for specifying the user objective.
|
| 185 |
+
|
| 186 |
+
Non-Binary Rewards. Another limitation of our framework is that the LLM only specifies binary rewards. We plan on exploring how we can incorporate the likelihoods that LLMs produce for each word as a non-binary reward signal.
|
| 187 |
+
|
| 188 |
+
# ACKNOWLEDGMENTS
|
| 189 |
+
|
| 190 |
+
This work was supported by NSF Award 1941722, 2125511, 2006388, AFOSR, DARPA YFA Award, ONR, and JP Morgan Faculty Award. We would also like to thank Karl Tuyls, Ian Gemp, Albert Gu, Siddharth Karamcheti, Kanishk Gandhi, and other reviewers for this paper.
|
| 191 |
+
|
| 192 |
+
# REFERENCES
|
| 193 |
+
|
| 194 |
+
Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Chuyuan Fu, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, Daniel Ho, Jasmine Hsu, Julian Ibarz, Brian Ichter, Alex Irpan, Eric Jang, Rosario Jauregui Ruano, Kyle Jeffrey, Sally Jesmonth, Nikhil J Joshi, Ryan Julian, Dmitry Kalashnikov, Yuheng Kuang, Kuang-Huei Lee, Sergey Levine, Yao Lu, Linda Luu, Carolina Parada, Peter Pastor, Jornell Quiambao, Kanishka Rao, Jarek Rettinghouse, Diego Reyes, Pierre Sermanet, Nicolas Sievers, Clayton Tan, Alexander Toshev, Vincent Vanhoucke, Fei Xia, Ted Xiao, Peng Xu, Sichun Xu, Mengyuan Yan, and Andy Zeng. Do as i can, not as i say: Grounding language in robotic affordances. arXiv, 2022.
|
| 195 |
+
|
| 196 |
+
Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katie Millican, Malcolm Reynolds, Roman Ring, Eliza Rutherford, Serkan Cabi, Tengda Han, Zhitao Gong, Sina Samangooei, Marianne Monteiro, Jacob Menick, Sebastian Borgeaud, Andrew Brock, Aida Nematzadeh, Sahand Sharifzadeh, Mikolaj Binkowski, Ricardo Barreira, Oriol Vinyals, Andrew Zisserman, and Karen Simonyan. Flamingo: a visual language model for few-shot learning. arXiv, 2022.
|
| 197 |
+
|
| 198 |
+
Dario Amodei, Chris Olah, Jacob Steinhardt, Paul Christiano, John Schulman, and Dan Mane. Concrete ´ problems in ai safety. arXiv preprint arXiv:1606.06565, 2016.
|
| 199 |
+
|
| 200 |
+
Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862, 2022.
|
| 201 |
+
|
| 202 |
+
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020.
|
| 203 |
+
|
| 204 |
+
Andrea Caputo, Oluremi B Ayoko, Nii Amoo, and Charlott Menke. The relationship between cultural values, cultural intelligence and negotiation styles. Journal of Business Research, 99:23–36, 2019.
|
| 205 |
+
|
| 206 |
+
Thomas Carta, Sylvain Lamprier, Pierre-Yves Oudeyer, and Olivier Sigaud. Eager: Asking and answering questions for automatic reward shaping in language-guided rl. arXiv preprint arXiv:2206.09674, 2022.
|
| 207 |
+
|
| 208 |
+
Annie S. Chen, Suraj Nair, and Chelsea Finn. Learning generalizable robotic reward functions from ”in-the-wild” human videos. ArXiv, abs/2103.16817, 2021.
|
| 209 |
+
|
| 210 |
+
Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. Advances in neural information processing systems, 30, 2017.
|
| 211 |
+
|
| 212 |
+
Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
|
| 213 |
+
|
| 214 |
+
Ernst Fehr and Klaus M Schmidt. On inequity aversion: A reply to binmore and shaked. Journal of economic behavior & organization, 73(1):101–108, 2010.
|
| 215 |
+
|
| 216 |
+
Prasoon Goyal, Scott Niekum, and Raymond J Mooney. Using natural language for reward shaping in reinforcement learning. arXiv preprint arXiv:1903.02020, 2019.
|
| 217 |
+
|
| 218 |
+
Dylan Hadfield-Menell, Smitha Milli, Pieter Abbeel, Stuart J Russell, and Anca Dragan. Inverse reward design. Advances in neural information processing systems, 30, 2017.
|
| 219 |
+
|
| 220 |
+
He He, Derek Chen, Anusha Balakrishnan, and Percy Liang. Decoupling strategy and generation in negotiation dialogues. In Empirical Methods in Natural Language Processing (EMNLP), 2018.
|
| 221 |
+
|
| 222 |
+
Wenlong Huang, P. Abbeel, Deepak Pathak, and Igor Mordatch. Language models as zero-shot planners: Extracting actionable knowledge for embodied agents. In ICML, 2022.
|
| 223 |
+
|
| 224 |
+
Borja Ibarz, Jan Leike, Tobias Pohlen, Geoffrey Irving, Shane Legg, and Dario Amodei. Reward learning from human preferences and demonstrations in atari. Advances in neural information processing systems, 31, 2018.
|
| 225 |
+
|
| 226 |
+
W Bradley Knox, Alessandro Allievi, Holger Banzhaf, Felix Schmitt, and Peter Stone. Reward (mis) design for autonomous driving. arXiv preprint arXiv:2104.13906, 2021.
|
| 227 |
+
|
| 228 |
+
Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. Large language models are zero-shot reasoners. arXiv, 2022.
|
| 229 |
+
|
| 230 |
+
Minae Kwon, Siddharth Karamcheti, Mariano-Florentino Cuellar, and Dorsa Sadigh. Targeted data acquisition for evolving negotiation agents. In International Conference on Machine Learning, pp. 5894–5904. PMLR, 2021.
|
| 231 |
+
|
| 232 |
+
Andrew K Lampinen, Ishita Dasgupta, Stephanie CY Chan, Kory Matthewson, Michael Henry Tessler, Antonia Creswell, James L McClelland, Jane X Wang, and Felix Hill. Can language models learn from explanations in context? arXiv preprint arXiv:2204.02329, 2022.
|
| 233 |
+
|
| 234 |
+
Mike Lewis, Denis Yarats, Yann N. Dauphin, Devi Parikh, and Dhruv Batra. Deal or no deal? end-to-end learning for negotiation dialogues. In Empirical Methods in Natural Language Processing (EMNLP), 2017.
|
| 235 |
+
|
| 236 |
+
Jessy Lin, Daniel Fried, Dan Klein, and Anca Dragan. Inferring rewards from language in context. arXiv preprint arXiv:2204.02515, 2022.
|
| 237 |
+
|
| 238 |
+
Suvir Mirchandani, Siddharth Karamcheti, and Dorsa Sadigh. Ella: Exploration through learned language abstraction. Advances in Neural Information Processing Systems, 34:29529–29540, 2021.
|
| 239 |
+
|
| 240 |
+
Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke E. Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Francis Christiano, Jan Leike, and Ryan J. Lowe. Training language models to follow instructions with human feedback. ArXiv, abs/2203.02155, 2022.
|
| 241 |
+
|
| 242 |
+
Alexander Pan, Kush Bhatia, and Jacob Steinhardt. The effects of reward misspecification: Mapping and mitigating misaligned models. arXiv preprint arXiv:2201.03544, 2022.
|
| 243 |
+
|
| 244 |
+
Simone Parisi, Aravind Rajeswaran, Senthil Purushwalkam, and Abhinav Kumar Gupta. The unsurprising effectiveness of pre-trained vision models for control. In ICML, 2022.
|
| 245 |
+
|
| 246 |
+
Antonin Raffin, Ashley Hill, Adam Gleave, Anssi Kanervisto, Maximilian Ernestus, and Noah Dormann. Stable-baselines3: Reliable reinforcement learning implementations. Journal of Machine Learning Research, 22(268):1–8, 2021. URL http://jmlr.org/papers/v22/20-1364.html.
|
| 247 |
+
|
| 248 |
+
Stephane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and structured ´ prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 627–635. JMLR Workshop and Conference Proceedings, 2011.
|
| 249 |
+
|
| 250 |
+
Dorsa Sadigh, Anca D. Dragan, S. Shankar Sastry, and Sanjit A. Seshia. Active preference-based learning of reward functions. In Proceedings of Robotics: Science and Systems (RSS), July 2017. doi: 10.15607/RSS.2017.XIII.053.
|
| 251 |
+
|
| 252 |
+
Katia Sycara, Daniel Zeng, et al. Benefits of learning in negotiation. In Proceedings of the AAAI National Conference on Artificial Intelligence. Menlo Park, California, pp. 36–41, 1997.
|
| 253 |
+
|
| 254 |
+
Peter Vavra, Luke J Chang, and Alan G Sanfey. Expectations in the ultimatum game: distinct effects of mean and variance of expected offers. Frontiers in psychology, 9:992, 2018.
|
| 255 |
+
|
| 256 |
+
Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3):229–256, 1992.
|
| 257 |
+
|
| 258 |
+
Jing Zhang, Xindong Wu, and Victor S Sheng. Learning from crowdsourced labeled data: a survey. Artificial Intelligence Review, 46(4):543–576, 2016.
|
| 259 |
+
|
| 260 |
+
Tony Z. Zhao, Eric Wallace, Shi Feng, Dan Klein, and Sameer Singh. Calibrate before use: Improving fewshot performance of language models. In International Conference on Machine Learning (ICML), 2021.
|
| 261 |
+
|
| 262 |
+
# A APPENDIX0 Tabl
|
| 263 |
+
|
| 264 |
+
# A.1 SUMMARY
|
| 265 |
+
|
| 266 |
+
OF RESULTS: IS IT IS POSSIBLE TO USE LLM AS A PROXY REWARD IN RL TRAINING?
|
| 267 |
+
Figure 5: Average Labeling and RL Agent Accuracy across the different objectives for each task across 3 seeds.
|
| 268 |
+
|
| 269 |
+
<table><tr><td colspan="5">Avg.Labeling Accuracy</td><td colspan="3">Avg.RL Agent Accuracy</td></tr><tr><td></td><td>Zero-shot Baseline (No Obj.)</td><td>Few-shot Baseline (SL)</td><td>Ours</td><td>Zero-shot Baseline (No Obj.)</td><td>Few-shot Baseline (SL)</td><td>Ours</td><td>True Reward</td></tr><tr><td>Ultimatum Game</td><td>-</td><td>0.67 ±0.34</td><td>0.91±0.27</td><td>-</td><td>0.67 ±0.34</td><td>0.9±0.26</td><td>1.0±0.02</td></tr><tr><td>Matrix Games</td><td>0.19 ±0.29</td><td>-</td><td>0.61±0.41</td><td>0.54±0.29</td><td>-</td><td>0.88±0.</td><td>1.0±0.</td></tr><tr><td>DEALORNODEAL</td><td></td><td>0.5± 0.47</td><td>0.9±0.22</td><td></td><td>0.33± 0.42</td><td>0.8±0.33</td><td>0.84 ±0.27</td></tr></table>
|
| 270 |
+
|
| 271 |
+
We provide a summary of results in Fig. 5. The figure depicts the average Labeling and RL Agent Accuracy computed across the different user objectives for each task, across 3 seeds. Overall, our approach is able to produce more objective-aligned reward signals than our baselines. Our approach is also able to produce objective-aligned policies that are close in accuracy to policies trained with the true reward.
|
| 272 |
+
|
| 273 |
+
# A.2 MORE RELATED WORKS
|
| 274 |
+
|
| 275 |
+
Reward Design. Our framework addresses reward design—how to engineer rewards so that they align with our objectives (Amodei et al., 2016). This is challenging because tasks often have conflicting objectives that a human must trade off (Pan et al., 2022). Misspecifying reward functions can lead to reward hacking, or the gaming of specified rewards. Reward hacking has appeared in various domains such as autonomous driving (Knox et al., 2021) and game-playing (Ibarz et al., 2018). We hope to address these challenges by leveraging LLMs and making it easier for humans to specify their objectives.
|
| 276 |
+
|
| 277 |
+
Imitation Learning & Preference-based Learning. Another method of specifying user objectives is to learn them from expert demonstrations (Ross et al., 2011) or preferences Sadigh et al. (2017). These techniques either assume access to large datasets (Christiano et al., 2017) or place restrictive assumptions (such as linearity) about the reward function (Sadigh et al., 2017). Recent work attempts to learn reward functions from language instructions using pragmatic reasoning (Lin et al., 2022). In contrast, our work relies on an LLM’s in-context learning abilities to provide a reward.
|
| 278 |
+
|
| 279 |
+
# A.3 LLM DEFINITION OF OBJECTIVES IN THE MATRIX GAME
|
| 280 |
+
|
| 281 |
+
<table><tr><td rowspan=1 colspan=1>LLMDefns.of ObjectivesTotal welfare is the sum of the rewards of both players.(√)</td></tr><tr><td rowspan=1 colspan=1>Equality of rewards is only possible if both players receive the same reward. (√)</td></tr><tr><td rowspan=1 colspan=1>Rawlsian fairness is defined as the maxmin value of the game, which is theminimum reward that the player could get assuming that the other player ismaximizing their reward. (X)</td></tr><tr><td rowspan=1 colspan=1>An outcome is Pareto-optimal if there is no other outcome that would make one player beter off without making the other player worse off.(√)</td></tr></table>
|
| 282 |
+
|
| 283 |
+
Table 2: Completion of each sentence given by LLM in pink. LLM provides correct definitions for objectives except for Rawlsian Fairness, which is partially correct.
|
| 284 |
+
|
| 285 |
+
# A.4 DETAILS ON RL ENVIRONMENTS AND TRAINING
|
| 286 |
+
|
| 287 |
+
Ultimatum Game. The environment is a single horizon with discrete actions (i.e., accept or reject) and continuous observations (i.e., a proposed split). We train DQN agents using the Stable Baselines3 implementation for 1e4 timesteps with a learning rate of 1e-4 across 3 seeds (Raffin et al., 2021). We instantiate our policy as a MLP with the default parameters used in Stable Baselines3.
|
| 288 |
+
|
| 289 |
+
Parser $g$ . The parser $g$ that transforms the LLM’s output into an integer reward signal is defined using a handcrafted parser. When prompting the LLM, we structure the labels for each example to be in “Yes/No” form which enables the LLM to also reply using the same format. We are then able search for the “Yes” or “No” strings and parse them into a 1 or 0 respectively. In the rare occasion that the LLM does not respond in this form, we skip the episode during RL training and omit the example from our evaluation.
|
| 290 |
+
|
| 291 |
+
Further Analysis on Performance of No Objective Baseline. The average LLM accuracy of a random baseline across the four matrix games are Welfare: 0.125, Equality: 0.125, Rawlsian Fairness: 0.078, Pareto-optimality: 0.172. The No Objective baseline’s performance is close to random as can be verified by comparing the random baseline results with Figure 3 (top row).\* Behaviorally, we observe that No Objective acts like a random baseline: the LLM often hallucinates matrix game rewards and also displays incoherent reasoning when selecting answers.
|
| 292 |
+
|
| 293 |
+
Matrix Game.. The environment is a single horizon with discrete actions (i.e., one of the four joint actions) and no observations. We train DQN agents using the Stable Baselines3 implementation for 500 timesteps with a learning rate of 1e-4 across 3 seeds (Raffin et al., 2021). We instantiate our policy as a MLP with the default parameters used in Stable Baselines3.
|
| 294 |
+
|
| 295 |
+
Parser $g$ . We parse the LLM’s response by hand, since LLM output can be variable in zero-shot settings.
|
| 296 |
+
|
| 297 |
+
DEALORNODEAL. We use a version of the DEALORNODEAL environment used in Kwon et al. (2021). In the environment, the goal is for an agent $A$ to come to an agreement with a partner $B$ on the allocation of a set of objects (books, hats, and balls). During each negotiation, agents receive a context, $c _ { A } = [ i ; u _ { A } ] , c _ { B } =$ $[ i ; u _ { B } ]$ , detailing the count of each item $i$ as well as their private utilities, $u _ { A } , u _ { B }$ . Item counts and utilities are represented as vectors $i \in \{ 1 , . . . , 4 \} ^ { 3 }$ and $u _ { A } , u _ { B } \in \{ 0 , \bar { . . . } , 1 0 \} ^ { 3 }$ and are sampled uniformly.
|
| 298 |
+
|
| 299 |
+
After receiving contexts $c _ { A } , c _ { B }$ , an agent is randomly selected to begin the negotiation. Agents negotiate for $T$ time steps by exchanging coarse dialogue acts $x _ { t }$ at each time step $1 \leq t \leq T$ (He et al., 2018). Rather than negotiate directly in natural language, where the generation problem is hard and can result in degenerate dialogues (He et al., 2018), we use these dialogue acts instead to focus on learning diverse and interpretable strategies.
|
| 300 |
+
|
| 301 |
+
A dialogue act $x _ { t }$ is one of five actions: propose, insist, agree, disagree, or end. The propose and insist acts take allocations of items as arguments $o \ = \ [ o _ { A } ; o _ { B } ]$ where $o _ { A } , o _ { B } \in \{ 1 , . . . , 4 \} ^ { 3 }$ (e.g., propose: books $^ { = 1 }$ , hat $S { = } 2$ , $\mathtt { b a l l s } = 1$ ). When an agent selects end, the conversation terminates and each agent is asked to make their final selection.
|
| 302 |
+
|
| 303 |
+
If agents agree on the final allocation of items, i.e., $o _ { A } + o _ { B } = i$ , agents are awarded points based on their private utilities, $r _ { A } = u _ { A } \cdot o _ { A } , r _ { B } = u _ { B } \cdot o _ { B }$ . If agents do not agree, they receive 0 points. Each agent’s context is constrained so that the agent can receive a maximum of 10 points.
|
| 304 |
+
|
| 305 |
+
Agents are first trained using supervised learning on a dataset of human-human negotiations provided by (Lewis et al., 2017) to predict the next token. We use a learning rate of 1.0 and batch size of 16. We then fine-tune these agents using RL where they optimize the expected reward of each dialogue act using REINFORCE (Williams, 1992). Agents are trained on 250 contexts for 1 epoch with a learning rate of 0.1. We instantiate our policy with four GRUs (Chung et al., 2014). We closely follow the implementation outlined in (Kwon et al., 2021; Lewis et al., 2017), please refer to those papers for more training details.
|
| 306 |
+
|
| 307 |
+
Parser $g$ . The parser $g$ that transforms the LLM’s output into an integer reward signal is defined using a handcrafted parser. When prompting the LLM, we structure the labels for each example to be in “Yes/No” form which enables the LLM to also reply using the same format. We are then able search for the “Yes” or “No” strings and parse them into a 1 or 0 respectively. In the rare occasion that the LLM does not respond in this form, we skip the episode during RL training and omit the example from our evaluation.
|
| 308 |
+
|
| 309 |
+
# A.5 SL MODEL ARCHITECTURE AND TRAINING
|
| 310 |
+
|
| 311 |
+
Ultimatum Game. SL is trained to predict binary labels for a batch of proposed splits. We implemented SL as a multi-layer perceptron (MLP) network that consists of a single hidden layer with depth 32. We also use ReLU activations after our input and hidden layers. We trained the model on the same 10 examples we gave to LLM for 5 epochs with the Adam optimizer. We evaluate the model on the 50 heldout test examples and save the model with the best test accuracy. We show the training and test accuracy for each user objective below:
|
| 312 |
+
|
| 313 |
+
Table 3: Training accuracy for SL on the Ultimatum Game.
|
| 314 |
+
|
| 315 |
+
<table><tr><td></td><td>30%</td><td>60%</td><td>$10</td><td>$100</td><td>Ineq. Aversion</td></tr><tr><td>Train Acc. (10 examples)</td><td>1.0</td><td>1.0</td><td>0.9</td><td>1.0</td><td>1.0</td></tr><tr><td>Train Acc. (1 example)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td></tr></table>
|
| 316 |
+
|
| 317 |
+
DEALORNODEAL. SL is trained to predict binary labels given a negotiation as input. We closely follow the implementation of a SL model found in (Kwon et al., 2021; Lewis et al., 2017). A negotiation consists of a context, coarse dialogue acts exchanged between Alice and Bob, and the outcome of the negotiation (the final split of items and whether agents agreed or disagreed). Please refer to Sec. A.4 for more details on the environment. We implement SL using a MLP context encoder, MLP outcome encoder, and a GRU ((Chung et al., 2014)) to process the coarse dialogue acts. The MLP encoders consist of an embedding layer followed by a linear layer with a Tanh activation function; we use a hidden size of 64 for the context encoder’s linear layer. We similarly embed each coarse dialogue act before feeding it into the GRU. We use a hidden size of 128 for the GRU. We train SL on the same 3 examples we use in our prompt for LLM. We train for a maximum of 50 epochs using the Adam optimizer. SL received a training accuracy of $1 0 0 \%$ for all of our objectives.
|
| 318 |
+
|
| 319 |
+
# A.6 HOW DATA-EFFICIENT IS OUR METHOD?
|
| 320 |
+
|
| 321 |
+

|
| 322 |
+
SL Labeling Accuracy When Trained with # Additional Labeled Examples
|
| 323 |
+
Figure 6: SL requires on the order of hundreds of more labeled examples in order to be comparably accurate to the LLM.
|
| 324 |
+
|
| 325 |
+
A.7 HOW MUCH DOES LLM’S LABELING ACCURACY CHANGE WHEN WE VARY THE PROMPT?
|
| 326 |
+
Effect of Prompt Variation on Labeling Accuracy for Stubborn (N=3, 3 seeds)
|
| 327 |
+
Figure 7: On average, varying the prompt does not have a large impact on the accuracy of the LLM.
|
| 328 |
+
|
| 329 |
+
<table><tr><td>SL</td><td>Ours</td><td>Vary Keyword</td><td>Vary Example Negotiations</td><td>Vary Explanations</td></tr><tr><td>0.58 ± 0.48</td><td>0.97 ± 0.16</td><td>0.91±0.28</td><td>0.93 ±0.28</td><td>0.79 ±0.33</td></tr></table>
|
| 330 |
+
|
| 331 |
+
We analyze the effect of varying prompts on the LLM’s labeling accuracy for the Stubborn negotiating style in DEALORNODEAL. We vary prompts in three ways: we vary the keyword (i.e., replacing “Stubborn” with its synonyms), the example negotiations, and the explanations associated with each example.
|
| 332 |
+
|
| 333 |
+
When varying the keyword, we use the synonyms: “Headstrong”, “Obstinate”, and a less commonly used word, “Froward”. To vary example negotiations, we randomly sample three new negotiations to have counterbalanced labels, all positive labels, or all negative labels. We vary the explanations by coming up with two plausible sets of explanations a user might have given for each example. We also experiment with the scenario where we give no explanations. Results are shown in Fig. 8. Overall, varying prompts do not have a large impact on labeling accuracy — they all outperform the baseline. However, the quality of explanation seems to have the largest impact on labeling accuracy.
|
| 334 |
+
|
| 335 |
+
# A.8 WHAT IS THE IMPORTANCE OF INCLUDING THE TASK DESCRIPTION, $\rho _ { 1 }$ IN THE PROMPT?
|
| 336 |
+
|
| 337 |
+
We experiment with removing $\rho _ { 1 }$ , the task description in the Ultimatum Game with a single example followed by an explanation. Performance increases slightly in LLM labeling accuracy (avg. of $8 \%$ ) and RL agent accuracy (avg. of $9 \%$ ). We run the same experiment in the Ultimatum game in the case of 10 examples with no explanation. Performance drops slightly in LLM labeling accuracy (avg. $4 . 4 \%$ ) and RL agent accuracy (avg. $5 . 3 \%$ ). We conclude that $\rho _ { 1 }$ is not conclusively influential in improving performance in few-shot settings.
|
| 338 |
+
|
| 339 |
+

|
| 340 |
+
Figure 8: Varying prompts do not have a large impact on labeling accuracy.
|
| 341 |
+
Figure 9: Example negotiations after Alice is trained with reward signals from LLM in DEALORNODEAL. We illustrate qualitative differences in how Alice negotiates for the same context. $B o b$ is an agent that is trained with supervised learning.
|
| 342 |
+
|
| 343 |
+
# A.9 EXPERIMENTING WITH SMALLER LLM SIZES
|
| 344 |
+
|
| 345 |
+
We experiment with GPT-2, a 1.5B parameter model. We We find that GPT-2 underperforms GPT-3 in both labeling (avg. $1 5 \%$ ) and RL agent accuracy (avg. $4 9 \%$ ). GPT-2 outperforms the SL baseline in labeling accuracy (avg. $2 4 \%$ ), and slightly underperforms the SL baseline for RL agent accuracy (avg. $2 . 7 \%$ ). Results are averaged across styles and seeds. GPT-2 (1.5B) is several orders smaller than GPT-3 (175B), and we expect models larger than GPT-2 to close the gap with GPT-3’s performance.
|
| 346 |
+
|
| 347 |
+
A.10 EXAMPLE NEGOTIATIONS
|
| 348 |
+
|
| 349 |
+
# Context
|
| 350 |
+
|
| 351 |
+
Alice : book=(count:1 value:0) hat=(count:1 value:7) ball=(count:3 value:1) Bob : book=(count:1 value:3) hat=(count:1 value:7) ball=(count:3 value:0)
|
| 352 |
+
|
| 353 |
+
<table><tr><td rowspan=1 colspan=1>Versatile</td></tr><tr><td rowspan=1 colspan=1>Alice : propose: item0=1 item1=1 item2=0Bob :propose: item0=0 item1=1 item2=0Alice : propose: item0=1 item1=0 item2=2Bob :agree</td></tr><tr><td rowspan=1 colspan=1>Agreement!Alice : 2 pointsBob :7 pointsCompetitive</td></tr><tr><td rowspan=1 colspan=1>Alice : propose: item0=1 item1=0 item2=3Bob : propose: item0=1 item1=1 item2=0Alice : insist: item0=0 item1=1 item2=3Bob :agree</td></tr><tr><td rowspan=1 colspan=1>Agreement!Alice : 10 pointsBob :3 points</td></tr></table>
|
| 354 |
+
|
| 355 |
+
<table><tr><td>Push-over</td></tr><tr><td>Alice : propose: item0=1 item1=0 item2=3 Bob :propose: itemO=1 item1=1 item2=0 Alice :agree Agreement! Alice : 3 points</td></tr><tr><td>Bob :10 points Stubborn Alice : propose: item0=0 item1=1 item2=1</td></tr><tr><td>Bob :propose: item0=0 item1=1 item2=0 Alice : propose: item0=0 item1=1 item2=1 Bob : propose: item0=0 item1=1 item2=0 Alice : propose: item0=0 item1=1 item2=1 Bob :propose: item0=0 item1=1 item2=0 Alice : propose: item0=0 item1=1 item2=1 Bob:propose: item0=0 item1=1 item2=0 Alice : propose: item0=0 item1=1 item2=1</td></tr></table>
|
| 356 |
+
|
| 357 |
+
Disagreement?! Alice : 0 (potential 0) Bob : 0 (potential 0)
|
| 358 |
+
|
| 359 |
+
# A.11 EXAMPLE OF PROMPTS USED IN OUR EXPERIMENTS
|
| 360 |
+
|
| 361 |
+
# A.11.1 ULTIMATUM GAME
|
| 362 |
+
|
| 363 |
+
Further Explanation of Our Prompt Selection Process. When constructing our explanations, we encourage the LLM to produce intermediate reasoning steps by using the “Let’s think step by step” template usedUltimatum prompt in Kojima et al. (2022) which has been shown to improve performance.
|
| 364 |
+
|
| 365 |
+

|
| 366 |
+
Figure 10: An example of few-shot prompts used for the Ultimatum Game. We highlight the four parts of each pro
|
| 367 |
+
|
| 368 |
+
# A.11.2 MATRIX GAMES
|
| 369 |
+
|
| 370 |
+
Further Explanation of Our Prompt Selection Process. We found that structuring the outcomes of the game as a multiple choice question improved performance. We also encouraged the LLM to produce intermediate reasoning steps by using the “Let’s think step by step” template used in Kojima et al. (2022) which has been shown to improve performance.Matrix prompt
|
| 371 |
+
|
| 372 |
+

|
| 373 |
+
Figure 11: Examples of a zero-shot prompts used for each objective, including the no-objective baseline, in the Matrix Games. Due to limited resources when querying GPT-3, we queried GPT-3 in a batched manner and saved the corresponding labels to train our RL agents. Consequently, we do not have an Episode outcome in our prompts.
|
| 374 |
+
|
| 375 |
+
# A.11.3 DEALORNODEAL
|
| 376 |
+
|
| 377 |
+
Further Explanation of Our Prompt Selection Process. We chose 3 counterbalanced examples from a training set of sample negotiations. This training set was generated via selfplay using an RL agent trained
|
| 378 |
+
|
| 379 |
+
Figure 12: Examples of regular and scrambled outcomes for the Chicken Game (Matrix Game experiments). Scrambling creates new associations between joint actions and joint rewards. We scramble the outcomes in order to remove any bias LLM may have towards the order in which outcomes are normally presented.
|
| 380 |
+
|
| 381 |
+
<table><tr><td>Chicken Game (Regular Order)</td><td>Chicken Game (Scrambled Order)</td></tr><tr><td>We have a two-player game where P1 and P2 can choose one of these options.</td><td>We have a two-player game where P1 and P2 can choose one of these options.</td></tr><tr><td>Options: A.if action1(P1) and action1(P2)=>P1 gets reward of 2, P2 gets reward of 2.</td><td>Options: A. if actionl(P1) and actionl(P2) =>P1 gets reward of 3,P2 gets reward of 1.</td></tr><tr><td>B. if action1(P1) and action2(P2)=>P1 gets reward of 1,P2 gets reward of 3.</td><td>B.if action1(P1) and action2(P2)=>P1 gets reward of 2,P2 gets reward of 2.</td></tr><tr><td>C.if action2(P1) and action1(P2)=>P1 gets reward of 3,P2 gets reward of 1.</td><td>C.if action2(P1) and action1(P2)=>P1 gets reward of 1, P2 gets reward of 3.</td></tr><tr><td>D.if action2(P1) and action2(P2)=>P1 gets reward of 0,P2 gets reward of 0.</td><td>D.if action2(P1)and action2(P2)=>P1 gets reward of 0,P2 gets reward of 0.</td></tr><tr><td></td><td></td></tr><tr><td>Which option(s) are Pareto-optimal? Let's think step by step:</td><td>Which option(s) are Pareto-optimal? Let's think step by step:</td></tr><tr><td>An outcome is Pareto-optimal if</td><td>An outcome is Pareto-optimal if</td></tr></table>
|
| 382 |
+
|
| 383 |
+
with a greedy reward (no particular style). We chose to complement our examples with simple and succinct explanations.
|
| 384 |
+
|
| 385 |
+

|
| 386 |
+
Figure 13: Example of a prompt used for DEALORNODEAL.
|
parse/dev/10uNUgI5Kl/10uNUgI5Kl_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/10uNUgI5Kl/10uNUgI5Kl_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/10uNUgI5Kl/10uNUgI5Kl_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/1KaSx3GrBBm/1KaSx3GrBBm.md
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MOVING BEYOND HANDCRAFTED ARCHITECTURES IN SELF-SUPERVISED LEARNING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
The current literature on self-supervised learning (SSL) focuses on developing learning objectives to train neural networks more effectively on unlabeled data. The typical development process involves taking well-established architectures, e.g., ResNet or ViT demonstrated on ImageNet, and using them to evaluate newly developed objectives on downstream scenarios. While convenient, this neglects the role of architectures which has been shown to be crucial in the supervised learning literature. In this work, we establish extensive empirical evidence showing that a network architecture plays a significant role in contrastive SSL. We conduct a large-scale study with over 100 variants of ResNet and MobileNet architectures and evaluate them across 11 downstream scenarios in the contrastive SSL setting. We show that there is no one network that performs consistently well across the scenarios. Based on this, we propose to learn not only network weights but also architecture topologies in the SSL regime. We show that “self-supervised architectures” outperform popular handcrafted architectures (ResNet18 and MobileNetV2) while performing competitively with the larger and computationally heavy ResNet50 on major image classification benchmarks (ImageNet-1K, iNat2021, and more). Our results suggest that it is time to consider moving beyond handcrafted architectures in contrastive SSL and start thinking about incorporating architecture search into self-supervised learning objectives.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Self-supervised learning (SSL) achieves impressive results on challenging tasks involving image, video, audio, and text. Models pretrained on large unlabeled data perform nearly as good and sometimes even better than their supervised counterparts (Caron et al., 2020; Chen & He, 2021). So far, the focus has been on designing effective learning objectives – e.g., pretext tasks (Gidaris et al., 2018; Caron et al., 2018), contrastive (Oord et al., 2018; Chen et al., 2020a) and noncontrastive (Grill et al., 2020) tasks – together with empirical (Cole et al., 2021; Feichtenhofer et al., 2021) and theoretical (Arora et al., 2019; Poole et al., 2019) studies providing key insights and underpinnings. Recent works propose new objectives with a different class of network architectures such as vision transformers (ViT) (Bao et al., 2021) and masked autoencoders (He et al., 2022).
|
| 12 |
+
|
| 13 |
+
However, there has been little focus on the role of architectures in SSL. Currently, the de facto protocol in SSL is to take architectures that perform well on established benchmarks in the supervised setting and to adapt them to the self-supervised setting by plugging in different learning objectives. For example, several existing work on contrastive learning use ResNet (He et al., 2016) as the backbone (Chen et al., 2020a; He et al., 2020). This is partly for convenience. Evaluating different architectures in SSL is computationally expensive; selecting an architecture in advance and fixing it throughout makes it easy to evaluate different learning objectives. This also stems from strong empirical success of those architectures in transfer learning, e.g., CNNs trained on large labeled data provide “unreasonable effectiveness” (Sun et al., 2017; Zhang et al., 2018; Sejnowski, 2020) in a variety of downstream cases. Nonetheless, one implicit assumption is that an architecture that works well in the supervised learning scenario will continue to be effective in the SSL regime.
|
| 14 |
+
|
| 15 |
+
We argue that this assumption is incorrect and dangerous. It is valid only to a limited extent and the performance starts deteriorating significantly when SSL is conducted on data whose distribution deviates much from the original distribution the architecture was trained on. This is counter to the promise of SSL, where one can learn optimal representation for a wide range of tasks. One main reason for performance degradation is that different data distributions benefit from different inductive biases: An architecture with specific layer types and the wiring between them naturally encodes inductive biases, which may be optimal only for a certain data distribution (e.g., objectcentric imagery such as ImageNet) and not for others (e.g., medical and satellite imagery). In fact, numerous studies have shown that standard “recipes” for architecture design do not translate well across different data distributions (Tuggener et al., 2021; Dey et al., 2021; Kolesnikov et al., 2019).
|
| 16 |
+
|
| 17 |
+
The main objective of this work is to show that the choice of network architecture crucially matters in SSL, and that it is not easy to handcraft architectures that are effective across different SSL scenarios. To see this, recall that the goal of SSL is to learn data representations capturing important features and attributes that generalize well across various downstream tasks. There has been extensive literature on the expressivity of neural networks (Raghu et al. (2017); Zhang et al. (2021a) and references therein); one of the important conclusions is that the network topology plays a significant role in determining the expressivity, i.e., the kinds of functions a network can approximate is bounded by the network capacity and available sample size in the finite sample regime. This implies that, in practice, SSL with a fixed architecture learns representations only within the scope of function space induced by the pre-selected architecture topology, and therefore, the ultimate success of SSL can be achieved when it finds optimal architecture from certain search space in conjunction with its weights for specific data distributions.
|
| 18 |
+
|
| 19 |
+
In this paper, we establish extensive empirical evidence showing that architecture matters in selfsupervised learning. We do this in two sets of large-scale studies. First, we sample 116 variants of ResNet (He et al., 2016) and MobileNet (Sandler et al., 2018) architectures with different topologies and evaluate them on 11 downstream tasks in the SSL setting. We pretrain all models under the same setting, optimizing the SimCLR objective (Chen et al., 2020a) on ImageNet (Deng et al., 2009), and investigate if there exist any correlation between these models in downstream performance on different datasets. We observe no strong correlation, except for tasks highly similar to ImageNet. We further show that ImageNet downstream performance, the gold standard benchmark in the SSL literature, is not indicative of performance on other downstream tasks. This implies that we need to be careful in choosing an architecture for evaluating any newly developed SSL objectives, as one might get different conclusions based on different network architectures.
|
| 20 |
+
|
| 21 |
+
This subsequently raises the question: Can we improve SSL by learning not only network weights but also architectures directly optimized for the given dataset? It removes the burden of manually searching for effective architectures in SSL, and if we succeed, it can substantially improve performance of SSL. To test this hypothesis, as the second set of our study, we apply a well-established NAS algorithm (Cai et al., 2018) to the SSL setting. Unlike the typical NAS setting that optimize on a labeled target dataset, we search for optimal architectures directly on an unlabeled pretraining dataset via contrastive learning (Chen et al., 2020a). We evaluate our $\mathrm { ^ { 6 6 } N A S } + \mathrm { S S L } ^ { \mathrm { 3 } }$ framework on datasets with different distributions, ImageNet-1K and iNat 2021 (Van Horn et al., 2021), and show that self-supervised architectures consistently outperform handcrafted ones in the same parameter range (MobileNetV2 and ResNet18) across 11 downstream tasks. This provides strong evidence suggesting the importance of learning architecture topologies in addition to their weights in SSL.
|
| 22 |
+
|
| 23 |
+
Our work focuses on studying the role of architectures in contrastive SSL with the SimCLR framework for CNN-based architectures such as ResNets and MobileNets. As a first step in this direction, we provide an in-depth analysis through large-scale experiments in this specific (yet limited) setting. Extending our study to different SSL approaches (He et al., 2020; Grill et al., 2020; He et al., 2022) and architectures such as ViTs would be an interesting direction but beyond the scope of this paper.
|
| 24 |
+
|
| 25 |
+
In summary, our main contributions are: 1) We establish extensive evidence showing that there isn’t one network architecture performing consistently well across different downstream scenarios in the SimCLR setting. We show this using 116 variants of ResNet and MobileNet architectures pretrained on ImageNet and evaluated on 11 downstream datasets. 2) We show that ImageNet performance (the gold standard in SSL benchmark) is not always indicative of downstream performance. This means that findings about SSL objectives shown only on ImageNet do not generalize across other data distributions. 3) We propose to self-supervise a CNN architecture topology and its network weights on unlabeled data. We show that self-supervised architectures outperform handcrafted ones in a similar parameter range for the SimCLR setting across different downstream datasets.
|
| 26 |
+
|
| 27 |
+
# 2 RELATED WORK
|
| 28 |
+
|
| 29 |
+
Role of architectures in SSL. There has been significant progress in learning representations via SSL (Gidaris et al., 2018; Chen et al., 2020a;c; Caron et al., 2020). Ericsson et al. (2021) provide an overview of different SSL setups and their performance on downstream tasks. Most works focus on improving self-supervised objectives to develop better representations while keeping architectures fixed. Our focus is orthogonal to this line of work. We study the role of architectures in SSL and investigate the benefits of self-supervising architecture topologies along with network weights.
|
| 30 |
+
|
| 31 |
+
Similar to ours, Kornblith et al. (2019) analyze transfer performance of different architectures pretrained on ImageNet across several downstream datasets. However, they focused on supervised learning, which need not translate to self-supervised setups (Kolesnikov et al., 2019). Caron et al. (2021) propose a self-distillation based SSL objective and compare the performance of ResNets with ViTs. In contrast, we focuse on contrastive SSL and the importance of architecture topologies for the class of CNNs. Kolesnikov et al. (2019) is the most related to ours but are limited to pretext-task based SSL and show results only for a few variants of VGG and ResNet. In comparison, we conduct a study on a much larger scale in a contrastive learning setup. Also, we provide insights into generalization performance of the networks across different datasets. Crucially, unlike all previous work in SSL, we propose to learn both architecture topologies and their network weights.
|
| 32 |
+
|
| 33 |
+
NAS and SSL. The literature on NAS has rapidly progressed in the past years; we refer the reader to the NAS survey by Elsken et al. (2019). Here we focus on the most directly relevant work to SSL. Mellor et al. (2021) search for networks without any training and verify their effectiveness of supervised benchmarks. Liu et al. (2020) show that highly performant architectures can be found without using any supervised labels during the search itself, and propose using DARTS (Liu et al., 2019) with self-supervised proxy tasks to search for architectures which will perform well on supervised datasets. In a similar vein, Zhang et al. (2021b) use random labels during the search phase of NAS, and Yan et al. (2020) learn representations of architectures via SSL and use them to improve NAS. Li et al. (2021) introduce a new self-supervised training scheme to search for architectures in a new hybrid search space. One common theme in this line of work is that they aim to harness SSL in aid of NAS. In contrast, we aim to utilize NAS to hunt for architectures which will perform well for self-supervised learning, thereby harnessing NAS in aid of SSL.
|
| 34 |
+
|
| 35 |
+
# 3 DOES ONE NETWORK RULE THEM ALL IN SSL?
|
| 36 |
+
|
| 37 |
+
We conduct a large scale study to investigate whether a particular architecture topology can be consistently effective across a wide range of SSL scenarios. To this end, we sample 116 models with different architecture topologies and analyze their performance on 11 downstream tasks.
|
| 38 |
+
|
| 39 |
+
To maximize generality while taming complexity of our study, we choose two most representative CNN architectures: ResNets and MobileNets. The former is the de facto backbone for numerous modern visual models (Kirillov et al., 2019; Wu et al., 2019) and SSL approaches (Caron et al., 2020; Chen & He, 2021), while the latter is used in low-resource setups (Cheng et al., 2017). We create 69 ResNet-like and 47 MobileNet-like architectures for our evaluation, varying the number of blocks at each of the 4 stages of a ResNet, the block structure (BasicBlock and Bottleneck), width, and number of groups. For MobileNet, we vary the width multiplier parameter and the number of blocks in each of the 6 stages. We choose the SimCLR objective (Chen et al., 2020a) for our experiments and pretrain each of the 116 architectures on ImageNet-1K. Owing to the large scale nature of the experiments and computational constraints, we limit the pretraining to 100 epochs and a batch size of 512. Each of these jobs takes roughly 1 day to finish on a system with $8 \times \mathrm { ~ V 1 0 0 ~ }$ (32GB) GPUs. We report linear evaluation results in all cases.
|
| 40 |
+
|
| 41 |
+
ImageNet performance is not indicative of downstream performance for SSL. To examine the correlation between ImageNet vs. downstream performance, we compute the Spearman’s rank correlation coefficient $\rho$ on top-1 validation accuracy between every dataset pair, shown in Fig. 1. We also show scatter plots in Fig. 2 revealing the relationship between ImageNet vs. downstream performance on the most representative cases; the complete set of scatter plots are in the appendix.
|
| 42 |
+
|
| 43 |
+
For ResNet-like architectures (Fig. 2 top row), we see strong correlation between ImageNet and CIFAR-100 ( $\rho = . 8 )$ ) as these datasets contain similar categories; about 90 classes in CIFAR-100 are the same class or a superclass in ImageNet. A similar observation is made (in Fig. 1) for Stanford Dogs $( \rho = . 7 7 )$ due to the 120 dog categories in ImageNet. However, we observe high variance in transfer performance for out-of-domain datasets, e.g., Flowers $( \rho = . 3 5 )$ , represented by only two ImageNet categories (daisy and yellow lady slipper). Correlation becomes negative on Stanford Cars $( \rho = - . 2 9 )$ and FGVC Aircraft $( \rho = - . 2 4 )$ , likely because ImageNet contains only a few categories of cars (10 classes) and aircraft (4 classes). Low correlation means network ranks are inconsistent and models performing well on ImageNet do not keep their precedence in other tasks.
|
| 44 |
+
|
| 45 |
+

|
| 46 |
+
Figure 2: ImageNet performance is not indicative of downstream performance in SSL. We show linear evaluation top-1 accuracy of ImageNet (x-axis) vs. downstream datasets (y-axis) obtained from variations of ResNet (top) and MobileNet (bottom); all models are pretrained on ImageNet-1K using SimCLR under the same protocol. The solid lines and shaded areas indicate fitted regression models and their confidence intervals.
|
| 47 |
+
|
| 48 |
+
For MobileNet-like architectures (Fig. 2 bottom row), we see overall much lower correlation with ImageNet performance; the ResNet space showed correlation at least for in-distribution datasets. For e.g., we see correlation between ImageNet and CIFAR-100 drops from $\rho = . 8$ (ResNet) to $\rho \ = \ . 2 3$ (MobileNet). For other datasets like MIT67, correlation is higher $( \rho ~ = ~ . 5 2 )$ but still less meaningful due to high variability in performance (notice the cluster around $42 \%$ accuracy). These results indicate that MobileNets are even less tuned towards ImageNet than ResNets and any handcrafted architectures in this space is likely to be suboptimal on ImageNet and other downstream datasets.
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
Figure 1: ImageNet performance isn’t indicative of downstream performance in SSL. We show rank correlation between each pair of top-1 accuracy on 11 downstream tasks obtained from ImageNet-pretrained ResNets. We see no strong correlation except for ones similar to ImageNet, e.g., CIFAR-10/100 and Dogs120.
|
| 52 |
+
|
| 53 |
+
Our results highlight that the same architecture recipes in terms of ImageNet accuracy, which is frequently used as a predictor for various selfsupervised tasks, do not work well for different datasets in the SimCLR setting.
|
| 54 |
+
|
| 55 |
+
Larger networks do not always perform better in contrastive SSL. In general, large-parameter models yield better performance on ImageNet, both in supervised (Kornblith et al., 2019) and SSL setups (Chen et al., 2020a). We examine whether this trend holds for downstream datasets some of which are widely different from ImageNet. We follow the same setup as above and compute the
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
Figure 3: Larger models do not always perform better in SSL. We show the model size in terms of parameter counts ( $\mathbf { \widetilde { x } }$ -axis) vs. top-1 accuracy on different datasets obtained from variations of ResNet (top) and MobileNet (bottom) architectures; all models are pretrained on ImageNet-1K using SimCLR under the same protocol.
|
| 59 |
+
|
| 60 |
+
correlation between number of model parameters and top-1 validation accuracy on different datasets.
|
| 61 |
+
Fig. 3 shows scatter plots of the most representative results; full results are in the appendix.
|
| 62 |
+
|
| 63 |
+
For ResNet-like architectures (Fig. 3 top row), we do not see strong trends indicating larger models always perform better. In fact, on some downstream tasks we see negative correlation (Aircraft, $\rho =$ $- . 3 7 )$ with lighter networks being favored for better performance, or even non-linear relationship, e.g., notice the slight “U” pattern on Stanford Cars $\zeta = - . 1 4 )$ , indicating the behavior of ResNets on these datasets are wildly unexpected. Unsurprisingly, there is strong correlation with ImageNet $( \rho = . 8 5 )$ and CIFAR-100 $\langle \rho = . 8 7 \rangle$ , likely because ResNets are heavily hand-tuned on the kinds of images observed in these datasets. These results clearly suggest that the same architecture recipes which work well for ImageNet (increasing parameters through depth and width) do not hold for other downstream scenarios.
|
| 64 |
+
|
| 65 |
+
For MobileNet-like architectures (Fig. 3 bottom row), we see that there exists almost no interpretable trend. The fitted regression models (solid lines) and their confidence intervals (shaded area) show that the relationships are highly non-linear and non-monotonic; we shouldn’t read too much into the correlation coefficients (reported for completeness). These results indicate that MobileNets do not favor any one architecture and it is heavily reliant on the dataset it is trained on.
|
| 66 |
+
|
| 67 |
+
Our results suggest that larger models are not always better in SSL; lighter models can outperform heavier models on tasks like FGVC Aircraft. Previous work (Chen et al., 2020b) showed that increasing network depth/width improves downstream performance. However, they vary depth at a coarser level with 50/100/150 layers and width with $1 \times / 2 \times$ , leading to a large swing in network parameters (24-795M); here we show the same is not true at a finer level. Our results provide evidence that ResNet architectures are tuned to scale well on ImageNet but not the others; the trend is even weaker for MobileNet-like architectures, suggesting they are optimized for computational efficiency and not for achieving high accuracy on any particular dataset.
|
| 68 |
+
|
| 69 |
+
There is no winner in the battle of top vs. bottom heavy networks in SSL. Raghu et al. (2017) showed that CNNs are more sensitive to lower (initial) layer weights, suggesting that “not all weights are created equal” across layers. This raises the question: If CNNs are more sensitive to lower layers, will increasing the parameter count for lower layers yield better performance in SSL? To get insights into this, we split a network into two halves: “top” (layers closer to output) and “bottom” (closer to input). We use the ratio of top to bottom parameters as a measure of networks being “top-heavy” (high ratio) or “bottom-heavy” (low ratio).
|
| 70 |
+
|
| 71 |
+
Fig. 4 shows the downstream accuracy for ImageNet, Stanford Cars and Sports against this ratio. From the top-left subplot, we see that ResNet-ImageNet accuracy tend to increase with high top:bottom ratio, showing top-heavy networks generally perform better than the bottom-heavy counterparts. However, we no longer observe such trend in other datasets, and with MobileNets (Fig. 4 bottom row) we do not see such trend even for ImageNet.
|
| 72 |
+
|
| 73 |
+
An important point to realize: It is necessary to allocate the right portion of parameters to different layers of a given network topology, instead of allocating parameters in the top-heavy or bottom-heavy fashion assuming one will generally lead to better performance. ResNets and many other handcrafted CNNs (Simonyan & Zisserman, 2014; Szegedy et al., 2016; Huang et al., 2017) are usually top-heavy because of GPU memory limits; bottom-heavy networks occupy more memory in terms of activation maps. MobileNets alleviate this to some extent with lighter convolutions, allowing it to have more parameters in early layers. In object detection, Liang et al. (2019) also show that allocation of computational resources in the backbone is important for improved performance. While this architectural difference provides explanations about the wildly different trends we observe above, the key message here is that one recipe (top vs. bottom heavy) does not apply equally to different architectures, bolstering our claim that one network doesn’t rule them all in SSL.
|
| 74 |
+
|
| 75 |
+
Key takeaway: We need to move beyond handcrafted architectures in SSL. The three main observations above imply that finding an optimal architecture could be an important missing piece for selfsupervised learning. Our results show that the current practice in designing SSL objectives – i.e., optimizing for ImageNet performance based on ResNet backbones – could lead to misleading conclusions which do not generalize to other downstream scenarios. Also, the general belief that “the larger the better” in model size do not really hold in SSL, e.g., smaller
|
| 76 |
+
|
| 77 |
+

|
| 78 |
+
Figure 4: There is no winner in the top vs. bottom battle in SSL. Except for ResNet-ImageNet (top-left), we see no strong trend that suggests either top-heavy or bottom-heavy networks perform better.
|
| 79 |
+
|
| 80 |
+
ResNets can outperform larger ones even if they are pretrained following the same protocol. Let’s say, based on these observations, one is compelled to hunt for a new architecture geared specifically towards SSL. Our top vs. bottom analysis suggests that it can be extremely tricky to find the right architecture topology with optimal parameter allocation across different layers. All this suggests that it is time to consider moving beyond handcrafted architectures in SSL and start thinking about searching for optimal architectures as part of self-supervised learning objectives.
|
| 81 |
+
|
| 82 |
+
# 4 NEURAL ARCHITECTURE SEARCH FOR SSL
|
| 83 |
+
|
| 84 |
+
We turn to the idea of learning both the architecture topology and its network weights in an SSL framework, using NAS to improve SSL (rather than using SSL to improve NAS). It is important to draw a clear distinction between our idea and prior work that used SSL to improve NAS (Li et al., 2021; Liu et al., 2020; 2019; Yan et al., 2020; Zhang et al., 2021b) as well as work that used NAS to improve supervised learning (Elsken et al., 2019); our goal here is to show the benefit of harnessing NAS in aid of SSL and not for comparison with more recent SOTA NAS approaches.
|
| 85 |
+
|
| 86 |
+
While examining this idea appears to be straightforward, it requires careful design of experiments. The biggest hurdle is that both NAS and SSL require heavy compute resources; the former needs a search space large enough to cover a comprehensive range of architecture topologies, while the latter requires large datasets and batch sizes to be effective. This calls for an efficient framework to conduct our study. Furthermore, we need datasets large enough to pretrain the models on, and different enough to investigate the importance of data-dependent architectures in SSL. To meet our desiderata, we choose ProxylessNAS (Cai et al., 2018) as our NAS algorithm, MobileNet as our search space, and ImageNet-1K and iNat2021 (Van Horn et al., 2021) as our pretraining datasets.
|
| 87 |
+
|
| 88 |
+

|
| 89 |
+
Figure 5: Samples from datasets used in our study. We choose these datasets because of the apparent domain shift across them. ImageNet contains general yet coarsely categorized images compared to iNat2021, which contains an order of magnitude higher number of fine-grained categories; although some images look similar to each other, every image shown belongs to a different category highlighting the fine-grained nature of this dataset. The downstream datasets, except for CIFAR, are similarly fine-grained but on different domains.
|
| 90 |
+
|
| 91 |
+
# 4.1 EXPERIMENTAL SETUP
|
| 92 |
+
|
| 93 |
+
SSL objective. We use SimCLR (Chen et al., 2020a), one of the most well-established contrastive SSL framework. We follow the same augmentation methods and hyperparameter settings as in Chen et al. (2020a). While more recent SSL works exist (Caron et al., 2020; Chen & He, 2021), they are similar to SimCLR by utilizing a contrastive learning based objective. We adopt SimCLR for its simplicity and leave analysis of other SSL approaches for future work.
|
| 94 |
+
|
| 95 |
+
NAS algorithm. We choose ProxylessNAS for two reasons: efficiency and flexibility. One-shot NAS algorithms produce an architecture topology in a two-step process. They first find an optimal cell structure by solving a proxy task over a small dataset (e.g., CIFAR-10) and a smaller architecture (e.g., 8 cells), and then stack/repeat the best found cell topology for the target task (e.g., ImageNet with 20 cells). This reduces complexity at the cost of flexibility and introduces an optimization gap (Chen et al., 2021), requiring strong correlation between proxy and the actual target datasets. In contrast, ProxylessNAS produces an architecture by directly optimizing on a target task, as it can significantly ameliorate memory requirements of one-shot NAS methods. To ensure flexibility, it uses a “supernet” with a broad range of candidate operations orchestrating depth (via zero operations), width (via wider convolutions), and block structure (by allowing for operations to differ by level). At each training step, it optimizes one “subnet” on the target task as a surrogate, which greatly reduces compute and memory requirements.
|
| 96 |
+
|
| 97 |
+
Datasets. We use ImageNet-1K and iNat2021 to pretrain our models and evaluate them on their validation sets as well as on 10 downstream datasets used in Section 3. We deliberately choose the two pretraining datasets as they exhibit widely different characteristics, i.e., ImageNet-1K contains a variety of objects and scenes, while iNat2021 contains fine-grained species covering the tree of life. The former contains many inorganic object categories not present in the latter. This creates a domain gap, which allows us to investigate the importance of data-dependent architectures in SSL.
|
| 98 |
+
|
| 99 |
+
iNat2021 contains 2.7 million images (twice the size of ImageNet) representing 10K species (ten times more than ImageNet). To investigate the effect of dataset size during architecture search and pretraining, we use both the full and the mini versions of iNat2021 – the latter contains 500K images representing the same 10K classes. This gives us pretraining datasets at three different scales: 500K (iNat2021-mini), 1.2M (ImageNet), 2.7M (iNat2021).
|
| 100 |
+
|
| 101 |
+
Implementation details. For ProxylessNAS, we replace the original supervised classification loss with the contrastive loss of SimCLR and remove the latency loss as we currently do not consider hardware-constrained scenarios. We follow the original training schedule, i.e., a warmup phase for 40 epochs, which optimizes only the network weights and not the NAS parameters, followed by a search phase for 120 epochs. We use the SGD optimizer for network weights and the ADAM optimizer for NAS parameters, using initial learning rates of 0.25 and 0.1, respectively, and use the cosine decay schedule for both.
|
| 102 |
+
|
| 103 |
+
To make our experiments tractable, we use the MobileNetV2 search space which typically yields 3 to 18 million parameters; the ResNet search space is larger, yielding 20 to 60 million parameters. Working with smaller models means we can use large batch sizes, which is important for contrastive learning to work effectively; we use the batch size 640 given our computational budget. The candidate set of NAS operations consists of mobile inverted bottleneck convolution (MBConv) with kernel sizes $\{ 3 , 5 , 7 \}$ , expansion ratios $\{ 3 , 6 \}$ and zero operations. A higher expansion ratio enables a wider network with more channels for convolutions, while zero operations allow for choosing to remove operations, thereby learning the optimal depth. Once the search is done, we take the architecture and discard the learned weights; we train it again from scratch using the SimCLR objective on different datasets. This allows us to compare different architectures on fair ground. After pretraining, we conduct linear evaluation on all downstream datasets.
|
| 104 |
+
|
| 105 |
+
# 4.2 RESULTS AND DISCUSSION
|
| 106 |
+
|
| 107 |
+
Self-supervised architectures outperform handcrafted architectures in SSL. Table 1 compares our self-supervised architectures to MobileNetV2 and ResNet18/50, by searching, pretraining, and evaluating on ImageNet-1K, iNat2021 and iNat2021-mini. We report linear evaluation results on validation splits. The results show that our selfsupervised architectures outperform MobileNetV2 by a large margin, even with similar parameters (about 3M).
|
| 108 |
+
|
| 109 |
+
Table 1: Searched architectures vs. handcrafted architecture results. We search, pretrain, and evaluate ours on each of the three datasets in the last three columns. †SOTA results (in gray) from Chen et al. (2020a) for ImageNet and Cole et al. (2021) for iNat21 require larger batch sizes and longer training.
|
| 110 |
+
|
| 111 |
+
<table><tr><td>Model</td><td>Params</td><td>Batch</td><td>Epochs</td><td>ImageNet</td><td>iNat21</td><td>iNat21-mini</td></tr><tr><td>MobileV2</td><td>3.5M</td><td>640</td><td>100</td><td>41.9</td><td>30.2</td><td>13.6</td></tr><tr><td>Ours</td><td>3.3M</td><td>640</td><td>100</td><td>55.3</td><td>40.3</td><td>14.7</td></tr><tr><td>ResNet18</td><td>11M</td><td>640</td><td>100</td><td>49.8</td><td>30.3</td><td>20.1</td></tr><tr><td>ResNet50</td><td>23.5M</td><td>640</td><td>100</td><td>58.9</td><td>41.3</td><td>23.4</td></tr><tr><td>Ours</td><td>12-18M</td><td>640</td><td>100</td><td>59.1</td><td>43.8</td><td>25.1</td></tr><tr><td>ResNet50</td><td>23.5M</td><td>4096</td><td>1000</td><td>69.3t</td><td>50.6t</td><td>-</td></tr></table>
|
| 112 |
+
|
| 113 |
+
The self-supervised architectures also beat ResNet18 and ResNet50, with even smaller model size than ResNet50. The superior downstream performance of our approach should not be attributed solely to NAS, as the architecture search was performed without ever solving the downstream tasks. It is rather the incorporation of NAS into SSL that improved the quality of representations, leading to downstream performance boost. This shows the effectiveness of learning both the architecture topology and its weights in SSL.
|
| 114 |
+
|
| 115 |
+
Do self-supervised architectures generalize well to different data distributions? We take the three architectures searched on each dataset, discard their learned weights, and pretrain them on each dataset, yielding 9 pretrained models. We then evaluate the performance directly on validation splits of the respective datasets. Table 2 shows that transferring an architecture from $\mathrm { i N a t } 2 0 2 1$ to ImageNet leads to a marginal
|
| 116 |
+
|
| 117 |
+
Table 2: Self-supervised architecture transfer results. We evaluate architectures in the cross-dataset setting, pretraining and evaluating the searched architectures across three datasets (last three columns).
|
| 118 |
+
|
| 119 |
+
<table><tr><td>Searched on</td><td>Params</td><td>ImageNet</td><td>iNat21</td><td>iNat21-mini</td></tr><tr><td>ImageNet</td><td>12-18M</td><td>59.1</td><td>21.5</td><td>23.9</td></tr><tr><td>iNat21</td><td>12-18M</td><td>58.3</td><td>43.8</td><td>27.9</td></tr><tr><td>iNat21-mini</td><td>12-18M</td><td>58.0</td><td>22.4</td><td>25.1</td></tr></table>
|
| 120 |
+
|
| 121 |
+
performance drop compared to an architecture optimized directly on ImageNet $( 5 9 . 1 \%$ to $5 8 . 3 \%$ ); both these architectures still outperform handcrafted ResNet18 $( 4 9 . 8 \% )$ with a comparable model size. However, transferring an architecture from ImageNet to iNat2021 deteriorates performance significantly $( 4 3 . 8 \%$ to $2 1 . { \bar { 5 } } \%$ ). This implies an interesting finding, i.e., iNat21-searched architectures seem to be more resilient to domain shift than ImageNet-searched architectures. This could be due to the difference in dataset size (iNat21 has twice as many images as ImageNet), or due to the fine-grained nature of iNat21 resulting in an overall more difficult instance discrimination task (Chen et al., 2020a) that leads to more discriminative representations. The effect of dataset size on architecture search is also shown on iNat21-mini results. While transferring an architecture from ImageNet to iNat21-mini shows an expected drop in accuracy $( 2 5 . 1 \%$ to $2 3 . 9 \%$ ), transferring from the larger iNat21 improves performance $2 5 . 1 \%$ to $2 7 . 9 \%$ ). As both datasets are in the same domain and only differ in number of samples per class, higher search dataset size is the driving factor behind the gains in accuracy while pretraining on a smaller version of the dataset.
|
| 122 |
+
|
| 123 |
+
Downstream transfer experiments. The results above show that self-supervised architectures are superior to handcrafted architectures when tested in in-distribution settings, which might reflect a practical use case of self-supervised pretraining in the real-world setting (e.g., one has access to only small labeled but large unlabeled data from the same distribution). We now evaluate our approach on a downstream transfer scenario with possible domain shift and with much smaller datasets. To this end, we again use the 10 downstream tasks used in Section 3, which contain datasets coming from both in-distributions and out-of-distributions relative to the pretraining datasets.
|
| 124 |
+
|
| 125 |
+
Table 3: Downstream transfer results. We categorize downstream datasets as in-distribution (green) and outof-distribution (red) relative to the pretraining dataset based on class overlap; best viewed in color. We see that self-supervised architectures generally perform better on in-distribution downstream scenarios.
|
| 126 |
+
|
| 127 |
+
<table><tr><td>Pretrain Dataset</td><td>Arch.</td><td>Params</td><td>Pretrain Val. Set</td><td>CUB</td><td>NABirds</td><td>CIFAR10</td><td>Oxford Flowers</td><td>Stanford Dogs</td><td>Food101</td><td>Sport</td><td>Stanford Cars</td><td>MIT67</td><td>FGVC Aircraft</td></tr><tr><td rowspan="4">ImNet</td><td>MobileV2</td><td>3.5M</td><td>41.9</td><td>20.1</td><td>14.2</td><td>75.8</td><td>85.4</td><td>35.7</td><td>51.6</td><td>94.0</td><td>26.4</td><td>57.5</td><td>35.8</td></tr><tr><td>Ours</td><td>3.3M</td><td>55.3</td><td>31.8</td><td>24.4</td><td>78.8</td><td>91.7</td><td>49.2</td><td>61.7</td><td>94.3</td><td>30.4</td><td>62.5</td><td>38.1</td></tr><tr><td>ResNet18</td><td>11M</td><td>49.8</td><td>27.0</td><td>19.0</td><td>79.9</td><td>89.9</td><td>44.1</td><td>55.8</td><td>94.6</td><td>27.8</td><td>62.1</td><td>36.7</td></tr><tr><td>ResNet50</td><td>23.5M</td><td>58.9</td><td>31.4</td><td>24.6</td><td>85.9</td><td>92.8</td><td>52.3</td><td>65.7</td><td>94.3</td><td>35.1</td><td>69.6</td><td>42.0</td></tr><tr><td rowspan="3">iNat21</td><td>Ours</td><td>3-18M</td><td>59.1</td><td>34.3</td><td>26.1</td><td>81.8</td><td>92.2</td><td>51.0</td><td>64.7</td><td>94.7</td><td>33.2</td><td>66.1</td><td>39.4</td></tr><tr><td>ResNet18</td><td>11M</td><td>30.3</td><td>26.1</td><td>19.0</td><td>73.2</td><td>92.8</td><td>31.3</td><td>55.3</td><td>92.1</td><td>18.9</td><td>49.9</td><td>32.7</td></tr><tr><td>ResNet50</td><td>23.5M</td><td>41.3</td><td>31.2</td><td>23.2</td><td>75.1</td><td>95.1</td><td>39.7</td><td>65.1</td><td>94.3</td><td>22.3</td><td>55.0</td><td>37.6</td></tr><tr><td></td><td>Ours</td><td>3-18M</td><td>43.8</td><td>32.7</td><td>24.1</td><td>76.1</td><td>94.7</td><td>39.0</td><td>63.1</td><td>93.1</td><td>20.1</td><td>49.0</td><td>34.9</td></tr></table>
|
| 128 |
+
|
| 129 |
+
Table 3 summarizes the results (we color code in/out-of-distribution datasets based on our crude categorization; see appendix for our justification). We first compare our self-supervised architectures to MobileNetV2 in the same parameter range (3.5M vs $3 . 3 \mathbf { M }$ ; top two rows). We notice that self-supervised architectures significantly outperform MobileNetV2 in all datasets regardless of distributional shift. This is encouraging (i.e., self-supervised architectures can learn generalizable representations) but at the same time not totally surprising (i.e., MobileNet is optimized for efficiency and not for accuracy). Next, we compare ours to ResNet18 that has a similar parameter range although belonging to a class of architectures much different from our search space. Ours outperforms ResNet18 on all pretraining and evaluation datasets by a considerable margin. This shows that our approach is generalizable and can outperform architectures in the ResNet18 search space even though they are generally more computationally expensive than the MobileNet search space.
|
| 130 |
+
|
| 131 |
+
Finally, we compare ours to ResNet50 which is computationally heavier compared to ResNet18. We preface our analysis with a caveat that our self-supervised architectures are almost half the capacity of ResNet50, limiting their representational power. Keeping this in mind, we see that our approach starts to fail in some of the in-distribution and all of the out-of-distribution scenarios (red shaded cells). This is somewhat disappointing but perhaps expected: self-supervised architectures naturally encode inductive biases specific to the dataset they were optimized on. When a distributional shift happens, their performance can start deteriorating because out-of-domain data might require a different set of inductive biases. The strong performance by ResNet50 imply that the model might be striking the right balance across those datasets in terms of inductive biases, but our results in Table 1 and 2 show that ResNet50 can be less effective on newly developed datasets such as iNat2021.
|
| 132 |
+
|
| 133 |
+
# 5 CONCLUSION
|
| 134 |
+
|
| 135 |
+
This work lays the ground for moving beyond handcrafted architectures in SSL. By conducting large-scale experiments with 116 architectures and 11 downstream tasks, we established extensive empirical evidence showing that there isn’t one architecture that performs consistently well across different downstream scenarios in SSL. Motivated by this, we proposed to move beyond handcrafted architectures and learn both an architecture topology and its network weights in SSL. We provided convincing results demonstrating that the self-supervised architectures significantly outperform handcrafted MobileNetV2 and ResNet18 architectures on 11 downstream tasks, and competitively with ResNet50 even with almost half the model size. We re-emphasize that improvements are not solely due to NAS, as the architecture search was performed by solving SSL and not by optimizing directly on downstream tasks as in the typical NAS setting.
|
| 136 |
+
|
| 137 |
+
Our work barely scratches the surface and opens up many doors for future directions. Will our findings hold for different architectures such as Transformers and different modalities such as video and text? How can we make architecture search more effective for SSL? Can ideas from domain generalization improve the transferability of self-supervised architectures in the out-of-distribution setting? Or is it even the right idea to expect learned architectures to generalize to widely different domains? We hope the readers are as excited as us to investigate these challenging questions.
|
| 138 |
+
|
| 139 |
+
# REFERENCES
|
| 140 |
+
|
| 141 |
+
Sanjeev Arora, Hrishikesh Khandeparkar, Mikhail Khodak, Orestis Plevrakis, and Nikunj Saunshi. A theoretical analysis of contrastive unsupervised representation learning. arXiv preprint arXiv:1902.09229, 2019. 1
|
| 142 |
+
|
| 143 |
+
Hangbo Bao, Li Dong, and Furu Wei. Beit: Bert pre-training of image transformers. arXiv preprint arXiv:2106.08254, 2021. 1
|
| 144 |
+
|
| 145 |
+
Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018. 2, 6, 15
|
| 146 |
+
|
| 147 |
+
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, pp. 132–149, 2018. 1
|
| 148 |
+
|
| 149 |
+
Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. arXiv preprint arXiv:2006.09882, 2020. 1, 3, 7
|
| 150 |
+
|
| 151 |
+
Mathilde Caron, Hugo Touvron, Ishan Misra, Herve J ´ egou, Julien Mairal, Piotr Bojanowski, and ´ Armand Joulin. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 9650–9660, 2021. 3
|
| 152 |
+
|
| 153 |
+
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pp. 1597–1607. PMLR, 2020a. 1, 2, 3, 4, 7, 8, 15, 17, 18
|
| 154 |
+
|
| 155 |
+
Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey E Hinton. Big self-supervised models are strong semi-supervised learners. Advances in neural information processing systems, 33:22243–22255, 2020b. 5
|
| 156 |
+
|
| 157 |
+
Xin Chen, Lingxi Xie, Jun Wu, and Qi Tian. Progressive darts: Bridging the optimization gap for nas in the wild. International Journal of Computer Vision, 129(3):638–655, 2021. 7
|
| 158 |
+
|
| 159 |
+
Xinlei Chen and Kaiming He. Exploring simple siamese representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 15750–15758, 2021. 1, 3, 7
|
| 160 |
+
|
| 161 |
+
Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020c. 3
|
| 162 |
+
|
| 163 |
+
Yu Cheng, Duo Wang, Pan Zhou, and Tao Zhang. A survey of model compression and acceleration for deep neural networks. arXiv preprint arXiv:1710.09282, 2017. 3
|
| 164 |
+
|
| 165 |
+
Elijah Cole, Xuan Yang, Kimberly Wilber, Oisin Mac Aodha, and Serge Belongie. When does contrastive visual representation learning work? arXiv preprint arXiv:2105.05837, 2021. 1, 8
|
| 166 |
+
|
| 167 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009. 2, 16, 17, 18, 20
|
| 168 |
+
|
| 169 |
+
Debadeepta Dey, Shital Shah, and Sebastien Bubeck. Fear: A simple lightweight method to rank architectures. arXiv preprint arXiv:2106.04010, 2021. 2
|
| 170 |
+
|
| 171 |
+
Thomas Elsken, Jan Hendrik Metzen, Frank Hutter, et al. Neural architecture search: A survey. J. Mach. Learn. Res., 20(55):1–21, 2019. 3, 6
|
| 172 |
+
|
| 173 |
+
Linus Ericsson, Henry Gouk, and Timothy M Hospedales. How well do self-supervised models transfer? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5414–5423, 2021. 3
|
| 174 |
+
|
| 175 |
+
Christoph Feichtenhofer, Haoqi Fan, Bo Xiong, Ross Girshick, and Kaiming He. A large-scale study on unsupervised spatiotemporal representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3299–3309, 2021. 1
|
| 176 |
+
|
| 177 |
+
Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. arXiv preprint arXiv:1803.07728, 2018. 1, 3
|
| 178 |
+
|
| 179 |
+
Jean-Bastien Grill, Florian Strub, Florent Altche, Corentin Tallec, Pierre H Richemond, Elena ´ Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv preprint arXiv:2006.07733, 2020. 1, 2
|
| 180 |
+
|
| 181 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. 1, 2
|
| 182 |
+
|
| 183 |
+
Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9729–9738, 2020. 1, 2
|
| 184 |
+
|
| 185 |
+
Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollar, and Ross Girshick. Masked au- ´ toencoders are scalable vision learners. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16000–16009, 2022. 1, 2
|
| 186 |
+
|
| 187 |
+
Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017. 6
|
| 188 |
+
|
| 189 |
+
Aditya Khosla, Nityananda Jayadevaprakash, Bangpeng Yao, and Fei-Fei Li. Novel dataset for finegrained image categorization: Stanford dogs. In Proc. CVPR Workshop on Fine-Grained Visual Categorization (FGVC), volume 2. Citeseer, 2011. 16, 20
|
| 190 |
+
|
| 191 |
+
Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, and Piotr Dollar. Panoptic segmen- ´ tation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9404–9413, 2019. 3
|
| 192 |
+
|
| 193 |
+
Alexander Kolesnikov, Xiaohua Zhai, and Lucas Beyer. Revisiting self-supervised visual representation learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 1920–1929, 2019. 2, 3
|
| 194 |
+
|
| 195 |
+
Simon Kornblith, Jonathon Shlens, and Quoc V Le. Do better imagenet models transfer better? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2661–2671, 2019. 3, 4
|
| 196 |
+
|
| 197 |
+
Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In Proceedings of the IEEE international conference on computer vision workshops, pp. 554–561, 2013. 16, 20
|
| 198 |
+
|
| 199 |
+
Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. 16, 20
|
| 200 |
+
|
| 201 |
+
Changlin Li, Tao Tang, Guangrun Wang, Jiefeng Peng, Bing Wang, Xiaodan Liang, and Xiaojun Chang. Bossnas: Exploring hybrid cnn-transformers with block-wisely self-supervised neural architecture search. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 12281–12291, 2021. 3, 6
|
| 202 |
+
|
| 203 |
+
Li-Jia Li and Li Fei-Fei. What, where and who? classifying events by scene and object recognition. In 2007 IEEE 11th international conference on computer vision, pp. 1–8. IEEE, 2007. 16, 20
|
| 204 |
+
|
| 205 |
+
Feng Liang, Chen Lin, Ronghao Guo, Ming Sun, Wei Wu, Junjie Yan, and Wanli Ouyang. Computation reallocation for object detection. arXiv preprint arXiv:1912.11234, 2019. 6
|
| 206 |
+
|
| 207 |
+
Chenxi Liu, Piotr Dollar, Kaiming He, Ross Girshick, Alan Yuille, and Saining Xie. Are labels ´ necessary for neural architecture search? In European Conference on Computer Vision, pp. 798– 813. Springer, 2020. 3, 6
|
| 208 |
+
|
| 209 |
+
Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. In International Conference on Learning Representations, 2019. URL https://openreview. net/forum?id=S1eYHoC5FX. 3, 6
|
| 210 |
+
|
| 211 |
+
Subhransu Maji, Esa Rahtu, Juho Kannala, Matthew Blaschko, and Andrea Vedaldi. Fine-grained visual classification of aircraft. arXiv preprint arXiv:1306.5151, 2013. 16
|
| 212 |
+
|
| 213 |
+
Joseph Mellor, Jack Turner, Amos Storkey, and Elliot J. Crowley. Neural architecture search without training, 2021. 3
|
| 214 |
+
|
| 215 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. 2011. 16, 20
|
| 216 |
+
|
| 217 |
+
Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In 2008 Sixth Indian Conference on Computer Vision, Graphics & Image Processing, pp. 722–729. IEEE, 2008. 16, 20
|
| 218 |
+
|
| 219 |
+
Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. 1
|
| 220 |
+
|
| 221 |
+
Ben Poole, Sherjil Ozair, Aaron Van Den Oord, Alex Alemi, and George Tucker. On variational bounds of mutual information. In International Conference on Machine Learning, pp. 5171– 5180. PMLR, 2019. 1
|
| 222 |
+
|
| 223 |
+
Ariadna Quattoni and Antonio Torralba. Recognizing indoor scenes. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pp. 413–420. IEEE, 2009. 16, 20
|
| 224 |
+
|
| 225 |
+
Maithra Raghu, Ben Poole, Jon Kleinberg, Surya Ganguli, and Jascha Sohl-Dickstein. On the expressive power of deep neural networks. In international conference on machine learning, pp. 2847–2854. PMLR, 2017. 2, 5
|
| 226 |
+
|
| 227 |
+
Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4510–4520, 2018. 2
|
| 228 |
+
|
| 229 |
+
Terrence J Sejnowski. The unreasonable effectiveness of deep learning in artificial intelligence. Proceedings of the National Academy of Sciences, 117(48):30033–30038, 2020. 1
|
| 230 |
+
|
| 231 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 6
|
| 232 |
+
|
| 233 |
+
Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Revisiting unreasonable effectiveness of data in deep learning era. In Proceedings of the IEEE international conference on computer vision, pp. 843–852, 2017. 1
|
| 234 |
+
|
| 235 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818–2826, 2016. 6
|
| 236 |
+
|
| 237 |
+
Lukas Tuggener, Jurgen Schmidhuber, and Thilo Stadelmann. Is it enough to optimize cnn architec-¨ tures on imagenet? arXiv preprint arXiv:2103.09108, 2021. 2
|
| 238 |
+
|
| 239 |
+
Grant Van Horn, Elijah Cole, Sara Beery, Kimberly Wilber, Serge Belongie, and Oisin Mac Aodha. Benchmarking representation learning for natural world image collections. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12884–12893, 2021. 2, 6
|
| 240 |
+
|
| 241 |
+
P. Welinder, S. Branson, T. Mita, C. Wah, F. Schroff, S. Belongie, and P. Perona. Caltech-UCSD Birds 200. Technical Report CNS-TR-2010-001, California Institute of Technology, 2010. 16, 20
|
| 242 |
+
|
| 243 |
+
Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. Detectron2. 2019. URL https://github. com/facebookresearch/detectron2, 2(3), 2019. 3
|
| 244 |
+
|
| 245 |
+
Shen Yan, Yu Zheng, Wei Ao, Xiao Zeng, and Mi Zhang. Does unsupervised architecture representation learning help neural architecture search? Advances in Neural Information Processing Systems, 33, 2020. 3, 6
|
| 246 |
+
|
| 247 |
+
Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning (still) requires rethinking generalization. Communications of the ACM, 64(3):107– 115, 2021a. 2
|
| 248 |
+
|
| 249 |
+
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, pp. 586–595, 2018. 1
|
| 250 |
+
|
| 251 |
+
Xuanyang Zhang, Pengfei Hou, Xiangyu Zhang, and Jian Sun. Neural architecture search with random labels. arXiv preprint arXiv:2101.11834, 2021b. 3, 6
|
| 252 |
+
|
| 253 |
+
# APPENDIX
|
| 254 |
+
|
| 255 |
+
Fig. 6 provides an overview of our work. We show that no single handcrafted architecture performs consistently well across different tasks. It is therefore imperative to optimize for architecture topologies along with network weights for a specific task. Through extensive empirical results we show that such self-supervised architectures outperform their handcrafted counterparts in the same search space on the respective tasks.
|
| 256 |
+
|
| 257 |
+

|
| 258 |
+
Figure 6: Conventional SSL frameworks learn network weights for a fixed handcrafted architecture (left). We show that learning architecture topologies along with their weights can improve performance in SSL (right).
|
| 259 |
+
|
| 260 |
+
# A SUPERVISED TRAINING PERFORMANCE OF SELF-SUPERVISED ARCHITECTURES
|
| 261 |
+
|
| 262 |
+
In addition to evaluating the performance of the searched architectures for SSL, we analyze their supervised training performance. We use the searched architectures and directly train them, from scratch without any pretraining, on downstream datasets using the supervised labels. Results are summarized in Table 4. We include architectures searched on ImageNet and iNat21, and MobileNetV2 for reference. It shows the searched architectures perform well even in the supervised setting, outperforming the handcrafted MobileNetV2 on most of the downstream datasets. However, a performance degradation is observed in out-of-distribution datasets like Stanford Cars and FGVC Aircraft. This is in line with the discussion in Section 4.2 of the main paper where the searched architecture performances deteriorate with distributional shift. Nevertheless, for the more in-distribution datasets, we obtain higher accuracies showing that the searched architectures are suitable for supervised training as well.
|
| 263 |
+
|
| 264 |
+
Table 4: Supervised performance of searched architectures.
|
| 265 |
+
|
| 266 |
+
<table><tr><td></td><td>CUB</td><td>CIFAR10</td><td>CIFAR100</td><td>Food</td><td>Flowers</td><td>Sport</td><td>Cars</td><td>Aircraft</td></tr><tr><td>MobileNetV2</td><td>58.2</td><td>93.7</td><td>71.9</td><td>80.8</td><td>90.0</td><td>94.2</td><td>88.6</td><td>81.4</td></tr><tr><td>Ours (ImNet)</td><td>57.9</td><td>93.1</td><td>74.7</td><td>78.1</td><td>96.7</td><td>95.0</td><td>71.0</td><td>75.5</td></tr><tr><td>Ours (iNat21)</td><td>64.5</td><td>93.9</td><td>75.8</td><td>81.6</td><td>98.1</td><td>96.3</td><td>72.3</td><td>72.9</td></tr></table>
|
| 267 |
+
|
| 268 |
+
# B CLASS MAPPING FROM IMAGENET TO DOWNSTREAM DATASETS
|
| 269 |
+
|
| 270 |
+
We provide a justification for characterizing downstream datasets as in-distribution/out-ofdistribution with respect to ImageNet as shown in Table 3 of the main paper. We provide a rough class mapping between ImageNet and the 10 downstream datasets. Note that obtaining an exact class mapping is difficult due to only an approximate mapping existing between any 2 datasets. In addition, there can be classes which contribute to improved features for another class while still being semantically different. For example, zebra (n02391049) can contribute to improved features for horses (sorrel-n02389026) due to similar shapes. We now list datasets with corresponding ImageNet classes/superclasses. While some superclasses can contain additional subclasses in the WordNet hierarchy, we restrict to only those classes in the ImageNet-1k dataset. Numbers in bracket denote the total number of classes roughly overlapping.
|
| 271 |
+
|
| 272 |
+
• CIFAR-10 (270): vehicle (n4524313), bird (n1503061), feline (n2120997), frog (n1639765), dog (n2084071), sorrel (n2389026)
|
| 273 |
+
• Stanford Dogs (120): dog (n2084071)
|
| 274 |
+
• CUB (60): bird (n1503061)
|
| 275 |
+
• NABirds (60): bird (n1503061)
|
| 276 |
+
• Food101 (20): nutriment (n7570720), beverage (n7881800), foodstuff (n7566340), sandwich (n7695965), bagel (n7693725), guacamole (n7583066), chocolate sauce (n7836838), carbonara (n7831146), french loaf (n7684084), pretzel (n7695742)
|
| 277 |
+
• Stanford Cars (10): car (n2958343)
|
| 278 |
+
• FGVC Aircraft (3): airliner (n2690373), warplane (n4552348), airship (n2692877)
|
| 279 |
+
• Oxford Flowers (2): yellow lady’s slipper (n12057211), daisy (n11939491)
|
| 280 |
+
• MIT67 (0): -
|
| 281 |
+
• Sports(0): -
|
| 282 |
+
|
| 283 |
+
Due to the inductive biases encoded during the search process specific to the dataset it is searched on, the self-supervised architecture performs well on more in-distribution datasets like CUB or NABirds. However, we see that for datasets like Stanford Cars and subsequent ones, there is little direct class overlap with ImageNet classes. This leads to lesser images being available for self-supervised pretraining which are in-distribution for these datasets. Consequently, due to the relatively out-of-distribution nature of these datasets we see in Table 3 of the main paper, our selfsupervised architectures are outperformed by the ResNet-50 baseline.
|
| 284 |
+
|
| 285 |
+
# C ADDITIONAL IMPLEMENTATION DETAILS
|
| 286 |
+
|
| 287 |
+
We sample ResNet architectures by varying the number of blocks at each of the 4 stages choosing from the set of $2 , 3 , 4$ blocks and choose the ones in the parameter range shown in Fig. 3 while also fitting in GPU memory. For MobileNets, we have 7 sequences (stages) and a higher variation of the number of blocks from [2-6] while also choosing the width parameter from the set $1 . 0 , 1 . 2 , 1 . 4 , 1 . 6 , 1 . 8 , 2 . 0$ and choose the ones in the 2M-7M parameter range and fitting in GPU memory. Note that a high number of blocks in the earlier stages take significantly more GPU memory due to larger feature map sizes.
|
| 288 |
+
|
| 289 |
+
For the architecture search phase, we use the optimizer hyperparameters as explained in Sec. 4.1 of the main paper. We use a weight decay of $4 e ^ { - 5 }$ for the weight parameters excluding batch normalization parameters. The initial convolution is a $3 { \tt X } 3$ convolution with stride 2. The network consists of 6 stages with 4 cells in the first 5 stages and 1 cell in the last stage. By default, the number of channels at each stage is 24, 40, 80, 96, 192, 320, which is multiplied by a constant width multiplier. We downsample it by a factor of 2 at the beginning of the first, second, third and fifth stage. Other architecture details are the default ones used in Cai et al. (2018). We use the same projection head as used normally for SimCLR Chen et al. (2020a) on top of the backbone network, which is a 2048 dimensional hidden layer and 128 dimensional output layer. For evaluation, we remove the projection head and use the output of the network backbone as the feature extractor. Augmentations are the same as in SimCLR with random resize scaling and cropping, flipping and color jitter. A temperature value of $\tau = 0 . 1$ is set for the contrastive loss.
|
| 290 |
+
|
| 291 |
+

|
| 292 |
+
Figure 7: Self-supervised architectures for different pretraining datasets. MB3 and MB6 are the mobile inverted convolutions with expansion ratio of 3 and 6 respectively. We see that the majority of the preferred convolutions is MB6 $7 \times 7$ suggesting that the network prefers convolutions with more parameters for the self-supervised regime due to lots of data. For smaller datasets like iNat21Mini, MB6 convolutions are not as strongly preferred.
|
| 293 |
+
|
| 294 |
+
# D VISUALIZING SELF-SUPERVISED ARCHITECTURES FOR DIFFERENT PRETRAINING DATASETS
|
| 295 |
+
|
| 296 |
+
We visualize the types of convolutions searched at a $1 . 7 5 \mathrm { x }$ width multiplier for the 3 different pretraining datasets: ImageNet, iNat21 and iNat21Mini. Results are shown in Fig. 7. MB3 and MB6 are the mobile inverted convolutions with expansion ratio of 3 and 6 respectively. The grey lines denote the downsampling of image due to strided convolutions. All architectures are followed by a pooling layer to reduce the image size to $1 \times 1$ . In contrast to standard handcrafted architectures, larger $7 \times 7$ convolutions are preferred even in the later stages of the network. We also see that the majority of the preferred convolutions is MB6 $7 \times 7$ suggesting that the network prefers convolutions with more parameters for the self-supervised regime due to lots of data. This is less preferred in smaller datasets like iNat21Mini where MB3 convolutions are common especially in earlier stages of the network. It is difficult to draw conclusions on the type of network preferred between ImageNet and iNat21 showing that it is imperative to search for an optimal architecture rather than handcraft them.
|
| 297 |
+
|
| 298 |
+
# E DOWNSTREAM DATASET PERFORMANCE CORRELATION WITH IMAGENET
|
| 299 |
+
|
| 300 |
+
We show the downstream dataset correlation for all 10 downstream datasets in addition to ImageNet1K Deng et al. (2009): CIFAR10/100 Krizhevsky et al. (2009), Stanford Cars Krause et al. (2013) and Dogs Khosla et al. (2011), CUB-200 Welinder et al. (2010), MIT-67 Quattoni & Torralba (2009), SVHN Netzer et al. (2011), Flowers-102 Nilsback & Zisserman (2008), FGVC-Aircraft Maji et al. (2013), Sports8 Li & Fei-Fei (2007). These are shown for both ResNets (Fig. 8) and MobileNets (Fig. 9). We see similar results for the 5 datasets in addition to those shown in Fig. 3 of main paper. High correlation exists for datasets which are visually similar to ImageNet while it is less correlated for datasets which are out of domain. For MobileNets this correlation is even less pronounced with high variance in performance at higher ImageNet accuracies.
|
| 301 |
+
|
| 302 |
+

|
| 303 |
+
Figure 8: ImageNet performance correlation with 10 different downstream datasets for various ResNets. We show linear evaluation top-1 accuracy of ImageNet $\mathbf { \dot { x } }$ -axis) vs. different downstream datasets (y-axis) obtained from variations of ResNet; all models are pretrained on ImageNet-1K Deng et al. (2009) using SimCLR Chen et al. (2020a) under the same protocol. The solid lines and shaded areas indicate fitted regression models and their confidence intervals.
|
| 304 |
+
|
| 305 |
+

|
| 306 |
+
Figure 9: ImageNet performance correlation with 10 different downstream datasets for various MobileNets. We show linear evaluation top-1 accuracy of ImageNet $\mathbf { \widetilde { x } }$ -axis) vs. different downstream datasets (y-axis) obtained from variations of MobileNet; all models are pretrained on ImageNet-1K Deng et al. (2009) using SimCLR Chen et al. (2020a) under the same protocol. The solid lines and shaded areas indicate fitted regression models and their confidence intervals.
|
| 307 |
+
|
| 308 |
+

|
| 309 |
+
Figure 10: Dataset performance correlation with 10 different datasets for various ResNets. We show the model size in terms of parameter counts $\mathbf { \widetilde { x } }$ -axis) vs. top-1 accuracy on different datasets obtained from variations of ResNet-like architectures; all models are pretrained on ImageNet-1K Deng et al. (2009) using SimCLR Chen et al. (2020a) under the same protocol. The solid lines and shaded areas indicate fitted regression models and their confidence intervals.
|
| 310 |
+
|
| 311 |
+

|
| 312 |
+
Figure 11: Dataset performance correlation with 10 different datasets for various MobileNets. We show the model size in terms of parameter counts $\mathbf { \widetilde { x } }$ -axis) vs. top-1 accuracy on different datasets obtained from variations of MobileNet-like architectures; all models are pretrained on ImageNet-1K Deng et al. (2009) using SimCLR Chen et al. (2020a) under the same protocol. The solid lines and shaded areas indicate fitted regression models and their confidence intervals.
|
| 313 |
+
|
| 314 |
+

|
| 315 |
+
Figure 12: Linear and rank correlation of ResNets between different pairs of 11 datasets We show correlation between every pair of top-1 accuracy on 11 downstream tasks obtained from ImageNet-pretrained ResNets. We see no strong correlation except for ones highly similar to the data the models were originally pretrained on, e.g., CIFAR-10/100 and Dogs120.
|
| 316 |
+
|
| 317 |
+

|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
Figure 13: Linear and rank correlation of MobileNets between different pairs of 11 datasets We show correlation between every pair of top-1 accuracy on 11 downstream tasks obtained from ImageNet-pretrained MobileNets. The correlation
|
| 321 |
+
|
| 322 |
+

|
| 323 |
+
|
| 324 |
+
# F DATASET PERFORMANCE AS A FUNCTION OF NUMBER OF PARAMETERS
|
| 325 |
+
|
| 326 |
+
We show the dataset correlation with respect to number of parameters for 5 more datasets in addition to that shown in Fig. 4 of main paper. Fig. 10 summarizes the results for ResNets while Fig. 11 shows results for MobileNets. We see that similar results hold for the additional 5 datasets where more parameters, and consequently larger networks, does not always lead to better downstream performance.
|
| 327 |
+
|
| 328 |
+
# G LINEAR AND RANK CORRELATION FOR RESNETS/MOBILENETS
|
| 329 |
+
|
| 330 |
+
We show the summary of the correlation across different datasets for both ResNets (Fig. 12) and MobileNets (Fig. 13). In addition to Spearman’s rank correlation coefficient, we also show Pearson’s linear correlation coefficient. While Pearson’s linear coefficient is higher in the case of MobileNets, the linear fit still exhibits high variance for higher ImageNet accuracies, as seen in Fig. 9.
|
| 331 |
+
|
| 332 |
+

|
| 333 |
+
Figure 14: ImageNet performance correlation with 10 different downstream datasets for various ResNets, MobileNets and searched architectures. The searched architectures outperform MobileNets while being comparable with ResNets at fewer parameters.
|
| 334 |
+
|
| 335 |
+
# H DATASET LICENSES
|
| 336 |
+
|
| 337 |
+
Table 5 lists some datasets we used and their licenses.
|
| 338 |
+
|
| 339 |
+
Table 5: Licenses of datasets.
|
| 340 |
+
|
| 341 |
+
<table><tr><td>Dataset</td><td>License</td></tr><tr><td>CIFAR-10 Krizhevsky et al. (2009)</td><td>MIT</td></tr><tr><td>CIFAR-100 Krizhevsky et al. (2009)</td><td>MIT</td></tr><tr><td>ImageNet Deng et al. (2009)</td><td>BSD 3-Clause</td></tr><tr><td>Sport8 Li & Fei-Fei (2007)</td><td>CCO:Public Domain</td></tr><tr><td>Stanford Dogs Khosla et al. (2011)</td><td>BSD3-Clause</td></tr><tr><td>Stanford Cars Krause et al. (2013)</td><td>BSD 3-Clause</td></tr><tr><td>CUB-200 Welinder et al. (2010)</td><td>Data files @ Original Authors</td></tr><tr><td>MIT-67 Quattoni & Torralba a (2009)</td><td>MIT</td></tr><tr><td>SVHN Netzer et al. (2011)</td><td>CCO:Public Domain</td></tr><tr><td>Flowers-102 Nilsback & Zisserman (2008)</td><td>GNU General Public License,version 2</td></tr></table>
|
parse/dev/1KaSx3GrBBm/1KaSx3GrBBm_content_list.json
ADDED
|
@@ -0,0 +1,1855 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "MOVING BEYOND HANDCRAFTED ARCHITECTURES IN SELF-SUPERVISED LEARNING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
799,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "The current literature on self-supervised learning (SSL) focuses on developing learning objectives to train neural networks more effectively on unlabeled data. The typical development process involves taking well-established architectures, e.g., ResNet or ViT demonstrated on ImageNet, and using them to evaluate newly developed objectives on downstream scenarios. While convenient, this neglects the role of architectures which has been shown to be crucial in the supervised learning literature. In this work, we establish extensive empirical evidence showing that a network architecture plays a significant role in contrastive SSL. We conduct a large-scale study with over 100 variants of ResNet and MobileNet architectures and evaluate them across 11 downstream scenarios in the contrastive SSL setting. We show that there is no one network that performs consistently well across the scenarios. Based on this, we propose to learn not only network weights but also architecture topologies in the SSL regime. We show that “self-supervised architectures” outperform popular handcrafted architectures (ResNet18 and MobileNetV2) while performing competitively with the larger and computationally heavy ResNet50 on major image classification benchmarks (ImageNet-1K, iNat2021, and more). Our results suggest that it is time to consider moving beyond handcrafted architectures in contrastive SSL and start thinking about incorporating architecture search into self-supervised learning objectives. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
266,
|
| 43 |
+
764,
|
| 44 |
+
530
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
558,
|
| 55 |
+
336,
|
| 56 |
+
574
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Self-supervised learning (SSL) achieves impressive results on challenging tasks involving image, video, audio, and text. Models pretrained on large unlabeled data perform nearly as good and sometimes even better than their supervised counterparts (Caron et al., 2020; Chen & He, 2021). So far, the focus has been on designing effective learning objectives – e.g., pretext tasks (Gidaris et al., 2018; Caron et al., 2018), contrastive (Oord et al., 2018; Chen et al., 2020a) and noncontrastive (Grill et al., 2020) tasks – together with empirical (Cole et al., 2021; Feichtenhofer et al., 2021) and theoretical (Arora et al., 2019; Poole et al., 2019) studies providing key insights and underpinnings. Recent works propose new objectives with a different class of network architectures such as vision transformers (ViT) (Bao et al., 2021) and masked autoencoders (He et al., 2022). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
589,
|
| 66 |
+
825,
|
| 67 |
+
714
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "However, there has been little focus on the role of architectures in SSL. Currently, the de facto protocol in SSL is to take architectures that perform well on established benchmarks in the supervised setting and to adapt them to the self-supervised setting by plugging in different learning objectives. For example, several existing work on contrastive learning use ResNet (He et al., 2016) as the backbone (Chen et al., 2020a; He et al., 2020). This is partly for convenience. Evaluating different architectures in SSL is computationally expensive; selecting an architecture in advance and fixing it throughout makes it easy to evaluate different learning objectives. This also stems from strong empirical success of those architectures in transfer learning, e.g., CNNs trained on large labeled data provide “unreasonable effectiveness” (Sun et al., 2017; Zhang et al., 2018; Sejnowski, 2020) in a variety of downstream cases. Nonetheless, one implicit assumption is that an architecture that works well in the supervised learning scenario will continue to be effective in the SSL regime. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
722,
|
| 77 |
+
825,
|
| 78 |
+
875
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "We argue that this assumption is incorrect and dangerous. It is valid only to a limited extent and the performance starts deteriorating significantly when SSL is conducted on data whose distribution deviates much from the original distribution the architecture was trained on. This is counter to the promise of SSL, where one can learn optimal representation for a wide range of tasks. One main reason for performance degradation is that different data distributions benefit from different inductive biases: An architecture with specific layer types and the wiring between them naturally encodes inductive biases, which may be optimal only for a certain data distribution (e.g., objectcentric imagery such as ImageNet) and not for others (e.g., medical and satellite imagery). In fact, numerous studies have shown that standard “recipes” for architecture design do not translate well across different data distributions (Tuggener et al., 2021; Dey et al., 2021; Kolesnikov et al., 2019). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
176,
|
| 87 |
+
882,
|
| 88 |
+
823,
|
| 89 |
+
922
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
103,
|
| 99 |
+
825,
|
| 100 |
+
202
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "The main objective of this work is to show that the choice of network architecture crucially matters in SSL, and that it is not easy to handcraft architectures that are effective across different SSL scenarios. To see this, recall that the goal of SSL is to learn data representations capturing important features and attributes that generalize well across various downstream tasks. There has been extensive literature on the expressivity of neural networks (Raghu et al. (2017); Zhang et al. (2021a) and references therein); one of the important conclusions is that the network topology plays a significant role in determining the expressivity, i.e., the kinds of functions a network can approximate is bounded by the network capacity and available sample size in the finite sample regime. This implies that, in practice, SSL with a fixed architecture learns representations only within the scope of function space induced by the pre-selected architecture topology, and therefore, the ultimate success of SSL can be achieved when it finds optimal architecture from certain search space in conjunction with its weights for specific data distributions. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
208,
|
| 110 |
+
825,
|
| 111 |
+
375
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "In this paper, we establish extensive empirical evidence showing that architecture matters in selfsupervised learning. We do this in two sets of large-scale studies. First, we sample 116 variants of ResNet (He et al., 2016) and MobileNet (Sandler et al., 2018) architectures with different topologies and evaluate them on 11 downstream tasks in the SSL setting. We pretrain all models under the same setting, optimizing the SimCLR objective (Chen et al., 2020a) on ImageNet (Deng et al., 2009), and investigate if there exist any correlation between these models in downstream performance on different datasets. We observe no strong correlation, except for tasks highly similar to ImageNet. We further show that ImageNet downstream performance, the gold standard benchmark in the SSL literature, is not indicative of performance on other downstream tasks. This implies that we need to be careful in choosing an architecture for evaluating any newly developed SSL objectives, as one might get different conclusions based on different network architectures. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
382,
|
| 121 |
+
825,
|
| 122 |
+
534
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "This subsequently raises the question: Can we improve SSL by learning not only network weights but also architectures directly optimized for the given dataset? It removes the burden of manually searching for effective architectures in SSL, and if we succeed, it can substantially improve performance of SSL. To test this hypothesis, as the second set of our study, we apply a well-established NAS algorithm (Cai et al., 2018) to the SSL setting. Unlike the typical NAS setting that optimize on a labeled target dataset, we search for optimal architectures directly on an unlabeled pretraining dataset via contrastive learning (Chen et al., 2020a). We evaluate our $\\mathrm { ^ { 6 6 } N A S } + \\mathrm { S S L } ^ { \\mathrm { 3 } }$ framework on datasets with different distributions, ImageNet-1K and iNat 2021 (Van Horn et al., 2021), and show that self-supervised architectures consistently outperform handcrafted ones in the same parameter range (MobileNetV2 and ResNet18) across 11 downstream tasks. This provides strong evidence suggesting the importance of learning architecture topologies in addition to their weights in SSL. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
541,
|
| 132 |
+
825,
|
| 133 |
+
694
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "Our work focuses on studying the role of architectures in contrastive SSL with the SimCLR framework for CNN-based architectures such as ResNets and MobileNets. As a first step in this direction, we provide an in-depth analysis through large-scale experiments in this specific (yet limited) setting. Extending our study to different SSL approaches (He et al., 2020; Grill et al., 2020; He et al., 2022) and architectures such as ViTs would be an interesting direction but beyond the scope of this paper. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
702,
|
| 143 |
+
823,
|
| 144 |
+
771
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "In summary, our main contributions are: 1) We establish extensive evidence showing that there isn’t one network architecture performing consistently well across different downstream scenarios in the SimCLR setting. We show this using 116 variants of ResNet and MobileNet architectures pretrained on ImageNet and evaluated on 11 downstream datasets. 2) We show that ImageNet performance (the gold standard in SSL benchmark) is not always indicative of downstream performance. This means that findings about SSL objectives shown only on ImageNet do not generalize across other data distributions. 3) We propose to self-supervise a CNN architecture topology and its network weights on unlabeled data. We show that self-supervised architectures outperform handcrafted ones in a similar parameter range for the SimCLR setting across different downstream datasets. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
174,
|
| 153 |
+
777,
|
| 154 |
+
825,
|
| 155 |
+
904
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "2 RELATED WORK ",
|
| 162 |
+
"text_level": 1,
|
| 163 |
+
"bbox": [
|
| 164 |
+
176,
|
| 165 |
+
102,
|
| 166 |
+
339,
|
| 167 |
+
117
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 2
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Role of architectures in SSL. There has been significant progress in learning representations via SSL (Gidaris et al., 2018; Chen et al., 2020a;c; Caron et al., 2020). Ericsson et al. (2021) provide an overview of different SSL setups and their performance on downstream tasks. Most works focus on improving self-supervised objectives to develop better representations while keeping architectures fixed. Our focus is orthogonal to this line of work. We study the role of architectures in SSL and investigate the benefits of self-supervising architecture topologies along with network weights. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
135,
|
| 177 |
+
825,
|
| 178 |
+
219
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 2
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "Similar to ours, Kornblith et al. (2019) analyze transfer performance of different architectures pretrained on ImageNet across several downstream datasets. However, they focused on supervised learning, which need not translate to self-supervised setups (Kolesnikov et al., 2019). Caron et al. (2021) propose a self-distillation based SSL objective and compare the performance of ResNets with ViTs. In contrast, we focuse on contrastive SSL and the importance of architecture topologies for the class of CNNs. Kolesnikov et al. (2019) is the most related to ours but are limited to pretext-task based SSL and show results only for a few variants of VGG and ResNet. In comparison, we conduct a study on a much larger scale in a contrastive learning setup. Also, we provide insights into generalization performance of the networks across different datasets. Crucially, unlike all previous work in SSL, we propose to learn both architecture topologies and their network weights. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
227,
|
| 188 |
+
825,
|
| 189 |
+
364
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 2
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "NAS and SSL. The literature on NAS has rapidly progressed in the past years; we refer the reader to the NAS survey by Elsken et al. (2019). Here we focus on the most directly relevant work to SSL. Mellor et al. (2021) search for networks without any training and verify their effectiveness of supervised benchmarks. Liu et al. (2020) show that highly performant architectures can be found without using any supervised labels during the search itself, and propose using DARTS (Liu et al., 2019) with self-supervised proxy tasks to search for architectures which will perform well on supervised datasets. In a similar vein, Zhang et al. (2021b) use random labels during the search phase of NAS, and Yan et al. (2020) learn representations of architectures via SSL and use them to improve NAS. Li et al. (2021) introduce a new self-supervised training scheme to search for architectures in a new hybrid search space. One common theme in this line of work is that they aim to harness SSL in aid of NAS. In contrast, we aim to utilize NAS to hunt for architectures which will perform well for self-supervised learning, thereby harnessing NAS in aid of SSL. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
173,
|
| 198 |
+
372,
|
| 199 |
+
825,
|
| 200 |
+
539
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 2
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "3 DOES ONE NETWORK RULE THEM ALL IN SSL?",
|
| 207 |
+
"text_level": 1,
|
| 208 |
+
"bbox": [
|
| 209 |
+
174,
|
| 210 |
+
561,
|
| 211 |
+
611,
|
| 212 |
+
579
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 2
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "We conduct a large scale study to investigate whether a particular architecture topology can be consistently effective across a wide range of SSL scenarios. To this end, we sample 116 models with different architecture topologies and analyze their performance on 11 downstream tasks. ",
|
| 219 |
+
"bbox": [
|
| 220 |
+
176,
|
| 221 |
+
595,
|
| 222 |
+
825,
|
| 223 |
+
637
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 2
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "text",
|
| 229 |
+
"text": "To maximize generality while taming complexity of our study, we choose two most representative CNN architectures: ResNets and MobileNets. The former is the de facto backbone for numerous modern visual models (Kirillov et al., 2019; Wu et al., 2019) and SSL approaches (Caron et al., 2020; Chen & He, 2021), while the latter is used in low-resource setups (Cheng et al., 2017). We create 69 ResNet-like and 47 MobileNet-like architectures for our evaluation, varying the number of blocks at each of the 4 stages of a ResNet, the block structure (BasicBlock and Bottleneck), width, and number of groups. For MobileNet, we vary the width multiplier parameter and the number of blocks in each of the 6 stages. We choose the SimCLR objective (Chen et al., 2020a) for our experiments and pretrain each of the 116 architectures on ImageNet-1K. Owing to the large scale nature of the experiments and computational constraints, we limit the pretraining to 100 epochs and a batch size of 512. Each of these jobs takes roughly 1 day to finish on a system with $8 \\times \\mathrm { ~ V 1 0 0 ~ }$ (32GB) GPUs. We report linear evaluation results in all cases. ",
|
| 230 |
+
"bbox": [
|
| 231 |
+
174,
|
| 232 |
+
645,
|
| 233 |
+
825,
|
| 234 |
+
811
|
| 235 |
+
],
|
| 236 |
+
"page_idx": 2
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "text",
|
| 240 |
+
"text": "ImageNet performance is not indicative of downstream performance for SSL. To examine the correlation between ImageNet vs. downstream performance, we compute the Spearman’s rank correlation coefficient $\\rho$ on top-1 validation accuracy between every dataset pair, shown in Fig. 1. We also show scatter plots in Fig. 2 revealing the relationship between ImageNet vs. downstream performance on the most representative cases; the complete set of scatter plots are in the appendix. ",
|
| 241 |
+
"bbox": [
|
| 242 |
+
174,
|
| 243 |
+
819,
|
| 244 |
+
823,
|
| 245 |
+
888
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 2
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "For ResNet-like architectures (Fig. 2 top row), we see strong correlation between ImageNet and CIFAR-100 ( $\\rho = . 8 )$ ) as these datasets contain similar categories; about 90 classes in CIFAR-100 are the same class or a superclass in ImageNet. A similar observation is made (in Fig. 1) for Stanford Dogs $( \\rho = . 7 7 )$ due to the 120 dog categories in ImageNet. However, we observe high variance in transfer performance for out-of-domain datasets, e.g., Flowers $( \\rho = . 3 5 )$ , represented by only two ImageNet categories (daisy and yellow lady slipper). Correlation becomes negative on Stanford Cars $( \\rho = - . 2 9 )$ and FGVC Aircraft $( \\rho = - . 2 4 )$ , likely because ImageNet contains only a few categories of cars (10 classes) and aircraft (4 classes). Low correlation means network ranks are inconsistent and models performing well on ImageNet do not keep their precedence in other tasks. ",
|
| 252 |
+
"bbox": [
|
| 253 |
+
176,
|
| 254 |
+
896,
|
| 255 |
+
821,
|
| 256 |
+
924
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 2
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "image",
|
| 262 |
+
"img_path": "images/d365bf971a98922758f9bba2584f03a8e3a1f78f6ce0f45f6babac180c901c8e.jpg",
|
| 263 |
+
"image_caption": [
|
| 264 |
+
"Figure 2: ImageNet performance is not indicative of downstream performance in SSL. We show linear evaluation top-1 accuracy of ImageNet (x-axis) vs. downstream datasets (y-axis) obtained from variations of ResNet (top) and MobileNet (bottom); all models are pretrained on ImageNet-1K using SimCLR under the same protocol. The solid lines and shaded areas indicate fitted regression models and their confidence intervals. "
|
| 265 |
+
],
|
| 266 |
+
"image_footnote": [],
|
| 267 |
+
"bbox": [
|
| 268 |
+
173,
|
| 269 |
+
99,
|
| 270 |
+
821,
|
| 271 |
+
303
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 3
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "",
|
| 278 |
+
"bbox": [
|
| 279 |
+
173,
|
| 280 |
+
388,
|
| 281 |
+
825,
|
| 282 |
+
486
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 3
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "For MobileNet-like architectures (Fig. 2 bottom row), we see overall much lower correlation with ImageNet performance; the ResNet space showed correlation at least for in-distribution datasets. For e.g., we see correlation between ImageNet and CIFAR-100 drops from $\\rho = . 8$ (ResNet) to $\\rho \\ = \\ . 2 3$ (MobileNet). For other datasets like MIT67, correlation is higher $( \\rho ~ = ~ . 5 2 )$ but still less meaningful due to high variability in performance (notice the cluster around $42 \\%$ accuracy). These results indicate that MobileNets are even less tuned towards ImageNet than ResNets and any handcrafted architectures in this space is likely to be suboptimal on ImageNet and other downstream datasets. ",
|
| 289 |
+
"bbox": [
|
| 290 |
+
174,
|
| 291 |
+
492,
|
| 292 |
+
419,
|
| 293 |
+
770
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 3
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "image",
|
| 299 |
+
"img_path": "images/978f0c664da19142b0881594c45d900b24f08e3c1aad569ad28356448d151fe7.jpg",
|
| 300 |
+
"image_caption": [
|
| 301 |
+
"Figure 1: ImageNet performance isn’t indicative of downstream performance in SSL. We show rank correlation between each pair of top-1 accuracy on 11 downstream tasks obtained from ImageNet-pretrained ResNets. We see no strong correlation except for ones similar to ImageNet, e.g., CIFAR-10/100 and Dogs120. "
|
| 302 |
+
],
|
| 303 |
+
"image_footnote": [],
|
| 304 |
+
"bbox": [
|
| 305 |
+
436,
|
| 306 |
+
511,
|
| 307 |
+
820,
|
| 308 |
+
766
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 3
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "Our results highlight that the same architecture recipes in terms of ImageNet accuracy, which is frequently used as a predictor for various selfsupervised tasks, do not work well for different datasets in the SimCLR setting. ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
174,
|
| 317 |
+
777,
|
| 318 |
+
419,
|
| 319 |
+
858
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 3
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "",
|
| 326 |
+
"bbox": [
|
| 327 |
+
176,
|
| 328 |
+
847,
|
| 329 |
+
441,
|
| 330 |
+
861
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "Larger networks do not always perform better in contrastive SSL. In general, large-parameter models yield better performance on ImageNet, both in supervised (Kornblith et al., 2019) and SSL setups (Chen et al., 2020a). We examine whether this trend holds for downstream datasets some of which are widely different from ImageNet. We follow the same setup as above and compute the ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
174,
|
| 339 |
+
868,
|
| 340 |
+
825,
|
| 341 |
+
924
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "image",
|
| 347 |
+
"img_path": "images/cafca3409464ab3c90dd7c490f15db8e5376b27cf6d4909facd721ca5a0d87e0.jpg",
|
| 348 |
+
"image_caption": [
|
| 349 |
+
"Figure 3: Larger models do not always perform better in SSL. We show the model size in terms of parameter counts ( $\\mathbf { \\widetilde { x } }$ -axis) vs. top-1 accuracy on different datasets obtained from variations of ResNet (top) and MobileNet (bottom) architectures; all models are pretrained on ImageNet-1K using SimCLR under the same protocol. "
|
| 350 |
+
],
|
| 351 |
+
"image_footnote": [],
|
| 352 |
+
"bbox": [
|
| 353 |
+
174,
|
| 354 |
+
99,
|
| 355 |
+
815,
|
| 356 |
+
299
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 4
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "correlation between number of model parameters and top-1 validation accuracy on different datasets. \nFig. 3 shows scatter plots of the most representative results; full results are in the appendix. ",
|
| 363 |
+
"bbox": [
|
| 364 |
+
171,
|
| 365 |
+
352,
|
| 366 |
+
820,
|
| 367 |
+
381
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 4
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "For ResNet-like architectures (Fig. 3 top row), we do not see strong trends indicating larger models always perform better. In fact, on some downstream tasks we see negative correlation (Aircraft, $\\rho =$ $- . 3 7 )$ with lighter networks being favored for better performance, or even non-linear relationship, e.g., notice the slight “U” pattern on Stanford Cars $\\zeta = - . 1 4 )$ , indicating the behavior of ResNets on these datasets are wildly unexpected. Unsurprisingly, there is strong correlation with ImageNet $( \\rho = . 8 5 )$ and CIFAR-100 $\\langle \\rho = . 8 7 \\rangle$ , likely because ResNets are heavily hand-tuned on the kinds of images observed in these datasets. These results clearly suggest that the same architecture recipes which work well for ImageNet (increasing parameters through depth and width) do not hold for other downstream scenarios. ",
|
| 374 |
+
"bbox": [
|
| 375 |
+
173,
|
| 376 |
+
387,
|
| 377 |
+
825,
|
| 378 |
+
512
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 4
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "text",
|
| 384 |
+
"text": "For MobileNet-like architectures (Fig. 3 bottom row), we see that there exists almost no interpretable trend. The fitted regression models (solid lines) and their confidence intervals (shaded area) show that the relationships are highly non-linear and non-monotonic; we shouldn’t read too much into the correlation coefficients (reported for completeness). These results indicate that MobileNets do not favor any one architecture and it is heavily reliant on the dataset it is trained on. ",
|
| 385 |
+
"bbox": [
|
| 386 |
+
174,
|
| 387 |
+
518,
|
| 388 |
+
825,
|
| 389 |
+
588
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 4
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "Our results suggest that larger models are not always better in SSL; lighter models can outperform heavier models on tasks like FGVC Aircraft. Previous work (Chen et al., 2020b) showed that increasing network depth/width improves downstream performance. However, they vary depth at a coarser level with 50/100/150 layers and width with $1 \\times / 2 \\times$ , leading to a large swing in network parameters (24-795M); here we show the same is not true at a finer level. Our results provide evidence that ResNet architectures are tuned to scale well on ImageNet but not the others; the trend is even weaker for MobileNet-like architectures, suggesting they are optimized for computational efficiency and not for achieving high accuracy on any particular dataset. ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
173,
|
| 398 |
+
595,
|
| 399 |
+
825,
|
| 400 |
+
708
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 4
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "There is no winner in the battle of top vs. bottom heavy networks in SSL. Raghu et al. (2017) showed that CNNs are more sensitive to lower (initial) layer weights, suggesting that “not all weights are created equal” across layers. This raises the question: If CNNs are more sensitive to lower layers, will increasing the parameter count for lower layers yield better performance in SSL? To get insights into this, we split a network into two halves: “top” (layers closer to output) and “bottom” (closer to input). We use the ratio of top to bottom parameters as a measure of networks being “top-heavy” (high ratio) or “bottom-heavy” (low ratio). ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
174,
|
| 409 |
+
714,
|
| 410 |
+
825,
|
| 411 |
+
811
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 4
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "text",
|
| 417 |
+
"text": "Fig. 4 shows the downstream accuracy for ImageNet, Stanford Cars and Sports against this ratio. From the top-left subplot, we see that ResNet-ImageNet accuracy tend to increase with high top:bottom ratio, showing top-heavy networks generally perform better than the bottom-heavy counterparts. However, we no longer observe such trend in other datasets, and with MobileNets (Fig. 4 bottom row) we do not see such trend even for ImageNet. ",
|
| 418 |
+
"bbox": [
|
| 419 |
+
174,
|
| 420 |
+
819,
|
| 421 |
+
825,
|
| 422 |
+
888
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 4
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "An important point to realize: It is necessary to allocate the right portion of parameters to different layers of a given network topology, instead of allocating parameters in the top-heavy or bottom-heavy fashion assuming one will generally lead to better performance. ResNets and many other handcrafted CNNs (Simonyan & Zisserman, 2014; Szegedy et al., 2016; Huang et al., 2017) are usually top-heavy because of GPU memory limits; bottom-heavy networks occupy more memory in terms of activation maps. MobileNets alleviate this to some extent with lighter convolutions, allowing it to have more parameters in early layers. In object detection, Liang et al. (2019) also show that allocation of computational resources in the backbone is important for improved performance. While this architectural difference provides explanations about the wildly different trends we observe above, the key message here is that one recipe (top vs. bottom heavy) does not apply equally to different architectures, bolstering our claim that one network doesn’t rule them all in SSL. ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
173,
|
| 431 |
+
895,
|
| 432 |
+
823,
|
| 433 |
+
924
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 4
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "",
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
103,
|
| 443 |
+
825,
|
| 444 |
+
229
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 5
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "Key takeaway: We need to move beyond handcrafted architectures in SSL. The three main observations above imply that finding an optimal architecture could be an important missing piece for selfsupervised learning. Our results show that the current practice in designing SSL objectives – i.e., optimizing for ImageNet performance based on ResNet backbones – could lead to misleading conclusions which do not generalize to other downstream scenarios. Also, the general belief that “the larger the better” in model size do not really hold in SSL, e.g., smaller ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
174,
|
| 453 |
+
236,
|
| 454 |
+
354,
|
| 455 |
+
540
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 5
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "image",
|
| 461 |
+
"img_path": "images/05d93e00c55127665a07af3b122624e5289290a2942c4b8f7f95506fb063641e.jpg",
|
| 462 |
+
"image_caption": [
|
| 463 |
+
"Figure 4: There is no winner in the top vs. bottom battle in SSL. Except for ResNet-ImageNet (top-left), we see no strong trend that suggests either top-heavy or bottom-heavy networks perform better. "
|
| 464 |
+
],
|
| 465 |
+
"image_footnote": [],
|
| 466 |
+
"bbox": [
|
| 467 |
+
369,
|
| 468 |
+
252,
|
| 469 |
+
823,
|
| 470 |
+
478
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 5
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "ResNets can outperform larger ones even if they are pretrained following the same protocol. Let’s say, based on these observations, one is compelled to hunt for a new architecture geared specifically towards SSL. Our top vs. bottom analysis suggests that it can be extremely tricky to find the right architecture topology with optimal parameter allocation across different layers. All this suggests that it is time to consider moving beyond handcrafted architectures in SSL and start thinking about searching for optimal architectures as part of self-supervised learning objectives. ",
|
| 477 |
+
"bbox": [
|
| 478 |
+
174,
|
| 479 |
+
541,
|
| 480 |
+
825,
|
| 481 |
+
625
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 5
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "4 NEURAL ARCHITECTURE SEARCH FOR SSL ",
|
| 488 |
+
"text_level": 1,
|
| 489 |
+
"bbox": [
|
| 490 |
+
174,
|
| 491 |
+
672,
|
| 492 |
+
570,
|
| 493 |
+
689
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 5
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "We turn to the idea of learning both the architecture topology and its network weights in an SSL framework, using NAS to improve SSL (rather than using SSL to improve NAS). It is important to draw a clear distinction between our idea and prior work that used SSL to improve NAS (Li et al., 2021; Liu et al., 2020; 2019; Yan et al., 2020; Zhang et al., 2021b) as well as work that used NAS to improve supervised learning (Elsken et al., 2019); our goal here is to show the benefit of harnessing NAS in aid of SSL and not for comparison with more recent SOTA NAS approaches. ",
|
| 500 |
+
"bbox": [
|
| 501 |
+
174,
|
| 502 |
+
722,
|
| 503 |
+
825,
|
| 504 |
+
805
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 5
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "text",
|
| 510 |
+
"text": "While examining this idea appears to be straightforward, it requires careful design of experiments. The biggest hurdle is that both NAS and SSL require heavy compute resources; the former needs a search space large enough to cover a comprehensive range of architecture topologies, while the latter requires large datasets and batch sizes to be effective. This calls for an efficient framework to conduct our study. Furthermore, we need datasets large enough to pretrain the models on, and different enough to investigate the importance of data-dependent architectures in SSL. To meet our desiderata, we choose ProxylessNAS (Cai et al., 2018) as our NAS algorithm, MobileNet as our search space, and ImageNet-1K and iNat2021 (Van Horn et al., 2021) as our pretraining datasets. ",
|
| 511 |
+
"bbox": [
|
| 512 |
+
174,
|
| 513 |
+
811,
|
| 514 |
+
825,
|
| 515 |
+
924
|
| 516 |
+
],
|
| 517 |
+
"page_idx": 5
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"type": "image",
|
| 521 |
+
"img_path": "images/f884c9b3cec2a6d4dfcf115fe09d50c96657df2bb253448807cdf02bb24737c0.jpg",
|
| 522 |
+
"image_caption": [
|
| 523 |
+
"Figure 5: Samples from datasets used in our study. We choose these datasets because of the apparent domain shift across them. ImageNet contains general yet coarsely categorized images compared to iNat2021, which contains an order of magnitude higher number of fine-grained categories; although some images look similar to each other, every image shown belongs to a different category highlighting the fine-grained nature of this dataset. The downstream datasets, except for CIFAR, are similarly fine-grained but on different domains. "
|
| 524 |
+
],
|
| 525 |
+
"image_footnote": [],
|
| 526 |
+
"bbox": [
|
| 527 |
+
176,
|
| 528 |
+
101,
|
| 529 |
+
820,
|
| 530 |
+
276
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 6
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "4.1 EXPERIMENTAL SETUP ",
|
| 537 |
+
"text_level": 1,
|
| 538 |
+
"bbox": [
|
| 539 |
+
176,
|
| 540 |
+
375,
|
| 541 |
+
375,
|
| 542 |
+
388
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 6
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "SSL objective. We use SimCLR (Chen et al., 2020a), one of the most well-established contrastive SSL framework. We follow the same augmentation methods and hyperparameter settings as in Chen et al. (2020a). While more recent SSL works exist (Caron et al., 2020; Chen & He, 2021), they are similar to SimCLR by utilizing a contrastive learning based objective. We adopt SimCLR for its simplicity and leave analysis of other SSL approaches for future work. ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
173,
|
| 551 |
+
405,
|
| 552 |
+
825,
|
| 553 |
+
476
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 6
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "NAS algorithm. We choose ProxylessNAS for two reasons: efficiency and flexibility. One-shot NAS algorithms produce an architecture topology in a two-step process. They first find an optimal cell structure by solving a proxy task over a small dataset (e.g., CIFAR-10) and a smaller architecture (e.g., 8 cells), and then stack/repeat the best found cell topology for the target task (e.g., ImageNet with 20 cells). This reduces complexity at the cost of flexibility and introduces an optimization gap (Chen et al., 2021), requiring strong correlation between proxy and the actual target datasets. In contrast, ProxylessNAS produces an architecture by directly optimizing on a target task, as it can significantly ameliorate memory requirements of one-shot NAS methods. To ensure flexibility, it uses a “supernet” with a broad range of candidate operations orchestrating depth (via zero operations), width (via wider convolutions), and block structure (by allowing for operations to differ by level). At each training step, it optimizes one “subnet” on the target task as a surrogate, which greatly reduces compute and memory requirements. ",
|
| 560 |
+
"bbox": [
|
| 561 |
+
174,
|
| 562 |
+
482,
|
| 563 |
+
825,
|
| 564 |
+
650
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 6
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "Datasets. We use ImageNet-1K and iNat2021 to pretrain our models and evaluate them on their validation sets as well as on 10 downstream datasets used in Section 3. We deliberately choose the two pretraining datasets as they exhibit widely different characteristics, i.e., ImageNet-1K contains a variety of objects and scenes, while iNat2021 contains fine-grained species covering the tree of life. The former contains many inorganic object categories not present in the latter. This creates a domain gap, which allows us to investigate the importance of data-dependent architectures in SSL. ",
|
| 571 |
+
"bbox": [
|
| 572 |
+
174,
|
| 573 |
+
656,
|
| 574 |
+
825,
|
| 575 |
+
739
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 6
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "iNat2021 contains 2.7 million images (twice the size of ImageNet) representing 10K species (ten times more than ImageNet). To investigate the effect of dataset size during architecture search and pretraining, we use both the full and the mini versions of iNat2021 – the latter contains 500K images representing the same 10K classes. This gives us pretraining datasets at three different scales: 500K (iNat2021-mini), 1.2M (ImageNet), 2.7M (iNat2021). ",
|
| 582 |
+
"bbox": [
|
| 583 |
+
174,
|
| 584 |
+
747,
|
| 585 |
+
825,
|
| 586 |
+
816
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 6
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "text",
|
| 592 |
+
"text": "Implementation details. For ProxylessNAS, we replace the original supervised classification loss with the contrastive loss of SimCLR and remove the latency loss as we currently do not consider hardware-constrained scenarios. We follow the original training schedule, i.e., a warmup phase for 40 epochs, which optimizes only the network weights and not the NAS parameters, followed by a search phase for 120 epochs. We use the SGD optimizer for network weights and the ADAM optimizer for NAS parameters, using initial learning rates of 0.25 and 0.1, respectively, and use the cosine decay schedule for both. ",
|
| 593 |
+
"bbox": [
|
| 594 |
+
174,
|
| 595 |
+
824,
|
| 596 |
+
825,
|
| 597 |
+
921
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 6
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "text",
|
| 603 |
+
"text": "To make our experiments tractable, we use the MobileNetV2 search space which typically yields 3 to 18 million parameters; the ResNet search space is larger, yielding 20 to 60 million parameters. Working with smaller models means we can use large batch sizes, which is important for contrastive learning to work effectively; we use the batch size 640 given our computational budget. The candidate set of NAS operations consists of mobile inverted bottleneck convolution (MBConv) with kernel sizes $\\{ 3 , 5 , 7 \\}$ , expansion ratios $\\{ 3 , 6 \\}$ and zero operations. A higher expansion ratio enables a wider network with more channels for convolutions, while zero operations allow for choosing to remove operations, thereby learning the optimal depth. Once the search is done, we take the architecture and discard the learned weights; we train it again from scratch using the SimCLR objective on different datasets. This allows us to compare different architectures on fair ground. After pretraining, we conduct linear evaluation on all downstream datasets. ",
|
| 604 |
+
"bbox": [
|
| 605 |
+
173,
|
| 606 |
+
103,
|
| 607 |
+
825,
|
| 608 |
+
256
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 7
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "4.2 RESULTS AND DISCUSSION ",
|
| 615 |
+
"text_level": 1,
|
| 616 |
+
"bbox": [
|
| 617 |
+
176,
|
| 618 |
+
273,
|
| 619 |
+
401,
|
| 620 |
+
287
|
| 621 |
+
],
|
| 622 |
+
"page_idx": 7
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"type": "text",
|
| 626 |
+
"text": "Self-supervised architectures outperform handcrafted architectures in SSL. Table 1 compares our self-supervised architectures to MobileNetV2 and ResNet18/50, by searching, pretraining, and evaluating on ImageNet-1K, iNat2021 and iNat2021-mini. We report linear evaluation results on validation splits. The results show that our selfsupervised architectures outperform MobileNetV2 by a large margin, even with similar parameters (about 3M). ",
|
| 627 |
+
"bbox": [
|
| 628 |
+
174,
|
| 629 |
+
299,
|
| 630 |
+
419,
|
| 631 |
+
479
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 7
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "table",
|
| 637 |
+
"img_path": "images/938163a754c962a7f4d6be4497431cddf7d645e746efb5244f6d37d3881655c3.jpg",
|
| 638 |
+
"table_caption": [
|
| 639 |
+
"Table 1: Searched architectures vs. handcrafted architecture results. We search, pretrain, and evaluate ours on each of the three datasets in the last three columns. †SOTA results (in gray) from Chen et al. (2020a) for ImageNet and Cole et al. (2021) for iNat21 require larger batch sizes and longer training. "
|
| 640 |
+
],
|
| 641 |
+
"table_footnote": [],
|
| 642 |
+
"table_body": "<table><tr><td>Model</td><td>Params</td><td>Batch</td><td>Epochs</td><td>ImageNet</td><td>iNat21</td><td>iNat21-mini</td></tr><tr><td>MobileV2</td><td>3.5M</td><td>640</td><td>100</td><td>41.9</td><td>30.2</td><td>13.6</td></tr><tr><td>Ours</td><td>3.3M</td><td>640</td><td>100</td><td>55.3</td><td>40.3</td><td>14.7</td></tr><tr><td>ResNet18</td><td>11M</td><td>640</td><td>100</td><td>49.8</td><td>30.3</td><td>20.1</td></tr><tr><td>ResNet50</td><td>23.5M</td><td>640</td><td>100</td><td>58.9</td><td>41.3</td><td>23.4</td></tr><tr><td>Ours</td><td>12-18M</td><td>640</td><td>100</td><td>59.1</td><td>43.8</td><td>25.1</td></tr><tr><td>ResNet50</td><td>23.5M</td><td>4096</td><td>1000</td><td>69.3t</td><td>50.6t</td><td>-</td></tr></table>",
|
| 643 |
+
"bbox": [
|
| 644 |
+
436,
|
| 645 |
+
386,
|
| 646 |
+
820,
|
| 647 |
+
467
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 7
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "The self-supervised architectures also beat ResNet18 and ResNet50, with even smaller model size than ResNet50. The superior downstream performance of our approach should not be attributed solely to NAS, as the architecture search was performed without ever solving the downstream tasks. It is rather the incorporation of NAS into SSL that improved the quality of representations, leading to downstream performance boost. This shows the effectiveness of learning both the architecture topology and its weights in SSL. ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
174,
|
| 656 |
+
479,
|
| 657 |
+
825,
|
| 658 |
+
563
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 7
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "Do self-supervised architectures generalize well to different data distributions? We take the three architectures searched on each dataset, discard their learned weights, and pretrain them on each dataset, yielding 9 pretrained models. We then evaluate the performance directly on validation splits of the respective datasets. Table 2 shows that transferring an architecture from $\\mathrm { i N a t } 2 0 2 1$ to ImageNet leads to a marginal ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
174,
|
| 667 |
+
570,
|
| 668 |
+
483,
|
| 669 |
+
694
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 7
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "table",
|
| 675 |
+
"img_path": "images/404693e87872fe92f91e8bd92a5e0ce727a4874fcfcd2a42b36b15ac6edfd306.jpg",
|
| 676 |
+
"table_caption": [
|
| 677 |
+
"Table 2: Self-supervised architecture transfer results. We evaluate architectures in the cross-dataset setting, pretraining and evaluating the searched architectures across three datasets (last three columns). "
|
| 678 |
+
],
|
| 679 |
+
"table_footnote": [],
|
| 680 |
+
"table_body": "<table><tr><td>Searched on</td><td>Params</td><td>ImageNet</td><td>iNat21</td><td>iNat21-mini</td></tr><tr><td>ImageNet</td><td>12-18M</td><td>59.1</td><td>21.5</td><td>23.9</td></tr><tr><td>iNat21</td><td>12-18M</td><td>58.3</td><td>43.8</td><td>27.9</td></tr><tr><td>iNat21-mini</td><td>12-18M</td><td>58.0</td><td>22.4</td><td>25.1</td></tr></table>",
|
| 681 |
+
"bbox": [
|
| 682 |
+
500,
|
| 683 |
+
631,
|
| 684 |
+
821,
|
| 685 |
+
680
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 7
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "performance drop compared to an architecture optimized directly on ImageNet $( 5 9 . 1 \\%$ to $5 8 . 3 \\%$ ); both these architectures still outperform handcrafted ResNet18 $( 4 9 . 8 \\% )$ with a comparable model size. However, transferring an architecture from ImageNet to iNat2021 deteriorates performance significantly $( 4 3 . 8 \\%$ to $2 1 . { \\bar { 5 } } \\%$ ). This implies an interesting finding, i.e., iNat21-searched architectures seem to be more resilient to domain shift than ImageNet-searched architectures. This could be due to the difference in dataset size (iNat21 has twice as many images as ImageNet), or due to the fine-grained nature of iNat21 resulting in an overall more difficult instance discrimination task (Chen et al., 2020a) that leads to more discriminative representations. The effect of dataset size on architecture search is also shown on iNat21-mini results. While transferring an architecture from ImageNet to iNat21-mini shows an expected drop in accuracy $( 2 5 . 1 \\%$ to $2 3 . 9 \\%$ ), transferring from the larger iNat21 improves performance $2 5 . 1 \\%$ to $2 7 . 9 \\%$ ). As both datasets are in the same domain and only differ in number of samples per class, higher search dataset size is the driving factor behind the gains in accuracy while pretraining on a smaller version of the dataset. ",
|
| 692 |
+
"bbox": [
|
| 693 |
+
173,
|
| 694 |
+
695,
|
| 695 |
+
825,
|
| 696 |
+
875
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 7
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "Downstream transfer experiments. The results above show that self-supervised architectures are superior to handcrafted architectures when tested in in-distribution settings, which might reflect a practical use case of self-supervised pretraining in the real-world setting (e.g., one has access to only small labeled but large unlabeled data from the same distribution). We now evaluate our approach on a downstream transfer scenario with possible domain shift and with much smaller datasets. To this end, we again use the 10 downstream tasks used in Section 3, which contain datasets coming from both in-distributions and out-of-distributions relative to the pretraining datasets. ",
|
| 703 |
+
"bbox": [
|
| 704 |
+
176,
|
| 705 |
+
882,
|
| 706 |
+
823,
|
| 707 |
+
924
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 7
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "table",
|
| 713 |
+
"img_path": "images/28791a22845f26d263e0c46c70519b62ea681b1e0efc91c53065a751bfe1f7fa.jpg",
|
| 714 |
+
"table_caption": [
|
| 715 |
+
"Table 3: Downstream transfer results. We categorize downstream datasets as in-distribution (green) and outof-distribution (red) relative to the pretraining dataset based on class overlap; best viewed in color. We see that self-supervised architectures generally perform better on in-distribution downstream scenarios. "
|
| 716 |
+
],
|
| 717 |
+
"table_footnote": [],
|
| 718 |
+
"table_body": "<table><tr><td>Pretrain Dataset</td><td>Arch.</td><td>Params</td><td>Pretrain Val. Set</td><td>CUB</td><td>NABirds</td><td>CIFAR10</td><td>Oxford Flowers</td><td>Stanford Dogs</td><td>Food101</td><td>Sport</td><td>Stanford Cars</td><td>MIT67</td><td>FGVC Aircraft</td></tr><tr><td rowspan=\"4\">ImNet</td><td>MobileV2</td><td>3.5M</td><td>41.9</td><td>20.1</td><td>14.2</td><td>75.8</td><td>85.4</td><td>35.7</td><td>51.6</td><td>94.0</td><td>26.4</td><td>57.5</td><td>35.8</td></tr><tr><td>Ours</td><td>3.3M</td><td>55.3</td><td>31.8</td><td>24.4</td><td>78.8</td><td>91.7</td><td>49.2</td><td>61.7</td><td>94.3</td><td>30.4</td><td>62.5</td><td>38.1</td></tr><tr><td>ResNet18</td><td>11M</td><td>49.8</td><td>27.0</td><td>19.0</td><td>79.9</td><td>89.9</td><td>44.1</td><td>55.8</td><td>94.6</td><td>27.8</td><td>62.1</td><td>36.7</td></tr><tr><td>ResNet50</td><td>23.5M</td><td>58.9</td><td>31.4</td><td>24.6</td><td>85.9</td><td>92.8</td><td>52.3</td><td>65.7</td><td>94.3</td><td>35.1</td><td>69.6</td><td>42.0</td></tr><tr><td rowspan=\"3\">iNat21</td><td>Ours</td><td>3-18M</td><td>59.1</td><td>34.3</td><td>26.1</td><td>81.8</td><td>92.2</td><td>51.0</td><td>64.7</td><td>94.7</td><td>33.2</td><td>66.1</td><td>39.4</td></tr><tr><td>ResNet18</td><td>11M</td><td>30.3</td><td>26.1</td><td>19.0</td><td>73.2</td><td>92.8</td><td>31.3</td><td>55.3</td><td>92.1</td><td>18.9</td><td>49.9</td><td>32.7</td></tr><tr><td>ResNet50</td><td>23.5M</td><td>41.3</td><td>31.2</td><td>23.2</td><td>75.1</td><td>95.1</td><td>39.7</td><td>65.1</td><td>94.3</td><td>22.3</td><td>55.0</td><td>37.6</td></tr><tr><td></td><td>Ours</td><td>3-18M</td><td>43.8</td><td>32.7</td><td>24.1</td><td>76.1</td><td>94.7</td><td>39.0</td><td>63.1</td><td>93.1</td><td>20.1</td><td>49.0</td><td>34.9</td></tr></table>",
|
| 719 |
+
"bbox": [
|
| 720 |
+
176,
|
| 721 |
+
145,
|
| 722 |
+
821,
|
| 723 |
+
252
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 8
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "",
|
| 730 |
+
"bbox": [
|
| 731 |
+
174,
|
| 732 |
+
273,
|
| 733 |
+
825,
|
| 734 |
+
329
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 8
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "Table 3 summarizes the results (we color code in/out-of-distribution datasets based on our crude categorization; see appendix for our justification). We first compare our self-supervised architectures to MobileNetV2 in the same parameter range (3.5M vs $3 . 3 \\mathbf { M }$ ; top two rows). We notice that self-supervised architectures significantly outperform MobileNetV2 in all datasets regardless of distributional shift. This is encouraging (i.e., self-supervised architectures can learn generalizable representations) but at the same time not totally surprising (i.e., MobileNet is optimized for efficiency and not for accuracy). Next, we compare ours to ResNet18 that has a similar parameter range although belonging to a class of architectures much different from our search space. Ours outperforms ResNet18 on all pretraining and evaluation datasets by a considerable margin. This shows that our approach is generalizable and can outperform architectures in the ResNet18 search space even though they are generally more computationally expensive than the MobileNet search space. ",
|
| 741 |
+
"bbox": [
|
| 742 |
+
174,
|
| 743 |
+
337,
|
| 744 |
+
825,
|
| 745 |
+
489
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 8
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "Finally, we compare ours to ResNet50 which is computationally heavier compared to ResNet18. We preface our analysis with a caveat that our self-supervised architectures are almost half the capacity of ResNet50, limiting their representational power. Keeping this in mind, we see that our approach starts to fail in some of the in-distribution and all of the out-of-distribution scenarios (red shaded cells). This is somewhat disappointing but perhaps expected: self-supervised architectures naturally encode inductive biases specific to the dataset they were optimized on. When a distributional shift happens, their performance can start deteriorating because out-of-domain data might require a different set of inductive biases. The strong performance by ResNet50 imply that the model might be striking the right balance across those datasets in terms of inductive biases, but our results in Table 1 and 2 show that ResNet50 can be less effective on newly developed datasets such as iNat2021. ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
174,
|
| 754 |
+
496,
|
| 755 |
+
825,
|
| 756 |
+
635
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 8
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "5 CONCLUSION ",
|
| 763 |
+
"text_level": 1,
|
| 764 |
+
"bbox": [
|
| 765 |
+
176,
|
| 766 |
+
664,
|
| 767 |
+
318,
|
| 768 |
+
679
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 8
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "This work lays the ground for moving beyond handcrafted architectures in SSL. By conducting large-scale experiments with 116 architectures and 11 downstream tasks, we established extensive empirical evidence showing that there isn’t one architecture that performs consistently well across different downstream scenarios in SSL. Motivated by this, we proposed to move beyond handcrafted architectures and learn both an architecture topology and its network weights in SSL. We provided convincing results demonstrating that the self-supervised architectures significantly outperform handcrafted MobileNetV2 and ResNet18 architectures on 11 downstream tasks, and competitively with ResNet50 even with almost half the model size. We re-emphasize that improvements are not solely due to NAS, as the architecture search was performed by solving SSL and not by optimizing directly on downstream tasks as in the typical NAS setting. ",
|
| 775 |
+
"bbox": [
|
| 776 |
+
174,
|
| 777 |
+
694,
|
| 778 |
+
825,
|
| 779 |
+
833
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 8
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "Our work barely scratches the surface and opens up many doors for future directions. Will our findings hold for different architectures such as Transformers and different modalities such as video and text? How can we make architecture search more effective for SSL? Can ideas from domain generalization improve the transferability of self-supervised architectures in the out-of-distribution setting? Or is it even the right idea to expect learned architectures to generalize to widely different domains? We hope the readers are as excited as us to investigate these challenging questions. ",
|
| 786 |
+
"bbox": [
|
| 787 |
+
174,
|
| 788 |
+
840,
|
| 789 |
+
823,
|
| 790 |
+
924
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 8
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "REFERENCES ",
|
| 797 |
+
"text_level": 1,
|
| 798 |
+
"bbox": [
|
| 799 |
+
174,
|
| 800 |
+
103,
|
| 801 |
+
287,
|
| 802 |
+
117
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 9
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "Sanjeev Arora, Hrishikesh Khandeparkar, Mikhail Khodak, Orestis Plevrakis, and Nikunj Saunshi. A theoretical analysis of contrastive unsupervised representation learning. arXiv preprint arXiv:1902.09229, 2019. 1 ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
173,
|
| 811 |
+
126,
|
| 812 |
+
823,
|
| 813 |
+
167
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 9
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Hangbo Bao, Li Dong, and Furu Wei. Beit: Bert pre-training of image transformers. arXiv preprint arXiv:2106.08254, 2021. 1 ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
171,
|
| 822 |
+
176,
|
| 823 |
+
823,
|
| 824 |
+
205
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 9
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018. 2, 6, 15 ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
173,
|
| 833 |
+
213,
|
| 834 |
+
821,
|
| 835 |
+
242
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 9
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "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, pp. 132–149, 2018. 1 ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
174,
|
| 844 |
+
251,
|
| 845 |
+
821,
|
| 846 |
+
292
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 9
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. arXiv preprint arXiv:2006.09882, 2020. 1, 3, 7 ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
173,
|
| 855 |
+
301,
|
| 856 |
+
823,
|
| 857 |
+
344
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 9
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "Mathilde Caron, Hugo Touvron, Ishan Misra, Herve J ´ egou, Julien Mairal, Piotr Bojanowski, and ´ Armand Joulin. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 9650–9660, 2021. 3 ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
173,
|
| 866 |
+
352,
|
| 867 |
+
825,
|
| 868 |
+
396
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 9
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pp. 1597–1607. PMLR, 2020a. 1, 2, 3, 4, 7, 8, 15, 17, 18 ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
176,
|
| 877 |
+
404,
|
| 878 |
+
823,
|
| 879 |
+
446
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 9
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey E Hinton. Big self-supervised models are strong semi-supervised learners. Advances in neural information processing systems, 33:22243–22255, 2020b. 5 ",
|
| 886 |
+
"bbox": [
|
| 887 |
+
176,
|
| 888 |
+
454,
|
| 889 |
+
823,
|
| 890 |
+
497
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 9
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "Xin Chen, Lingxi Xie, Jun Wu, and Qi Tian. Progressive darts: Bridging the optimization gap for nas in the wild. International Journal of Computer Vision, 129(3):638–655, 2021. 7 ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
171,
|
| 899 |
+
505,
|
| 900 |
+
823,
|
| 901 |
+
535
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 9
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Xinlei Chen and Kaiming He. Exploring simple siamese representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 15750–15758, 2021. 1, 3, 7 ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
174,
|
| 910 |
+
542,
|
| 911 |
+
823,
|
| 912 |
+
584
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 9
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020c. 3 ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
169,
|
| 921 |
+
593,
|
| 922 |
+
825,
|
| 923 |
+
622
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 9
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Yu Cheng, Duo Wang, Pan Zhou, and Tao Zhang. A survey of model compression and acceleration for deep neural networks. arXiv preprint arXiv:1710.09282, 2017. 3 ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
173,
|
| 932 |
+
630,
|
| 933 |
+
823,
|
| 934 |
+
660
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 9
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Elijah Cole, Xuan Yang, Kimberly Wilber, Oisin Mac Aodha, and Serge Belongie. When does contrastive visual representation learning work? arXiv preprint arXiv:2105.05837, 2021. 1, 8 ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
171,
|
| 943 |
+
667,
|
| 944 |
+
823,
|
| 945 |
+
696
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 9
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009. 2, 16, 17, 18, 20 ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
174,
|
| 954 |
+
704,
|
| 955 |
+
823,
|
| 956 |
+
748
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 9
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "Debadeepta Dey, Shital Shah, and Sebastien Bubeck. Fear: A simple lightweight method to rank architectures. arXiv preprint arXiv:2106.04010, 2021. 2 ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
168,
|
| 965 |
+
756,
|
| 966 |
+
823,
|
| 967 |
+
785
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 9
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Thomas Elsken, Jan Hendrik Metzen, Frank Hutter, et al. Neural architecture search: A survey. J. Mach. Learn. Res., 20(55):1–21, 2019. 3, 6 ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
173,
|
| 976 |
+
792,
|
| 977 |
+
823,
|
| 978 |
+
821
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 9
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "Linus Ericsson, Henry Gouk, and Timothy M Hospedales. How well do self-supervised models transfer? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5414–5423, 2021. 3 ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
174,
|
| 987 |
+
830,
|
| 988 |
+
823,
|
| 989 |
+
872
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 9
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Christoph Feichtenhofer, Haoqi Fan, Bo Xiong, Ross Girshick, and Kaiming He. A large-scale study on unsupervised spatiotemporal representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3299–3309, 2021. 1 ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
881,
|
| 999 |
+
825,
|
| 1000 |
+
924
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 9
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. arXiv preprint arXiv:1803.07728, 2018. 1, 3 ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
171,
|
| 1009 |
+
103,
|
| 1010 |
+
823,
|
| 1011 |
+
132
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 10
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Jean-Bastien Grill, Florian Strub, Florent Altche, Corentin Tallec, Pierre H Richemond, Elena ´ Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv preprint arXiv:2006.07733, 2020. 1, 2 ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
173,
|
| 1020 |
+
142,
|
| 1021 |
+
825,
|
| 1022 |
+
199
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 10
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. 1, 2 ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
173,
|
| 1031 |
+
210,
|
| 1032 |
+
825,
|
| 1033 |
+
253
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 10
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9729–9738, 2020. 1, 2 ",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
173,
|
| 1042 |
+
265,
|
| 1043 |
+
825,
|
| 1044 |
+
308
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 10
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollar, and Ross Girshick. Masked au- ´ toencoders are scalable vision learners. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16000–16009, 2022. 1, 2 ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
173,
|
| 1053 |
+
318,
|
| 1054 |
+
821,
|
| 1055 |
+
361
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 10
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017. 6 ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
173,
|
| 1064 |
+
371,
|
| 1065 |
+
826,
|
| 1066 |
+
414
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 10
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Aditya Khosla, Nityananda Jayadevaprakash, Bangpeng Yao, and Fei-Fei Li. Novel dataset for finegrained image categorization: Stanford dogs. In Proc. CVPR Workshop on Fine-Grained Visual Categorization (FGVC), volume 2. Citeseer, 2011. 16, 20 ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
173,
|
| 1075 |
+
425,
|
| 1076 |
+
823,
|
| 1077 |
+
468
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 10
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, and Piotr Dollar. Panoptic segmen- ´ tation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9404–9413, 2019. 3 ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
173,
|
| 1086 |
+
478,
|
| 1087 |
+
823,
|
| 1088 |
+
522
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 10
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "Alexander Kolesnikov, Xiaohua Zhai, and Lucas Beyer. Revisiting self-supervised visual representation learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 1920–1929, 2019. 2, 3 ",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
174,
|
| 1097 |
+
532,
|
| 1098 |
+
825,
|
| 1099 |
+
575
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 10
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "Simon Kornblith, Jonathon Shlens, and Quoc V Le. Do better imagenet models transfer better? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2661–2671, 2019. 3, 4 ",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
173,
|
| 1108 |
+
587,
|
| 1109 |
+
825,
|
| 1110 |
+
630
|
| 1111 |
+
],
|
| 1112 |
+
"page_idx": 10
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"type": "text",
|
| 1116 |
+
"text": "Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In Proceedings of the IEEE international conference on computer vision workshops, pp. 554–561, 2013. 16, 20 ",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
173,
|
| 1119 |
+
640,
|
| 1120 |
+
825,
|
| 1121 |
+
683
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 10
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. 16, 20 ",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
173,
|
| 1130 |
+
694,
|
| 1131 |
+
823,
|
| 1132 |
+
723
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 10
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "Changlin Li, Tao Tang, Guangrun Wang, Jiefeng Peng, Bing Wang, Xiaodan Liang, and Xiaojun Chang. Bossnas: Exploring hybrid cnn-transformers with block-wisely self-supervised neural architecture search. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 12281–12291, 2021. 3, 6 ",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
173,
|
| 1141 |
+
733,
|
| 1142 |
+
825,
|
| 1143 |
+
791
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 10
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "Li-Jia Li and Li Fei-Fei. What, where and who? classifying events by scene and object recognition. In 2007 IEEE 11th international conference on computer vision, pp. 1–8. IEEE, 2007. 16, 20 ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
171,
|
| 1152 |
+
801,
|
| 1153 |
+
823,
|
| 1154 |
+
830
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 10
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "Feng Liang, Chen Lin, Ronghao Guo, Ming Sun, Wei Wu, Junjie Yan, and Wanli Ouyang. Computation reallocation for object detection. arXiv preprint arXiv:1912.11234, 2019. 6 ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
171,
|
| 1163 |
+
840,
|
| 1164 |
+
821,
|
| 1165 |
+
871
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 10
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "Chenxi Liu, Piotr Dollar, Kaiming He, Ross Girshick, Alan Yuille, and Saining Xie. Are labels ´ necessary for neural architecture search? In European Conference on Computer Vision, pp. 798– 813. Springer, 2020. 3, 6 ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
174,
|
| 1174 |
+
881,
|
| 1175 |
+
825,
|
| 1176 |
+
924
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 10
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "text",
|
| 1182 |
+
"text": "Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. In International Conference on Learning Representations, 2019. URL https://openreview. net/forum?id=S1eYHoC5FX. 3, 6 ",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
173,
|
| 1185 |
+
103,
|
| 1186 |
+
823,
|
| 1187 |
+
146
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 11
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "Subhransu Maji, Esa Rahtu, Juho Kannala, Matthew Blaschko, and Andrea Vedaldi. Fine-grained visual classification of aircraft. arXiv preprint arXiv:1306.5151, 2013. 16 ",
|
| 1194 |
+
"bbox": [
|
| 1195 |
+
171,
|
| 1196 |
+
156,
|
| 1197 |
+
823,
|
| 1198 |
+
185
|
| 1199 |
+
],
|
| 1200 |
+
"page_idx": 11
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"type": "text",
|
| 1204 |
+
"text": "Joseph Mellor, Jack Turner, Amos Storkey, and Elliot J. Crowley. Neural architecture search without training, 2021. 3 ",
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
173,
|
| 1207 |
+
195,
|
| 1208 |
+
823,
|
| 1209 |
+
224
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 11
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"type": "text",
|
| 1215 |
+
"text": "Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. 2011. 16, 20 ",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
173,
|
| 1218 |
+
234,
|
| 1219 |
+
823,
|
| 1220 |
+
263
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 11
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In 2008 Sixth Indian Conference on Computer Vision, Graphics & Image Processing, pp. 722–729. IEEE, 2008. 16, 20 ",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
174,
|
| 1229 |
+
273,
|
| 1230 |
+
823,
|
| 1231 |
+
316
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 11
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. 1 ",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
171,
|
| 1240 |
+
327,
|
| 1241 |
+
823,
|
| 1242 |
+
356
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 11
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "Ben Poole, Sherjil Ozair, Aaron Van Den Oord, Alex Alemi, and George Tucker. On variational bounds of mutual information. In International Conference on Machine Learning, pp. 5171– 5180. PMLR, 2019. 1 ",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
173,
|
| 1251 |
+
366,
|
| 1252 |
+
825,
|
| 1253 |
+
409
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 11
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "Ariadna Quattoni and Antonio Torralba. Recognizing indoor scenes. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pp. 413–420. IEEE, 2009. 16, 20 ",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
173,
|
| 1262 |
+
419,
|
| 1263 |
+
823,
|
| 1264 |
+
449
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 11
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "text",
|
| 1270 |
+
"text": "Maithra Raghu, Ben Poole, Jon Kleinberg, Surya Ganguli, and Jascha Sohl-Dickstein. On the expressive power of deep neural networks. In international conference on machine learning, pp. 2847–2854. PMLR, 2017. 2, 5 ",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
173,
|
| 1273 |
+
458,
|
| 1274 |
+
825,
|
| 1275 |
+
501
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 11
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4510–4520, 2018. 2 ",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
174,
|
| 1284 |
+
512,
|
| 1285 |
+
823,
|
| 1286 |
+
555
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 11
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "Terrence J Sejnowski. The unreasonable effectiveness of deep learning in artificial intelligence. Proceedings of the National Academy of Sciences, 117(48):30033–30038, 2020. 1 ",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
171,
|
| 1295 |
+
564,
|
| 1296 |
+
821,
|
| 1297 |
+
594
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 11
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 6 ",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
171,
|
| 1306 |
+
603,
|
| 1307 |
+
823,
|
| 1308 |
+
633
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 11
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Revisiting unreasonable effectiveness of data in deep learning era. In Proceedings of the IEEE international conference on computer vision, pp. 843–852, 2017. 1 ",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
174,
|
| 1317 |
+
642,
|
| 1318 |
+
823,
|
| 1319 |
+
685
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 11
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818–2826, 2016. 6 ",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
173,
|
| 1328 |
+
695,
|
| 1329 |
+
825,
|
| 1330 |
+
739
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 11
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "Lukas Tuggener, Jurgen Schmidhuber, and Thilo Stadelmann. Is it enough to optimize cnn architec-¨ tures on imagenet? arXiv preprint arXiv:2103.09108, 2021. 2 ",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
173,
|
| 1339 |
+
750,
|
| 1340 |
+
823,
|
| 1341 |
+
779
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 11
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "text",
|
| 1347 |
+
"text": "Grant Van Horn, Elijah Cole, Sara Beery, Kimberly Wilber, Serge Belongie, and Oisin Mac Aodha. Benchmarking representation learning for natural world image collections. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12884–12893, 2021. 2, 6 ",
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
174,
|
| 1350 |
+
787,
|
| 1351 |
+
825,
|
| 1352 |
+
844
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 11
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "P. Welinder, S. Branson, T. Mita, C. Wah, F. Schroff, S. Belongie, and P. Perona. Caltech-UCSD Birds 200. Technical Report CNS-TR-2010-001, California Institute of Technology, 2010. 16, 20 ",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
171,
|
| 1361 |
+
856,
|
| 1362 |
+
825,
|
| 1363 |
+
885
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 11
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"type": "text",
|
| 1369 |
+
"text": "Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. Detectron2. 2019. URL https://github. com/facebookresearch/detectron2, 2(3), 2019. 3 ",
|
| 1370 |
+
"bbox": [
|
| 1371 |
+
176,
|
| 1372 |
+
895,
|
| 1373 |
+
821,
|
| 1374 |
+
924
|
| 1375 |
+
],
|
| 1376 |
+
"page_idx": 11
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"type": "text",
|
| 1380 |
+
"text": "Shen Yan, Yu Zheng, Wei Ao, Xiao Zeng, and Mi Zhang. Does unsupervised architecture representation learning help neural architecture search? Advances in Neural Information Processing Systems, 33, 2020. 3, 6 ",
|
| 1381 |
+
"bbox": [
|
| 1382 |
+
176,
|
| 1383 |
+
103,
|
| 1384 |
+
823,
|
| 1385 |
+
146
|
| 1386 |
+
],
|
| 1387 |
+
"page_idx": 12
|
| 1388 |
+
},
|
| 1389 |
+
{
|
| 1390 |
+
"type": "text",
|
| 1391 |
+
"text": "Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning (still) requires rethinking generalization. Communications of the ACM, 64(3):107– 115, 2021a. 2 ",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
173,
|
| 1394 |
+
155,
|
| 1395 |
+
823,
|
| 1396 |
+
196
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 12
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"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, pp. 586–595, 2018. 1 ",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
173,
|
| 1405 |
+
207,
|
| 1406 |
+
823,
|
| 1407 |
+
250
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 12
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"type": "text",
|
| 1413 |
+
"text": "Xuanyang Zhang, Pengfei Hou, Xiangyu Zhang, and Jian Sun. Neural architecture search with random labels. arXiv preprint arXiv:2101.11834, 2021b. 3, 6 ",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
173,
|
| 1416 |
+
258,
|
| 1417 |
+
821,
|
| 1418 |
+
286
|
| 1419 |
+
],
|
| 1420 |
+
"page_idx": 12
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"type": "text",
|
| 1424 |
+
"text": "APPENDIX ",
|
| 1425 |
+
"text_level": 1,
|
| 1426 |
+
"bbox": [
|
| 1427 |
+
176,
|
| 1428 |
+
103,
|
| 1429 |
+
263,
|
| 1430 |
+
117
|
| 1431 |
+
],
|
| 1432 |
+
"page_idx": 13
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"type": "text",
|
| 1436 |
+
"text": "Fig. 6 provides an overview of our work. We show that no single handcrafted architecture performs consistently well across different tasks. It is therefore imperative to optimize for architecture topologies along with network weights for a specific task. Through extensive empirical results we show that such self-supervised architectures outperform their handcrafted counterparts in the same search space on the respective tasks. ",
|
| 1437 |
+
"bbox": [
|
| 1438 |
+
173,
|
| 1439 |
+
133,
|
| 1440 |
+
825,
|
| 1441 |
+
204
|
| 1442 |
+
],
|
| 1443 |
+
"page_idx": 13
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"type": "image",
|
| 1447 |
+
"img_path": "images/accf1356d2a88bdcd1df4d10e4829e92d0fd35757f21f6038b46032d63d2158b.jpg",
|
| 1448 |
+
"image_caption": [
|
| 1449 |
+
"Figure 6: Conventional SSL frameworks learn network weights for a fixed handcrafted architecture (left). We show that learning architecture topologies along with their weights can improve performance in SSL (right). "
|
| 1450 |
+
],
|
| 1451 |
+
"image_footnote": [],
|
| 1452 |
+
"bbox": [
|
| 1453 |
+
259,
|
| 1454 |
+
226,
|
| 1455 |
+
738,
|
| 1456 |
+
536
|
| 1457 |
+
],
|
| 1458 |
+
"page_idx": 13
|
| 1459 |
+
},
|
| 1460 |
+
{
|
| 1461 |
+
"type": "text",
|
| 1462 |
+
"text": "A SUPERVISED TRAINING PERFORMANCE OF SELF-SUPERVISED ARCHITECTURES ",
|
| 1463 |
+
"text_level": 1,
|
| 1464 |
+
"bbox": [
|
| 1465 |
+
174,
|
| 1466 |
+
604,
|
| 1467 |
+
723,
|
| 1468 |
+
640
|
| 1469 |
+
],
|
| 1470 |
+
"page_idx": 13
|
| 1471 |
+
},
|
| 1472 |
+
{
|
| 1473 |
+
"type": "text",
|
| 1474 |
+
"text": "In addition to evaluating the performance of the searched architectures for SSL, we analyze their supervised training performance. We use the searched architectures and directly train them, from scratch without any pretraining, on downstream datasets using the supervised labels. Results are summarized in Table 4. We include architectures searched on ImageNet and iNat21, and MobileNetV2 for reference. It shows the searched architectures perform well even in the supervised setting, outperforming the handcrafted MobileNetV2 on most of the downstream datasets. However, a performance degradation is observed in out-of-distribution datasets like Stanford Cars and FGVC Aircraft. This is in line with the discussion in Section 4.2 of the main paper where the searched architecture performances deteriorate with distributional shift. Nevertheless, for the more in-distribution datasets, we obtain higher accuracies showing that the searched architectures are suitable for supervised training as well. ",
|
| 1475 |
+
"bbox": [
|
| 1476 |
+
173,
|
| 1477 |
+
655,
|
| 1478 |
+
825,
|
| 1479 |
+
809
|
| 1480 |
+
],
|
| 1481 |
+
"page_idx": 13
|
| 1482 |
+
},
|
| 1483 |
+
{
|
| 1484 |
+
"type": "table",
|
| 1485 |
+
"img_path": "images/884caaa801d66d7e0f5db3eac488794bc42cc3ff4ac831f806cc59dac3533d44.jpg",
|
| 1486 |
+
"table_caption": [
|
| 1487 |
+
"Table 4: Supervised performance of searched architectures. "
|
| 1488 |
+
],
|
| 1489 |
+
"table_footnote": [],
|
| 1490 |
+
"table_body": "<table><tr><td></td><td>CUB</td><td>CIFAR10</td><td>CIFAR100</td><td>Food</td><td>Flowers</td><td>Sport</td><td>Cars</td><td>Aircraft</td></tr><tr><td>MobileNetV2</td><td>58.2</td><td>93.7</td><td>71.9</td><td>80.8</td><td>90.0</td><td>94.2</td><td>88.6</td><td>81.4</td></tr><tr><td>Ours (ImNet)</td><td>57.9</td><td>93.1</td><td>74.7</td><td>78.1</td><td>96.7</td><td>95.0</td><td>71.0</td><td>75.5</td></tr><tr><td>Ours (iNat21)</td><td>64.5</td><td>93.9</td><td>75.8</td><td>81.6</td><td>98.1</td><td>96.3</td><td>72.3</td><td>72.9</td></tr></table>",
|
| 1491 |
+
"bbox": [
|
| 1492 |
+
178,
|
| 1493 |
+
847,
|
| 1494 |
+
820,
|
| 1495 |
+
920
|
| 1496 |
+
],
|
| 1497 |
+
"page_idx": 13
|
| 1498 |
+
},
|
| 1499 |
+
{
|
| 1500 |
+
"type": "text",
|
| 1501 |
+
"text": "B CLASS MAPPING FROM IMAGENET TO DOWNSTREAM DATASETS",
|
| 1502 |
+
"text_level": 1,
|
| 1503 |
+
"bbox": [
|
| 1504 |
+
176,
|
| 1505 |
+
102,
|
| 1506 |
+
748,
|
| 1507 |
+
118
|
| 1508 |
+
],
|
| 1509 |
+
"page_idx": 14
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "text",
|
| 1513 |
+
"text": "We provide a justification for characterizing downstream datasets as in-distribution/out-ofdistribution with respect to ImageNet as shown in Table 3 of the main paper. We provide a rough class mapping between ImageNet and the 10 downstream datasets. Note that obtaining an exact class mapping is difficult due to only an approximate mapping existing between any 2 datasets. In addition, there can be classes which contribute to improved features for another class while still being semantically different. For example, zebra (n02391049) can contribute to improved features for horses (sorrel-n02389026) due to similar shapes. We now list datasets with corresponding ImageNet classes/superclasses. While some superclasses can contain additional subclasses in the WordNet hierarchy, we restrict to only those classes in the ImageNet-1k dataset. Numbers in bracket denote the total number of classes roughly overlapping. ",
|
| 1514 |
+
"bbox": [
|
| 1515 |
+
174,
|
| 1516 |
+
132,
|
| 1517 |
+
825,
|
| 1518 |
+
272
|
| 1519 |
+
],
|
| 1520 |
+
"page_idx": 14
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "text",
|
| 1524 |
+
"text": "• CIFAR-10 (270): vehicle (n4524313), bird (n1503061), feline (n2120997), frog (n1639765), dog (n2084071), sorrel (n2389026) \n• Stanford Dogs (120): dog (n2084071) \n• CUB (60): bird (n1503061) \n• NABirds (60): bird (n1503061) \n• Food101 (20): nutriment (n7570720), beverage (n7881800), foodstuff (n7566340), sandwich (n7695965), bagel (n7693725), guacamole (n7583066), chocolate sauce (n7836838), carbonara (n7831146), french loaf (n7684084), pretzel (n7695742) \n• Stanford Cars (10): car (n2958343) \n• FGVC Aircraft (3): airliner (n2690373), warplane (n4552348), airship (n2692877) \n• Oxford Flowers (2): yellow lady’s slipper (n12057211), daisy (n11939491) \n• MIT67 (0): - \n• Sports(0): - ",
|
| 1525 |
+
"bbox": [
|
| 1526 |
+
217,
|
| 1527 |
+
281,
|
| 1528 |
+
825,
|
| 1529 |
+
496
|
| 1530 |
+
],
|
| 1531 |
+
"page_idx": 14
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "text",
|
| 1535 |
+
"text": "Due to the inductive biases encoded during the search process specific to the dataset it is searched on, the self-supervised architecture performs well on more in-distribution datasets like CUB or NABirds. However, we see that for datasets like Stanford Cars and subsequent ones, there is little direct class overlap with ImageNet classes. This leads to lesser images being available for self-supervised pretraining which are in-distribution for these datasets. Consequently, due to the relatively out-of-distribution nature of these datasets we see in Table 3 of the main paper, our selfsupervised architectures are outperformed by the ResNet-50 baseline. ",
|
| 1536 |
+
"bbox": [
|
| 1537 |
+
173,
|
| 1538 |
+
506,
|
| 1539 |
+
825,
|
| 1540 |
+
603
|
| 1541 |
+
],
|
| 1542 |
+
"page_idx": 14
|
| 1543 |
+
},
|
| 1544 |
+
{
|
| 1545 |
+
"type": "text",
|
| 1546 |
+
"text": "C ADDITIONAL IMPLEMENTATION DETAILS ",
|
| 1547 |
+
"text_level": 1,
|
| 1548 |
+
"bbox": [
|
| 1549 |
+
174,
|
| 1550 |
+
622,
|
| 1551 |
+
553,
|
| 1552 |
+
638
|
| 1553 |
+
],
|
| 1554 |
+
"page_idx": 14
|
| 1555 |
+
},
|
| 1556 |
+
{
|
| 1557 |
+
"type": "text",
|
| 1558 |
+
"text": "We sample ResNet architectures by varying the number of blocks at each of the 4 stages choosing from the set of $2 , 3 , 4$ blocks and choose the ones in the parameter range shown in Fig. 3 while also fitting in GPU memory. For MobileNets, we have 7 sequences (stages) and a higher variation of the number of blocks from [2-6] while also choosing the width parameter from the set $1 . 0 , 1 . 2 , 1 . 4 , 1 . 6 , 1 . 8 , 2 . 0$ and choose the ones in the 2M-7M parameter range and fitting in GPU memory. Note that a high number of blocks in the earlier stages take significantly more GPU memory due to larger feature map sizes. ",
|
| 1559 |
+
"bbox": [
|
| 1560 |
+
174,
|
| 1561 |
+
652,
|
| 1562 |
+
825,
|
| 1563 |
+
750
|
| 1564 |
+
],
|
| 1565 |
+
"page_idx": 14
|
| 1566 |
+
},
|
| 1567 |
+
{
|
| 1568 |
+
"type": "text",
|
| 1569 |
+
"text": "For the architecture search phase, we use the optimizer hyperparameters as explained in Sec. 4.1 of the main paper. We use a weight decay of $4 e ^ { - 5 }$ for the weight parameters excluding batch normalization parameters. The initial convolution is a $3 { \\tt X } 3$ convolution with stride 2. The network consists of 6 stages with 4 cells in the first 5 stages and 1 cell in the last stage. By default, the number of channels at each stage is 24, 40, 80, 96, 192, 320, which is multiplied by a constant width multiplier. We downsample it by a factor of 2 at the beginning of the first, second, third and fifth stage. Other architecture details are the default ones used in Cai et al. (2018). We use the same projection head as used normally for SimCLR Chen et al. (2020a) on top of the backbone network, which is a 2048 dimensional hidden layer and 128 dimensional output layer. For evaluation, we remove the projection head and use the output of the network backbone as the feature extractor. Augmentations are the same as in SimCLR with random resize scaling and cropping, flipping and color jitter. A temperature value of $\\tau = 0 . 1$ is set for the contrastive loss. ",
|
| 1570 |
+
"bbox": [
|
| 1571 |
+
174,
|
| 1572 |
+
757,
|
| 1573 |
+
825,
|
| 1574 |
+
922
|
| 1575 |
+
],
|
| 1576 |
+
"page_idx": 14
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"type": "image",
|
| 1580 |
+
"img_path": "images/fd128bd086da0bc459cdfc02749b7abd25faae3e845591e86215b11e95baf798.jpg",
|
| 1581 |
+
"image_caption": [
|
| 1582 |
+
"Figure 7: Self-supervised architectures for different pretraining datasets. MB3 and MB6 are the mobile inverted convolutions with expansion ratio of 3 and 6 respectively. We see that the majority of the preferred convolutions is MB6 $7 \\times 7$ suggesting that the network prefers convolutions with more parameters for the self-supervised regime due to lots of data. For smaller datasets like iNat21Mini, MB6 convolutions are not as strongly preferred. "
|
| 1583 |
+
],
|
| 1584 |
+
"image_footnote": [],
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
179,
|
| 1587 |
+
99,
|
| 1588 |
+
816,
|
| 1589 |
+
412
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 15
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "text",
|
| 1595 |
+
"text": "D VISUALIZING SELF-SUPERVISED ARCHITECTURES FOR DIFFERENT PRETRAINING DATASETS ",
|
| 1596 |
+
"text_level": 1,
|
| 1597 |
+
"bbox": [
|
| 1598 |
+
174,
|
| 1599 |
+
518,
|
| 1600 |
+
767,
|
| 1601 |
+
553
|
| 1602 |
+
],
|
| 1603 |
+
"page_idx": 15
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"type": "text",
|
| 1607 |
+
"text": "We visualize the types of convolutions searched at a $1 . 7 5 \\mathrm { x }$ width multiplier for the 3 different pretraining datasets: ImageNet, iNat21 and iNat21Mini. Results are shown in Fig. 7. MB3 and MB6 are the mobile inverted convolutions with expansion ratio of 3 and 6 respectively. The grey lines denote the downsampling of image due to strided convolutions. All architectures are followed by a pooling layer to reduce the image size to $1 \\times 1$ . In contrast to standard handcrafted architectures, larger $7 \\times 7$ convolutions are preferred even in the later stages of the network. We also see that the majority of the preferred convolutions is MB6 $7 \\times 7$ suggesting that the network prefers convolutions with more parameters for the self-supervised regime due to lots of data. This is less preferred in smaller datasets like iNat21Mini where MB3 convolutions are common especially in earlier stages of the network. It is difficult to draw conclusions on the type of network preferred between ImageNet and iNat21 showing that it is imperative to search for an optimal architecture rather than handcraft them. ",
|
| 1608 |
+
"bbox": [
|
| 1609 |
+
173,
|
| 1610 |
+
571,
|
| 1611 |
+
825,
|
| 1612 |
+
738
|
| 1613 |
+
],
|
| 1614 |
+
"page_idx": 15
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "text",
|
| 1618 |
+
"text": "E DOWNSTREAM DATASET PERFORMANCE CORRELATION WITH IMAGENET ",
|
| 1619 |
+
"text_level": 1,
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
176,
|
| 1622 |
+
763,
|
| 1623 |
+
820,
|
| 1624 |
+
780
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 15
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "text",
|
| 1630 |
+
"text": "We show the downstream dataset correlation for all 10 downstream datasets in addition to ImageNet1K Deng et al. (2009): CIFAR10/100 Krizhevsky et al. (2009), Stanford Cars Krause et al. (2013) and Dogs Khosla et al. (2011), CUB-200 Welinder et al. (2010), MIT-67 Quattoni & Torralba (2009), SVHN Netzer et al. (2011), Flowers-102 Nilsback & Zisserman (2008), FGVC-Aircraft Maji et al. (2013), Sports8 Li & Fei-Fei (2007). These are shown for both ResNets (Fig. 8) and MobileNets (Fig. 9). We see similar results for the 5 datasets in addition to those shown in Fig. 3 of main paper. High correlation exists for datasets which are visually similar to ImageNet while it is less correlated for datasets which are out of domain. For MobileNets this correlation is even less pronounced with high variance in performance at higher ImageNet accuracies. ",
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
173,
|
| 1633 |
+
797,
|
| 1634 |
+
825,
|
| 1635 |
+
924
|
| 1636 |
+
],
|
| 1637 |
+
"page_idx": 15
|
| 1638 |
+
},
|
| 1639 |
+
{
|
| 1640 |
+
"type": "image",
|
| 1641 |
+
"img_path": "images/0bba7b900089965a52388ce1f902c3c9b6cc53e5c1884cf0ca84918f10797416.jpg",
|
| 1642 |
+
"image_caption": [
|
| 1643 |
+
"Figure 8: ImageNet performance correlation with 10 different downstream datasets for various ResNets. We show linear evaluation top-1 accuracy of ImageNet $\\mathbf { \\dot { x } }$ -axis) vs. different downstream datasets (y-axis) obtained from variations of ResNet; all models are pretrained on ImageNet-1K Deng et al. (2009) using SimCLR Chen et al. (2020a) under the same protocol. The solid lines and shaded areas indicate fitted regression models and their confidence intervals. "
|
| 1644 |
+
],
|
| 1645 |
+
"image_footnote": [],
|
| 1646 |
+
"bbox": [
|
| 1647 |
+
192,
|
| 1648 |
+
167,
|
| 1649 |
+
808,
|
| 1650 |
+
359
|
| 1651 |
+
],
|
| 1652 |
+
"page_idx": 16
|
| 1653 |
+
},
|
| 1654 |
+
{
|
| 1655 |
+
"type": "image",
|
| 1656 |
+
"img_path": "images/70824b783eee5ebb816e486c629b8b2f0fb15cd94462f425e2695756953b96ee.jpg",
|
| 1657 |
+
"image_caption": [
|
| 1658 |
+
"Figure 9: ImageNet performance correlation with 10 different downstream datasets for various MobileNets. We show linear evaluation top-1 accuracy of ImageNet $\\mathbf { \\widetilde { x } }$ -axis) vs. different downstream datasets (y-axis) obtained from variations of MobileNet; all models are pretrained on ImageNet-1K Deng et al. (2009) using SimCLR Chen et al. (2020a) under the same protocol. The solid lines and shaded areas indicate fitted regression models and their confidence intervals. "
|
| 1659 |
+
],
|
| 1660 |
+
"image_footnote": [],
|
| 1661 |
+
"bbox": [
|
| 1662 |
+
191,
|
| 1663 |
+
579,
|
| 1664 |
+
808,
|
| 1665 |
+
775
|
| 1666 |
+
],
|
| 1667 |
+
"page_idx": 16
|
| 1668 |
+
},
|
| 1669 |
+
{
|
| 1670 |
+
"type": "image",
|
| 1671 |
+
"img_path": "images/f6a7746ca10efe2bcf8f6ff1e9ca1737ac46bc489713dce258d039d4835980b9.jpg",
|
| 1672 |
+
"image_caption": [
|
| 1673 |
+
"Figure 10: Dataset performance correlation with 10 different datasets for various ResNets. We show the model size in terms of parameter counts $\\mathbf { \\widetilde { x } }$ -axis) vs. top-1 accuracy on different datasets obtained from variations of ResNet-like architectures; all models are pretrained on ImageNet-1K Deng et al. (2009) using SimCLR Chen et al. (2020a) under the same protocol. The solid lines and shaded areas indicate fitted regression models and their confidence intervals. "
|
| 1674 |
+
],
|
| 1675 |
+
"image_footnote": [],
|
| 1676 |
+
"bbox": [
|
| 1677 |
+
174,
|
| 1678 |
+
162,
|
| 1679 |
+
816,
|
| 1680 |
+
363
|
| 1681 |
+
],
|
| 1682 |
+
"page_idx": 17
|
| 1683 |
+
},
|
| 1684 |
+
{
|
| 1685 |
+
"type": "image",
|
| 1686 |
+
"img_path": "images/43fda8482ba7f3742017ae263db37ba673a381a4bd5bda452e730fa8592579af.jpg",
|
| 1687 |
+
"image_caption": [
|
| 1688 |
+
"Figure 11: Dataset performance correlation with 10 different datasets for various MobileNets. We show the model size in terms of parameter counts $\\mathbf { \\widetilde { x } }$ -axis) vs. top-1 accuracy on different datasets obtained from variations of MobileNet-like architectures; all models are pretrained on ImageNet-1K Deng et al. (2009) using SimCLR Chen et al. (2020a) under the same protocol. The solid lines and shaded areas indicate fitted regression models and their confidence intervals. "
|
| 1689 |
+
],
|
| 1690 |
+
"image_footnote": [],
|
| 1691 |
+
"bbox": [
|
| 1692 |
+
176,
|
| 1693 |
+
577,
|
| 1694 |
+
816,
|
| 1695 |
+
779
|
| 1696 |
+
],
|
| 1697 |
+
"page_idx": 17
|
| 1698 |
+
},
|
| 1699 |
+
{
|
| 1700 |
+
"type": "image",
|
| 1701 |
+
"img_path": "images/7370ad50b35571a20834b016d378412186e599a7e683874e685da7feb210fd98.jpg",
|
| 1702 |
+
"image_caption": [
|
| 1703 |
+
"Figure 12: Linear and rank correlation of ResNets between different pairs of 11 datasets We show correlation between every pair of top-1 accuracy on 11 downstream tasks obtained from ImageNet-pretrained ResNets. We see no strong correlation except for ones highly similar to the data the models were originally pretrained on, e.g., CIFAR-10/100 and Dogs120. "
|
| 1704 |
+
],
|
| 1705 |
+
"image_footnote": [],
|
| 1706 |
+
"bbox": [
|
| 1707 |
+
184,
|
| 1708 |
+
102,
|
| 1709 |
+
508,
|
| 1710 |
+
316
|
| 1711 |
+
],
|
| 1712 |
+
"page_idx": 18
|
| 1713 |
+
},
|
| 1714 |
+
{
|
| 1715 |
+
"type": "image",
|
| 1716 |
+
"img_path": "images/efa643a0719af7cf0d7b6b0edc681bbc4514829f52ef93a07103374d1a8f41a3.jpg",
|
| 1717 |
+
"image_caption": [],
|
| 1718 |
+
"image_footnote": [],
|
| 1719 |
+
"bbox": [
|
| 1720 |
+
529,
|
| 1721 |
+
103,
|
| 1722 |
+
849,
|
| 1723 |
+
316
|
| 1724 |
+
],
|
| 1725 |
+
"page_idx": 18
|
| 1726 |
+
},
|
| 1727 |
+
{
|
| 1728 |
+
"type": "image",
|
| 1729 |
+
"img_path": "images/7d32535940ca31ff4448230673c02a97883e7edfd1ef783b7da494664bd4913c.jpg",
|
| 1730 |
+
"image_caption": [
|
| 1731 |
+
"Figure 13: Linear and rank correlation of MobileNets between different pairs of 11 datasets We show correlation between every pair of top-1 accuracy on 11 downstream tasks obtained from ImageNet-pretrained MobileNets. The correlation "
|
| 1732 |
+
],
|
| 1733 |
+
"image_footnote": [],
|
| 1734 |
+
"bbox": [
|
| 1735 |
+
184,
|
| 1736 |
+
400,
|
| 1737 |
+
509,
|
| 1738 |
+
617
|
| 1739 |
+
],
|
| 1740 |
+
"page_idx": 18
|
| 1741 |
+
},
|
| 1742 |
+
{
|
| 1743 |
+
"type": "image",
|
| 1744 |
+
"img_path": "images/7b54e0d8565d1af9449e55fb75fc8fc58b76a0d58d19907da021698701e96d2a.jpg",
|
| 1745 |
+
"image_caption": [],
|
| 1746 |
+
"image_footnote": [],
|
| 1747 |
+
"bbox": [
|
| 1748 |
+
527,
|
| 1749 |
+
401,
|
| 1750 |
+
851,
|
| 1751 |
+
617
|
| 1752 |
+
],
|
| 1753 |
+
"page_idx": 18
|
| 1754 |
+
},
|
| 1755 |
+
{
|
| 1756 |
+
"type": "text",
|
| 1757 |
+
"text": "F DATASET PERFORMANCE AS A FUNCTION OF NUMBER OF PARAMETERS ",
|
| 1758 |
+
"text_level": 1,
|
| 1759 |
+
"bbox": [
|
| 1760 |
+
171,
|
| 1761 |
+
698,
|
| 1762 |
+
805,
|
| 1763 |
+
715
|
| 1764 |
+
],
|
| 1765 |
+
"page_idx": 18
|
| 1766 |
+
},
|
| 1767 |
+
{
|
| 1768 |
+
"type": "text",
|
| 1769 |
+
"text": "We show the dataset correlation with respect to number of parameters for 5 more datasets in addition to that shown in Fig. 4 of main paper. Fig. 10 summarizes the results for ResNets while Fig. 11 shows results for MobileNets. We see that similar results hold for the additional 5 datasets where more parameters, and consequently larger networks, does not always lead to better downstream performance. ",
|
| 1770 |
+
"bbox": [
|
| 1771 |
+
174,
|
| 1772 |
+
729,
|
| 1773 |
+
825,
|
| 1774 |
+
800
|
| 1775 |
+
],
|
| 1776 |
+
"page_idx": 18
|
| 1777 |
+
},
|
| 1778 |
+
{
|
| 1779 |
+
"type": "text",
|
| 1780 |
+
"text": "G LINEAR AND RANK CORRELATION FOR RESNETS/MOBILENETS ",
|
| 1781 |
+
"text_level": 1,
|
| 1782 |
+
"bbox": [
|
| 1783 |
+
174,
|
| 1784 |
+
820,
|
| 1785 |
+
741,
|
| 1786 |
+
837
|
| 1787 |
+
],
|
| 1788 |
+
"page_idx": 18
|
| 1789 |
+
},
|
| 1790 |
+
{
|
| 1791 |
+
"type": "text",
|
| 1792 |
+
"text": "We show the summary of the correlation across different datasets for both ResNets (Fig. 12) and MobileNets (Fig. 13). In addition to Spearman’s rank correlation coefficient, we also show Pearson’s linear correlation coefficient. While Pearson’s linear coefficient is higher in the case of MobileNets, the linear fit still exhibits high variance for higher ImageNet accuracies, as seen in Fig. 9. ",
|
| 1793 |
+
"bbox": [
|
| 1794 |
+
174,
|
| 1795 |
+
852,
|
| 1796 |
+
825,
|
| 1797 |
+
909
|
| 1798 |
+
],
|
| 1799 |
+
"page_idx": 18
|
| 1800 |
+
},
|
| 1801 |
+
{
|
| 1802 |
+
"type": "image",
|
| 1803 |
+
"img_path": "images/e7eab649c5fd42ef4d4f2ac0653c9c6227eb0ae9a13f15160c00b95f22820cec.jpg",
|
| 1804 |
+
"image_caption": [
|
| 1805 |
+
"Figure 14: ImageNet performance correlation with 10 different downstream datasets for various ResNets, MobileNets and searched architectures. The searched architectures outperform MobileNets while being comparable with ResNets at fewer parameters. "
|
| 1806 |
+
],
|
| 1807 |
+
"image_footnote": [],
|
| 1808 |
+
"bbox": [
|
| 1809 |
+
192,
|
| 1810 |
+
98,
|
| 1811 |
+
807,
|
| 1812 |
+
304
|
| 1813 |
+
],
|
| 1814 |
+
"page_idx": 19
|
| 1815 |
+
},
|
| 1816 |
+
{
|
| 1817 |
+
"type": "text",
|
| 1818 |
+
"text": "H DATASET LICENSES ",
|
| 1819 |
+
"text_level": 1,
|
| 1820 |
+
"bbox": [
|
| 1821 |
+
174,
|
| 1822 |
+
382,
|
| 1823 |
+
375,
|
| 1824 |
+
398
|
| 1825 |
+
],
|
| 1826 |
+
"page_idx": 19
|
| 1827 |
+
},
|
| 1828 |
+
{
|
| 1829 |
+
"type": "text",
|
| 1830 |
+
"text": "Table 5 lists some datasets we used and their licenses. ",
|
| 1831 |
+
"bbox": [
|
| 1832 |
+
174,
|
| 1833 |
+
414,
|
| 1834 |
+
526,
|
| 1835 |
+
428
|
| 1836 |
+
],
|
| 1837 |
+
"page_idx": 19
|
| 1838 |
+
},
|
| 1839 |
+
{
|
| 1840 |
+
"type": "table",
|
| 1841 |
+
"img_path": "images/e53d333c426c871ea086c0b388fb5f77f01feccbdf12b7f6bcb7f9326b0cf486.jpg",
|
| 1842 |
+
"table_caption": [
|
| 1843 |
+
"Table 5: Licenses of datasets. "
|
| 1844 |
+
],
|
| 1845 |
+
"table_footnote": [],
|
| 1846 |
+
"table_body": "<table><tr><td>Dataset</td><td>License</td></tr><tr><td>CIFAR-10 Krizhevsky et al. (2009)</td><td>MIT</td></tr><tr><td>CIFAR-100 Krizhevsky et al. (2009)</td><td>MIT</td></tr><tr><td>ImageNet Deng et al. (2009)</td><td>BSD 3-Clause</td></tr><tr><td>Sport8 Li & Fei-Fei (2007)</td><td>CCO:Public Domain</td></tr><tr><td>Stanford Dogs Khosla et al. (2011)</td><td>BSD3-Clause</td></tr><tr><td>Stanford Cars Krause et al. (2013)</td><td>BSD 3-Clause</td></tr><tr><td>CUB-200 Welinder et al. (2010)</td><td>Data files @ Original Authors</td></tr><tr><td>MIT-67 Quattoni & Torralba a (2009)</td><td>MIT</td></tr><tr><td>SVHN Netzer et al. (2011)</td><td>CCO:Public Domain</td></tr><tr><td>Flowers-102 Nilsback & Zisserman (2008)</td><td>GNU General Public License,version 2</td></tr></table>",
|
| 1847 |
+
"bbox": [
|
| 1848 |
+
212,
|
| 1849 |
+
463,
|
| 1850 |
+
784,
|
| 1851 |
+
651
|
| 1852 |
+
],
|
| 1853 |
+
"page_idx": 19
|
| 1854 |
+
}
|
| 1855 |
+
]
|
parse/dev/1KaSx3GrBBm/1KaSx3GrBBm_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/1KaSx3GrBBm/1KaSx3GrBBm_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/3lge0p5o-M-/3lge0p5o-M-.md
ADDED
|
@@ -0,0 +1,456 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DIFFEDIT: DIFFUSION-BASED SEMANTIC IMAGE EDITING WITH MASK GUIDANCE
|
| 2 |
+
|
| 3 |
+
Guillaume Couairon, Jakob Verbeek, Holger Schwenk Meta AI {gcouairon,jjverbeek, schwenk}@meta.com
|
| 4 |
+
|
| 5 |
+
Matthieu Cord Sorbonne Universite, Valeo.ai´ matthieu.cord@ sorbonne-universite.fr
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Image generation has recently seen tremendous advances, with diffusion models allowing to synthesize convincing images for a large variety of text prompts. In this article, we propose DIFFEDIT, a method to take advantage of text-conditioned diffusion models for the task of semantic image editing, where the goal is to edit an image based on a text query. Semantic image editing is an extension of image generation, with the additional constraint that the generated image should be as similar as possible to a given input image. Current editing methods based on diffusion models usually require to provide a mask, making the task much easier by treating it as a conditional inpainting task. In contrast, our main contribution is able to automatically generate a mask highlighting regions of the input image that need to be edited, by contrasting predictions of a diffusion model conditioned on different text prompts. Moreover, we rely on latent inference to preserve content in those regions of interest and show excellent synergies with mask-based diffusion. DIFFEDIT achieves state-of-the-art editing performance on ImageNet. In addition, we evaluate semantic image editing in more challenging settings, using imagesdit from the COCO dataset as well as text-based generated images.
|
| 10 |
+
|
| 11 |
+

|
| 12 |
+
Figure 1: In semantic image editing the goal is to modify an input image based on a textual query, while otherwise leaving the image as close as possible to the original. In our DIFFEDIT approach, a mask generation module determines which part of the image should be edited, and an encoder infers the latents, to provide inputs to a text-conditional diffusion model which produces the image edit.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
Mask The task of semantic image editing consists in modifying an input image in accordance with a Generation Masked textual transformation query. For instance, given an image of a bowl of fruits and the query “fruits” $ ~ \mathrm { ^ { * } } p e a r s ^ { \prime \prime }$ Module Diffusion , the aim is to produce a novel image where the fruits have been changed into pears, while keeping the bowl and the background as similar as possible to the input image. The text query Encode can also be a more elaborate description like “A basket of fruits”. See the example edits obtained with DIFFEDIT in Figure 1. Semantic image editing bears strong similarities with image generation Text Query A basket of fruits and can be viewed as extending text-conditional image generation with an additional constraint: the Mask generated image should be as close as possible to a given input image.
|
| 17 |
+
|
| 18 |
+
Input Image Module Masked Text-conditional image generation is currently undergoing a revolution, with DALL-E (Ramesh et al., 2021), Cogview (Ding et al., 2021), Make-a-scene (Gafni et al., 2022), Latent Diffusion Models (Rombach et al., 2022), DALL-E 2 (Ramesh et al., 2022) and Imagen (Saharia et al., 2022b), vastly improving state of the art in modelling wide distributions of images and allowing for unprecedented compositionality of concepts in image generation. Scaling these models is a key to their success. State-of-the art models are now trained on vast amounts of data, which requires large computational resources. Similarly to language models pretrained on web-scale data and adapted in downstreams tasks with prompt engineering, the generative power of these big generative models can be harnessed to solve semantic image editing, avoiding to train specialized architectures (Li et al., 2020a; Wang et al., 2022a), or to use costly instance-based optimization (Crowson et al., 2022; Couairon et al., 2022; Patashnik et al., 2021).
|
| 19 |
+
|
| 20 |
+
Diffusion models are an especially interesting class of model for image editing because of their iterative denoising process starting from random Gaussian noise. This process can be guided through a variety of techniques, like CLIP guidance (Nichol et al., 2021; Avrahami et al., 2022; Crowson, 2021), and inpainting by copy-pasting pixel values outside a user-given mask (Lugmayr et al., 2022). These previous works, however, lack two crucial properties for semantic image editing: (i) inpainting discards information about the input image that should be used in image editing (e.g. changing a dog into a cat should not modify the animal’s color and pose); (ii) a mask must be provided as input to tell the diffusion model what parts of the image should be edited. We believe that while drawing masks is common on image editing tools like Photoshop, language-guided editing offers a more intuitive interface to modify images that requires less effort from users.
|
| 21 |
+
|
| 22 |
+
Conditioning a diffusion model on an input image can also be done without a mask, e.g. by considering the distance to input image as a loss function (Crowson, 2021; Choi et al., 2021), or by using a noised version of the input image as a starting point for the denoising process as in SDEdit (Meng et al., 2021). However, these editing methods tend to modify the entire image, whereas we aim for localized edits. Furthermore, adding noise to the input image discards important information, both inside the region that should be edited and outside.
|
| 23 |
+
|
| 24 |
+
To leverage the best of both worlds, we propose DIFFEDIT, an algorithm that leverages a pretrained text-conditional diffusion model for zero-shot semantic image editing, without expensive editingspecific training. DIFFEDIT makes it possible by automatically finding what regions of an input image should be edited given a text query, by contrasting the predictions of a conditional and unconditional diffusion model. We also show how using a reference text describing the input image and similar to the query, can help obtain better masks. Moreover, we demonstrate that using a reverse denoising model, to encode the input image in latent space, rather than simply adding noise to it, allows to better integrate the edited region into the background and produces more subtle and natural edits. See Figure 1 for illustrations. We quantitatively evaluate our approach and compare to prior work using images of the ImageNet and COCO dataset, as well as a set of generated images.
|
| 25 |
+
|
| 26 |
+
# 2 RELATED WORK
|
| 27 |
+
|
| 28 |
+
Semantic image editing. The field of image editing encompasses many different tasks, from photo colorization and retouching (Shi et al., 2020), to style transfer (Jing et al., 2019), inserting objects in images (Gafni & Wolf, 2020; Brown et al., 2022), image-to-image translation (Zhu et al., 2017; Saharia et al., 2022a), inpainting (Yu et al., 2018), scene graph manipulation (Dhamo et al., 2020), and placing subjects in novel contexts (Ruiz et al., 2022). We focus on semantic image editing, where the instruction to modify an image is given in natural language. Some approaches involve training an end-to-end architecture with a proxy objective before being adapted to editing at inference time, based on GANs (Li et al., 2020b;a; Ma et al., 2018; Alami Mejjati et al., 2018; Mo et al., 2018) or transformers (Wang et al., 2022a; Brown et al., 2022; Issenhuth et al., 2021). Others (Crowson et al., 2022; Couairon et al., 2022; Patashnik et al., 2021; Bar-Tal et al., 2022) rely on optimization of the image itself, or a latent representation of it, to modify an image based on a high-level multimodal objective in an embedding space, typically using CLIP (Radford et al., 2021). These approaches are quite computationnaly intensive, and work best when the optimization is coupled with a powerful generative network. Given a pre-trained generative model such as a GAN, it has also been explored to find directions in the latent space that corresponds to specific semantic edits (Hark ¨ onen ¨ et al., 2020; Collins et al., 2020; Shen et al., 2020; Shoshan et al., 2021), which then requires GAN inversion to edit real images (Wang et al., 2022c; Zhu et al., 2020; Grechka et al., 2021).
|
| 29 |
+
|
| 30 |
+
Image editing with diffusion models. Because diffusion models iteratively refine an image starting from random noise, they are easily adapted for inpainting when a mask is given as input. Song et al.
|
| 31 |
+
|
| 32 |
+
(2021) proposed to condition the generation process by copy-pasting pixel values from the reference image at each denoising step. Nichol et al. (2021) use a similar technique by copy-pasting pixels in the estimated final version of the image. Wang et al. (2022b) use DDIM encoding of the input image, and then decode on edited sketches or semantic segmentation maps. The gradient of a CLIP score can also be used to match a given text query inside a mask, as in Paint by Word (Bau et al., 2021), local CLIP-guided diffusion (Crowson, 2021), or blended diffusion (Avrahami et al., 2022). Lugmayr et al. (2022) apply a sequence of noise-denoise operations to better inpaint a specific region. There are also a number of methods that do not require an editing mask. In DiffusionCLIP (Kim & Ye, 2021), the weights of the diffusion model themselves are updated via gradient descent from a CLIP loss with a target text. The high computational cost of fine-tuning a diffusion model for each input image, however, makes it impractical as an interactive image editing tool. In SDEdit (Meng et al., 2021) the image is corrupted with Gaussian noise, and then the diffusion network is used to denoise it. While this method is originally designed to transform sketches to real images and to make pixel-based collages more realistic, we adapt it by denoising the image conditionally to the text query. In ILVR (Choi et al., 2021), the decoding process of diffusion model is guided with the constraint that downsampled versions of the input image and decoded image should stay close. Finally, in recent work concurrent to ours, Hertz et al. (2022) propose to edit images by modifying attention maps during the diffusion process.
|
| 33 |
+
|
| 34 |
+
# 3 DIFFEDIT FRAMEWORK
|
| 35 |
+
|
| 36 |
+
In this section, we first give an overview of diffusion models. We then describe our DIFFEDIT approach in detail, and provide a theoretical analysis comparing DIFFEDIT with SDEdit.
|
| 37 |
+
|
| 38 |
+
# 3.1 BACKGROUND: DIFFUSION MODELS, DDIM AND ENCODING
|
| 39 |
+
|
| 40 |
+
Denoising diffusion probabilistic models (Ho et al., 2020) is a class of generative models that are trained to invert a diffusion process. For a number of timesteps $T$ , the diffusion process gradually adds noise to the input data, until the resulting distribution is (almost) Gaussian. A neural network is then trained to reverse that process, by minimizing the denoising objective
|
| 41 |
+
|
| 42 |
+
$$
|
| 43 |
+
\begin{array} { r } { \mathcal { L } = \mathbb { E } _ { \mathbf { x } _ { 0 } , t , \epsilon } \Vert \epsilon - \epsilon _ { \theta } ( \mathbf { x } _ { t } , t ) \Vert _ { 2 } ^ { 2 } , } \end{array}
|
| 44 |
+
$$
|
| 45 |
+
|
| 46 |
+
where $\epsilon _ { \theta }$ is the noise estimator which aims to find the noise $\mathbf { \epsilon } \gets \mathcal { N } ( \mathbf { 0 } , \mathbf { I } )$ that is mixed with an input image $\mathbf { x } _ { \mathrm { 0 } }$ to yield $\mathbf { x } _ { t } = \sqrt { \alpha _ { t } } \mathbf { x } _ { 0 } + \sqrt { 1 - \alpha _ { t } } \epsilon$ . The coefficient $\alpha _ { t }$ defines the level of noise and is a decreasing function of the timestep $t$ , with $\alpha _ { 0 } = 1$ (no noise) and $\alpha _ { T } \approx 0$ (almost pure noise).
|
| 47 |
+
|
| 48 |
+
Song et al. (2021) propose to use $\epsilon _ { \theta }$ to generate new images with the $D D I M$ algorithm: starting from $\mathbf { x } _ { T } \sim \mathcal { N } ( \mathbf { 0 } , \mathbf { I } )$ , the following update rule is applied iteratively until step 0:
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
\mathbf { x } _ { t - 1 } = \sqrt { \alpha _ { t - 1 } } \Bigg ( \frac { \mathbf { x } _ { t } - \sqrt { 1 - \alpha _ { t } } \epsilon _ { \theta } ( \mathbf { x } _ { t } , t ) } { \sqrt { \alpha _ { t } } } \Bigg ) + \sqrt { 1 - \alpha _ { t - 1 } } \epsilon _ { \theta } ( \mathbf { x } _ { t } , t ) .
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
The variable $\mathbf { x }$ is updated by taking small steps in the direction of $\epsilon _ { \theta }$ . Equation 2 can be written as the neural ODE , taking $\mathbf { u } = \mathbf { x } / \sqrt { \alpha }$ and $\tau = \sqrt { 1 / \alpha - 1 }$ :
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
d \mathbf { u } = \epsilon _ { \theta } ( \frac { \mathbf { u } } { \sqrt { 1 + \tau ^ { 2 } } } , t ) d \tau .
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
This allows to view DDIM sampling as an Euler scheme for solving Equation 3 with initial condition $\mathbf u ( t = T ) \sim \mathcal { N } ( \mathbf 0 , \alpha _ { T } \mathbf I )$ . This illustrates that we can use fewer sampling steps during inference than the value of $T$ chosen during training, by using a coarser discretization of the ODE. In the remainder of the paper, we parameterize the timestep $t$ to be between 0 and 1, so that $t = 1$ corresponds to $T$ steps of diffusion in the original formulation. As proposed by Song et al. (2021), we can also use this ODE to encode an image $\mathbf { x } _ { \mathrm { 0 } }$ onto a latent variable ${ \bf x } _ { r }$ for a timestep $r \leq 1$ , by using the boundary condition $\mathbf { u } ( t = 0 ) = \mathbf { x } _ { 0 }$ instead of $\mathbf { u } ( t = 1 )$ , and applying an Euler scheme until timestep $r$ . In the remainder of the paper, we refer to this encoding process as DDIM encoding, we denote the corresponding function that maps $\mathbf { x } _ { \mathrm { 0 } }$ to ${ \bf x } _ { r }$ as $E _ { r }$ , and refer to the variable $r$ as the encoding ratio. Similarly, we note $D _ { r }$ the inverse function that maps ${ \bf x } _ { r }$ to $\mathbf { x } _ { \mathrm { 0 } }$ , which corresponds to regular DDIM decoding. With sufficiently small steps in the Euler scheme, decoding ${ \bf x } _ { r }$ approximately recovers the original image $\mathbf { x } _ { \mathrm { 0 } }$ . This property is particularly interesting in the context of image editing: all the information of the input image $\mathbf { x } _ { \mathrm { 0 } }$ is encoded in ${ \bf x } _ { r }$ , and can be accessed via DDIM sampling.
|
| 61 |
+
|
| 62 |
+

|
| 63 |
+
Step 1: Compute Mask
|
| 64 |
+
Figure 2: The three steps of DIFFEDIT. Step 1: we add noise to the input image, and denoise it: once conditioned on the query text, and once conditioned on a reference text (or unconditionally). We derive a mask based on the difference in the denoising results. Step 2: we encode the input image with DDIM, to estimate the latents corresponding to the input image. Step 3: we perform DDIM decoding conditioned on the text query, using the inferred mask to replace the background with pixel values coming from the encoding process at the corresponding timestep.
|
| 65 |
+
|
| 66 |
+
# 3.2 SEMANTIC IMAGE EDITING WITH DIFFEDIT
|
| 67 |
+
|
| 68 |
+
In many cases, semantic image edits can be restricted to only a part of the image, leaving other parts unchanged. However, the input text query does not explicitly identify this region, and a naive method could allow for edits all over the image, risking to modify the input in areas where it is not needed. To circumvent this, we propose DIFFEDIT, a method to leverage a text-conditioned diffusion model to infer a mask of the region that needs to be edited. Starting from a DDIM encoding of the input image, DIFFEDIT uses the inferred mask to guide the denoising process, minimizing edits outside the region of interest. Figure 2 illustrates the three steps of our approach, which we detail below.
|
| 69 |
+
|
| 70 |
+
Step 1: Computing editing mask. When the denoising an image, a text-conditioned diffusion model will yield different noise estimates given different text conditionings. We can consider where the estimates are different, which gives information about what image regions are concerned by the change in conditioning text. For instance, in Figure 2, the noise estimates conditioned to the query zebra and reference text horse1 are different on the body of the animal, where they will tend to decode different colors and textures depending on the conditioning. For the background, on the other hand, there is little change in the noise estimates. The difference between the noise estimates can thus be used to infer a mask that identifies what parts on the image need to be changed to match the query. In our algorithm, we use a Gaussian noise with strength $50 \%$ (see analysis in Appendix A.1), remove extreme values in noise predictions and stabilize the effect by averaging spatial differences over a set of $n$ input noises, with $n { = } 1 0$ in our default configuration. The result is then rescaled to the range $[ 0 , 1 ]$ , and binarized with a threshold, which we set to 0.5 by default. The masks generally somewhat overshoot the region that requires editing, this is beneficial as it allows it to be smoothly embedded in it’s context, see examples in Section 4 and Section A.5.
|
| 71 |
+
|
| 72 |
+
Step 2: Encoding. We encode the input image $\mathbf { x } _ { \mathrm { 0 } }$ in the implicit latent space at timestep $r$ with the DDIM encoding function $E _ { r }$ . This is done with the unconditional model, i.e. using conditioning text $\varnothing$ , so no text input is used for this step.
|
| 73 |
+
|
| 74 |
+
Step 3: Decoding with mask guidance. After obtaining the latent ${ \bf x } _ { r }$ , we decode it with our diffusion model conditioned on the editing text query $Q$ , e.g. zebra in the example of Figure 2. We use our mask $M$ to guide this diffusion process. Outside the mask $M$ , the edited image should in principle be the same as the input image. We guide the diffusion model by replacing pixel values outside the mask with the latents $\mathbf { x } _ { t }$ inferred with DDIM encoding, which will naturally map back to the original pixels through decoding, unlike when using a noised version of $\mathbf { x } _ { \mathrm { 0 } }$ as typically done (Meng et al., 2021; Song et al., 2021). The mask-guided DDIM update can be written as $\tilde { \mathbf { y } } _ { t } = M \mathbf { y } _ { t } + ( 1 - M ) \mathbf { x } _ { t }$ , where $\mathbf { y } _ { t }$ is computed from $\mathbf { y } _ { t - d t }$ with Eq. 2, and $\mathbf { x } _ { t }$ is the corresponding DDIM encoded latent.
|
| 75 |
+
|
| 76 |
+
The encoding ratio $r$ determines the strength of the edit: larger values of $r$ allow for stronger edits that allow to better match the text query, at the cost of more deviation from the input image which might not be needed. We evaluate the impact of this parameter in our experiments. We illustrate the effect of the encoding ratio in Appendix A.5.
|
| 77 |
+
|
| 78 |
+
# 3.3 THEORETICAL ANALYSIS
|
| 79 |
+
|
| 80 |
+
In DIFFEDIT, we use DDIM encoding to encode images before doing the actual editing step. In this section, we give theoretical insight on why this component yields better editing results than adding random noise as in SDEdit (Meng et al., 2021). With ${ \bf x } _ { r }$ being the encoded version of $\mathbf { x } _ { \mathrm { 0 } }$ , using DDIM decoding on ${ \bf x } _ { r }$ unconditionally would give back the original image $\mathbf { x } _ { \mathrm { 0 } }$ . In DIFFEDIT, we use DDIM decoding conditioned on the text query $Q$ , but there is still a strong bias to stay close to the original image. This is because the unconditional and conditional noise estimator networks $\epsilon _ { \theta }$ and $\epsilon _ { \theta } ( \cdot , Q )$ often produce similar estimates, yielding similar decoding behavior when initialized with the same starting point ${ \bf x } _ { r }$ . This means that the edited image will have a small distance w.r.t. the input image, a property critical in the context of image editing. We capture this phenomenon with the proposition below, where we compare the DDIM encoder √ $E _ { r } ( \mathbf { x } _ { 0 } )$ to the SDEdit encoder $G _ { r } ( \mathbf { x } _ { 0 } , \epsilon \bar { ) : = } \sqrt { \alpha _ { r } } \mathbf { x } _ { 0 } + \sqrt { 1 - \alpha _ { r } } \epsilon$ , which simply adds noise to the image $\mathbf { x } _ { \mathrm { 0 } }$ .
|
| 81 |
+
|
| 82 |
+
Proposition 1. Let $\boldsymbol { \mathcal { X } } ~ = ~ \mathbb { R } ^ { d }$ be the space of input images, $p _ { D }$ be the data distribution of couples $( \mathbf { x } _ { 0 } , Q )$ where $\mathbf { x } _ { 0 } \in \mathcal { X }$ and $Q$ a textual query to edit that image. Suppose that $\| \epsilon _ { \theta } ( \mathbf { x } _ { t } , Q , t ) \| _ { 2 } \leq C$ for all $x \in \mathcal { X }$ , $t \in [ 0 , 1 ]$ , that $\epsilon _ { \theta } ( \cdot , \varnothing , t )$ is $K _ { 1 }$ -Lipschitz for all $t _ { : }$ , and let $\begin{array} { r } { K _ { 2 } = \mathbb { E } _ { ( \mathbf { x } _ { 0 } , Q ) \in p _ { D } } \operatorname* { m a x } _ { t \in [ 0 , 1 ] } | | \epsilon _ { \theta } ( \mathbf { x } , Q , t ) - \epsilon _ { \theta } ( \mathbf { x } , \theta , t ) | | } \end{array}$ . Then, for all encoding ratios $0 \leq r \leq 1$ , we have the two following bounds:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\begin{array} { r l } & { \underset { ( \mathbf { x } _ { 0 } , Q ) \sim p _ { D } } { \mathbb { E } } \| \mathbf { x } _ { 0 } - D _ { r } ( G _ { r } ( \mathbf { x } _ { 0 } , \epsilon ) , Q ) \| _ { 2 } \leq ( C + 1 ) \tau , } \\ & { \underset { ( \mathbf { x } _ { 0 } , Q ) \sim p _ { D } } { \mathbb { E } } } \\ & { } \\ & { \underset { ( \mathbf { x } _ { 0 } , Q ) \sim p _ { D } } { \mathbb { E } } \| \mathbf { x } _ { 0 } - D _ { r } ( E _ { r } ( \mathbf { x } _ { 0 } ) , Q ) \| _ { 2 } \leq \frac { K _ { 2 } \tau } { \sqrt { \tau ^ { 2 } + 1 } } \Big ( \tau + \sqrt { \tau ^ { 2 } + 1 } \Big ) ^ { K _ { 1 } } , } \end{array}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
where $\tau = \sqrt { 1 / \alpha _ { r } - 1 }$ increases with the encoding ratio $r$ : $\tau ( r = 0 ) = 0$ and $\operatorname* { l i m } _ { r \to 1 } \tau = + \infty$ .
|
| 89 |
+
|
| 90 |
+
We provide the proof in Appendix B. The first bound is associated with SDEdit, and is an extension of a bound proven in the original paper. The second bound we contribute is associated with DIFFEDIT. It is tighter than the first bound below a certain encoding ratio, see Figure 3. We empirically estimated the parameters $K _ { 1 } , K _ { 2 }$ and $C$ with the diffusion models that we are using. While the asymptotic behavior of the second bound is worse than the first with $K _ { 1 } > 1$ , it is the very small value of $K _ { 2 }$ that gives a tighter bound.
|
| 91 |
+
|
| 92 |
+
This supports our argument from above: because the unconditional and text-conditional noise estimates generally give close results — $K _ { 2 }$ being a measure of the average difference— the Euler scheme with $\epsilon _ { \theta } ( \cdot , Q , \cdot )$ gives a sequence of intermediate latents $\mathbf { y } _ { r } , . . . , \mathbf { y } _ { 0 }$ that stays close to the trajectory $x _ { r } , \ldots , D _ { r } ( x _ { r } ) \approx \mathbf { x } _ { 0 }$ mapping back $\mathbf { x } _ { r }$ to $\mathbf { x } _ { \mathrm { 0 } }$ . While these upper bounds do not guarantee that DDIM encoding yields smaller edits than SDEdit, experimentally we find that it is indeed the case.
|
| 93 |
+
|
| 94 |
+

|
| 95 |
+
Figure 3: Illustration of the bounds from Proposition 1, with estimated parameters $C = 1 , K _ { 2 } = 0 . 0 2$ , and $K _ { 1 } = 3$ .
|
| 96 |
+
|
| 97 |
+
# 4 EXPERIMENTS
|
| 98 |
+
|
| 99 |
+
In this section, we describe our experimental setup, followed by qualitative and quantitative results.
|
| 100 |
+
|
| 101 |
+
# 4.1 EXPERIMENTAL SETUP
|
| 102 |
+
|
| 103 |
+
Datasets. We perform experiments on three datasets. First, on ImageNet (Deng et al., 2009) we follow the evaluation protocol of FlexIT (Couairon et al., 2022). Given an image belonging to one class, the goal is to edit it so that it will depict an object of another class as indicated by the query. Given the nature of the ImageNet dataset, edits often concern the main object in the scene. Second, we consider editing images generated by Imagen (Saharia et al., 2022b) based on structured text prompts, in order to evaluate edits that involve changing the background, replacing secondary objects, or changing object properties. Third, we consider edits based on images and queries from the $C O C O$ (Lin et al., 2014) dataset to evaluate edits based on more complex text prompts.
|
| 104 |
+
|
| 105 |
+
Diffusion models. In our experiments we use latent diffusion models (Rombach et al., 2022). We use the class-conditional model trained on ImageNet at resolution $2 5 6 \times 2 5 6$ , as well as the 890M parameter text-conditional model trained on LAION-5B (Schuhmann et al., 2021), known as Stable Diffusion, at $5 1 2 \times 5 1 2$ resolution.2 Since these models operate in a VQGAN latent spaces (Esser et al., 2021), the resolution of our masks is $3 2 \times 3 2$ (ImageNet) or $6 4 \times 6 4$ (Imagen and COCO). We use 50 steps in DDIM sampling with a fixed schedule, and the encoding ratio parameter further decreases the number of updates used for our edits. This allows to edit images in ${ \sim } 1 0$ seconds on a single Quadro GP100 GPU. We also use classifier-free guidance (Ho & Salimans, 2022) with the recommended values: 5 on ImageNet, 7.5 for Stable Diffusion. For more details see Section A.2.
|
| 106 |
+
|
| 107 |
+
Comparison to other methods. We use SDEdit (Meng et al., 2021) as our main point of comparison, since we can use the same diffusion model as for DIFFEDIT. We also compare to FlexIT (Couairon et al., 2022), a mask-free, optimization-based editing method based on VQGAN and CLIP. On ImageNet, we evaluate ILVR (Choi et al., 2021) which uses another diffusion model trained on ImageNet (Dhariwal & Nichol, 2021). Finally, on COCO and Imagen images, we compare to the concurrent work of Hertz et al. (2022). 3
|
| 108 |
+
|
| 109 |
+
Evaluation. In semantic image editing, we have to satisfy the two contradictory objectives of (i) matching the text query and (ii) staying close to the input image. For a given editing method, better matching the text query comes at the cost of increased distance to the input image. Different editing methods often have a parameter that allows to control the editing strength: varying its value allows to get different operating points, forming a trade-off curve between the two objectives aforementioned. Therefore, we evaluate editing methods by comparing their trade-off curves. For diffusion-based methods, we use the encoding ratio to control the trade-off.
|
| 110 |
+
|
| 111 |
+
# 4.2 EXPERIMENTS ON IMAGENET
|
| 112 |
+
|
| 113 |
+
On ImageNet, we follow the evaluation protocol of Couairon et al. (2022), with the associated metrics: the LPIPS perceptual distance (Zhang et al., 2018) measures the distance with the input image, and the CSFID, which is a class-conditional FID metric (Heusel et al., 2017) measuring both image realism and consistency w.r.t. the transformation prompt. For both metrics, lower values indicate better edits. For more details see Couairon et al. (2022).
|
| 114 |
+
|
| 115 |
+
We compare DIFFEDIT to other semantic editing methods from the literature in terms of CSFID-LPIPS tradeoff. Stronger edits improve (lower) the CSFID score as the edited images better adhere to the text query, but the resulting images tend to deviate more from the input image, leading to worse (increased) LPIPS distances.
|
| 116 |
+
|
| 117 |
+

|
| 118 |
+
Figure 4: Comparison on ImageNet data of DIFFEDIT with other Image Editing methods. For DIFFEDIT we annotate the different operating points with the corresponding encoding ratios.
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
Figure 5: Edits obtained on ImageNet with DIFFEDIT and ablated models. Encode-Decode is DIFFEDIT without masking, and SDEdit is obtained when not using masking nor encoding. When not using masking (SDEdit and Encode-Decode) we observe undesired edits to the background, see e.g. the sky in the second column. When not using DDIM encoding (SDEdit and DiffEdit w/o Encode), appearance information from the input —such as pose— is lost, see last two columns.
|
| 122 |
+
|
| 123 |
+
The results in Figure 4 indicate that DIFFEDIT obtains the best trade-offs among the different methods. For fair comparison with previous methods, here we do not leverage the label of the input image and use the empty text as reference when inferring the editing mask. The Copy and Retrieve baselines are two opposite cases where we have best possible LPIPS distance —zero, by copying the input image— and best possible transformation score by discarding the input image and replacing it with a real image from the target class from the ImageNet dataset. DIFFEDIT, as well as the diffusion-based SDEdit and ILVR, are able to obtain CSFID values comparable to that of the retrieval baseline. Among the diffusion-based methods, our DIFFEDIT obtains comparable CSFID values at significantly better LPIPS scores. For FlexIT, the CSFID best value is significantly worse, indicating it is not able to produce both strong and realistic edits. Using more optimization steps does not solve this issue, as the distance to the input image is part of the loss it minimizes.
|
| 124 |
+
|
| 125 |
+
Ablation experiments. We ablate the two core components of DIFFEDIT, mask inference and DDIM encoding, to measure their relative contributions in terms of CSFID-LPIPS trade-off. If we do not use either of these components our method reverts to SDEdit (Meng et al., 2021). The results in Figure 6, left panel, show that adding DDIM encoding (Encode-Decode) and the masking (DiffEdit w/o Encode) separately both improve the trade-off and reduce the average editing distance w.r.t. the input image compared to SDEdit. Moreover, combining these two elements into DIFFEDIT gives an even better trade-off, showing their complementarity: masking better preserves the background, while DDIM encoding retains visual appearance of the input inside the mask. See Figure 5 for qualitative examples of these ablations, along with the inferred masks.
|
| 126 |
+
|
| 127 |
+
The right panel of Figure 6 shows DIFFEDIT with different mask binarization thresholds. Compared to our default value of 0.5, a lower threshold of 0.25 results in larger masks (more image modifications) and worse CSFID-LPIPS tradeoff. A higher threshold of 0.75 results in masks that are too restrictive: the CSFID score stagnates around 40, even at large encoding ratios.
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 6: Ablations on ImageNet. Left: effect of masking and encoding component. Right: DIFFEDIT with different mask thresholds; with 0.5 our default setting.
|
| 131 |
+
|
| 132 |
+
Finally, our mask guidance operator $\tilde { \mathbf { y } } _ { t } = M \mathbf { y } _ { t } + ( 1 - M ) \mathbf { x } _ { t }$ provides a better trade-off than the reference text operator used in GLIDE (Nichol et al., 2021), which interpolates $\mathbf { y } _ { t }$ with a mask-corrected version of the predicted denoised image $\hat { \mathbf { y } } _ { 0 }$ . With encoding ratio $80 \%$ , both operators produce edits with a LPIPS score of 30.5, but the GLIDE version yields a CSFID of 26.4 compared to 23.6 for ours.w/o reference text
|
| 133 |
+
|
| 134 |
+
# 4.3 EXPERIMENTS ON IMAGES GENERATED BY IMAGEN
|
| 135 |
+
|
| 136 |
+
In our second set of experiments we evaluate edits that involve changes in background, replacingw/ reference text “A bowl of fruits” secondary objects, and editing object properties. We find that images generated by Imagen (Saharia et al., 2022b) offer a well suited testbed for this purpose. Indeed, the authors tested the compositional abilities of Imagen with templated prompts of the form: “{A photo of a | An oil painting ofw/o reference text $^ a \}$ {fuzzy panda | British shorthair cat | Persian cat | Shiba Inu dog | raccoon} {wearing a cowboy hat and | wearing sunglasses and} {red shirt | black jacket} {playing a guitar | riding a bike | skateboarding} {in a garden | on a beach | on top of a mountain}”, resulting in 300 prompts.
|
| 137 |
+
|
| 138 |
+
We use the generated images as input and ask to change the prompt to another prompt for which one of these elements is changed. Since we cannot use the CSFID metric as for ImageNet, as images do not carry a single class label, we use FID to measure image realism, and CLIPScore (Hessel et al., 2021) to measure the alignment of the query and A cup of output image. These two scores have become the standard in evaluating text-conditional image generation (Saharia et al., 2022b).
|
| 139 |
+
|
| 140 |
+
Figure 7 displays the CLIP-LPIPS and FID-CLIP trade-offs. DIFFEDIT provides more accurate edits than SDEdit, FlexIT, and Cross Attention Control, by combining inferred masks with DDIM encoding. Two versions of DiffEdit are shown, which differ by how the mask is computed: they correspond to (i) using the original caption as reference text (labelled w/ ref. text) or (ii) using the empty text $\varnothing$ (labelled w/o ref. text).
|
| 141 |
+
|
| 142 |
+
Computing the mask with the original caption as reference text yields the best overall trade-off. Leveraging the original caption yields better CLIP and FID scores. Figure 8 illustrates the difference in the masks obtained with and without reference text for two examples. The reference text allows to ignore parts of the image that are described both by the query and reference text (e.g. the fruits), because in both cases the network uses the common text on the corresponding image region to estimate the noise. On the contrary, parts where the query and reference text disagree, e.g. “bowl” vs. “basket”, will have different noise estimates.
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
Figure 7: Editing trade-offs on Imagen images.
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
Figure 8: Masks and edits obtained with and without reference text in the mask computation algorithm.
|
| 149 |
+
|
| 150 |
+

|
| 151 |
+
Figure 9: Edits on Imagen dataset. We use encoding ratio of $90 \%$ for DiffEdit and $70 \%$ for SDEdit for fair comparison: both methods have similar CLIPScore, for larger encoding ratios SDEdit drastically change the input.
|
| 152 |
+
|
| 153 |
+
Qualitative transformation examples are shown in Figure 9, where the masks are inferred by contrasting the caption and query texts.
|
| 154 |
+
|
| 155 |
+
# 4.4 EXPERIMENTS ON COCO
|
| 156 |
+
|
| 157 |
+
To evaluate semantic image editing with more complex prompts, we use images and captions from the COCO dataset Lin et al. (2014). To this end, we leverage the annotations provided by Hu et al. (2019), which associate images from the COCO validation set with other COCO captions that are similar to the original ones, but in contradiction with the given image. This makes these annotations particularly interesting as queries for semantic image editing, as they can often be satisfied by editing only a part of the input image, see Figure 15 in the supplementary material for examples. Similar to our evaluation for Imagen images, here we evaluate edits in terms of CLIPScore, FID and LPIPS.
|
| 158 |
+
|
| 159 |
+
The results in Figure 10 show that the CLIP-LPIPS trade-off of DIFFEDIT is the best, but that it reaches lower maximum CLIP score than SDEdit. The FID scores are similar to SDEdit, but significantly improves upon the Encode-Decode ablation, which does not use a mask.
|
| 160 |
+
|
| 161 |
+
Moreover, in contrast to results on the Imagen data, leveraging the original image caption does not change the CLIP-LPIPS and FID-CLIP tradeoffs. We find that the caption often describes the input image differently compared to the query text, making it more difficult to identify which part of the image needs to be edited. We verify this hypothesis in Section A.3 by filtering the dataset according to the edit distance between the caption and edit query. When the caption and edit query are similar, leveraging the image caption boosts CLIP scores by 0.25 points, a similar improvement as seen on the Imagen data.
|
| 162 |
+
|
| 163 |
+
Qualitative examples are shown in Figure 11. The first column illustrates the benefit of DDIM encoding: we are able to correctly maintain properties of the object inside the mask, such as clothes’ color. The three last columns illustrate how contrasting different pairs of reference and query text allows to select different objects in the input image to perform different edits. See Section A.5 for more examples.
|
| 164 |
+
|
| 165 |
+

|
| 166 |
+
Figure 10: Quantitative evaluation on COCO.
|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
Figure 11: Examples edits on COCO images.
|
| 170 |
+
|
| 171 |
+
# 5 CONCLUSION
|
| 172 |
+
|
| 173 |
+
We introduced DIFFEDIT, a novel algorithm for semantic image editing based on diffusion models. Given a textual query, using the diffusion model, DIFFEDIT infers the relevant regions to be edited rather than requiring a user generated mask. Furthermore, in contrast to other diffusion-based methods, we initialize the generation process with a DDIM encoding of the input.We provide theoretical analysis that motivates this choice, and show experimentally that this approach conserves more appearance information from the input image, leading to lighter edits. Quantitative and qualitative evaluations on ImageNet, COCO, and images generated by Imagen, show that our approach leads excellent edits, improving over previous approaches. Although DIFFEDIT works better with a reference text describing the input image, we believe this additional information can be inferred from input image and target caption, which we leave for future work.
|
| 174 |
+
|
| 175 |
+
# 6 ETHICS STATEMENT
|
| 176 |
+
|
| 177 |
+
Image editing raises several ethical challenges that we wish to discuss here. First, as image editing is closely related to image generation, it inherits known concerns. Open-source diffusion models are trained on large amounts of web-scraped data like LAION, and inherit their biases. In particular, it was shown that LAION contains inappropriate content (violence, hate, pornography), along with racist and sexist stereotypes. Furthermore it was found that diffusion models trained on LAION, such as Imagen, can exhibit social and cultural bias. Therefore, the use of such models can raise ethical issues, whether the text prompt is intentionnally harmful or not. Because image editing is usually performed on real images, there are additionnal ethical challenges, such as potential skin tone change when editing a person or re-inforcing harmful social stereotypes. We believe that open-sourcing editing algorithms in a research context contributes to a better understanding of such problems, and can aid the community in efforts to mitigate them in the future. Furthermore, image editing tools could be used with harmful intent such as harrassement or propagating fake news. This use, known as deep fakes, has been largely discussed in previous work, e.g. in Etienne (2021). To mitigate potential misuse, the Stable Diffusion model is released under a license focused on ethical and legal use, stating explicitly that users “must not distribute harmful, offensive, dehumanizing content or otherwise harmful representations of people or their environments, cultures, religions, etc. produced with the model weights”.
|
| 178 |
+
|
| 179 |
+
Our editing benchmark based on the COCO dataset also has some limitations. COCO has a predominant western cultural bias, and we are therefore evaluating transformations on a small subset of images mostly associated with western culture. Finding relevant transformation prompts for an image is challenging: while we found it relevant to leverage existing annotations based on COCO, we believe that evaluating image editing models on a less culturally biased dataset is needed.
|
| 180 |
+
|
| 181 |
+
# REFERENCES
|
| 182 |
+
|
| 183 |
+
Youssef Alami Mejjati, Christian Richardt, James Tompkin, Darren Cosker, and Kwang In Kim. Unsupervised attention-guided image-to-image translation. Advances in neural information processing systems, 31, 2018.
|
| 184 |
+
|
| 185 |
+
Omri Avrahami, Dani Lischinski, and Ohad Fried. Blended diffusion for text-driven editing of natural images. In CVPR, 2022.
|
| 186 |
+
|
| 187 |
+
Omer Bar-Tal, Dolev Ofri-Amar, Rafail Fridman, Yoni Kasten, and Tali Dekel. Text2LIVE: Textdriven layered image and video editing. arXiv preprint, arXiv:2204.02491, 2022.
|
| 188 |
+
|
| 189 |
+
David Bau, Alex Andonian, Audrey Cui, YeonHwan Park, Ali Jahanian, Aude Oliva, and Antonio Torralba. Paint by word. arXiv preprint, arXiv:2103.10951, 2021.
|
| 190 |
+
|
| 191 |
+
Andrew Brown, Cheng-Yang Fu, Omkar Parkhi, Tamara L Berg, and Andrea Vedaldi. End-to-end visual editing with a generatively pre-trained artist. arXiv preprint, arXiv:2205.01668, 2022.
|
| 192 |
+
|
| 193 |
+
Jooyoung Choi, Sungwon Kim, Yonghyun Jeong, Youngjune Gwon, and Sungroh Yoon. ILVR: Conditioning method for denoising diffusion probabilistic models. In ICCV, 2021.
|
| 194 |
+
|
| 195 |
+
Edo Collins, Raja Bala, Bob Price, and Sabine Susstrunk. Editing in style: Uncovering the local semantics of GANs. In CVPR, 2020.
|
| 196 |
+
|
| 197 |
+
Guillaume Couairon, Asya Grechka, Jakob Verbeek, Holger Schwenk, and Matthieu Cord. FlexIT: Towards flexible semantic image translation. In CVPR, 2022.
|
| 198 |
+
|
| 199 |
+
Katherine Crowson. CLIP Guided Diffusion HQ 512x512. 2021. URL https://colab. research.google.com/drive/1V66mUeJbXrTuQITvJunvnWVn96FEbSI3.
|
| 200 |
+
|
| 201 |
+
Katherine Crowson, Stella Biderman, Daniel Kornis, Dashiell Stander, Eric Hallahan, Louis Castricato, and Edward Raff. VQGAN-CLIP: Open domain image generation and editing with natural language guidance. In ECCV, 2022.
|
| 202 |
+
|
| 203 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In CVPR, 2009.
|
| 204 |
+
|
| 205 |
+
Helisa Dhamo, Azade Farshad, Iro Laina, Nassir Navab, Gregory D Hager, Federico Tombari, and Christian Rupprecht. Semantic image manipulation using scene graphs. In CVPR, 2020.
|
| 206 |
+
|
| 207 |
+
Prafulla Dhariwal and Alexander Nichol. Diffusion models beat GANs on image synthesis. In NeurIPS, 2021.
|
| 208 |
+
|
| 209 |
+
Ming Ding, Zhuoyi Yang, Wenyi Hong, Wendi Zheng, Chang Zhou, Da Yin, Junyang Lin, Xu Zou, Zhou Shao, Hongxia Yang, et al. CogView: Mastering text-to-image generation via transformers. In NeurIPS, 2021.
|
| 210 |
+
|
| 211 |
+
Patrick Esser, Robin Rombach, and Bjorn Ommer. Taming transformers for high-resolution image synthesis. In CVPR, 2021.
|
| 212 |
+
|
| 213 |
+
Hubert Etienne. The future of online trust (and why deepfake is advancing it). AI and Ethics, 1, 11 2021. doi: 10.1007/s43681-021-00072-1.
|
| 214 |
+
|
| 215 |
+
Oran Gafni and Lior Wolf. Wish you were here: Context-aware human generation. In CVPR, 2020.
|
| 216 |
+
|
| 217 |
+
Oran Gafni, Adam Polyak, Oron Ashual, Shelly Sheynin, Devi Parikh, and Yaniv Taigman. Makea-scene: Scene-based text-to-image generation with human priors. In ECCV, 2022.
|
| 218 |
+
|
| 219 |
+
Asya Grechka, Jean-Franc¸ois Goudou, and Matthieu Cord. MAGECally invert images for realistic editing. In BMVC, 2021.
|
| 220 |
+
|
| 221 |
+
Erik Hark ¨ onen, Aaron Hertzmann, Jaakko Lehtinen, and Sylvain Paris. GANSpace: Discovering ¨ interpretable GAN controls. In NeurIPS, 2020.
|
| 222 |
+
|
| 223 |
+
Amir Hertz, Ron Mokady, Jay Tenenbaum, Kfir Aberman, Yael Pritch, and Daniel Cohen-Or. Prompt-to-prompt image editing with cross attention control. arXiv preprint arXiv:2208.01626, 2022.
|
| 224 |
+
|
| 225 |
+
Jack Hessel, Ari Holtzman, Maxwell Forbes, Ronan Le Bras, and Yejin Choi. CLIPScore: A reference-free evaluation metric for image captioning. arXiv preprint, arXiv:2104.08718, 2021.
|
| 226 |
+
|
| 227 |
+
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 NeurIPS, 2017.
|
| 228 |
+
|
| 229 |
+
Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.
|
| 230 |
+
|
| 231 |
+
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In NeurIPS, 2020.
|
| 232 |
+
|
| 233 |
+
Hexiang Hu, Ishan Misra, and Laurens van der Maaten. Evaluating text-to-image matching using binary image selection (BISON). In ICCV Workshop on closing the loop between vision and language, 2019.
|
| 234 |
+
|
| 235 |
+
Thibaut Issenhuth, Ugo Tanielian, Jer´ emie Mary, and David Picard. EdiBERT, a generative model ´ for image editing. arXiv preprint, arXiv:2111.15264, 2021.
|
| 236 |
+
|
| 237 |
+
Yongcheng Jing, Yezhou Yang, Zunlei Feng, Jingwen Ye, Yizhou Yu, and Mingli Song. Neural style transfer: A review. Transactions on visualization and computer graphics, 26(11):3365– 3385, 2019.
|
| 238 |
+
|
| 239 |
+
Valentin Khrulkov and Ivan Oseledets. Understanding DDPM latent codes through optimal transport. Applied Mathematics Letters, 2022.
|
| 240 |
+
|
| 241 |
+
Gwanghyun Kim and Jong Chul Ye. DiffusionCLIP: Text-guided image manipulation using diffusion models. In CVPR, 2021.
|
| 242 |
+
|
| 243 |
+
Hugo Lavenant and Filippo Santambrogio. The flow map of the Fokker-Planck equation does not provide optimal transport. Applied Mathematics Letters, 2022.
|
| 244 |
+
|
| 245 |
+
Bowen Li, Xiaojuan Qi, Thomas Lukasiewicz, and Philip H. S. Torr. ManiGAN: Text-guided image manipulation. In CVPR, 2020a.
|
| 246 |
+
|
| 247 |
+
Bowen Li, Xiaojuan Qi, Philip HS Torr, and Thomas Lukasiewicz. Image-to-image translation with text guidance. arXiv preprint, arXiv:2002.05235, 2020b.
|
| 248 |
+
|
| 249 |
+
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 ´ ECCV, 2014.
|
| 250 |
+
|
| 251 |
+
Andreas Lugmayr, Martin Danelljan, Andres Romero, Fisher Yu, Radu Timofte, and Luc Van Gool. RePaint: Inpainting using denoising diffusion probabilistic models. In CVPR, 2022.
|
| 252 |
+
|
| 253 |
+
Shuang Ma, Jianlong Fu, Chang Wen Chen, and Tao Mei. Da-gan: Instance-level image translation by deep attention generative adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 5657–5666, 2018.
|
| 254 |
+
|
| 255 |
+
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 ICLR, 2021.
|
| 256 |
+
|
| 257 |
+
Sangwoo Mo, Minsu Cho, and Jinwoo Shin. Instagan: Instance-aware image-to-image translation. arXiv preprint arXiv:1812.10889, 2018.
|
| 258 |
+
|
| 259 |
+
Alex Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob McGrew, Ilya Sutskever, and Mark Chen. Glide: Towards photorealistic image generation and editing with text-guided diffusion models. arXiv preprint, arXiv:2112.10741, 2021.
|
| 260 |
+
|
| 261 |
+
Or Patashnik, Zongze Wu, Eli Shechtman, Daniel Cohen-Or, and Dani Lischinski. StyleCLIP: Textdriven manipulation of StyleGAN imagery. In ICCV, 2021.
|
| 262 |
+
|
| 263 |
+
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In ICML, 2021.
|
| 264 |
+
|
| 265 |
+
Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In ICML, 2021.
|
| 266 |
+
|
| 267 |
+
Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical textconditional image generation with CLIP latents. arXiv preprint, arXiv:2204.06125, 2022.
|
| 268 |
+
|
| 269 |
+
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Bjorn Ommer. High- ¨ resolution image synthesis with latent diffusion models. In CVPR, 2022.
|
| 270 |
+
|
| 271 |
+
Nataniel Ruiz, Yuanzhen Li, Varun Jampani, Yael Pritch, Michael Rubinstein, and Kfir Aberman. DreamBooth: Fine tuning text-to-image diffusion models for subject-driven generation. arXiv preprint, arXiv:2208.12242, 2022.
|
| 272 |
+
|
| 273 |
+
Chitwan Saharia, William Chan, Huiwen Chang, Chris Lee, Jonathan Ho, Tim Salimans, David Fleet, and Mohammad Norouzi. Palette: Image-to-image diffusion models. In SIGGRAPH, 2022a.
|
| 274 |
+
|
| 275 |
+
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, et al. Photorealistic text-to-image diffusion models with deep language understanding. arXiv preprint, arXiv:2205.11487, 2022b.
|
| 276 |
+
|
| 277 |
+
Christoph Schuhmann, Richard Vencu, Romain Beaumont, Robert Kaczmarczyk, Clayton Mullis, Aarush Katta, Theo Coombes, Jenia Jitsev, and Aran Komatsuzaki. LAION-400M: Open dataset of CLIP-filtered 400 million image-text pairs. arXiv preprint, arXiv:2111.02114, 2021.
|
| 278 |
+
|
| 279 |
+
Yujun Shen, Jinjin Gu, Xiaoou Tang, and Bolei Zhou. Interpreting the latent space of GANs for semantic face editing. In CVPR, 2020.
|
| 280 |
+
|
| 281 |
+
Jing Shi, Ning Xu, Trung Bui, Franck Dernoncourt, Zheng Wen, and Chenliang Xu. A benchmark and baseline for language-driven image editing. In ACCV, 2020.
|
| 282 |
+
|
| 283 |
+
Alon Shoshan, Nadav Bhonker, Igor Kviatkovsky, and Gerard Medioni. GAN-control: Explicitly controllable GANs. In ICCV, 2021.
|
| 284 |
+
|
| 285 |
+
Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In ICLR, 2021.
|
| 286 |
+
|
| 287 |
+
Jianan Wang, Guansong Lu, Hang Xu, Zhenguo Li, Chunjing Xu, and Yanwei Fu. ManiTrans: Entity-level text-guided image manipulation via token-wise semantic alignment and generation. In CVPR, 2022a.
|
| 288 |
+
|
| 289 |
+
Tengfei Wang, Ting Zhang, Bo Zhang, Hao Ouyang, Dong Chen, Qifeng Chen, and Fang Wen. Pretraining is all you need for image-to-image translation. arXiv preprint, arXiv:2205.12952, 2022b.
|
| 290 |
+
|
| 291 |
+
Tengfei Wang, Yong Zhang, Yanbo Fan, Jue Wang, and Qifeng Chen. High-fidelity GAN inversion for image attribute editing. In CVPR, 2022c.
|
| 292 |
+
|
| 293 |
+
Jiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen, Xin Lu, and Thomas S Huang. Generative image inpainting with contextual attention. In CVPR, 2018.
|
| 294 |
+
|
| 295 |
+
R. Zhang, P. Isola, A. Efros, E. Shechtman, and O. Wang. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, 2018.
|
| 296 |
+
|
| 297 |
+
Jiapeng Zhu, Yujun Shen, Deli Zhao, and Bolei Zhou. In-domain GAN inversion for real image editing. In ECCV, 2020.
|
| 298 |
+
|
| 299 |
+
Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In CVPR, 2017.
|
| 300 |
+
|
| 301 |
+
# DIFFEDIT: Diffusion-based semantic image editing with mask generation Supplementary Material
|
| 302 |
+
|
| 303 |
+
In this supplementary material we provide more details on the experiments and methods presented in the main paper. In Section A we provide additional experimental results, including assessment of the impact of the strength of classifier-free guidance, the impact of using reference texts describing the input image, an illustration of the effect of the encoding ratio, more qualitative editing examples, as well as a number of example images and associated reference and query texts on COCO. In Section B we provide proofs that support Proposition 1 in the main paper.
|
| 304 |
+
|
| 305 |
+
# A ADDITIONAL EXPERIMENTAL RESULTS
|
| 306 |
+
|
| 307 |
+
# A.1 ANALYSIS OF NOISE USED TO COMPUTE THE MASK
|
| 308 |
+
|
| 309 |
+
In step one our method an editing mask is inferred by contrasting noise estimations on a noised version of the input image, see Section 3.2. In this section, we study the impact of the level of noise added to the input image, by varying its value between 0.1 and 0.8, where 0 corresponds to using the initial image as input, and 1 to replacing the input image with random Gaussian noise. We evaluate the obtained operating points on ImageNet with the CSFID and LPIPS metrics when using a encoding ratios of 0.7 and 0.8 for DDIM encoding and masked-guided denoising in steps two and three of DIFFEDIT. From the results in Figure 12, we find that best results are obtained for moderate values of noise addition of 0.6 and below. Indeed, with too much noise added to the
|
| 310 |
+
|
| 311 |
+

|
| 312 |
+
Figure 12: Impact of the noise added to input image when computing the mask, for a encoding ratios of 0.7 or 0.8 on ImageNet.
|
| 313 |
+
|
| 314 |
+
input image, it is difficult to correctly identify visual elements in the input image. We use a value of 0.5 in all our experiments.
|
| 315 |
+
|
| 316 |
+
# A.2 CLASSIFIER-FREE GUIDANCE
|
| 317 |
+
|
| 318 |
+
In diffusion models, the noise estimator $\epsilon _ { \theta }$ can be conditioned on text describing the image, which provides a signal to guide the noise estimation process (Nichol et al., 2021; Saharia et al., 2022b). Ho & Salimans (2022) introduced classifier-free guidance, a technique to greatly improve generation quality and imagetext alignment in text-conditional diffusion models. It consists in training both a conditional and unconditional model by dropping the conditioning text at train time with fixed probability, e.g. $10 \%$ . Then, after training, at each step $t$ during decoding, the noise estimation $\epsilon _ { \theta } ( \mathbf { x } _ { t } , Q , t )$ is extrapolated by using the unconditional noise estimation $\epsilon _ { \theta } ( \mathbf { x } _ { t } , \emptyset , \bar { t } )$ as origin. Formally, the noise that is used is
|
| 319 |
+
|
| 320 |
+
$$
|
| 321 |
+
\begin{array} { r } { \epsilon = \epsilon _ { \theta } ( \mathbf { x } _ { t } , \theta , t ) + \lambda ( \epsilon _ { \theta } ( \mathbf { x } _ { t } , Q , t ) - \epsilon _ { \theta } ( \mathbf { x } _ { t } , \theta , t ) ) , } \end{array}
|
| 322 |
+
$$
|
| 323 |
+
|
| 324 |
+
where $\lambda$ is the classifier-free guidance parame
|
| 325 |
+
|
| 326 |
+

|
| 327 |
+
Figure 13: Ablation on the value of the classifierfree guidance parameter. On ImageNet, we find that a value of at least 3 must be used to get good results. We chose to use 5, which is the default value recommended for generation.
|
| 328 |
+
|
| 329 |
+
ter. We study the influence of this parameter on DIFFEDIT in Figure 13, finding that similarly to generation, a value above 3 yields the best results. Without classifier-free guidance, the obtained trade-off is not competitive. For our experiments we use a default guidance value of $\lambda = 5$ .
|
| 330 |
+
|
| 331 |
+
Here, we investigate why there is little difference between using or not the reference text to compute the mask on our COCO queries. In Figure 15 we show several editing queries on the COCO dataset taken from the BISON dataset (Hu et al., 2019). Generally, the text query describes a scene similar to the one in the input image, and it is possible to match the text query by editing only a fraction of the input image.
|
| 332 |
+
|
| 333 |
+

|
| 334 |
+
Figure 14: Results on COCO: unfiltered (left) and filtered (right). While having a small impact overall, for the filtered set using the reference text is beneficial, especially at high encoding ratios, e.g. $90 \%$ .
|
| 335 |
+
|
| 336 |
+
However, we find that while queries have been built to be close to a caption of the input image, most of the time the query is not well aligned with the caption. We create a filtered version of this dataset, for which queries are structurally similar to the caption, i.e. where only a few words are changed, but the grammatical structure stays the same. We use the filtering criterion that the total number of words inserted/deleted/replaced must not exceed $2 5 \%$ of the total number of words in the original caption, resulting in a total of 272 queries out of $5 0 \mathrm { k }$ original queries. In Figure 14 we compare results with and without filtering, and observe that for the images with small caption edits the gain of DIFFEDIT (w/ ref. text) compared to Encode-Decode is somewhat larger than on the unfiltered dataset. Moreover, using the original caption as reference text to compute the mask gives higher CLIPScore, especially at high encoding ratio. This illustrates that a well chosen reference text helps to generate better editing masks.
|
| 337 |
+
|
| 338 |
+

|
| 339 |
+
Figure 15: Editing queries on the COCO dataset.
|
| 340 |
+
|
| 341 |
+
# A.4 VISUALISATION OF THE IMPACT OF ENCODING RATIO
|
| 342 |
+
|
| 343 |
+
We show visual results for ablations of our two main components, mask inference and DDIM encoding, in Figure 16. The resulting methods are SDEdit, Encode-Decode, DIFFEDIT w/o Encoding, and DIFFEDIT. We demonstrate the qualitative behavior of these different methods, at varying encoding ratios between $3 0 \%$ and $8 0 \%$ . Compared to SDEdit, Encode-Decode allows to better match the query with less modifications of the main object and the background, especially at $6 0 \% - 7 0 \%$ .
|
| 344 |
+
|
| 345 |
+
Mask inference allows to maintain exactly the background. Using DDIM inference on top of maskbased decoding allows to better retain of the content inside the mask, especially at $70 \%$ and $80 \%$ , c.f. row 3 vs. 4.
|
| 346 |
+
|
| 347 |
+

|
| 348 |
+
Figure 16: Qualitative ablations of the mask and encoding components, using different encoding ratios from $30 \%$ to $80 \%$ .
|
| 349 |
+
|
| 350 |
+
A.5 ADDITIONAL VISUALIZATIONS AND QUALITATIVE RESULTS
|
| 351 |
+
|
| 352 |
+
Figure 17 illustrates editing examples on Imagen, in comparison with other mask-free editing methods. DIFFEDIT generally performs more targeted and accurate edits, leaving more of the original image in tact where possible. Consider for example the first column of Figure 17, where DIFFEDIT leaves the guitar as it, while other methods make unnecessary and unrealistic changes to the guitar.
|
| 353 |
+
|
| 354 |
+
Additional qualitative examples on COCO images are shown in Figure 19.
|
| 355 |
+
|
| 356 |
+
Figure 20 shows several failure cases of semantic image editing with DIFFEDIT. Some failure modes are inherited from the generative model itself: models trained on web-scrapped image-text data are known to struggle with understanding spatial positions in images, spatial reasoning, and counting (Ramesh et al., 2021). Others are specific to our mask-based method, like the difficulty to insert objects, because the mask often seeks an “anchor” visual element to insert an object, see first column.
|
| 357 |
+
|
| 358 |
+
# A.6 DETAILS ON COMPARISONS WITH OTHER METHODS
|
| 359 |
+
|
| 360 |
+
On the COCO and Imagen datasets, we do not compare with ILVR, since it cannot be used within the latent diffusion framework: the method needs image downsampling and upsampling, which does not work well with the latent spaces used in latent diffusion. Even adapted with a diffusion model without latent spaces like Imagen, we do not expect the CLIP-LPIPS trade-off to be favorable for this method, given the high editing distance obtained on ImageNet. Instead, we compare against CrossAttention Control Hertz et al. (2022), a recent method for text-driven image editing based on the unreleased Imagen diffusion model. The method is very recent and has been adapted to use with Stable Diffusion at https://github.com/bloc97/CrossAttentionControl/. We have performed lightweight hyperparameter search to optimize the CLIP-LPIPS trade-off on a subset of Imagen images. We generally find that this re-implementation, while producing edited images structurally similar to the input, changes local features more than SDEdit, leading to generally high LPIPS distances, resulting in a CLIP-LPIPS trade-off not competitive with other methods on our COCO and Imagen benchmark. In particular, LPIPS distance are high on the COCO dataset where text query and reference text have a high edit distance on average, whereas Cross-Attention Control was designed to perform well for prompt-to-prompt editing, i.e. the input and target text should almost exactly match. Given that our results are based on the unofficial re-implementation, we caution that they are temporary and we will update them when the official code (or official adaptation for Stable Diffusion) is released.
|
| 361 |
+
|
| 362 |
+

|
| 363 |
+
Figure 17: Example edits from Imagen, in comparison with other mask-free editing methods.
|
| 364 |
+
|
| 365 |
+

|
| 366 |
+
Figure 18: More qualitative examples on COCO. Baseline methods are shown for comparison. The mask is sometimes bigger or smaller that one could expect: In column 3, it is larger, but there are few edits outside the requested bread burger transformation (except for the wine bottle label), which is not the case without DDIM encoding. In column 4, the mask does not cover the interior of the truck, but this does not affect the edit quality.
|
| 367 |
+
|
| 368 |
+

|
| 369 |
+
Figure 19: More qualitative examples on COCO. In the first column, the color of the objects to be edited is maintained, which would not be the case with regular inpainting methods. Contrasting similar text query and reference text allows to select the object to be edited.
|
| 370 |
+
|
| 371 |
+

|
| 372 |
+
Figure 20: Illustration of failure modes. In the first two columns show difficulty to insert an object in a smooth region of the image. In column three the mask fails to identify a region where to add the zebra. Columns 4 and 5 show mask identification errors, where multiple similar objects are included in the mask, whereas matching the text query only requires to edit a single object. In both cases this results in over-editing. Col. 6 shows the failure to change a spatial relation in the image.
|
| 373 |
+
|
| 374 |
+
# B THEORETICAL RESULTS
|
| 375 |
+
|
| 376 |
+
Here, we prove the bounds given in the main paper. We reused notations from Proposition 1 in the main paper. We also discuss links to optimal transport.
|
| 377 |
+
|
| 378 |
+
# B.1 PROOF OF SDEDIT BOUND
|
| 379 |
+
|
| 380 |
+
Proposition 2. Suppose that $\| \epsilon _ { \theta } ( \mathbf { x } , Q , t ) \| _ { 2 } \leq C$ for all $x \in \mathcal { X }$ , $t \in [ 0 , 1 ]$ . Then
|
| 381 |
+
|
| 382 |
+
$$
|
| 383 |
+
\begin{array} { r l } & { \quad \underset { ( \mathbf { x } _ { 0 } , Q ) \sim p _ { D } } { \mathbb { E } } \| \mathbf { x } _ { 0 } - D _ { r } ( G _ { r } ( \mathbf { x } _ { 0 } , \epsilon ) , Q ) \| _ { 2 } \leq ( C + 1 ) \tau } \\ & { \quad \epsilon \sim { \cal N } ( 0 , 1 ) } \end{array}
|
| 384 |
+
$$
|
| 385 |
+
|
| 386 |
+
Proof. Let $T$ $\mathbf { \xi } , \mathbf { x } _ { r } = G _ { r } ( \mathbf { x } _ { 0 } , \epsilon ) , \mathbf { y } _ { r } = \mathbf { x } _ { r }$ and ${ \bf y } _ { 0 } = D _ { r } ( { \bf y } _ { r } , Q )$ . Then
|
| 387 |
+
|
| 388 |
+
$$
|
| 389 |
+
\| \frac { { \bf x } _ { r } } { \sqrt { \alpha _ { r } } } - { \bf y } _ { 0 } \| = \| \frac { { \bf y } _ { r } } { \sqrt { \alpha _ { r } } } - \frac { { \bf y } _ { 0 } } { \sqrt { \alpha _ { 0 } } } \| = \| \int _ { \tau } ^ { 0 } \epsilon _ { \theta } ( x _ { t } , Q , t ) d \tau \| \le C \tau .
|
| 390 |
+
$$
|
| 391 |
+
|
| 392 |
+
Since the pr $\begin{array} { r } { \frac { \mathbf { x } _ { r } } { \sqrt { \alpha _ { r } } } = \mathbf { x } _ { 0 } + \boldsymbol { \tau } \boldsymbol { \epsilon } } \end{array}$ , we have $\begin{array} { r } { \| \mathbf { x } _ { 0 } - \mathbf { y } _ { 0 } \| \leq \| \mathbf { x } _ { 0 } + \tau \epsilon - \mathbf { y } _ { 0 } \| + \| \tau \epsilon \| \leq C \tau + \tau } \end{array}$ which concludes
|
| 393 |
+
|
| 394 |
+
In the SDEdit paper (Meng et al., 2021), a proof similar to what we state is given, with three main differences: (i) the proof is given in the case of variance-exploding Stochastic Differential Equation (VE-SDE), which needs adaption for our setting which uses variance-preserving SDE; (ii) the bound is derived in the case of a stochastic differential equation, whereas we use a deterministic DDIM process; (iii) the bound is given by controlling the probability tail, whereas we only consider the expectancy of edit distance. However, despite these differences, the spirit of the proof is the same as here.
|
| 395 |
+
|
| 396 |
+
# B.2 PROOF OF PROPOSITION 2
|
| 397 |
+
|
| 398 |
+
Proposition 3. Suppose that $\epsilon _ { \theta } ( \cdot , Q , t )$ is $K _ { 1 }$ -lipschitz and $\kappa _ { 2 }$ defined as
|
| 399 |
+
|
| 400 |
+
$$
|
| 401 |
+
\kappa _ { 2 } ( \mathbf { x } _ { 0 } ) = \operatorname* { m a x } _ { t \in [ 0 , 1 ] } \| \epsilon _ { \theta } ( E _ { t } ( \mathbf { x } _ { 0 } ) , Q , t ) - \epsilon _ { \theta } ( E _ { t } ( \mathbf { x } _ { 0 } ) , \emptyset , t ) \|
|
| 402 |
+
$$
|
| 403 |
+
|
| 404 |
+
Let $K _ { 2 } = \mathbb { E } _ { \mathbf { x } _ { 0 } } \kappa _ { 2 } ( \mathbf { x } _ { 0 } )$ . Then for all encoding ratio $r$ , with $\tau = \sqrt { \alpha _ { r } ^ { - 1 } - 1 }$ ,
|
| 405 |
+
|
| 406 |
+
$$
|
| 407 |
+
\mathbb { E } _ { \mathbf { x } _ { 0 } } \| \mathbf { x } _ { 0 } - D _ { r } ( E _ { r } ( \mathbf { x } _ { 0 } ) , Q ) \| \leq \frac { K _ { 2 } \tau } { \sqrt { \tau ^ { 2 } + 1 } } \Big ( \tau + \sqrt { \tau ^ { 2 } + 1 } \Big ) ^ { K _ { 1 } }
|
| 408 |
+
$$
|
| 409 |
+
|
| 410 |
+
Proof. Let $\sigma$ be a time-dependent variable defined as $\sigma ( t ) ~ = ~ \sqrt { \alpha _ { t } ^ { - 1 } - 1 }$ . Let $\textbf { u } = \textbf { x } / \sqrt { \alpha } =$ $\mathbf { x } \sqrt { 1 + \sigma ^ { 2 } }$ and $\mathbf { v } = \mathbf { y } { \sqrt { 1 + \sigma ^ { 2 } } }$ . u and $\mathbf { v }$ are solutions of the following differential system:
|
| 411 |
+
|
| 412 |
+
$$
|
| 413 |
+
\begin{array} { r l } & { { d { \mathbf { u } } } | _ { t } = \epsilon _ { \theta } ( { \mathbf { u } } / \sqrt { 1 + \sigma ^ { 2 } } , \varnothing , t ) { d \sigma } , } \\ & { { d { \mathbf { v } } } | _ { t } = \epsilon _ { \theta } ( { \mathbf { v } } / \sqrt { 1 + \sigma ^ { 2 } } , Q , t ) { d \sigma } , } \\ & { { \mathbf { u } } ( r ) = { \mathbf { v } } ( r ) = E _ { r } ( \mathbf { x } _ { 0 } ) \sqrt { 1 + \sigma ^ { 2 } } . } \end{array}
|
| 414 |
+
$$
|
| 415 |
+
|
| 416 |
+
Let $\mathbf { w } = \| \mathbf { u } - \mathbf { v } \|$ , then $\mathbf { w } | _ { t = r } = 0$ and
|
| 417 |
+
|
| 418 |
+
$$
|
| 419 |
+
\begin{array} { r l } & { \| \mathbf { w } | _ { t } \leq \| d \mathbf { u } | _ { t } - d \mathbf { v } | _ { t } \| = \| ( { \epsilon } _ { \theta } ( \mathbf { x } , { \theta } , t ) - { \epsilon } _ { \theta } ( \mathbf { y } , Q , t ) ) d \sigma \| } \\ & { \qquad \leq \| ( { \epsilon } _ { \theta } ( \mathbf { x } , { \theta } , t ) - { \epsilon } _ { \theta } ( \mathbf { x } , Q , t ) \| d \sigma + \| ( { \epsilon } _ { \theta } ( \mathbf { x } , Q , t ) - { \epsilon } _ { \theta } ( \mathbf { y } , Q , t ) \| d \sigma } \\ & { \qquad \leq { \kappa } _ { 2 } ( \mathbf { x } _ { 0 } ) d \sigma + K _ { 1 } \| \mathbf { x } - \mathbf { y } \| d \sigma } \\ & { \qquad \leq \Big ( { \kappa } _ { 2 } ( \mathbf { x } _ { 0 } ) + \frac { K _ { 1 } } { \sqrt { 1 + { \sigma } ^ { 2 } } } w \Big ) d \sigma . } \end{array}
|
| 420 |
+
$$
|
| 421 |
+
|
| 422 |
+
By integration we get
|
| 423 |
+
|
| 424 |
+
$$
|
| 425 |
+
{ \pmb w } ( t ) \le \kappa _ { 2 } ( { \bf x } _ { 0 } ) * ( \tau - t ) + \int _ { t } ^ { \tau } \frac { K _ { 1 } } { \sqrt { 1 + \sigma ^ { 2 } } } { \pmb w } ( \sigma ) d \sigma .
|
| 426 |
+
$$
|
| 427 |
+
|
| 428 |
+
From here we can apply Gronwall’s inequality: ¨
|
| 429 |
+
|
| 430 |
+
$$
|
| 431 |
+
\begin{array} { l } { w ( 0 ) \leq \kappa _ { 2 } ( \mathbf { x } _ { 0 } ) \tau \exp \Big ( \displaystyle \int _ { 0 } ^ { \tau } \frac { K _ { 1 } } { \sqrt { 1 + s ^ { 2 } } } d s \Big ) } \\ { \leq \kappa _ { 2 } ( \mathbf { x } _ { 0 } ) \tau \exp \Big ( K _ { 1 } \log ( \tau + \sqrt { \tau ^ { 2 } + 1 } ) \Big ) } \\ { \leq \kappa _ { 2 } ( \mathbf { x } _ { 0 } ) \tau \Big ( \tau + \sqrt { \tau ^ { 2 } + 1 } \Big ) ^ { K _ { 1 } } . } \end{array}
|
| 432 |
+
$$
|
| 433 |
+
|
| 434 |
+
Which finally gives
|
| 435 |
+
|
| 436 |
+
$$
|
| 437 |
+
\| \mathbf { x } _ { 0 } - \mathbf { y } _ { 0 } \| \leq \frac { \kappa _ { 2 } ( \mathbf { x } _ { 0 } ) \tau } { \sqrt { \tau ^ { 2 } + 1 } } \Big ( \tau + \sqrt { \tau ^ { 2 } + 1 } \Big ) ^ { K _ { 1 } } .
|
| 438 |
+
$$
|
| 439 |
+
|
| 440 |
+
Taking the expectation w.r.t. the input image $\mathbf { x } _ { \mathrm { 0 } }$ gives the final result:
|
| 441 |
+
|
| 442 |
+
$$
|
| 443 |
+
\mathbb { E } _ { \mathbf { x } _ { 0 } } \left\| \mathbf { x } _ { 0 } - D _ { T } ( E _ { T } ( \mathbf { x } _ { 0 } ) , Q ) \right\| \leq \frac { K _ { 2 } \tau } { \sqrt { \tau ^ { 2 } + 1 } } \Big ( \tau + \sqrt { \tau ^ { 2 } + 1 } \Big ) ^ { K _ { 1 } }
|
| 444 |
+
$$
|
| 445 |
+
|
| 446 |
+
which concludes the proof.
|
| 447 |
+
|
| 448 |
+
# B.3 LINKS TO OPTIMAL TRANSPORT THEORY
|
| 449 |
+
|
| 450 |
+
The reverse DDIM encoder $E _ { r }$ maps the distribution of images $p _ { 0 } = p _ { D }$ to the distribution $p _ { r }$ of images noised at timestep $r$ . Khrulkov & Oseledets (2022) suggested that $E _ { r }$ could be an optimal transport map between $p _ { 0 }$ and $p _ { r }$ , minimizing the transport cost $\mathbb { E } _ { \mathbf { x } _ { 0 } } \| \mathbf { x } _ { 0 } - E _ { r } ( \mathbf { x } _ { 0 } ) \| _ { 2 } ^ { 2 }$ . This means that the encoded images are, on average, as close as possible to the input images, while following the correct distribution $p _ { r }$ . It would entail that the unconditional decoder $\bar { D _ { r } } = E _ { r } ^ { - 1 }$ would be an optimal transport map between $p _ { r }$ and $p _ { 0 }$ , and moreover that the conditional decoder $D _ { r } ( \cdot , Q )$ would be an optimal transport map between the distributions $p _ { r } ( \cdot | Q )$ and $p _ { 0 } ( \cdot | Q )$ conditioned by text description $Q$ . Under the hypothesis that $p _ { r }$ is very close to $p _ { r } ( \cdot | Q )$ , then the Encode-Decode algorithm would be the combination of two optimal transport maps $E _ { r }$ and $D _ { r } ( \cdot , Q )$ , mapping $p _ { 0 }$ to $p _ { r }$ and then $p _ { r } \simeq p _ { r } ( \cdot | Q )$ to $p _ { 0 } ( \cdot | Q )$ . This is a very interesting property and we make the connection with the desired properties of semantic image editing, which can be expressed as an optimal transport problem. Given two distribution of images $p _ { 1 } , p _ { 2 }$ (lets say cats and dogs), the aim is to find the function $f$ that performs the expected edit (changing images of cats into images of dogs) while minimally editing the image, which can be expressed mathematically as:
|
| 451 |
+
|
| 452 |
+
$$
|
| 453 |
+
f = \underset { f } { \arg \operatorname* { m i n } } \mathbb { E } _ { \mathbf { x } } \| \mathbf { x } - f ( \mathbf { x } ) \| \quad \mathrm { s . t . } \quad p _ { 2 } = f _ { \# } p _ { 1 } ,
|
| 454 |
+
$$
|
| 455 |
+
|
| 456 |
+
where $f _ { \# }$ is the push-forward measure. The function $D _ { r } ( \cdot , Q ) \circ E _ { r }$ is not a solution of this optimal transport problem, because (i) it was proven that the reverse DDIM encoder is not the optimal transport map for some distributions (Lavenant & Santambrogio, 2022), and (ii) the composition of two optimal transport maps is not necessarily an optimal transport map. However, experiments and numerical simulations suggest that $E _ { r }$ is very close from an optimal transport map. It would be interesting to study the “optimality defect” of $E _ { r }$ and of the editing function $D _ { r } ( \cdot , Q ) \circ E _ { r }$ . We leave this for future work.
|
parse/dev/3lge0p5o-M-/3lge0p5o-M-_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/3lge0p5o-M-/3lge0p5o-M-_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/3lge0p5o-M-/3lge0p5o-M-_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/67o9UQgTD0/67o9UQgTD0_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/67o9UQgTD0/67o9UQgTD0_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/8H5bpVwvt5/8H5bpVwvt5.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/8H5bpVwvt5/8H5bpVwvt5_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/8H5bpVwvt5/8H5bpVwvt5_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/8H5bpVwvt5/8H5bpVwvt5_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/9EAQVEINuum/9EAQVEINuum_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/AhccnBXSne/AhccnBXSne.md
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Training
|
| 2 |
+
|
| 3 |
+
Zhan Tong 1,2∗ Yibing Song 2 Jue Wang 2 Limin Wang 1,3† 1State Key Laboratory for Novel Software Technology, Nanjing University 2Tencent AI Lab 3Shanghai AI Lab tongzhan@smail.nju.edu.cn {yibingsong.cv, arphid}@gmail.com lmwang@nju.edu.cn
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Pre-training video transformers on extra large-scale datasets is generally required to achieve premier performance on relatively small datasets. In this paper, we show that video masked autoencoders (VideoMAE) are data-efficient learners for self-supervised video pre-training (SSVP). We are inspired by the recent ImageMAE [30] and propose customized video tube masking with an extremely high ratio. This simple design makes video reconstruction a more challenging and meaningful self-supervision task, thus encouraging extracting more effective video representations during the pre-training process. We obtain three important findings with VideoMAE: (1) An extremely high proportion of masking ratio (i.e., $9 0 \%$ to $9 5 \%$ ) still yields favorable performance for VideoMAE. The temporally redundant video content enables higher masking ratio than that of images. (2) VideoMAE achieves impressive results on very small datasets (i.e., around $3 \mathrm { k } { - } 4 \mathrm { k }$ videos) without using any extra data. This is partially ascribed to the challenging task of video reconstruction to enforce high-level structure learning. (3) VideoMAE shows that data quality is more important than data quantity for SSVP. Domain shift between pre-training and target datasets is an important factor. Notably, our VideoMAE with the vanilla ViT backbone can achieve $8 7 . 4 \%$ on Kinects-400, $7 5 . 4 \%$ on SomethingSomething V2, $9 1 . 3 \%$ on UCF101, and $6 2 . 6 \%$ on HMDB51, without using any extra data. Code is available at https://github.com/MCG-NJU/VideoMAE.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
Transformer [70] has brought significant progress in natural language processing [17, 7, 54]. The vision transformer [20] also improves a series of computer vision tasks including image classification [66, 88], object detection [8, 37], semantic segmentation [80], object tracking [13, 16], and video recognition [6, 3]. The multi-head self-attention upon linearly projected image/video tokens is capable of modeling global dependency among visual content either spatially or temporally. The inductive bias is effectively reduced via this flexible attention mechanism.
|
| 12 |
+
|
| 13 |
+
Training effective vision transformers (ViTs) typically necessitates large-scale supervised datasets. Initially, the pre-trained ViTs achieve favorable performance by using hundreds of millions of labeled images [20]. For video transformers [3, 6], they are usually derived from image-based transformers and heavily depend on the pre-trained models from large-scale image data (e.g., ImageNet [57]). Previous trials [3, 6] on training video transformers from scratch yield unsatisfied results (except for MViT [21] with a strong inductive bias). Therefore, the learned video transformers are naturally biased by image-based models, and it still remains a challenge that how to effectively and efficiently train a vanilla vision transformer on the video dataset itself without using any pre-trained model or extra image data. Moreover, the existing video datasets are relatively small compared with image datasets, which further increases the difficulty of training video transformers from scratch. Meanwhile, self-supervised learning has shown remarkable performance by using large-scale image datasets [14, 9]. The learned representations have outperformed the ones via supervised learning when being transferred to downstream tasks. It is expected that this self-supervised learning paradigm can provide a promising solution to address the challenge of training video transformers.
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: VideoMAE performs the task of masking random cubes and reconstructing the missing ones with an asymmetric encoder-decoder architecture. Due to high redundancy and temporal correlation in videos, we present the customized design of tube masking with an extremely high ratio $90 \%$ to $9 5 \%$ ). This simple design enables us to create a more challenging and meaningful self-supervised task to make the learned representations capture more useful spatiotemporal structures.
|
| 17 |
+
|
| 18 |
+
Following the success of masked autoencoding in NLP [17] and images [30, 4], we present a new selfsupervised video pre-training (SSVP) method, termed as Video Masked Autoencoder (VideoMAE). Our VideoMAE inherits the simple pipeline of masking random cubes and reconstructing the missing ones. However, the extra time dimension of videos makes them different from images in this masked modeling. First, video frames are often densely captured, and their semantics varies slowly in time [87]. This temporal redundancy would increase the risk of recovering missing pixels from the spatiotemporal neighborhood with little high-level understanding. Furthermore, video could be viewed as the temporal evolution of static appearance, and there exists a correspondence between frames. This temporal correlation could lead to information leakage (i.e., masked spatiotemporal content re-occurrence) during reconstruction unless a specific masking strategy is considered. In this sense, for each masked cube, it is easy to find a corresponding and unmasked copy in adjacent frames. This property would make the learned models identify some “shortcut” features that are hard to generalize to new scenarios.
|
| 19 |
+
|
| 20 |
+
To make video masked modeling more effective, in this paper, we present a customized design of tube masking with an extremely high ratio in our VideoMAE. First, due to temporal redundancy, we use an extremely high masking ratio to drop the cubes from the downsampled clips. This simple strategy not only effectively increases the pre-training performance but also greatly reduces the computational cost due to the asymmetric encoder-decoder architecture. Second, to consider temporal correlation, we devise a simple yet effective tube masking strategy, which turns out to be helpful in relieving the risk of information leakage for cubes with no or negligible motion during reconstruction. With this simple yet effective design in our VideoMAE, we are able to successfully train vanilla ViT backbones on the relatively small-scale video datasets such as Something-Something [25], UCF101 [60], and HMDB51 [34], which significantly outperform the previous state of the art under the setting without extra data. In summary, the main contribution of this paper is threefold:
|
| 21 |
+
|
| 22 |
+
• We present a simple but effective video masked autoencoder that unleashes the potential of vanilla vision transformer for video recognition. To the best of our knowledge, this is the first masked video pre-training framework of simply using plain ViT backbones. To relieve the information leakage issue in masked video modeling, we present the tube masking with an extremely high ratio, which brings the performance improvement to the VideoMAE. • Aligned with the results in NLP and Images on masked modeling, our VideoMAE demonstrates that this simple masking and reconstruction strategy provides a good solution to self-supervised video pre-training. The models pre-trained with our VideoMAE significantly outperform those trained from scratch or pre-trained with contrastive learning methods. • We obtain extra important findings on masked modeling that might be ignored in previous research in NLP and Images. (1) We demonstrate that VideoMAE is a data-efficient learner that could be successfully trained with only $3 . 5 \mathrm { k }$ videos. (2) Data quality is more important than quantity for SSVP when a domain shift exists between the source and target dataset.
|
| 23 |
+
|
| 24 |
+
# 2 Related Work
|
| 25 |
+
|
| 26 |
+
Video representation learning. Learning good video representations has been heavily investigated in the literature. The supervised learning methods [58, 75, 69, 10, 6] usually depend on the image backbones. The video encoder backbones are first pre-trained with image data in a supervised form. Then, these backbones are fine-tuned on the video dataset for classifying human actions. Meanwhile, some methods [67, 22, 21] directly train video backbones from videos in a supervised manner. Besides supervised learning, semi-supervised video representation learning has also been studied [59]. The representations of labeled training samples are utilized to generate supervision signals for unlabeled ones. Supervised or semi-supervised representation learning mainly uses a top-down training paradigm, which is not effective in exploring the inherent video data structure itself. Meanwhile, some multimodal contrastive learning methods [36, 42, 62] have been developed to learn video representation from noisy text supervision.
|
| 27 |
+
|
| 28 |
+
For self-supervised learning, the prior knowledge of temporal information has been widely exploited to design pretext tasks [78, 44, 82, 5] for SSVP. Recently, contrastive learning [28, 45, 29, 52, 24, 27] is popular to learn better visual representation. However these methods heavily rely on strong data augmentation and large batch size [23]. Predicting the video clip with autoencoders in pixel space has been explored for representation learning by using CNN or LSTM backbones [48, 61], or conducting video generation with autoregressive GPT [83]. Instead, our VideoMAE aims to use the simple masked autoencoder with recent ViT backbones to perform data-efficient SSVP.
|
| 29 |
+
|
| 30 |
+
Masked visual modeling. Masked visual modeling has been proposed to learn effective visual representations based on the simple pipeline of masking and reconstruction. These works mainly focus on the image domain. The early work [72] treated the masking as a noise type in denoised autoencoders [71] or inpainted missing regions with context [47] by using convolutions. iGPT [11] followed the success of GPT [7, 55] in NLP and operated a sequence of pixels for prediction. The original ViT [20] investigated the masked token prediction for self-supervised pre-training. More recently, the success of vision transformer has led to investigation of Transformer-based architectures for masked visual modeling [4, 19, 30, 79, 81, 89]. BEiT [4], BEVT [76] and VIMPAC [64] followed BERT [17] and proposed to learn visual representations from images and videos by predicting the discrete tokens [56]. MAE [30] introduced an asymmetric encoder-decoder architecture for masked image modeling. MaskFeat [79] proposed to reconstruct the HOG features of masked tokens to perform self-supervised pre-training in videos. VideoMAE is inspired by the ImageMAE and introduces specific design in implementation for SSVP. In particular, compared with previous masked video modeling [30, 76, 64], we present a simpler yet more effective video masked autoencoder by directly reconstructing the pixels. Our VideoMAE is the first masked video pre-training framework of simply using plain ViT backbones.
|
| 31 |
+
|
| 32 |
+
# 3 Proposed Method
|
| 33 |
+
|
| 34 |
+
In this section, we first revisit ImageMAE [30]. Then we analyze the characteristics of video data.
|
| 35 |
+
Finally, we show how we explore MAE in the video data by presenting our VideoMAE.
|
| 36 |
+
|
| 37 |
+
# 3.1 Revisiting Image Masked Autoencoders
|
| 38 |
+
|
| 39 |
+
ImageMAE [30] performs the masking and reconstruction task with an asymmetric encoder-decoder architecture. The input image $I \in \mathcal { R } ^ { \mathbf { \breve { 3 } } \times H \times W }$ is first divided into regular non-overlapping patches of size $1 6 \times 1 6$ , and each patch is represented with token embedding. Then a subset of tokens are randomly masked with a high masking ratio $( 7 5 \% )$ , and only the remaining ones are fed into the transformer encoder $\Phi _ { \mathrm { e n c } }$ . Finally, a shallow decoder $\Phi _ { \mathrm { d e c } }$ is placed on top of the visible tokens from the encoder and learnable mask tokens to reconstruct the image. The loss function is mean squared error (MSE) loss between the normalized masked tokens and reconstructed ones in the pixel space:
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\mathcal { L } = \frac { 1 } { \Omega } \sum _ { p \in \Omega } | I ( p ) - \hat { I } ( p ) | ^ { 2 } ,
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
where $p$ is the token index, $\Omega$ is the set of masked tokens, $I$ is the input image, and $\hat { I }$ is the reconstructed one.
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
Figure 2: Slowness is a general prior in (a) video data [87]. This leads to two important characteristics in time: temporal redundancy and temporal correlation. Temporal redundancy makes it possible to recover pixels under an extremely high masking ratio. Temporal correlation leads to easily reconstruct the missing pixels by finding those corresponding patches in adjacent frames under plain (b) frame masking or (c) random masking. To avoid this simple task and encourage learning representative representation, we propose a (d) tube masking, where the masking map is the same for all frames.
|
| 49 |
+
|
| 50 |
+
# 3.2 Characteristics of Video Data
|
| 51 |
+
|
| 52 |
+
Compared with static images, video data contain temporal relations. We show the motivation of our VideoMAE by analyzing video characteristics.
|
| 53 |
+
|
| 54 |
+
Temporal redundancy. There are frequently captured frames in a video. The semantics vary slowly in the temporal dimension [87]. We observe that consecutive frames are highly redundant, as shown in Figure 2. This property leads to two critical issues in masked video autoencoding. First, it would be less efficient to keep the original temporal frame rate for pre-training. This would draw us to focus more on static or slow motions in our masked modeling. Second, temporal redundancy greatly dilutes motion representations. This would make the task of reconstructing missing pixels not difficult under the normal masking ratio (e.g., $50 \%$ to $7 5 \%$ ). The encoder backbone is not effective in capturing motion representations.
|
| 55 |
+
|
| 56 |
+
Temporal correlation. Videos could be viewed as the temporal extension of static appearance, and therefore there exists an inherent correspondence between adjacent frames. This temporal correlation could increase the risk of information leakage in the masking and reconstruction pipeline. In this sense, as shown in Figure 2, we can reconstruct the masked patches by finding the spatiotemporal corresponding unmasked patches in the adjacent frames under plain random masking or frame masking. In this case, it might guide the VideoMAE to learn low-level temporal correspondence rather than high-level information such as spatiotemporal reasoning over the content. To alleviate this behavior, we need to propose a new masking strategy to make the reconstruction more challenging and encourage effective learning of spatiotemporal structure representations.
|
| 57 |
+
|
| 58 |
+
# 3.3 VideoMAE
|
| 59 |
+
|
| 60 |
+
To relieve the above issues in video masked modeling, we make the customized design in our VideoMAE, and the overall pipeline is shown in Figure 1. Our VideoMAE takes the downsampled frames as inputs and uses the cube embedding to obtain video tokens. Then, we propose a simple design of tube masking with high ratio to perform MAE pre-training with an asymmetric encoderdecoder architecture. Our backbone uses the vanilla ViT with joint space-time attention.
|
| 61 |
+
|
| 62 |
+
Temporal downsampling. According to the above analysis on temporal redundancy over consecutive frames, we propose to use the strided temporal sampling strategy to perform more efficient video pre-training. Formally, one video clip consisting of $t$ consecutive frames is first randomly sampled from the original video $V$ . We then use temporal sampling to compress the clip to $T$ frames, each of which contains $H \times W \times 3$ pixels. In experiments, the stride $\tau$ is set to 4 and 2 on Kinetics and Something-Something, respectively.
|
| 63 |
+
|
| 64 |
+
Cube embedding. We adopt the joint space-time cube embedding [3, 21, 38] in our VideoMAE, where we treat each cube of size $2 \times 1 6 \times 1 6$ as one token embedding. Thus, the cube embedding layer obtains T2 × H16 $\begin{array} { r } { \frac { T } { 2 } \times \frac { H } { 1 6 } \times \frac { W } { 1 6 } \ 3 } \end{array}$ D tokens and maps each token to the channel dimension $D$ . This design can decrease the spatial and temporal dimension of input, which helps to alleviate the spatiotemporal redundancy in videos.
|
| 65 |
+
|
| 66 |
+
Tube masking with extremely high ratios. First, temporal redundancy is a factor affecting VideoMAE design. We find that VideoMAE is in favor of extremely high masking ratios (e.g. $90 \%$ to $9 5 \%$ ) compared with the ImageMAE. Video information density is much lower than images, and we expect a high ratio to increase the reconstruction difficulty. This high masking ratio is helpful to mitigate the information leakage during masked modeling and make masked video reconstruction a meaningful self-supervised pre-training task.
|
| 67 |
+
|
| 68 |
+
Second, temporal correlation is another factor in our VideoMAE design. We find even under the extremely high masking ratio, we can still improve the masking efficiency by proposing the temporal tube masking mechanism. Temporal tube masking enforces a mask to expand over the whole temporal axis, namely, different frames sharing the same masking map. Mathematically, the tube mask mechanism can be expressed as $\mathbb { I } [ p _ { x , y , \cdot } \in \Omega ] \sim \mathrm { B e r n o u l l i } ( \bar { \rho _ { \mathrm { m a s k } } } )$ and different time $t$ shares the same value. With this mechanism, temporal neighbors of masked cubes are always masked. So for some cubes with no or small motion (e.g., finger cube in 4th row of Figure 2 (d)), we can not find the spatiotemporal corresponding content in all frames. In this way, it would encourage our VideoMAE to reason over high-level semantics to recover these totally missing cubes. This simple strategy can alleviate the information leakage for cubes with no or negligible motion, and turns out to be effective in practice for masked video pre-training.
|
| 69 |
+
|
| 70 |
+
Backbone: joint space-time attention. Due to the high proportion of masking ratio mentioned above, only a few tokens are left as the input for the encoder. To better capture high-level spatio-temporal information in the remaining tokens, we use the vanilla ViT backbone [20] and adopt the joint space-time attention [3, 38]. Thus, all pair tokens could interact with each other in the multi-head self-attention layer [70]. The specific architecture design for the encoder and decoder is shown in supplementary materials. The quadratic complexity of the joint space-time attention mechanism is a computational bottleneck, while our design of an extremely high masking ratio alleviates this issue by only putting the unmasked tokens (e.g., $10 \%$ ) into the encoder during the pre-training phase.
|
| 71 |
+
|
| 72 |
+
# 4 Experiments
|
| 73 |
+
|
| 74 |
+
# 4.1 Datasets
|
| 75 |
+
|
| 76 |
+
We evaluate our VideoMAE on five common video datasets: Kinetics-400 [33], Something-Something V2 [25], UCF101 [60], HMDB51 [34], and AVA [26]. The Kinetics-400 contains around 240k training videos and 20k validation videos of 10s from 400 classes. The Something-Something V2 is another large-scale video dataset, having around 169k videos for training and 20k videos for validation. In contrast to Kinetics-400, this dataset contains 174 motion-centric action classes. These two large-scale video datasets focus on different visual cues for action recognition. UCF101 and HMDB51 are two relatively small video datasets, which contain around $9 . 5 \mathrm { k } / 3 . 5 \mathrm { k }$ train/val videos and $3 . 5 \mathrm { k } / 1 . 5 \mathrm { k }$ train/val videos, respectively. Compared with those large-scale video datasets, these two small datasets are more suitable for verifying the effectiveness of VideoMAE, as training large ViT models is more challenging on small datasets. Moreover, we also transfer the learned ViT models by VideoMAE to downstream action detection task. We work on AVA, a dataset for spatiotemporal localization of human actions with 211k training and $5 7 \mathrm { k }$ validation video segments. In experiments of downstream tasks, we fine-tune the pre-trained VideoMAE models on the training set and report the results on the validation set. The implementation details are described in Appendix $\ S \mathrm { ~ B ~ }$ .
|
| 77 |
+
|
| 78 |
+
# 4.2 Ablation Studies
|
| 79 |
+
|
| 80 |
+
In this subsection, we perform in-depth ablation studies on VideoMAE design with the default backbone of 16-frame ViT-B on Something-Something V2 (SSV2) and Kinetics-400 (K400). The specific architectures for the encoder and decoder are shown in Appendix $\ S \mathrm { ~ A ~ }$ . For fine-tuning, we perform TSN [75] uniform sampling on SSV2 and dense sampling [77, 22] on K400. All models share the same inference protocol, i.e., $2 \mathrm { c l i p s } \times 3$ crops on SSV2 and 5 clips $\times 3$ crops on K400.
|
| 81 |
+
|
| 82 |
+
Decoder design. The lightweight decoder is one key component of our VideoMAE. We conduct experiments with the different depths in Table 1a. Unlike in ImageMAE, a deep decoder here is important for better performance, while a shallow decoder could reduce the GPU memory consumption. We take 4 blocks for the decoder by default. The decoder width is set to half channel of the encoder (e.g., 384-d for ViT-B), following the design in the image domain.
|
| 83 |
+
|
| 84 |
+
<table><tr><td rowspan=1 colspan=3>blocks SSV2K400 GPU mem.</td></tr><tr><td rowspan=1 colspan=3>1 68.579.0 7.9G</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>69.279.2</td><td rowspan=1 colspan=1>10.2G</td></tr><tr><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>69.680.0</td><td rowspan=1 colspan=1>14.7G</td></tr><tr><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>69.379.7</td><td rowspan=1 colspan=1>23.7G</td></tr></table>
|
| 85 |
+
|
| 86 |
+
(a) Decoder depth. 4 blocks of decoder achieve the best tradeoff. “GPU mem.” is GPU memory during pre-training, benchmarked in one GPU with a batch size of 16.
|
| 87 |
+
|
| 88 |
+
<table><tr><td>case</td><td>ratio</td><td>SSV2</td><td>K400</td></tr><tr><td>tube</td><td>75</td><td>68.0</td><td>79.8</td></tr><tr><td>tube</td><td>90</td><td>69.6</td><td>80.0</td></tr><tr><td>random</td><td>90</td><td>68.3</td><td>79.5</td></tr><tr><td>frame</td><td>87.5*</td><td>61.5</td><td>76.5</td></tr></table>
|
| 89 |
+
|
| 90 |
+
(b) Mask sampling. We compare different masking strategies. Our proposed tube masking with an extremely high ratio works the best. $* ^ { * } 8 7 . 5 ^ { * }$ means masking 14/16 frames.
|
| 91 |
+
|
| 92 |
+
<table><tr><td>input</td><td>target</td><td>SSV2</td><td>K400</td></tr><tr><td>T×T</td><td>center</td><td>63.0</td><td>79.3</td></tr><tr><td>TX</td><td>Tx</td><td>68.9</td><td>79.8</td></tr><tr><td>T×T</td><td>T×T</td><td>69.6</td><td>80.0</td></tr><tr><td>T×T</td><td>2T×</td><td>69.2</td><td>80.1</td></tr></table>
|
| 93 |
+
|
| 94 |
+
(c) Reconstruction target. $T \times$ $\tau$ denotes “frames $\times$ stride”. center denotes the center frame of the input clip. $T$ is set to 16 as default. $\tau$ is set to 2 and 4 on SSV2 and K400, respectively.
|
| 95 |
+
|
| 96 |
+
<table><tr><td rowspan=1 colspan=2>case SSV2K400fromscratch 32.668.8</td></tr><tr><td rowspan=1 colspan=2>fromscratch 32.668.8</td></tr><tr><td rowspan=1 colspan=2>ImageNet-21k sup.61.8 78.9</td></tr><tr><td></td><td rowspan=2 colspan=1>65.2 -</td></tr><tr><td rowspan=1 colspan=1>IN-21k+K400 sup.</td></tr><tr><td rowspan=1 colspan=1>VideoMAE</td><td rowspan=1 colspan=1>69.680.0</td></tr></table>
|
| 97 |
+
|
| 98 |
+
(d) Pre-training strategy. Our VideoMAE works the best without using any extra data. “sup.” is supervised training.
|
| 99 |
+
|
| 100 |
+
<table><tr><td>dataset</td><td>method SSV2</td><td>K400</td></tr><tr><td>IN-1K</td><td>ImageMAE 64.8</td><td>78.7</td></tr><tr><td>K400</td><td>VideoMAE 68.5</td><td>80.0</td></tr><tr><td>SSV2</td><td>VideoMAE 69.6</td><td>79.6</td></tr></table>
|
| 101 |
+
|
| 102 |
+
(e) Pre-training dataset. Our VideoMAE works the best when directly pre-training the models on the source datasets.
|
| 103 |
+
|
| 104 |
+
<table><tr><td>case</td><td>SSV2</td><td>K400</td></tr><tr><td>L1 loss</td><td>69.1</td><td>79.7</td></tr><tr><td>MSE loss</td><td>69.6</td><td>80.0</td></tr><tr><td>Smooth L1 loss</td><td>68.9</td><td>79.6</td></tr></table>
|
| 105 |
+
|
| 106 |
+
(f) Loss function. MSE loss works the best for the masking and reconstruction task in VideoMAE.
|
| 107 |
+
|
| 108 |
+
Table 1: Ablation experiments on Something-Something V2 and Kinetics-400. Our backbone is 16-frame vanilla ViT-B and all models are pre-trained with mask ratio $\rho { = } 9 0 \%$ for 800 epochs, and finetuned for evaluation. We perform TSN [75] uniform sampling on SSV2 and dense sampling [77, 22] on K400. All models share the same inference protocol, i.e., 2 clips $\times 3$ crops on SSV2 and 5 clips $\times 3$ crops on K400. The default choice for our model is colored in gray .
|
| 109 |
+
|
| 110 |
+
Masking strategy. We compare different masking strategies in Table 1b. When increasing the masking ratio from $7 5 \%$ to $90 \%$ for tube masking, the performance on SSV2 boosts from $6 8 . 0 \%$ to $6 9 . 6 \%$ . Then, with an extremely high ratio, we find tube masking also achieves better performance than plain random masking and frame masking. We attribute these interesting observations to the redundancy and temporal correlation in videos. The conclusion on K400 is in accord with one on SSV2. One may note that the performance gap on K400 is lower than one on SSV2. We argue that the Kinetics videos are mostly stationary and scene-related. The effect of temporal modeling is not obvious. Overall, we argue that our default designs enforce the networks to capture more useful spatiotemporal structures and therefore make VideoMAE a more challenging task, which a good self-supervised learner hunger for.
|
| 111 |
+
|
| 112 |
+
Reconstruction target. First, if we only employ the center frame as the target, the results would decrease greatly as shown in Table 1c. The sampling stride is also sensitive. The result of small sampling strid $\begin{array} { c } { { \vdots \frac { \tau } { 2 } } } \\ { { 2 T } } \end{array}$ is lower than default sampling stride $\tau$ $6 8 . 9 \%$ vs. $6 9 . 6 \%$ on SSV2). We also try to reconstruct frames from the downsampled $T$ frames, but it obtains slightly worse results on SSV2. For simplicity, we use the input downsampled clip as our default reconstruction target.
|
| 113 |
+
|
| 114 |
+
Pre-training strategy. We compare different pre-training strategies in Table 1d. Similar to previous trials [3, 6], training video transformers from scratch yields unsatisfied results on video datasets. When pre-trained on the large-scale ImageNet-21K dataset, the video transformer obtains better accuracy from $3 2 . 6 \%$ to $6 1 . 8 \%$ on SSV2 and $6 8 . 8 \%$ to $78 . 9 \%$ on K400. Using the models pre-trained on both ImageNet-21K and Kinetics further increases accuracy to $6 5 . 2 \%$ on SSV2. Our VideoMAE can effectively train a video transformer on the video dataset itself without using any extra data and achieve the best performance $6 9 . 6 \%$ on SSV2 and $8 0 . 0 \%$ on K400).
|
| 115 |
+
|
| 116 |
+
Pre-training dataset. First, we pre-train the ViT-B on ImageNet-1K for 1600 epochs, following the recipes in [30]. Then we inflate the 2D patch embedding layer to our cube embedding layer following [10] and fine-tune the model on the target video datasets. The results surpass the model trained from scratch as shown in Table 1e. We also compare the ImageMAE pre-trained model with VideoMAE models pre-trained on video datasets. We see that our VideoMAE models can achieve better performance than ImageMAE. However, when we try to transfer the pre-trained VideoMAE models to the other video datasets (e.g. from Kinetics to Something-Something), the results are slightly worse than their counterpart, which is directly pre-trained on its own target video datasets. We argue that domain shift between pre-training and target datasets could be an important issue.
|
| 117 |
+
|
| 118 |
+
dataset training data from scratch MoCo v3 VideoMAE
|
| 119 |
+
Table 2: Comparisons with the results of previous self-supvised pre-training methods on different datasets. We take 16-frame ViT-B as the default backbone. Notably, here MoCo v3 and VideoMAE all only use the unlabelled data in the training set of each dataset for pre-training and are all fine-tuned for evaluation.
|
| 120 |
+
|
| 121 |
+
<table><tr><td>K400</td><td>240k</td><td>68.8</td><td>74.2</td><td>80.0</td></tr><tr><td>Sth-Sth V2</td><td>169k</td><td>32.6</td><td>54.2</td><td>69.6</td></tr><tr><td>UCF101</td><td>9.5k</td><td>51.4</td><td>81.7</td><td>91.3</td></tr><tr><td>HMDB51</td><td>3.5k</td><td>18.0</td><td>39.2</td><td>62.6</td></tr></table>
|
| 122 |
+
|
| 123 |
+
Table 3: Comparisons with the efficiency and effectiveness on Something-Something V2. We report the fine-tuning (ft) and linear probing (lin) accuracy $( \% )$ . The wall-clock time of pre-training is benchmarked in 64 Tesla V100 GPUs with PyTorch.
|
| 124 |
+
|
| 125 |
+
<table><tr><td>method</td><td>epoch</td><td>ft. acc.</td><td>lin. acc.</td><td>hours</td><td>speedup</td></tr><tr><td>MoCov3</td><td>300</td><td>54.2</td><td>33.7</td><td>61.7</td><td>-</td></tr><tr><td>VideoMAE</td><td>800</td><td>69.6</td><td>38.9</td><td>19.5</td><td>3.2×</td></tr></table>
|
| 126 |
+
|
| 127 |
+
Table 4: Comparisons with the feature transferability on smaller datasets. We take 16-frame ViT-B as the default backbone. Notably, here MoCo v3 and VideoMAE are all pre-trained on Kinetics-400 with unlabelled data in the training set. Then the pre-trained model is fine-tuned on target datasets for evaluation.
|
| 128 |
+
|
| 129 |
+
<table><tr><td>method</td><td>K400 → SSV2 K400 →UCF K400 →HMDB</td><td></td><td></td></tr><tr><td>MoCo v3</td><td>62.4</td><td>93.2</td><td>67.9</td></tr><tr><td>VideoMAE</td><td>68.5</td><td>96.1</td><td>73.3</td></tr></table>
|
| 130 |
+
|
| 131 |
+
Loss function. Table 1f contains an ablation study of loss function. We find that the MSE loss could achieve a higher result compared with the L1 loss and smooth L1 loss. Therefore, we employ the MSE loss by default.
|
| 132 |
+
|
| 133 |
+
# 4.3 Main Results and Analysis
|
| 134 |
+
|
| 135 |
+
VideoMAE: data-efficient learner. The self-supervised video pre-training (SSVP) has been extensively studied in previous works, but they mainly use the CNN-based backbones. Few works have investigated transformer-based backbone in SSVP. Therefore, to demonstrate the effectiveness of VideoMAE for transformer-based SSVP, we compare two methods implemented by ourselves: (1) training from scratch and (2) pre-training with contrastive learning (MoCo v3 [14]). For training from scratch, we carefully tune these hyper-parameters to successfully pre-train ViT-Base from the training set of the dataset. For pre-training with MoCo v3, we strictly follow the training practice in its image counterpart and carefully avoid the collapse issue.
|
| 136 |
+
|
| 137 |
+
The recognition accuracy is reported in Table 2. We see that our VideoMAE significantly outperforms other two training settings. For instance, on the largest dataset of Kinetics-400, our VideoMAE outperforms training from scratch by around $10 \%$ and MoCo v3 pre-training by around $5 \%$ . This superior performance demonstrates that masked autoencoder provides an effective pre-training mechanism for video transformers. We also see that the performance gap between our VideoMAE and the other two methods becomes larger as the training set becomes smaller. Notably, even with only $3 . 5 \mathrm { k }$ training clips on HMDB51, our VideoMAE pre-training can still obtain a satisfying accuracy (around $6 1 \%$ ). This new result demonstrates that VideoMAE is a more data-efficient learner for SSVP. This property is particularly important for scenarios with limited data available and different with contrastive learning methods.
|
| 138 |
+
|
| 139 |
+
We compare the efficiency of VideoMAE pre-training and MoCo v3 pre-training in Table 3. The task of masked autoencoding with a high ratio is more challenging and thereby requires more training epochs (800 vs. 300). Thanks to the asymmetric encoder-decoder in our VideoMAE and extremely high masking ratio, our pre-training time is much shorter than MoCo v3 (19.5 vs. 61.7 hours).
|
| 140 |
+
|
| 141 |
+
High masking ratio. In VideoMAE, one core design is the extremely high masking ratio. We perform an investigation of this design on the Kinetics-400 and Something-Something V2 datasets. The results are shown in Figure 3. We see that the best masking ratio is extremely high, and even $9 5 \%$ can achieve good performance for both datasets. This result is difference from BERT [17] in NLP and MAE [30] in images. We analyze the temporal redundancy and correlation in videos makes it possible for our VideoMAE to learn plausible outputs with such a high masking ratio.
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
Figure 3: The effect of masking ratio Figure 4: Data efficiency of VideoMAE representations. on (a) Something-Something V2 and (b) Our default backbone is 16-frame vanilla ViT-B. • denotes Kinetics-400. We take 16-frame vanilla that all models are trained for the same 132k iterations, ViT-B as default. The results show that and $0$ denotes that all models are trained for the same 800 an extremely high masking ratio $( 9 0 \% )$ epochs. Note that it takes 132k iterations to pre-train the achieves the best efficiency and effective- model for 800 epochs on the full training set of Somethingness trade-off on both video datasets. Something V2.
|
| 147 |
+
|
| 148 |
+
We also visualize the reconstructed examples in Appendix $\ S { s e }$ . We see that even under an extremely high masking ratio, VideoMAE can produce satisfying reconstructed results. This implies VideoMAE is able to learn useful representations that capture the holistic spatiotemporal structure in videos.
|
| 149 |
+
|
| 150 |
+
Transfer learning: quality vs. quantity. To further investigate the generalization ability of VideoMAE in representation learning, we transfer the learned VideoMAE from Kinetics-400 to Something-Something V2, UCF101, and HMDB51. The results are shown in Table 4, and we compare them with MoCo v3 pre-training. The models pre-trained by VideoMAE are better than those pre-trained by MoCo v3, demonstrating that our VideoMAE learns more transferable representations.
|
| 151 |
+
|
| 152 |
+
Comparing Table 2 and Table 4, the transferred representation outperforms the original VideoMAE models trained from its own dataset on UCF101 and HMDB51. In contrast, the transferred representation is worse on Something-Something V2. To figure out whether this inconsistent result is caused by the large scale of Something-Something V2, we further perform a detailed investigation by decreasing the pre-training video numbers. In this study, we run two experiments: (1) pre-training with the same epochs and (2) pre-training with the same time budget. The result is shown in Figure 4. We see that more training iterations could contribute to better performance when we decrease the size of the pre-training set. Surprisingly, even with only $4 2 \mathrm { k }$ pre-training videos, we can still obtain better accuracy than the Kinetics pre-trained models with 240k videos $6 8 . 7 \%$ vs. $6 8 . 5 \%$ ). This result implies that domain shift is another important factor, and data quality is more important than data quantity in SSVP when there exists a difference between pre-training and target datasets. It also demonstrates that VideoMAE is a data-efficient learner for SSVP.
|
| 153 |
+
|
| 154 |
+
Transfer learning: downstream action detection. We also transfer the learned VideoMAE on Kinetics-400 to downstream action detection dataset AVA. Following the standard setting [26], we evaluate on top 60 common classes with mean Average Precision (mAP) as the metric under IoU threshold of 0.5. The results are shown in the Table 5. After self-supervised pre-training on Kinetics400, our VideoMAE with the vanilla ViT-B can achieve $2 6 . 7 \mathrm { m A P }$ on AVA, which demonstrates the strong transferability of our VideoMAE. If the pre-trained ViT-B is additionally fine-tuned on Kinetics-400 with labels, the transfer learning performance can further increase about $5 \mathrm { m A P }$ (from 26.7 to 31.8). More remarkably, when we scale up the pre-training configurations with larger video datasets (e.g. Kinetics-700) or more powerful backbones (e.g. ViT-Large and ViT-Huge), VideoMAE can finally obtain better performance. For example, our ViT-L VideoMAE pre-trained on Kinetics-700 achieves $3 9 . 3 \mathrm { m A P }$ and ViT-H VideoMAE pre-trained on Kinetics-400 has $3 9 . 5 \mathrm { m A P } . $ . These results demonstrate that the self-supervised pre-trained models transfer well not only on action classification task but on more complex action detection task.
|
| 155 |
+
|
| 156 |
+
Table 5: Comparison with the state-of-the-art methods on AVA v2.2. All models are pre-trained and fine-tuned at image size $2 2 4 ^ { 2 }$ . We report the mean Average Precision (mAP) on validation set. “Ex. labels $\pmb { \chi } ^ { , }$ means only unlabelled data is used during the pre-training phase and the pre-trained models are directly transferred to AVA. “Ex. labels $\curvearrowleft$ means pre-trained models are additionally fine-tuned on the pre-training dataset with labels before transferred to AVA. $T \times \tau$ refers to frame number and corresponding sample rate.
|
| 157 |
+
|
| 158 |
+
<table><tr><td>Method</td><td>Backbone</td><td>Pre-train Dataset Extra Labels|T×7</td><td></td><td></td><td>GFLOPs</td><td>Param</td><td>mAP</td></tr><tr><td>supervised [22]</td><td>SlowFast-R101</td><td>Kinetics-400</td><td>√</td><td>8×8</td><td>138</td><td>53</td><td>23.8</td></tr><tr><td>CVRL [53]</td><td>SlowOnly-R50</td><td>Kinetics-400</td><td>X</td><td>32×2</td><td>42</td><td>32</td><td>16.3</td></tr><tr><td>pBYOLp=3 [23]</td><td>SlowOnly-R50 SlowOnly-R50</td><td>Kinetics-400</td><td>X</td><td>8×8</td><td>42</td><td>32</td><td>23.4</td></tr><tr><td>pMoCop=3 [23]</td><td>MViT-L</td><td>Kinetics-400 Kinetics-400</td><td>X</td><td>8×8 40×3</td><td>42</td><td>32</td><td>20.3</td></tr><tr><td>MaskFeat↑312 [79] MaskFeat↑312 [79]</td><td>MViT-L</td><td>Kinetics-600</td><td>√ √</td><td>40×3</td><td>2828 2828</td><td>218 218</td><td>37.5</td></tr><tr><td>VideoMAE</td><td>ViT-S</td><td>Kinetics-400</td><td>X</td><td>16×4</td><td>57</td><td>22</td><td>38.8 22.5</td></tr><tr><td>VideoMAE</td><td>ViT-S</td><td>Kinetics-400</td><td>√</td><td>16×4</td><td>57</td><td>22</td><td>28.4</td></tr><tr><td>VideoMAE</td><td>ViT-B</td><td>Kinetics-400</td><td>X</td><td>16×4</td><td>180</td><td>87</td><td>26.7</td></tr><tr><td>VideoMAE</td><td>ViT-B</td><td>Kinetics-400</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>ViT-L</td><td>Kinetics-400</td><td>√</td><td>16×4</td><td>180</td><td>87</td><td>31.8</td></tr><tr><td>VideoMAE</td><td>ViT-L</td><td>Kinetics-400</td><td>X</td><td>16×4 16×4</td><td>597</td><td>305</td><td>34.3</td></tr><tr><td>VideoMAE VideoMAE</td><td>ViT-H</td><td>Kinetics-400</td><td>√</td><td>16×4</td><td>597</td><td>305</td><td>37.0</td></tr><tr><td>VideoMAE</td><td>ViT-H</td><td>Kinetics-400</td><td>X √</td><td>16×4</td><td>1192 1192</td><td>633 633</td><td>36.5</td></tr><tr><td>VideoMAE</td><td>ViT-L</td><td>Kinetics-700</td><td>X</td><td>16×4</td><td>597</td><td>305</td><td>39.5 36.1</td></tr><tr><td>VideoMAE</td><td>ViT-L</td><td>Kinetics-700</td><td>√</td><td>16×4</td><td>597</td><td>305</td><td>39.3</td></tr></table>
|
| 159 |
+
|
| 160 |
+
<table><tr><td>Method</td><td>Backbone</td><td>Extra data</td><td>Ex. labels</td><td>Frames</td><td>GFLOPs</td><td>Param</td><td>Top-1</td><td>Top-5</td></tr><tr><td>TEINetEn [39]</td><td>ResNet50x2</td><td rowspan="3">ImageNet-1K</td><td>√</td><td>8+16</td><td>99×10x3</td><td>50</td><td>66.5</td><td>N/A</td></tr><tr><td>TANetEn [40]</td><td>ResNet50×2</td><td>√</td><td>8+16</td><td>99×2×3</td><td>51</td><td>66.0</td><td>90.1</td></tr><tr><td>TDNEn [74]</td><td>ResNet101×2</td><td>√</td><td>8+16</td><td>198×1×3</td><td>88</td><td>69.6</td><td>92.2</td></tr><tr><td>SlowFast [22] MViTv1[21]</td><td>ResNet101 MViTv1-B</td><td rowspan="2">Kinetics-400</td><td>√ √</td><td>8+32 64</td><td>106×1×3 455×1×3</td><td>53 37</td><td>63.1 67.7</td><td>87.6</td></tr><tr><td>TimeSformer [6]</td><td>ViT-B</td><td></td><td>8</td><td>196×1×3</td><td>121</td><td>59.5</td><td>90.9 N/A</td></tr><tr><td>TimeSformer [6]</td><td>ViT-L</td><td rowspan="2">ImageNet-21K</td><td>V</td><td>64</td><td>5549×1×3</td><td>430</td><td>62.4</td><td>N/A</td></tr><tr><td>ViViT FE [3]</td><td>ViT-L</td><td>√</td><td>32</td><td>995×4×3</td><td>N/A</td><td>65.9</td><td>89.9</td></tr><tr><td>Motionformer [50]</td><td>ViT-B</td><td rowspan="4">IN-21K+K400</td><td>√</td><td>16</td><td>370×1×3</td><td>109</td><td>66.5</td><td>90.1</td></tr><tr><td>Motionformer [50]</td><td>ViT-L</td><td>√</td><td>32</td><td>1185×1×3</td><td>382</td><td>68.1</td><td>91.2</td></tr><tr><td>Video Swin [38]</td><td>Swin-B</td><td>√</td><td>32</td><td>321×1×3</td><td>88</td><td>69.6</td><td>92.7</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>VIMPAC [64]</td><td>ViT-L</td><td>HowTo100M+DALLE IN-1K+K400+DALLE</td><td>X</td><td>10</td><td>N/A×10×3</td><td>307</td><td>68.1</td><td>N/A</td></tr><tr><td>BEVT[76]</td><td>Swin-B</td><td rowspan="2">Kinetics-600</td><td>×</td><td>32</td><td>321×1×3</td><td>88</td><td>70.6</td><td>N/A</td></tr><tr><td>MaskFeat↑312 [79]</td><td>MViT-L</td><td>√</td><td>40</td><td>2828×1×3</td><td>218</td><td>75.0</td><td>95.0</td></tr><tr><td>VideoMAE</td><td>ViT-B</td><td>Kinetics-400 Kinetics-400</td><td>X ×</td><td>16</td><td>180×2×3</td><td>87</td><td>69.7</td><td>92.3</td></tr><tr><td>VideoMAE</td><td>ViT-L</td><td rowspan="4"> no external data</td><td>X</td><td>16</td><td>597×2×3</td><td>305</td><td>74.0</td><td>94.6</td></tr><tr><td>VideoMAE</td><td>ViT-S</td><td>X</td><td>16</td><td>57×2×3</td><td>22</td><td>66.8</td><td>90.3</td></tr><tr><td>VideoMAE</td><td>ViT-B</td><td></td><td>16</td><td>180×2×3</td><td>87</td><td>70.8</td><td>92.4</td></tr><tr><td>VideoMAE VideoMAE</td><td>ViT-L ViT-L</td><td>X X</td><td>16 32</td><td>597×2×3 1436×1×3</td><td>305 305</td><td>74.3 75.4</td><td>94.6 95.2</td></tr></table>
|
| 161 |
+
|
| 162 |
+
Table 6: Comparison with the state-of-the-art methods on Something-Something V2. Our VideoMAE reconstructs normalized cube pixels and is pre-trained with a masking ratio of $90 \%$ for 2400 epochs. “Ex. labels $\pmb { \chi } ^ { , }$ means only unlabelled data is used during the pre-training phase. “N/A” indicates the numbers are not available for us.
|
| 163 |
+
|
| 164 |
+
# 4.4 Comparison with the state of the art
|
| 165 |
+
|
| 166 |
+
We compare with the previous state-of-the-art performance on the Kinetics-400 and SomethingSomething V2 datasets. The results are reported in Table 6 and Table 7. Our VideoMAE can easily scale up with more powerful backbones (e.g. ViT-Large and ViT-Huge) and more frames (e.g. 32). Our VideoMAE achieves the top-1 accuracy of $7 5 . 4 \%$ on Something-Something V2 and $8 7 . 4 \%$ on Kinetics-400 without using any extra data. We see that the existing state-of-the-art methods all depend on the external data for pre-training on the Something-Something V2 dataset. On the contrary, our VideoMAE without any external data significantly outperforms previous methods with the same input resolution by around $5 \%$ . Our ViT-H VideoMAE also achieves very competitive performance on the Kinetics-400 dataset without using any extra data, which is even better than ViViT-H with on
|
| 167 |
+
|
| 168 |
+
Table 7: Comparison with the state-of-the-art methods on Kinetics-400. Our VideoMAE reconstructs normalized cube pixels. Here models are self-supervised pre-trained with a masking ratio of $90 \%$ for 1600 epochs on Kinetics-400. VideoMAE↑320 is initialized from its $2 2 4 ^ { 2 }$ resolution counterpart and then fine-tuned for evaluation. “Ex. labels $\pmb { \chi } ^ { , }$ means only unlabelled data is used during the pre-training phase. “N/A” indicates the numbers are not available for us.
|
| 169 |
+
|
| 170 |
+
<table><tr><td>Method</td><td>Backbone</td><td>Extra data</td><td>Ex.labels|1</td><td>Frames</td><td>GFLOPs</td><td>Param</td><td>Top-1</td><td>Top-5</td></tr><tr><td>NL I3D [77]</td><td>ResNet101</td><td rowspan="3">ImageNet-1K</td><td>√</td><td>128</td><td>359×10×3</td><td>62</td><td>77.3</td><td>93.3</td></tr><tr><td>TANet [40]</td><td>ResNet152</td><td></td><td>16</td><td>242×4×3</td><td>59</td><td>79.3</td><td>94.1</td></tr><tr><td>TDNEn [74]</td><td>ResNet101</td><td></td><td>8+16</td><td>198×10×3</td><td>88</td><td>79.4</td><td>94.4</td></tr><tr><td>TimeSformer [6]</td><td>ViT-L</td><td rowspan="4">ImageNet-21K</td><td></td><td>96</td><td>8353×1×3</td><td>430</td><td>80.7</td><td>94.7</td></tr><tr><td>ViViT FE [3]</td><td>ViT-L</td><td></td><td>128</td><td>3980×1×3</td><td>N/A</td><td>81.7</td><td>93.8</td></tr><tr><td>Motionformer [50]</td><td>ViT-L</td><td></td><td>32</td><td>1185×10×3</td><td>382</td><td>80.2</td><td>94.8</td></tr><tr><td>Video Swin [38]</td><td>Swin-L</td><td></td><td>32</td><td>604×4×3</td><td>197</td><td>83.1</td><td>95.9</td></tr><tr><td>ViViT FE [3]</td><td>ViT-L</td><td>JFT-300M</td><td>√</td><td>128</td><td>3980×1×3</td><td>N/A</td><td>83.5</td><td>94.3</td></tr><tr><td>ViViT[3]</td><td>ViT-H</td><td>JFT-300M</td><td></td><td>32</td><td>3981×4×3</td><td>N/A</td><td>84.9</td><td>95.8</td></tr><tr><td>VIMPAC [64]</td><td>ViT-L</td><td>HowTo100M+DALLE</td><td>X</td><td>10</td><td>N/A×10×3</td><td>307</td><td>77.4</td><td>N/A</td></tr><tr><td>BEVT[76]</td><td>Swin-B</td><td>IN-1K+DALLE</td><td>X</td><td>32</td><td>282×4×3</td><td>88</td><td>80.6</td><td>N/A</td></tr><tr><td>MaskFeat↑352 [79]</td><td>MViT-L</td><td>Kinetics-600</td><td>X</td><td>40</td><td>3790×4×3</td><td>218</td><td>87.0</td><td>97.4</td></tr><tr><td>ip-CSN [68]</td><td>ResNet152</td><td rowspan="4"> no external data</td><td>X</td><td>32</td><td>109×10×3</td><td>33</td><td>77.8</td><td>92.8</td></tr><tr><td>SlowFast [22]</td><td>R101+NL</td><td>X</td><td>16+64</td><td>234×10×3</td><td>60</td><td>79.8</td><td>93.9</td></tr><tr><td>MViTv1[21]</td><td>MViTv1-B</td><td>X</td><td>32</td><td>170×5×1</td><td>37</td><td>80.2</td><td>94.4</td></tr><tr><td>MaskFeat [79]</td><td>MViT-L</td><td>×</td><td>16</td><td>377×10×1</td><td>218</td><td>84.3</td><td>96.3</td></tr><tr><td>VideoMAE</td><td>ViT-S</td><td rowspan="4">no external data</td><td>X</td><td>16</td><td>57×5×3</td><td>22</td><td>79.0</td><td>93.8</td></tr><tr><td>VideoMAE</td><td>ViT-B</td><td>X</td><td>16</td><td>180×5×3</td><td>87</td><td>81.5</td><td>95.1</td></tr><tr><td>VideoMAE</td><td>ViT-L</td><td>×</td><td>16</td><td>597×5×3</td><td>305</td><td>85.2</td><td>96.8</td></tr><tr><td>VideoMAE</td><td>ViT-H</td><td>×</td><td>16</td><td>1192×5×3</td><td>633</td><td>86.6</td><td>97.1</td></tr><tr><td>VideoMAE↑320</td><td>ViT-L</td><td rowspan="2">no external data</td><td>X</td><td>32</td><td>3958×4×3</td><td>305</td><td>86.1</td><td></td></tr><tr><td>VideoMAE↑320</td><td>ViT-H</td><td>×</td><td>32</td><td>7397×4×3</td><td>633</td><td>87.4</td><td>97.3 97.6</td></tr></table>
|
| 171 |
+
|
| 172 |
+
JFT-300M pre-training $8 6 . 6 \%$ v.s. $8 4 . 9 \%$ ). When fine-tuned with larger spatial resolutions and input video frames, the performance of our ViT-H VideoMAE can further boost from $8 6 . 6 \%$ to $8 7 . 4 \%$ .
|
| 173 |
+
|
| 174 |
+
# 5 Conclusion
|
| 175 |
+
|
| 176 |
+
In this paper, we have presented a simple and data-efficient self-supervised learning method (VideoMAE) for video transformer pre-training. Our VideoMAE introduces two critical designs of extremely high masking ratio and tube masking strategy to make the video reconstruction task more challenging. This harder task would encourage VideoMAE to learn more representative features and relieve the information leakage issue. Empirical results demonstrate this simple algorithm works well for video datasets of different scales. In particular, we are able to learn effective VideoMAE only with thousands of video clips, which has significant practical value for scenarios with limited data available.
|
| 177 |
+
|
| 178 |
+
Future work VideoMAE could be further improved by using larger webly datasets, larger models (e.g., ViT-G) and larger spatial resolutions of input video (e.g., $3 8 \hat { 4 ^ { 2 } }$ ). VideoMAE only leverages the RGB video stream without using additional audio or text stream. We expect that audio and text from the video data can provide more information for self-supervised pre-training.
|
| 179 |
+
|
| 180 |
+
Broader impact Potential negative societal impacts of VideoMAE are mainly concerned with energy consumption. The pre-training phase may lead to a large amount of carbon emission. Though the pre-training is energy-consuming, we only need to pre-train the model once. Different downstream tasks can then share the same pre-trained model via additional fine-tuning. Our VideoMAE unleashes the great potential of vanilla vision transformer for video analysis, which could increase the risk of video understanding model or its outputs being used incorrectly, such as for unauthorized surveillance.
|
| 181 |
+
|
| 182 |
+
Acknowledgements and disclosure of funding Thanks to Ziteng Gao, Lei Chen and Chongjian Ge for their help. This work is supported by National Natural Science Foundation of China (No. 62076119, No. 61921006), the Fundamental Research Funds for the Central Universities (No. 020214380091), Tencent AI Lab Rhino-Bird Focused Research Program (No. JR202125), and Collaborative Innovation Center of Novel Software Technology and Industrialization.
|
| 183 |
+
|
| 184 |
+
References
|
| 185 |
+
[1] Jean-Baptiste Alayrac, Adria Recasens, Rosalia Schneider, Relja Arandjelovic, Jason Ramapuram, Jeffrey De Fauw, Lucas Smaira, Sander Dieleman, and Andrew Zisserman. Self-supervised multimodal versatile networks. In Advances in Neural Information Processing Systems, 2020.
|
| 186 |
+
[2] Humam Alwassel, Dhruv Mahajan, Bruno Korbar, Lorenzo Torresani, Bernard Ghanem, and Du Tran. Self-supervised learning by cross-modal audio-video clustering. In Advances in Neural Information Processing Systems, 2020.
|
| 187 |
+
[3] Anurag Arnab, Mostafa Dehghani, Georg Heigold, Chen Sun, Mario Luciˇ c, and Cordelia Schmid. Vivit: A ´ video vision transformer. In IEEE/CVF International Conference on Computer Vision, 2021.
|
| 188 |
+
[4] Hangbo Bao, Li Dong, Songhao Piao, and Furu Wei. BEit: BERT pre-training of image transformers. In International Conference on Learning Representations, 2022.
|
| 189 |
+
[5] Sagie Benaim, Ariel Ephrat, Oran Lang, Inbar Mosseri, William T. Freeman, Michael Rubinstein, Michal Irani, and Tali Dekel. Speednet: Learning the speediness in videos. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020.
|
| 190 |
+
[6] Gedas Bertasius, Heng Wang, and Lorenzo Torresani. Is space-time attention all you need for video understanding? In International Conference on Machine Learning, 2021.
|
| 191 |
+
[7] 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 Advances in Neural Information Processing Systems, 2020.
|
| 192 |
+
[8] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European Conference on Computer Vision, 2020.
|
| 193 |
+
[9] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In IEEE/CVF International Conference on Computer Vision, 2021.
|
| 194 |
+
[10] João Carreira and Andrew Zisserman. Quo vadis, action recognition? A new model and the kinetics dataset. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2017.
|
| 195 |
+
[11] Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In International Conference on Machine Learning, 2020.
|
| 196 |
+
[12] Peihao Chen, Deng Huang, Dongliang He, Xiang Long, Runhao Zeng, Shilei Wen, Mingkui Tan, and Chuang Gan. Rspnet: Relative speed perception for unsupervised video representation learning. In Proceedings of the AAAI Conference on Artificial Intelligence, 2021.
|
| 197 |
+
[13] Xin Chen, Bin Yan, Jiawen Zhu, Dong Wang, Xiaoyun Yang, and Huchuan Lu. Transformer tracking. In CVPR, 2021.
|
| 198 |
+
[14] Xinlei Chen, Saining Xie, and Kaiming He. An empirical study of training self-supervised vision transformers. In IEEE/CVF International Conference on Computer Vision, 2021.
|
| 199 |
+
[15] Ekin D Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V Le. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, 2020.
|
| 200 |
+
[16] Yutao Cui, Cheng Jiang, Limin Wang, and Gangshan Wu. Mixformer: End-to-end tracking with iterative mixed attention. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022.
|
| 201 |
+
[17] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In North American Chapter of the Association for Computational Linguistics, 2019.
|
| 202 |
+
[18] Ali Diba, Vivek Sharma, Reza Safdari, Dariush Lotfi, Saquib Sarfraz, Rainer Stiefelhagen, and Luc Van Gool. Vi2clr: Video and image for visual contrastive learning of representation. In IEEE/CVF International Conference on Computer Vision, 2021.
|
| 203 |
+
[19] Xiaoyi Dong, Jianmin Bao, Ting Zhang, Dongdong Chen, Weiming Zhang, Lu Yuan, Dong Chen, Fang Wen, and Nenghai Yu. Peco: Perceptual codebook for bert pre-training of vision transformers. arXiv preprint arXiv:2111.12710, 2021.
|
| 204 |
+
[20] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021.
|
| 205 |
+
[21] Haoqi Fan, Bo Xiong, Karttikeya Mangalam, Yanghao Li, Zhicheng Yan, Jitendra Malik, and Christoph Feichtenhofer. Multiscale vision transformers. In IEEE/CVF International Conference on Computer Vision, 2021.
|
| 206 |
+
[22] Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. In IEEE/CVF International Conference on Computer Vision, 2019.
|
| 207 |
+
[23] Christoph Feichtenhofer, Haoqi Fan, Bo Xiong, Ross Girshick, and Kaiming He. A large-scale study on unsupervised spatiotemporal representation learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021.
|
| 208 |
+
[24] Chongjian Ge, Youwei Liang, Yibing Song, Jianbo Jiao, Jue Wang, and Ping Luo. Revitalizing cnn attentions via transformers in self-supervised visual representation learning. In Advances in Neural Information Processing Systems, 2021.
|
| 209 |
+
[25] Raghav Goyal, Samira Ebrahimi Kahou, Vincent Michalski, Joanna Materzynska, Susanne Westphal, Heuna Kim, Valentin Haenel, Ingo Fründ, Peter Yianilos, Moritz Mueller-Freitag, Florian Hoppe, Christian Thurau, Ingo Bax, and Roland Memisevic. The "something something" video database for learning and evaluating visual common sense. In IEEE/CVF International Conference on Computer Vision, 2017.
|
| 210 |
+
[26] Chunhui Gu, Chen Sun, David A Ross, Carl Vondrick, Caroline Pantofaru, Yeqing Li, Sudheendra Vijayanarasimhan, George Toderici, Susanna Ricco, Rahul Sukthankar, et al. Ava: A video dataset of spatio-temporally localized atomic visual actions. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018.
|
| 211 |
+
[27] Sheng Guo, Zihua Xiong, Yujie Zhong, Limin Wang, Xiaobo Guo, Bing Han, and Weilin Huang. Crossarchitecture self-supervised video representation learning. In CVPR, 2022.
|
| 212 |
+
[28] Tengda Han, Weidi Xie, and Andrew Zisserman. Memory-augmented dense predictive coding for video representation learning. In European Conference on Computer Vision, 2020.
|
| 213 |
+
[29] Tengda Han, Weidi Xie, and Andrew Zisserman. Self-supervised co-training for video representation learning. In Advances in Neural Information Processing Systems, 2020.
|
| 214 |
+
[30] Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollár, and Ross Girshick. Masked autoencoders are scalable vision learners. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022.
|
| 215 |
+
[31] Elad Hoffer, Tal Ben-Nun, Itay Hubara, Niv Giladi, Torsten Hoefler, and Daniel Soudry. Augment your batch: Improving generalization through instance repetition. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020.
|
| 216 |
+
[32] Kai Hu, Jie Shao, Yuan Liu, Bhiksha Raj, Marios Savvides, and Zhiqiang Shen. Contrast and order representations for video self-supervised learning. In IEEE/CVF International Conference on Computer Vision, 2021.
|
| 217 |
+
[33] Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, Mustafa Suleyman, and Andrew Zisserman. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950, 2017.
|
| 218 |
+
[34] Hildegard Kuehne, Hueihan Jhuang, Estíbaliz Garrote, Tomaso Poggio, and Thomas Serre. Hmdb: a large video database for human motion recognition. In IEEE/CVF International Conference on Computer Vision, 2011.
|
| 219 |
+
[35] Hsin-Ying Lee, Jia-Bin Huang, Maneesh Singh, and Ming-Hsuan Yang. Unsupervised representation learning by sorting sequence. In IEEE/CVF International Conference on Computer Vision, 2017.
|
| 220 |
+
[36] Tianhao Li and Limin Wang. Learning spatiotemporal features via video and text pair discrimination. CoRR, abs/2001.05691, 2020.
|
| 221 |
+
[37] 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 IEEE/CVF International Conference on Computer Vision, 2021.
|
| 222 |
+
[38] Ze Liu, Jia Ning, Yue Cao, Yixuan Wei, Zheng Zhang, Stephen Lin, and Han Hu. Video swin transformer. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022.
|
| 223 |
+
[39] Zhaoyang Liu, Donghao Luo, Yabiao Wang, Limin Wang, Ying Tai, Chengjie Wang, Jilin Li, Feiyue Huang, and Tong Lu. TEINet: Towards an efficient architecture for video recognition. In Proceedings of the AAAI Conference on Artificial Intelligence, 2020.
|
| 224 |
+
[40] Zhaoyang Liu, Limin Wang, Wayne Wu, Chen Qian, and Tong Lu. Tam: Temporal adaptive module for video recognition. In IEEE/CVF International Conference on Computer Vision, 2021.
|
| 225 |
+
[41] Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016.
|
| 226 |
+
[42] Antoine Miech, Jean-Baptiste Alayrac, Lucas Smaira, Ivan Laptev, Josef Sivic, and Andrew Zisserman. End-to-end learning of visual representations from uncurated instructional videos. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020.
|
| 227 |
+
[43] Antoine Miech, Jean-Baptiste Alayrac, Lucas Smaira, Ivan Laptev, Josef Sivic, and Andrew Zisserman. End-to-End Learning of Visual Representations from Uncurated Instructional Videos. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020.
|
| 228 |
+
[44] Ishan Misra, C Lawrence Zitnick, and Martial Hebert. Shuffle and learn: unsupervised learning using temporal order verification. In European Conference on Computer Vision, 2016.
|
| 229 |
+
[45] Tian Pan, Yibing Song, Tianyu Yang, Wenhao Jiang, and Wei Liu. Videomoco: Contrastive video representation learning with temporally adversarial examples. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021.
|
| 230 |
+
[46] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, 2019.
|
| 231 |
+
[47] Deepak Pathak, Philipp Krähenbühl, Jeff Donahue, Trevor Darrell, and Alexei A. Efros. Context encoders: Feature learning by inpainting. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2016.
|
| 232 |
+
[48] Viorica Patraucean, Ankur Handa, and Roberto Cipolla. Spatio-temporal video autoencoder with differentiable memory. arXiv preprint arXiv:1511.06309, 2015.
|
| 233 |
+
[49] Mandela Patrick, Yuki M. Asano, Polina Kuznetsova, Ruth Fong, João F. Henriques, Geoffrey Zweig, and Andrea Vedaldi. Multi-modal self-supervision from generalized data transformations. In IEEE/CVF International Conference on Computer Vision, 2021.
|
| 234 |
+
[50] Mandela Patrick, Dylan Campbell, Yuki M. Asano, Ishan Misra Florian Metze, Christoph Feichtenhofer, Andrea Vedaldi, and Joo F. Henriques. Keeping your eye on the ball: Trajectory attention in video transformers. In Advances in Neural Information Processing Systems, 2021.
|
| 235 |
+
[51] AJ Piergiovanni, Anelia Angelova, and Michael S Ryoo. Evolving losses for unsupervised video representation learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020.
|
| 236 |
+
[52] Rui Qian, Tianjian Meng, Boqing Gong, Ming-Hsuan Yang, Huisheng Wang, Serge Belongie, and Yin Cui. Spatiotemporal contrastive video representation learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021.
|
| 237 |
+
[53] Rui Qian, Tianjian Meng, Boqing Gong, Ming-Hsuan Yang, Huisheng Wang, Serge J. Belongie, and Yin Cui. Spatiotemporal contrastive video representation learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021.
|
| 238 |
+
[54] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. OpenAI blog, 2018.
|
| 239 |
+
[55] Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 2019.
|
| 240 |
+
[56] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In International Conference on Machine Learning, 2021.
|
| 241 |
+
[57] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 2015.
|
| 242 |
+
[58] Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. Advances in Neural Information Processing Systems, 2014.
|
| 243 |
+
[59] Ankit Singh, Omprakash Chakraborty, Ashutosh Varshney, Rameswar Panda, Rogerio Feris, Kate Saenko, and Abir Das. Semi-supervised action recognition with temporal contrastive learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021.
|
| 244 |
+
[60] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012.
|
| 245 |
+
[61] Nitish Srivastava, Elman Mansimov, and Ruslan Salakhutdinov. Unsupervised learning of video representations using lstms. International Conference on Machine Learning, 2015.
|
| 246 |
+
[62] Jonathan C. Stroud, David A. Ross, Chen Sun, Jia Deng, Rahul Sukthankar, and Cordelia Schmid. Learning video representations from textual web supervision. CoRR, abs/2007.14937, 2020.
|
| 247 |
+
[63] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2016.
|
| 248 |
+
[64] Hao Tan, Jie Lei, Thomas Wolf, and Mohit Bansal. Vimpac: Video pre-training via masked token prediction and contrastive learning. arXiv preprint arXiv:2106.11250, 2021.
|
| 249 |
+
[65] Jiajun Tang, Jin Xia, Xinzhi Mu, Bo Pang, and Cewu Lu. Asynchronous interaction aggregation for action detection. In European Conference on Computer Vision, 2020.
|
| 250 |
+
[66] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. In International Conference on Machine Learning, 2021.
|
| 251 |
+
[67] Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2015.
|
| 252 |
+
[68] Du Tran, Heng Wang, Matt Feiszli, and Lorenzo Torresani. Video classification with channel-separated convolutional networks. In IEEE/CVF International Conference on Computer Vision, 2019.
|
| 253 |
+
[69] Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018.
|
| 254 |
+
[70] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, 2017.
|
| 255 |
+
[71] Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In International Conference on Machine Learning, 2008.
|
| 256 |
+
[72] Pascal Vincent, Hugo Larochelle, Isabelle Lajoie, Yoshua Bengio, and Pierre-Antoine Manzagol. Stacked denoising autoencoders: Learning useful representations in a deep network with a local denoising criterion. Journal of Machine Learning Research, 2010.
|
| 257 |
+
[73] Jiangliu Wang, Jianbo Jiao, and Yun-Hui Liu. Self-supervised video representation learning by pace prediction. In European Conference on Computer Vision, 2020.
|
| 258 |
+
[74] Limin Wang, Zhan Tong, Bin Ji, and Gangshan Wu. TDN: Temporal difference networks for efficient action recognition. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021.
|
| 259 |
+
[75] Limin Wang, Yuanjun Xiong, Zhe Wang, Yu Qiao, Dahua Lin, Xiaoou Tang, and Luc Van Gool. Temporal segment networks for action recognition in videos. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019.
|
| 260 |
+
[76] Rui Wang, Dongdong Chen, Zuxuan Wu, Yinpeng Chen, Xiyang Dai, Mengchen Liu, Yu-Gang Jiang, Luowei Zhou, and Lu Yuan. Bevt: Bert pretraining of video transformers. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022.
|
| 261 |
+
[77] Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018.
|
| 262 |
+
[78] Xiaolong Wang and Abhinav Gupta. Unsupervised learning of visual representations using videos. In IEEE/CVF International Conference on Computer Vision, 2015.
|
| 263 |
+
[79] Chen Wei, Haoqi Fan, Saining Xie, Chao-Yuan Wu, Alan Yuille, and Christoph Feichtenhofer. Masked feature prediction for self-supervised visual pre-training. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022.
|
| 264 |
+
[80] Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M Alvarez, and Ping Luo. Segformer: Simple and efficient design for semantic segmentation with transformers. In Advances in Neural Information Processing Systems, 2021.
|
| 265 |
+
[81] Zhenda Xie, Zheng Zhang, Yue Cao, Yutong Lin, Jianmin Bao, Zhuliang Yao, Qi Dai, and Han Hu. Simmim: A simple framework for masked image modeling. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022.
|
| 266 |
+
[82] Dejing Xu, Jun Xiao, Zhou Zhao, Jian Shao, Di Xie, and Yueting Zhuang. Self-supervised spatiotemporal learning via video clip order prediction. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2019.
|
| 267 |
+
[83] Wilson Yan, Yunzhi Zhang, Pieter Abbeel, and Aravind Srinivas. Videogpt: Video generation using VQ-VAE and transformers. arXiv preprint arXiv:2104.10157, 2021.
|
| 268 |
+
[84] Ceyuan Yang, Yinghao Xu, Bo Dai, and Bolei Zhou. Video representation learning with visual tempo consistency. arXiv preprint arXiv:2006.15489, 2020.
|
| 269 |
+
[85] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In IEEE/CVF International Conference on Computer Vision, 2019.
|
| 270 |
+
[86] Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017.
|
| 271 |
+
[87] Zhang Zhang and Dacheng Tao. Slow feature analysis for human action recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2012.
|
| 272 |
+
[88] Daquan Zhou, Bingyi Kang, Xiaojie Jin, Linjie Yang, Xiaochen Lian, Qibin Hou, and Jiashi Feng. Deepvit: Towards deeper vision transformer. arXiv preprint arXiv:2103.11886, 2021.
|
| 273 |
+
[89] Jinghao Zhou, Chen Wei, Huiyu Wang, Wei Shen, Cihang Xie, Alan Yuille, and Tao Kong. iBOT: Image bert pre-training with online tokenizer. International Conference on Learning Representations, 2022.
|
| 274 |
+
|
| 275 |
+
# Checklist
|
| 276 |
+
|
| 277 |
+
1. For all authors...
|
| 278 |
+
|
| 279 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 280 |
+
(b) Did you describe the limitations of your work? [Yes] Shown in Section 5.
|
| 281 |
+
(c) Did you discuss any potential negative societal impacts of your work? [Yes] Shown in Section 5.
|
| 282 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 283 |
+
|
| 284 |
+
2. If you are including theoretical results...
|
| 285 |
+
|
| 286 |
+
(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]
|
| 287 |
+
|
| 288 |
+
3. If you ran experiments...
|
| 289 |
+
|
| 290 |
+
(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] Shown in Section 4.1 and Appendix $\ S \ B$ .
|
| 291 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] Shown in Appendix $\ S \ O $ .
|
| 292 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] Because of the computation costs, we did not run the experiments multiple times.
|
| 293 |
+
(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] Please see Table 3 and Appendix $\ S \mathrm { ~ B ~ }$ .
|
| 294 |
+
|
| 295 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 296 |
+
|
| 297 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes]
|
| 298 |
+
(b) Did you mention the license of the assets? [Yes] Shown in Appendix $\ S ~ ^ { \intercal }$ .
|
| 299 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [No]
|
| 300 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] We used publicly available datasets whose licenses allow research usage.
|
| 301 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] To the best of our knowledge, the data we used contains no personally identifiable information or offensive content.
|
| 302 |
+
|
| 303 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 304 |
+
|
| 305 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 306 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 307 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/dev/AhccnBXSne/AhccnBXSne_content_list.json
ADDED
|
@@ -0,0 +1,1171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Training ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
178,
|
| 8 |
+
122,
|
| 9 |
+
820,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Zhan Tong 1,2∗ Yibing Song 2 Jue Wang 2 Limin Wang 1,3† 1State Key Laboratory for Novel Software Technology, Nanjing University 2Tencent AI Lab 3Shanghai AI Lab tongzhan@smail.nju.edu.cn {yibingsong.cv, arphid}@gmail.com lmwang@nju.edu.cn ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
186,
|
| 19 |
+
224,
|
| 20 |
+
812,
|
| 21 |
+
289
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
324,
|
| 32 |
+
535,
|
| 33 |
+
340
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Pre-training video transformers on extra large-scale datasets is generally required to achieve premier performance on relatively small datasets. In this paper, we show that video masked autoencoders (VideoMAE) are data-efficient learners for self-supervised video pre-training (SSVP). We are inspired by the recent ImageMAE [30] and propose customized video tube masking with an extremely high ratio. This simple design makes video reconstruction a more challenging and meaningful self-supervision task, thus encouraging extracting more effective video representations during the pre-training process. We obtain three important findings with VideoMAE: (1) An extremely high proportion of masking ratio (i.e., $9 0 \\%$ to $9 5 \\%$ ) still yields favorable performance for VideoMAE. The temporally redundant video content enables higher masking ratio than that of images. (2) VideoMAE achieves impressive results on very small datasets (i.e., around $3 \\mathrm { k } { - } 4 \\mathrm { k }$ videos) without using any extra data. This is partially ascribed to the challenging task of video reconstruction to enforce high-level structure learning. (3) VideoMAE shows that data quality is more important than data quantity for SSVP. Domain shift between pre-training and target datasets is an important factor. Notably, our VideoMAE with the vanilla ViT backbone can achieve $8 7 . 4 \\%$ on Kinects-400, $7 5 . 4 \\%$ on SomethingSomething V2, $9 1 . 3 \\%$ on UCF101, and $6 2 . 6 \\%$ on HMDB51, without using any extra data. Code is available at https://github.com/MCG-NJU/VideoMAE. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
232,
|
| 42 |
+
354,
|
| 43 |
+
766,
|
| 44 |
+
617
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
174,
|
| 54 |
+
643,
|
| 55 |
+
312,
|
| 56 |
+
661
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Transformer [70] has brought significant progress in natural language processing [17, 7, 54]. The vision transformer [20] also improves a series of computer vision tasks including image classification [66, 88], object detection [8, 37], semantic segmentation [80], object tracking [13, 16], and video recognition [6, 3]. The multi-head self-attention upon linearly projected image/video tokens is capable of modeling global dependency among visual content either spatially or temporally. The inductive bias is effectively reduced via this flexible attention mechanism. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
675,
|
| 66 |
+
825,
|
| 67 |
+
758
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Training effective vision transformers (ViTs) typically necessitates large-scale supervised datasets. Initially, the pre-trained ViTs achieve favorable performance by using hundreds of millions of labeled images [20]. For video transformers [3, 6], they are usually derived from image-based transformers and heavily depend on the pre-trained models from large-scale image data (e.g., ImageNet [57]). Previous trials [3, 6] on training video transformers from scratch yield unsatisfied results (except for MViT [21] with a strong inductive bias). Therefore, the learned video transformers are naturally biased by image-based models, and it still remains a challenge that how to effectively and efficiently train a vanilla vision transformer on the video dataset itself without using any pre-trained model or extra image data. Moreover, the existing video datasets are relatively small compared with image datasets, which further increases the difficulty of training video transformers from scratch. Meanwhile, self-supervised learning has shown remarkable performance by using large-scale image datasets [14, 9]. The learned representations have outperformed the ones via supervised learning when being transferred to downstream tasks. It is expected that this self-supervised learning paradigm can provide a promising solution to address the challenge of training video transformers. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
765,
|
| 77 |
+
825,
|
| 78 |
+
876
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/7b105b3d14f137e30020c4f998b46547045fcb84c9d865cb040b66ae6e581a13.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: VideoMAE performs the task of masking random cubes and reconstructing the missing ones with an asymmetric encoder-decoder architecture. Due to high redundancy and temporal correlation in videos, we present the customized design of tube masking with an extremely high ratio $90 \\%$ to $9 5 \\%$ ). This simple design enables us to create a more challenging and meaningful self-supervised task to make the learned representations capture more useful spatiotemporal structures. "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
186,
|
| 91 |
+
80,
|
| 92 |
+
812,
|
| 93 |
+
202
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 1
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
286,
|
| 103 |
+
825,
|
| 104 |
+
369
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "Following the success of masked autoencoding in NLP [17] and images [30, 4], we present a new selfsupervised video pre-training (SSVP) method, termed as Video Masked Autoencoder (VideoMAE). Our VideoMAE inherits the simple pipeline of masking random cubes and reconstructing the missing ones. However, the extra time dimension of videos makes them different from images in this masked modeling. First, video frames are often densely captured, and their semantics varies slowly in time [87]. This temporal redundancy would increase the risk of recovering missing pixels from the spatiotemporal neighborhood with little high-level understanding. Furthermore, video could be viewed as the temporal evolution of static appearance, and there exists a correspondence between frames. This temporal correlation could lead to information leakage (i.e., masked spatiotemporal content re-occurrence) during reconstruction unless a specific masking strategy is considered. In this sense, for each masked cube, it is easy to find a corresponding and unmasked copy in adjacent frames. This property would make the learned models identify some “shortcut” features that are hard to generalize to new scenarios. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
376,
|
| 114 |
+
825,
|
| 115 |
+
555
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "To make video masked modeling more effective, in this paper, we present a customized design of tube masking with an extremely high ratio in our VideoMAE. First, due to temporal redundancy, we use an extremely high masking ratio to drop the cubes from the downsampled clips. This simple strategy not only effectively increases the pre-training performance but also greatly reduces the computational cost due to the asymmetric encoder-decoder architecture. Second, to consider temporal correlation, we devise a simple yet effective tube masking strategy, which turns out to be helpful in relieving the risk of information leakage for cubes with no or negligible motion during reconstruction. With this simple yet effective design in our VideoMAE, we are able to successfully train vanilla ViT backbones on the relatively small-scale video datasets such as Something-Something [25], UCF101 [60], and HMDB51 [34], which significantly outperform the previous state of the art under the setting without extra data. In summary, the main contribution of this paper is threefold: ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
173,
|
| 124 |
+
563,
|
| 125 |
+
825,
|
| 126 |
+
714
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "• We present a simple but effective video masked autoencoder that unleashes the potential of vanilla vision transformer for video recognition. To the best of our knowledge, this is the first masked video pre-training framework of simply using plain ViT backbones. To relieve the information leakage issue in masked video modeling, we present the tube masking with an extremely high ratio, which brings the performance improvement to the VideoMAE. • Aligned with the results in NLP and Images on masked modeling, our VideoMAE demonstrates that this simple masking and reconstruction strategy provides a good solution to self-supervised video pre-training. The models pre-trained with our VideoMAE significantly outperform those trained from scratch or pre-trained with contrastive learning methods. • We obtain extra important findings on masked modeling that might be ignored in previous research in NLP and Images. (1) We demonstrate that VideoMAE is a data-efficient learner that could be successfully trained with only $3 . 5 \\mathrm { k }$ videos. (2) Data quality is more important than quantity for SSVP when a domain shift exists between the source and target dataset. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
217,
|
| 135 |
+
719,
|
| 136 |
+
826,
|
| 137 |
+
911
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "2 Related Work ",
|
| 144 |
+
"text_level": 1,
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
88,
|
| 148 |
+
321,
|
| 149 |
+
106
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 2
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Video representation learning. Learning good video representations has been heavily investigated in the literature. The supervised learning methods [58, 75, 69, 10, 6] usually depend on the image backbones. The video encoder backbones are first pre-trained with image data in a supervised form. Then, these backbones are fine-tuned on the video dataset for classifying human actions. Meanwhile, some methods [67, 22, 21] directly train video backbones from videos in a supervised manner. Besides supervised learning, semi-supervised video representation learning has also been studied [59]. The representations of labeled training samples are utilized to generate supervision signals for unlabeled ones. Supervised or semi-supervised representation learning mainly uses a top-down training paradigm, which is not effective in exploring the inherent video data structure itself. Meanwhile, some multimodal contrastive learning methods [36, 42, 62] have been developed to learn video representation from noisy text supervision. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
121,
|
| 159 |
+
825,
|
| 160 |
+
273
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 2
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "For self-supervised learning, the prior knowledge of temporal information has been widely exploited to design pretext tasks [78, 44, 82, 5] for SSVP. Recently, contrastive learning [28, 45, 29, 52, 24, 27] is popular to learn better visual representation. However these methods heavily rely on strong data augmentation and large batch size [23]. Predicting the video clip with autoencoders in pixel space has been explored for representation learning by using CNN or LSTM backbones [48, 61], or conducting video generation with autoregressive GPT [83]. Instead, our VideoMAE aims to use the simple masked autoencoder with recent ViT backbones to perform data-efficient SSVP. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
173,
|
| 169 |
+
279,
|
| 170 |
+
825,
|
| 171 |
+
377
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 2
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Masked visual modeling. Masked visual modeling has been proposed to learn effective visual representations based on the simple pipeline of masking and reconstruction. These works mainly focus on the image domain. The early work [72] treated the masking as a noise type in denoised autoencoders [71] or inpainted missing regions with context [47] by using convolutions. iGPT [11] followed the success of GPT [7, 55] in NLP and operated a sequence of pixels for prediction. The original ViT [20] investigated the masked token prediction for self-supervised pre-training. More recently, the success of vision transformer has led to investigation of Transformer-based architectures for masked visual modeling [4, 19, 30, 79, 81, 89]. BEiT [4], BEVT [76] and VIMPAC [64] followed BERT [17] and proposed to learn visual representations from images and videos by predicting the discrete tokens [56]. MAE [30] introduced an asymmetric encoder-decoder architecture for masked image modeling. MaskFeat [79] proposed to reconstruct the HOG features of masked tokens to perform self-supervised pre-training in videos. VideoMAE is inspired by the ImageMAE and introduces specific design in implementation for SSVP. In particular, compared with previous masked video modeling [30, 76, 64], we present a simpler yet more effective video masked autoencoder by directly reconstructing the pixels. Our VideoMAE is the first masked video pre-training framework of simply using plain ViT backbones. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
383,
|
| 181 |
+
825,
|
| 182 |
+
603
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "3 Proposed Method ",
|
| 189 |
+
"text_level": 1,
|
| 190 |
+
"bbox": [
|
| 191 |
+
176,
|
| 192 |
+
625,
|
| 193 |
+
352,
|
| 194 |
+
642
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "In this section, we first revisit ImageMAE [30]. Then we analyze the characteristics of video data. \nFinally, we show how we explore MAE in the video data by presenting our VideoMAE. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
656,
|
| 204 |
+
825,
|
| 205 |
+
685
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "3.1 Revisiting Image Masked Autoencoders ",
|
| 212 |
+
"text_level": 1,
|
| 213 |
+
"bbox": [
|
| 214 |
+
176,
|
| 215 |
+
702,
|
| 216 |
+
488,
|
| 217 |
+
717
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "ImageMAE [30] performs the masking and reconstruction task with an asymmetric encoder-decoder architecture. The input image $I \\in \\mathcal { R } ^ { \\mathbf { \\breve { 3 } } \\times H \\times W }$ is first divided into regular non-overlapping patches of size $1 6 \\times 1 6$ , and each patch is represented with token embedding. Then a subset of tokens are randomly masked with a high masking ratio $( 7 5 \\% )$ , and only the remaining ones are fed into the transformer encoder $\\Phi _ { \\mathrm { e n c } }$ . Finally, a shallow decoder $\\Phi _ { \\mathrm { d e c } }$ is placed on top of the visible tokens from the encoder and learnable mask tokens to reconstruct the image. The loss function is mean squared error (MSE) loss between the normalized masked tokens and reconstructed ones in the pixel space: ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
173,
|
| 226 |
+
728,
|
| 227 |
+
825,
|
| 228 |
+
825
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "equation",
|
| 234 |
+
"img_path": "images/6024c3fa071d56d1e41057c77900bf1277368825b3b8ba1c9e55f8bd35803215.jpg",
|
| 235 |
+
"text": "$$\n\\mathcal { L } = \\frac { 1 } { \\Omega } \\sum _ { p \\in \\Omega } | I ( p ) - \\hat { I } ( p ) | ^ { 2 } ,\n$$",
|
| 236 |
+
"text_format": "latex",
|
| 237 |
+
"bbox": [
|
| 238 |
+
408,
|
| 239 |
+
833,
|
| 240 |
+
589,
|
| 241 |
+
872
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "where $p$ is the token index, $\\Omega$ is the set of masked tokens, $I$ is the input image, and $\\hat { I }$ is the reconstructed one. ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
173,
|
| 250 |
+
882,
|
| 251 |
+
823,
|
| 252 |
+
911
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "image",
|
| 258 |
+
"img_path": "images/ae9479b1875af3b188fce7f930b56324b71788c64cb850c7133617d6ff4dbf9e.jpg",
|
| 259 |
+
"image_caption": [
|
| 260 |
+
"Figure 2: Slowness is a general prior in (a) video data [87]. This leads to two important characteristics in time: temporal redundancy and temporal correlation. Temporal redundancy makes it possible to recover pixels under an extremely high masking ratio. Temporal correlation leads to easily reconstruct the missing pixels by finding those corresponding patches in adjacent frames under plain (b) frame masking or (c) random masking. To avoid this simple task and encourage learning representative representation, we propose a (d) tube masking, where the masking map is the same for all frames. "
|
| 261 |
+
],
|
| 262 |
+
"image_footnote": [],
|
| 263 |
+
"bbox": [
|
| 264 |
+
187,
|
| 265 |
+
87,
|
| 266 |
+
808,
|
| 267 |
+
234
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 3
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "3.2 Characteristics of Video Data ",
|
| 274 |
+
"text_level": 1,
|
| 275 |
+
"bbox": [
|
| 276 |
+
176,
|
| 277 |
+
332,
|
| 278 |
+
418,
|
| 279 |
+
347
|
| 280 |
+
],
|
| 281 |
+
"page_idx": 3
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"type": "text",
|
| 285 |
+
"text": "Compared with static images, video data contain temporal relations. We show the motivation of our VideoMAE by analyzing video characteristics. ",
|
| 286 |
+
"bbox": [
|
| 287 |
+
176,
|
| 288 |
+
358,
|
| 289 |
+
821,
|
| 290 |
+
386
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 3
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "Temporal redundancy. There are frequently captured frames in a video. The semantics vary slowly in the temporal dimension [87]. We observe that consecutive frames are highly redundant, as shown in Figure 2. This property leads to two critical issues in masked video autoencoding. First, it would be less efficient to keep the original temporal frame rate for pre-training. This would draw us to focus more on static or slow motions in our masked modeling. Second, temporal redundancy greatly dilutes motion representations. This would make the task of reconstructing missing pixels not difficult under the normal masking ratio (e.g., $50 \\%$ to $7 5 \\%$ ). The encoder backbone is not effective in capturing motion representations. ",
|
| 297 |
+
"bbox": [
|
| 298 |
+
173,
|
| 299 |
+
392,
|
| 300 |
+
825,
|
| 301 |
+
503
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 3
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "Temporal correlation. Videos could be viewed as the temporal extension of static appearance, and therefore there exists an inherent correspondence between adjacent frames. This temporal correlation could increase the risk of information leakage in the masking and reconstruction pipeline. In this sense, as shown in Figure 2, we can reconstruct the masked patches by finding the spatiotemporal corresponding unmasked patches in the adjacent frames under plain random masking or frame masking. In this case, it might guide the VideoMAE to learn low-level temporal correspondence rather than high-level information such as spatiotemporal reasoning over the content. To alleviate this behavior, we need to propose a new masking strategy to make the reconstruction more challenging and encourage effective learning of spatiotemporal structure representations. ",
|
| 308 |
+
"bbox": [
|
| 309 |
+
174,
|
| 310 |
+
508,
|
| 311 |
+
825,
|
| 312 |
+
633
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 3
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "3.3 VideoMAE ",
|
| 319 |
+
"text_level": 1,
|
| 320 |
+
"bbox": [
|
| 321 |
+
174,
|
| 322 |
+
650,
|
| 323 |
+
290,
|
| 324 |
+
665
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 3
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "To relieve the above issues in video masked modeling, we make the customized design in our VideoMAE, and the overall pipeline is shown in Figure 1. Our VideoMAE takes the downsampled frames as inputs and uses the cube embedding to obtain video tokens. Then, we propose a simple design of tube masking with high ratio to perform MAE pre-training with an asymmetric encoderdecoder architecture. Our backbone uses the vanilla ViT with joint space-time attention. ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
173,
|
| 333 |
+
676,
|
| 334 |
+
825,
|
| 335 |
+
746
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "Temporal downsampling. According to the above analysis on temporal redundancy over consecutive frames, we propose to use the strided temporal sampling strategy to perform more efficient video pre-training. Formally, one video clip consisting of $t$ consecutive frames is first randomly sampled from the original video $V$ . We then use temporal sampling to compress the clip to $T$ frames, each of which contains $H \\times W \\times 3$ pixels. In experiments, the stride $\\tau$ is set to 4 and 2 on Kinetics and Something-Something, respectively. ",
|
| 342 |
+
"bbox": [
|
| 343 |
+
174,
|
| 344 |
+
752,
|
| 345 |
+
825,
|
| 346 |
+
835
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "Cube embedding. We adopt the joint space-time cube embedding [3, 21, 38] in our VideoMAE, where we treat each cube of size $2 \\times 1 6 \\times 1 6$ as one token embedding. Thus, the cube embedding layer obtains T2 × H16 $\\begin{array} { r } { \\frac { T } { 2 } \\times \\frac { H } { 1 6 } \\times \\frac { W } { 1 6 } \\ 3 } \\end{array}$ D tokens and maps each token to the channel dimension $D$ . This design can decrease the spatial and temporal dimension of input, which helps to alleviate the spatiotemporal redundancy in videos. ",
|
| 353 |
+
"bbox": [
|
| 354 |
+
174,
|
| 355 |
+
842,
|
| 356 |
+
825,
|
| 357 |
+
911
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 3
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "Tube masking with extremely high ratios. First, temporal redundancy is a factor affecting VideoMAE design. We find that VideoMAE is in favor of extremely high masking ratios (e.g. $90 \\%$ to $9 5 \\%$ ) compared with the ImageMAE. Video information density is much lower than images, and we expect a high ratio to increase the reconstruction difficulty. This high masking ratio is helpful to mitigate the information leakage during masked modeling and make masked video reconstruction a meaningful self-supervised pre-training task. ",
|
| 364 |
+
"bbox": [
|
| 365 |
+
174,
|
| 366 |
+
92,
|
| 367 |
+
825,
|
| 368 |
+
174
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 4
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "Second, temporal correlation is another factor in our VideoMAE design. We find even under the extremely high masking ratio, we can still improve the masking efficiency by proposing the temporal tube masking mechanism. Temporal tube masking enforces a mask to expand over the whole temporal axis, namely, different frames sharing the same masking map. Mathematically, the tube mask mechanism can be expressed as $\\mathbb { I } [ p _ { x , y , \\cdot } \\in \\Omega ] \\sim \\mathrm { B e r n o u l l i } ( \\bar { \\rho _ { \\mathrm { m a s k } } } )$ and different time $t$ shares the same value. With this mechanism, temporal neighbors of masked cubes are always masked. So for some cubes with no or small motion (e.g., finger cube in 4th row of Figure 2 (d)), we can not find the spatiotemporal corresponding content in all frames. In this way, it would encourage our VideoMAE to reason over high-level semantics to recover these totally missing cubes. This simple strategy can alleviate the information leakage for cubes with no or negligible motion, and turns out to be effective in practice for masked video pre-training. ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
174,
|
| 377 |
+
181,
|
| 378 |
+
825,
|
| 379 |
+
333
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 4
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "Backbone: joint space-time attention. Due to the high proportion of masking ratio mentioned above, only a few tokens are left as the input for the encoder. To better capture high-level spatio-temporal information in the remaining tokens, we use the vanilla ViT backbone [20] and adopt the joint space-time attention [3, 38]. Thus, all pair tokens could interact with each other in the multi-head self-attention layer [70]. The specific architecture design for the encoder and decoder is shown in supplementary materials. The quadratic complexity of the joint space-time attention mechanism is a computational bottleneck, while our design of an extremely high masking ratio alleviates this issue by only putting the unmasked tokens (e.g., $10 \\%$ ) into the encoder during the pre-training phase. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
174,
|
| 388 |
+
339,
|
| 389 |
+
825,
|
| 390 |
+
450
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 4
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "4 Experiments ",
|
| 397 |
+
"text_level": 1,
|
| 398 |
+
"bbox": [
|
| 399 |
+
174,
|
| 400 |
+
470,
|
| 401 |
+
312,
|
| 402 |
+
488
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 4
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "text",
|
| 408 |
+
"text": "4.1 Datasets ",
|
| 409 |
+
"text_level": 1,
|
| 410 |
+
"bbox": [
|
| 411 |
+
174,
|
| 412 |
+
502,
|
| 413 |
+
271,
|
| 414 |
+
517
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 4
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "text",
|
| 420 |
+
"text": "We evaluate our VideoMAE on five common video datasets: Kinetics-400 [33], Something-Something V2 [25], UCF101 [60], HMDB51 [34], and AVA [26]. The Kinetics-400 contains around 240k training videos and 20k validation videos of 10s from 400 classes. The Something-Something V2 is another large-scale video dataset, having around 169k videos for training and 20k videos for validation. In contrast to Kinetics-400, this dataset contains 174 motion-centric action classes. These two large-scale video datasets focus on different visual cues for action recognition. UCF101 and HMDB51 are two relatively small video datasets, which contain around $9 . 5 \\mathrm { k } / 3 . 5 \\mathrm { k }$ train/val videos and $3 . 5 \\mathrm { k } / 1 . 5 \\mathrm { k }$ train/val videos, respectively. Compared with those large-scale video datasets, these two small datasets are more suitable for verifying the effectiveness of VideoMAE, as training large ViT models is more challenging on small datasets. Moreover, we also transfer the learned ViT models by VideoMAE to downstream action detection task. We work on AVA, a dataset for spatiotemporal localization of human actions with 211k training and $5 7 \\mathrm { k }$ validation video segments. In experiments of downstream tasks, we fine-tune the pre-trained VideoMAE models on the training set and report the results on the validation set. The implementation details are described in Appendix $\\ S \\mathrm { ~ B ~ }$ . ",
|
| 421 |
+
"bbox": [
|
| 422 |
+
174,
|
| 423 |
+
529,
|
| 424 |
+
825,
|
| 425 |
+
722
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 4
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "4.2 Ablation Studies ",
|
| 432 |
+
"text_level": 1,
|
| 433 |
+
"bbox": [
|
| 434 |
+
174,
|
| 435 |
+
739,
|
| 436 |
+
328,
|
| 437 |
+
755
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 4
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "In this subsection, we perform in-depth ablation studies on VideoMAE design with the default backbone of 16-frame ViT-B on Something-Something V2 (SSV2) and Kinetics-400 (K400). The specific architectures for the encoder and decoder are shown in Appendix $\\ S \\mathrm { ~ A ~ }$ . For fine-tuning, we perform TSN [75] uniform sampling on SSV2 and dense sampling [77, 22] on K400. All models share the same inference protocol, i.e., $2 \\mathrm { c l i p s } \\times 3$ crops on SSV2 and 5 clips $\\times 3$ crops on K400. ",
|
| 444 |
+
"bbox": [
|
| 445 |
+
174,
|
| 446 |
+
766,
|
| 447 |
+
825,
|
| 448 |
+
835
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 4
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "Decoder design. The lightweight decoder is one key component of our VideoMAE. We conduct experiments with the different depths in Table 1a. Unlike in ImageMAE, a deep decoder here is important for better performance, while a shallow decoder could reduce the GPU memory consumption. We take 4 blocks for the decoder by default. The decoder width is set to half channel of the encoder (e.g., 384-d for ViT-B), following the design in the image domain. ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
174,
|
| 457 |
+
842,
|
| 458 |
+
825,
|
| 459 |
+
911
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 4
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "table",
|
| 465 |
+
"img_path": "images/14fa6cd2dbaacd3908a6108878025874af3e54f87c80626f12fed2007009be63.jpg",
|
| 466 |
+
"table_caption": [],
|
| 467 |
+
"table_footnote": [],
|
| 468 |
+
"table_body": "<table><tr><td rowspan=1 colspan=3>blocks SSV2K400 GPU mem.</td></tr><tr><td rowspan=1 colspan=3>1 68.579.0 7.9G</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>69.279.2</td><td rowspan=1 colspan=1>10.2G</td></tr><tr><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>69.680.0</td><td rowspan=1 colspan=1>14.7G</td></tr><tr><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>69.379.7</td><td rowspan=1 colspan=1>23.7G</td></tr></table>",
|
| 469 |
+
"bbox": [
|
| 470 |
+
191,
|
| 471 |
+
87,
|
| 472 |
+
385,
|
| 473 |
+
155
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 5
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "(a) Decoder depth. 4 blocks of decoder achieve the best tradeoff. “GPU mem.” is GPU memory during pre-training, benchmarked in one GPU with a batch size of 16. ",
|
| 480 |
+
"bbox": [
|
| 481 |
+
183,
|
| 482 |
+
162,
|
| 483 |
+
377,
|
| 484 |
+
238
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 5
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "table",
|
| 490 |
+
"img_path": "images/85c2dcbea2782ef2307058aada2a4ed8c51e93e43a82cbc1da1d57fc699f708c.jpg",
|
| 491 |
+
"table_caption": [],
|
| 492 |
+
"table_footnote": [],
|
| 493 |
+
"table_body": "<table><tr><td>case</td><td>ratio</td><td>SSV2</td><td>K400</td></tr><tr><td>tube</td><td>75</td><td>68.0</td><td>79.8</td></tr><tr><td>tube</td><td>90</td><td>69.6</td><td>80.0</td></tr><tr><td>random</td><td>90</td><td>68.3</td><td>79.5</td></tr><tr><td>frame</td><td>87.5*</td><td>61.5</td><td>76.5</td></tr></table>",
|
| 494 |
+
"bbox": [
|
| 495 |
+
416,
|
| 496 |
+
88,
|
| 497 |
+
598,
|
| 498 |
+
155
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 5
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "(b) Mask sampling. We compare different masking strategies. Our proposed tube masking with an extremely high ratio works the best. $* ^ { * } 8 7 . 5 ^ { * }$ means masking 14/16 frames. ",
|
| 505 |
+
"bbox": [
|
| 506 |
+
410,
|
| 507 |
+
162,
|
| 508 |
+
598,
|
| 509 |
+
238
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 5
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "table",
|
| 515 |
+
"img_path": "images/5c7330a1ed4e4f0bc8ea37fd1a291664bd9b1c03825c7b29ee15d62eedb95f4e.jpg",
|
| 516 |
+
"table_caption": [],
|
| 517 |
+
"table_footnote": [],
|
| 518 |
+
"table_body": "<table><tr><td>input</td><td>target</td><td>SSV2</td><td>K400</td></tr><tr><td>T×T</td><td>center</td><td>63.0</td><td>79.3</td></tr><tr><td>TX</td><td>Tx</td><td>68.9</td><td>79.8</td></tr><tr><td>T×T</td><td>T×T</td><td>69.6</td><td>80.0</td></tr><tr><td>T×T</td><td>2T×</td><td>69.2</td><td>80.1</td></tr></table>",
|
| 519 |
+
"bbox": [
|
| 520 |
+
625,
|
| 521 |
+
88,
|
| 522 |
+
821,
|
| 523 |
+
157
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 5
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "(c) Reconstruction target. $T \\times$ $\\tau$ denotes “frames $\\times$ stride”. center denotes the center frame of the input clip. $T$ is set to 16 as default. $\\tau$ is set to 2 and 4 on SSV2 and K400, respectively. ",
|
| 530 |
+
"bbox": [
|
| 531 |
+
620,
|
| 532 |
+
162,
|
| 533 |
+
813,
|
| 534 |
+
238
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 5
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "table",
|
| 540 |
+
"img_path": "images/149ac2d9e48ce017975227c377ef18554d56f91405cd1bcbb07e0e5a493ba745.jpg",
|
| 541 |
+
"table_caption": [],
|
| 542 |
+
"table_footnote": [],
|
| 543 |
+
"table_body": "<table><tr><td rowspan=1 colspan=2>case SSV2K400fromscratch 32.668.8</td></tr><tr><td rowspan=1 colspan=2>fromscratch 32.668.8</td></tr><tr><td rowspan=1 colspan=2>ImageNet-21k sup.61.8 78.9</td></tr><tr><td></td><td rowspan=2 colspan=1>65.2 -</td></tr><tr><td rowspan=1 colspan=1>IN-21k+K400 sup.</td></tr><tr><td rowspan=1 colspan=1>VideoMAE</td><td rowspan=1 colspan=1>69.680.0</td></tr></table>",
|
| 544 |
+
"bbox": [
|
| 545 |
+
186,
|
| 546 |
+
248,
|
| 547 |
+
382,
|
| 548 |
+
318
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 5
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "(d) Pre-training strategy. Our VideoMAE works the best without using any extra data. “sup.” is supervised training. ",
|
| 555 |
+
"bbox": [
|
| 556 |
+
178,
|
| 557 |
+
324,
|
| 558 |
+
379,
|
| 559 |
+
375
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 5
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "table",
|
| 565 |
+
"img_path": "images/682ec0f5c75149b2460e93b6a8b2264bb091e1f95e14641910ff5037067c1814.jpg",
|
| 566 |
+
"table_caption": [],
|
| 567 |
+
"table_footnote": [],
|
| 568 |
+
"table_body": "<table><tr><td>dataset</td><td>method SSV2</td><td>K400</td></tr><tr><td>IN-1K</td><td>ImageMAE 64.8</td><td>78.7</td></tr><tr><td>K400</td><td>VideoMAE 68.5</td><td>80.0</td></tr><tr><td>SSV2</td><td>VideoMAE 69.6</td><td>79.6</td></tr></table>",
|
| 569 |
+
"bbox": [
|
| 570 |
+
400,
|
| 571 |
+
248,
|
| 572 |
+
598,
|
| 573 |
+
305
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 5
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "(e) Pre-training dataset. Our VideoMAE works the best when directly pre-training the models on the source datasets. ",
|
| 580 |
+
"bbox": [
|
| 581 |
+
393,
|
| 582 |
+
324,
|
| 583 |
+
594,
|
| 584 |
+
375
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 5
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "table",
|
| 590 |
+
"img_path": "images/d1c35021768dd55e7d5ddfb479c96c5e135765c2b2bfc591f90e50d37688e926.jpg",
|
| 591 |
+
"table_caption": [],
|
| 592 |
+
"table_footnote": [],
|
| 593 |
+
"table_body": "<table><tr><td>case</td><td>SSV2</td><td>K400</td></tr><tr><td>L1 loss</td><td>69.1</td><td>79.7</td></tr><tr><td>MSE loss</td><td>69.6</td><td>80.0</td></tr><tr><td>Smooth L1 loss</td><td>68.9</td><td>79.6</td></tr></table>",
|
| 594 |
+
"bbox": [
|
| 595 |
+
625,
|
| 596 |
+
250,
|
| 597 |
+
815,
|
| 598 |
+
304
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 5
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "(f) Loss function. MSE loss works the best for the masking and reconstruction task in VideoMAE. ",
|
| 605 |
+
"bbox": [
|
| 606 |
+
617,
|
| 607 |
+
324,
|
| 608 |
+
800,
|
| 609 |
+
375
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 5
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "text",
|
| 615 |
+
"text": "Table 1: Ablation experiments on Something-Something V2 and Kinetics-400. Our backbone is 16-frame vanilla ViT-B and all models are pre-trained with mask ratio $\\rho { = } 9 0 \\%$ for 800 epochs, and finetuned for evaluation. We perform TSN [75] uniform sampling on SSV2 and dense sampling [77, 22] on K400. All models share the same inference protocol, i.e., 2 clips $\\times 3$ crops on SSV2 and 5 clips $\\times 3$ crops on K400. The default choice for our model is colored in gray . ",
|
| 616 |
+
"bbox": [
|
| 617 |
+
174,
|
| 618 |
+
382,
|
| 619 |
+
825,
|
| 620 |
+
453
|
| 621 |
+
],
|
| 622 |
+
"page_idx": 5
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"type": "text",
|
| 626 |
+
"text": "Masking strategy. We compare different masking strategies in Table 1b. When increasing the masking ratio from $7 5 \\%$ to $90 \\%$ for tube masking, the performance on SSV2 boosts from $6 8 . 0 \\%$ to $6 9 . 6 \\%$ . Then, with an extremely high ratio, we find tube masking also achieves better performance than plain random masking and frame masking. We attribute these interesting observations to the redundancy and temporal correlation in videos. The conclusion on K400 is in accord with one on SSV2. One may note that the performance gap on K400 is lower than one on SSV2. We argue that the Kinetics videos are mostly stationary and scene-related. The effect of temporal modeling is not obvious. Overall, we argue that our default designs enforce the networks to capture more useful spatiotemporal structures and therefore make VideoMAE a more challenging task, which a good self-supervised learner hunger for. ",
|
| 627 |
+
"bbox": [
|
| 628 |
+
174,
|
| 629 |
+
463,
|
| 630 |
+
825,
|
| 631 |
+
602
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 5
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "text",
|
| 637 |
+
"text": "Reconstruction target. First, if we only employ the center frame as the target, the results would decrease greatly as shown in Table 1c. The sampling stride is also sensitive. The result of small sampling strid $\\begin{array} { c } { { \\vdots \\frac { \\tau } { 2 } } } \\\\ { { 2 T } } \\end{array}$ is lower than default sampling stride $\\tau$ $6 8 . 9 \\%$ vs. $6 9 . 6 \\%$ on SSV2). We also try to reconstruct frames from the downsampled $T$ frames, but it obtains slightly worse results on SSV2. For simplicity, we use the input downsampled clip as our default reconstruction target. ",
|
| 638 |
+
"bbox": [
|
| 639 |
+
174,
|
| 640 |
+
607,
|
| 641 |
+
825,
|
| 642 |
+
678
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 5
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "text",
|
| 648 |
+
"text": "Pre-training strategy. We compare different pre-training strategies in Table 1d. Similar to previous trials [3, 6], training video transformers from scratch yields unsatisfied results on video datasets. When pre-trained on the large-scale ImageNet-21K dataset, the video transformer obtains better accuracy from $3 2 . 6 \\%$ to $6 1 . 8 \\%$ on SSV2 and $6 8 . 8 \\%$ to $78 . 9 \\%$ on K400. Using the models pre-trained on both ImageNet-21K and Kinetics further increases accuracy to $6 5 . 2 \\%$ on SSV2. Our VideoMAE can effectively train a video transformer on the video dataset itself without using any extra data and achieve the best performance $6 9 . 6 \\%$ on SSV2 and $8 0 . 0 \\%$ on K400). ",
|
| 649 |
+
"bbox": [
|
| 650 |
+
173,
|
| 651 |
+
683,
|
| 652 |
+
825,
|
| 653 |
+
780
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 5
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "text",
|
| 659 |
+
"text": "Pre-training dataset. First, we pre-train the ViT-B on ImageNet-1K for 1600 epochs, following the recipes in [30]. Then we inflate the 2D patch embedding layer to our cube embedding layer following [10] and fine-tune the model on the target video datasets. The results surpass the model trained from scratch as shown in Table 1e. We also compare the ImageMAE pre-trained model with VideoMAE models pre-trained on video datasets. We see that our VideoMAE models can achieve better performance than ImageMAE. However, when we try to transfer the pre-trained VideoMAE models to the other video datasets (e.g. from Kinetics to Something-Something), the results are slightly worse than their counterpart, which is directly pre-trained on its own target video datasets. We argue that domain shift between pre-training and target datasets could be an important issue. ",
|
| 660 |
+
"bbox": [
|
| 661 |
+
174,
|
| 662 |
+
786,
|
| 663 |
+
825,
|
| 664 |
+
911
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 5
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "table",
|
| 670 |
+
"img_path": "images/12c65c199af023af0cea89a7d75f02e26d83901381f5cf1dfd55d88c919f1fdc.jpg",
|
| 671 |
+
"table_caption": [
|
| 672 |
+
"dataset training data from scratch MoCo v3 VideoMAE ",
|
| 673 |
+
"Table 2: Comparisons with the results of previous self-supvised pre-training methods on different datasets. We take 16-frame ViT-B as the default backbone. Notably, here MoCo v3 and VideoMAE all only use the unlabelled data in the training set of each dataset for pre-training and are all fine-tuned for evaluation. "
|
| 674 |
+
],
|
| 675 |
+
"table_footnote": [],
|
| 676 |
+
"table_body": "<table><tr><td>K400</td><td>240k</td><td>68.8</td><td>74.2</td><td>80.0</td></tr><tr><td>Sth-Sth V2</td><td>169k</td><td>32.6</td><td>54.2</td><td>69.6</td></tr><tr><td>UCF101</td><td>9.5k</td><td>51.4</td><td>81.7</td><td>91.3</td></tr><tr><td>HMDB51</td><td>3.5k</td><td>18.0</td><td>39.2</td><td>62.6</td></tr></table>",
|
| 677 |
+
"bbox": [
|
| 678 |
+
307,
|
| 679 |
+
101,
|
| 680 |
+
686,
|
| 681 |
+
154
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 6
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "table",
|
| 687 |
+
"img_path": "images/4984d80bb5931373d14a561e52f3030d30e0b8e911a65487ada3c3c03b1affcd.jpg",
|
| 688 |
+
"table_caption": [
|
| 689 |
+
"Table 3: Comparisons with the efficiency and effectiveness on Something-Something V2. We report the fine-tuning (ft) and linear probing (lin) accuracy $( \\% )$ . The wall-clock time of pre-training is benchmarked in 64 Tesla V100 GPUs with PyTorch. "
|
| 690 |
+
],
|
| 691 |
+
"table_footnote": [],
|
| 692 |
+
"table_body": "<table><tr><td>method</td><td>epoch</td><td>ft. acc.</td><td>lin. acc.</td><td>hours</td><td>speedup</td></tr><tr><td>MoCov3</td><td>300</td><td>54.2</td><td>33.7</td><td>61.7</td><td>-</td></tr><tr><td>VideoMAE</td><td>800</td><td>69.6</td><td>38.9</td><td>19.5</td><td>3.2×</td></tr></table>",
|
| 693 |
+
"bbox": [
|
| 694 |
+
299,
|
| 695 |
+
213,
|
| 696 |
+
692,
|
| 697 |
+
255
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 6
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "table",
|
| 703 |
+
"img_path": "images/8235a1ecef5b6377cd778faac984f55c895569c4b9d58e7a010b28300b9c0475.jpg",
|
| 704 |
+
"table_caption": [
|
| 705 |
+
"Table 4: Comparisons with the feature transferability on smaller datasets. We take 16-frame ViT-B as the default backbone. Notably, here MoCo v3 and VideoMAE are all pre-trained on Kinetics-400 with unlabelled data in the training set. Then the pre-trained model is fine-tuned on target datasets for evaluation. "
|
| 706 |
+
],
|
| 707 |
+
"table_footnote": [],
|
| 708 |
+
"table_body": "<table><tr><td>method</td><td>K400 → SSV2 K400 →UCF K400 →HMDB</td><td></td><td></td></tr><tr><td>MoCo v3</td><td>62.4</td><td>93.2</td><td>67.9</td></tr><tr><td>VideoMAE</td><td>68.5</td><td>96.1</td><td>73.3</td></tr></table>",
|
| 709 |
+
"bbox": [
|
| 710 |
+
307,
|
| 711 |
+
303,
|
| 712 |
+
689,
|
| 713 |
+
344
|
| 714 |
+
],
|
| 715 |
+
"page_idx": 6
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "text",
|
| 719 |
+
"text": "Loss function. Table 1f contains an ablation study of loss function. We find that the MSE loss could achieve a higher result compared with the L1 loss and smooth L1 loss. Therefore, we employ the MSE loss by default. ",
|
| 720 |
+
"bbox": [
|
| 721 |
+
174,
|
| 722 |
+
412,
|
| 723 |
+
825,
|
| 724 |
+
455
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 6
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "4.3 Main Results and Analysis ",
|
| 731 |
+
"text_level": 1,
|
| 732 |
+
"bbox": [
|
| 733 |
+
174,
|
| 734 |
+
472,
|
| 735 |
+
398,
|
| 736 |
+
487
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 6
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "VideoMAE: data-efficient learner. The self-supervised video pre-training (SSVP) has been extensively studied in previous works, but they mainly use the CNN-based backbones. Few works have investigated transformer-based backbone in SSVP. Therefore, to demonstrate the effectiveness of VideoMAE for transformer-based SSVP, we compare two methods implemented by ourselves: (1) training from scratch and (2) pre-training with contrastive learning (MoCo v3 [14]). For training from scratch, we carefully tune these hyper-parameters to successfully pre-train ViT-Base from the training set of the dataset. For pre-training with MoCo v3, we strictly follow the training practice in its image counterpart and carefully avoid the collapse issue. ",
|
| 743 |
+
"bbox": [
|
| 744 |
+
174,
|
| 745 |
+
497,
|
| 746 |
+
825,
|
| 747 |
+
608
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 6
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "The recognition accuracy is reported in Table 2. We see that our VideoMAE significantly outperforms other two training settings. For instance, on the largest dataset of Kinetics-400, our VideoMAE outperforms training from scratch by around $10 \\%$ and MoCo v3 pre-training by around $5 \\%$ . This superior performance demonstrates that masked autoencoder provides an effective pre-training mechanism for video transformers. We also see that the performance gap between our VideoMAE and the other two methods becomes larger as the training set becomes smaller. Notably, even with only $3 . 5 \\mathrm { k }$ training clips on HMDB51, our VideoMAE pre-training can still obtain a satisfying accuracy (around $6 1 \\%$ ). This new result demonstrates that VideoMAE is a more data-efficient learner for SSVP. This property is particularly important for scenarios with limited data available and different with contrastive learning methods. ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
174,
|
| 756 |
+
614,
|
| 757 |
+
825,
|
| 758 |
+
753
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 6
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "We compare the efficiency of VideoMAE pre-training and MoCo v3 pre-training in Table 3. The task of masked autoencoding with a high ratio is more challenging and thereby requires more training epochs (800 vs. 300). Thanks to the asymmetric encoder-decoder in our VideoMAE and extremely high masking ratio, our pre-training time is much shorter than MoCo v3 (19.5 vs. 61.7 hours). ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
174,
|
| 767 |
+
760,
|
| 768 |
+
825,
|
| 769 |
+
815
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 6
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "High masking ratio. In VideoMAE, one core design is the extremely high masking ratio. We perform an investigation of this design on the Kinetics-400 and Something-Something V2 datasets. The results are shown in Figure 3. We see that the best masking ratio is extremely high, and even $9 5 \\%$ can achieve good performance for both datasets. This result is difference from BERT [17] in NLP and MAE [30] in images. We analyze the temporal redundancy and correlation in videos makes it possible for our VideoMAE to learn plausible outputs with such a high masking ratio. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
174,
|
| 778 |
+
827,
|
| 779 |
+
825,
|
| 780 |
+
911
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 6
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "image",
|
| 786 |
+
"img_path": "images/b75fa7e78a9ca4d039292fdaded0567cbb3ebfb7d0b845e469cbbc73517cc6c0.jpg",
|
| 787 |
+
"image_caption": [],
|
| 788 |
+
"image_footnote": [],
|
| 789 |
+
"bbox": [
|
| 790 |
+
464,
|
| 791 |
+
94,
|
| 792 |
+
812,
|
| 793 |
+
270
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 7
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "image",
|
| 799 |
+
"img_path": "images/7fbbad8d22712458885f5f102f2b7248e1babda4d1f8cc723955cf62c79a6cde.jpg",
|
| 800 |
+
"image_caption": [
|
| 801 |
+
"Figure 3: The effect of masking ratio Figure 4: Data efficiency of VideoMAE representations. on (a) Something-Something V2 and (b) Our default backbone is 16-frame vanilla ViT-B. • denotes Kinetics-400. We take 16-frame vanilla that all models are trained for the same 132k iterations, ViT-B as default. The results show that and $0$ denotes that all models are trained for the same 800 an extremely high masking ratio $( 9 0 \\% )$ epochs. Note that it takes 132k iterations to pre-train the achieves the best efficiency and effective- model for 800 epochs on the full training set of Somethingness trade-off on both video datasets. Something V2. "
|
| 802 |
+
],
|
| 803 |
+
"image_footnote": [],
|
| 804 |
+
"bbox": [
|
| 805 |
+
189,
|
| 806 |
+
90,
|
| 807 |
+
426,
|
| 808 |
+
275
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 7
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "We also visualize the reconstructed examples in Appendix $\\ S { s e }$ . We see that even under an extremely high masking ratio, VideoMAE can produce satisfying reconstructed results. This implies VideoMAE is able to learn useful representations that capture the holistic spatiotemporal structure in videos. ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
176,
|
| 817 |
+
402,
|
| 818 |
+
823,
|
| 819 |
+
444
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 7
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "Transfer learning: quality vs. quantity. To further investigate the generalization ability of VideoMAE in representation learning, we transfer the learned VideoMAE from Kinetics-400 to Something-Something V2, UCF101, and HMDB51. The results are shown in Table 4, and we compare them with MoCo v3 pre-training. The models pre-trained by VideoMAE are better than those pre-trained by MoCo v3, demonstrating that our VideoMAE learns more transferable representations. ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
174,
|
| 828 |
+
467,
|
| 829 |
+
825,
|
| 830 |
+
536
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 7
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "Comparing Table 2 and Table 4, the transferred representation outperforms the original VideoMAE models trained from its own dataset on UCF101 and HMDB51. In contrast, the transferred representation is worse on Something-Something V2. To figure out whether this inconsistent result is caused by the large scale of Something-Something V2, we further perform a detailed investigation by decreasing the pre-training video numbers. In this study, we run two experiments: (1) pre-training with the same epochs and (2) pre-training with the same time budget. The result is shown in Figure 4. We see that more training iterations could contribute to better performance when we decrease the size of the pre-training set. Surprisingly, even with only $4 2 \\mathrm { k }$ pre-training videos, we can still obtain better accuracy than the Kinetics pre-trained models with 240k videos $6 8 . 7 \\%$ vs. $6 8 . 5 \\%$ ). This result implies that domain shift is another important factor, and data quality is more important than data quantity in SSVP when there exists a difference between pre-training and target datasets. It also demonstrates that VideoMAE is a data-efficient learner for SSVP. ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
174,
|
| 839 |
+
542,
|
| 840 |
+
825,
|
| 841 |
+
708
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 7
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "Transfer learning: downstream action detection. We also transfer the learned VideoMAE on Kinetics-400 to downstream action detection dataset AVA. Following the standard setting [26], we evaluate on top 60 common classes with mean Average Precision (mAP) as the metric under IoU threshold of 0.5. The results are shown in the Table 5. After self-supervised pre-training on Kinetics400, our VideoMAE with the vanilla ViT-B can achieve $2 6 . 7 \\mathrm { m A P }$ on AVA, which demonstrates the strong transferability of our VideoMAE. If the pre-trained ViT-B is additionally fine-tuned on Kinetics-400 with labels, the transfer learning performance can further increase about $5 \\mathrm { m A P }$ (from 26.7 to 31.8). More remarkably, when we scale up the pre-training configurations with larger video datasets (e.g. Kinetics-700) or more powerful backbones (e.g. ViT-Large and ViT-Huge), VideoMAE can finally obtain better performance. For example, our ViT-L VideoMAE pre-trained on Kinetics-700 achieves $3 9 . 3 \\mathrm { m A P }$ and ViT-H VideoMAE pre-trained on Kinetics-400 has $3 9 . 5 \\mathrm { m A P } . $ . These results demonstrate that the self-supervised pre-trained models transfer well not only on action classification task but on more complex action detection task. ",
|
| 848 |
+
"bbox": [
|
| 849 |
+
174,
|
| 850 |
+
731,
|
| 851 |
+
825,
|
| 852 |
+
911
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 7
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "table",
|
| 858 |
+
"img_path": "images/0dd820b66ca8a61b2d3147dc5da302a16fb9dfa2c7e7adc15b5b05b34b9f7aa1.jpg",
|
| 859 |
+
"table_caption": [
|
| 860 |
+
"Table 5: Comparison with the state-of-the-art methods on AVA v2.2. All models are pre-trained and fine-tuned at image size $2 2 4 ^ { 2 }$ . We report the mean Average Precision (mAP) on validation set. “Ex. labels $\\pmb { \\chi } ^ { , }$ means only unlabelled data is used during the pre-training phase and the pre-trained models are directly transferred to AVA. “Ex. labels $\\curvearrowleft$ means pre-trained models are additionally fine-tuned on the pre-training dataset with labels before transferred to AVA. $T \\times \\tau$ refers to frame number and corresponding sample rate. "
|
| 861 |
+
],
|
| 862 |
+
"table_footnote": [],
|
| 863 |
+
"table_body": "<table><tr><td>Method</td><td>Backbone</td><td>Pre-train Dataset Extra Labels|T×7</td><td></td><td></td><td>GFLOPs</td><td>Param</td><td>mAP</td></tr><tr><td>supervised [22]</td><td>SlowFast-R101</td><td>Kinetics-400</td><td>√</td><td>8×8</td><td>138</td><td>53</td><td>23.8</td></tr><tr><td>CVRL [53]</td><td>SlowOnly-R50</td><td>Kinetics-400</td><td>X</td><td>32×2</td><td>42</td><td>32</td><td>16.3</td></tr><tr><td>pBYOLp=3 [23]</td><td>SlowOnly-R50 SlowOnly-R50</td><td>Kinetics-400</td><td>X</td><td>8×8</td><td>42</td><td>32</td><td>23.4</td></tr><tr><td>pMoCop=3 [23]</td><td>MViT-L</td><td>Kinetics-400 Kinetics-400</td><td>X</td><td>8×8 40×3</td><td>42</td><td>32</td><td>20.3</td></tr><tr><td>MaskFeat↑312 [79] MaskFeat↑312 [79]</td><td>MViT-L</td><td>Kinetics-600</td><td>√ √</td><td>40×3</td><td>2828 2828</td><td>218 218</td><td>37.5</td></tr><tr><td>VideoMAE</td><td>ViT-S</td><td>Kinetics-400</td><td>X</td><td>16×4</td><td>57</td><td>22</td><td>38.8 22.5</td></tr><tr><td>VideoMAE</td><td>ViT-S</td><td>Kinetics-400</td><td>√</td><td>16×4</td><td>57</td><td>22</td><td>28.4</td></tr><tr><td>VideoMAE</td><td>ViT-B</td><td>Kinetics-400</td><td>X</td><td>16×4</td><td>180</td><td>87</td><td>26.7</td></tr><tr><td>VideoMAE</td><td>ViT-B</td><td>Kinetics-400</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>ViT-L</td><td>Kinetics-400</td><td>√</td><td>16×4</td><td>180</td><td>87</td><td>31.8</td></tr><tr><td>VideoMAE</td><td>ViT-L</td><td>Kinetics-400</td><td>X</td><td>16×4 16×4</td><td>597</td><td>305</td><td>34.3</td></tr><tr><td>VideoMAE VideoMAE</td><td>ViT-H</td><td>Kinetics-400</td><td>√</td><td>16×4</td><td>597</td><td>305</td><td>37.0</td></tr><tr><td>VideoMAE</td><td>ViT-H</td><td>Kinetics-400</td><td>X √</td><td>16×4</td><td>1192 1192</td><td>633 633</td><td>36.5</td></tr><tr><td>VideoMAE</td><td>ViT-L</td><td>Kinetics-700</td><td>X</td><td>16×4</td><td>597</td><td>305</td><td>39.5 36.1</td></tr><tr><td>VideoMAE</td><td>ViT-L</td><td>Kinetics-700</td><td>√</td><td>16×4</td><td>597</td><td>305</td><td>39.3</td></tr></table>",
|
| 864 |
+
"bbox": [
|
| 865 |
+
189,
|
| 866 |
+
88,
|
| 867 |
+
810,
|
| 868 |
+
316
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 8
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "table",
|
| 874 |
+
"img_path": "images/14299b0b16efb4597e3b38c0c1c492f49ae4e4738377e25b001909eedf380a15.jpg",
|
| 875 |
+
"table_caption": [],
|
| 876 |
+
"table_footnote": [
|
| 877 |
+
"Table 6: Comparison with the state-of-the-art methods on Something-Something V2. Our VideoMAE reconstructs normalized cube pixels and is pre-trained with a masking ratio of $90 \\%$ for 2400 epochs. “Ex. labels $\\pmb { \\chi } ^ { , }$ means only unlabelled data is used during the pre-training phase. “N/A” indicates the numbers are not available for us. "
|
| 878 |
+
],
|
| 879 |
+
"table_body": "<table><tr><td>Method</td><td>Backbone</td><td>Extra data</td><td>Ex. labels</td><td>Frames</td><td>GFLOPs</td><td>Param</td><td>Top-1</td><td>Top-5</td></tr><tr><td>TEINetEn [39]</td><td>ResNet50x2</td><td rowspan=\"3\">ImageNet-1K</td><td>√</td><td>8+16</td><td>99×10x3</td><td>50</td><td>66.5</td><td>N/A</td></tr><tr><td>TANetEn [40]</td><td>ResNet50×2</td><td>√</td><td>8+16</td><td>99×2×3</td><td>51</td><td>66.0</td><td>90.1</td></tr><tr><td>TDNEn [74]</td><td>ResNet101×2</td><td>√</td><td>8+16</td><td>198×1×3</td><td>88</td><td>69.6</td><td>92.2</td></tr><tr><td>SlowFast [22] MViTv1[21]</td><td>ResNet101 MViTv1-B</td><td rowspan=\"2\">Kinetics-400</td><td>√ √</td><td>8+32 64</td><td>106×1×3 455×1×3</td><td>53 37</td><td>63.1 67.7</td><td>87.6</td></tr><tr><td>TimeSformer [6]</td><td>ViT-B</td><td></td><td>8</td><td>196×1×3</td><td>121</td><td>59.5</td><td>90.9 N/A</td></tr><tr><td>TimeSformer [6]</td><td>ViT-L</td><td rowspan=\"2\">ImageNet-21K</td><td>V</td><td>64</td><td>5549×1×3</td><td>430</td><td>62.4</td><td>N/A</td></tr><tr><td>ViViT FE [3]</td><td>ViT-L</td><td>√</td><td>32</td><td>995×4×3</td><td>N/A</td><td>65.9</td><td>89.9</td></tr><tr><td>Motionformer [50]</td><td>ViT-B</td><td rowspan=\"4\">IN-21K+K400</td><td>√</td><td>16</td><td>370×1×3</td><td>109</td><td>66.5</td><td>90.1</td></tr><tr><td>Motionformer [50]</td><td>ViT-L</td><td>√</td><td>32</td><td>1185×1×3</td><td>382</td><td>68.1</td><td>91.2</td></tr><tr><td>Video Swin [38]</td><td>Swin-B</td><td>√</td><td>32</td><td>321×1×3</td><td>88</td><td>69.6</td><td>92.7</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>VIMPAC [64]</td><td>ViT-L</td><td>HowTo100M+DALLE IN-1K+K400+DALLE</td><td>X</td><td>10</td><td>N/A×10×3</td><td>307</td><td>68.1</td><td>N/A</td></tr><tr><td>BEVT[76]</td><td>Swin-B</td><td rowspan=\"2\">Kinetics-600</td><td>×</td><td>32</td><td>321×1×3</td><td>88</td><td>70.6</td><td>N/A</td></tr><tr><td>MaskFeat↑312 [79]</td><td>MViT-L</td><td>√</td><td>40</td><td>2828×1×3</td><td>218</td><td>75.0</td><td>95.0</td></tr><tr><td>VideoMAE</td><td>ViT-B</td><td>Kinetics-400 Kinetics-400</td><td>X ×</td><td>16</td><td>180×2×3</td><td>87</td><td>69.7</td><td>92.3</td></tr><tr><td>VideoMAE</td><td>ViT-L</td><td rowspan=\"4\"> no external data</td><td>X</td><td>16</td><td>597×2×3</td><td>305</td><td>74.0</td><td>94.6</td></tr><tr><td>VideoMAE</td><td>ViT-S</td><td>X</td><td>16</td><td>57×2×3</td><td>22</td><td>66.8</td><td>90.3</td></tr><tr><td>VideoMAE</td><td>ViT-B</td><td></td><td>16</td><td>180×2×3</td><td>87</td><td>70.8</td><td>92.4</td></tr><tr><td>VideoMAE VideoMAE</td><td>ViT-L ViT-L</td><td>X X</td><td>16 32</td><td>597×2×3 1436×1×3</td><td>305 305</td><td>74.3 75.4</td><td>94.6 95.2</td></tr></table>",
|
| 880 |
+
"bbox": [
|
| 881 |
+
173,
|
| 882 |
+
405,
|
| 883 |
+
831,
|
| 884 |
+
689
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 8
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "4.4 Comparison with the state of the art ",
|
| 891 |
+
"text_level": 1,
|
| 892 |
+
"bbox": [
|
| 893 |
+
176,
|
| 894 |
+
761,
|
| 895 |
+
464,
|
| 896 |
+
776
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 8
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "We compare with the previous state-of-the-art performance on the Kinetics-400 and SomethingSomething V2 datasets. The results are reported in Table 6 and Table 7. Our VideoMAE can easily scale up with more powerful backbones (e.g. ViT-Large and ViT-Huge) and more frames (e.g. 32). Our VideoMAE achieves the top-1 accuracy of $7 5 . 4 \\%$ on Something-Something V2 and $8 7 . 4 \\%$ on Kinetics-400 without using any extra data. We see that the existing state-of-the-art methods all depend on the external data for pre-training on the Something-Something V2 dataset. On the contrary, our VideoMAE without any external data significantly outperforms previous methods with the same input resolution by around $5 \\%$ . Our ViT-H VideoMAE also achieves very competitive performance on the Kinetics-400 dataset without using any extra data, which is even better than ViViT-H with on ",
|
| 903 |
+
"bbox": [
|
| 904 |
+
174,
|
| 905 |
+
786,
|
| 906 |
+
826,
|
| 907 |
+
911
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 8
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "table",
|
| 913 |
+
"img_path": "images/8868e63e034f5dd94a3272c1d281af3e9a4bf6f7796b757b7d8061a64777c856.jpg",
|
| 914 |
+
"table_caption": [
|
| 915 |
+
"Table 7: Comparison with the state-of-the-art methods on Kinetics-400. Our VideoMAE reconstructs normalized cube pixels. Here models are self-supervised pre-trained with a masking ratio of $90 \\%$ for 1600 epochs on Kinetics-400. VideoMAE↑320 is initialized from its $2 2 4 ^ { 2 }$ resolution counterpart and then fine-tuned for evaluation. “Ex. labels $\\pmb { \\chi } ^ { , }$ means only unlabelled data is used during the pre-training phase. “N/A” indicates the numbers are not available for us. "
|
| 916 |
+
],
|
| 917 |
+
"table_footnote": [],
|
| 918 |
+
"table_body": "<table><tr><td>Method</td><td>Backbone</td><td>Extra data</td><td>Ex.labels|1</td><td>Frames</td><td>GFLOPs</td><td>Param</td><td>Top-1</td><td>Top-5</td></tr><tr><td>NL I3D [77]</td><td>ResNet101</td><td rowspan=\"3\">ImageNet-1K</td><td>√</td><td>128</td><td>359×10×3</td><td>62</td><td>77.3</td><td>93.3</td></tr><tr><td>TANet [40]</td><td>ResNet152</td><td></td><td>16</td><td>242×4×3</td><td>59</td><td>79.3</td><td>94.1</td></tr><tr><td>TDNEn [74]</td><td>ResNet101</td><td></td><td>8+16</td><td>198×10×3</td><td>88</td><td>79.4</td><td>94.4</td></tr><tr><td>TimeSformer [6]</td><td>ViT-L</td><td rowspan=\"4\">ImageNet-21K</td><td></td><td>96</td><td>8353×1×3</td><td>430</td><td>80.7</td><td>94.7</td></tr><tr><td>ViViT FE [3]</td><td>ViT-L</td><td></td><td>128</td><td>3980×1×3</td><td>N/A</td><td>81.7</td><td>93.8</td></tr><tr><td>Motionformer [50]</td><td>ViT-L</td><td></td><td>32</td><td>1185×10×3</td><td>382</td><td>80.2</td><td>94.8</td></tr><tr><td>Video Swin [38]</td><td>Swin-L</td><td></td><td>32</td><td>604×4×3</td><td>197</td><td>83.1</td><td>95.9</td></tr><tr><td>ViViT FE [3]</td><td>ViT-L</td><td>JFT-300M</td><td>√</td><td>128</td><td>3980×1×3</td><td>N/A</td><td>83.5</td><td>94.3</td></tr><tr><td>ViViT[3]</td><td>ViT-H</td><td>JFT-300M</td><td></td><td>32</td><td>3981×4×3</td><td>N/A</td><td>84.9</td><td>95.8</td></tr><tr><td>VIMPAC [64]</td><td>ViT-L</td><td>HowTo100M+DALLE</td><td>X</td><td>10</td><td>N/A×10×3</td><td>307</td><td>77.4</td><td>N/A</td></tr><tr><td>BEVT[76]</td><td>Swin-B</td><td>IN-1K+DALLE</td><td>X</td><td>32</td><td>282×4×3</td><td>88</td><td>80.6</td><td>N/A</td></tr><tr><td>MaskFeat↑352 [79]</td><td>MViT-L</td><td>Kinetics-600</td><td>X</td><td>40</td><td>3790×4×3</td><td>218</td><td>87.0</td><td>97.4</td></tr><tr><td>ip-CSN [68]</td><td>ResNet152</td><td rowspan=\"4\"> no external data</td><td>X</td><td>32</td><td>109×10×3</td><td>33</td><td>77.8</td><td>92.8</td></tr><tr><td>SlowFast [22]</td><td>R101+NL</td><td>X</td><td>16+64</td><td>234×10×3</td><td>60</td><td>79.8</td><td>93.9</td></tr><tr><td>MViTv1[21]</td><td>MViTv1-B</td><td>X</td><td>32</td><td>170×5×1</td><td>37</td><td>80.2</td><td>94.4</td></tr><tr><td>MaskFeat [79]</td><td>MViT-L</td><td>×</td><td>16</td><td>377×10×1</td><td>218</td><td>84.3</td><td>96.3</td></tr><tr><td>VideoMAE</td><td>ViT-S</td><td rowspan=\"4\">no external data</td><td>X</td><td>16</td><td>57×5×3</td><td>22</td><td>79.0</td><td>93.8</td></tr><tr><td>VideoMAE</td><td>ViT-B</td><td>X</td><td>16</td><td>180×5×3</td><td>87</td><td>81.5</td><td>95.1</td></tr><tr><td>VideoMAE</td><td>ViT-L</td><td>×</td><td>16</td><td>597×5×3</td><td>305</td><td>85.2</td><td>96.8</td></tr><tr><td>VideoMAE</td><td>ViT-H</td><td>×</td><td>16</td><td>1192×5×3</td><td>633</td><td>86.6</td><td>97.1</td></tr><tr><td>VideoMAE↑320</td><td>ViT-L</td><td rowspan=\"2\">no external data</td><td>X</td><td>32</td><td>3958×4×3</td><td>305</td><td>86.1</td><td></td></tr><tr><td>VideoMAE↑320</td><td>ViT-H</td><td>×</td><td>32</td><td>7397×4×3</td><td>633</td><td>87.4</td><td>97.3 97.6</td></tr></table>",
|
| 919 |
+
"bbox": [
|
| 920 |
+
173,
|
| 921 |
+
87,
|
| 922 |
+
821,
|
| 923 |
+
397
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 9
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "JFT-300M pre-training $8 6 . 6 \\%$ v.s. $8 4 . 9 \\%$ ). When fine-tuned with larger spatial resolutions and input video frames, the performance of our ViT-H VideoMAE can further boost from $8 6 . 6 \\%$ to $8 7 . 4 \\%$ . ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
174,
|
| 932 |
+
487,
|
| 933 |
+
823,
|
| 934 |
+
515
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 9
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "5 Conclusion ",
|
| 941 |
+
"text_level": 1,
|
| 942 |
+
"bbox": [
|
| 943 |
+
174,
|
| 944 |
+
530,
|
| 945 |
+
299,
|
| 946 |
+
547
|
| 947 |
+
],
|
| 948 |
+
"page_idx": 9
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"type": "text",
|
| 952 |
+
"text": "In this paper, we have presented a simple and data-efficient self-supervised learning method (VideoMAE) for video transformer pre-training. Our VideoMAE introduces two critical designs of extremely high masking ratio and tube masking strategy to make the video reconstruction task more challenging. This harder task would encourage VideoMAE to learn more representative features and relieve the information leakage issue. Empirical results demonstrate this simple algorithm works well for video datasets of different scales. In particular, we are able to learn effective VideoMAE only with thousands of video clips, which has significant practical value for scenarios with limited data available. ",
|
| 953 |
+
"bbox": [
|
| 954 |
+
174,
|
| 955 |
+
561,
|
| 956 |
+
825,
|
| 957 |
+
659
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 9
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "text",
|
| 963 |
+
"text": "Future work VideoMAE could be further improved by using larger webly datasets, larger models (e.g., ViT-G) and larger spatial resolutions of input video (e.g., $3 8 \\hat { 4 ^ { 2 } }$ ). VideoMAE only leverages the RGB video stream without using additional audio or text stream. We expect that audio and text from the video data can provide more information for self-supervised pre-training. ",
|
| 964 |
+
"bbox": [
|
| 965 |
+
174,
|
| 966 |
+
671,
|
| 967 |
+
825,
|
| 968 |
+
727
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 9
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "Broader impact Potential negative societal impacts of VideoMAE are mainly concerned with energy consumption. The pre-training phase may lead to a large amount of carbon emission. Though the pre-training is energy-consuming, we only need to pre-train the model once. Different downstream tasks can then share the same pre-trained model via additional fine-tuning. Our VideoMAE unleashes the great potential of vanilla vision transformer for video analysis, which could increase the risk of video understanding model or its outputs being used incorrectly, such as for unauthorized surveillance. ",
|
| 975 |
+
"bbox": [
|
| 976 |
+
173,
|
| 977 |
+
739,
|
| 978 |
+
825,
|
| 979 |
+
823
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 9
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "Acknowledgements and disclosure of funding Thanks to Ziteng Gao, Lei Chen and Chongjian Ge for their help. This work is supported by National Natural Science Foundation of China (No. 62076119, No. 61921006), the Fundamental Research Funds for the Central Universities (No. 020214380091), Tencent AI Lab Rhino-Bird Focused Research Program (No. JR202125), and Collaborative Innovation Center of Novel Software Technology and Industrialization. ",
|
| 986 |
+
"bbox": [
|
| 987 |
+
174,
|
| 988 |
+
835,
|
| 989 |
+
825,
|
| 990 |
+
905
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 9
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "References \n[1] Jean-Baptiste Alayrac, Adria Recasens, Rosalia Schneider, Relja Arandjelovic, Jason Ramapuram, Jeffrey De Fauw, Lucas Smaira, Sander Dieleman, and Andrew Zisserman. Self-supervised multimodal versatile networks. In Advances in Neural Information Processing Systems, 2020. \n[2] Humam Alwassel, Dhruv Mahajan, Bruno Korbar, Lorenzo Torresani, Bernard Ghanem, and Du Tran. Self-supervised learning by cross-modal audio-video clustering. In Advances in Neural Information Processing Systems, 2020. \n[3] Anurag Arnab, Mostafa Dehghani, Georg Heigold, Chen Sun, Mario Luciˇ c, and Cordelia Schmid. Vivit: A ´ video vision transformer. In IEEE/CVF International Conference on Computer Vision, 2021. \n[4] Hangbo Bao, Li Dong, Songhao Piao, and Furu Wei. BEit: BERT pre-training of image transformers. In International Conference on Learning Representations, 2022. \n[5] Sagie Benaim, Ariel Ephrat, Oran Lang, Inbar Mosseri, William T. Freeman, Michael Rubinstein, Michal Irani, and Tali Dekel. Speednet: Learning the speediness in videos. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020. \n[6] Gedas Bertasius, Heng Wang, and Lorenzo Torresani. Is space-time attention all you need for video understanding? In International Conference on Machine Learning, 2021. \n[7] 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 Advances in Neural Information Processing Systems, 2020. \n[8] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European Conference on Computer Vision, 2020. \n[9] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In IEEE/CVF International Conference on Computer Vision, 2021. \n[10] João Carreira and Andrew Zisserman. Quo vadis, action recognition? A new model and the kinetics dataset. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2017. \n[11] Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In International Conference on Machine Learning, 2020. \n[12] Peihao Chen, Deng Huang, Dongliang He, Xiang Long, Runhao Zeng, Shilei Wen, Mingkui Tan, and Chuang Gan. Rspnet: Relative speed perception for unsupervised video representation learning. In Proceedings of the AAAI Conference on Artificial Intelligence, 2021. \n[13] Xin Chen, Bin Yan, Jiawen Zhu, Dong Wang, Xiaoyun Yang, and Huchuan Lu. Transformer tracking. In CVPR, 2021. \n[14] Xinlei Chen, Saining Xie, and Kaiming He. An empirical study of training self-supervised vision transformers. In IEEE/CVF International Conference on Computer Vision, 2021. \n[15] Ekin D Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V Le. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, 2020. \n[16] Yutao Cui, Cheng Jiang, Limin Wang, and Gangshan Wu. Mixformer: End-to-end tracking with iterative mixed attention. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. \n[17] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In North American Chapter of the Association for Computational Linguistics, 2019. \n[18] Ali Diba, Vivek Sharma, Reza Safdari, Dariush Lotfi, Saquib Sarfraz, Rainer Stiefelhagen, and Luc Van Gool. Vi2clr: Video and image for visual contrastive learning of representation. In IEEE/CVF International Conference on Computer Vision, 2021. \n[19] Xiaoyi Dong, Jianmin Bao, Ting Zhang, Dongdong Chen, Weiming Zhang, Lu Yuan, Dong Chen, Fang Wen, and Nenghai Yu. Peco: Perceptual codebook for bert pre-training of vision transformers. arXiv preprint arXiv:2111.12710, 2021. \n[20] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021. \n[21] Haoqi Fan, Bo Xiong, Karttikeya Mangalam, Yanghao Li, Zhicheng Yan, Jitendra Malik, and Christoph Feichtenhofer. Multiscale vision transformers. In IEEE/CVF International Conference on Computer Vision, 2021. \n[22] Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. In IEEE/CVF International Conference on Computer Vision, 2019. \n[23] Christoph Feichtenhofer, Haoqi Fan, Bo Xiong, Ross Girshick, and Kaiming He. A large-scale study on unsupervised spatiotemporal representation learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021. \n[24] Chongjian Ge, Youwei Liang, Yibing Song, Jianbo Jiao, Jue Wang, and Ping Luo. Revitalizing cnn attentions via transformers in self-supervised visual representation learning. In Advances in Neural Information Processing Systems, 2021. \n[25] Raghav Goyal, Samira Ebrahimi Kahou, Vincent Michalski, Joanna Materzynska, Susanne Westphal, Heuna Kim, Valentin Haenel, Ingo Fründ, Peter Yianilos, Moritz Mueller-Freitag, Florian Hoppe, Christian Thurau, Ingo Bax, and Roland Memisevic. The \"something something\" video database for learning and evaluating visual common sense. In IEEE/CVF International Conference on Computer Vision, 2017. \n[26] Chunhui Gu, Chen Sun, David A Ross, Carl Vondrick, Caroline Pantofaru, Yeqing Li, Sudheendra Vijayanarasimhan, George Toderici, Susanna Ricco, Rahul Sukthankar, et al. Ava: A video dataset of spatio-temporally localized atomic visual actions. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018. \n[27] Sheng Guo, Zihua Xiong, Yujie Zhong, Limin Wang, Xiaobo Guo, Bing Han, and Weilin Huang. Crossarchitecture self-supervised video representation learning. In CVPR, 2022. \n[28] Tengda Han, Weidi Xie, and Andrew Zisserman. Memory-augmented dense predictive coding for video representation learning. In European Conference on Computer Vision, 2020. \n[29] Tengda Han, Weidi Xie, and Andrew Zisserman. Self-supervised co-training for video representation learning. In Advances in Neural Information Processing Systems, 2020. \n[30] Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollár, and Ross Girshick. Masked autoencoders are scalable vision learners. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. \n[31] Elad Hoffer, Tal Ben-Nun, Itay Hubara, Niv Giladi, Torsten Hoefler, and Daniel Soudry. Augment your batch: Improving generalization through instance repetition. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020. \n[32] Kai Hu, Jie Shao, Yuan Liu, Bhiksha Raj, Marios Savvides, and Zhiqiang Shen. Contrast and order representations for video self-supervised learning. In IEEE/CVF International Conference on Computer Vision, 2021. \n[33] Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, Mustafa Suleyman, and Andrew Zisserman. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950, 2017. \n[34] Hildegard Kuehne, Hueihan Jhuang, Estíbaliz Garrote, Tomaso Poggio, and Thomas Serre. Hmdb: a large video database for human motion recognition. In IEEE/CVF International Conference on Computer Vision, 2011. \n[35] Hsin-Ying Lee, Jia-Bin Huang, Maneesh Singh, and Ming-Hsuan Yang. Unsupervised representation learning by sorting sequence. In IEEE/CVF International Conference on Computer Vision, 2017. \n[36] Tianhao Li and Limin Wang. Learning spatiotemporal features via video and text pair discrimination. CoRR, abs/2001.05691, 2020. \n[37] 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 IEEE/CVF International Conference on Computer Vision, 2021. \n[38] Ze Liu, Jia Ning, Yue Cao, Yixuan Wei, Zheng Zhang, Stephen Lin, and Han Hu. Video swin transformer. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. \n[39] Zhaoyang Liu, Donghao Luo, Yabiao Wang, Limin Wang, Ying Tai, Chengjie Wang, Jilin Li, Feiyue Huang, and Tong Lu. TEINet: Towards an efficient architecture for video recognition. In Proceedings of the AAAI Conference on Artificial Intelligence, 2020. \n[40] Zhaoyang Liu, Limin Wang, Wayne Wu, Chen Qian, and Tong Lu. Tam: Temporal adaptive module for video recognition. In IEEE/CVF International Conference on Computer Vision, 2021. \n[41] Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016. \n[42] Antoine Miech, Jean-Baptiste Alayrac, Lucas Smaira, Ivan Laptev, Josef Sivic, and Andrew Zisserman. End-to-end learning of visual representations from uncurated instructional videos. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020. \n[43] Antoine Miech, Jean-Baptiste Alayrac, Lucas Smaira, Ivan Laptev, Josef Sivic, and Andrew Zisserman. End-to-End Learning of Visual Representations from Uncurated Instructional Videos. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020. \n[44] Ishan Misra, C Lawrence Zitnick, and Martial Hebert. Shuffle and learn: unsupervised learning using temporal order verification. In European Conference on Computer Vision, 2016. \n[45] Tian Pan, Yibing Song, Tianyu Yang, Wenhao Jiang, and Wei Liu. Videomoco: Contrastive video representation learning with temporally adversarial examples. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021. \n[46] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, 2019. \n[47] Deepak Pathak, Philipp Krähenbühl, Jeff Donahue, Trevor Darrell, and Alexei A. Efros. Context encoders: Feature learning by inpainting. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2016. \n[48] Viorica Patraucean, Ankur Handa, and Roberto Cipolla. Spatio-temporal video autoencoder with differentiable memory. arXiv preprint arXiv:1511.06309, 2015. \n[49] Mandela Patrick, Yuki M. Asano, Polina Kuznetsova, Ruth Fong, João F. Henriques, Geoffrey Zweig, and Andrea Vedaldi. Multi-modal self-supervision from generalized data transformations. In IEEE/CVF International Conference on Computer Vision, 2021. \n[50] Mandela Patrick, Dylan Campbell, Yuki M. Asano, Ishan Misra Florian Metze, Christoph Feichtenhofer, Andrea Vedaldi, and Joo F. Henriques. Keeping your eye on the ball: Trajectory attention in video transformers. In Advances in Neural Information Processing Systems, 2021. \n[51] AJ Piergiovanni, Anelia Angelova, and Michael S Ryoo. Evolving losses for unsupervised video representation learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020. \n[52] Rui Qian, Tianjian Meng, Boqing Gong, Ming-Hsuan Yang, Huisheng Wang, Serge Belongie, and Yin Cui. Spatiotemporal contrastive video representation learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021. \n[53] Rui Qian, Tianjian Meng, Boqing Gong, Ming-Hsuan Yang, Huisheng Wang, Serge J. Belongie, and Yin Cui. Spatiotemporal contrastive video representation learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021. \n[54] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. OpenAI blog, 2018. \n[55] Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 2019. \n[56] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In International Conference on Machine Learning, 2021. \n[57] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 2015. \n[58] Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. Advances in Neural Information Processing Systems, 2014. \n[59] Ankit Singh, Omprakash Chakraborty, Ashutosh Varshney, Rameswar Panda, Rogerio Feris, Kate Saenko, and Abir Das. Semi-supervised action recognition with temporal contrastive learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021. \n[60] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012. \n[61] Nitish Srivastava, Elman Mansimov, and Ruslan Salakhutdinov. Unsupervised learning of video representations using lstms. International Conference on Machine Learning, 2015. \n[62] Jonathan C. Stroud, David A. Ross, Chen Sun, Jia Deng, Rahul Sukthankar, and Cordelia Schmid. Learning video representations from textual web supervision. CoRR, abs/2007.14937, 2020. \n[63] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2016. \n[64] Hao Tan, Jie Lei, Thomas Wolf, and Mohit Bansal. Vimpac: Video pre-training via masked token prediction and contrastive learning. arXiv preprint arXiv:2106.11250, 2021. \n[65] Jiajun Tang, Jin Xia, Xinzhi Mu, Bo Pang, and Cewu Lu. Asynchronous interaction aggregation for action detection. In European Conference on Computer Vision, 2020. \n[66] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. In International Conference on Machine Learning, 2021. \n[67] Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2015. \n[68] Du Tran, Heng Wang, Matt Feiszli, and Lorenzo Torresani. Video classification with channel-separated convolutional networks. In IEEE/CVF International Conference on Computer Vision, 2019. \n[69] Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018. \n[70] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, 2017. \n[71] Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In International Conference on Machine Learning, 2008. \n[72] Pascal Vincent, Hugo Larochelle, Isabelle Lajoie, Yoshua Bengio, and Pierre-Antoine Manzagol. Stacked denoising autoencoders: Learning useful representations in a deep network with a local denoising criterion. Journal of Machine Learning Research, 2010. \n[73] Jiangliu Wang, Jianbo Jiao, and Yun-Hui Liu. Self-supervised video representation learning by pace prediction. In European Conference on Computer Vision, 2020. \n[74] Limin Wang, Zhan Tong, Bin Ji, and Gangshan Wu. TDN: Temporal difference networks for efficient action recognition. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021. \n[75] Limin Wang, Yuanjun Xiong, Zhe Wang, Yu Qiao, Dahua Lin, Xiaoou Tang, and Luc Van Gool. Temporal segment networks for action recognition in videos. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019. \n[76] Rui Wang, Dongdong Chen, Zuxuan Wu, Yinpeng Chen, Xiyang Dai, Mengchen Liu, Yu-Gang Jiang, Luowei Zhou, and Lu Yuan. Bevt: Bert pretraining of video transformers. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. \n[77] Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018. \n[78] Xiaolong Wang and Abhinav Gupta. Unsupervised learning of visual representations using videos. In IEEE/CVF International Conference on Computer Vision, 2015. \n[79] Chen Wei, Haoqi Fan, Saining Xie, Chao-Yuan Wu, Alan Yuille, and Christoph Feichtenhofer. Masked feature prediction for self-supervised visual pre-training. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. \n[80] Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M Alvarez, and Ping Luo. Segformer: Simple and efficient design for semantic segmentation with transformers. In Advances in Neural Information Processing Systems, 2021. \n[81] Zhenda Xie, Zheng Zhang, Yue Cao, Yutong Lin, Jianmin Bao, Zhuliang Yao, Qi Dai, and Han Hu. Simmim: A simple framework for masked image modeling. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. \n[82] Dejing Xu, Jun Xiao, Zhou Zhao, Jian Shao, Di Xie, and Yueting Zhuang. Self-supervised spatiotemporal learning via video clip order prediction. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2019. \n[83] Wilson Yan, Yunzhi Zhang, Pieter Abbeel, and Aravind Srinivas. Videogpt: Video generation using VQ-VAE and transformers. arXiv preprint arXiv:2104.10157, 2021. \n[84] Ceyuan Yang, Yinghao Xu, Bo Dai, and Bolei Zhou. Video representation learning with visual tempo consistency. arXiv preprint arXiv:2006.15489, 2020. \n[85] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In IEEE/CVF International Conference on Computer Vision, 2019. \n[86] Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017. \n[87] Zhang Zhang and Dacheng Tao. Slow feature analysis for human action recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2012. \n[88] Daquan Zhou, Bingyi Kang, Xiaojie Jin, Linjie Yang, Xiaochen Lian, Qibin Hou, and Jiashi Feng. Deepvit: Towards deeper vision transformer. arXiv preprint arXiv:2103.11886, 2021. \n[89] Jinghao Zhou, Chen Wei, Huiyu Wang, Wei Shen, Cihang Xie, Alan Yuille, and Tao Kong. iBOT: Image bert pre-training with online tokenizer. International Conference on Learning Representations, 2022. ",
|
| 997 |
+
"bbox": [
|
| 998 |
+
171,
|
| 999 |
+
90,
|
| 1000 |
+
828,
|
| 1001 |
+
919
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 10
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"text": "",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
171,
|
| 1010 |
+
59,
|
| 1011 |
+
828,
|
| 1012 |
+
920
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 11
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
169,
|
| 1021 |
+
73,
|
| 1022 |
+
828,
|
| 1023 |
+
920
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 12
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
171,
|
| 1032 |
+
80,
|
| 1033 |
+
828,
|
| 1034 |
+
920
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 13
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
171,
|
| 1043 |
+
92,
|
| 1044 |
+
826,
|
| 1045 |
+
700
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 14
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Checklist ",
|
| 1052 |
+
"text_level": 1,
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
174,
|
| 1055 |
+
89,
|
| 1056 |
+
254,
|
| 1057 |
+
106
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 15
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "1. For all authors... ",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
214,
|
| 1066 |
+
116,
|
| 1067 |
+
339,
|
| 1068 |
+
131
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 15
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"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] Shown in Section 5. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] Shown in Section 5. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
238,
|
| 1077 |
+
135,
|
| 1078 |
+
825,
|
| 1079 |
+
239
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 15
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "2. If you are including theoretical results... ",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
214,
|
| 1088 |
+
243,
|
| 1089 |
+
493,
|
| 1090 |
+
258
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 15
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"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] ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
238,
|
| 1099 |
+
262,
|
| 1100 |
+
738,
|
| 1101 |
+
294
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 15
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "3. If you ran experiments... ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
212,
|
| 1110 |
+
299,
|
| 1111 |
+
393,
|
| 1112 |
+
313
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 15
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"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] Shown in Section 4.1 and Appendix $\\ S \\ B$ . \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] Shown in Appendix $\\ S \\ O $ . \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] Because of the computation costs, we did not run the experiments multiple times. \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] Please see Table 3 and Appendix $\\ S \\mathrm { ~ B ~ }$ . ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
238,
|
| 1121 |
+
316,
|
| 1122 |
+
825,
|
| 1123 |
+
476
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 15
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
214,
|
| 1132 |
+
481,
|
| 1133 |
+
825,
|
| 1134 |
+
496
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 15
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [Yes] Shown in Appendix $\\ S ~ ^ { \\intercal }$ . \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? [Yes] We used publicly available datasets whose licenses allow research usage. \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] To the best of our knowledge, the data we used contains no personally identifiable information or offensive content. ",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
238,
|
| 1143 |
+
500,
|
| 1144 |
+
823,
|
| 1145 |
+
635
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 15
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
214,
|
| 1154 |
+
638,
|
| 1155 |
+
705,
|
| 1156 |
+
654
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 15
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"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] ",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
238,
|
| 1165 |
+
657,
|
| 1166 |
+
825,
|
| 1167 |
+
747
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 15
|
| 1170 |
+
}
|
| 1171 |
+
]
|
parse/dev/AhccnBXSne/AhccnBXSne_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/EXnIyMVTL8s/EXnIyMVTL8s.md
ADDED
|
@@ -0,0 +1,719 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TOWARDS UNDERSTANDING AND MITIGATING DIMENSIONAL COLLAPSE IN HETEROGENEOUS FEDERATED LEARNING
|
| 2 |
+
|
| 3 |
+
Yujun $\mathbf { S h i } ^ { 1 \mathrm { ~ * ~ } }$ Jian Liang3 Wenqing Zhang2 Vincent Y. F. Tan1 Song Bai2 1National University of Singapore 2ByteDance Inc. 3Institute of Automation, CAS shi.yujun@u.nus.edu vtan@nus.edu.sg songbai.site@gmail.com
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Federated learning aims to train models collaboratively across different clients without sharing data for privacy considerations. However, one major challenge for this learning paradigm is the data heterogeneity problem, which refers to the discrepancies between the local data distributions among various clients. To tackle this problem, we first study how data heterogeneity affects the representations of the globally aggregated models. Interestingly, we find that heterogeneous data results in the global model suffering from severe dimensional collapse, in which representations tend to reside in a lower-dimensional space instead of the ambient space. Moreover, we observe a similar phenomenon on models locally trained on each client and deduce that the dimensional collapse on the global model is inherited from local models. In addition, we theoretically analyze the gradient flow dynamics to shed light on how data heterogeneity result in dimensional collapse for local models. To remedy this problem caused by the data heterogeneity, we propose FEDDECORR, a novel method that can effectively mitigate dimensional collapse in federated learning. Specifically, FEDDECORR applies a regularization term during local training that encourages different dimensions of representations to be uncorrelated. FEDDECORR, which is implementation-friendly and computationally-efficient, yields consistent improvements over baselines on standard benchmark datasets. Code: https://github.com/bytedance/FedDecorr.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
With the rapid development deep learning and the availability of large amounts of data, concerns regarding data privacy have been attracting increasingly more attention from industry and academia. To address this concern, McMahan et al. (2017) propose Federated Learning—a decentralized training paradigm enabling collaborative training across different clients without sharing data.
|
| 12 |
+
|
| 13 |
+
One major challenge in federated learning is the potential discrepancies in the distributions of local training data among clients, which is known as the data heterogeneity problem. In particular, this paper focuses on the heterogeneity of label distributions (see Fig. 1(a) for an example). Such discrepancies can result in drastic disagreements between the local optima of the clients and the desired global optimum, which may lead to severe performance degradation of the global model. Previous works attempting to tackle this challenge mainly focus on the model parameters, either during local training (Li et al., 2020; Karimireddy et al., 2020) or global aggregation (Wang et al., 2020b). However, these methods usually result in an excessive computation burden or high communication costs (Li et al., 2021a) because deep neural networks are typically heavily over-parameterized. In contrast, in this work, we focus on the representation space of the model and study the impact of data heterogeneity.
|
| 14 |
+
|
| 15 |
+
To commence, we study how heterogeneous data affects the global model in federated learning in Sec. 3.1. Specifically, we compare representations produced by global models trained under different degrees of data heterogeneity. Since the singular values of the covariance matrix provide a comprehensive characterization of the distribution of high-dimensional embeddings, we use it to study the representations output by each global model. Interestingly, we find that as the degree of data heterogeneity increases, more singular values tend to evolve towards zero. This observation suggests that stronger data heterogeneity causes the trained global model to suffer from more severe dimensional collapse, whereby representations are biased towards residing in a lower-dimensional space (or manifold). A graphical illustration of how heterogeneous training data affect output representations is shown in Fig. 1(b-c). Our observations suggest that dimensional collapse might be one of the key reasons why federated learning methods struggle under data heterogeneity. Essentially, dimensional collapse is a form of oversimplification in terms of the model, where the representation space is not being fully utilized to discriminate diverse data of different classes.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: (a) illustrates data heterogeneity in terms of number of samples per class. (b), (c), (d) show representations (normalized to the unit sphere) of global models trained under homogeneous data, heterogeneous data, and heterogeneous data with FEDDECORR, respectively. Only (c) suffers dimensional collapse. (b), (c), (d) are produced with ResNet20 on CIFAR10. Best viewed in color.
|
| 19 |
+
|
| 20 |
+
Given the observations made on the global model, we conjecture that the dimensional collapse of the global model is inherited from models locally trained on various clients. This is because the global model is a result of the aggregation of local models. To validate our conjecture, we further visualize the local models in terms of the singular values of representation covariance matrices in Sec. 3.2. Similar to the visualization on the global model, we observe dimensional collapse on representations produced by local models. With this observation, we establish the connection between dimensional collapse of the global model and local models. To further understand the dimensional collapse on local models, we analyze the gradient flow dynamics of local training in Sec. 3.3. Interestingly, we show theoretically that heterogeneous data drive the weight matrices of the local models to be biased to being low-rank, which further results in representation dimensional collapse.
|
| 21 |
+
|
| 22 |
+
Inspired by the observations that dimensional collapse of the global model stems from local models, we consider mitigating dimensional collapse during local training in Sec. 4. In particular, we propose a novel federated learning method termed FEDDECORR. FEDDECORR adds a regularization term during local training to encourage the Frobenius norm of the correlation matrix of representations to be small. We show theoretically and empirically that this proposed regularization term can effectively mitigate dimensional collapse (see Fig. 1(d) for example). Next, in Sec. 5, through extensive experiments on standard benchmark datasets including CIFAR10, CIFAR100, and TinyImageNet, we show that FEDDECORR consistently improves over baseline federated learning methods. In addition, we find that FEDDECORR yields more dramatic improvements in more challenging federated learning setups such as stronger heterogeneity or more number of clients. Lastly, FEDDECORR has extremely low computation overhead and can be built on top of any existing federated learning baseline methods, which makes it widely applicable.
|
| 23 |
+
|
| 24 |
+
Our contributions are summarized as follows. First, we discover through experiments that stronger data heterogeneity in federated learning leads to greater dimensional collapse for global and local models. Second, we develop a theoretical understanding of the dynamics behind our empirical discovery that connects data heterogeneity and dimensional collapse. Third, based on the motivation of mitigating dimensional collapse, we propose a novel method called FEDDECORR, which yields consistent improvements while being implementation-friendly and computationally-efficient.
|
| 25 |
+
|
| 26 |
+
# 2 RELATED WORKS
|
| 27 |
+
|
| 28 |
+
Federated Learning. McMahan et al. (2017) proposed FedAvg, which adopts a simple averaging scheme to aggregate local models into the global model. However, under data heterogeneity, FedAvg suffers from unstable and slow convergence, resulting in performance degradation. To tackle this challenge, previous works either improve local training (Li et al., 2021b; 2020; Karimireddy et al., 2020; Acar et al., 2021; Al-Shedivat et al., 2020; Wang et al., 2021) or global aggregation (Wang et al., 2020b; Hsu et al., 2019; Luo et al., 2021; Wang et al., 2020a; Lin et al., 2020; Reddi et al., 2020; Wang et al., 2020a). Most of these methods focus on the model parameter space, which may result in high computation or communication cost due to deep neural networks being overparameterized. Li et al. (2021b) focuses on model representations and uses a contrastive loss to maximize agreements between representations of local models and the global model. However, one drawback of Li et al. (2021b) is that it requires additional forward passes during training, which almost doubles the training cost. In this work, based on our study of how data heterogeneity affects model representations, we propose an effective yet highly efficient method to handle heterogeneous data. Another research trend is in personalized federated learning (Arivazhagan et al., 2019; Li et al., 2021c; Fallah et al., 2020; T Dinh et al., 2020; Hanzely et al., 2020; Huang et al., 2021; Zhang et al., 2020), which aims to train personalized local models for each client. In this work, however, we focus on the typical setting that aims to train one global model for all clients.
|
| 29 |
+
|
| 30 |
+
Dimensional Collapse. Dimensional collapse of representations has been studied in metric learning (Roth et al., 2020), self-supervised learning (Jing et al., 2021), and class incremental learning (Shi et al., 2022). In this work, we focus on federated learning and discover that stronger data heterogeneity causes a higher degree of dimensional collapse for locally trained models. To the best of our knowledge, this work is the first to discover and analyze dimensional collapse of representations in federated learning.
|
| 31 |
+
|
| 32 |
+
Gradient Flow Dynamics. Arora et al. (2018; 2019) introduce the gradient flow dynamics framework to analyze the dynamics of multi-layer linear neural networks under the $\ell _ { 2 }$ -loss and find deeper neural networks biasing towards low-rank solution during optimization. Following their works, Jing et al. (2021) finds two factors that cause dimensional collapse in self-supervised learning, namely strong data augmentation and implicit regularization from depth. Differently, we focus on federated learning with the cross-entropy loss. More importantly, our analysis focuses on dimensional collapse caused by data heterogeneity in federated learning instead of depth of neural networks.
|
| 33 |
+
|
| 34 |
+
Feature Decorrelation. Feature decorrelation had been used for different purposes, such as preventing mode collapse in self-supervised learning (Bardes et al., 2021; Zbontar et al., 2021; Hua et al., 2021), boosting generalization (Cogswell et al., 2015; Huang et al., 2018; Xiong et al., 2016), and improving class incremental learning (Shi et al., 2022). We instead apply feature decorrelation to counter the undesired dimensional collapse caused by data heterogeneity in federated learning.
|
| 35 |
+
|
| 36 |
+
# 3 DIMENSIONAL COLLAPSE CAUSED BY DATA HETEROGENEITY
|
| 37 |
+
|
| 38 |
+
In this section, we first empirically visualize and compare representations of global models trained under different degrees of data heterogeneity in Sec. 3.1. Next, to better understand the observations on global models, we analyze representations of local models in Sec. 3.2. Finally, to theoretically understand our observations, we analyze the gradient flow dynamics of local training in Sec. 3.3.
|
| 39 |
+
|
| 40 |
+
# 3.1 EMPIRICAL OBSERVATIONS ON THE GLOBAL MODEL
|
| 41 |
+
|
| 42 |
+
We first empirically demonstrate that stronger data heterogeneity causes more severe dimensional collapse on the global model. Specifically, we first separate the training samples of CIFAR100 into 10 splits, each corresponding to the local data of one client. To simulate data heterogeneity among clients as in previous works (Yurochkin et al., 2019; Wang et al., 2020a; Li et al., 2021b), we sample a probability vector $\mathbf { p } _ { c } = ( p _ { c , 1 } , p _ { c , 2 } , \hdots , p _ { c , K } ) \sim { \mathrm { D i r } } _ { K } ( \alpha )$ and allocate a $p _ { c , k }$ proportion of instances of class $c \in [ C ] = \{ 1 , 2 , \ldots , C \}$ to client $k \in [ K ]$ , where $\operatorname { D i r } _ { K } ( \alpha )$ is the Dirichlet distribution with $K$ categories and $\alpha$ is the concentration parameter. A smaller $\alpha$ implies stronger data heterogeneity $\alpha = \infty$ corresponds to the homogeneous setting). We let $\alpha \in \{ 0 . 0 1 , 0 . 0 5 , 0 . 2 5 , \infty \}$ .
|
| 43 |
+
|
| 44 |
+
For each of the settings generated by different $\alpha$ ’s, we apply FedAvg (McMahan et al., 2017) to train a MobileNetV2 (Sandler et al., 2018) with CIFAR100 (observations on other federated learning methods, model architectures, or datasets are similar and are provided in Appendix D). Next, for each of the four trained global models, we compute the covariance matrix $\begin{array} { r } { \mathbf { \tilde { \Sigma } } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } ( \mathbf { z } _ { i } - } \end{array}$ $\bar { \mathbf { z } } ) ( \mathbf { z } _ { i } - \bar { \mathbf { z } } ) ^ { \top }$ of the representations over the $N$ test data points in CIFAR100. Here $\mathbf { z } _ { i }$ is the $i$ -th test data point and $\begin{array} { r } { \bar { \bf z } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } { \bf z } _ { i } } \end{array}$ is their average.
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 2: Data heterogeneity causes dimensional collapse on (a) global models and (b) local models. We plot the singular values of the covariance matrix of representations in descending order. The $x$ -axis $( k )$ is the index of singular values and the $y$ -axis is the logarithm of the singular values.
|
| 48 |
+
|
| 49 |
+
Finally, we apply the singular value decomposition (SVD) on each of the covariance matrices and visualize the top 100 singular values in Fig. 2(a). If we define a small value $\tau$ as the threshold for a singular value to be significant (e.g., $\log \tau = - 2$ ), we observe that for the homogeneous setting, almost all the singular values are significant, i.e., they surpass $\tau$ . However, as $\alpha$ decreases, the number of singular values exceeding $\tau$ monotonically decreases. This implies that with stronger heterogeneity among local training data, the representation vectors produced by the trained global model tend to reside in a lower-dimensional space, corresponding to more severe dimensional collapse.
|
| 50 |
+
|
| 51 |
+
# 3.2 EMPIRICAL OBSERVATIONS ON LOCAL MODELS
|
| 52 |
+
|
| 53 |
+
Since the global model is obtained by aggregating locally trained models on each client, we conjecture that the dimensional collapse observed on the global model stems from the dimensional collapse of local models. To further validate our conjecture, we continue to study whether increasing data heterogeneity will also lead to more severe dimensional collapse on locally trained models.
|
| 54 |
+
|
| 55 |
+
Specifically, for different $\alpha$ ’s, we visualize the locally trained model of one client (visualizations on local models of other clients are similar and are provided in Appendix E). Following the same procedure as in Sec. 3.1, we plot the singular values of covariance matrices of representations produced by the local models. We observe from Fig. 2(b) that locally trained models demonstrate the same trend as the global models—namely, that the presence of stronger data heterogeneity causes more severe dimensional collapse. These experiments corroborate that the global model inherit the adverse dimensional collapse phenomenon from the local models.
|
| 56 |
+
|
| 57 |
+
# 3.3 A THEORETICAL EXPLANATION FOR DIMENSIONAL COLLAPSE
|
| 58 |
+
|
| 59 |
+
Based on the empirical observations in Sec. 3.1 and Sec. 3.2, we now develop a theoretical understanding to explain why heterogeneous training data causes dimensional collapse for the learned representations.
|
| 60 |
+
|
| 61 |
+
Since we have established that the dimensional collapse of global model stems from local models, we focus on studying local models in this section. Without loss of generality, we study local training of one arbitrary client. Specifically, we first analyze the gradient flow dynamics of the model weights during the local training. This analysis shows how heterogeneous local training data drives the model weights towards being low-rank, which leads to dimensional collapse for the representations.
|
| 62 |
+
|
| 63 |
+
# 3.3.1 SETUPS AND NOTATIONS
|
| 64 |
+
|
| 65 |
+
We denote the number of training samples as $N$ , the dimension of input data as $d _ { \mathrm { i n } }$ , and total number of classes as $C$ . The $i$ -th sample is denoted as $X _ { i } \in \mathbb { R } ^ { d _ { \mathrm { i n } } }$ , and its corresponding one-hot encoded label is $\mathbf { y } _ { i } \in \mathbb { R } ^ { C }$ . The collection of all $N$ training samples is denoted as $\bar { X } = [ \bar { X } _ { 1 } , X _ { 2 } \ldots , X _ { N } ] \in$ $\mathbb { R } ^ { d _ { \mathrm { i n } } \times N }$ , and the $N$ one-hot encoded training labels are denoted as $\mathbf { y } = [ \mathbf { y } _ { 1 } , \mathbf { y } _ { 2 } , \ldots , \mathbf { y } _ { N } ] \in \mathbb { R } ^ { C \times N }$ .
|
| 66 |
+
|
| 67 |
+
For simplicity in exposition, we follow Arora et al. (2018; 2019) and Jing et al. (2021) and analyze linear neural networks (without nonlinear activation layers). We consider an $( L + 1 )$ -layer (where $L \geq 1 \AA$ ) linear neural network trained using the cross entropy loss under gradient flow (i.e., gradient descent with an infinitesimally small learning rate). The weight matrix of the $i$ -th layer $( i \in [ L + 1 ] )$ ) at the optimization time step $t$ is denoted as $W _ { i } ( t )$ . The dynamics can be expressed as
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\dot { W } _ { i } ( t ) = - \frac { \partial } { \partial W _ { i } } \ell ( W _ { 1 } ( t ) , \ldots , W _ { L + 1 } ( t ) ) ,
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
where $\ell$ denotes the cross-entropy loss.
|
| 74 |
+
|
| 75 |
+
In addition, at the optimization time step $t$ and given the input data $X _ { i }$ , we denote $\mathbf { z } _ { i } ( t ) \in \mathbb { R } ^ { d }$ as the output representation vector $d$ being the dimension of the representations) and $\gamma _ { i } ( t ) \in \mathbb { R } ^ { C }$ as the output softmax probability vector. We have
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\gamma _ { i } ( t ) = \mathrm { s o f t m a x } ( W _ { L + 1 } ( t ) { \mathbf z } _ { i } ( t ) ) = \mathrm { s o f t m a x } ( W _ { L + 1 } ( t ) W _ { L } ( t ) \ldots W _ { 1 } ( t ) X _ { i } ) .
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
e define -dimens $\begin{array} { r } { \mu _ { c } = \frac { N _ { c } } { N } } \end{array}$ , where -hot vec $N _ { c }$ is number of d where only the a samples belonging to class -th entry is 1 (and the others $c$ . We denote re 0). In ad $\mathbf { e } _ { c }$ as theon, let $C$ $c$
|
| 82 |
+
$\begin{array} { r } { \bar { \gamma } _ { c } ( t ) = \frac { 1 } { N _ { c } } \sum _ { i = 1 } ^ { N } \gamma _ { i } ( t ) \mathbb { 1 } \{ \mathbf { y } _ { i } = \mathbf { e } _ { c } \} } \end{array}$ and $\begin{array} { r } { \bar { X } _ { c } = \frac { 1 } { N _ { c } } \sum _ { i = 1 } ^ { N } X _ { i } \mathbb { { l } } \{ \mathbf { y } _ { i } = \mathbf { e } _ { c } \} } \end{array}$ .
|
| 83 |
+
|
| 84 |
+
# 3.3.2 ANALYSIS ON GRADIENT FLOW DYNAMICS
|
| 85 |
+
|
| 86 |
+
Since our goal is to analyze model representations ${ \bf z } _ { i } ( t )$ , we focus on weight matrices that directly produce representations (i.e., the first $L$ layers). We denote the product of the weight matrices of the first $L$ layers as $\Pi ( t ) = W _ { L } ( t ) W _ { L - 1 } ( \dot { t } ) \dots W _ { 1 } ( t )$ and analyze the behavior of $\Pi ( t )$ under the gradient flow dynamics. In particular, we derive the following result for the singular values of $\Pi ( t )$ .
|
| 87 |
+
|
| 88 |
+
Theorem 1 (Informal). Assuming that the mild conditions as stated in Appendix $A . 3$ hold. Let $\sigma _ { k } ( t )$ for $k \in [ d ]$ be the $k$ -th largest singular value of $\Pi ( t )$ . Then,
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
\begin{array} { r } { \dot { \sigma } _ { k } ( t ) = N L \left( \sigma _ { k } ( t ) \right) ^ { 2 - \frac { 2 } { L } } \sqrt { ( \sigma _ { k } ( t ) ) ^ { \frac { 2 } { L } } + M } \left( \mathbf { u } _ { L + 1 , k } ( t ) \right) ^ { \top } G ( t ) \mathbf { v } _ { k } ( t ) , } \end{array}
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
where ${ \mathbf { u } } _ { L + 1 , k } ( t )$ is the $k$ -th left singular vector of $W _ { L + 1 } ( t )$ , $\mathbf { v } _ { k } ( t )$ is the $k$ -th right singular vector of $\Pi ( t )$ , $M$ is a constant, and $G ( t )$ is defined as
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
G ( t ) = \sum _ { c = 1 } ^ { C } \mu _ { c } ( \mathbf { e } _ { c } - \bar { \gamma } _ { c } ( t ) ) \bar { X } _ { c } ^ { \top } ,
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
where $\mu _ { c }$ $\iota _ { c } , \mathbf { e } _ { c } , \bar { \gamma } _ { c } ( t )$ , $\bar { X } _ { c }$ are defined after Eqn. (2).
|
| 101 |
+
|
| 102 |
+
The proof of the precise version of Theorem 1 is provided in Appendix A.
|
| 103 |
+
|
| 104 |
+
Based on Theorem 1, we are able to explain why greater data heterogeneity causes $\Pi ( t )$ to be biased to become lower-rank. Note that strong data heterogeneity causes local training data of one client being highly imbalanced in terms of the number of data samples per class (recall Fig. 1(a)). This implies that $\mu _ { c }$ , which is the proportion of the class $c$ data, will be close to 0 for some classes.
|
| 105 |
+
|
| 106 |
+
Next, based on the definition of $G ( t )$ in Eqn. (4), more $\mu _ { c }$ ’s being close to 0 leads to $G ( t )$ being biased towards a low-rank matrix. If this is so, the term $( \mathbf { \bar { u } } _ { L + 1 , k } ( \mathbf { \bar { \Psi } } _ { k } ( t ) ) ^ { \top } G ( t ) \mathbf { v } _ { k } ( t )$ in Eqn. (3) will only be significant (large in magnitude) for fewer values of $k$ . This is because ${ \bf u } _ { L + 1 , k } ( t )$ and $\mathbf { v } _ { k } ( t )$ are both singular vectors, which are orthogonal among different $k$ ’s. This further leads to $\dot { \sigma } _ { k } ( t )$ on the left-hand side of Eqn. (3), which is the evolving rate of $\sigma _ { k }$ , being small for most of the $k$ ’s throughout training. These observations imply that only relatively few singular values of $\Pi ( t )$ will increase significantly after training.
|
| 107 |
+
|
| 108 |
+
Furthermore, $\Pi ( t )$ being biased towards being low-rank will directly lead to dimensional collapse for the representations. To see this, we simply write the covariance matrix of the representations in terms of ${ \bar { \Pi } } ( t )$ as
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\Sigma ( t ) = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } ( { \bf z } _ { i } ( t ) - \bar { \bf z } ( t ) ) ( { \bf z } _ { i } ( t ) - \bar { \bf z } ( t ) ) ^ { \top } = \Pi ( t ) \biggl ( \frac { 1 } { N } \sum _ { i = 1 } ^ { N } ( X _ { i } - \bar { X } ) ( X _ { i } - \bar { X } ) ^ { \top } \biggr ) \Pi ( t ) ^ { \top } .
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
From Eqn. (5), we observe that if $\Pi ( t )$ evolves to being a lower-rank matrix, $\Sigma ( t )$ will also tend to be lower-rank, which corresponds to the stronger dimensional collapse observed in Fig. 2(b).
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
Figure 3: FEDDECORR effectively mitigates dimensional collapse for (a-b) local models and (c-d) global models. For each heterogeneity parameter $\alpha \in \{ 0 . 0 1 , 0 . { \overset { \cdot } { 0 } } 5 \}$ , we apply FEDDECORR and plot the singular values of the representation covariance matrix. The $x$ -axis $( k )$ is the index of singular values. With FEDDECORR, the tail singular values are prevented from dropping to 0 too rapidly.
|
| 118 |
+
|
| 119 |
+
# 4 MITIGATING DIMENSIONAL COLLAPSE WITH FEDDECORR
|
| 120 |
+
|
| 121 |
+
Motivated by the above observations and analyses on dimensional collapse caused by data heterogeneity in federated learning, we explore how to mitigate excessive dimensional collapse.
|
| 122 |
+
|
| 123 |
+
Since dimensional collapse on the global model is inherited from local models, we propose to alleviate the problem during local training. One natural way to achieve this is to add the following regularization term on the representations during training
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
L _ { \mathrm { s i n g u l a r } } ( w , X ) = { \frac { 1 } { d } } \sum _ { i = 1 } ^ { d } { \bigg ( } \lambda _ { i } - { \frac { 1 } { d } } \sum _ { j = 1 } ^ { d } \lambda _ { j } { \bigg ) } ^ { 2 } ,
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
where $\lambda _ { i }$ is the $i$ -th singular value of the covariance matrix of the representations. Essentially, $L _ { \mathrm { s i n g u l a r } }$ penalizes the variance among the singular values, thus discouraging the tail singular values from collapsing to 0, mitigating dimensional collapse. However, this regularization term is not practical as it requires calculating all the singular values, which is computationally expensive.
|
| 130 |
+
|
| 131 |
+
Therefore, to derive a computationally-cheap training objective, we first apply the $\mathbf { Z }$ -score normalization on all the representation vectors $\mathbf { z } _ { i }$ as follows: $\hat { \mathbf { z } } _ { i } = ( \mathbf { z } _ { i } - \bar { \mathbf { z } } ) / \sqrt { \mathrm { V a r } ( \mathbf { z } ) }$ . This results in the covariance matrix of $\hat { \mathbf { z } } _ { i }$ being equal to its correlation matrix (i.e., the matrix of correlation coefficients). The following proposition suggests a more convenient cost function to regularize.
|
| 132 |
+
|
| 133 |
+
Proposition 1. For a $d$ -by- $d$ correlation matrix $K$ with singular values $( \lambda _ { 1 } , \ldots , \lambda _ { d } )$ , we have:
|
| 134 |
+
|
| 135 |
+
$$
|
| 136 |
+
\sum _ { i = 1 } ^ { d } \left( \lambda _ { i } - \frac { 1 } { d } \sum _ { j = 1 } ^ { d } \lambda _ { j } \right) ^ { 2 } = \| K \| _ { \mathrm { F } } ^ { 2 } - d .
|
| 137 |
+
$$
|
| 138 |
+
|
| 139 |
+
The proof of Proposition 1 can be found in Appendix B. This proposition suggests that regularizing the Frobenius norm of the correlation matrix $\| K \| _ { \mathrm { F } }$ achieves the same effect as minimizing $L _ { \mathrm { s i n g u l a r } }$ . In contrast to the singular values, $\| K \| _ { \mathrm { F } }$ can be computed efficiently.
|
| 140 |
+
|
| 141 |
+
To leverage this proposition, we propose a novel method, FEDDECORR, which regularizes the Frobenius norm of the correlation matrix of the representation vectors during local training on each client. Formally, the proposed regularization term is defined as:
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
L _ { \mathrm { F e d D e c o r r } } ( w , X ) = \frac { 1 } { d ^ { 2 } } \| K \| _ { \mathrm { F } } ^ { 2 } ,
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
where $w$ is the model parameters, $K$ is the correlation matrix of the representations. The overall objective of each local client is
|
| 148 |
+
|
| 149 |
+
$$
|
| 150 |
+
\operatorname* { m i n } _ { w } \ell ( w , X , \mathbf { y } ) + \beta L _ { \mathrm { F e d D e c o r r } } ( w , X ) ,
|
| 151 |
+
$$
|
| 152 |
+
|
| 153 |
+
where $\ell$ is the cross entropy loss, and $\beta$ is the regularization coefficient of FEDDECORR. The pseudocode of our method is provided in Appendix $\mathbf { G }$ .
|
| 154 |
+
|
| 155 |
+
To visualize the effectiveness of $L _ { \mathrm { F e d D e c o r r } }$ in mitigating dimensional collapse, we now revisit the experiments of Fig. 2 and apply $L _ { \mathrm { F e d D e c o r r } }$ under the heterogeneous setting where $\alpha \in \{ 0 . 0 1 , 0 . 0 5 \}$ . We plot our results in Fig. 3 for both local and global models. Figs. 3(a-b) show that for local models, FEDDECORR encourages the tail singular values to not collapse to 0, thus effectively mitigating dimensional collapse. Moreover, as illustrated in Figs. 3(c-d), this desirable effect introduced by FEDDECORR on local models can also be inherited by the global models.
|
| 156 |
+
|
| 157 |
+
<table><tr><td rowspan="2">Method</td><td colspan="4">CIFAR10</td><td colspan="4">CIFAR100</td></tr><tr><td>α= 0.05</td><td>0.1</td><td>0.5</td><td>8</td><td>0.05</td><td>0.1</td><td>0.5</td><td>8</td></tr><tr><td>FedAvg</td><td>64.85±2.01 76.28±1.22 89.84±0.13 92.39±0.26 59.87±0.25 66.46±0.16 71.69±0.15 74.54±0.15</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>FedProx</td><td>+ FEDDEC0RR 73.06±0.81 80.60±0.91 89.84±0.05 92.19±0.10 61.53±0.11 67.12±0.09 71.91±0.04 73.87±0.18</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>+ FEDDEC0RR 71.38±0.81 81.74±0.34 89.96±0.26 92.14±0.20 61.33±0.19 67.00±0.46 71.64±0.10 74.15±0.06</td><td></td><td></td><td></td><td></td><td></td><td></td><td>64.11±0.84 76.10±0.40 89.57±0.04 92.38±0.09 60.02±0.46 66.41±0.27 71.78±0.19 74.34±0.03</td><td></td></tr><tr><td>FedAvgM</td><td></td><td></td><td></td><td></td><td>71.34±0.71 77.51±0.58 88.39±0.17 91.35±0.15 59.64±0.20 66.36±0.14 71.17±0.22 74.20±0.16</td><td></td><td></td><td></td></tr><tr><td>MOON</td><td>+ FEDDEC0RR 73.60±0.82 79.21±0.15 88.70±0.26 91.33±0.13 61.48±0.27 66.60±0.1171.26±0.21 73.86±0.25</td><td></td><td></td><td></td><td>68.79±0.69 78.70±0.66 90.08±0.10 92.62±0.17 56.79±0.17 65.48±0.29 71.81±0.14 74.30±0.12</td><td></td><td></td><td></td></tr><tr><td></td><td>+ FEDDEC0RR 73.46±0.84 81.63±0.5590.61±0.05 92.63±0.19 59.43±0.34 66.12±0.20 71.68±0.05 73.70±0.25</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 158 |
+
|
| 159 |
+
Table 1: CIFAR10/100 Experiments. We run experiments under various degrees of heterogeneity $( \alpha \in \{ 0 . 0 5 , 0 . 1 , 0 . 5 , \infty \} )$ and report the test accuracy $( \% )$ . All results are (re)produced by us and are averaged over 3 runs (mean $\pm$ std). Bold font highlights the highest accuracy in each column.
|
| 160 |
+
|
| 161 |
+
# 5 EXPERIMENTS
|
| 162 |
+
|
| 163 |
+
# 5.1 EXPERIMENTAL SETUPS
|
| 164 |
+
|
| 165 |
+
Datasets: We adopt three popular benchmark datasets, namely CIFAR10, CIFAR100, and TinyImageNet. CIFAR10 and CIFAR100 both have 50, 000 training samples and 10, 000 test samples, and the size of each image is $3 2 \times 3 2$ . TinyImageNet contains 200 classes, with 100, 000 training samples and 10, 000 testing samples, and each image is $6 4 \times 6 4$ . The method generating local data for each client was introduced in Sec. 3.1.
|
| 166 |
+
|
| 167 |
+
Implementation Details: Our code is based on the code of Li et al. (2021b). For all experiments, we use MobileNetV2 (Sandler et al., 2018). We run 100 communication rounds for all experiments on the CIFAR10/100
|
| 168 |
+
|
| 169 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">TinyImageNet</td></tr><tr><td>α = 0.050.1</td><td>0.5</td><td>8</td></tr><tr><td>FedAvg</td><td colspan="3">35.02±0.46 39.30±0.23 46.92±0.25 49.33±0.19</td></tr><tr><td></td><td colspan="3">+ FEDDEC0RR 40.29±0.18 43.86±0.50 50.01±0.27 52.63±0.26</td></tr><tr><td>FedProx</td><td colspan="3">35.20±0.30 39.66±0.43 47.16±0.0749.76±0.36 + FEDDEC0RR 40.63±0.05 44.19±0.14 50.26±0.27 52.37±0.36</td></tr><tr><td>FedAvgM</td><td colspan="3">34.81±0.09 39.72±0.11 47.11±0.04 49.67±0.25</td></tr><tr><td></td><td colspan="3">+ FEDDEC0RR 39.97±0.23 43.95±0.26 50.14±0.11 52.05±0.37</td></tr><tr><td>MOON</td><td colspan="3">35.23±0.26 40.53±0.28 47.25±0.6650.48±0.57 + FEDDEC0RR 40.40±0.24 44.20±0.22 50.81±0.51 53.01±0.45</td></tr></table>
|
| 170 |
+
|
| 171 |
+
Table 2: TinyImageNet Experiments. We run with $\alpha \in$ $\{ 0 . 0 5 , 0 . 1 , 0 . 5 , \infty \} )$ and report the test accuracy $( \% )$ . All results are (re)produced by us and are averaged over 3 runs (mean $\pm$ std is reported). Bold font highlights the highest accuracy in each column.
|
| 172 |
+
|
| 173 |
+
datasets and 50 communication rounds on the TinyImageNet dataset. We conduct local training for 10 epochs in each communication round using SGD optimizer with a learning rate of 0.01, a SGD momentum of 0.9, and a batch size of 64. The weight decay is set to $1 0 ^ { - 5 }$ for CIFAR10 and $1 0 ^ { - 4 }$ for CIFAR100 and TinyImageNet. We apply the data augmentation of Cubuk et al. (2018) in all CIFAR100 and TinyImageNet experiments. The $\beta$ of FEDDECORR (i.e., $\beta$ in Eqn. (9)) is tuned to be 0.1. The details of tuning hyper-parameters for other federated learning methods are described in Appendix F.
|
| 174 |
+
|
| 175 |
+
# 5.2 FEDDECORR SIGNIFICANTLY IMPROVES BASELINE METHODS
|
| 176 |
+
|
| 177 |
+
To validate the effectiveness of our method, we apply FEDDECORR to four baselines, namely FedAvg (McMahan et al., 2017), FedAvgM (Hsu et al., 2019), FedProx (Li et al., 2020), and MOON (Li et al., 2021b). We partition the three benchmark datasets (CIFAR10, CIFAR100, and TinyImageNet) into 10 clients with $\alpha \in \{ 0 . 0 5 , 0 . 1 , 0 . 5 , \infty \}$ . Since $\alpha = \infty$ is the homogeneous setting where local models should be free from the pitfall of excessive dimensional collapse, we only expect FEDDECORR to perform on par with the baselines in this setting.
|
| 178 |
+
|
| 179 |
+
We display the CIFAR10/100 results in Tab. 1 and the TinyImageNet results in Tab. 2. We observe that for all of the heterogeneous settings on all datasets, the highest accuracies are achieved by adding FEDDECORR on top of a certain baseline method. In particular, in the strongly heterogeneous settings where $\alpha \in \{ 0 . 0 5 , 0 . 1 \}$ , adding FEDDECORR yields significant improvements of around $2 \% \sim \mathbf { \bar { g } } \%$ over baseline methods on all datasets. On the other hand, for the less heterogeneous setting of $\alpha = 0 . 5$ , the problem of dimensional collapse is less pronounced as discussed in Sec 3, leading to smaller improvements from FEDDECORR. Such decrease in improvements is a general trend and is also observed on FedProx, FedAvgM, and MOON. In addition, surprisingly, in the homogeneous setting of $\alpha = \infty$ , FEDDECORR still produces around $2 \%$ of improvements on the TinyImageNet dataset. We conjecture that this is because TinyImageNet is much more complicated than the CIFAR datasets, and some other factors besides heterogeneity of label may cause undesirable dimensional collapse in the federated learning setup. Therefore, federated learning on TinyImageNet can benefit from FEDDECORR even in the homogeneous setting.
|
| 180 |
+
|
| 181 |
+

|
| 182 |
+
Figure 4: Test accuracy $( \% )$ at each communication round. Results are averaged over 3 runs. Shaded areas denote one standard deviation above and below the mean.
|
| 183 |
+
|
| 184 |
+
To further demonstrate the advantages of FEDDECORR, we apply it on FedAvg and plot how the test accuracy of the global model evolves throughout the federated learning in Fig. 4. In this figure, if we set a certain value of the testing accuracy as a threshold, we see that adding FEDDECORR significantly reduces the number of communication rounds needed to achieve the given threshold. This further shows that FEDDECORR not only improves the final performance, but also greatly boosts the communication efficiency in federated learning.
|
| 185 |
+
|
| 186 |
+
# 5.3 ABLATION STUDY ON THE NUMBER OF CLIENTS
|
| 187 |
+
|
| 188 |
+
Table 3: Ablation study on the number of clients. Based on TinyImageNet, we run experiments with different number of clients and different amounts of data heterogeneity.
|
| 189 |
+
|
| 190 |
+
<table><tr><td># clients</td><td>Method</td><td>α = 0.05 0.1</td><td>0.5</td></tr><tr><td rowspan="2">10</td><td>FedAvg</td><td>35.02 39.30</td><td>46.92</td></tr><tr><td>+ FEDDECORR</td><td>40.29 43.86</td><td>50.01</td></tr><tr><td rowspan="2">20</td><td>FedAvg</td><td>31.21 35.30</td><td>43.64</td></tr><tr><td>+ FEDDECORR</td><td>39.41 41.27</td><td>46.17</td></tr><tr><td rowspan="2">30</td><td>FedAvg</td><td>26.20 30.88</td><td>37.22</td></tr><tr><td>+ FEDDECORR</td><td>36.50 39.02</td><td>44.38</td></tr><tr><td rowspan="2">50</td><td>FedAvg</td><td>25.70 28.88</td><td>34.89</td></tr><tr><td>+ FEDDECORR</td><td>34.50 36.674</td><td>42.34</td></tr><tr><td rowspan="2">100</td><td>FedAvg</td><td>21.53 </td><td>24.693 30.21</td></tr><tr><td> + FEDDECORR</td><td>30.55</td><td>33.85 38.65</td></tr></table>
|
| 191 |
+
|
| 192 |
+
Next, we study whether the improvements brought by FEDDECORR are preserved as number of clients increases. We partition the TinyImageNet dataset into 10, 20, 30, 50, and 100 clients according to different $\alpha$ ’s, and then run FedAvg with and without FEDDECORR. For
|
| 193 |
+
|
| 194 |
+
the experiments with 10, 20 and 30 clients, we run 50 communication rounds. For the experiments with 50 and 100 clients, we randomly select $2 0 \%$ of the total clients to participate the federated learning in each round and run 100 communication rounds. Results are shown in Tab. 3. From this table, we see that the performance improvements resulting from FEDDECORR increase from around ${ \mathbf 3 \% } \sim { \mathbf 5 \% }$ to around $\mathbf { 7 \% } \sim \mathbf { 1 0 \% }$ with the growth in the number of clients. Therefore, interestingly, we show through experiments that the improvements brought by FEDDECORR can be even more pronounced under the more challenging settings with more clients. Moreover, our experimental results under random client participation show that the improvements from FEDDECORR are robust to such uncertainties. These experiments demonstrate the potential of FEDDECORR to be applied to real world federated learning settings with massive numbers of clients and random client participation.
|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
Figure 5: Ablation study on $\beta$ . We apply FEDDECORR with different choices of $\beta$ on FedAvg.
|
| 198 |
+
|
| 199 |
+
5.4 ABLATION STUDY ON THE REGULARIZATION COEFFICIENT $\beta$
|
| 200 |
+
|
| 201 |
+
Next, we study FEDDECORR’s robustness to the $\beta$ in Eqn. (9) by varying it in the set $\{ 0 . 0 1 , 0 . 0 5 , 0 . 1 , 0 . 2 , 0 . 3 \}$ . We partition the CIFAR10 and TinyImageNet datasets into 10 clients with $\alpha$ equals to 0.05 and 0.1 to simulate the heterogeneous setting. Results are shown in Fig. 5. We observe that, in general, when $\beta$ increases, the performance of FEDDECORR first increases, then plateaus, and finally decreases slightly. These results show that FEDDECORR is relatively insensitive to the choice of $\beta$ , which implies FEDDECORR is an easy-to-tune federated learning method. In addition, among all experimental setups, setting $\beta$ to be 0.1 consistently produces (almost) the best results. Therefore, we recommend $\beta = 0 . 1$ when having no prior information about the dataset.
|
| 202 |
+
|
| 203 |
+
# 5.5 ABLATION STUDY ON THE NUMBER OF LOCAL EPOCHS
|
| 204 |
+
|
| 205 |
+
Lastly, we ablate on the number of local epochs per communication round. We set the number of local epochs $E$ to be in the set $\{ 1 , 5 , 1 0 , 2 0 \}$ . We run experiments with and without FEDDECORR, and we use the CIFAR100 and TinyImageNet datasets with $\alpha$ being 0.05 and 0.1 for this ablation study. Results are shown in Tab. 4, in which one observes that with increasing $E$ , FEDAVG performance first increases and then decreases. This is because when $E$ is too small, the local training cannot converge properly in each communication round. On the other hand, when $E$ is too large, the model parameters of local clients might be driven to be too far from the global optimum. Nevertheless,
|
| 206 |
+
|
| 207 |
+
Table 4: Ablation study on local epochs. Experiments with different number of local epochs $E$ .
|
| 208 |
+
|
| 209 |
+
<table><tr><td rowspan="2">E</td><td rowspan="2">Method</td><td>CIFAR100</td><td>TinyImageNet</td></tr><tr><td>α = 0.05 0.1</td><td>0.05 0.1</td></tr><tr><td rowspan="2">1</td><td>FedAvg</td><td>50.67 55.98</td><td>32.31 34.88</td></tr><tr><td>+ FEDDECORR</td><td>53.18 57.02</td><td>36.49 38.99</td></tr><tr><td rowspan="2">5</td><td>FedAvg</td><td>59.57</td><td>65.0236.02 40.75</td></tr><tr><td> + FEDDECORR</td><td>61.42 65.98</td><td>41.68 44.77</td></tr><tr><td rowspan="2">10</td><td>FedAvg</td><td>59.87 66.46</td><td>535.02 39.30</td></tr><tr><td> + FEDDECORR</td><td>61.53</td><td>67.12 40.29 43.86</td></tr><tr><td rowspan="2">20</td><td>FedAvg</td><td>58.50 </td><td>66.3731.23 37.23</td></tr><tr><td>+ FEDDECORR</td><td>60.65</td><td>66.86 35.44 42.04</td></tr></table>
|
| 210 |
+
|
| 211 |
+
FEDDECORR consistently improves over the baselines across different choices of local epochs $E$ .
|
| 212 |
+
|
| 213 |
+
# 5.6 ADDITIONAL EMPIRICAL ANALYSES
|
| 214 |
+
|
| 215 |
+
We present more empirical analyses in Appendix C. These include comparing FEDDECORR with other baselines (Appendix C.4) and other decorrelation methods (Appendix C.2), experiments on other model architectures (Appendix C.3) and another type of data heterogeneity (Appendix C.5), and discussing the computational advantage of FEDDECORR (Appendix C.1).
|
| 216 |
+
|
| 217 |
+
# 6 CONCLUSION
|
| 218 |
+
|
| 219 |
+
In this work, we study representations of trained models under federated learning in which the data held by clients are heterogeneous. Through extensive empirical observations and theoretical analyses, we show that stronger data heterogeneity results in more severe dimensional collapse for both global and local representations. Motivated by this, we propose FEDDECORR, a novel method to mitigate dimensional collapse during local training, thus improving federated learning under the heterogeneous data setting. Extensive experiments on benchmark datasets show that FEDDECORR yields consistent improvements over existing baseline methods.
|
| 220 |
+
|
| 221 |
+
# ACKNOWLEDGEMENTS
|
| 222 |
+
|
| 223 |
+
The authors would like to thank anonymous reviewers for the constructive feedback. Yujun Shi and Vincent Tan are supported by Singapore Ministry of Education Tier 1 grants (Grant Number: A-0009042-01-00, A-8000189-01-00, A-8000980-00-00) and a Singapore National Research Foundation (NRF) Fellowship (Grant Number: A-0005077-01-00). Jian Liang is supported by National Natural Science Foundation of China (Grant No. 62276256) and Beijing Nova Program under Grant Z211100002121108.
|
| 224 |
+
|
| 225 |
+
# REPRODUCIBILITY STATEMENT
|
| 226 |
+
|
| 227 |
+
All source code has been released at https://github.com/bytedance/FedDecorr. Pseudo-code of FEDDECORR is provided in Appendix G. We introduced all the implementation details of baselines and our method in Sec. 5.1. In addition, the proofs of Theorem 1 and Proposition 1 are provided in Appendix A and Appendix B, respectively. All assumptions are stated and discussed in the proof.
|
| 228 |
+
|
| 229 |
+
# REFERENCES
|
| 230 |
+
|
| 231 |
+
Durmus Alp Emre Acar, Yue Zhao, Ramon Matas Navarro, Matthew Mattina, Paul N Whatmough, and Venkatesh Saligrama. Federated learning based on dynamic regularization. arXiv preprint arXiv:2111.04263, 2021.
|
| 232 |
+
|
| 233 |
+
Maruan Al-Shedivat, Jennifer Gillenwater, Eric Xing, and Afshin Rostamizadeh. Federated learning via posterior averaging: A new perspective and practical algorithms. arXiv preprint arXiv:2010.05273, 2020.
|
| 234 |
+
|
| 235 |
+
Manoj Ghuhan Arivazhagan, Vinay Aggarwal, Aaditya Kumar Singh, and Sunav Choudhary. Federated learning with personalization layers. arXiv preprint arXiv:1912.00818, 2019.
|
| 236 |
+
|
| 237 |
+
Sanjeev Arora, Nadav Cohen, and Elad Hazan. On the optimization of deep networks: Implicit acceleration by overparameterization. In International Conference on Machine Learning, pp. 244–253. PMLR, 2018.
|
| 238 |
+
|
| 239 |
+
Sanjeev Arora, Nadav Cohen, Wei Hu, and Yuping Luo. Implicit regularization in deep matrix factorization. Advances in Neural Information Processing Systems, 32, 2019.
|
| 240 |
+
|
| 241 |
+
Adrien Bardes, Jean Ponce, and Yann LeCun. Vicreg: Variance-invariance-covariance regularization for self-supervised learning. arXiv preprint arXiv:2105.04906, 2021.
|
| 242 |
+
|
| 243 |
+
Michael Cogswell, Faruk Ahmed, Ross Girshick, Larry Zitnick, and Dhruv Batra. Reducing overfitting in deep networks by decorrelating representations. arXiv preprint arXiv:1511.06068, 2015.
|
| 244 |
+
|
| 245 |
+
Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. Autoaugment: Learning augmentation policies from data. arXiv preprint arXiv:1805.09501, 2018.
|
| 246 |
+
|
| 247 |
+
Alireza Fallah, Aryan Mokhtari, and Asuman Ozdaglar. Personalized federated learning with theoretical guarantees: A model-agnostic meta-learning approach. Advances in Neural Information Processing Systems, 33:3557–3568, 2020.
|
| 248 |
+
|
| 249 |
+
Filip Hanzely, Slavom´ır Hanzely, Samuel Horvath, and Peter Richt ´ arik. Lower bounds and opti- ´ mal algorithms for personalized federated learning. Advances in Neural Information Processing Systems, 33:2304–2315, 2020.
|
| 250 |
+
|
| 251 |
+
Tzu-Ming Harry Hsu, Hang Qi, and Matthew Brown. Measuring the effects of non-identical data distribution for federated visual classification. arXiv preprint arXiv:1909.06335, 2019.
|
| 252 |
+
|
| 253 |
+
Tianyu Hua, Wenxiao Wang, Zihui Xue, Sucheng Ren, Yue Wang, and Hang Zhao. On feature decorrelation in self-supervised learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 9598–9608, 2021.
|
| 254 |
+
|
| 255 |
+
Lei Huang, Dawei Yang, Bo Lang, and Jia Deng. Decorrelated batch normalization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 791–800, 2018.
|
| 256 |
+
|
| 257 |
+
Yutao Huang, Lingyang Chu, Zirui Zhou, Lanjun Wang, Jiangchuan Liu, Jian Pei, and Yong Zhang. Personalized cross-silo federated learning on non-iid data. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pp. 7865–7873, 2021.
|
| 258 |
+
|
| 259 |
+
Ziwei Ji and Matus Telgarsky. Gradient descent aligns the layers of deep linear networks. arXiv preprint arXiv:1810.02032, 2018.
|
| 260 |
+
|
| 261 |
+
Li Jing, Pascal Vincent, Yann LeCun, and Yuandong Tian. Understanding dimensional collapse in contrastive self-supervised learning. arXiv preprint arXiv:2110.09348, 2021.
|
| 262 |
+
|
| 263 |
+
Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank Reddi, Sebastian Stich, and Ananda Theertha Suresh. Scaffold: Stochastic controlled averaging for federated learning. In International Conference on Machine Learning, pp. 5132–5143. PMLR, 2020.
|
| 264 |
+
|
| 265 |
+
Qinbin Li, Yiqun Diao, Quan Chen, and Bingsheng He. Federated learning on non-iid data silos: An experimental study. arXiv preprint arXiv:2102.02079, 2021a.
|
| 266 |
+
|
| 267 |
+
Qinbin Li, Bingsheng He, and Dawn Song. Model-contrastive federated learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10713–10722, 2021b.
|
| 268 |
+
|
| 269 |
+
Tian Li, Anit Kumar Sahu, Manzil Zaheer, Maziar Sanjabi, Ameet Talwalkar, and Virginia Smith. Federated optimization in heterogeneous networks. Proceedings of Machine Learning and Systems, 2:429–450, 2020.
|
| 270 |
+
|
| 271 |
+
Tian Li, Shengyuan Hu, Ahmad Beirami, and Virginia Smith. Ditto: Fair and robust federated learning through personalization. In International Conference on Machine Learning, pp. 6357– 6368. PMLR, 2021c.
|
| 272 |
+
|
| 273 |
+
Tao Lin, Lingjing Kong, Sebastian U Stich, and Martin Jaggi. Ensemble distillation for robust model fusion in federated learning. Advances in Neural Information Processing Systems, 33:2351–2363, 2020.
|
| 274 |
+
|
| 275 |
+
Mi Luo, Fei Chen, Dapeng Hu, Yifan Zhang, Jian Liang, and Jiashi Feng. No fear of heterogeneity: Classifier calibration for federated learning with non-iid data. Advances in Neural Information Processing Systems, 34, 2021.
|
| 276 |
+
|
| 277 |
+
Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics, pp. 1273–1282. PMLR, 2017.
|
| 278 |
+
|
| 279 |
+
Sashank Reddi, Zachary Charles, Manzil Zaheer, Zachary Garrett, Keith Rush, Jakub Konecnˇ y,\` Sanjiv Kumar, and H Brendan McMahan. Adaptive federated optimization. arXiv preprint arXiv:2003.00295, 2020.
|
| 280 |
+
|
| 281 |
+
Karsten Roth, Timo Milbich, Samarth Sinha, Prateek Gupta, Bjorn Ommer, and Joseph Paul Cohen. Revisiting training strategies and generalization performance in deep metric learning. In International Conference on Machine Learning, pp. 8242–8252. PMLR, 2020.
|
| 282 |
+
|
| 283 |
+
Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4510–4520, 2018.
|
| 284 |
+
|
| 285 |
+
Yujun Shi, Kuangqi Zhou, Jian Liang, Zihang Jiang, Jiashi Feng, Philip HS Torr, Song Bai, and Vincent YF Tan. Mimicking the oracle: an initial phase decorrelation approach for class incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16722–16731, 2022.
|
| 286 |
+
|
| 287 |
+
Canh T Dinh, Nguyen Tran, and Josh Nguyen. Personalized federated learning with moreau envelopes. Advances in Neural Information Processing Systems, 33:21394–21405, 2020.
|
| 288 |
+
|
| 289 |
+
Hongyi Wang, Mikhail Yurochkin, Yuekai Sun, Dimitris Papailiopoulos, and Yasaman Khazaeni. Federated learning with matched averaging. arXiv preprint arXiv:2002.06440, 2020a.
|
| 290 |
+
|
| 291 |
+
Jianyu Wang, Qinghua Liu, Hao Liang, Gauri Joshi, and H Vincent Poor. Tackling the objective inconsistency problem in heterogeneous federated optimization. Advances in neural information processing systems, 33:7611–7623, 2020b.
|
| 292 |
+
|
| 293 |
+
Lixu Wang, Shichao Xu, Xiao Wang, and Qi Zhu. Addressing class imbalance in federated learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pp. 10165–10173, 2021.
|
| 294 |
+
|
| 295 |
+
Wei Xiong, Bo Du, Lefei Zhang, Ruimin Hu, and Dacheng Tao. Regularizing deep convolutional neural networks with a structured decorrelation constraint. In 2016 IEEE 16th International Conference on Data Mining (ICDM), pp. 519–528. IEEE, 2016.
|
| 296 |
+
|
| 297 |
+
Mikhail Yurochkin, Mayank Agarwal, Soumya Ghosh, Kristjan Greenewald, Nghia Hoang, and Yasaman Khazaeni. Bayesian nonparametric federated learning of neural networks. In International Conference on Machine Learning, pp. 7252–7261. PMLR, 2019.
|
| 298 |
+
|
| 299 |
+
Jure Zbontar, Li Jing, Ishan Misra, Yann LeCun, and Stephane Deny. Barlow twins: Self-supervised ´ learning via redundancy reduction. In International Conference on Machine Learning, pp. 12310– 12320. PMLR, 2021.
|
| 300 |
+
|
| 301 |
+
Michael Zhang, Karan Sapra, Sanja Fidler, Serena Yeung, and Jose M Alvarez. Personalized federated learning with first order model optimization. arXiv preprint arXiv:2012.08565, 2020.
|
| 302 |
+
|
| 303 |
+
# A PROOF OF THEOREM 1 IN MAIN PAPER
|
| 304 |
+
|
| 305 |
+
# A.1 NOTATIONS REVISITED
|
| 306 |
+
|
| 307 |
+
Here, for the reader’s convenience, we summarize the notations used in both the main text and this appendix.
|
| 308 |
+
|
| 309 |
+
<table><tr><td>Notation N</td><td>Explanation Number of training data points.</td></tr><tr><td>C X y Y Wi(t) I(t) 01,k ul,k Vl,k 0k Uk Vk Nc μc ec</td><td>Total number of classes. The collection of the N training samples, X ∈ Rdin × N. The collection of one hot labels of the N training samples,y ∈ RC×N. The collection of model output softmax vectors givenall N input data,y ∈ RCN The i-th layer weight matrix at the t-th optimization step. The product of the weight matrices of the first L layers: II(t) = WL(t) ...Wi(t). The k-th singular value of Wt . The k-th left singular vector of Wt. The k-th right singular vector of Wt.</td></tr></table>
|
| 310 |
+
|
| 311 |
+
# A.2 TWO LEMMAS
|
| 312 |
+
|
| 313 |
+
Here, we elaborate two useful lemmas from Arora et al. (2019; 2018).
|
| 314 |
+
|
| 315 |
+
The first lemma is adopted from Arora et al. (2019):
|
| 316 |
+
|
| 317 |
+
Lemma 1. Assuming the weight matrix $W$ evolves under gradient descent dynamics with infinitesimally small learning rate, the $k$ -th singular value of this matrix (denoted as $\sigma _ { k }$ ) evolves as
|
| 318 |
+
|
| 319 |
+
$$
|
| 320 |
+
\begin{array} { r } { \dot { { \boldsymbol \sigma } } _ { k } ( t ) = ( { \mathbf u } _ { k } ( t ) ) ^ { \top } \dot { W } ( t ) { \mathbf v } _ { k } ( t ) , } \end{array}
|
| 321 |
+
$$
|
| 322 |
+
|
| 323 |
+
where ${ \bf u } _ { k } ( t )$ and $\mathbf { v } _ { k } ( t )$ are the $k$ -th left and right singular vectors of $W ( t )$ , respectively.
|
| 324 |
+
|
| 325 |
+
Proof. By performing an SVD on $W ( t )$ , we have $W ( t ) = U ( t ) S ( t ) V ( t ) ^ { \top }$ . Therefore, by the chain rule in differention, we have:
|
| 326 |
+
|
| 327 |
+
$$
|
| 328 |
+
\dot { W } ( t ) = \dot { U } ( t ) S ( t ) V ( t ) ^ { \top } + U ( t ) \dot { S } ( t ) V ( t ) ^ { \top } + U ( t ) S ( t ) \dot { V } ( t ) ^ { \top } .
|
| 329 |
+
$$
|
| 330 |
+
|
| 331 |
+
Next, for both sides of the above equation, we left multiply $U ( t ) ^ { \top }$ and right multiply $V ( t )$
|
| 332 |
+
|
| 333 |
+
$$
|
| 334 |
+
U ( t ) ^ { \top } \dot { W } ( t ) V ( t ) = U ( t ) ^ { \top } \dot { U } ( t ) S ( t ) + \dot { S } ( t ) + S ( t ) ( \dot { V } ( t ) ) ^ { \top } V ( t ) .
|
| 335 |
+
$$
|
| 336 |
+
|
| 337 |
+
ince $S ( t )$ is a diagonal matrix, we consider the $k$ -th diagonal entry of $S ( t )$ , namely $\sigma _ { k } ( t )$
|
| 338 |
+
|
| 339 |
+
$$
|
| 340 |
+
\begin{array} { r } { ( \mathbf { u } _ { k } ( t ) ) ^ { \top } \dot { W } ( t ) \mathbf { v } _ { k } ( t ) = ( \mathbf { u } _ { k } ( t ) ) ^ { \top } \dot { \mathbf { u } } _ { k } ( t ) \sigma _ { k } ( t ) + \dot { \sigma } _ { k } ( t ) + \sigma _ { k } ( t ) ( \mathbf { v } _ { k } ( t ) ) ^ { \top } \dot { \mathbf { v } } _ { k } ( t ) . } \end{array}
|
| 341 |
+
$$
|
| 342 |
+
|
| 343 |
+
Since ${ \bf u } _ { k } ( t )$ and $\mathbf { v } _ { k } ( t )$ are unit vectors and are evolving in time with infinitesimal rate, we have $( { \mathbf { u } } _ { k } ( t ) ) ^ { \top } \dot { { \mathbf { u } } } _ { k } ( t ) = 0$ and $( { \bf v } _ { k } ( t ) ) ^ { \top } \dot { \bf v } _ { k } ( t ) = 0$ . Next, Eqn. (13) can be simplified as
|
| 344 |
+
|
| 345 |
+
$$
|
| 346 |
+
\begin{array} { r } { \dot { { \boldsymbol \sigma } } _ { k } ( t ) = ( { \mathbf u } _ { k } ( t ) ) ^ { \top } \dot { W } ( t ) { \mathbf v } _ { k } ( t ) . } \end{array}
|
| 347 |
+
$$
|
| 348 |
+
|
| 349 |
+
The proof is thus complete.
|
| 350 |
+
|
| 351 |
+
The second lemma is adopted from Arora et al. (2018).
|
| 352 |
+
|
| 353 |
+
Lemma 2. Given $L$ consecutive linear layers in a neural network characterized by weight matrices $W _ { 1 } , W _ { 2 } , \ldots , W _ { L }$ . We denote $\Pi = W _ { L } W _ { L - 1 } \ldots W _ { 1 }$ . We further denote $W _ { j } ( t )$ as weight matrix $W _ { j }$ after the $t$ -th gradient descent optimization step. Correspondingly, the initialization of $W _ { j }$ is $W _ { j } ( 0 )$ . Assuming we have $W _ { j } ( 0 ) ( W _ { j } ( 0 ) ) ^ { \top } = ( W _ { j + 1 } ( 0 ) ) ^ { \top } W _ { j + 1 } ( 0 )$ for any $j \in [ L - 1 ]$ at initialization. Then, under the gradient descent dynamics, $\Pi ( t )$ satisfies
|
| 354 |
+
|
| 355 |
+
$$
|
| 356 |
+
\dot { \Pi } ( t ) = - \sum _ { j = 1 } ^ { L } \left[ \Pi ( t ) \Pi ( t ) ^ { \top } \right] ^ { \frac { L - j } { L } } \frac { \partial \ell ( \Pi ( t ) ) } { \partial \Pi } \left[ \Pi ( t ) ^ { \top } \Pi ( t ) \right] ^ { \frac { j - 1 } { L } } ,
|
| 357 |
+
$$
|
| 358 |
+
|
| 359 |
+
where $[ \cdot ] ^ { \frac { L - j } { L } }$ and $[ \cdot ] ^ { \frac { j - 1 } { L } }$ are fractional power operators defined over positive semi-definite matrices.
|
| 360 |
+
|
| 361 |
+
Proof. Here, we first define some additional notation. Given any square matrices (or possibly scalar) $A _ { 1 } , A _ { 2 } , \ldots , A _ { m }$ , we denote $\mathrm { d i a g } ( A _ { 1 } , A _ { 2 } , \ldots , A _ { m } )$ to be the block diagonal matrix
|
| 362 |
+
|
| 363 |
+
$$
|
| 364 |
+
\mathrm { d i a g } ( A _ { 1 } , A _ { 2 } , \ldots , A _ { m } ) = \left[ \begin{array} { c c c c } { { A _ { 1 } } } & { { 0 } } & { { 0 } } & { { 0 } } \\ { { 0 } } & { { A _ { 2 } } } & { { 0 } } & { { 0 } } \\ { { 0 } } & { { 0 } } & { { \ddots } } & { { 0 } } \\ { { 0 } } & { { 0 } } & { { 0 } } & { { A _ { m } } } \end{array} \right] .
|
| 365 |
+
$$
|
| 366 |
+
|
| 367 |
+
Here, we first consider dynamics of an arbitrary $W _ { j }$ where $j \in [ L - 1 ]$ . By the chain rule, we have
|
| 368 |
+
|
| 369 |
+
$$
|
| 370 |
+
\begin{array} { l } { \dot { W } _ { j } ( t ) = - \frac { \partial \ell ( W _ { 1 } ( t ) , \dots , W _ { L + 1 } ( t ) ) } { \partial W _ { j } ( t ) } } \\ { \quad \qquad = - ( W _ { j + 1 } ( t ) ^ { \top } \dots W _ { L } ( t ) ^ { \top } ) \frac { \partial \ell ( \Pi ( t ) ) } { \partial \Pi } ( W _ { 1 } ( t ) ^ { \top } \dots W _ { j - 1 } ( t ) ^ { \top } ) . } \end{array}
|
| 371 |
+
$$
|
| 372 |
+
|
| 373 |
+
Given Eqn. (16), we right multiply $\dot { W } _ { j } ( t )$ by $( W _ { j } ( t ) ) ^ { \top }$ and we left multiply $\dot { W } _ { j + 1 } ( t )$ by $( W _ { j + 1 } ( t ) ) ^ { \top }$ , which yields
|
| 374 |
+
|
| 375 |
+
$$
|
| 376 |
+
\dot { W } _ { j } ( t ) ( W _ { j } ( t ) ) ^ { \top } = ( W _ { j + 1 } ( t ) ) ^ { \top } \dot { W } _ { j + 1 } ( t ) .
|
| 377 |
+
$$
|
| 378 |
+
|
| 379 |
+
Applying the same trick on $W _ { j } ( t ) ^ { \top }$ and $W _ { j + 1 } ( t ) ^ { \top }$ yields
|
| 380 |
+
|
| 381 |
+
$$
|
| 382 |
+
W _ { j } ( t ) ( \dot { W } _ { j } ( t ) ) ^ { \top } = ( \dot { W } _ { j + 1 } ( t ) ) ^ { \top } W _ { j + 1 } ( t ) .
|
| 383 |
+
$$
|
| 384 |
+
|
| 385 |
+
Adding Eqns. (17) and (18) on both sides yields
|
| 386 |
+
|
| 387 |
+
$$
|
| 388 |
+
\dot { W } _ { j } ( t ) ( W _ { j } ( t ) ) ^ { \top } + W _ { j } ( t ) ( \dot { W } _ { j } ( t ) ) ^ { \top } = W _ { j + 1 } ( t ) ^ { \top } \dot { W } _ { j + 1 } ( t ) + ( \dot { W } _ { j + 1 } ( t ) ) ^ { \top } W _ { j + 1 } ( t ) .
|
| 389 |
+
$$
|
| 390 |
+
|
| 391 |
+
Next, by the chain rule for differentiation, Eqn. (19) directly implies that
|
| 392 |
+
|
| 393 |
+
$$
|
| 394 |
+
\frac { \mathrm { d } ( W _ { j } ( t ) W _ { j } ( t ) ^ { \top } ) } { \mathrm { d } t } = \frac { \mathrm { d } ( W _ { j + 1 } ( t ) ^ { \top } W _ { j + 1 } ( t ) ) } { \mathrm { d } t } .
|
| 395 |
+
$$
|
| 396 |
+
|
| 397 |
+
Since we have assumed that $W _ { j } ( 0 ) W _ { j } ( 0 ) ^ { \top } = W _ { j + 1 } ( 0 ) ^ { \top } W _ { j + 1 } ( 0 )$ , we can conclude that
|
| 398 |
+
|
| 399 |
+
$$
|
| 400 |
+
W _ { j } ( t ) W _ { j } ( t ) ^ { \top } = W _ { j + 1 } ( t ) ^ { \top } W _ { j + 1 } ( t ) .
|
| 401 |
+
$$
|
| 402 |
+
|
| 403 |
+
Next, we apply an SVD on $W _ { j } ( t )$ and $W _ { j + 1 } ( t )$ in Eqn. (21). This yields
|
| 404 |
+
|
| 405 |
+
$$
|
| 406 |
+
U _ { j } ( t ) S _ { j } ( t ) S _ { j } ^ { \top } ( t ) U _ { j } ^ { \top } ( t ) = V _ { j + 1 } ( t ) S _ { j + 1 } ^ { \top } ( t ) S _ { j + 1 } ( t ) V _ { j + 1 } ^ { \top } ( t ) .
|
| 407 |
+
$$
|
| 408 |
+
|
| 409 |
+
Based on Eqn. (22) and given the uniqueness property of SVD, we know:
|
| 410 |
+
|
| 411 |
+
$$
|
| 412 |
+
S _ { j } ( t ) S _ { j } ( t ) ^ { \top } = S _ { j + 1 } ^ { \top } ( t ) S _ { j + 1 } ( t ) = \mathrm { d i a g } ( \rho _ { 1 } I _ { d _ { 1 } } , \rho _ { 2 } I _ { d _ { 2 } } , \dots , \rho _ { m } I _ { d _ { m } } ) ,
|
| 413 |
+
$$
|
| 414 |
+
|
| 415 |
+
where ${ \sqrt { \rho _ { 1 } } } , \ldots , { \sqrt { \rho _ { m } } }$ represent the $m$ distinct singular values satisfying $\rho _ { 1 } > \rho _ { 2 } > . . . > \rho _ { m } \geq 0$ , and $I _ { d _ { r } }$ for any $r \in [ m ]$ are identity matrix of size $d _ { r } \times d _ { r }$ . Since Eqn. (23) holds for any $j$ , we know by induction that the set of values of $\rho$ ’s is the same across all layers $j \in [ L ]$ . In addition, there exist orthogonal matrices $O _ { j , r } \in \mathbb { R } ^ { d _ { r } \times \dot { d } _ { r } }$ for any $r \in [ m ]$ such that
|
| 416 |
+
|
| 417 |
+
$$
|
| 418 |
+
U _ { j } ( t ) = V _ { j + 1 } ( t ) \mathrm { d i a g } ( O _ { j , 1 } , O _ { j , 2 } , \dots , O _ { j , m } ) .
|
| 419 |
+
$$
|
| 420 |
+
|
| 421 |
+
Given Eqns. (24), next, we study $W _ { j + 1 } ( t ) W _ { j } ( t ) W _ { j } ^ { \top } ( t ) W _ { j + 1 } ^ { \top } ( t )$ for any $j \in [ N - 1 ]$ :
|
| 422 |
+
|
| 423 |
+
$$
|
| 424 |
+
\begin{array} { r l } & { W _ { j + 1 } ( t ) W _ { j } ( t ) W _ { j } ^ { \top } ( t ) W _ { j + 1 } ^ { \top } ( t ) } \\ & { = U _ { j + 1 } S _ { j + 1 } V _ { j + 1 } ^ { \top } U _ { j } S _ { j } S _ { j } ^ { \top } U _ { j } ^ { \top } V _ { j + 1 } S _ { j + 1 } ^ { \top } U _ { j + 1 } ^ { \top } } \\ & { = U _ { j + 1 } S _ { j + 1 } \mathrm { d i a g } ( O _ { j , 1 } , O _ { j , 2 } , \ldots , O _ { j , m } ) S _ { j } S _ { j } ^ { \top } \mathrm { d i a g } ( O _ { j , 1 } ^ { \top } , O _ { j , 2 } ^ { \top } , \ldots , O _ { j , m } ^ { \top } ) S _ { j + 1 } ^ { \top } U _ { j + 1 } ^ { \top } } \\ & { \qquad \quad \mathrm { ( p l u g g i n g } } \\ & { = U _ { j + 1 } S _ { j + 1 } S _ { j } S _ { j } ^ { \top } S _ { j + 1 } ^ { \top } U _ { j + 1 } ^ { \top } \qquad ( S _ { j } \mathrm { c o m m u t e s ~ w i t h ~ d i a g } ( O _ { j , 1 } , O _ { j , 2 } , \ldots , O _ { j , m } ) ) } \\ & { = U _ { j + 1 } \mathrm { d i a g } ( \rho _ { 1 } ^ { 2 } I _ { d _ { 1 } } , \rho _ { 2 } ^ { 2 } I _ { d _ { 2 } } , \ldots , \rho _ { m } ^ { 2 } I _ { d _ { m } } ) U _ { j + 1 } ^ { \top } . } \end{array}
|
| 425 |
+
$$
|
| 426 |
+
|
| 427 |
+
Similarly, it holds that
|
| 428 |
+
|
| 429 |
+
$$
|
| 430 |
+
\begin{array} { r } { W _ { j } ^ { \top } ( t ) W _ { j + 1 } ^ { \top } ( t ) W _ { j + 1 } ( t ) W _ { j } ( t ) = V _ { j } \mathrm { d i a g } ( \rho _ { 1 } ^ { 2 } I _ { d _ { 1 } } , \rho _ { 2 } ^ { 2 } I _ { d _ { 2 } } , \dots , \rho _ { m } ^ { 2 } I _ { d _ { m } } ) V _ { j } ^ { \top } . } \end{array}
|
| 431 |
+
$$
|
| 432 |
+
|
| 433 |
+
Next, by induction and Eqns. (25),
|
| 434 |
+
|
| 435 |
+
$$
|
| 436 |
+
\begin{array} { r l } & { W _ { L } ( t ) \ldots W _ { j } ( t ) W _ { j } ( t ) ^ { \top } \ldots W _ { L } ( t ) ^ { \top } } \\ & { \qquad = U _ { L } \mathrm { d i a g } ( \rho _ { 1 } ^ { L - j + 1 } I _ { d _ { 1 } } , \rho _ { 2 } ^ { L - j + 1 } I _ { d _ { 2 } } , \ldots , \rho _ { m } ^ { L - j + 1 } I _ { d _ { m } } ) U _ { L } ^ { \top } , } \end{array}
|
| 437 |
+
$$
|
| 438 |
+
|
| 439 |
+
by induction and Eqns. (26), it holds that
|
| 440 |
+
|
| 441 |
+
$$
|
| 442 |
+
\begin{array} { r } { W _ { 1 } ^ { \top } ( t ) \ldots W _ { j } ^ { \top } ( t ) W _ { j } ( t ) \ldots W _ { 1 } ( t ) = V _ { 1 } \mathrm { d i a g } ( \rho _ { 1 } ^ { j } I _ { d _ { 1 } } , \rho _ { 2 } ^ { j } I _ { d _ { 2 } } , \ldots , \rho _ { m } ^ { j } I _ { d _ { m } } ) V _ { 1 } ^ { \top } . } \end{array}
|
| 443 |
+
$$
|
| 444 |
+
|
| 445 |
+
From Eqns. (27), we know that for any $j \in [ L - 1 ]$ ,
|
| 446 |
+
|
| 447 |
+
$$
|
| 448 |
+
\begin{array} { r l } & { \Pi ( t ) \Pi ( t ) ^ { \top } = W _ { L } ( t ) \ldots W _ { 1 } ( t ) W _ { 1 } ( t ) ^ { \top } \ldots W _ { L } ( t ) ^ { \top } } \\ & { \qquad = U _ { L } \mathrm { d i a g } ( \rho _ { 1 } ^ { L } I _ { d _ { 1 } } , \rho _ { 2 } ^ { L } I _ { d _ { 2 } } , \ldots , \rho _ { m } ^ { L } I _ { d _ { m } } ) U _ { L } ^ { \top } } \\ & { \qquad = \left[ U _ { L } \mathrm { d i a g } ( \rho _ { 1 } ^ { L - j } I _ { d _ { 1 } } , \rho _ { 2 } ^ { L - j } I _ { d _ { 2 } } , \ldots , \rho _ { m } ^ { L - j } I _ { d _ { m } } ) U _ { L } ^ { \top } \right] ^ { \frac { L } { L - j } } } \\ & { \qquad = \left[ W _ { L } ( t ) \ldots W _ { j + 1 } ( t ) W _ { j + 1 } ( t ) ^ { \top } \ldots W _ { L } ( t ) ^ { \top } \right] ^ { \frac { L } { L - j } } . } \end{array}
|
| 449 |
+
$$
|
| 450 |
+
|
| 451 |
+
Similarly, from Eqn. (28), we know that for any $2 \leq j \leq L - 1$ ,
|
| 452 |
+
|
| 453 |
+
$$
|
| 454 |
+
\begin{array} { r l } & { \Pi ( t ) ^ { \top } \Pi ( t ) = W _ { 1 } ( t ) ^ { \top } \cdot \cdot \cdot W _ { L } ( t ) ^ { \top } W _ { L } ( t ) \cdot \cdot \cdot W _ { 1 } ( t ) } \\ & { \qquad = V _ { 1 } \mathrm { d i a g } ( \rho _ { 1 } ^ { L } I _ { d _ { 1 } } , \rho _ { 2 } ^ { L } I _ { d _ { 2 } } , \cdot \cdot \cdot , \rho _ { m } ^ { L } I _ { d _ { m } } ) V _ { 1 } ^ { \top } } \\ & { \qquad = \Big [ V _ { 1 } \mathrm { d i a g } ( \rho _ { 1 } ^ { j - 1 } I _ { d _ { 1 } } , \rho _ { 2 } ^ { j - 1 } I _ { d _ { 2 } } , \dots , \rho _ { m } ^ { j - 1 } I _ { d _ { m } } ) V _ { 1 } ^ { \top } \Big ] ^ { \frac { L } { j - 1 } } } \\ & { \qquad = \big [ W _ { 1 } ^ { \top } \cdot \dots W _ { j - 1 } ^ { \top } W _ { j - 1 } ( t ) \cdot \dots W _ { 1 } ( t ) \big ] ^ { \frac { L } { j - 1 } } . } \end{array}
|
| 455 |
+
$$
|
| 456 |
+
|
| 457 |
+
With everything derived above, we now study the dynamics of $\Pi ( t )$ as follows
|
| 458 |
+
|
| 459 |
+
$$
|
| 460 |
+
\begin{array} { l } { { \displaystyle \dot { \mathrm { I I } } ( t ) = \sum _ { j = 1 } ^ { L } \left[ W _ { L } ( t ) \dots W _ { j + 1 } ( t ) \right] ( \dot { W } _ { j } ( t ) ) \left[ W _ { j - 1 } ( t ) \dots W _ { 1 } ( t ) \right] \quad \mathrm { ( d i f f e r e n t i a l ~ c h a i n ~ r u l e ) } } } \\ { { \displaystyle = - \sum _ { j = 1 } ^ { L } \left[ W _ { L } ( t ) \dots W _ { j + 1 } ( t ) W _ { j + 1 } ( t ) ^ { \top } \dots W _ { L } ( t ) ^ { \top } \right] } } \\ { { \displaystyle \qquad \times \frac { \partial \ell ( [ \mathbf { I I } ( t ) ) } { \partial \Pi } \left[ W _ { 1 } ^ { \top } ( t ) \dots W _ { j - 1 } ^ { \top } ( t ) W _ { j - 1 } ( t ) \dots W _ { 1 } ( t ) \right] \quad \mathrm { ( p l u g g i n g - i n ~ ( 1 6 ) ) } } } \\ { { \displaystyle = - \sum _ { j = 1 } ^ { L } \left[ \Pi ( t ) \Pi ( t ) ^ { \top } \right] ^ { \frac { L - j } { \mathrm { x } _ { \mathrm { x } } } } \frac { \partial \ell ( [ \mathbf { I } ( t ) ) } { \partial \Pi } \left[ \Pi ( t ) ^ { \top } \Pi ( t ) \right] ^ { \frac { j - 1 } { \mathrm { x } _ { \mathrm { x } } } } \qquad \mathrm { ( p l u g g g i n g - i n ~ ( 2 9 ) ~ a n d ~ ( 2 6 ) ~ } } } \end{array}
|
| 461 |
+
$$
|
| 462 |
+
|
| 463 |
+
This completes the proof.
|
| 464 |
+
|
| 465 |
+

|
| 466 |
+
Figure 6: Alignment effects between the singular spaces of $W _ { L + 1 } ( t )$ and $\Pi ( t )$ . We train a 3-layer linear neural network on the MNIST dataset and visualize the models at 3, 5, 7, 9 training epochs, respectively. In each figure, the $k ^ { \prime }$ -th row and $k$ -th column pixel is the value of $\vert { \mathbf u } _ { k } ( t ) ^ { \top } { \mathbf v } _ { L + 1 , k ^ { \prime } } ( t ) \vert$ . Darker colors denote values close to 1 while lighter colors denote values close to 0. From the figures, we empirically observe that $| \mathbf { u } _ { k } ( t ) ^ { \top } \mathbf { v } _ { L + 1 , k ^ { \prime } } ( \bar { t } ) | = \mathbb { 1 } \{ k = k ^ { \prime } \}$ approximately holds.
|
| 467 |
+
|
| 468 |
+
# A.3 ASSUMPTIONS
|
| 469 |
+
|
| 470 |
+
Assumption 1. We assume that the initial values of the weight matrices satisfy $W _ { i + 1 } ^ { \top } ( 0 ) W _ { i + 1 } ( 0 ) =$ $W _ { i } ( 0 ) W _ { i } ^ { \top } ( 0 )$ for any $i \in [ L - 1 ]$ .
|
| 471 |
+
|
| 472 |
+
Assumption 2. We assume $| \mathbf { u } _ { k } ( t ) ^ { \top } \mathbf { v } _ { L + 1 , k ^ { \prime } } ( t ) | = \mathbb { 1 } \{ k = k ^ { \prime } \}$ holds for all $t ,$ , where ${ \bf u } _ { k } ( t )$ is the $k$ -th left singular vector of $\Pi ( t )$ and $\mathbf { v } _ { L + 1 , k ^ { \prime } } ( t )$ is the $k ^ { \prime }$ -th right singular vector of $W _ { L + 1 } ( t )$ .
|
| 473 |
+
|
| 474 |
+
Remark: For Assumption 1, it can be achieved in practice by proper random initialization. For Assumption 2, Ji & Telgarsky (2018) proved that under some assumptions, gradient descent optimization will drive consecutive layers of linear networks to satisfy it. We also provide empirical evidence in Fig. 6 to corroborate that this assumption approximately holds.
|
| 475 |
+
|
| 476 |
+
# A.4 PROOF OF THEOREM 1 IN THE MAIN TEXT
|
| 477 |
+
|
| 478 |
+
Theorem 1 (formally stated). Let $\sigma _ { k } ( t )$ for $k \in [ d ]$ be the $k$ -th largest singular value of $\Pi ( t )$ . Then, under Assumptions $^ { l }$ and 2, we have
|
| 479 |
+
|
| 480 |
+
$$
|
| 481 |
+
\begin{array} { r } { \dot { \sigma } _ { k } ( t ) = N L \left( \sigma _ { k } ( t ) \right) ^ { 2 - \frac { 2 } { L } } \sqrt { \left( \sigma _ { k } ( t ) \right) ^ { \frac { 2 } { L } } + M } \left( \mathbf { u } _ { L + 1 , k } ( t ) \right) ^ { \top } G ( t ) \mathbf { v } _ { k } ( t ) , } \end{array}
|
| 482 |
+
$$
|
| 483 |
+
|
| 484 |
+
where ${ \mathbf { u } } _ { L + 1 , k } ( t )$ is the $k$ -th left singular vector of $W _ { L + 1 } ( t )$ , $\mathbf { v } _ { k } ( t )$ is the $k$ -th right singular vector of $\Pi ( t )$ , $M$ is a constant, and $G ( t )$ is defined as
|
| 485 |
+
|
| 486 |
+
$$
|
| 487 |
+
G ( t ) = \sum _ { c = 1 } ^ { C } \mu _ { c } ( \mathbf { e } _ { c } - \bar { \gamma } _ { c } ( t ) ) \bar { X } _ { c } ^ { \top } .
|
| 488 |
+
$$
|
| 489 |
+
|
| 490 |
+
Proof. Recall that for $( L + 1 )$ -layer linear neural networks, given the $i$ -th training sample $X _ { i } \in \mathbb { R } ^ { d }$ , we have
|
| 491 |
+
|
| 492 |
+
$$
|
| 493 |
+
\gamma _ { i } ( t ) = \mathrm { s o f t m a x } ( W _ { L + 1 } ( t ) { \mathbf z } _ { i } ( t ) ) = \mathrm { s o f t m a x } ( W _ { L + 1 } ( t ) \Pi ( t ) X _ { i } ) ,
|
| 494 |
+
$$
|
| 495 |
+
|
| 496 |
+
and the loss is the standard cross-entropy loss defined as follows
|
| 497 |
+
|
| 498 |
+
$$
|
| 499 |
+
\ell ( \Pi ( t ) , W _ { L + 1 } ( t ) ) = \sum _ { i = 1 } ^ { N } - \mathbf { y } _ { i } ^ { \top } \log \gamma _ { i } ( t ) .
|
| 500 |
+
$$
|
| 501 |
+
|
| 502 |
+
By the chain rule, we can derive gradient of $\ell$ with respect to $W _ { L + 1 }$ and $\Pi$ , which are respectively,
|
| 503 |
+
|
| 504 |
+
$$
|
| 505 |
+
\frac { \partial \ell ( \Pi ( t ) , W _ { L + 1 } ( t ) ) } { \partial W _ { L + 1 } } = - ( \mathbf { y } - \boldsymbol { \gamma } ( t ) ) \boldsymbol { X } ^ { \top } \Pi ( t ) ^ { \top } ,
|
| 506 |
+
$$
|
| 507 |
+
|
| 508 |
+
and
|
| 509 |
+
|
| 510 |
+
$$
|
| 511 |
+
\frac { \partial \ell ( \Pi ( t ) , W _ { L + 1 } ( t ) ) } { \partial \Pi } = - W _ { L + 1 } ( t ) ^ { \top } ( \mathbf { y } - \boldsymbol { \gamma } ( t ) ) \boldsymbol { X } ^ { \top } .
|
| 512 |
+
$$
|
| 513 |
+
|
| 514 |
+
Next, under the gradient descent dynamics, the dynamics on $W _ { L + 1 }$ satisfies
|
| 515 |
+
|
| 516 |
+
$$
|
| 517 |
+
\dot { W } _ { L + 1 } ( t ) = - \frac { \partial \ell ( \Pi ( t ) , W _ { L + 1 } ( t ) ) } { \partial W _ { L + 1 } } = ( \mathbf { y } - \boldsymbol { \gamma } ( t ) ) \boldsymbol { X } ^ { \top } \Pi ( t ) ^ { \top } ,
|
| 518 |
+
$$
|
| 519 |
+
|
| 520 |
+
while the dynamics on $\Pi$ requires invoking Lemma 2, which allows us to write
|
| 521 |
+
|
| 522 |
+
$$
|
| 523 |
+
\begin{array} { r l } & { \dot { \Pi } ( t ) = - \displaystyle \sum _ { j = 1 } ^ { L } [ \Pi ( t ) \Pi ( t ) ^ { \top } ] ^ { \frac { L - j } { L } } \frac { \partial \ell ( \Pi ( t ) ) } { \partial \Pi } [ \Pi ( t ) ^ { \top } \Pi ( t ) ] ^ { \frac { j - 1 } { L } } } \\ & { \quad \quad = \displaystyle \sum _ { j = 1 } ^ { L } [ \Pi ( t ) \Pi ( t ) ^ { \top } ] ^ { \frac { L - j } { L } } W _ { L + 1 } ( t ) ^ { \top } ( \mathbf { y } - \boldsymbol { \gamma } ( t ) ) \boldsymbol { X } ^ { \top } [ \Pi ( t ) ^ { \top } \Pi ( t ) ] ^ { \frac { j - 1 } { L } } . } \end{array}
|
| 524 |
+
$$
|
| 525 |
+
|
| 526 |
+
Next, we invoke Lemma 1 on Eqn. (39) and Eqn. (38), respectively, yielding:
|
| 527 |
+
|
| 528 |
+
$$
|
| 529 |
+
\begin{array} { r l } { \dot { \sigma } _ { k } ( t ) = } & { ( \mathbf { u } _ { k } ( t ) ) ^ { \top } \dot { \Pi } ( t ) ( \mathbf { v } _ { k } ( t ) ) } \\ & { = \displaystyle \sum _ { j = 1 } ^ { L } \mathbf { u } _ { k } ( t ) ^ { \top } [ \Pi ( t ) \Pi ( t ) ^ { \top } ] ^ { \frac { L - i } { L } } W _ { L + 1 } ( t ) ^ { \top } ( \mathbf { y } - \gamma ( t ) ) X ^ { \top } [ \Pi ( t ) ^ { \top } \Pi ( t ) ] ^ { \frac { i - 1 } { L } } \mathbf { v } _ { k } ( t ) } \\ & { = L ( \sigma _ { k } ( t ) ) ^ { 2 - \frac { 2 } { L } } \mathbf { u } _ { k } ( t ) ^ { \top } W _ { L + 1 } ( t ) ^ { \top } ( \mathbf { y } - \gamma ( t ) ) X ^ { \top } \mathbf { v } _ { k } ( t ) } \\ & { \qquad \mathrm { ( S V D ~ o n ~ I ~ } ] } \\ & { = L ( \sigma _ { k } ( t ) ) ^ { 2 - \frac { 2 } { L } } \displaystyle \sum _ { k ^ { \prime } } \sigma _ { L + 1 , k ^ { \prime } } \mathbf { u } _ { k } ( t ) ^ { \top } \mathbf { v } _ { L + 1 , k ^ { \prime } } ( t ) ( \mathbf { u } _ { L + 1 , k ^ { \prime } } ( t ) ) ^ { \top } ( \mathbf { y } - \gamma ( t ) ) X ^ { \top } \mathbf { v } _ { k } ( t ) } \\ & { \qquad \mathrm { ( S V D ~ o n ~ } b } \\ & { = L ( \sigma _ { k } ( t ) ) ^ { 2 - \frac { 2 } { L } } \sigma _ { L + 1 , k } ( \mathbf { u } _ { L + 1 , k } ( t ) ) ^ { \top } ( \mathbf { y } - \gamma ( t ) ) X ^ { \top } \mathbf { v } _ { k } ( t ) \qquad \mathrm { ( A s s u m p i o n 2 ) } . } \end{array}
|
| 530 |
+
$$
|
| 531 |
+
|
| 532 |
+
and
|
| 533 |
+
|
| 534 |
+
$$
|
| 535 |
+
\begin{array} { r l } & { \dot { \boldsymbol \sigma } _ { L + 1 , k } ( t ) = \mathbf { u } _ { L + 1 , k } ( t ) ^ { \top } ( \mathbf { y } - \boldsymbol \gamma ( t ) ) \boldsymbol X ^ { \top } \boldsymbol \Pi ( t ) ^ { \top } { \mathbf { v } } _ { L + 1 , k } ( t ) } \\ & { \qquad = \displaystyle \sum _ { k ^ { \prime } } \sigma _ { k ^ { \prime } } \mathbf { u } _ { L + 1 , k } ( t ) ^ { \top } ( \mathbf { y } - \boldsymbol \gamma ( t ) ) \boldsymbol X ^ { \top } { \mathbf { v } } _ { k ^ { \prime } } ( t ) \mathbf { u } _ { k ^ { \prime } } ^ { \top } { \mathbf { v } } _ { L + 1 , k } ( t ) } \\ & { \qquad = \sigma _ { k } \mathbf { u } _ { L + 1 , k } ( t ) ^ { \top } ( \mathbf { y } - \boldsymbol \gamma ( t ) ) \boldsymbol X ^ { \top } { \mathbf { v } } _ { k } ( t ) \qquad \mathrm { ( A s s u m p t i o n ~ 2 ) } . } \end{array}
|
| 536 |
+
$$
|
| 537 |
+
|
| 538 |
+
Combining Eqns. (40) and (41), we have:
|
| 539 |
+
|
| 540 |
+
$$
|
| 541 |
+
\frac { 1 } { L } ( \dot { \sigma } _ { k } ( t ) ) ( \sigma _ { k } ( t ) ) ^ { \frac { 2 } { L } - 1 } = \sigma _ { L + 1 , k } ( t ) ( \dot { \sigma } _ { L + 1 , k } ( t ) ) .
|
| 542 |
+
$$
|
| 543 |
+
|
| 544 |
+
Next, apply integration on both sides, which yields
|
| 545 |
+
|
| 546 |
+
$$
|
| 547 |
+
( \sigma _ { L + 1 , k } ( t ) ) ^ { 2 } = ( \sigma _ { k } ( t ) ) ^ { \frac { 2 } { L } } + M ,
|
| 548 |
+
$$
|
| 549 |
+
|
| 550 |
+
where $M$ a constant.
|
| 551 |
+
|
| 552 |
+
By Eqn. (43), Eqn. (40) can be rewritten as
|
| 553 |
+
|
| 554 |
+
$$
|
| 555 |
+
\begin{array} { r } { \dot { \sigma } _ { k } ( t ) = L ( \sigma _ { k } ( t ) ) ^ { 2 - \frac { 2 } { L } } \sqrt { ( \sigma _ { k } ( t ) ) ^ { \frac { 2 } { L } } + M } \left( \mathbf { u } _ { L + 1 , k } ( t ) \right) ^ { \top } ( \mathbf { y } - \boldsymbol { \gamma } ( t ) ) { X } ^ { \top } \mathbf { v } _ { k } ( t ) . } \end{array}
|
| 556 |
+
$$
|
| 557 |
+
|
| 558 |
+
Finally, notice that $( \mathbf y - \gamma ( t ) ) X ^ { \top }$ can be rewritten as
|
| 559 |
+
|
| 560 |
+
$$
|
| 561 |
+
( \mathbf { y } - \boldsymbol { \gamma } ( t ) ) \boldsymbol { X } ^ { \top } = \sum _ { i = 1 } ^ { N } ( \mathbf { y } - \boldsymbol { \gamma } _ { i } ( t ) ) \boldsymbol { X } _ { i } ^ { \top } = N \sum _ { c = 1 } ^ { C } \mu _ { c } ( \mathbf { e } _ { c } - \bar { \boldsymbol { \gamma } } _ { c } ( t ) ) \bar { X } _ { c } ^ { \top } .
|
| 562 |
+
$$
|
| 563 |
+
|
| 564 |
+
We further substitute Eqn. (45) into Eqn. (44) and obtain
|
| 565 |
+
|
| 566 |
+
$$
|
| 567 |
+
\begin{array} { r } { \dot { \sigma } _ { k } ( t ) = N L ( \sigma _ { k } ( t ) ) ^ { 2 - \frac { 2 } { L } } \sqrt { ( \sigma _ { k } ( t ) ) ^ { \frac { 2 } { L } } + M } \left( \mathbf { u } _ { L + 1 , k } ( t ) \right) ^ { \top } G ( t ) \mathbf { v } _ { k } ( t ) , } \end{array}
|
| 568 |
+
$$
|
| 569 |
+
|
| 570 |
+
where $G ( t )$ is defined as
|
| 571 |
+
|
| 572 |
+
$$
|
| 573 |
+
G ( t ) = \sum _ { c = 1 } ^ { C } \mu _ { c } ( \mathbf { e } _ { c } - \bar { \gamma } _ { c } ( t ) ) \bar { X } _ { c } ^ { \top } .
|
| 574 |
+
$$
|
| 575 |
+
|
| 576 |
+
This completes the proof.
|
| 577 |
+
|
| 578 |
+
# B PROOF OF PROPOSITION 1 IN THE MAIN PAPER
|
| 579 |
+
|
| 580 |
+
Proposition 1 (restated). For a $d$ -by- $d$ correlation matrix $K$ with singular values $( \lambda _ { 1 } , \ldots , \lambda _ { d } )$ , we have:
|
| 581 |
+
|
| 582 |
+
$$
|
| 583 |
+
\sum _ { i = 1 } ^ { d } \left( \lambda _ { i } - \frac { 1 } { d } \sum _ { j = 1 } ^ { d } \lambda _ { j } \right) ^ { 2 } = \| K \| _ { \mathrm { F } } ^ { 2 } - d .
|
| 584 |
+
$$
|
| 585 |
+
|
| 586 |
+
Proof. Given a $d$ -by- $d$ correlation matrix $K$ , since the diagonal entries of $K$ are all 1, we have
|
| 587 |
+
|
| 588 |
+
$$
|
| 589 |
+
\sum _ { i = 1 } ^ { d } \lambda _ { i } = \operatorname { t r } ( K ) = d .
|
| 590 |
+
$$
|
| 591 |
+
|
| 592 |
+
This is because for any symmetric positive definite matrix, the sum of all singular values equals the trace of the matrix.
|
| 593 |
+
|
| 594 |
+
Next, for the left-hand side of Eqn. (7), we have:
|
| 595 |
+
|
| 596 |
+
$$
|
| 597 |
+
\begin{array} { l l } { \displaystyle \sum _ { i = 1 } ^ { d } \left( \lambda _ { i } - \frac { 1 } { d } \sum _ { j = 1 } ^ { d } \lambda _ { j } \right) ^ { 2 } = \sum _ { i = 1 } ^ { d } ( \lambda _ { i } - 1 ) ^ { 2 } } & { ( \mathrm { P l u g - i n ~ E q n . ~ } ( 4 9 ) ) } \\ { \displaystyle } & { = \sum _ { i = 1 } ^ { d } \lambda _ { i } ^ { 2 } - 2 \sum _ { i = 1 } ^ { d } \lambda _ { i } + d } \\ { \displaystyle } & { = \sum _ { i = 1 } ^ { d } \lambda _ { i } ^ { 2 } - d } & { ( \mathrm { P l u g - i n ~ E q n . ~ } ( 4 9 ) ) . } \end{array}
|
| 598 |
+
$$
|
| 599 |
+
|
| 600 |
+
Next, for the right-hand side of Eqn. (7), we have:
|
| 601 |
+
|
| 602 |
+
$$
|
| 603 |
+
\begin{array} { r l } & { \| K \| _ { \mathrm { F } } ^ { 2 } - d = \mathrm { t r } ( K ^ { \top } K ) - d } \\ & { \qquad = \mathrm { t r } ( U S V ^ { \top } V S ^ { \top } U ^ { \top } ) - d } \\ & { \qquad = \mathrm { t r } ( U S S ^ { \top } U ^ { \top } ) - d } \\ & { \qquad = \displaystyle \sum _ { i = 1 } ^ { n } \lambda _ { i } ^ { 2 } - d . } \end{array}
|
| 604 |
+
$$
|
| 605 |
+
|
| 606 |
+
Therefore, we have shown that the left-hand side of Eqn. (7) equals its right-hand side.
|
| 607 |
+
|
| 608 |
+
# C ADDITIONAL EMPIRICAL ANALYSES
|
| 609 |
+
|
| 610 |
+
# C.1 COMPUTATIONAL EFFICIENCY
|
| 611 |
+
|
| 612 |
+
We demonstrate FEDDECORR’s advantage vis- $\grave { \mathbf { a } }$ -vis some of its competitors in terms of its computational efficiency. We compare FEDDECORR with some other methods that also apply additional regularization terms during local training such as FedProx and MOON. We partition CIFAR10, CIFAR100 and TinyImageNet into 10 clients with $\alpha = 0 . 5$ and report the total computation times required for one round of training for FedAvg, FedProx, MOON, and FEDDECORR . Results are shown in Tab. 5. All results are produced with a NVIDIA Tesla V100 GPU. We see that FEDDECORR incurs a negligible computation overhead on top of the na¨ıve FedAvg, while FedProx and MOON introduce about $0 . 5 \sim 1 \times$ additional computation cost. The advantage of FEDDECORR in terms of efficiency is mainly because it only involves calculating the Frobenius norm of a matrix which is extremely cheap. Indeed this regularization operates on the output representation vectors of the model, without requiring computing parameter-wise regularization like FedProx nor extra forward passes like MOON.
|
| 613 |
+
|
| 614 |
+
<table><tr><td></td><td>CIFAR10</td><td>CIFAR100</td><td>TinyImageNet</td></tr><tr><td>FedAvg</td><td>6.7</td><td>6.9</td><td>25.4</td></tr><tr><td>FedProx</td><td>12.1</td><td>12.3</td><td>33.2</td></tr><tr><td>MOON</td><td>12.2</td><td>12.7</td><td>38.1</td></tr><tr><td>FEDDECORR</td><td>6.9</td><td>7.1</td><td>25.7</td></tr></table>
|
| 615 |
+
|
| 616 |
+
Table 5: Comparison of computation times. We report the total computation times (in minutes) for one round of training on the three datasets for FedAvg, FedProx, MOON, and FEDDECORR. Here, FEDDECORR stands for applying FEDDECORR to FedAvg.
|
| 617 |
+
|
| 618 |
+
# C.2 COMPARISON WITH OTHER DECORRELATION METHODS
|
| 619 |
+
|
| 620 |
+
Some decorrelation regularizations such as DeCov (Cogswell et al., 2015) and StructuredDeCov (Xiong et al., 2016) were proposed to improve the generalization capabilities in standard classification tasks. Both these methods operate directly on the covariance matrix of the representations instead of the correlation matrix like our proposed method—FEDDECORR. To compare our FEDDECORR with the existing decorrelation methods, we follow the same procedure as in FEDDECORR and apply DeCov and Structured-DeCov during local training. Our experiments are based on TinyImageNet and FedAvg. TinyImageNet is partitioned into 10 clients according to various $\alpha$ ’s. Results are shown in Tab. 6. Surprisingly, we see that unlike our FEDDECORR which steadily improves the baseline, adding DeCov or Structured-DeCov both degrade the performance in federated learning. We conjecture that this is because directly regularizing the covariance matrix is highly unstable, leading to undesired modification on the representations. This experiment shows that our design of regularization of the correlation matrix instead of the covariance matrix is of paramount importance.
|
| 621 |
+
|
| 622 |
+
Table 6: Comparison with other decorrelation methods. Based on FedAvg and the TinyImageNet dataset, we use different decorrelation regularizers in local training.
|
| 623 |
+
|
| 624 |
+
<table><tr><td></td><td>|FedAvg</td><td>DeCov</td><td>St.-Decov</td><td>FEDDECORR</td></tr><tr><td>a= 0.05</td><td>35.02</td><td>32.88</td><td>32.04</td><td>40.29</td></tr><tr><td>α = 0.1</td><td>39.30</td><td>37.29</td><td>37.74</td><td>43.86</td></tr><tr><td>α = 0.5</td><td>46.92</td><td>46.29</td><td>45.85</td><td>50.01</td></tr></table>
|
| 625 |
+
|
| 626 |
+
# C.3 EXPERIMENTS ON OTHER MODEL ARCHITECTURES
|
| 627 |
+
|
| 628 |
+
In this section, we demonstrate the effectiveness of our method across different model architectures. Here, besides the MobileNetV2 used in the main paper, we also experiment on ResNet18 and ResNet32. Note that ResNet18 is the wider ResNet whose representation dimension is 512 and ResNet32 is the narrower ResNet whose representation dimension is 64. The coefficient of the FedDecorr objective is set to be 0.1 as suggested to be a good universal value of $\beta$ in the paper. The heterogeneity parameter $\alpha$ is set to be 0.05 and we use the CIFAR10 dataset. Our results are shown in Tab. 7. As can be seen, FedDecorr yields consistent improvements across different neural network architectures. One interesting phenomenon is that the improvements brought about by FedDecorr are much larger on wider networks (e.g., MobileNetV2, ResNet18) than on narrower ones (e.g. ResNet32). We conjecture this is because the dimension of the ambient space of wider networks are clearly higher than that of shallower networks. Therefore, relatively speaking, the dimensional collapse caused by data heterogeneity will be more severe for wider networks.
|
| 629 |
+
|
| 630 |
+
Table 7: Effectiveness of FEDDECORR on other model architectures.
|
| 631 |
+
|
| 632 |
+
<table><tr><td></td><td colspan="3">|MobileNetV2 ResNet18 ResNet32</td></tr><tr><td>FedAvg</td><td>64.85</td><td>71.51</td><td>65.76</td></tr><tr><td>+ FEDDECORR</td><td>73.06</td><td>76.54</td><td>67.21</td></tr></table>
|
| 633 |
+
|
| 634 |
+
Table 8: CIFAR10/100 Experiments. We run experiments under various degrees of heterogeneity $( \alpha \in \{ 0 . 0 5 , 0 . 1 , 0 . 5 , \infty \} )$ and report the test accuracy $( \% )$ . All results are (re)produced by us and are averaged over 3 runs (mean $\pm$ std). Bold font highlights the highest accuracy in each column. We add results of Scaffold and FedNova comparing to Tab. 1 in the main paper.
|
| 635 |
+
|
| 636 |
+
<table><tr><td rowspan="2">Method</td><td colspan="4">CIFAR10</td><td colspan="4">CIFAR100</td></tr><tr><td></td><td>α=0.050.1</td><td>0.5</td><td>8</td><td>0.05</td><td>0.1</td><td>0.5</td><td>8</td></tr><tr><td>Scaffold</td><td></td><td></td><td></td><td></td><td>51.99±2.54 74.36±3.10 87.05±0.3989.77±0.24 54.51±0.26 61.42±0.54 68.37±0.44 70.97±0.04</td><td></td><td></td><td></td></tr><tr><td>FedNova</td><td></td><td></td><td></td><td></td><td>63.07±1.59 79.98±1.56 90.23±0.41 92.39±0.18 60.22±0.33 66.43±0.26 71.79±0.17 74.47±0.13</td><td></td><td></td><td></td></tr><tr><td>FedAvg</td><td></td><td></td><td></td><td></td><td>64.85±2.01 76.28±1.22 89.84±0.13 92.39±0.26 59.87±0.25 66.46±0.16 71.69±0.15 74.54±0.15</td><td></td><td></td><td></td></tr><tr><td>FedProx</td><td></td><td></td><td></td><td></td><td>+ FEDDEC0RR 73.06±0.81 80.60±0.91 89.84±0.05 92.19±0.10 61.53±0.11 67.12±0.09 71.91±0.04 73.87±0.18</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>64.11±0.84 76.10±0.40 89.57±0.04 92.38±0.09 60.02±0.46 66.41±0.27 71.78±0.19 74.34±0.03</td><td>+ FEDDEC0RR 71.38±0.81 81.74±0.34 89.96±0.26 92.14±0.20 61.33±0.19 67.00±0.46 71.64±0.10 74.15±0.06</td><td></td><td></td></tr><tr><td>FedAvgM</td><td></td><td></td><td></td><td></td><td>71.34±0.71 77.51±0.58 88.39±0.1791.35±0.15 59.64±0.20 66.36±0.1471.17±0.2 74.20±0.16</td><td></td><td></td><td></td></tr><tr><td>MOON</td><td>+ FEDDEC0RR 73.60±0.82 79.21±0.15 88.70±0.26 91.33±0.13 61.48±0.27 66.60±0.11 71.26±0.21 73.86±0.25</td><td></td><td></td><td></td><td></td><td>68.79±0.69 78.70±0.6690.08±0.10 92.62±0.17 56.79±0.17 65.48±0.29 71.81±0.14 74.30±0.12</td><td></td><td></td></tr></table>
|
| 637 |
+
|
| 638 |
+
<table><tr><td rowspan="2">Method</td><td>TinyImageNet</td></tr><tr><td>α =0.050.1 0.5</td></tr><tr><td>Scaffold FedNova</td><td>8 35.16±0.77 37.87±0.78 44.24±0.14 44.88±0.29 35.28±0.04 39.73±0.07 47.05±0.42 49.57±0.09</td></tr><tr><td>FedAvg</td><td>35.02±0.46 39.30±0.23 46.92±0.25 49.33±0.19</td></tr><tr><td></td><td>+ FEDDEC0RR 40.29±0.18 43.86±0.50 50.01±0.27 52.63±0.26</td></tr><tr><td>FedProx</td><td>35.20±0.30 39.66±0.4347.16±0.07 49.76±0.36</td></tr><tr><td></td><td>+ FEDDEC0RR 40.63±0.05 44.19±0.14 50.26±0.27 52.37±0.36</td></tr><tr><td>FedAvgM</td><td>34.81±0.09 39.72±0.1147.11±0.04 49.67±0.25</td></tr><tr><td></td><td>+ FEDDEC0RR 39.97±0.23 43.95±0.26 50.14±0.11 52.05 ±0.37</td></tr><tr><td>MOON</td><td></td></tr><tr><td></td><td>35.23±0.26 40.53±0.28 47.25±0.66 50.48±0.57</td></tr><tr><td></td><td>+ FEDDEC0RR 40.40±0.24 44.20±0.22 50.81±0.51 53.01±0.45</td></tr></table>
|
| 639 |
+
|
| 640 |
+
Table 9: TinyImageNet Experiments. We run with $\alpha \in \{ 0 . 0 5 , 0 . 1 , 0 . 5 , \infty \}$ and report the test accuracies $( \% )$ . All results are (re)produced by us and are averaged over 3 runs (mean $\pm$ std is reported). Bold font highlights the highest accuracy in each column. We add results of Scaffold and FedNova comparing to Tab. 2 in the main paper.
|
| 641 |
+
|
| 642 |
+
# C.4 COMPARISON WITH OTHER FEDERATED LEARNING BASELINES
|
| 643 |
+
|
| 644 |
+
In this section, we compare FEDDECORR with two other baselines, namely Scaffold (Karimireddy et al., 2020) and FedNova (Wang et al., 2020b). We use the same experimental setups as in the main paper to implement these two baselines. Results on CIFAR10/100 and TinyImageNet are shown in Tab. 8 and Tab. 9, respectively. As shown in the tables, across various datasets and degrees of heterogeneity, adding FEDDECORR on top of a baseline method can outperform the baselines when there is some heterogeneity across the agents, i.e., $\alpha < \infty$ .
|
| 645 |
+
|
| 646 |
+
# C.5 EXPERIMENTS ON ANOTHER TYPE OF HETEROGENEITY
|
| 647 |
+
|
| 648 |
+
In this section, we run experiments under another type of data heterogeneity. Specifically, we follow McMahan et al. (2017) and split the CIFAR10 dataset across different clients such that each client only has a fixed number of classes $C$ (e.g., $C = 2$ indicates each client only has data of two classes). We split the data across 10 clients and choose $C$ to be 2 and 3. Results are shown in Tab. 10. As can
|
| 649 |
+
|
| 650 |
+

|
| 651 |
+
Figure 7: Data heterogeneity causes similar dimensional collapse on other federated learning methods such as FedAvgM (Hsu et al., 2019), FedProx (Li et al., 2020), and MOON (Li et al., 2021b). The $\mathbf { X }$ -axis $( k )$ is the index of singular values.
|
| 652 |
+
|
| 653 |
+

|
| 654 |
+
Figure 8: Data heterogeneity causes similar dimensional collapse on other model architectures during federated learning. The $\mathbf { X }$ -axis $( k )$ is the index of singular values.
|
| 655 |
+
|
| 656 |
+
be observed, under this different heterogeneity scenario, FEDDECORR also yields noticeable and consistent improvements.
|
| 657 |
+
|
| 658 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>|C=2 C=3</td></tr><tr><td rowspan=1 colspan=1>FedAvg</td><td rowspan=1 colspan=1>45.61 67.53</td></tr><tr><td rowspan=1 colspan=1>+ FEDDECORR</td><td rowspan=1 colspan=1>47.6374.51</td></tr></table>
|
| 659 |
+
|
| 660 |
+
Table 10: FEDDECORR yields noticeable and consistent improvements under another type of data heterogeneity.
|
| 661 |
+
|
| 662 |
+
# D ADDITIONAL VISUALIZATIONS ON GLOBAL MODELS
|
| 663 |
+
|
| 664 |
+
In this section, we provide additional visualizations on global models with different federated learning methods, model architectures, and datasets. Through our extensive experimental results, we demonstrate that dimensional collapse is a general problem under heterogeneous data in federated learning.
|
| 665 |
+
|
| 666 |
+
# D.1 VISUALIZATION ON GLOBAL MODELS OF OTHER FEDERATED LEARNING METHODS
|
| 667 |
+
|
| 668 |
+
In the main text, we have shown that global models produced by FedAvg (McMahan et al., 2017) suffer stronger dimensional collapse with increasing data heterogeneity. To further show such dimensional collapse phenomenon is a general problem in federated learning, we visualized global models produced by other federated learning methods such as FedAvg with server momentum (Hsu et al., 2019), FedProx (Li et al., 2020), and MOON (Li et al., 2021b). Specifically, we follow the same procedure as in the main text and plot the singular values of covariance matrices of representations. Results are shown in Fig. 7. From the figure, one can see that all these three other methods also demonstrated the similar hazard of dimensional collapse as in FedAvg.
|
| 669 |
+
|
| 670 |
+
# D.2 VISUALIZATION ON GLOBAL MODELS OF OTHER MODEL ARCHITECTURES
|
| 671 |
+
|
| 672 |
+
In the main text, we have shown the dimensional collapse on global models caused by data heterogeneity with MobileNetV2. In this section, we perform the similar visualization based on other model architectures such as ResNet32 and ResNet18. Note that ResNet32 is a narrower ResNet whose representation dimension is 64 and ResNet18 is a wider ResNet whose representation dimension is 64. We visualize the top 50 singular values for ResNet32 and the top 100 singular values for ResNet18. Results are shown in Fig. 8. From the figure, one can observe that heterogeneous data also lead to dimensional collapse on ResNet32 and ResNet18.
|
| 673 |
+
|
| 674 |
+

|
| 675 |
+
Figure 9: Data heterogeneity causes similar dimensional collapse on other datasets during federated learning. The $\mathbf { X }$ -axis $( k )$ is the index of singular values.
|
| 676 |
+
|
| 677 |
+
# D.3 VISUALIZATION ON GLOBAL MODELS OF OTHER DATASETS
|
| 678 |
+
|
| 679 |
+
In the main text, we use the CIFAR100 dataset for our visualizations. In this section, we perform similar visualizations with other datasets such as CIFAR10 and TinyImageNet. Results are shown in Fig. 9. From the figure, one can also observe that dimensional collapse results from data heterogeneity.
|
| 680 |
+
|
| 681 |
+
# E VISUALIZATION ON OTHER LOCAL CLIENTS
|
| 682 |
+
|
| 683 |
+
In the main text Fig. 2(b), under the four different degrees of data heterogeneity (i.e., $\alpha \in$ $\{ 0 . 0 1 , 0 . 0 5 , 0 . 2 5 , \infty \} )$ ), we compare representations of local models of client 1 and empirically show how data heterogeneity affects representations produced by the local models. In this section, to further corroborate our conclusion, we follow the same procedure and visualize singular values of the covariance matrix of representations produced by local models trained on the rest of the 9 clients under the same $\alpha$ ’s. Results are shown in Fig. 10. From the results, we can obtain the similar observations as in Fig. 2(b) of the main text, namely that stronger data heterogeneity causes more severe dimensional collapse for local models.
|
| 684 |
+
|
| 685 |
+
# F HYPERPARAMETERS OF OTHER FEDERATED LEARNING METHODS
|
| 686 |
+
|
| 687 |
+
The regularization coefficient of FedProx (Li et al., 2020) $\mu$ is tuned across $\{ 1 0 ^ { - 4 } , 1 \overset { \smile } { 0 } ^ { - 3 } , 1 0 ^ { - 2 } , 1 0 ^ { - 1 } \}$ and is selected to be $\begin{array} { r } { \dot { \mu } { } ~ = ~ 1 0 ^ { - 3 } } \end{array}$ ; the regularization coefficient of MOON (Li et al., 2021b) $\mu$ is tuned across $\{ 0 . 1 , 1 . 0 , 5 . 0 , 1 0 . 0 \}$ and is selected to be $\mu = 1 . 0$ ; the server momentum of FedAvgM (Hsu et al., 2019) $\rho$ is tuned across $\{ 0 . 1 , 0 . 5 , 0 . 9 \}$ and is selected to be $\rho = 0 . 5$ .
|
| 688 |
+
|
| 689 |
+
# G PSEUDO-CODE OF FEDDECORR
|
| 690 |
+
|
| 691 |
+
Here, we provide a pytorch-style pseudo-code for FEDDECORR in Alg. 1. All FEDDECORR-specific components are highlight in blue. As indicated in the pseudocode, the only additional operation of FEDDECORR is in adding a regularization term $L _ { \mathrm { F e d D e c o r r } } ( w , X )$ defined in Eqn. (8). This shows that FEDDECORR is an extremely convenient plug-and-play federated learning method.
|
| 692 |
+
|
| 693 |
+
# H STABILITY OF FEDDECORR REGULARIZATION LOSS
|
| 694 |
+
|
| 695 |
+
In this section, we first split CIFAR10 into 10 clients with $\alpha = 0 . 5$ . Then, we plot how FedDecorr loss evolve within 10 local epochs for all the 10 clients in Fig. 11. All training configurations are the same as in the main paper. From the results, one can observe that the optimization process of FedDecorr loss is stable.
|
| 696 |
+
|
| 697 |
+

|
| 698 |
+
Figure 10: Heterogeneous local training data cause dimensional collapse. For each of the clients, given the four models trained under different degrees of heterogeneity, we plot the singular values of covariance matrix of representations in descending orders (the results of client 1 are shown in main text Fig. 2(b)). Representations are computed over the CIFAR100 test set. The $x$ -axis $( k )$ is the index of singular values and the $y$ -axis is the logarithm of the singular values.
|
| 699 |
+
|
| 700 |
+

|
| 701 |
+
Figure 11: How FedDecorr loss evolve within 10 local epochs.
|
| 702 |
+
|
| 703 |
+
# Algorithm 1 PyTorch-style Pseudocode for FEDDECORR. (Blue highlights FEDDECORR-specific code)
|
| 704 |
+
|
| 705 |
+
def FedDecorrLoss(z): # N: batch size # d: representation dimension # z: a batch of representation, with shape (N, d) N,d = z.shape # z-score normalization z = (z - z.mean(0)) / z.std(0) # estimate correlation matrix corr mat $\equiv$ 1/N\*torch.matmul(z.t(), z) # calculate FedDecorr loss loss fed decorr $=$ (corr mat.pow(2)).mean() return loss fed decorr
|
| 706 |
+
|
| 707 |
+
def LocalTraining(train_loader, local_epochs, beta): for e in range(local_epochs): for data, targets in train_loader: # forward propagation. # given the batch of data, compute batch representations z and loss loss, z = . loss $+ =$ beta\*FedDecorr(z) # back propagation and update local model parameters ...
|
| 708 |
+
|
| 709 |
+
# def GlobalAggregation():
|
| 710 |
+
|
| 711 |
+
# receiving models from each clients # aggregating local models with certain schemes # sending aggregated models back to clients
|
| 712 |
+
|
| 713 |
+
# def main():
|
| 714 |
+
|
| 715 |
+
# n_comm_round: number of communication rounds.
|
| 716 |
+
# train_loader: data loader of training data.
|
| 717 |
+
# n_local_epochs: number of local trainig epochs on each client.
|
| 718 |
+
# beta: coefficient of the FedDecorr regularization.
|
| 719 |
+
for comm in range(n_comm_round): LocalTraining(train_loader, n_local_epochs, beta) GlobalAggregation()
|
parse/dev/EXnIyMVTL8s/EXnIyMVTL8s_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/EXnIyMVTL8s/EXnIyMVTL8s_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/EXnIyMVTL8s/EXnIyMVTL8s_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/G2Q2Mh3avow/G2Q2Mh3avow.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/G2Q2Mh3avow/G2Q2Mh3avow_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/G2Q2Mh3avow/G2Q2Mh3avow_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/G2Q2Mh3avow/G2Q2Mh3avow_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/JCCi58IUsh/JCCi58IUsh_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/JCCi58IUsh/JCCi58IUsh_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/JCCi58IUsh/JCCi58IUsh_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/LV8OmADmoOe/LV8OmADmoOe.md
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# IMPROVING THE TRANSFERABILITY OF ADVERSARIAL ATTACKS THROUGH EXPERIENCED PRECISE NESTEROV MOMENTUM
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Deep Neural Networks are vulnerable to adversarial attacks, which makes adversarial attacks serve as a method to evaluate the robustness of DNNs. However, adversarial attacks have high white-box attack success rates but poor transferability, making black-box attacks impracticable in the real world. Momentumbased attacks were proposed to accelerate optimization to improve transferability. Nevertheless, conventional momentum-based attacks accelerate optimization inefficiently during early iterations since the initial value of momentum is zero, which leads to unsatisfactory transferability. Therefore, we propose Experienced Momentum (EM), which is the pre-trained momentum. Initializing the momentum to EM can help accelerate optimization during the early iterations. Moreover, the pre-update of conventional Nesterov momentum based attacks is rough, prompting us to propose Precise Nesterov momentum (PN). PN refines the preupdate by considering the gradient of the current data point. Finally, we integrate EM with PN as Experienced Precise Nesterov momentum (EPN) to further improve transferability. Extensive experiments against normally trained and defense models demonstrate that our EPN is more effective than conventional momentum in the improvement of transferability. Specifically, the attack success rates of our EPN-based attacks are ${ \sim } 1 1 . 9 \%$ and ${ \sim } 1 3 . 1 \%$ higher than conventional momentum-based attacks on average against normally trained and defense models, respectively.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Deep neural networks (DNNs) (Krizhevsky et al., 2012; Szegedy et al., 2015; He et al., 2016; Ioffe & Szegedy, 2015) have been widely applied in computer vision, e.g., autonomous driving (Franchi et al., 2022; Hao et al., 2019; Cococcioni et al., 2018), facial recognition (Chrysos et al., 2020; Ghenescu et al., 2018), and medical image analysis (Akselrod-Ballin et al., 2016; Ding et al., 2017; Liu et al., 2019). However, Szegedy et al. (2013) found that applying certain imperceptible perturbations to images can make DNNs misclassify, and they refer to such perturbed images as adversarial examples $( A E s )$ . Adversarial examples pose a huge threat to the security of DNNs, which attaches extensive attention from researchers.
|
| 12 |
+
|
| 13 |
+
Adversarial attacks can be categorized into white-box attacks and black-box attacks. Typically, iterative gradient-based (Kurakin et al., 2016; Madry et al., 2017) and optimization-based attacks (Carlini & Wagner, 2017) have high white-box but low black-box attack success rates, which means that such two attacks are impracticable in the real world. Transferability, which means adversarial examples crafted on the source model remain effective on other models, makes black-box attacks feasible. Furthermore, iterative gradient-based attacks have the advantages of low computational cost and fast generation speed, thus improving the transferability of iterative gradient-based attacks has become a hotspot in the field of adversarial attacks.
|
| 14 |
+
|
| 15 |
+
Many methods have been proposed to improve the transferability of iterative gradient-based attacks. These methods can be classified into three branches: improving optimization algorithms, input transformations, and disrupting feature space. For example, MI-FGSM (Dong et al., 2018), NI-FGSM (Lin et al., 2019), and VM(N)I-FGSM (Wang & He, 2021) improve gradient ascent (or descent) algorithm to escape from saddle points and poor local extrema to improve transferability; DIM (Xie et al., 2019), TIM (Dong et al., 2019), and SIM (Lin et al., 2019) craft adversarial examples on a set of models derived by input transformations to prevent overfitting and improve transferability; NRDM (Naseer et al., 2018), FDA (Ganeshan et al., 2019), and FIA (Wang et al., 2021) disrupt deep features of DNNs to craft highly transferable adversarial examples.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Comparison of conventional Polyak momentum and experienced Polyak momentum. Adversarial examples are crafted on the source model (Inception-v3) and used to attack the target model (VGG16). Our Experienced MI-FGSM (EMI-FGSM), which integrates EM into MI-FGSM, causes misclassification with higher loss and confidence than MI-FGSM, thus EMI-FGSM can mislead the attention of the target model better than MI-FGSM.
|
| 19 |
+
|
| 20 |
+
Those mentioned above adversarial attacks mostly adopt the momentum (Polyak, 1964; Nesterov, 1983) to accelerate optimization. However, such momentum-based adversarial attacks (e.g., M(N)IFGSM, VM(N)I-FGSM, and FIA) have the problem of initializing the momentum to zero, resulting in inefficient acceleration due to momentum accumulating few gradients during the first few iterations. Therefore, we propose Experienced Momentum (EM), which is the pre-trained momentum. Before the iterations, the momentum is initialized to EM instead of zero, leading to better acceleration in the first few iterations. The comparison of conventional Polyak momentum (Polyak, 1964) and experienced Polyak momentum is shown in Fig. 1. To prevent overfitting on the source model, we train EM on a set of models derived by Random Channels Swapping (RCS). EM and RCS are detailed in Sec. 3.1.
|
| 21 |
+
|
| 22 |
+
Furthermore, adversarial attacks (e.g., NI-FGSM and VNI-FGSM) based on Nesterov momentum (i.e., Nesterov Accelerated Gradient, NAG (Nesterov, 1983)) have the disadvantage that the preupdate is rough. Specifically, during each iteration, the parameters are first pre-updated along the momentum to obtain the pre-update point, which is an estimation of the next position. Then the preupdate is modified by the gradient of the pre-update point. Such looking-ahead property of Nesterov momentum makes parameters escape from saddle points and poor local extrema easier and faster, resulting in improving transferability. However, pre-updating only along the momentum is rough, and the estimation of the next position of the parameters is imprecise. Therefore, we propose Precise Nesterov momentum (PN), which not only retains the looking-ahead property but also refines the pre-update by adopting the gradient of the current data point. To improve transferability further, we integrate EM with PN as Experienced Precise Nesterov momentum (EPN). PN and EPN are detailed in Sec. 3.2.
|
| 23 |
+
|
| 24 |
+
Overall, we make the following contributions:
|
| 25 |
+
|
| 26 |
+
• We propose Experienced Momentum (EM), which is trained on a set of models derived by Random Channels Swapping (RCS). Initializing the momentum to EM can accelerate optimization effectively during the early iterations to improve transferability.
|
| 27 |
+
|
| 28 |
+
• We propose Precise Nesterov momentum (PN), which adopts the gradient of the current data point to refine the pre-update to escape from saddle points and poor local extrema easier and faster. We also integrate EM with PN as Experienced Precise Nesterov momentum (EPN) to improve transferability further. • Extensive experiments on normally trained and defense models demonstrate that our EPN is more effective than conventional momentum for improving transferability.
|
| 29 |
+
|
| 30 |
+
# 2 RELATED WORK
|
| 31 |
+
|
| 32 |
+
# 2.1 TRANSFERABLE ADVERSARIAL ATTACKS
|
| 33 |
+
|
| 34 |
+
Since adversarial examples were discovered by Szegedy et al. (2013), many methods (Goodfellow et al., 2014; Kurakin et al., 2016; Carlini & Wagner, 2017) have been proposed to craft adversarial examples to demonstrate the vulnerability of DNNs. We focus on the transferability of iterative gradient-based attacks and review related works from three branches: improving optimization algorithms, input transformations, and disrupting feature space.
|
| 35 |
+
|
| 36 |
+
Improving optimization algorithms. Dong et al. (2018) integrated Polyak momentum (Polyak, 1964) into I-FGSM (Kurakin et al., 2016) to accelerate gradient ascent (or descent) to improve transferability. Inspired by the fact that Nesterov momentum (Nesterov, 1983) is superior to Polyak momentum, Lin et al. (2019) integrated Nesterov momentum into I-FGSM to improve transferability further. Wang & He (2021) used the gradient variance of the previous iteration to tune the current gradient to stabilize the update direction and escape from saddle points and poor local extrema.
|
| 37 |
+
|
| 38 |
+
Input transformations. The nature of input transformations is crafting adversarial examples on a set of derived models to prevent overfitting. Xie et al. (2019) performed random resizing and padding with probability $p$ to derive models. Dong et al. (2019) convolved the gradient to approximate translating input. Lin et al. (2019) scaled the input with the scale factor $1 / 2 ^ { i }$ to derive a set of models.
|
| 39 |
+
|
| 40 |
+
Disrupting feature space. Naseer et al. (2018) created maximum distortions in the feature space to craft adversarial examples, based on the intuition that features of DNNs are highly generalizable. Ganeshan et al. (2019) highly corrupted deep features by disrupting features at each layer of DNNs to improve transferability. Wang et al. (2021) described feature importance with the aggregate gradient and disrupted important object-aware features to achieve stronger transferability.
|
| 41 |
+
|
| 42 |
+
# 2.2 ADVERSARIAL TRAINING
|
| 43 |
+
|
| 44 |
+
Adversarial training as a common defense measure can validate transferability further. Adversarial training increases robustness by adding adversarial examples to the training data. Goodfellow et al. (2014) showed that adversarially trained models are more robust. However, Kurakin et al. (2016) pointed out that adversarial training is not robust to iterative attacks. Moreover, Tramer et al. (2017) \` showed that adversarially trained models are still vulnerable to simple white-box and black-box attacks. Therefore, they proposed ensemble adversarial training adding adversarial examples crafted from other models to the training data.
|
| 45 |
+
|
| 46 |
+
# 3 METHODOLOGY
|
| 47 |
+
|
| 48 |
+
Given a target model $f ^ { \prime } ( x ; { \pmb \theta } ^ { \prime } )$ , where $_ { \textbf { \em x } }$ is an input, and $\pmb { \theta } ^ { \prime }$ is the parameters of $f ^ { \prime }$ . Let $J ( \cdot , y )$ be a loss function, where $y$ is the ground-truth label of the input $_ { \textbf { \em x } }$ . A non-targeted adversarial example $\pmb { x } ^ { a d v }$ satisfies $f ^ { \prime } ( { \pmb x } ; { \hat { \pmb \theta } } ^ { \prime } ) \neq { \bar { f ^ { \prime } } } ( { \pmb x } ^ { a d v } ; { \pmb \theta } ^ { \prime } )$ under the constraint of $| | { \pmb x } ^ { a d v } \bar { - } { \pmb x } | | _ { p } \le \epsilon .$ , where $| | \cdot | | _ { p }$ denotes the $L ^ { p }$ norm, and $p$ is generally $0 , 1 , 2 , \infty$ . In this paper, we focus on $p = \infty$ . Note that our methods can be generalized to $p = 0 , 1 , 2$ easily. Crafting non-targeted adversarial examples can be described as solving the following optimization problem:
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
\underset { \pmb { x } ^ { a d v } } { \arg \operatorname* { m a x } } J ( f ^ { \prime } ( \pmb { x } ^ { a d v } ; \pmb { \theta } ^ { \prime } ) , y ) , \quad \mathrm { s . t . } | | \pmb { x } ^ { a d v } - \pmb { x } | | _ { p } \leq \epsilon .
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
In this paper, we focus on non-targeted attacks. Our proposed methods can be easily transformed into targeted attacks by replacing the above objective function with $- J ( f ^ { \prime } ( x ^ { a d v } ; \pmb { \theta } ^ { \prime } ) , \mathbf { \bar { \psi } } ^ { * } )$ , where $y ^ { * }$ denotes the target label.
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
Figure 2: Illustration of training EM during each iteration.
|
| 58 |
+
|
| 59 |
+
Many gradient-based methods have been proposed to solve Eq. 1, e.g., FGSM (Goodfellow et al., 2014), I-FGSM (Kurakin et al., 2016), and PGD (Madry et al., 2017). However, the parameters $\pmb { \theta } ^ { \prime }$ of the target model $f ^ { \prime }$ is inaccessible for black-box attacks, resulting in the inability to solve Eq. 1 directly. Therefore, the target model $f ^ { \prime }$ is usually replaced with a model $f$ (i.e., the source model) with accessible parameters $\pmb \theta$ , and then adversarial examples are crafted on the source model $f$ to attack the target model $f ^ { \prime }$ . To achieve effective black-box attacks, adversarial examples crafted on the source model $f$ are required to have high transferability. Therefore, we propose Experienced Momentum (EM, detailed in Sec. 3.1) and Precise Nesterov momentum (PN, detailed in Sec. 3.2) to improve transferability. EM and PN can be naturally combined as Experienced Precise Nesterov momentum (EPN, detailed in Sec. 3.2) to further improve transferability.
|
| 60 |
+
|
| 61 |
+
# 3.1 EXPERIENCED MOMENTUM
|
| 62 |
+
|
| 63 |
+
Momentum-based attacks initialize momentum to zero, resulting in inefficient acceleration during the first few iterations. Therefore, we propose Experienced Momentum (EM), which is the pretrained momentum. Setting the initial momentum to EM can accelerate the optimization during the early iterations. To prevent overfitting of EM and improve transferability further, we train EM on a set of models derived by Random Channels Swapping (RCS). RCS derives models by randomly swapping the channels of the input image, which is equivalent to randomly swapping the “block” dimensions of the original model, leading to various decision boundaries of derived models. Therefore, training EM on derived models can prevent overfitting. The specific procedure for training EM is as follows.
|
| 64 |
+
|
| 65 |
+
First of all, we perform RCS on the input image $_ { \textbf { \em x } }$ . Specifically, we denote the input image $_ { \textbf { \em x } }$ as an RGB triplet $( R , G , B )$ , and then the input image $_ { \textbf { \em x } }$ through RCS can be denoted as $\bar { S } ( { \pmb x } )$ , where $S ( { \pmb x } ) \in \{ ( R , G , B ) , ( R , B , G ) , ( G , R , B ) , ( G , B , R ) , ( B , R , G ) , ( B , G , R ) \} .$ , $S ( \cdot )$ denotes RCS. Secondly, $S ( { \pmb x } )$ is fed into the source model $f$ to derive $f ( S ( \cdot ) , y )$ . Thirdly, we pre-perturb the input image $_ { \textbf { \em x } }$ on the derived model $f ( S ( \cdot ) , y )$ by iterative gradient-based attacks to prevent overfitting. As shown in Fig. 2, we accumulate gradients to training EM during each iteration. Finally, we follow the above procedure repeatedly to make the EM more generalizable. After training EM, we set the initial value of momentum to EM to accelerate the early iterations.
|
| 66 |
+
|
| 67 |
+
# 3.2 PRECISE NESTEROV MOMENTUM
|
| 68 |
+
|
| 69 |
+
Nesterov momentum based Attack (e.g., NI-FGSM (Lin et al., 2019) and VNI-FGSM (Wang & He, 2021)) only pre-update along the momentum roughly, resulting in the imprecision of the pre-update point that is the estimate of the next iterative position. Against this disadvantage, we propose Precise Nesterov momentum (PN), which considers the gradient of the current data point in the pre-update to make the pre-update precise. Specifically, during each iteration, the pre-update is performed along the gradient of the current data point and momentum successively to obtain the pre-update point, and then we use the gradient of the pre-update point to modify the pre-update. We integrate PN into I-FGSM as PNI-FGSM. The $t$ -th iteration of PNI-FGSM can be formalized as follows:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\widetilde { \pmb x } _ { t } ^ { a d v } = \pmb x _ { t } ^ { a d v } + \alpha \cdot \left[ \frac { \nabla _ { \pmb x _ { t } ^ { a d v } } J ( f ( \pmb x _ { t } ^ { a d v } ; \pmb \theta ) , y ) } { | | \nabla _ { \pmb x _ { t } ^ { a d v } } J ( f ( \pmb x _ { t } ^ { a d v } ; \pmb \theta ) , y ) | | _ { 1 } } + \mu \cdot { \pmb g } _ { t - 1 } \right] ,
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
Input : A source model $f$ with parameters $\pmb \theta$ and a loss function $J$ . An original image $_ { \textbf { \em x } }$ with ground-truth label $y$ . Input : The maximum perturbation $\epsilon$ , the number of iterations $T$ , and the decay factor $\mu$ . Input : The epochs of pretraining epochs. Output: An adversarial example $\bar { \boldsymbol { x } } ^ { a \bar { d } v }$ . 1 $\alpha \epsilon / T$ ; $\pmb { g } ^ { e x p } \mathbf { 0 }$ ; 2 for $n \gets 1$ to epochs do 3 $\hat { \pmb { x } } _ { 1 } ^ { a d v } { \pmb { x } }$ ; 4 for $t \gets 1$ to $T$ do 5 $\begin{array} { r l } & { \widetilde { x } _ { t } ^ { a d v } \gets \hat { x } _ { t } ^ { a d v } + \alpha \cdot \left[ \frac { \nabla _ { \hat { x } _ { t } ^ { a d v } } J ( f ( S ( \hat { x } _ { t } ^ { a d v } ) ; \pmb \theta ) , y ) } { | | \nabla _ { \hat { x } _ { t } ^ { a d v } } J ( f ( S ( \hat { x } _ { t } ^ { a d v } ) ; \pmb \theta ) , y ) | | _ { 1 } } + \mu \cdot g ^ { e x p } \right] ; } \\ & { g ^ { e x p } \gets \frac { \nabla _ { \hat { x } _ { t } ^ { a d v } } J ( f ( S ( \hat { x } _ { t } ^ { a d v } ) ; \pmb \theta ) , y ) } { | | \nabla _ { \hat { x } _ { t } ^ { a d v } } J ( f ( S ( \hat { x } _ { t } ^ { a d v } ) ; \pmb \theta ) , y ) | | _ { 1 } } + \mu \cdot g ^ { e x p } + \frac { \nabla _ { \widetilde { x } _ { t } ^ { a d v } } J ( f ( \widetilde { x } _ { t } ^ { a d v } ; \pmb \theta ) , y ) } { | | \nabla _ { \widetilde { x } _ { t } ^ { a d v } } J ( f ( \widetilde { x } _ { t } ^ { a d v } ; \pmb \theta ) , y ) | | _ { 1 } } ; } \\ & { \hat { x } _ { t + 1 } ^ { a d v } \gets \mathrm { C l i p } _ { ( \pmb { x } , \epsilon ) } \left\{ \hat { x } _ { t } ^ { a d v } + \alpha \cdot \mathrm { s i g n } ( g ^ { e x p } ) \right\} ; } \end{array}$ 6 7 8 end 9 end 10 ${ \pmb x } _ { 1 } ^ { a d v } { \pmb x } ; { \pmb g } _ { 0 } { \pmb g } ^ { e x p }$ ; 11 for $t \gets 1$ to $T$ do 12 Update $\mathbf { \nabla } _ { \mathbf { \boldsymbol { g } } _ { t } }$ and $\pmb { x } _ { t + 1 } ^ { a d v }$ by Eq. 2, 3, 4; 13 end 14 return ${ \pmb x } ^ { a d v } { \pmb x } _ { T + 1 } ^ { a d v }$ .
|
| 76 |
+
|
| 77 |
+
Algorithm 1: Experienced Precise Nesterov momentum I-FGSM (EPNI-FGSM)
|
| 78 |
+
Table 1: The abbreviations used in the paper.
|
| 79 |
+
|
| 80 |
+
<table><tr><td>Abbreviation</td><td>Explanation</td></tr><tr><td></td><td></td></tr><tr><td>D(T)I-MI-FGSM</td><td>the combination of D(T)IM and MI-FGSM</td></tr><tr><td>SI-NI-FGSM</td><td>the combination of SIMand NI-FGSM</td></tr><tr><td>D(T,S)I-EPNI-FGSM</td><td>the combination of D(T,S)IM and EPNI-FGSM</td></tr><tr><td>VT-M(N)I-FGSM</td><td>i.e., VM(N)I-FGSM</td></tr><tr><td>VT-EPNI-FGSM</td><td>the combination of Variance Tuning (VT)(Wang & He,2021) and EPNI-FGSM</td></tr><tr><td>FI-MI-FGSM FI-EPNI-FGSM</td><td>i.e., FIA</td></tr><tr><td></td><td>the combination of Feature Importance-aware (FI) (Wang et al.,2021) and EPNI-FGSM</td></tr></table>
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
g _ { t } = \frac { \nabla _ { x _ { t } ^ { a d v } } J ( f ( x _ { t } ^ { a d v } ; \pmb { \theta } ) , y ) } { | | \nabla _ { x _ { t } ^ { a d v } } J ( f ( x _ { t } ^ { a d v } ; \pmb { \theta } ) , y ) | | _ { 1 } } + \mu \cdot g _ { t - 1 } + \frac { \nabla _ { \widetilde { x } _ { t } ^ { a d v } } J ( f ( \widetilde { x } _ { t } ^ { a d v } ; \pmb { \theta } ) , y ) } { | | \nabla _ { \widetilde { x } _ { t } ^ { a d v } } J ( f ( \widetilde { x } _ { t } ^ { a d v } ; \pmb { \theta } ) , y ) | | _ { 1 } } ,
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\begin{array} { r } { \pmb { x } _ { t + 1 } ^ { a d v } = \mathrm { C l i p } _ { ( \pmb { x } , \epsilon ) } \left\{ \pmb { x } _ { t } ^ { a d v } + \alpha \cdot \mathrm { s i g n } ( \pmb { g } _ { t } ) \right\} , } \end{array}
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
where $\mathbf { \nabla } _ { \mathbf { \boldsymbol { g } } _ { t } }$ denotes the momentum, ${ \bf { \mathit { g } } } _ { 0 } = { \bf { 0 } }$ , and $\mu$ denotes the decay factor.
|
| 91 |
+
|
| 92 |
+
We combine EM and PN as Experienced Precise Nesterov momentum (EPN) to further improve transferability. The algorithm of EPNI-FGSM, which integrates EPN into I-FGSM, is summarized in Algorithm 1. Particularly, if $\frac { \nabla _ { \widetilde { \pmb { x } } _ { t } ^ { a d v } } J ( f ( \widetilde { \pmb { x } } _ { t } ^ { a d v } ; \pmb { \theta } ) , y ) } { | | \nabla _ { \widetilde { \pmb { x } } _ { t } ^ { a d v } } J ( f ( \widetilde { \pmb { x } } _ { t } ^ { a d v } ; \pmb { \theta } ) , y ) | | _ { 1 } } = \mathbf { 0 }$ , EPNI-FGSM degrades to Experienced MI-FGSM (EMI-FGSM). If $\frac { \nabla _ { \hat { \pmb { x } } _ { t } ^ { a d v } } J ( f ( S ( \hat { \pmb { x } } _ { t } ^ { a d v } ) ; \pmb { \theta } ) , y ) } { | | \nabla _ { \hat { \pmb { x } } _ { t } ^ { a d v } } J ( f ( S ( \hat { \pmb { x } } _ { t } ^ { a d v } ) ; \pmb { \theta } ) , y ) | | _ { 1 } } = \mathbf { 0 }$ , EPNI-FGSM degrades to Experienced NI-FGSM (ENI-FGSM). If $e p o c h s = 0$ , EPNI-FGSM degrades to PNI-FGSM.
|
| 93 |
+
|
| 94 |
+
# 4 EXPERIMENTS
|
| 95 |
+
|
| 96 |
+
We conduct extensive experiments on normally trained and defense models to validate that our EPN is more efficient than conventional momentum. We first present the experimental settings in Sec. 4.1. Then, we report the results for attacking normally trained and defense models in Sec. 4.2 and
|
| 97 |
+
|
| 98 |
+
Table 2: The attack success rates $( \% )$ of adversarial examples crafted on source models against normally trained target models. “\*” indicates the model being white-box attacked. “Avg” means the average attack success rate.
|
| 99 |
+
|
| 100 |
+
<table><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td rowspan="6">Iv3</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>69.2 56.7</td><td>67.9</td><td>68.2</td><td>66.2</td><td>63.0</td><td>61.4</td><td>61.2</td><td></td></tr><tr><td>TI-MI-FGSM SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours)</td><td>41.8 77.4 88.7 70.6 90.2</td><td>99.7* 100.0* 100.0* 100.0* 100.0*</td><td>37.9 72.7 87.3 68.8 87.1</td><td>31.5 69.8 86.0 59.6</td><td>46.4 67.6 78.5 69.3</td><td>47.6 67.3 81.3 69.8</td><td>44.9 68.0 83.4 68.9</td><td>41.9 61.5 80.2 65.5 76.4</td><td>38.6 62.1 80.5 63.3</td><td>54.9 70.0 80.4 73.5</td><td>72.8 83.8 76.5</td><td>56.2 73.8 83.8 78.5</td><td>58.3 71.9 84.2 77.9</td><td>47.9 70.7 86.1 74.7</td><td>46.5 68.4 84.9 72.9</td><td>43.5 64.8 82.9 70.8</td><td>42.8 65.9 83.4 71.5</td><td>66.0 49.2 70.9 84.4 72.5</td></tr><tr><td>SI-EPNI-FGSM(Ours) VT-MI-FGSM VT-NI-FGSM</td><td>70.5 76.2</td><td>100.0* 100.0*</td><td>69.7 76.2</td><td>85.1 64.9 70.5</td><td>80.1 61.7 65.6</td><td>81.2 63.6 68.4</td><td>81.7 65.7 71.2</td><td>60.0 65.2</td><td>78.2 58.6 64.1</td><td>80.6 65.0 70.5</td><td>83.1 69.2 73.4</td><td>84.4 68.7 73.4</td><td>82.6 66.7 73.2</td><td>86.7 65.8 71.2</td><td>83.8 63.8 71.3</td><td>80.9 65.0 69.2</td><td>81.7 62.6 68.2</td><td>83.8 67.1 72.2</td></tr><tr><td>VT-EPNI-FGSM(Ours) FI-MI-FGSM FI-EPNI-FGSM(Ours)</td><td>84.8 85.8 90.0</td><td>100.0* 97.1* 97.4*</td><td>83.3 85.4 88.0</td><td>78.1 81.8 84.8</td><td>77.0 79.4 81.0</td><td>78.8 80.1 82.4</td><td>79.4 79.5 84.3</td><td>75.8 76.3 79.6</td><td>73.3 74.5 78.5</td><td>80.2 81.0 85.5</td><td>83.3 82.7 87.0</td><td>82.0 82.7 85.9</td><td>81.5 83.2 86.3</td><td>79.7 81.3 84.0</td><td>80.1 78.8 83.5</td><td>78.3 77.2 80.5</td><td>78.5 77.8 81.7</td><td>80.8 81.4</td></tr><tr><td>MI-FGSM NI-FGSM EPNI-FGSM(Ours)</td><td>46.4 49.0 68.1</td><td>44.0 45.6 65.3</td><td>45.4 48.5 68.4</td><td>99.6* 100.0* 100.0*</td><td>40.0 40.6 55.2</td><td>39.2 38.7 53.8</td><td>41.3 42.1 55.5</td><td>33.9 34.9 48.4</td><td>32.7 32.9 47.9</td><td>49.9 53.5 63.8</td><td>53.2 54.3 67.8</td><td>51.4 54.6 66.6</td><td>50.6 54.3 65.3</td><td>38.6 37.5 54.7</td><td>35.3 37.5 50.7</td><td>35.0 33.8 49.0</td><td>32.7 33.2 48.1</td><td>84.7 45.2 46.5 60.5</td></tr><tr><td>DI-MI-FGSM TI-MI-FGSM SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours) SI-EPNI-FGSM (Ours) VT-MI-FGSM</td><td>63.2 41.5 74.7 82.8 65.1</td><td>62.3 44.5 81.7 83.2 68.2</td><td>65.4 42.0 75.1 84.1 67.6</td><td>98.4* 97.9* 99.3* 100.0* 99.9* 100.0*</td><td>54.2 47.1 65.4 70.7 66.6</td><td>54.2 47.6 65.8 72.3 69.5</td><td>55.7 47.3 69.7 74.4 68.9</td><td>48.6 42.9 65.4 67.5 65.2</td><td>51.0 41.8 64.7 71.1 63.2</td><td>59.3 55.9 68.9 74.6 73.8</td><td>64.4 56.7 71.6 79.5 75.0</td><td>62.8 55.5 71.8 78.2 73.6</td><td>64.7 53.9 73.0 79.6 74.2</td><td>57.0 49.2 72.1 75.0 72.9</td><td>52.8 45.3 68.7 73.0 68.4</td><td>51.8 46.9 67.3 69.6 69.1</td><td>52.6 41.9 68.0 70.9 65.4</td><td>59.9 50.5 72.0 76.9 71.0</td></tr><tr><td></td><td>VT-NI-FGSM VT-EPNI-FGSM(Ours)</td><td>90.9 63.2 66.3 81.0</td><td>93.1 66.6 71.0 82.1</td><td>88.6 68.8 99.6* 73.1 99.8*</td><td>79.1 57.8 59.3</td><td>81.3 57.8 59.3</td><td>85.5 60.7 62.3 75.4</td><td>79.6 53.6 56.9 70.0</td><td>82.9 54.9 56.9 70.6</td><td>83.2 61.7 66.8 77.3</td><td>85.5 63.5 68.2 80.4</td><td>86.0 64.4 68.2 79.9</td><td>86.1 64.0 68.1</td><td>86.3 59.8 60.9</td><td>83.6 56.4 58.0 73.4</td><td>81.5 54.2 57.2</td><td>84.6 56.1 58.5</td><td>85.8 62.5 65.3</td></tr><tr><td></td><td>FI-MI-FGSM FI-EPNI-FGSM (Ours)</td><td>76.3 78.0</td><td>76.0 77.3</td><td>83.1 76.3 89.7* 78.0 91.0*</td><td>100.0* 71.7 67.5 69.8</td><td>72.4 68.0 69.9</td><td>69.7 72.2</td><td>66.8 68.9</td><td>65.5 67.4</td><td>72.5 73.5</td><td>73.7 74.0</td><td>73.4 74.5</td><td>78.7 73.5 73.6</td><td>77.3 70.7 71.7</td><td>68.3 69.0</td><td>72.0 66.8 66.9</td><td>71.9 67.0 67.2</td><td>77.5 71.9 73.1</td></tr><tr><td rowspan="5">R152</td><td>MI-FGSM NI-FGSM EPNI-FGSM(Ours)</td><td>68.9 75.7 91.5</td><td>59.4 64.1 85.8</td><td>53.8 58.0 79.2 74.2</td><td>49.4 81.0 51.7 86.0</td><td>83.3 87.7 94.8 96.2</td><td>92.1 94.7 98.7</td><td>94.5 96.9 99.4</td><td></td><td>100.0* 100.0* 100.0*</td><td>72.7 74.1 76.1 77.4 88.7 89.8</td><td>72.5 77.0 89.5</td><td></td><td>72.5 76.2 89.6</td><td>86.5 87.4 96.5</td><td>83.0 85.1 96.5</td><td>82.5 84.0 85.5 86.7 97.6 96.7</td><td></td><td>77.1 80.4 92.0</td></tr><tr><td>DI-MI-FGSM TI-MI-FGSM SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours) SI-EPNI-FGSM(Ours)</td><td>85.6 57.1 85.1 97.6 80.3</td><td>82.9 51.3 77.2 96.9 78.2</td><td>75.5 50.1 71.1 94.2 75.7</td><td>72.1 41.4 66.5 92.1</td><td>91.8 70.9 89.6 98.0 89.3</td><td>93.8 75.0 92.0 98.9 91.4</td><td>96.0 80.5 95.3 99.4 94.0</td><td>96.8 84.5 97.8 99.6 95.5</td><td>100.0* 100.0* 100.0* 100.0* 100.0*</td><td>84.0 65.4 82.1 94.3 81.7</td><td>84.4 65.0 83.0 94.6 81.2</td><td>85.5 64.1 81.9 94.7 80.8</td><td>84.6 64.0 81.9 95.2 81.5</td><td>93.7 75.1 93.6 99.4 91.8</td><td>94.0 71.5 91.8 99.3 89.2</td><td>93.7 70.7 92.4 99.6 91.0</td><td>94.4 68.1 91.8 99.1 89.7</td><td>88.8 67.9 86.7 97.2 85.8</td></tr><tr><td>VT-MI-FGSM VT-NI-FGSM VT-EPNI-FGSM(Ours)</td><td>95.3 83.8 87.7 95.4</td><td>91.4 79.6 81.9 92.1</td><td>88.2 74.1 78.9</td><td>66.8 84.8 70.9 74.4</td><td>96.7 92.2 93.5</td><td>97.6 93.7 94.9</td><td>98.6 96.4 98.2</td><td>99.0 97.5 98.7</td><td>100.0* 100.0* 100.0*</td><td>90.3 83.6 85.3</td><td>91.2 82.8 87.2</td><td>92.2 84.4 88.2</td><td>90.5 83.8 86.9</td><td>99.0 94.2 96.1</td><td>98.2 92.4 94.9</td><td>98.1 93.1 95.1</td><td>98.2 93.6 95.7</td><td>94.7 88.0 90.4</td></tr><tr><td>FI-MI-FGSM FI-EPNI-FGSM(Ours) MI-FGSM</td><td>93.3 95.4 78.0</td><td>88.6 93.2</td><td>89.7 88.7 93.1</td><td>86.9 85.1 90.1</td><td>97.9 95.5 96.8</td><td>98.8 96.8 97.9</td><td>99.5 97.5 98.3</td><td>99.8 98.9 98.9</td><td>100.0* 99.9* 100.0*</td><td>93.6 92.5 94.1</td><td>93.5 92.0 94.8</td><td>93.7 93.0 95.0</td><td>94.4 93.8 95.1</td><td>99.4 97.0 97.6</td><td>98.7 95.7 97.4</td><td>99.4 96.6 97.3</td><td>98.8 96.9 97.6</td><td>96.0 94.2 96.0</td></tr><tr><td>NI-FGSM EPNI-FGSM(Ours) DI-MI-FGSM TI-MI-FGSM SI-NI-FGSM V16</td><td>78.8 93.5 88.4 60.6</td><td>59.2 61.6 82.3 75.6 51.1</td><td>63.8 68.8 87.0 77.5</td><td>43.8 47.3 68.1 59.5</td><td>80.0 82.3 91.5 87.8</td><td>73.3 76.1 90.0 83.9</td><td>75.0 78.0 90.0 86.2</td><td>63.7 67.0 82.9 73.8 53.6</td><td>58.7 60.4 77.6 69.7 48.4</td><td>94.7 96.8 99.0 98.3</td><td>98.3 99.2 100.0 98.8</td><td>99.8* 99.9* 100.0* 100.0*</td><td>99.2 99.1 99.9 99.4</td><td>77.0 79.1 91.2 88.0</td><td>69.5 72.1 87.3 81.5</td><td>65.3 66.4 85.8 78.2</td><td>64.9 66.0 87.0 77.5</td><td>74.4 76.4</td><td>89.0 83.8 64.6</td></tr><tr><td>VT-MI-FGSM VT-NI-FGSM</td><td>DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours) SI-EPNI-FGSM(Ours)</td><td>89.8 96.2 82.5 96.1 87.5</td><td>77.5 90.6 74.6 89.1 75.2</td><td>48.5 80.7 62.5 92.6 81.9 77.4 58.1 91.8 80.0 77.9 61.9</td><td>33.4</td><td>71.2 89.1 95.9 88.4 93.6 89.9</td><td>65.4 84.8 94.1 84.2 91.2 86.1</td><td>60.3 85.9 93.5 82.7 92.5 86.8</td><td>77.1 88.6 75.9 86.4 78.3</td><td>73.0 85.5 70.4 84.8 74.1</td><td>88.1 98.5 99.8 96.8 99.4 97.7</td><td>92.9 99.6 99.9 98.2 100.0 98.9</td><td>99.8* 100.0* 100.0* 100.0* 100.0* 99.9*</td><td>94.4 100.0 100.0 98.1 100.0 99.4</td><td>64.9 87.8 95.6 86.4 95.6 87.8</td><td>58.0 81.9 93.1 80.7 92.6 82.2</td><td>54.8 78.9 93.0 78.8 91.0 81.3</td><td>52.4 80.2 91.4 77.4 92.2 80.6</td><td>85.1 93.6 83.0 92.7 85.0</td></tr><tr><td>VT-EPNI-FGSM(Ours) FI-MI-FGSM</td><td></td><td>89.8 95.6 95.9</td><td>76.9 88.4 89.1</td><td>80.7 65.6 92.4 81.1 93.1 79.7</td><td>92.1 96.1 95.6</td><td>87.5 94.4 94.9</td><td>89.3 94.0 93.4</td><td>81.1 90.4 90.4</td><td>76.1 88.8 87.1</td><td></td><td>98.7 99.4 99.6</td><td>99.5 99.9 99.8</td><td>99.9* 99.9* 100.0*</td><td>99.4 99.9 99.8</td><td>88.7 95.6 94.3</td><td>85.4 93.7 91.5</td><td>82.5 93.2 90.2</td><td>82.9 92.2 88.6</td><td>86.8 93.8 93.1</td></tr><tr><td>FI-EPNI-FGSM(Ours)</td><td></td><td>96.7</td><td>90.4</td><td>94.1 84.3</td><td>96.7</td><td>95.9</td><td></td><td>96.0</td><td>92.6</td><td>90.1</td><td>99.8</td><td>99.8</td><td>100.0*</td><td>99.9</td><td>96.4</td><td>94.3</td><td>93.3</td><td>93.0</td><td>94.9</td></tr></table>
|
| 101 |
+
|
| 102 |
+
Sec. 4.3, respectively. Finally, we provide ablation studies in Sec. 4.4. Table 1 introduces the abbreviations used in the paper.
|
| 103 |
+
|
| 104 |
+
# 4.1 EXPERIMENTAL SETTINGS
|
| 105 |
+
|
| 106 |
+
Dataset. We follow the previous works (Dong et al., 2019; Wang et al., 2021) to use the DEV dataset from the NIPS17 Adversarial Attacks and Defenses Competition. This dataset contains 1000 images with size $2 9 9 \times 2 9 9$ .
|
| 107 |
+
|
| 108 |
+
Target Models. Seventeen normally trained models, i.e., GoogLeNet (Iv1) (Szegedy et al., 2015), Inception-v3 (Iv3) (Szegedy et al., 2016), Inception-v4 (Iv4), Inception-ResNet-v2 (IRv2) (Szegedy et al., 2017), ResNet-18 (R18), ResNet-34 (R34), ResNet-50 (R50), ResNet-101 (R101), ResNet152 (R152) (He et al., 2016), VGG11 (V11), VGG13 (V13), VGG16 (V16), VGG19 (V19) (Simonyan & Zisserman, 2014), DenseNet-121 (D121), DenseNet-169 (D169), DenseNet-201 (D201), and DenseNet-161 (D161) (Huang et al., 2017). Ten defense models (i.e., adversarially trained models), i.e., Adv-Inception-v3 $( \mathrm { I v } 3 _ { \mathrm { a d v } } )$ , Ens-Inception-Resnet-v2 $( \mathrm { I R } \mathrm { v } 2 _ { \mathrm { e n s } }$ ) Tramer et al. (2017), \` Adv-EfficientNet-b0 $( \mathrm { E b 0 _ { a d v } ) }$ to Adv-EfficientNet-b7 $( \mathrm { E b } 7 _ { \mathrm { a d v } } ,$ ).
|
| 109 |
+
|
| 110 |
+
Baselines. For fair comparison of our EPN and conventional momentum, we replace conventional momentum with our EPN in momentum-based attacks, i.e., MI-FGSM (Dong et al., 2018), NI
|
| 111 |
+
|
| 112 |
+
Table 3: The attack success rates $( \% )$ of adversarial examples crafted on source models against defense models. “Avg” means the average attack success rate.
|
| 113 |
+
|
| 114 |
+
<table><tr><td>Models</td><td>Attacks</td><td>Iv3adv</td><td>IRv2ens</td><td>Eb0adv</td><td>Ebladv</td><td>Eb2adv</td><td>Eb3adv</td><td>Eb4adv</td><td>Eb5adv</td><td>Eb6adv</td><td>Eb7adv</td><td>Avg</td></tr><tr><td rowspan="9">Iv3</td><td>MI-FGSM NI-FGSM EPNI-FGSM(Ours) DI-MI-FGSM</td><td>25.4 25.4 32.4 33.0</td><td>11.5 11.6 14.3 19.3</td><td>29.7 34.3 49.0 46.6</td><td>26.5 31.0 45.0 42.9</td><td>28.1 31.2 45.4 42.4</td><td>18.8 22.2 31.1 31.3</td><td>16.9 18.6 23.9 27.4</td><td>17.5 18.6 25.7 26.7</td><td>14.8 16.0 22.4</td><td>15.2 16.5 22.3 24.4</td><td>20.4 22.5 31.2 31.7</td></tr><tr><td>TI-MI-FGSM SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours)</td><td>29.9 37.4 41.5 54.1</td><td>21.5 23.2 25.2 41.2</td><td>35.2 50.2 65.0 60.7</td><td>32.6 46.1 65.5 58.2</td><td>34.9 46.3 64.7 57.0</td><td>27.8 33.3 45.5 46.6</td><td>29.3 30.9 39.1 46.7</td><td>28.2 29.6 41.6 45.3</td><td>22.9 24.5 27.6 36.7 43.4</td><td>26.6 25.8 35.6 44.2</td><td>29.1 35.0 46.0 49.7</td></tr><tr><td>SI-EPNI-FGSM(Ours) VT-MI-FGSM VT-NI-FGSM</td><td>47.4 36.8 39.1</td><td>28.4 25.1 26.4</td><td>66.3 50.5 54.0</td><td>64.7 46.3 50.6</td><td>63.1 44.9 49.5</td><td>46.7 33.5 36.6</td><td>41.8 29.4 31.0</td><td>42.1 29.4 32.7</td><td>37.9 26.8 30.3</td><td>37.3 26.2 28.5</td><td>47.6 34.9 37.9</td></tr><tr><td>VT-EPNI-FGSM(Ours) FI-MI-FGSM FI-EPNI-FGSM(Ours)</td><td>43.1 55.3 58.9</td><td>26.5 38.0 39.9</td><td>63.2 68.2 76.2</td><td>61.8 67.8 73.3</td><td>60.6 64.9 72.7</td><td>46.9 53.6 61.1</td><td>41.1 50.0 56.0</td><td>39.7 49.3 55.6</td><td>38.2 46.6 52.9</td><td>36.8 45.1 50.5</td><td>45.8 53.9 59.7</td></tr><tr><td>MI-FGSM NI-FGSM EPNI-FGSM(Ours) DI-MI-FGSM</td><td>27.3 25.9 33.5 33.1</td><td>15.5 14.9 15.9 24.7</td><td>25.2 24.8 36.3</td><td>22.8 23.1 32.4</td><td>24.3 23.6 34.9</td><td>17.0 17.8 23.9 27.1</td><td>13.8 14.1 20.7 24.6</td><td>14.6 14.9 20.4 23.2</td><td>12.1 12.8 17.6 22.0</td><td>13.2 13.7 17.8 20.8</td><td>18.6 18.6 25.3 28.7</td></tr><tr><td>TI-MI-FGSM SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours) SI-EPNI-FGSM(Ours)</td><td>38.1 37.0 39.4 58.3 45.6</td><td>32.2 33.0 29.7 52.9 41.5</td><td>38.1 39.0 50.8 57.4 60.5 68.9</td><td>35.8 36.7 48.2 52.4 58.3</td><td>37.9 39.4 46.9 53.4 56.6 66.8</td><td>30.2 35.7 41.0 49.7 50.2</td><td>33.8 32.0 33.6 50.9 42.6</td><td>31.4 28.7 33.3 47.0 43.5</td><td>29.2 26.9 30.2 48.0 39.7</td><td>29.7 27.5 30.6 46.5 40.1</td><td>34.0 36.7 40.1 52.9 50.3</td></tr><tr><td>VT-MI-FGSM VT-NI-FGSM VT-EPNI-FGSM(Ours) FI-MI-FGSM</td><td>38.8 40.5 48.2</td><td>36.4 34.8 36.6</td><td>42.3 44.6 59.5</td><td>64.3 38.9 41.1 55.3</td><td>41.2 43.4 54.1</td><td>31.2 33.1 43.0</td><td>28.4 28.2 38.8</td><td>26.4 26.6 38.0</td><td>25.4 25.8 36.9</td><td>25.4 26.2 35.3</td><td>33.4 34.4 44.6 46.7</td></tr><tr><td>FI-EPNI-FGSM(Ours) MI-FGSM NI-FGSM EPNI-FGSM(Ours)</td><td>54.5 53.3 36.5 40.1</td><td>40.1 47.1 27.8 29.4</td><td>57.4 59.6 46.6 49.8</td><td>56.7 56.8 43.6 47.3</td><td>56.3 57.9 47.3 47.8</td><td>45.7 47.0 30.9 33.2</td><td>40.9 43.3 27.3 29.1</td><td>39.7 42.1 26.5 27.7</td><td>38.2 40.6 22.0 25.2</td><td>37.4 38.6 24.8 25.4</td><td>48.6 33.3 35.5</td></tr><tr><td>DI-MI-FGSM TI-MI-FGSM SI-NI-FGSM R152</td><td>53.1 57.6 46.8 51.7 DI-EPNI-FGSM(Ours) 78.3</td><td>43.1 51.7 41.1 43.4 73.1</td><td>71.9 72.6 50.7 62.8 91.6</td><td>68.1 68.3 46.4 57.3 89.9</td><td>70.5 71.2 50.1 61.2 90.6</td><td>50.2 54.7 41.8 43.4 75.7</td><td>41.0 47.1 43.2 39.3 67.3</td><td></td><td>41.0 37.5 44.7 44.2 41.0 36.2 36.0 35.4 64.9 62.6</td><td>40.2 44.3 38.7 33.8 64.3</td><td>51.7 55.6 43.6 46.4 75.8</td></tr><tr><td>VT-MI-FGSM VT-NI-FGSM FI-MI-FGSM</td><td>TI-EPNI-FGSM(Ours) SI-EPNI-FGSM(Ours) VT-EPNI-FGSM(Ours)</td><td>72.2 67.4 67.5 59.3 59.1 52.6 61.6 55.5 72.6 71.6</td><td>74.7 79.4 69.6 73.6 86.2</td><td>70.1 78.5 64.9 68.2 85.3</td><td></td><td>74.2 81.1 69.3 72.1 88.4</td><td>62.9 61.8 55.1 56.1 74.1</td><td>62.7 53.7 48.8 50.6 66.0</td><td>60.7 51.5 46.1 48.7 64.8</td><td>59.3 58.3 48.8 50.3 43.6 44.6 45.5 47.9 62.2 65.1</td><td></td><td>66.3 63.2 55.4 58.0 73.6</td></tr><tr><td>TI-MI-FGSM V16</td><td>FI-EPNI-FGSM(Ours) MI-FGSM NI-FGSM EPNI-FGSM(Ours) DI-MI-FGSM</td><td>81.0 33.0 33.0 46.7 44.9</td><td>73.3 20.3 22.5 29.0 31.6</td><td>88.5 48.8 49.5 71.2 62.4</td><td>87.0 41.8 43.6 65.7 55.9</td><td>82.6 88.6 41.3 44.3 63.5 56.9</td><td>76.3 25.1 27.7 41.5 37.5</td><td>70.9 21.5 22.2 31.3 32.0</td><td>70.1 21.7 22.7 31.5 30.9</td><td>66.4 19.0 18.9 28.5 27.8</td><td>66.4 21.8 20.1 28.7 28.1</td><td>76.9 29.4 30.5 43.8 40.8</td></tr><tr><td></td><td>SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours) SI-EPNI-FGSM(Ours) VT-MI-FGSM VT-NI-FGSM</td><td>38.9 50.0 61.2 61.8 62.8 49.4 49.3</td><td>29.4 33.5 44.7 49.9 42.6 35.4 37.5</td><td>44.3 61.4 80.3 68.6 78.6 65.3</td><td>38.0 56.4 77.9 65.2 75.4 58.7</td><td>41.4 54.4 78.2 63.7 74.3 58.6</td><td>31.1 36.5 52.2 49.2 48.1 39.7</td><td>32.0 29.9 43.5 50.3 40.6 34.3</td><td>31.5 30.0 42.6 47.7 41.9 33.6</td><td>28.5 27.2 40.2 47.6 37.9 29.2</td><td>28.2 26.4 38.8 46.1 35.5 32.2</td><td>34.3 40.6 56.0 55.0 53.8</td></tr></table>
|
| 115 |
+
|
| 116 |
+
FGSM (Lin et al., 2019), DI-MI-FGSM (Xie et al., 2019), TI-MI-FGSM (Dong et al., 2019), SI-NIFGSM (Lin et al., 2019), VT-MI-FGSM (Wang & He, 2021), VT-NI-FGSM (Wang & He, 2021) and FI-MI-FGSM (Wang et al., 2021). Then we compare the transferability of conventional momentumbased attacks and our EPN-based attacks.
|
| 117 |
+
|
| 118 |
+
Hyperparameters. In all experiments, we follow the official default settings for hyperparameters. Specifically, the maximum perturbation $\epsilon = 1 6$ , the number of iterations $T = 1 0$ , the step size $\alpha = \epsilon / T = 1 . 6$ , and the decay factor $\mu = 1 . 0$ . For DIM (Xie et al., 2019), the probability $p$ is set to 0.5. For TIM (Dong et al., 2019), the size of the Gaussian kernel is set to $1 5 { \times } 1 5$ . For SIM (Lin et al., 2019), the number of scale copies $m$ is set to 5. For VT-MI-FGSM (Wang & He, 2021) and VT-NIFGSM (Wang & He, 2021), the number of sampled examples $N$ is set to 20, and the parameter $\beta$ for the upper bound of the neighborhood is set to 1.5. For FI-MI-FGSM (Wang et al., 2021), the drop probability $p _ { d }$ is set to 0.3 when attacking normally trained models and 0.1 when attacking defense models, the ensemble number $N$ is set to 30 in aggregate gradient, and the intermediate layer is set to Mixed ${ } _ { 5 b }$ for Iv3, Conv 4a for IRv2, Conv3 3 for V16 as well as the last layer of the second block for R152. For our EM-based attacks, epochs is set to 5.
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
Figure 3: The average attack success rates $( \% )$ of the adversarial examples crafted on source models against normally trained models (except the source model) and defense models for various $\mu$ .
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 4: The average attack success rates $( \% )$ of the adversarial examples crafted on source models against normally trained models (except the source model) and defense models for various epochs.
|
| 125 |
+
|
| 126 |
+
# 4.2 ATTACK NORMALLY TRAINED MODELS
|
| 127 |
+
|
| 128 |
+
To validate that EPN-based attacks have higher transferability than conventional momentum-based attacks, we choose Iv3, IRv2, R152, and V16 as the source model, respectively, and attack normally trained target models via our EPN-based methods and baseline methods. The attack success rates are shown in Table 2. The results show that the attack success rates of our EPN-based methods are ${ \sim } 1 1 . 9 \%$ higher than baseline methods on average, In particular, our EPN-based attacks have the best transferability against normally trained target models when the source model is R152. Specifically, the attack success rates of EPNI-FGSM, DI-EPNI-FGSM, VT-EPNI-FGSM, and FI-EPNI-FGSM are $9 2 . 0 \%$ , $9 7 . 2 \%$ , $9 6 . 0 \%$ , and $9 6 . 0 \%$ , respectively, on average. Therefore, the experiments demonstrate that our EPN improves transferability more effectively than conventional momentum against normally trained models.
|
| 129 |
+
|
| 130 |
+
# 4.3 ATTACK DEFENSE MODELS
|
| 131 |
+
|
| 132 |
+
To further compare the transferability, we also use defense models as the target models, and the source models are still Iv3, IRv2, R152, and V16. We craft adversarial examples on the source model via our EPN-based methods and baseline methods to attack defense models. The attack success rates are shown in Table 3. The results show that the attack success rates of our EPNbased methods are ${ \sim } 1 3 . 1 \%$ higher than baseline methods on average. Adversarial examples crafted on R152 still show the best transferability against defense models. Specifically, the attack success rates of EPNI-FGSM, DI-EPNI-FGSM, VT-EPNI-FGSM, and FI-EPNI-FGSM are $5 1 . 7 \%$ , $7 5 . 8 \%$ , $7 3 . 6 \%$ , and $7 6 . 9 \%$ , respectively, on average. The results of experiments indicate that our EPN is still more effective than conventional momentum against defense models.
|
| 133 |
+
|
| 134 |
+
# 4.4 ABLATION STUDY
|
| 135 |
+
|
| 136 |
+
We conduct ablation studies for EPNI-FGSM. We investigate the impacts of two hyperparameters (i.e., the decay factor $\mu$ and the epochs of pretraining epochs) on the transferability of EPNI-FGSM in Sec. 4.4.1. We further study the impacts of EM and PN on transferability in Sec. 4.4.2.
|
| 137 |
+
|
| 138 |
+
# 4.4.1 IMPACTS OF $\mu$ AND epochs
|
| 139 |
+
|
| 140 |
+
The source models are set to Iv3, IRv2, R152, and V16. We use EPNI-FGSM to craft adversarial examples to attack normally trained models and defense models, respectively. We investigate the impacts of $\mu$ and epochs on the transferability of EPNI-FGSM by counting the average attack success rates against normally trained models (except the source model) and defense models.
|
| 141 |
+
|
| 142 |
+
The decay factor $\mu .$ . The decay factor $\mu$ plays a vital role for momentum. If $\mu = 0$ , the momentumbased attacks degrade to vanilla iterative gradient-based attacks. If $0 < \mu < 1$ , the previous gradients accumulated in the momentum decay exponentially. If $\mu = 1$ , the momentum simply adds up all previous gradients. If $\mu > 1$ , the previous gradients accumulated in the momentum grow exponentially. We pre-set epoch $s = 5$ and set $\mu$ from 0.0 to 2.0 with a step size of 0.1. The average attack success rates are shown in Fig. 3. When $\mu \leq 1 . 0$ , the average attack success rates show an upward trend, and when $\mu \geq 1 . 0$ , the average attack success rates show a downward trend. Therefore, we set $\mu = 1 . 0$ for EPNI-FGSM to achieve the best transferability.
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
Figure 5: The average attack success rates $( \% )$ of the adversarial examples crafted on source models against normally trained models and defense models via NI-FGSM, ENI-FGSM, PNI-FGSM, and EPNI-FGSM.
|
| 146 |
+
|
| 147 |
+
The epochs of pretraining epochs. epochs affects the amount of gradient accumulated in EM. We pre-set $\mu = 1 . 0$ and set epochs from 0 to 10 with a step size of 1. The average attack success rates are shown in Fig. 4. As epochs increases, the average attack success rates increase and gradually converge. Since the larger epochs, the higher the computational cost, we set epochs $= 5$ for EPNIFGSM to strike a balance between computational cost and transferability.
|
| 148 |
+
|
| 149 |
+
In summary, we set the decay factor $\mu = 1 . 0$ and the epochs of pretraining epochs $= 5$ for EPNIFGSM. Similarly, such two hyperparameters of other EPN-based attacks have the same settings as EPNI-FGSM.
|
| 150 |
+
|
| 151 |
+
# 4.4.2 IMPACTS OF EM AND PN
|
| 152 |
+
|
| 153 |
+
The source models are the same as in Sec 4.4.1. To investigate the impacts of EM and PN, we craft adversarial examples on source models via ENI-FGSM (only with EM), PNI-FGSM (only with PN), and EPNI-FGSM (with EM and PN), respectively. In addition, we also use MI-FGSM and NI-FGSM (without EM and PN) as baselines. For ENI-FGSM, the epochs of pretraining epochs is set to 5. For ENI-FGSM and PNI-FGSM, the decay factor $\mu$ is set to 1.0. The average attack success rates of the adversarial examples against normally trained models and defense models are shown in Fig. 5. The average attack success rates of ENI-FGSM are higher than MI-FGSM and NIFGSM, demonstrating that EM improves transferability more than conventional momentum. The same is true for PN. Besides, the average attack success rates of EPNI-FGSM are higher than that of ENI-FGSM and PNI-FGSM, demonstrating that the combination of EM and PN can further improve transferability.
|
| 154 |
+
|
| 155 |
+
# 5 CONCLUSION
|
| 156 |
+
|
| 157 |
+
In this work, we proposed Experienced Momentum (EM) and Precise Nesterov momentum (PN) to boost transferability. Specifically, EM is trained on a set of derived models by Random Channels Swapping (RCS), and then conventional momentum is initialized to EM, which can accelerate optimization to escape from saddle points and poor local extrema during early iterations to improve transferability. Additionally, we adopted the current gradient to refine the pre-update of conventional Nesterov momentum, called PN. Then, we naturally combined EM and PN as EPN to improve transferability further. Extensive experiments demonstrate that EPN-based attacks have higher transferability than conventional momentum-based attacks. However, our methods still adopt a fixed learning rate or step size that is crucial for the optimizer. Therefore, we will explore the impact of learning rate or step size on transferability in future work.
|
| 158 |
+
|
| 159 |
+
# REFERENCES
|
| 160 |
+
|
| 161 |
+
Ayelet Akselrod-Ballin, Leonid Karlinsky, Sharon Alpert, Sharbell Hasoul, Rami Ben-Ari, and Ella Barkan. A region based convolutional network for tumor detection and classification in breast mammography. In Deep learning and data labeling for medical applications, pp. 197–205. Springer, 2016.
|
| 162 |
+
|
| 163 |
+
Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 ieee symposium on security and privacy (sp), pp. 39–57. IEEE, 2017.
|
| 164 |
+
|
| 165 |
+
Grigorios G Chrysos, Stylianos Moschoglou, Giorgos Bouritsas, Yannis Panagakis, Jiankang Deng, and Stefanos Zafeiriou. P-nets: Deep polynomial neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7325–7335, 2020.
|
| 166 |
+
|
| 167 |
+
Marco Cococcioni, Emanuele Ruffaldi, and Sergio Saponara. Exploiting posit arithmetic for deep neural networks in autonomous driving applications. In 2018 International Conference of Electrical and Electronic Technologies for Automotive, pp. 1–6. IEEE, 2018.
|
| 168 |
+
|
| 169 |
+
Jia Ding, Aoxue Li, Zhiqiang Hu, and Liwei Wang. Accurate pulmonary nodule detection in computed tomography images using deep convolutional neural networks. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 559–567. Springer, 2017.
|
| 170 |
+
|
| 171 |
+
Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 9185–9193, 2018.
|
| 172 |
+
|
| 173 |
+
Yinpeng Dong, Tianyu Pang, Hang Su, and Jun Zhu. Evading defenses to transferable adversarial examples by translation-invariant attacks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4312–4321, 2019.
|
| 174 |
+
|
| 175 |
+
Gianni Franchi, Xuanlong Yu, Andrei Bursuc, Remi Kazmierczak, S ´ everine Dubuisson, Emanuel ´ Aldea, and David Filliat. Muad: Multiple uncertainties for autonomous driving benchmark for multiple uncertainty types and tasks. arXiv preprint arXiv:2203.01437, 2022.
|
| 176 |
+
|
| 177 |
+
Aditya Ganeshan, Vivek BS, and R Venkatesh Babu. Fda: Feature disruptive attack. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 8069–8079, 2019.
|
| 178 |
+
|
| 179 |
+
Veta Ghenescu, Roxana Elena Mihaescu, Serban-Vasile Carata, Marian Traian Ghenescu, Eduard Barnoviciu, and Mihai Chindea. Face detection and recognition based on general purpose dnn object detector. In 2018 International Symposium on Electronics and Telecommunications (ISETC), pp. 1–4. IEEE, 2018.
|
| 180 |
+
|
| 181 |
+
Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
|
| 182 |
+
|
| 183 |
+
Cong Hao, Yao Chen, Xinheng Liu, Atif Sarwari, Daryl Sew, Ashutosh Dhar, Bryan Wu, Dongdong Fu, Jinjun Xiong, Wen-mei Hwu, et al. Nais: Neural architecture and implementation search and its applications in autonomous driving. In 2019 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), pp. 1–8. IEEE, 2019.
|
| 184 |
+
|
| 185 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 186 |
+
|
| 187 |
+
Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017.
|
| 188 |
+
|
| 189 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International conference on machine learning, pp. 448–456. PMLR, 2015.
|
| 190 |
+
|
| 191 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25, 2012.
|
| 192 |
+
|
| 193 |
+
Alexey Kurakin, Ian Goodfellow, Samy Bengio, et al. Adversarial examples in the physical world, 2016.
|
| 194 |
+
|
| 195 |
+
Jiadong Lin, Chuanbiao Song, Kun He, Liwei Wang, and John E Hopcroft. Nesterov accelerated gradient and scale invariance for adversarial attacks. arXiv preprint arXiv:1908.06281, 2019.
|
| 196 |
+
|
| 197 |
+
Tianjiao Liu, Qianqian Guo, Chunfeng Lian, Xuhua Ren, Shujun Liang, Jing Yu, Lijuan Niu, Weidong Sun, and Dinggang Shen. Automated detection and classification of thyroid nodules in ultrasound images using clinical-knowledge-guided convolutional neural networks. Medical image analysis, 58:101555, 2019.
|
| 198 |
+
|
| 199 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
|
| 200 |
+
|
| 201 |
+
Muzammal Naseer, Salman H Khan, Shafin Rahman, and Fatih Porikli. Task-generalizable adversarial attack based on perceptual metric. arXiv preprint arXiv:1811.09020, 2018.
|
| 202 |
+
|
| 203 |
+
Yurii Nesterov. A method for unconstrained convex minimization problem with the rate of convergence $\mathbf { o } ( ^ { 1 } / k ^ { 2 } )$ . 1983.
|
| 204 |
+
|
| 205 |
+
Boris T Polyak. Some methods of speeding up the convergence of iteration methods. Ussr computational mathematics and mathematical physics, 4(5):1–17, 1964.
|
| 206 |
+
|
| 207 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 208 |
+
|
| 209 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
|
| 210 |
+
|
| 211 |
+
Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1–9, 2015.
|
| 212 |
+
|
| 213 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818–2826, 2016.
|
| 214 |
+
|
| 215 |
+
Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In Thirty-first AAAI conference on artificial intelligence, 2017.
|
| 216 |
+
|
| 217 |
+
Florian Tramer, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick Mc-\` Daniel. Ensemble adversarial training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017.
|
| 218 |
+
|
| 219 |
+
Xiaosen Wang and Kun He. Enhancing the transferability of adversarial attacks through variance tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1924–1933, 2021.
|
| 220 |
+
|
| 221 |
+
Zhibo Wang, Hengchang Guo, Zhifei Zhang, Wenxin Liu, Zhan Qin, and Kui Ren. Feature importance-aware transferable adversarial attacks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 7639–7648, 2021.
|
| 222 |
+
|
| 223 |
+
Cihang Xie, Zhishuai Zhang, Yuyin Zhou, Song Bai, Jianyu Wang, Zhou Ren, and Alan L Yuille. Improving transferability of adversarial examples with input diversity. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2730–2739, 2019.
|
parse/dev/LV8OmADmoOe/LV8OmADmoOe_content_list.json
ADDED
|
@@ -0,0 +1,1219 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "IMPROVING THE TRANSFERABILITY OF ADVERSARIAL ATTACKS THROUGH EXPERIENCED PRECISE NESTEROV MOMENTUM ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
776,
|
| 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 |
+
260,
|
| 32 |
+
544,
|
| 33 |
+
275
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Deep Neural Networks are vulnerable to adversarial attacks, which makes adversarial attacks serve as a method to evaluate the robustness of DNNs. However, adversarial attacks have high white-box attack success rates but poor transferability, making black-box attacks impracticable in the real world. Momentumbased attacks were proposed to accelerate optimization to improve transferability. Nevertheless, conventional momentum-based attacks accelerate optimization inefficiently during early iterations since the initial value of momentum is zero, which leads to unsatisfactory transferability. Therefore, we propose Experienced Momentum (EM), which is the pre-trained momentum. Initializing the momentum to EM can help accelerate optimization during the early iterations. Moreover, the pre-update of conventional Nesterov momentum based attacks is rough, prompting us to propose Precise Nesterov momentum (PN). PN refines the preupdate by considering the gradient of the current data point. Finally, we integrate EM with PN as Experienced Precise Nesterov momentum (EPN) to further improve transferability. Extensive experiments against normally trained and defense models demonstrate that our EPN is more effective than conventional momentum in the improvement of transferability. Specifically, the attack success rates of our EPN-based attacks are ${ \\sim } 1 1 . 9 \\%$ and ${ \\sim } 1 3 . 1 \\%$ higher than conventional momentum-based attacks on average against normally trained and defense models, respectively. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
291,
|
| 43 |
+
764,
|
| 44 |
+
569
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
598,
|
| 55 |
+
336,
|
| 56 |
+
614
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Deep neural networks (DNNs) (Krizhevsky et al., 2012; Szegedy et al., 2015; He et al., 2016; Ioffe & Szegedy, 2015) have been widely applied in computer vision, e.g., autonomous driving (Franchi et al., 2022; Hao et al., 2019; Cococcioni et al., 2018), facial recognition (Chrysos et al., 2020; Ghenescu et al., 2018), and medical image analysis (Akselrod-Ballin et al., 2016; Ding et al., 2017; Liu et al., 2019). However, Szegedy et al. (2013) found that applying certain imperceptible perturbations to images can make DNNs misclassify, and they refer to such perturbed images as adversarial examples $( A E s )$ . Adversarial examples pose a huge threat to the security of DNNs, which attaches extensive attention from researchers. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
631,
|
| 66 |
+
825,
|
| 67 |
+
742
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Adversarial attacks can be categorized into white-box attacks and black-box attacks. Typically, iterative gradient-based (Kurakin et al., 2016; Madry et al., 2017) and optimization-based attacks (Carlini & Wagner, 2017) have high white-box but low black-box attack success rates, which means that such two attacks are impracticable in the real world. Transferability, which means adversarial examples crafted on the source model remain effective on other models, makes black-box attacks feasible. Furthermore, iterative gradient-based attacks have the advantages of low computational cost and fast generation speed, thus improving the transferability of iterative gradient-based attacks has become a hotspot in the field of adversarial attacks. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
750,
|
| 77 |
+
823,
|
| 78 |
+
861
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Many methods have been proposed to improve the transferability of iterative gradient-based attacks. These methods can be classified into three branches: improving optimization algorithms, input transformations, and disrupting feature space. For example, MI-FGSM (Dong et al., 2018), NI-FGSM (Lin et al., 2019), and VM(N)I-FGSM (Wang & He, 2021) improve gradient ascent (or descent) algorithm to escape from saddle points and poor local extrema to improve transferability; DIM (Xie et al., 2019), TIM (Dong et al., 2019), and SIM (Lin et al., 2019) craft adversarial examples on a set of models derived by input transformations to prevent overfitting and improve transferability; NRDM (Naseer et al., 2018), FDA (Ganeshan et al., 2019), and FIA (Wang et al., 2021) disrupt deep features of DNNs to craft highly transferable adversarial examples. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
868,
|
| 88 |
+
823,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/43ff633c9b654c39becc3a37d6d52763e1946d4a2c40cf69095e67ae5381f60e.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Comparison of conventional Polyak momentum and experienced Polyak momentum. Adversarial examples are crafted on the source model (Inception-v3) and used to attack the target model (VGG16). Our Experienced MI-FGSM (EMI-FGSM), which integrates EM into MI-FGSM, causes misclassification with higher loss and confidence than MI-FGSM, thus EMI-FGSM can mislead the attention of the target model better than MI-FGSM. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
338,
|
| 102 |
+
101,
|
| 103 |
+
660,
|
| 104 |
+
319
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
450,
|
| 114 |
+
823,
|
| 115 |
+
520
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Those mentioned above adversarial attacks mostly adopt the momentum (Polyak, 1964; Nesterov, 1983) to accelerate optimization. However, such momentum-based adversarial attacks (e.g., M(N)IFGSM, VM(N)I-FGSM, and FIA) have the problem of initializing the momentum to zero, resulting in inefficient acceleration due to momentum accumulating few gradients during the first few iterations. Therefore, we propose Experienced Momentum (EM), which is the pre-trained momentum. Before the iterations, the momentum is initialized to EM instead of zero, leading to better acceleration in the first few iterations. The comparison of conventional Polyak momentum (Polyak, 1964) and experienced Polyak momentum is shown in Fig. 1. To prevent overfitting on the source model, we train EM on a set of models derived by Random Channels Swapping (RCS). EM and RCS are detailed in Sec. 3.1. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
527,
|
| 125 |
+
825,
|
| 126 |
+
666
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "Furthermore, adversarial attacks (e.g., NI-FGSM and VNI-FGSM) based on Nesterov momentum (i.e., Nesterov Accelerated Gradient, NAG (Nesterov, 1983)) have the disadvantage that the preupdate is rough. Specifically, during each iteration, the parameters are first pre-updated along the momentum to obtain the pre-update point, which is an estimation of the next position. Then the preupdate is modified by the gradient of the pre-update point. Such looking-ahead property of Nesterov momentum makes parameters escape from saddle points and poor local extrema easier and faster, resulting in improving transferability. However, pre-updating only along the momentum is rough, and the estimation of the next position of the parameters is imprecise. Therefore, we propose Precise Nesterov momentum (PN), which not only retains the looking-ahead property but also refines the pre-update by adopting the gradient of the current data point. To improve transferability further, we integrate EM with PN as Experienced Precise Nesterov momentum (EPN). PN and EPN are detailed in Sec. 3.2. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
672,
|
| 136 |
+
825,
|
| 137 |
+
840
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Overall, we make the following contributions: ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
847,
|
| 147 |
+
475,
|
| 148 |
+
861
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "• We propose Experienced Momentum (EM), which is trained on a set of models derived by Random Channels Swapping (RCS). Initializing the momentum to EM can accelerate optimization effectively during the early iterations to improve transferability. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
220,
|
| 157 |
+
882,
|
| 158 |
+
823,
|
| 159 |
+
924
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "• We propose Precise Nesterov momentum (PN), which adopts the gradient of the current data point to refine the pre-update to escape from saddle points and poor local extrema easier and faster. We also integrate EM with PN as Experienced Precise Nesterov momentum (EPN) to improve transferability further. • Extensive experiments on normally trained and defense models demonstrate that our EPN is more effective than conventional momentum for improving transferability. ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
217,
|
| 168 |
+
103,
|
| 169 |
+
825,
|
| 170 |
+
191
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 2
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "2 RELATED WORK ",
|
| 177 |
+
"text_level": 1,
|
| 178 |
+
"bbox": [
|
| 179 |
+
176,
|
| 180 |
+
209,
|
| 181 |
+
344,
|
| 182 |
+
227
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "2.1 TRANSFERABLE ADVERSARIAL ATTACKS ",
|
| 189 |
+
"text_level": 1,
|
| 190 |
+
"bbox": [
|
| 191 |
+
178,
|
| 192 |
+
241,
|
| 193 |
+
501,
|
| 194 |
+
255
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Since adversarial examples were discovered by Szegedy et al. (2013), many methods (Goodfellow et al., 2014; Kurakin et al., 2016; Carlini & Wagner, 2017) have been proposed to craft adversarial examples to demonstrate the vulnerability of DNNs. We focus on the transferability of iterative gradient-based attacks and review related works from three branches: improving optimization algorithms, input transformations, and disrupting feature space. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
266,
|
| 204 |
+
825,
|
| 205 |
+
337
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "Improving optimization algorithms. Dong et al. (2018) integrated Polyak momentum (Polyak, 1964) into I-FGSM (Kurakin et al., 2016) to accelerate gradient ascent (or descent) to improve transferability. Inspired by the fact that Nesterov momentum (Nesterov, 1983) is superior to Polyak momentum, Lin et al. (2019) integrated Nesterov momentum into I-FGSM to improve transferability further. Wang & He (2021) used the gradient variance of the previous iteration to tune the current gradient to stabilize the update direction and escape from saddle points and poor local extrema. ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
174,
|
| 214 |
+
343,
|
| 215 |
+
825,
|
| 216 |
+
428
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "Input transformations. The nature of input transformations is crafting adversarial examples on a set of derived models to prevent overfitting. Xie et al. (2019) performed random resizing and padding with probability $p$ to derive models. Dong et al. (2019) convolved the gradient to approximate translating input. Lin et al. (2019) scaled the input with the scale factor $1 / 2 ^ { i }$ to derive a set of models. ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
434,
|
| 226 |
+
825,
|
| 227 |
+
503
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "Disrupting feature space. Naseer et al. (2018) created maximum distortions in the feature space to craft adversarial examples, based on the intuition that features of DNNs are highly generalizable. Ganeshan et al. (2019) highly corrupted deep features by disrupting features at each layer of DNNs to improve transferability. Wang et al. (2021) described feature importance with the aggregate gradient and disrupted important object-aware features to achieve stronger transferability. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
510,
|
| 237 |
+
825,
|
| 238 |
+
580
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "2.2 ADVERSARIAL TRAINING ",
|
| 245 |
+
"text_level": 1,
|
| 246 |
+
"bbox": [
|
| 247 |
+
176,
|
| 248 |
+
597,
|
| 249 |
+
393,
|
| 250 |
+
611
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "Adversarial training as a common defense measure can validate transferability further. Adversarial training increases robustness by adding adversarial examples to the training data. Goodfellow et al. (2014) showed that adversarially trained models are more robust. However, Kurakin et al. (2016) pointed out that adversarial training is not robust to iterative attacks. Moreover, Tramer et al. (2017) \\` showed that adversarially trained models are still vulnerable to simple white-box and black-box attacks. Therefore, they proposed ensemble adversarial training adding adversarial examples crafted from other models to the training data. ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
174,
|
| 259 |
+
622,
|
| 260 |
+
825,
|
| 261 |
+
720
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "3 METHODOLOGY ",
|
| 268 |
+
"text_level": 1,
|
| 269 |
+
"bbox": [
|
| 270 |
+
176,
|
| 271 |
+
739,
|
| 272 |
+
341,
|
| 273 |
+
755
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "Given a target model $f ^ { \\prime } ( x ; { \\pmb \\theta } ^ { \\prime } )$ , where $_ { \\textbf { \\em x } }$ is an input, and $\\pmb { \\theta } ^ { \\prime }$ is the parameters of $f ^ { \\prime }$ . Let $J ( \\cdot , y )$ be a loss function, where $y$ is the ground-truth label of the input $_ { \\textbf { \\em x } }$ . A non-targeted adversarial example $\\pmb { x } ^ { a d v }$ satisfies $f ^ { \\prime } ( { \\pmb x } ; { \\hat { \\pmb \\theta } } ^ { \\prime } ) \\neq { \\bar { f ^ { \\prime } } } ( { \\pmb x } ^ { a d v } ; { \\pmb \\theta } ^ { \\prime } )$ under the constraint of $| | { \\pmb x } ^ { a d v } \\bar { - } { \\pmb x } | | _ { p } \\le \\epsilon .$ , where $| | \\cdot | | _ { p }$ denotes the $L ^ { p }$ norm, and $p$ is generally $0 , 1 , 2 , \\infty$ . In this paper, we focus on $p = \\infty$ . Note that our methods can be generalized to $p = 0 , 1 , 2$ easily. Crafting non-targeted adversarial examples can be described as solving the following optimization problem: ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
174,
|
| 282 |
+
768,
|
| 283 |
+
825,
|
| 284 |
+
853
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "equation",
|
| 290 |
+
"img_path": "images/cc94b61db3a9da4bf4fe2a37bfd7d7aeee25432a5c2b6813899fb9c851273ea6.jpg",
|
| 291 |
+
"text": "$$\n\\underset { \\pmb { x } ^ { a d v } } { \\arg \\operatorname* { m a x } } J ( f ^ { \\prime } ( \\pmb { x } ^ { a d v } ; \\pmb { \\theta } ^ { \\prime } ) , y ) , \\quad \\mathrm { s . t . } | | \\pmb { x } ^ { a d v } - \\pmb { x } | | _ { p } \\leq \\epsilon .\n$$",
|
| 292 |
+
"text_format": "latex",
|
| 293 |
+
"bbox": [
|
| 294 |
+
321,
|
| 295 |
+
853,
|
| 296 |
+
676,
|
| 297 |
+
881
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "In this paper, we focus on non-targeted attacks. Our proposed methods can be easily transformed into targeted attacks by replacing the above objective function with $- J ( f ^ { \\prime } ( x ^ { a d v } ; \\pmb { \\theta } ^ { \\prime } ) , \\mathbf { \\bar { \\psi } } ^ { * } )$ , where $y ^ { * }$ denotes the target label. ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
176,
|
| 306 |
+
882,
|
| 307 |
+
825,
|
| 308 |
+
924
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "image",
|
| 314 |
+
"img_path": "images/87cfd090bbc4c049cc375cc349efb5a739a1a34309be3d1c013402ce1a4aa858.jpg",
|
| 315 |
+
"image_caption": [
|
| 316 |
+
"Figure 2: Illustration of training EM during each iteration. "
|
| 317 |
+
],
|
| 318 |
+
"image_footnote": [],
|
| 319 |
+
"bbox": [
|
| 320 |
+
205,
|
| 321 |
+
99,
|
| 322 |
+
790,
|
| 323 |
+
248
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 3
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "text",
|
| 329 |
+
"text": "Many gradient-based methods have been proposed to solve Eq. 1, e.g., FGSM (Goodfellow et al., 2014), I-FGSM (Kurakin et al., 2016), and PGD (Madry et al., 2017). However, the parameters $\\pmb { \\theta } ^ { \\prime }$ of the target model $f ^ { \\prime }$ is inaccessible for black-box attacks, resulting in the inability to solve Eq. 1 directly. Therefore, the target model $f ^ { \\prime }$ is usually replaced with a model $f$ (i.e., the source model) with accessible parameters $\\pmb \\theta$ , and then adversarial examples are crafted on the source model $f$ to attack the target model $f ^ { \\prime }$ . To achieve effective black-box attacks, adversarial examples crafted on the source model $f$ are required to have high transferability. Therefore, we propose Experienced Momentum (EM, detailed in Sec. 3.1) and Precise Nesterov momentum (PN, detailed in Sec. 3.2) to improve transferability. EM and PN can be naturally combined as Experienced Precise Nesterov momentum (EPN, detailed in Sec. 3.2) to further improve transferability. ",
|
| 330 |
+
"bbox": [
|
| 331 |
+
173,
|
| 332 |
+
305,
|
| 333 |
+
825,
|
| 334 |
+
444
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 3
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "text",
|
| 340 |
+
"text": "3.1 EXPERIENCED MOMENTUM ",
|
| 341 |
+
"text_level": 1,
|
| 342 |
+
"bbox": [
|
| 343 |
+
176,
|
| 344 |
+
460,
|
| 345 |
+
406,
|
| 346 |
+
474
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "Momentum-based attacks initialize momentum to zero, resulting in inefficient acceleration during the first few iterations. Therefore, we propose Experienced Momentum (EM), which is the pretrained momentum. Setting the initial momentum to EM can accelerate the optimization during the early iterations. To prevent overfitting of EM and improve transferability further, we train EM on a set of models derived by Random Channels Swapping (RCS). RCS derives models by randomly swapping the channels of the input image, which is equivalent to randomly swapping the “block” dimensions of the original model, leading to various decision boundaries of derived models. Therefore, training EM on derived models can prevent overfitting. The specific procedure for training EM is as follows. ",
|
| 353 |
+
"bbox": [
|
| 354 |
+
173,
|
| 355 |
+
486,
|
| 356 |
+
825,
|
| 357 |
+
612
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 3
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "First of all, we perform RCS on the input image $_ { \\textbf { \\em x } }$ . Specifically, we denote the input image $_ { \\textbf { \\em x } }$ as an RGB triplet $( R , G , B )$ , and then the input image $_ { \\textbf { \\em x } }$ through RCS can be denoted as $\\bar { S } ( { \\pmb x } )$ , where $S ( { \\pmb x } ) \\in \\{ ( R , G , B ) , ( R , B , G ) , ( G , R , B ) , ( G , B , R ) , ( B , R , G ) , ( B , G , R ) \\} .$ , $S ( \\cdot )$ denotes RCS. Secondly, $S ( { \\pmb x } )$ is fed into the source model $f$ to derive $f ( S ( \\cdot ) , y )$ . Thirdly, we pre-perturb the input image $_ { \\textbf { \\em x } }$ on the derived model $f ( S ( \\cdot ) , y )$ by iterative gradient-based attacks to prevent overfitting. As shown in Fig. 2, we accumulate gradients to training EM during each iteration. Finally, we follow the above procedure repeatedly to make the EM more generalizable. After training EM, we set the initial value of momentum to EM to accelerate the early iterations. ",
|
| 364 |
+
"bbox": [
|
| 365 |
+
173,
|
| 366 |
+
618,
|
| 367 |
+
825,
|
| 368 |
+
731
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 3
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "3.2 PRECISE NESTEROV MOMENTUM ",
|
| 375 |
+
"text_level": 1,
|
| 376 |
+
"bbox": [
|
| 377 |
+
176,
|
| 378 |
+
746,
|
| 379 |
+
446,
|
| 380 |
+
761
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 3
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "Nesterov momentum based Attack (e.g., NI-FGSM (Lin et al., 2019) and VNI-FGSM (Wang & He, 2021)) only pre-update along the momentum roughly, resulting in the imprecision of the pre-update point that is the estimate of the next iterative position. Against this disadvantage, we propose Precise Nesterov momentum (PN), which considers the gradient of the current data point in the pre-update to make the pre-update precise. Specifically, during each iteration, the pre-update is performed along the gradient of the current data point and momentum successively to obtain the pre-update point, and then we use the gradient of the pre-update point to modify the pre-update. We integrate PN into I-FGSM as PNI-FGSM. The $t$ -th iteration of PNI-FGSM can be formalized as follows: ",
|
| 387 |
+
"bbox": [
|
| 388 |
+
173,
|
| 389 |
+
772,
|
| 390 |
+
825,
|
| 391 |
+
883
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 3
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "equation",
|
| 397 |
+
"img_path": "images/bc34467f464d519ac6f8687411051e4810b902b979b67545313ad46e73a5b6c2.jpg",
|
| 398 |
+
"text": "$$\n\\widetilde { \\pmb x } _ { t } ^ { a d v } = \\pmb x _ { t } ^ { a d v } + \\alpha \\cdot \\left[ \\frac { \\nabla _ { \\pmb x _ { t } ^ { a d v } } J ( f ( \\pmb x _ { t } ^ { a d v } ; \\pmb \\theta ) , y ) } { | | \\nabla _ { \\pmb x _ { t } ^ { a d v } } J ( f ( \\pmb x _ { t } ^ { a d v } ; \\pmb \\theta ) , y ) | | _ { 1 } } + \\mu \\cdot { \\pmb g } _ { t - 1 } \\right] ,\n$$",
|
| 399 |
+
"text_format": "latex",
|
| 400 |
+
"bbox": [
|
| 401 |
+
290,
|
| 402 |
+
886,
|
| 403 |
+
704,
|
| 404 |
+
928
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 3
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "Input : A source model $f$ with parameters $\\pmb \\theta$ and a loss function $J$ . An original image $_ { \\textbf { \\em x } }$ with ground-truth label $y$ . Input : The maximum perturbation $\\epsilon$ , the number of iterations $T$ , and the decay factor $\\mu$ . Input : The epochs of pretraining epochs. Output: An adversarial example $\\bar { \\boldsymbol { x } } ^ { a \\bar { d } v }$ . 1 $\\alpha \\epsilon / T$ ; $\\pmb { g } ^ { e x p } \\mathbf { 0 }$ ; 2 for $n \\gets 1$ to epochs do 3 $\\hat { \\pmb { x } } _ { 1 } ^ { a d v } { \\pmb { x } }$ ; 4 for $t \\gets 1$ to $T$ do 5 $\\begin{array} { r l } & { \\widetilde { x } _ { t } ^ { a d v } \\gets \\hat { x } _ { t } ^ { a d v } + \\alpha \\cdot \\left[ \\frac { \\nabla _ { \\hat { x } _ { t } ^ { a d v } } J ( f ( S ( \\hat { x } _ { t } ^ { a d v } ) ; \\pmb \\theta ) , y ) } { | | \\nabla _ { \\hat { x } _ { t } ^ { a d v } } J ( f ( S ( \\hat { x } _ { t } ^ { a d v } ) ; \\pmb \\theta ) , y ) | | _ { 1 } } + \\mu \\cdot g ^ { e x p } \\right] ; } \\\\ & { g ^ { e x p } \\gets \\frac { \\nabla _ { \\hat { x } _ { t } ^ { a d v } } J ( f ( S ( \\hat { x } _ { t } ^ { a d v } ) ; \\pmb \\theta ) , y ) } { | | \\nabla _ { \\hat { x } _ { t } ^ { a d v } } J ( f ( S ( \\hat { x } _ { t } ^ { a d v } ) ; \\pmb \\theta ) , y ) | | _ { 1 } } + \\mu \\cdot g ^ { e x p } + \\frac { \\nabla _ { \\widetilde { x } _ { t } ^ { a d v } } J ( f ( \\widetilde { x } _ { t } ^ { a d v } ; \\pmb \\theta ) , y ) } { | | \\nabla _ { \\widetilde { x } _ { t } ^ { a d v } } J ( f ( \\widetilde { x } _ { t } ^ { a d v } ; \\pmb \\theta ) , y ) | | _ { 1 } } ; } \\\\ & { \\hat { x } _ { t + 1 } ^ { a d v } \\gets \\mathrm { C l i p } _ { ( \\pmb { x } , \\epsilon ) } \\left\\{ \\hat { x } _ { t } ^ { a d v } + \\alpha \\cdot \\mathrm { s i g n } ( g ^ { e x p } ) \\right\\} ; } \\end{array}$ 6 7 8 end 9 end 10 ${ \\pmb x } _ { 1 } ^ { a d v } { \\pmb x } ; { \\pmb g } _ { 0 } { \\pmb g } ^ { e x p }$ ; 11 for $t \\gets 1$ to $T$ do 12 Update $\\mathbf { \\nabla } _ { \\mathbf { \\boldsymbol { g } } _ { t } }$ and $\\pmb { x } _ { t + 1 } ^ { a d v }$ by Eq. 2, 3, 4; 13 end 14 return ${ \\pmb x } ^ { a d v } { \\pmb x } _ { T + 1 } ^ { a d v }$ . ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
158,
|
| 413 |
+
125,
|
| 414 |
+
818,
|
| 415 |
+
440
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 4
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "table",
|
| 421 |
+
"img_path": "images/32b9f28d4027958a04c50a5fb1ee427db1722078d20df053ea46e2aaa82cc641.jpg",
|
| 422 |
+
"table_caption": [
|
| 423 |
+
"Algorithm 1: Experienced Precise Nesterov momentum I-FGSM (EPNI-FGSM) ",
|
| 424 |
+
"Table 1: The abbreviations used in the paper. "
|
| 425 |
+
],
|
| 426 |
+
"table_footnote": [],
|
| 427 |
+
"table_body": "<table><tr><td>Abbreviation</td><td>Explanation</td></tr><tr><td></td><td></td></tr><tr><td>D(T)I-MI-FGSM</td><td>the combination of D(T)IM and MI-FGSM</td></tr><tr><td>SI-NI-FGSM</td><td>the combination of SIMand NI-FGSM</td></tr><tr><td>D(T,S)I-EPNI-FGSM</td><td>the combination of D(T,S)IM and EPNI-FGSM</td></tr><tr><td>VT-M(N)I-FGSM</td><td>i.e., VM(N)I-FGSM</td></tr><tr><td>VT-EPNI-FGSM</td><td>the combination of Variance Tuning (VT)(Wang & He,2021) and EPNI-FGSM</td></tr><tr><td>FI-MI-FGSM FI-EPNI-FGSM</td><td>i.e., FIA</td></tr><tr><td></td><td>the combination of Feature Importance-aware (FI) (Wang et al.,2021) and EPNI-FGSM</td></tr></table>",
|
| 428 |
+
"bbox": [
|
| 429 |
+
178,
|
| 430 |
+
491,
|
| 431 |
+
821,
|
| 432 |
+
607
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 4
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "equation",
|
| 438 |
+
"img_path": "images/8dd749b920db925cee00f283cff9af8d380e6a843b7221a6e2d3687702e4bfc6.jpg",
|
| 439 |
+
"text": "$$\ng _ { t } = \\frac { \\nabla _ { x _ { t } ^ { a d v } } J ( f ( x _ { t } ^ { a d v } ; \\pmb { \\theta } ) , y ) } { | | \\nabla _ { x _ { t } ^ { a d v } } J ( f ( x _ { t } ^ { a d v } ; \\pmb { \\theta } ) , y ) | | _ { 1 } } + \\mu \\cdot g _ { t - 1 } + \\frac { \\nabla _ { \\widetilde { x } _ { t } ^ { a d v } } J ( f ( \\widetilde { x } _ { t } ^ { a d v } ; \\pmb { \\theta } ) , y ) } { | | \\nabla _ { \\widetilde { x } _ { t } ^ { a d v } } J ( f ( \\widetilde { x } _ { t } ^ { a d v } ; \\pmb { \\theta } ) , y ) | | _ { 1 } } ,\n$$",
|
| 440 |
+
"text_format": "latex",
|
| 441 |
+
"bbox": [
|
| 442 |
+
246,
|
| 443 |
+
636,
|
| 444 |
+
750,
|
| 445 |
+
675
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 4
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "equation",
|
| 451 |
+
"img_path": "images/33838553fa2bb80a284ecae401f7852a5fe62f09189224b91fefa46a7d728fd2.jpg",
|
| 452 |
+
"text": "$$\n\\begin{array} { r } { \\pmb { x } _ { t + 1 } ^ { a d v } = \\mathrm { C l i p } _ { ( \\pmb { x } , \\epsilon ) } \\left\\{ \\pmb { x } _ { t } ^ { a d v } + \\alpha \\cdot \\mathrm { s i g n } ( \\pmb { g } _ { t } ) \\right\\} , } \\end{array}\n$$",
|
| 453 |
+
"text_format": "latex",
|
| 454 |
+
"bbox": [
|
| 455 |
+
359,
|
| 456 |
+
680,
|
| 457 |
+
635,
|
| 458 |
+
700
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 4
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "text",
|
| 464 |
+
"text": "where $\\mathbf { \\nabla } _ { \\mathbf { \\boldsymbol { g } } _ { t } }$ denotes the momentum, ${ \\bf { \\mathit { g } } } _ { 0 } = { \\bf { 0 } }$ , and $\\mu$ denotes the decay factor. ",
|
| 465 |
+
"bbox": [
|
| 466 |
+
176,
|
| 467 |
+
703,
|
| 468 |
+
656,
|
| 469 |
+
718
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 4
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "text",
|
| 475 |
+
"text": "We combine EM and PN as Experienced Precise Nesterov momentum (EPN) to further improve transferability. The algorithm of EPNI-FGSM, which integrates EPN into I-FGSM, is summarized in Algorithm 1. Particularly, if $\\frac { \\nabla _ { \\widetilde { \\pmb { x } } _ { t } ^ { a d v } } J ( f ( \\widetilde { \\pmb { x } } _ { t } ^ { a d v } ; \\pmb { \\theta } ) , y ) } { | | \\nabla _ { \\widetilde { \\pmb { x } } _ { t } ^ { a d v } } J ( f ( \\widetilde { \\pmb { x } } _ { t } ^ { a d v } ; \\pmb { \\theta } ) , y ) | | _ { 1 } } = \\mathbf { 0 }$ , EPNI-FGSM degrades to Experienced MI-FGSM (EMI-FGSM). If $\\frac { \\nabla _ { \\hat { \\pmb { x } } _ { t } ^ { a d v } } J ( f ( S ( \\hat { \\pmb { x } } _ { t } ^ { a d v } ) ; \\pmb { \\theta } ) , y ) } { | | \\nabla _ { \\hat { \\pmb { x } } _ { t } ^ { a d v } } J ( f ( S ( \\hat { \\pmb { x } } _ { t } ^ { a d v } ) ; \\pmb { \\theta } ) , y ) | | _ { 1 } } = \\mathbf { 0 }$ , EPNI-FGSM degrades to Experienced NI-FGSM (ENI-FGSM). If $e p o c h s = 0$ , EPNI-FGSM degrades to PNI-FGSM. ",
|
| 476 |
+
"bbox": [
|
| 477 |
+
173,
|
| 478 |
+
723,
|
| 479 |
+
825,
|
| 480 |
+
829
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 4
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "text",
|
| 486 |
+
"text": "4 EXPERIMENTS ",
|
| 487 |
+
"text_level": 1,
|
| 488 |
+
"bbox": [
|
| 489 |
+
176,
|
| 490 |
+
849,
|
| 491 |
+
328,
|
| 492 |
+
866
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 4
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "We conduct extensive experiments on normally trained and defense models to validate that our EPN is more efficient than conventional momentum. We first present the experimental settings in Sec. 4.1. Then, we report the results for attacking normally trained and defense models in Sec. 4.2 and ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
174,
|
| 501 |
+
881,
|
| 502 |
+
825,
|
| 503 |
+
924
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "table",
|
| 509 |
+
"img_path": "images/95f94de990d614b9f271a99dcbf24c84578b37b989b360a791135bb430333780.jpg",
|
| 510 |
+
"table_caption": [
|
| 511 |
+
"Table 2: The attack success rates $( \\% )$ of adversarial examples crafted on source models against normally trained target models. “\\*” indicates the model being white-box attacked. “Avg” means the average attack success rate. "
|
| 512 |
+
],
|
| 513 |
+
"table_footnote": [],
|
| 514 |
+
"table_body": "<table><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td rowspan=\"6\">Iv3</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>69.2 56.7</td><td>67.9</td><td>68.2</td><td>66.2</td><td>63.0</td><td>61.4</td><td>61.2</td><td></td></tr><tr><td>TI-MI-FGSM SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours)</td><td>41.8 77.4 88.7 70.6 90.2</td><td>99.7* 100.0* 100.0* 100.0* 100.0*</td><td>37.9 72.7 87.3 68.8 87.1</td><td>31.5 69.8 86.0 59.6</td><td>46.4 67.6 78.5 69.3</td><td>47.6 67.3 81.3 69.8</td><td>44.9 68.0 83.4 68.9</td><td>41.9 61.5 80.2 65.5 76.4</td><td>38.6 62.1 80.5 63.3</td><td>54.9 70.0 80.4 73.5</td><td>72.8 83.8 76.5</td><td>56.2 73.8 83.8 78.5</td><td>58.3 71.9 84.2 77.9</td><td>47.9 70.7 86.1 74.7</td><td>46.5 68.4 84.9 72.9</td><td>43.5 64.8 82.9 70.8</td><td>42.8 65.9 83.4 71.5</td><td>66.0 49.2 70.9 84.4 72.5</td></tr><tr><td>SI-EPNI-FGSM(Ours) VT-MI-FGSM VT-NI-FGSM</td><td>70.5 76.2</td><td>100.0* 100.0*</td><td>69.7 76.2</td><td>85.1 64.9 70.5</td><td>80.1 61.7 65.6</td><td>81.2 63.6 68.4</td><td>81.7 65.7 71.2</td><td>60.0 65.2</td><td>78.2 58.6 64.1</td><td>80.6 65.0 70.5</td><td>83.1 69.2 73.4</td><td>84.4 68.7 73.4</td><td>82.6 66.7 73.2</td><td>86.7 65.8 71.2</td><td>83.8 63.8 71.3</td><td>80.9 65.0 69.2</td><td>81.7 62.6 68.2</td><td>83.8 67.1 72.2</td></tr><tr><td>VT-EPNI-FGSM(Ours) FI-MI-FGSM FI-EPNI-FGSM(Ours)</td><td>84.8 85.8 90.0</td><td>100.0* 97.1* 97.4*</td><td>83.3 85.4 88.0</td><td>78.1 81.8 84.8</td><td>77.0 79.4 81.0</td><td>78.8 80.1 82.4</td><td>79.4 79.5 84.3</td><td>75.8 76.3 79.6</td><td>73.3 74.5 78.5</td><td>80.2 81.0 85.5</td><td>83.3 82.7 87.0</td><td>82.0 82.7 85.9</td><td>81.5 83.2 86.3</td><td>79.7 81.3 84.0</td><td>80.1 78.8 83.5</td><td>78.3 77.2 80.5</td><td>78.5 77.8 81.7</td><td>80.8 81.4</td></tr><tr><td>MI-FGSM NI-FGSM EPNI-FGSM(Ours)</td><td>46.4 49.0 68.1</td><td>44.0 45.6 65.3</td><td>45.4 48.5 68.4</td><td>99.6* 100.0* 100.0*</td><td>40.0 40.6 55.2</td><td>39.2 38.7 53.8</td><td>41.3 42.1 55.5</td><td>33.9 34.9 48.4</td><td>32.7 32.9 47.9</td><td>49.9 53.5 63.8</td><td>53.2 54.3 67.8</td><td>51.4 54.6 66.6</td><td>50.6 54.3 65.3</td><td>38.6 37.5 54.7</td><td>35.3 37.5 50.7</td><td>35.0 33.8 49.0</td><td>32.7 33.2 48.1</td><td>84.7 45.2 46.5 60.5</td></tr><tr><td>DI-MI-FGSM TI-MI-FGSM SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours) SI-EPNI-FGSM (Ours) VT-MI-FGSM</td><td>63.2 41.5 74.7 82.8 65.1</td><td>62.3 44.5 81.7 83.2 68.2</td><td>65.4 42.0 75.1 84.1 67.6</td><td>98.4* 97.9* 99.3* 100.0* 99.9* 100.0*</td><td>54.2 47.1 65.4 70.7 66.6</td><td>54.2 47.6 65.8 72.3 69.5</td><td>55.7 47.3 69.7 74.4 68.9</td><td>48.6 42.9 65.4 67.5 65.2</td><td>51.0 41.8 64.7 71.1 63.2</td><td>59.3 55.9 68.9 74.6 73.8</td><td>64.4 56.7 71.6 79.5 75.0</td><td>62.8 55.5 71.8 78.2 73.6</td><td>64.7 53.9 73.0 79.6 74.2</td><td>57.0 49.2 72.1 75.0 72.9</td><td>52.8 45.3 68.7 73.0 68.4</td><td>51.8 46.9 67.3 69.6 69.1</td><td>52.6 41.9 68.0 70.9 65.4</td><td>59.9 50.5 72.0 76.9 71.0</td></tr><tr><td></td><td>VT-NI-FGSM VT-EPNI-FGSM(Ours)</td><td>90.9 63.2 66.3 81.0</td><td>93.1 66.6 71.0 82.1</td><td>88.6 68.8 99.6* 73.1 99.8*</td><td>79.1 57.8 59.3</td><td>81.3 57.8 59.3</td><td>85.5 60.7 62.3 75.4</td><td>79.6 53.6 56.9 70.0</td><td>82.9 54.9 56.9 70.6</td><td>83.2 61.7 66.8 77.3</td><td>85.5 63.5 68.2 80.4</td><td>86.0 64.4 68.2 79.9</td><td>86.1 64.0 68.1</td><td>86.3 59.8 60.9</td><td>83.6 56.4 58.0 73.4</td><td>81.5 54.2 57.2</td><td>84.6 56.1 58.5</td><td>85.8 62.5 65.3</td></tr><tr><td></td><td>FI-MI-FGSM FI-EPNI-FGSM (Ours)</td><td>76.3 78.0</td><td>76.0 77.3</td><td>83.1 76.3 89.7* 78.0 91.0*</td><td>100.0* 71.7 67.5 69.8</td><td>72.4 68.0 69.9</td><td>69.7 72.2</td><td>66.8 68.9</td><td>65.5 67.4</td><td>72.5 73.5</td><td>73.7 74.0</td><td>73.4 74.5</td><td>78.7 73.5 73.6</td><td>77.3 70.7 71.7</td><td>68.3 69.0</td><td>72.0 66.8 66.9</td><td>71.9 67.0 67.2</td><td>77.5 71.9 73.1</td></tr><tr><td rowspan=\"5\">R152</td><td>MI-FGSM NI-FGSM EPNI-FGSM(Ours)</td><td>68.9 75.7 91.5</td><td>59.4 64.1 85.8</td><td>53.8 58.0 79.2 74.2</td><td>49.4 81.0 51.7 86.0</td><td>83.3 87.7 94.8 96.2</td><td>92.1 94.7 98.7</td><td>94.5 96.9 99.4</td><td></td><td>100.0* 100.0* 100.0*</td><td>72.7 74.1 76.1 77.4 88.7 89.8</td><td>72.5 77.0 89.5</td><td></td><td>72.5 76.2 89.6</td><td>86.5 87.4 96.5</td><td>83.0 85.1 96.5</td><td>82.5 84.0 85.5 86.7 97.6 96.7</td><td></td><td>77.1 80.4 92.0</td></tr><tr><td>DI-MI-FGSM TI-MI-FGSM SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours) SI-EPNI-FGSM(Ours)</td><td>85.6 57.1 85.1 97.6 80.3</td><td>82.9 51.3 77.2 96.9 78.2</td><td>75.5 50.1 71.1 94.2 75.7</td><td>72.1 41.4 66.5 92.1</td><td>91.8 70.9 89.6 98.0 89.3</td><td>93.8 75.0 92.0 98.9 91.4</td><td>96.0 80.5 95.3 99.4 94.0</td><td>96.8 84.5 97.8 99.6 95.5</td><td>100.0* 100.0* 100.0* 100.0* 100.0*</td><td>84.0 65.4 82.1 94.3 81.7</td><td>84.4 65.0 83.0 94.6 81.2</td><td>85.5 64.1 81.9 94.7 80.8</td><td>84.6 64.0 81.9 95.2 81.5</td><td>93.7 75.1 93.6 99.4 91.8</td><td>94.0 71.5 91.8 99.3 89.2</td><td>93.7 70.7 92.4 99.6 91.0</td><td>94.4 68.1 91.8 99.1 89.7</td><td>88.8 67.9 86.7 97.2 85.8</td></tr><tr><td>VT-MI-FGSM VT-NI-FGSM VT-EPNI-FGSM(Ours)</td><td>95.3 83.8 87.7 95.4</td><td>91.4 79.6 81.9 92.1</td><td>88.2 74.1 78.9</td><td>66.8 84.8 70.9 74.4</td><td>96.7 92.2 93.5</td><td>97.6 93.7 94.9</td><td>98.6 96.4 98.2</td><td>99.0 97.5 98.7</td><td>100.0* 100.0* 100.0*</td><td>90.3 83.6 85.3</td><td>91.2 82.8 87.2</td><td>92.2 84.4 88.2</td><td>90.5 83.8 86.9</td><td>99.0 94.2 96.1</td><td>98.2 92.4 94.9</td><td>98.1 93.1 95.1</td><td>98.2 93.6 95.7</td><td>94.7 88.0 90.4</td></tr><tr><td>FI-MI-FGSM FI-EPNI-FGSM(Ours) MI-FGSM</td><td>93.3 95.4 78.0</td><td>88.6 93.2</td><td>89.7 88.7 93.1</td><td>86.9 85.1 90.1</td><td>97.9 95.5 96.8</td><td>98.8 96.8 97.9</td><td>99.5 97.5 98.3</td><td>99.8 98.9 98.9</td><td>100.0* 99.9* 100.0*</td><td>93.6 92.5 94.1</td><td>93.5 92.0 94.8</td><td>93.7 93.0 95.0</td><td>94.4 93.8 95.1</td><td>99.4 97.0 97.6</td><td>98.7 95.7 97.4</td><td>99.4 96.6 97.3</td><td>98.8 96.9 97.6</td><td>96.0 94.2 96.0</td></tr><tr><td>NI-FGSM EPNI-FGSM(Ours) DI-MI-FGSM TI-MI-FGSM SI-NI-FGSM V16</td><td>78.8 93.5 88.4 60.6</td><td>59.2 61.6 82.3 75.6 51.1</td><td>63.8 68.8 87.0 77.5</td><td>43.8 47.3 68.1 59.5</td><td>80.0 82.3 91.5 87.8</td><td>73.3 76.1 90.0 83.9</td><td>75.0 78.0 90.0 86.2</td><td>63.7 67.0 82.9 73.8 53.6</td><td>58.7 60.4 77.6 69.7 48.4</td><td>94.7 96.8 99.0 98.3</td><td>98.3 99.2 100.0 98.8</td><td>99.8* 99.9* 100.0* 100.0*</td><td>99.2 99.1 99.9 99.4</td><td>77.0 79.1 91.2 88.0</td><td>69.5 72.1 87.3 81.5</td><td>65.3 66.4 85.8 78.2</td><td>64.9 66.0 87.0 77.5</td><td>74.4 76.4</td><td>89.0 83.8 64.6</td></tr><tr><td>VT-MI-FGSM VT-NI-FGSM</td><td>DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours) SI-EPNI-FGSM(Ours)</td><td>89.8 96.2 82.5 96.1 87.5</td><td>77.5 90.6 74.6 89.1 75.2</td><td>48.5 80.7 62.5 92.6 81.9 77.4 58.1 91.8 80.0 77.9 61.9</td><td>33.4</td><td>71.2 89.1 95.9 88.4 93.6 89.9</td><td>65.4 84.8 94.1 84.2 91.2 86.1</td><td>60.3 85.9 93.5 82.7 92.5 86.8</td><td>77.1 88.6 75.9 86.4 78.3</td><td>73.0 85.5 70.4 84.8 74.1</td><td>88.1 98.5 99.8 96.8 99.4 97.7</td><td>92.9 99.6 99.9 98.2 100.0 98.9</td><td>99.8* 100.0* 100.0* 100.0* 100.0* 99.9*</td><td>94.4 100.0 100.0 98.1 100.0 99.4</td><td>64.9 87.8 95.6 86.4 95.6 87.8</td><td>58.0 81.9 93.1 80.7 92.6 82.2</td><td>54.8 78.9 93.0 78.8 91.0 81.3</td><td>52.4 80.2 91.4 77.4 92.2 80.6</td><td>85.1 93.6 83.0 92.7 85.0</td></tr><tr><td>VT-EPNI-FGSM(Ours) FI-MI-FGSM</td><td></td><td>89.8 95.6 95.9</td><td>76.9 88.4 89.1</td><td>80.7 65.6 92.4 81.1 93.1 79.7</td><td>92.1 96.1 95.6</td><td>87.5 94.4 94.9</td><td>89.3 94.0 93.4</td><td>81.1 90.4 90.4</td><td>76.1 88.8 87.1</td><td></td><td>98.7 99.4 99.6</td><td>99.5 99.9 99.8</td><td>99.9* 99.9* 100.0*</td><td>99.4 99.9 99.8</td><td>88.7 95.6 94.3</td><td>85.4 93.7 91.5</td><td>82.5 93.2 90.2</td><td>82.9 92.2 88.6</td><td>86.8 93.8 93.1</td></tr><tr><td>FI-EPNI-FGSM(Ours)</td><td></td><td>96.7</td><td>90.4</td><td>94.1 84.3</td><td>96.7</td><td>95.9</td><td></td><td>96.0</td><td>92.6</td><td>90.1</td><td>99.8</td><td>99.8</td><td>100.0*</td><td>99.9</td><td>96.4</td><td>94.3</td><td>93.3</td><td>93.0</td><td>94.9</td></tr></table>",
|
| 515 |
+
"bbox": [
|
| 516 |
+
179,
|
| 517 |
+
160,
|
| 518 |
+
818,
|
| 519 |
+
616
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 5
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "text",
|
| 525 |
+
"text": "Sec. 4.3, respectively. Finally, we provide ablation studies in Sec. 4.4. Table 1 introduces the abbreviations used in the paper. ",
|
| 526 |
+
"bbox": [
|
| 527 |
+
176,
|
| 528 |
+
650,
|
| 529 |
+
823,
|
| 530 |
+
679
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 5
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "4.1 EXPERIMENTAL SETTINGS ",
|
| 537 |
+
"text_level": 1,
|
| 538 |
+
"bbox": [
|
| 539 |
+
176,
|
| 540 |
+
700,
|
| 541 |
+
398,
|
| 542 |
+
714
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 5
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "Dataset. We follow the previous works (Dong et al., 2019; Wang et al., 2021) to use the DEV dataset from the NIPS17 Adversarial Attacks and Defenses Competition. This dataset contains 1000 images with size $2 9 9 \\times 2 9 9$ . ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
176,
|
| 551 |
+
728,
|
| 552 |
+
821,
|
| 553 |
+
770
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 5
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "Target Models. Seventeen normally trained models, i.e., GoogLeNet (Iv1) (Szegedy et al., 2015), Inception-v3 (Iv3) (Szegedy et al., 2016), Inception-v4 (Iv4), Inception-ResNet-v2 (IRv2) (Szegedy et al., 2017), ResNet-18 (R18), ResNet-34 (R34), ResNet-50 (R50), ResNet-101 (R101), ResNet152 (R152) (He et al., 2016), VGG11 (V11), VGG13 (V13), VGG16 (V16), VGG19 (V19) (Simonyan & Zisserman, 2014), DenseNet-121 (D121), DenseNet-169 (D169), DenseNet-201 (D201), and DenseNet-161 (D161) (Huang et al., 2017). Ten defense models (i.e., adversarially trained models), i.e., Adv-Inception-v3 $( \\mathrm { I v } 3 _ { \\mathrm { a d v } } )$ , Ens-Inception-Resnet-v2 $( \\mathrm { I R } \\mathrm { v } 2 _ { \\mathrm { e n s } }$ ) Tramer et al. (2017), \\` Adv-EfficientNet-b0 $( \\mathrm { E b 0 _ { a d v } ) }$ to Adv-EfficientNet-b7 $( \\mathrm { E b } 7 _ { \\mathrm { a d v } } ,$ ). ",
|
| 560 |
+
"bbox": [
|
| 561 |
+
173,
|
| 562 |
+
776,
|
| 563 |
+
825,
|
| 564 |
+
888
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 5
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "Baselines. For fair comparison of our EPN and conventional momentum, we replace conventional momentum with our EPN in momentum-based attacks, i.e., MI-FGSM (Dong et al., 2018), NI",
|
| 571 |
+
"bbox": [
|
| 572 |
+
173,
|
| 573 |
+
895,
|
| 574 |
+
823,
|
| 575 |
+
924
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 5
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "table",
|
| 581 |
+
"img_path": "images/a957ef153e01230375406a247adb7e50ffabb5ed67bc7d3946922fab3b5fad65.jpg",
|
| 582 |
+
"table_caption": [
|
| 583 |
+
"Table 3: The attack success rates $( \\% )$ of adversarial examples crafted on source models against defense models. “Avg” means the average attack success rate. "
|
| 584 |
+
],
|
| 585 |
+
"table_footnote": [],
|
| 586 |
+
"table_body": "<table><tr><td>Models</td><td>Attacks</td><td>Iv3adv</td><td>IRv2ens</td><td>Eb0adv</td><td>Ebladv</td><td>Eb2adv</td><td>Eb3adv</td><td>Eb4adv</td><td>Eb5adv</td><td>Eb6adv</td><td>Eb7adv</td><td>Avg</td></tr><tr><td rowspan=\"9\">Iv3</td><td>MI-FGSM NI-FGSM EPNI-FGSM(Ours) DI-MI-FGSM</td><td>25.4 25.4 32.4 33.0</td><td>11.5 11.6 14.3 19.3</td><td>29.7 34.3 49.0 46.6</td><td>26.5 31.0 45.0 42.9</td><td>28.1 31.2 45.4 42.4</td><td>18.8 22.2 31.1 31.3</td><td>16.9 18.6 23.9 27.4</td><td>17.5 18.6 25.7 26.7</td><td>14.8 16.0 22.4</td><td>15.2 16.5 22.3 24.4</td><td>20.4 22.5 31.2 31.7</td></tr><tr><td>TI-MI-FGSM SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours)</td><td>29.9 37.4 41.5 54.1</td><td>21.5 23.2 25.2 41.2</td><td>35.2 50.2 65.0 60.7</td><td>32.6 46.1 65.5 58.2</td><td>34.9 46.3 64.7 57.0</td><td>27.8 33.3 45.5 46.6</td><td>29.3 30.9 39.1 46.7</td><td>28.2 29.6 41.6 45.3</td><td>22.9 24.5 27.6 36.7 43.4</td><td>26.6 25.8 35.6 44.2</td><td>29.1 35.0 46.0 49.7</td></tr><tr><td>SI-EPNI-FGSM(Ours) VT-MI-FGSM VT-NI-FGSM</td><td>47.4 36.8 39.1</td><td>28.4 25.1 26.4</td><td>66.3 50.5 54.0</td><td>64.7 46.3 50.6</td><td>63.1 44.9 49.5</td><td>46.7 33.5 36.6</td><td>41.8 29.4 31.0</td><td>42.1 29.4 32.7</td><td>37.9 26.8 30.3</td><td>37.3 26.2 28.5</td><td>47.6 34.9 37.9</td></tr><tr><td>VT-EPNI-FGSM(Ours) FI-MI-FGSM FI-EPNI-FGSM(Ours)</td><td>43.1 55.3 58.9</td><td>26.5 38.0 39.9</td><td>63.2 68.2 76.2</td><td>61.8 67.8 73.3</td><td>60.6 64.9 72.7</td><td>46.9 53.6 61.1</td><td>41.1 50.0 56.0</td><td>39.7 49.3 55.6</td><td>38.2 46.6 52.9</td><td>36.8 45.1 50.5</td><td>45.8 53.9 59.7</td></tr><tr><td>MI-FGSM NI-FGSM EPNI-FGSM(Ours) DI-MI-FGSM</td><td>27.3 25.9 33.5 33.1</td><td>15.5 14.9 15.9 24.7</td><td>25.2 24.8 36.3</td><td>22.8 23.1 32.4</td><td>24.3 23.6 34.9</td><td>17.0 17.8 23.9 27.1</td><td>13.8 14.1 20.7 24.6</td><td>14.6 14.9 20.4 23.2</td><td>12.1 12.8 17.6 22.0</td><td>13.2 13.7 17.8 20.8</td><td>18.6 18.6 25.3 28.7</td></tr><tr><td>TI-MI-FGSM SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours) SI-EPNI-FGSM(Ours)</td><td>38.1 37.0 39.4 58.3 45.6</td><td>32.2 33.0 29.7 52.9 41.5</td><td>38.1 39.0 50.8 57.4 60.5 68.9</td><td>35.8 36.7 48.2 52.4 58.3</td><td>37.9 39.4 46.9 53.4 56.6 66.8</td><td>30.2 35.7 41.0 49.7 50.2</td><td>33.8 32.0 33.6 50.9 42.6</td><td>31.4 28.7 33.3 47.0 43.5</td><td>29.2 26.9 30.2 48.0 39.7</td><td>29.7 27.5 30.6 46.5 40.1</td><td>34.0 36.7 40.1 52.9 50.3</td></tr><tr><td>VT-MI-FGSM VT-NI-FGSM VT-EPNI-FGSM(Ours) FI-MI-FGSM</td><td>38.8 40.5 48.2</td><td>36.4 34.8 36.6</td><td>42.3 44.6 59.5</td><td>64.3 38.9 41.1 55.3</td><td>41.2 43.4 54.1</td><td>31.2 33.1 43.0</td><td>28.4 28.2 38.8</td><td>26.4 26.6 38.0</td><td>25.4 25.8 36.9</td><td>25.4 26.2 35.3</td><td>33.4 34.4 44.6 46.7</td></tr><tr><td>FI-EPNI-FGSM(Ours) MI-FGSM NI-FGSM EPNI-FGSM(Ours)</td><td>54.5 53.3 36.5 40.1</td><td>40.1 47.1 27.8 29.4</td><td>57.4 59.6 46.6 49.8</td><td>56.7 56.8 43.6 47.3</td><td>56.3 57.9 47.3 47.8</td><td>45.7 47.0 30.9 33.2</td><td>40.9 43.3 27.3 29.1</td><td>39.7 42.1 26.5 27.7</td><td>38.2 40.6 22.0 25.2</td><td>37.4 38.6 24.8 25.4</td><td>48.6 33.3 35.5</td></tr><tr><td>DI-MI-FGSM TI-MI-FGSM SI-NI-FGSM R152</td><td>53.1 57.6 46.8 51.7 DI-EPNI-FGSM(Ours) 78.3</td><td>43.1 51.7 41.1 43.4 73.1</td><td>71.9 72.6 50.7 62.8 91.6</td><td>68.1 68.3 46.4 57.3 89.9</td><td>70.5 71.2 50.1 61.2 90.6</td><td>50.2 54.7 41.8 43.4 75.7</td><td>41.0 47.1 43.2 39.3 67.3</td><td></td><td>41.0 37.5 44.7 44.2 41.0 36.2 36.0 35.4 64.9 62.6</td><td>40.2 44.3 38.7 33.8 64.3</td><td>51.7 55.6 43.6 46.4 75.8</td></tr><tr><td>VT-MI-FGSM VT-NI-FGSM FI-MI-FGSM</td><td>TI-EPNI-FGSM(Ours) SI-EPNI-FGSM(Ours) VT-EPNI-FGSM(Ours)</td><td>72.2 67.4 67.5 59.3 59.1 52.6 61.6 55.5 72.6 71.6</td><td>74.7 79.4 69.6 73.6 86.2</td><td>70.1 78.5 64.9 68.2 85.3</td><td></td><td>74.2 81.1 69.3 72.1 88.4</td><td>62.9 61.8 55.1 56.1 74.1</td><td>62.7 53.7 48.8 50.6 66.0</td><td>60.7 51.5 46.1 48.7 64.8</td><td>59.3 58.3 48.8 50.3 43.6 44.6 45.5 47.9 62.2 65.1</td><td></td><td>66.3 63.2 55.4 58.0 73.6</td></tr><tr><td>TI-MI-FGSM V16</td><td>FI-EPNI-FGSM(Ours) MI-FGSM NI-FGSM EPNI-FGSM(Ours) DI-MI-FGSM</td><td>81.0 33.0 33.0 46.7 44.9</td><td>73.3 20.3 22.5 29.0 31.6</td><td>88.5 48.8 49.5 71.2 62.4</td><td>87.0 41.8 43.6 65.7 55.9</td><td>82.6 88.6 41.3 44.3 63.5 56.9</td><td>76.3 25.1 27.7 41.5 37.5</td><td>70.9 21.5 22.2 31.3 32.0</td><td>70.1 21.7 22.7 31.5 30.9</td><td>66.4 19.0 18.9 28.5 27.8</td><td>66.4 21.8 20.1 28.7 28.1</td><td>76.9 29.4 30.5 43.8 40.8</td></tr><tr><td></td><td>SI-NI-FGSM DI-EPNI-FGSM(Ours) TI-EPNI-FGSM(Ours) SI-EPNI-FGSM(Ours) VT-MI-FGSM VT-NI-FGSM</td><td>38.9 50.0 61.2 61.8 62.8 49.4 49.3</td><td>29.4 33.5 44.7 49.9 42.6 35.4 37.5</td><td>44.3 61.4 80.3 68.6 78.6 65.3</td><td>38.0 56.4 77.9 65.2 75.4 58.7</td><td>41.4 54.4 78.2 63.7 74.3 58.6</td><td>31.1 36.5 52.2 49.2 48.1 39.7</td><td>32.0 29.9 43.5 50.3 40.6 34.3</td><td>31.5 30.0 42.6 47.7 41.9 33.6</td><td>28.5 27.2 40.2 47.6 37.9 29.2</td><td>28.2 26.4 38.8 46.1 35.5 32.2</td><td>34.3 40.6 56.0 55.0 53.8</td></tr></table>",
|
| 587 |
+
"bbox": [
|
| 588 |
+
181,
|
| 589 |
+
142,
|
| 590 |
+
815,
|
| 591 |
+
729
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 6
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "FGSM (Lin et al., 2019), DI-MI-FGSM (Xie et al., 2019), TI-MI-FGSM (Dong et al., 2019), SI-NIFGSM (Lin et al., 2019), VT-MI-FGSM (Wang & He, 2021), VT-NI-FGSM (Wang & He, 2021) and FI-MI-FGSM (Wang et al., 2021). Then we compare the transferability of conventional momentumbased attacks and our EPN-based attacks. ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
174,
|
| 600 |
+
762,
|
| 601 |
+
825,
|
| 602 |
+
819
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 6
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "Hyperparameters. In all experiments, we follow the official default settings for hyperparameters. Specifically, the maximum perturbation $\\epsilon = 1 6$ , the number of iterations $T = 1 0$ , the step size $\\alpha = \\epsilon / T = 1 . 6$ , and the decay factor $\\mu = 1 . 0$ . For DIM (Xie et al., 2019), the probability $p$ is set to 0.5. For TIM (Dong et al., 2019), the size of the Gaussian kernel is set to $1 5 { \\times } 1 5$ . For SIM (Lin et al., 2019), the number of scale copies $m$ is set to 5. For VT-MI-FGSM (Wang & He, 2021) and VT-NIFGSM (Wang & He, 2021), the number of sampled examples $N$ is set to 20, and the parameter $\\beta$ for the upper bound of the neighborhood is set to 1.5. For FI-MI-FGSM (Wang et al., 2021), the drop probability $p _ { d }$ is set to 0.3 when attacking normally trained models and 0.1 when attacking defense models, the ensemble number $N$ is set to 30 in aggregate gradient, and the intermediate layer is set to Mixed ${ } _ { 5 b }$ for Iv3, Conv 4a for IRv2, Conv3 3 for V16 as well as the last layer of the second block for R152. For our EM-based attacks, epochs is set to 5. ",
|
| 609 |
+
"bbox": [
|
| 610 |
+
173,
|
| 611 |
+
825,
|
| 612 |
+
825,
|
| 613 |
+
924
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 6
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "image",
|
| 619 |
+
"img_path": "images/fafd2e428be0acdf7ede725979fa5a3c2e99054d62d3d5a67513a93fbcd1c074.jpg",
|
| 620 |
+
"image_caption": [
|
| 621 |
+
"Figure 3: The average attack success rates $( \\% )$ of the adversarial examples crafted on source models against normally trained models (except the source model) and defense models for various $\\mu$ . "
|
| 622 |
+
],
|
| 623 |
+
"image_footnote": [],
|
| 624 |
+
"bbox": [
|
| 625 |
+
176,
|
| 626 |
+
101,
|
| 627 |
+
486,
|
| 628 |
+
195
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 7
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "image",
|
| 634 |
+
"img_path": "images/13699bec5c115b8c6b25669e76ccd9babb24eaeb2ee8d0e2bc3561395399d59a.jpg",
|
| 635 |
+
"image_caption": [
|
| 636 |
+
"Figure 4: The average attack success rates $( \\% )$ of the adversarial examples crafted on source models against normally trained models (except the source model) and defense models for various epochs. "
|
| 637 |
+
],
|
| 638 |
+
"image_footnote": [],
|
| 639 |
+
"bbox": [
|
| 640 |
+
508,
|
| 641 |
+
101,
|
| 642 |
+
818,
|
| 643 |
+
195
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 7
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"text": "",
|
| 650 |
+
"bbox": [
|
| 651 |
+
174,
|
| 652 |
+
303,
|
| 653 |
+
825,
|
| 654 |
+
358
|
| 655 |
+
],
|
| 656 |
+
"page_idx": 7
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "text",
|
| 660 |
+
"text": "4.2 ATTACK NORMALLY TRAINED MODELS ",
|
| 661 |
+
"text_level": 1,
|
| 662 |
+
"bbox": [
|
| 663 |
+
176,
|
| 664 |
+
375,
|
| 665 |
+
491,
|
| 666 |
+
388
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 7
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "To validate that EPN-based attacks have higher transferability than conventional momentum-based attacks, we choose Iv3, IRv2, R152, and V16 as the source model, respectively, and attack normally trained target models via our EPN-based methods and baseline methods. The attack success rates are shown in Table 2. The results show that the attack success rates of our EPN-based methods are ${ \\sim } 1 1 . 9 \\%$ higher than baseline methods on average, In particular, our EPN-based attacks have the best transferability against normally trained target models when the source model is R152. Specifically, the attack success rates of EPNI-FGSM, DI-EPNI-FGSM, VT-EPNI-FGSM, and FI-EPNI-FGSM are $9 2 . 0 \\%$ , $9 7 . 2 \\%$ , $9 6 . 0 \\%$ , and $9 6 . 0 \\%$ , respectively, on average. Therefore, the experiments demonstrate that our EPN improves transferability more effectively than conventional momentum against normally trained models. ",
|
| 673 |
+
"bbox": [
|
| 674 |
+
174,
|
| 675 |
+
400,
|
| 676 |
+
825,
|
| 677 |
+
540
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 7
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "4.3 ATTACK DEFENSE MODELS ",
|
| 684 |
+
"text_level": 1,
|
| 685 |
+
"bbox": [
|
| 686 |
+
176,
|
| 687 |
+
556,
|
| 688 |
+
405,
|
| 689 |
+
570
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 7
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "To further compare the transferability, we also use defense models as the target models, and the source models are still Iv3, IRv2, R152, and V16. We craft adversarial examples on the source model via our EPN-based methods and baseline methods to attack defense models. The attack success rates are shown in Table 3. The results show that the attack success rates of our EPNbased methods are ${ \\sim } 1 3 . 1 \\%$ higher than baseline methods on average. Adversarial examples crafted on R152 still show the best transferability against defense models. Specifically, the attack success rates of EPNI-FGSM, DI-EPNI-FGSM, VT-EPNI-FGSM, and FI-EPNI-FGSM are $5 1 . 7 \\%$ , $7 5 . 8 \\%$ , $7 3 . 6 \\%$ , and $7 6 . 9 \\%$ , respectively, on average. The results of experiments indicate that our EPN is still more effective than conventional momentum against defense models. ",
|
| 696 |
+
"bbox": [
|
| 697 |
+
174,
|
| 698 |
+
582,
|
| 699 |
+
825,
|
| 700 |
+
708
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 7
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "4.4 ABLATION STUDY ",
|
| 707 |
+
"text_level": 1,
|
| 708 |
+
"bbox": [
|
| 709 |
+
176,
|
| 710 |
+
724,
|
| 711 |
+
341,
|
| 712 |
+
738
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 7
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "We conduct ablation studies for EPNI-FGSM. We investigate the impacts of two hyperparameters (i.e., the decay factor $\\mu$ and the epochs of pretraining epochs) on the transferability of EPNI-FGSM in Sec. 4.4.1. We further study the impacts of EM and PN on transferability in Sec. 4.4.2. ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
176,
|
| 721 |
+
751,
|
| 722 |
+
825,
|
| 723 |
+
792
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 7
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "4.4.1 IMPACTS OF $\\mu$ AND epochs ",
|
| 730 |
+
"text_level": 1,
|
| 731 |
+
"bbox": [
|
| 732 |
+
176,
|
| 733 |
+
808,
|
| 734 |
+
413,
|
| 735 |
+
821
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 7
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "The source models are set to Iv3, IRv2, R152, and V16. We use EPNI-FGSM to craft adversarial examples to attack normally trained models and defense models, respectively. We investigate the impacts of $\\mu$ and epochs on the transferability of EPNI-FGSM by counting the average attack success rates against normally trained models (except the source model) and defense models. ",
|
| 742 |
+
"bbox": [
|
| 743 |
+
176,
|
| 744 |
+
832,
|
| 745 |
+
823,
|
| 746 |
+
888
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 7
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "The decay factor $\\mu .$ . The decay factor $\\mu$ plays a vital role for momentum. If $\\mu = 0$ , the momentumbased attacks degrade to vanilla iterative gradient-based attacks. If $0 < \\mu < 1$ , the previous gradients accumulated in the momentum decay exponentially. If $\\mu = 1$ , the momentum simply adds up all previous gradients. If $\\mu > 1$ , the previous gradients accumulated in the momentum grow exponentially. We pre-set epoch $s = 5$ and set $\\mu$ from 0.0 to 2.0 with a step size of 0.1. The average attack success rates are shown in Fig. 3. When $\\mu \\leq 1 . 0$ , the average attack success rates show an upward trend, and when $\\mu \\geq 1 . 0$ , the average attack success rates show a downward trend. Therefore, we set $\\mu = 1 . 0$ for EPNI-FGSM to achieve the best transferability. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
174,
|
| 755 |
+
895,
|
| 756 |
+
821,
|
| 757 |
+
924
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 7
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "image",
|
| 763 |
+
"img_path": "images/e2f2ae241e3bdb3bc56d7fb243e0dfe1fdab5ecc0bb0f52c3961f4f1620f6522.jpg",
|
| 764 |
+
"image_caption": [
|
| 765 |
+
"Figure 5: The average attack success rates $( \\% )$ of the adversarial examples crafted on source models against normally trained models and defense models via NI-FGSM, ENI-FGSM, PNI-FGSM, and EPNI-FGSM. "
|
| 766 |
+
],
|
| 767 |
+
"image_footnote": [],
|
| 768 |
+
"bbox": [
|
| 769 |
+
253,
|
| 770 |
+
97,
|
| 771 |
+
746,
|
| 772 |
+
229
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 8
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "",
|
| 779 |
+
"bbox": [
|
| 780 |
+
174,
|
| 781 |
+
313,
|
| 782 |
+
825,
|
| 783 |
+
396
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 8
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "The epochs of pretraining epochs. epochs affects the amount of gradient accumulated in EM. We pre-set $\\mu = 1 . 0$ and set epochs from 0 to 10 with a step size of 1. The average attack success rates are shown in Fig. 4. As epochs increases, the average attack success rates increase and gradually converge. Since the larger epochs, the higher the computational cost, we set epochs $= 5$ for EPNIFGSM to strike a balance between computational cost and transferability. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
174,
|
| 792 |
+
404,
|
| 793 |
+
823,
|
| 794 |
+
473
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 8
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "In summary, we set the decay factor $\\mu = 1 . 0$ and the epochs of pretraining epochs $= 5$ for EPNIFGSM. Similarly, such two hyperparameters of other EPN-based attacks have the same settings as EPNI-FGSM. ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
174,
|
| 803 |
+
479,
|
| 804 |
+
823,
|
| 805 |
+
522
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 8
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "4.4.2 IMPACTS OF EM AND PN ",
|
| 812 |
+
"text_level": 1,
|
| 813 |
+
"bbox": [
|
| 814 |
+
176,
|
| 815 |
+
542,
|
| 816 |
+
401,
|
| 817 |
+
558
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 8
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "text",
|
| 823 |
+
"text": "The source models are the same as in Sec 4.4.1. To investigate the impacts of EM and PN, we craft adversarial examples on source models via ENI-FGSM (only with EM), PNI-FGSM (only with PN), and EPNI-FGSM (with EM and PN), respectively. In addition, we also use MI-FGSM and NI-FGSM (without EM and PN) as baselines. For ENI-FGSM, the epochs of pretraining epochs is set to 5. For ENI-FGSM and PNI-FGSM, the decay factor $\\mu$ is set to 1.0. The average attack success rates of the adversarial examples against normally trained models and defense models are shown in Fig. 5. The average attack success rates of ENI-FGSM are higher than MI-FGSM and NIFGSM, demonstrating that EM improves transferability more than conventional momentum. The same is true for PN. Besides, the average attack success rates of EPNI-FGSM are higher than that of ENI-FGSM and PNI-FGSM, demonstrating that the combination of EM and PN can further improve transferability. ",
|
| 824 |
+
"bbox": [
|
| 825 |
+
173,
|
| 826 |
+
570,
|
| 827 |
+
825,
|
| 828 |
+
723
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 8
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "5 CONCLUSION ",
|
| 835 |
+
"text_level": 1,
|
| 836 |
+
"bbox": [
|
| 837 |
+
176,
|
| 838 |
+
750,
|
| 839 |
+
318,
|
| 840 |
+
765
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 8
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "text",
|
| 846 |
+
"text": "In this work, we proposed Experienced Momentum (EM) and Precise Nesterov momentum (PN) to boost transferability. Specifically, EM is trained on a set of derived models by Random Channels Swapping (RCS), and then conventional momentum is initialized to EM, which can accelerate optimization to escape from saddle points and poor local extrema during early iterations to improve transferability. Additionally, we adopted the current gradient to refine the pre-update of conventional Nesterov momentum, called PN. Then, we naturally combined EM and PN as EPN to improve transferability further. Extensive experiments demonstrate that EPN-based attacks have higher transferability than conventional momentum-based attacks. However, our methods still adopt a fixed learning rate or step size that is crucial for the optimizer. Therefore, we will explore the impact of learning rate or step size on transferability in future work. ",
|
| 847 |
+
"bbox": [
|
| 848 |
+
173,
|
| 849 |
+
784,
|
| 850 |
+
825,
|
| 851 |
+
924
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 8
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "REFERENCES ",
|
| 858 |
+
"text_level": 1,
|
| 859 |
+
"bbox": [
|
| 860 |
+
176,
|
| 861 |
+
103,
|
| 862 |
+
285,
|
| 863 |
+
117
|
| 864 |
+
],
|
| 865 |
+
"page_idx": 9
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "text",
|
| 869 |
+
"text": "Ayelet Akselrod-Ballin, Leonid Karlinsky, Sharon Alpert, Sharbell Hasoul, Rami Ben-Ari, and Ella Barkan. A region based convolutional network for tumor detection and classification in breast mammography. In Deep learning and data labeling for medical applications, pp. 197–205. Springer, 2016. ",
|
| 870 |
+
"bbox": [
|
| 871 |
+
174,
|
| 872 |
+
126,
|
| 873 |
+
825,
|
| 874 |
+
181
|
| 875 |
+
],
|
| 876 |
+
"page_idx": 9
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "text",
|
| 880 |
+
"text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 ieee symposium on security and privacy (sp), pp. 39–57. IEEE, 2017. ",
|
| 881 |
+
"bbox": [
|
| 882 |
+
171,
|
| 883 |
+
190,
|
| 884 |
+
825,
|
| 885 |
+
220
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 9
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "text",
|
| 891 |
+
"text": "Grigorios G Chrysos, Stylianos Moschoglou, Giorgos Bouritsas, Yannis Panagakis, Jiankang Deng, and Stefanos Zafeiriou. P-nets: Deep polynomial neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7325–7335, 2020. ",
|
| 892 |
+
"bbox": [
|
| 893 |
+
176,
|
| 894 |
+
228,
|
| 895 |
+
823,
|
| 896 |
+
271
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 9
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "Marco Cococcioni, Emanuele Ruffaldi, and Sergio Saponara. Exploiting posit arithmetic for deep neural networks in autonomous driving applications. In 2018 International Conference of Electrical and Electronic Technologies for Automotive, pp. 1–6. IEEE, 2018. ",
|
| 903 |
+
"bbox": [
|
| 904 |
+
174,
|
| 905 |
+
280,
|
| 906 |
+
823,
|
| 907 |
+
321
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 9
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "Jia Ding, Aoxue Li, Zhiqiang Hu, and Liwei Wang. Accurate pulmonary nodule detection in computed tomography images using deep convolutional neural networks. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 559–567. Springer, 2017. ",
|
| 914 |
+
"bbox": [
|
| 915 |
+
174,
|
| 916 |
+
330,
|
| 917 |
+
821,
|
| 918 |
+
373
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 9
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 9185–9193, 2018. ",
|
| 925 |
+
"bbox": [
|
| 926 |
+
174,
|
| 927 |
+
381,
|
| 928 |
+
823,
|
| 929 |
+
425
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 9
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "Yinpeng Dong, Tianyu Pang, Hang Su, and Jun Zhu. Evading defenses to transferable adversarial examples by translation-invariant attacks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4312–4321, 2019. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
174,
|
| 938 |
+
433,
|
| 939 |
+
825,
|
| 940 |
+
477
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 9
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "Gianni Franchi, Xuanlong Yu, Andrei Bursuc, Remi Kazmierczak, S ´ everine Dubuisson, Emanuel ´ Aldea, and David Filliat. Muad: Multiple uncertainties for autonomous driving benchmark for multiple uncertainty types and tasks. arXiv preprint arXiv:2203.01437, 2022. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
174,
|
| 949 |
+
484,
|
| 950 |
+
825,
|
| 951 |
+
527
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 9
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "Aditya Ganeshan, Vivek BS, and R Venkatesh Babu. Fda: Feature disruptive attack. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 8069–8079, 2019. ",
|
| 958 |
+
"bbox": [
|
| 959 |
+
173,
|
| 960 |
+
535,
|
| 961 |
+
823,
|
| 962 |
+
565
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 9
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "Veta Ghenescu, Roxana Elena Mihaescu, Serban-Vasile Carata, Marian Traian Ghenescu, Eduard Barnoviciu, and Mihai Chindea. Face detection and recognition based on general purpose dnn object detector. In 2018 International Symposium on Electronics and Telecommunications (ISETC), pp. 1–4. IEEE, 2018. ",
|
| 969 |
+
"bbox": [
|
| 970 |
+
173,
|
| 971 |
+
573,
|
| 972 |
+
825,
|
| 973 |
+
631
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 9
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "text",
|
| 979 |
+
"text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. ",
|
| 980 |
+
"bbox": [
|
| 981 |
+
169,
|
| 982 |
+
638,
|
| 983 |
+
825,
|
| 984 |
+
667
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 9
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "Cong Hao, Yao Chen, Xinheng Liu, Atif Sarwari, Daryl Sew, Ashutosh Dhar, Bryan Wu, Dongdong Fu, Jinjun Xiong, Wen-mei Hwu, et al. Nais: Neural architecture and implementation search and its applications in autonomous driving. In 2019 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), pp. 1–8. IEEE, 2019. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
173,
|
| 993 |
+
675,
|
| 994 |
+
825,
|
| 995 |
+
733
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 9
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
173,
|
| 1004 |
+
741,
|
| 1005 |
+
823,
|
| 1006 |
+
784
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 9
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017. ",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
174,
|
| 1015 |
+
791,
|
| 1016 |
+
825,
|
| 1017 |
+
835
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 9
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International conference on machine learning, pp. 448–456. PMLR, 2015. ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
174,
|
| 1026 |
+
843,
|
| 1027 |
+
821,
|
| 1028 |
+
886
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 9
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25, 2012. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
174,
|
| 1037 |
+
895,
|
| 1038 |
+
820,
|
| 1039 |
+
924
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 9
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Alexey Kurakin, Ian Goodfellow, Samy Bengio, et al. Adversarial examples in the physical world, 2016. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
173,
|
| 1048 |
+
103,
|
| 1049 |
+
823,
|
| 1050 |
+
132
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 10
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "Jiadong Lin, Chuanbiao Song, Kun He, Liwei Wang, and John E Hopcroft. Nesterov accelerated gradient and scale invariance for adversarial attacks. arXiv preprint arXiv:1908.06281, 2019. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
173,
|
| 1059 |
+
140,
|
| 1060 |
+
823,
|
| 1061 |
+
170
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 10
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Tianjiao Liu, Qianqian Guo, Chunfeng Lian, Xuhua Ren, Shujun Liang, Jing Yu, Lijuan Niu, Weidong Sun, and Dinggang Shen. Automated detection and classification of thyroid nodules in ultrasound images using clinical-knowledge-guided convolutional neural networks. Medical image analysis, 58:101555, 2019. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
174,
|
| 1070 |
+
178,
|
| 1071 |
+
825,
|
| 1072 |
+
234
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 10
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. ",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
174,
|
| 1081 |
+
244,
|
| 1082 |
+
825,
|
| 1083 |
+
286
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 10
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Muzammal Naseer, Salman H Khan, Shafin Rahman, and Fatih Porikli. Task-generalizable adversarial attack based on perceptual metric. arXiv preprint arXiv:1811.09020, 2018. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
174,
|
| 1092 |
+
295,
|
| 1093 |
+
820,
|
| 1094 |
+
325
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 10
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Yurii Nesterov. A method for unconstrained convex minimization problem with the rate of convergence $\\mathbf { o } ( ^ { 1 } / k ^ { 2 } )$ . 1983. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
176,
|
| 1103 |
+
333,
|
| 1104 |
+
821,
|
| 1105 |
+
363
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 10
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Boris T Polyak. Some methods of speeding up the convergence of iteration methods. Ussr computational mathematics and mathematical physics, 4(5):1–17, 1964. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
173,
|
| 1114 |
+
371,
|
| 1115 |
+
821,
|
| 1116 |
+
400
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 10
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
174,
|
| 1125 |
+
409,
|
| 1126 |
+
823,
|
| 1127 |
+
438
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 10
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
173,
|
| 1136 |
+
446,
|
| 1137 |
+
825,
|
| 1138 |
+
476
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 10
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1–9, 2015. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
173,
|
| 1147 |
+
484,
|
| 1148 |
+
825,
|
| 1149 |
+
527
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 10
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818–2826, 2016. ",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
174,
|
| 1158 |
+
535,
|
| 1159 |
+
825,
|
| 1160 |
+
579
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 10
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In Thirty-first AAAI conference on artificial intelligence, 2017. ",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
173,
|
| 1169 |
+
587,
|
| 1170 |
+
825,
|
| 1171 |
+
631
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 10
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "Florian Tramer, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick Mc-\\` Daniel. Ensemble adversarial training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017. ",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
173,
|
| 1180 |
+
638,
|
| 1181 |
+
823,
|
| 1182 |
+
681
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 10
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "Xiaosen Wang and Kun He. Enhancing the transferability of adversarial attacks through variance tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1924–1933, 2021. ",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
174,
|
| 1191 |
+
690,
|
| 1192 |
+
823,
|
| 1193 |
+
733
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 10
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "Zhibo Wang, Hengchang Guo, Zhifei Zhang, Wenxin Liu, Zhan Qin, and Kui Ren. Feature importance-aware transferable adversarial attacks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 7639–7648, 2021. ",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
173,
|
| 1202 |
+
742,
|
| 1203 |
+
825,
|
| 1204 |
+
786
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 10
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "Cihang Xie, Zhishuai Zhang, Yuyin Zhou, Song Bai, Jianyu Wang, Zhou Ren, and Alan L Yuille. Improving transferability of adversarial examples with input diversity. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2730–2739, 2019. ",
|
| 1211 |
+
"bbox": [
|
| 1212 |
+
173,
|
| 1213 |
+
794,
|
| 1214 |
+
825,
|
| 1215 |
+
837
|
| 1216 |
+
],
|
| 1217 |
+
"page_idx": 10
|
| 1218 |
+
}
|
| 1219 |
+
]
|
parse/dev/LV8OmADmoOe/LV8OmADmoOe_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/LV8OmADmoOe/LV8OmADmoOe_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/Sxk8Bse3RKO/Sxk8Bse3RKO.md
ADDED
|
@@ -0,0 +1,297 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Reconstructing Training Data from Trained Neural Networks
|
| 2 |
+
|
| 3 |
+
Niv Haim∗ Weizmann Institute of Science niv.haim@weizmann.ac.il
|
| 4 |
+
|
| 5 |
+
Gal Vardi∗† TTI-Chicago and Hebrew University galvardi@ttic.edu
|
| 6 |
+
|
| 7 |
+
Gilad Yehudai∗ Weizmann Institute of Science gilad.yehudai@weizmann.ac.il
|
| 8 |
+
|
| 9 |
+
Ohad Shamir Weizmann Institute of Science ohad.shamir@weizmann.ac.il
|
| 10 |
+
|
| 11 |
+
Michal Irani Weizmann Institute of Science michal.irani@weizmann.ac.il
|
| 12 |
+
|
| 13 |
+
Project page: https://giladude1.github.io/reconstruction
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
Understanding to what extent neural networks memorize training data is an intriguing question with practical and theoretical implications. In this paper we show that in some cases a significant fraction of the training data can in fact be reconstructed from the parameters of a trained neural network classifier. We propose a novel reconstruction scheme that stems from recent theoretical results about the implicit bias in training neural networks with gradient-based methods. To the best of our knowledge, our results are the first to show that reconstructing a large portion of the actual training samples from a trained neural network classifier is generally possible. This has negative implications on privacy, as it can be used as an attack for revealing sensitive training data. We demonstrate our method for binary MLP classifiers on a few standard computer vision datasets.
|
| 18 |
+
|
| 19 |
+
# 1 Introduction
|
| 20 |
+
|
| 21 |
+
It is commonly believed that neural networks memorize the training data, even when they are able to generalize well to unseen test data (e.g., [Zhang et al., 2021, Feldman, 2020]). Exploring this memorization phenomenon is of great importance both practically and theoretically. Indeed, it has implications on our understanding of generalization in deep learning, on the hidden representations learnt by neural networks, and on the extent to which they are vulnerable to privacy attacks.
|
| 22 |
+
|
| 23 |
+
A fundamental question for understanding memorization is:
|
| 24 |
+
|
| 25 |
+
Are the specific training samples encoded in the parameters of a trained classifier? Can they be recovered from the network parameters?
|
| 26 |
+
|
| 27 |
+
In this work, we study this question, and devise a novel scheme which allows us to reconstruct a significant portion of the training data from the parameters of a trained neural network alone, without having any additional information on the data. Thus, we provide a proof-of-concept that the learning (a) Top 24 images reconstructed from a binary classifier trained on 50 CIFAR10 images (b) Their corresponding nearest neighbours from the training-set of the model process can sometimes be reversed: That is, instead of learning a model given a training dataset, it is possible to find the training data given a trained model. In Figure 1 we show how our approach reconstructs images from the CIFAR10 dataset, given a simple trained binary classifier.
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
|
| 31 |
+

|
| 32 |
+
Figure 1: Reconstruction of training images from a pretrained binary classifier, trained on 50 CIFAR10 images. The two classes are “animals” and “vehicles”. We calculate the nearest neighbor using the SSIM metric.
|
| 33 |
+
|
| 34 |
+
Many works try to “crack” neural networks by analyzing and visualizing either their learnt parameters or representations [Erhan et al., 2009, Mahendran and Vedaldi, 2015, Olah et al., 2017, 2020]. This is usually done by “inverting” the model, namely finding inputs that are strongly correlated with the model’s activations [Mordvintsev et al., 2015, Yin et al., 2020, Fredrikson et al., 2015]. Unsurprisingly, the results are semantically correlated with the training dataset. However, one rarely sees an exact version of a training sample.
|
| 35 |
+
|
| 36 |
+
Our results have potential negative implications on privacy in deep learning. Our scheme can be viewed as a training-data reconstruction attack, since an adversary might recover sensitive training data. For example, if a medical device includes a model trained on sensitive medical records, an adversary might reconstruct this data and thus violate the privacy of the patients. Privacy attacks in deep learning have been widely studied in recent years (cf. Liu et al. [2021]), but as far as we are aware, the known attacks cannot reconstruct portions of the training data from a trained model.
|
| 37 |
+
|
| 38 |
+
Our approach relies on theoretical results about the implicit bias in training neural networks with gradient-based methods. The implicit bias has been studied extensively in recent years with the motivation of explaining generalization in deep learning (see Section 2). We use results by Lyu and Li [2019], Ji and Telgarsky [2020], which establish that, under some technical assumptions, if we train a neural network with the binary cross entropy loss, its parameters will converge to a stationary point of a certain margin-maximization problem. This result implies that the parameters of the trained network satisfy a set of equations w.r.t. the training dataset. In our approach, given a trained network, we find a dataset that solves this set of equations w.r.t. the trained parameters.
|
| 39 |
+
|
| 40 |
+
Our Contributions We show that large portions of the training samples are encoded in the parameters of a trained classifier. We also provide a practical scheme to decode the training samples, without any assumptions on the data. As far as we know, this is the first work that shows that reconstruction of actual training samples from a trained neural network classifier is possible.
|
| 41 |
+
|
| 42 |
+
# 2 Related Work
|
| 43 |
+
|
| 44 |
+
Understanding and Visualizing what is learnt by Neural Networks. The most common approach for analysing what is learnt by a neural network is by searching inputs that maximize the class output or the activations of neurons in intermediate layers [Erhan et al., 2009, Olah et al., 2020]. Oftentimes this is done via optimization with respect to the model input. Optimizing without any prior on the input usually results in noise inputs. Therefore, most approaches incorporate priors such as smoothness regularization or the use of pre-trained image generators [Mahendran and Vedaldi, 2015, Yosinski et al., 2015, Mordvintsev et al., 2015, Nguyen et al., 2016a,b, 2017] (see Olah et al. [2017] for a comprehensive summary). Optimization w.r.t. the input may also result in adversarial examples [Szegedy et al., 2013, Goodfellow et al., 2014]. Recently, [Tsipras et al., 2018, Engstrom et al., 2019] showed that classifiers trained to be robust to adversarial examples tend to learn representations that are more aligned with human vision. This was later utilized by [Santurkar et al., 2019, Mejia et al., 2019] to generate class-conditional images from a trained classifier. While all those approaches indicate that, unsurprisingly, the learnt representations are strongly correlated with the datasets on which the model was trained, none of them demonstrate the reconstruction of exact training samples from the trained models.
|
| 45 |
+
|
| 46 |
+
Privacy Attacks in Deep Learning. Many methods deal with extracting sensitive information from trained models. Perhaps the closest to our approach is model-inversion that aims to reconstruct class representatives from the training data of a trained model [Fredrikson et al., 2015, He et al., 2019, Yang et al., 2019, Yin et al., 2020]. It is important to note that the reconstructed images, albeit semantically similar to some input images, are still not actual samples from the training set. Carlini et al. [2021, 2019] demonstrated reconstruction of training data from generative language models. By completing sentences, they reveal sensitive information from the training data. We note that this approach is specific to generative language models, while our approach considers classifiers and is less data specific. Membership-inference attacks [Shokri et al., 2017] aim to determine whether a given data point was used to train the model or not. For these methods to work, the adversary must be able to guess a specific input, whereas our approach does not assume such ability. Lastly, avoiding leakage of sensitive information on the training dataset is the motivation behind differential privacy in machine learning, which has been extensively studied [Abadi et al., 2016, Dwork et al., 2006, Chaudhuri et al., 2011]. For an elaborated discussion on the relation of these approaches to ours see Appendix A.
|
| 47 |
+
|
| 48 |
+
Implicit Bias. In overparameterized neural networks one might expect overfitting to occur, but it seems that gradient-based methods are biased towards networks that generalize well [Zhang et al., 2021, Neyshabur et al., 2017]. Mathematically characterizing this implicit bias is a major problem in the theory of deep learning. Our approach is based on a characterization of the implicit bias of gradient flow in homogeneous neural networks due to Lyu and Li [2019] and Ji and Telgarsky [2020] (see Section 3 for details). The implicit bias of gradient-based methods in neural networks was extensively studied in recent years both for classification tasks (e.g., Soudry et al. [2018], Gunasekar et al. [2018c], Ji and Telgarsky [2018], Nacson et al. [2019], Vardi et al. [2021], Chizat and Bach [2020], Gunasekar et al. [2018a], Moroshko et al. [2020]) and regression tasks (e.g., Gunasekar et al. [2018b], Arora et al. [2019], Azulay et al. [2021], Yun et al. [2020], Woodworth et al. [2020], Razin and Cohen [2020], Li et al. [2020], Vardi and Shamir [2021], Timor et al. [2022]). See Vardi [2022] for a survey.
|
| 49 |
+
|
| 50 |
+
# 3 Background and Reconstruction Scheme
|
| 51 |
+
|
| 52 |
+
In this section we present our training data reconstruction scheme, as well as provide a brief overview on the theoretical results about implicit bias, which motivate our approach.
|
| 53 |
+
|
| 54 |
+
# 3.1 On the Implicit Bias of Neural Networks
|
| 55 |
+
|
| 56 |
+
Let $S = \{ ( \mathbf { x } _ { i } , y _ { i } ) \} _ { i = 1 } ^ { n } \subseteq \mathbb { R } ^ { d } \times \{ - 1 , 1 \}$ be a binary classification training dataset. Let $\Phi ( \pmb \theta ; \cdot ) :$ $\mathbb { R } ^ { d } \to \mathbb { R }$ be a neural network parameterized by $\pmb { \theta } \in \mathbb { R } ^ { p }$ . For a loss function $\ell : \mathbb { R } \to \mathbb { R }$ the empirical loss of $\Phi ( \theta ; \cdot )$ on the dataset $S$ is $\begin{array} { r } { \mathcal { L } ( \pmb { \theta } ) : = \sum _ { i = 1 } ^ { n } \ell \big ( y _ { i } \Phi ( \pmb { \theta } ; \mathbf { x } _ { i } ) \big ) } \end{array}$ . We focus on the logistic loss (a.k.a. binary cross entropy), namely, $\ell ( q ) = \log ( 1 + e ^ { - q } )$ .
|
| 57 |
+
|
| 58 |
+
Our approach is based on Theorem 3.1 below, which holds for gradient flow (i.e., gradient descent with an infinitesimally small step size). Before stating the theorem, we need the following definitions: (1) We say that gradient flow converges in direction to $\tilde { \pmb { \theta } }$ if $\begin{array} { r } { \operatorname* { l i m } _ { t \infty } \frac { \pmb { \theta } ( t ) } { \lVert \pmb { \theta } ( t ) \rVert } = \frac { \tilde { \pmb { \theta } } } { \lVert \tilde { \pmb { \theta } } \rVert } } \end{array}$ , where $\pmb \theta ( t )$ is the parameter vector at time $t$ ; (2) We say that a network $\Phi$ is homogeneous w.r.t. the parameters $\pmb \theta$ if there exists $L > 0$ such that for every $\alpha > 0$ and $\theta , \mathbf { x }$ we have $\bar { \Phi ( \alpha \pmb { \theta } ; \mathbf { x } ) } = \alpha ^ { L } \Phi ( \bar { \pmb { \theta } } ; \mathbf { x } )$ . Thus, scaling the parameters by any factor $\alpha > 0$ scales the outputs by $\alpha ^ { L }$ . We note that essentially any fully-connected or convolutional neural network with ReLU activations is homogeneous w.r.t. the parameters $\pmb \theta$ if it does not have any skip-connections (i.e., residual connections) or bias terms, except possibly for the first layer.
|
| 59 |
+
|
| 60 |
+
Theorem 3.1 (Paraphrased from Lyu and Li [2019], Ji and Telgarsky [2020]) Let $\Phi ( \theta ; \cdot )$ be $a$ homogeneous ReLU neural network. Consider minimizing the logistic loss over a binary classification dataset $\{ ( \mathbf { x } _ { i } , y _ { i } ) \} _ { i = 1 } ^ { n }$ using gradient flow. Assume that there exists time $t _ { 0 }$ such that $\mathcal { L } ( \pmb { \theta } ( t _ { 0 } ) ) < 1 ^ { \ddagger }$ Then, gradient flow converges in direction to a first order stationary point (KKT point) of the following maximum-margin problem:
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\operatorname* { m i n } _ { \pmb { \theta } ^ { \prime } } \frac { 1 } { 2 } \left\| \pmb { \theta } ^ { \prime } \right\| ^ { 2 } s . t . \forall i \in [ n ] \ y _ { i } \Phi ( \pmb { \theta } ^ { \prime } ; \mathbf { x } _ { i } ) \geq 1 .
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
Moreover, $\mathcal { L } ( \pmb \theta ( t ) ) 0$ as $t \to \infty$ .
|
| 67 |
+
|
| 68 |
+
The above theorem guarantees directional convergence to a first order stationary point (of the optimization problem (1)), which is also called Karush–Kuhn–Tucker point, or KKT point for short. The KKT approach allows inequality constraints, and is a generalization of the method of Lagrange multipliers, which allows only equality constraints.
|
| 69 |
+
|
| 70 |
+
The great virtue of Theorem 3.1 is that it characterizes the implicit bias of gradient flow with the logistic loss for homogeneous networks. Namely, even though there are many possible directions of $\frac { \bar { \pmb { \theta } } } { \| \pmb { \theta } \| }$ that classify the dataset correctly, gradient flow converges only to directions that are KKT points of Problem (1). In particular, if the trajectory $\pmb \theta ( t )$ of gradient flow under the regime of Theorem 3.1 converges in direction to a KKT point $\tilde { \pmb { \theta } }$ , then we have the following: There exist $\lambda _ { 1 } , \ldots , \lambda _ { n } \in \mathbb { R }$ such that
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\begin{array} { l } { \displaystyle \tilde { \theta } = \sum _ { i = 1 } ^ { n } \lambda _ { i } y _ { i } \nabla _ { \theta } \Phi ( \tilde { \theta } ; { \bf x } _ { i } ) } \\ { \displaystyle \forall i \in [ n ] , ~ y _ { i } \Phi ( \tilde { \theta } ; { \bf x } _ { i } ) \geq 1 } \\ { \displaystyle \lambda _ { 1 } , \ldots , \lambda _ { n } \geq 0 } \\ { \displaystyle \forall i \in [ n ] , ~ \lambda _ { i } = 0 \mathrm { i f } y _ { i } \Phi ( \tilde { \theta } ; { \bf x } _ { i } ) \neq 1 } \end{array}
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
Our main insight is based on Eq. (2), which implies that the parameters $\tilde { \pmb { \theta } }$ are a linear combinations of the derivatives of the network at the training data points. We say that a data point $\mathbf { x } _ { i }$ is on the margin if $y _ { i } \Phi ( \tilde { \pmb { \theta } } ; { \mathbf x } _ { i } ) = 1$ (i.e. $| \Phi ( \tilde { \pmb \theta } ; { \mathbf x } _ { i } ) | = 1 )$ . Note that Eq. (5) implies that only samples which are on the margin affect Eq. (2), since samples not on the margin have a coefficient $\lambda _ { i } = 0$ .
|
| 77 |
+
|
| 78 |
+
# 3.2 Dataset Reconstruction
|
| 79 |
+
|
| 80 |
+
Suppose we are given a trained neural network with parameters $\pmb \theta$ , and our goal is to reconstruct the dataset that the network was trained on. Although Theorem 3.1 holds asymptotically as the time $t$ tends to infinity, it suggests that also after training for a finite number of iterations the parameters of the network might approximately satisfy Eq. (2), and the coefficients $\lambda _ { i }$ satisfy Eq. (4). Since $n$ is unknown (and so is the number of samples on the margin) we set $m \geq 2 n$ which represents the number of samples we want to reconstruct (thus, we only need to upper bound $n$ ), and fix $y _ { i } = 1$ for $i = 1 , \ldots , m / 2$ and $y _ { i } = - 1$ for $i = m / 2 + 1 , \dots , m$ . We define the following losses:
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
\begin{array} { r l } & { L _ { \mathrm { s t a t i o n a r y } } ( \mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { m } , \boldsymbol { \lambda } _ { 1 } , \ldots , \boldsymbol { \lambda } _ { m } ) = \displaystyle \left\| \pmb { \theta } - \sum _ { i = 1 } ^ { m } \lambda _ { i } y _ { i } \nabla _ { \pmb { \theta } } \Phi ( \pmb { \theta } ; \mathbf { x } _ { i } ) \right\| _ { 2 } ^ { 2 } } \\ & { L _ { \lambda } ( \lambda _ { 1 } , \ldots , \lambda _ { m } ) = \displaystyle \sum _ { i = 1 } ^ { m } \operatorname* { m a x } \{ - \lambda _ { i } , 0 \} } \end{array}
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
Note that the unknown parameters are the $\mathbf { x } _ { i }$ ’s and $\lambda _ { i }$ ’s, and that $\pmb { \theta }$ and the $y _ { i }$ ’s are given. The loss $L _ { \mathrm { s t a t i o n a r y } }$ represents the stationarity condition that the parameters of the network satisfy, and $L _ { \lambda }$ represents the dual feasibility condition. We additionally define $L _ { \mathrm { p r i o r } }$ which represents some prior knowledge we might have about the dataset. For example, if we know that the dataset contains images, prior knowledge would be that each input coordinate (i.e. each pixel) is between 0 and 1. Given no prior knowledge on the data, we can define $L _ { \mathrm { p r i o r } } \equiv 0$ . Finally, we define the reconstruction loss as:
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
L _ { \mathrm { r e c o n s t r u c t } } ( \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { m } , \{ \lambda _ { i } \} _ { i = 1 } ^ { m } ) = \alpha _ { 1 } L _ { \mathrm { s t a t i o n a r y } } + \alpha _ { 2 } L _ { \lambda } + \alpha _ { 3 } L _ { \mathrm { p r i o r } }
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
where $\alpha _ { 1 } , \alpha _ { 2 } , \alpha _ { 3 } \in \mathbb { R }$ are tunable hyperparameters of the different losses. To reconstruct the dataset, we can use any nonconvex optimization method (e.g. SGD) to find the $\mathbf { x } _ { 1 } , \hdots , \mathbf { x } _ { m } , \lambda _ { 1 } , \hdots , \lambda _ { m }$ which minimize Eq. (8). We note that the $\lambda _ { i }$ ’s are not part of the training data, but finding them is necessary in order to solve this optimization problem. Finally, we emphasize that there are many other possible options to formulate the KKT conditions Eq. (2)-(5) as an unconstrained optimization problem. However, this simple choice seemed to work quite well in practice.
|
| 93 |
+
|
| 94 |
+
We note that if there exist $\{ { \bf x } _ { i } \} _ { i = 1 } ^ { n }$ and $\{ \lambda _ { i } \} _ { i = 1 } ^ { n }$ which satisfy the KKT conditions, then there are $\{ { \bf x } _ { i } \} _ { i = 1 } ^ { m }$ and $\{ \lambda _ { i } \} _ { i = 1 } ^ { m }$ which achieve zero loss in Eq. (8). Indeed, such a solution can be obtained by adding to $\{ { \bf x } _ { i } \} _ { i = 1 } ^ { n }$ additional points $\mathbf { x } _ { j }$ with $\lambda _ { j } = 0$ , or by duplicating some points in $\{ { \bf x } _ { i } \} _ { i = 1 } ^ { n }$ and modifying the $\lambda$ ’s accordingly. Also, note that since we choose $m \geq 2 n$ , then we set at least $n$ labels $y _ { i }$ to 1 and at least $n$ labels to $- 1$ . Hence, there is a solution to Eq. (8) even though we do not know the real distribution of labels in the actual training data.
|
| 95 |
+
|
| 96 |
+
We cannot simply use Eq. (3) and (5) in our reconstruction scheme, because they contain the constant "1" which corresponds to the margin (i.e., $\operatorname* { m i n } _ { i } | \Phi ( \tilde { \pmb { \theta } } ; { \mathbf { x } } _ { i } ) | )$ . Namely, we only converge in direction to a point $\tilde { \pmb { \theta } }$ that attains margin 1, but in practice we approach some point $\pmb \theta$ which attains an unknown margin $\gamma$ (i.e., $\mathrm { m i n } _ { i } \left| \Phi ( \pmb { \theta } ; \mathbf { x } _ { i } ) \right| = \gamma )$ , and we do not know in advance how to normalize it to attain a margin of exactly 1. On the other hand, Eq. (2) and (4) hold not only for $\tilde { \pmb { \theta } }$ but also for any $\pmb { \theta }$ that points at the direction of $\tilde { \pmb { \theta } }$ , and therefore in our loss in Eq. (8) we rely only on these conditions.
|
| 97 |
+
|
| 98 |
+
Intuitively, a reason to believe that there is enough information in Eq. (2) to reconstruct the data, is the following observation: Eq. (2) represents a set of $p$ equations with $O ( n d )$ unknown variables, where $p$ is the number of parameters in the network. In practice, neural networks are often highly overparameterized (i.e., $p > n d ,$ , suggesting more equations than variables.
|
| 99 |
+
|
| 100 |
+
Finally, since by Eq. (5) we have $\lambda _ { i } = 0$ for every $\mathbf { x } _ { i }$ that is not on the margin, then Eq. (2) implies that $\tilde { \pmb { \theta } }$ is determined only by the gradients w.r.t. the data points that are on the margin. Hence, we can only expect to reconstruct training samples that are on the margin (see also Subsection 5.3).
|
| 101 |
+
|
| 102 |
+
# 4 A Simple Experiment in Two Dimensions
|
| 103 |
+
|
| 104 |
+

|
| 105 |
+
Figure 2: Exemplifying our reconstruction scheme on a simple 2D dataset (see text for explanation).
|
| 106 |
+
|
| 107 |
+
In this section we exemplify our dataset reconstruction scheme on a toy example of 2-dimensional data, i.e. we consider $( \dot { \bf x } , y ) \in \mathbb { R } ^ { 2 } \times \{ \pm 1 \}$ . We set $n = 2 0$ training samples on the unit circle, with alternating labels. For a visualization of the dataset see Figure 2a, blue and red " $" \times "$ represent the two classes. We trained a 3-layer model with 1000 neurons in each layer on this dataset. The model learns to correctly classify the training set. In Figure 2b, we visualize the output of the model as a function of its input. Blue and red regions correspond to smaller and larger outputs of the model, respectively.
|
| 108 |
+
|
| 109 |
+
We now demonstrate our reconstruction scheme. We first randomly initialize $m = 1 0 0$ points in $\mathbb { R } ^ { 2 }$ , and assign 50 points to each class. This is depicted in Figure $2 \mathrm { c }$ , where green points correspond to the blue class, and magenta points correspond to the red class. Next, we optimize the loss in Eq. (8), with $L _ { \mathrm { p r i o r } } \equiv 0$ . The results of our reconstruction scheme are in Figure 2d. Note that our approach reconstructed all the input samples, up to some noise.
|
| 110 |
+
|
| 111 |
+
To further improve our reconstruction results, we remove some of the extra points which did not converge to a training sample. In Figure 2e we removed points $\mathbf { x } _ { i }$ with corresponding $\lambda _ { i } ~ < ~ 5$ . According to Eq. (2), points with $\lambda _ { i } = 0$ should not affect the parameters, hence their corresponding $\mathbf { x } _ { i }$ can take any value. In practice, it is sufficient to remove points with a small enough corresponding $\lambda _ { i }$ . Finally, to remove duplicates, we greedily remove points which are very close to other points. That is, we randomly order the points, and iteratively remove points that are at distance $< 0 . 0 3$ from another point. The final reconstruction result is depicted in Figure 2f.
|
| 112 |
+
|
| 113 |
+
# 5 Results
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
Top 45 images reconstructed from a model trained on CIFAR10 (rows 1, 3, 5), and their corresponding nearest-neighbors from the training-set of the model (rows 2, 4, 6)
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
Top 45 images reconstructed from a model trained on MNIST (rows 1, 3, 5), and their corresponding nearest-neighbors from the training-set of the model (rows 2, 4, 6)
|
| 120 |
+
Figure 3: Reconstructing training samples from two binary classifiers – one trained on 500 images with labels animals/vehicles (CIFAR), and the other trained on 500 odd/even digit images (MNIST). Train errors are zero, test accuracies are $8 8 . 0 \% / 7 7 . 6 \%$ for MNIST/CIFAR
|
| 121 |
+
|
| 122 |
+
# 5.1 Experimental Setup
|
| 123 |
+
|
| 124 |
+
Datasets. We conduct experiments on binary classification tasks where images are taken from the MNIST [LeCun et al., 2010] and CIFAR10 [Krizhevsky et al., 2009] datasets and the labels are set to odd vs. even digits (MNIST), and vehicles vs. animals§ (CIFAR10). We make sure that the class distribution in the training and test sets is balanced, and normalize the train and test sets by reducing the mean of the training set from both.
|
| 125 |
+
|
| 126 |
+
Training. We consider MLP architectures. Unless stated otherwise, our models comprise of three fully-connected layers with dimensions $d$ -1000-1000-1 (where $d$ is the dimension of the input) with ReLU activations. Biases are set to zero except for the first layer, to line up with the theoretical assumption of homogeneous models in Section 3. The parameters are initialized using standard Kaiming He initialization [He et al., 2015] except for the weights of the first layer that are initialized to a Gaussian distribution with standard deviation $1 0 ^ { - 4 }$ (see discussion in Subsection 5.2). We train our models using full batch gradient descent for $1 0 ^ { 6 }$ epochs with a learning rate of 0.01. All models achieve zero training error (i.e., all the train samples are labeled correctly), and a training loss $< 1 0 ^ { - 6 }$ To compute the test accuracy, we use the original test sets of MNIST/CIFAR10 with 10000/8000 images respectively, and labeled accordingly.
|
| 127 |
+
|
| 128 |
+
# 5.2 Training Set Reconstruction
|
| 129 |
+
|
| 130 |
+
We minimize the loss defined in Eq. (8) with $\alpha _ { 1 } = 1$ , $\alpha _ { 2 } = 5$ , $\alpha _ { 3 } = 1$ . We initialize $\mathbf { x } _ { i } \sim \mathcal { N } ( 0 , \sigma _ { x } I )$ , where $\sigma _ { x }$ is a hyperparameter, and $\lambda _ { i } \sim \mathcal { U } [ 0 , 1 ]$ . We set the number of reconstructed samples to $m =$ $2 n$ (where $n$ is the size of the original training set). Note that our loss contains the derivative of ReLU Eq. (6). This derivative is a step function, containing only flat regions which are hard to optimize. We replace the derivative of the ReLU layer (backward function) with a sigmoid, which is the derivative of softplus (a smooth version of ReLU). We use the fact that our inputs are images to penalize values outside the range $[ - 1 , 1 ]$ . To this end we set $L _ { \mathrm { p r i o r } } ( z ) = \operatorname* { m a x } \{ z - 1 , 0 \} + \operatorname* { m a x } \{ - z - 1 , 0 \}$ for each pixel $z$ , and average over all dimensions (pixels) in $\mathbf { x } _ { i }$ . We optimize our loss for 100, 000 iterations using an SGD optimizer with momentum 0.9. We conduct a total of 100 runs using a random grid search on the hyperparameters (e.g. learning rate, $\sigma _ { x }$ . See Appendix $\mathbf { B }$ for full details). This results in $1 0 0 m$ “reconstructed” inputs.
|
| 131 |
+
|
| 132 |
+
While some $\mathbf { x } _ { i }$ end up converging to a training sample, some end as noise (similar phenomenon can be observed in 2D in Figure 2d). To identify the reconstructions that are most similar to a training image we use the SSIM metric [Wang et al., 2004].
|
| 133 |
+
|
| 134 |
+
In Figure 3 we show the best reconstruction results (in terms of SSIM) for models trained on $n { = } 5 0 0$ samples from MNIST/CIFAR10 datasets (with test accuracy $8 8 . 0 \% / 7 7 . 6 \%$ resp.). Note that the reconstructed images are very similar to the real input data, although a bit noisy. The source of this noise is not entirely clear. Possible reasons may be the complexity of the optimization problem, or the possibility that the trained model has not fully converged to the KKT point of Problem (1).
|
| 135 |
+
|
| 136 |
+
We observed that small initializations significantly improve the quality of the reconstructed samples. We conjecture that small initialization causes faster convergence to the direction of the KKT point. This is also theoretically implied in Moroshko et al. [2020] (for certain linear models). Similarly, training for more epochs also improves the quality of the reconstruction. In Appendix C we show results for reconstructions from networks trained with standard initialization or trained for much fewer epochs. During the training phase, we used full batch gradient descent, to remain as much aligned to the theoretical setting. In Appendix C we show that our approach can reconstruct training data also from models trained with mini-batch SGD.
|
| 137 |
+
|
| 138 |
+
# 5.3 Practice vs. Theory
|
| 139 |
+
|
| 140 |
+
In this section we analyze some relations between our experimental results to the theory laid down in Section 3. Given a trained model and its reconstructed samples, we match each training sample to its best reconstruction (in terms of SSIM score). We then plot this SSIM score against $\bar { \Phi } ( \pmb \theta ; \mathbf x )$ (the value of the model’s output on this training sample) – for all training samples. In Figure 4 each cell shows such plot for a given model. The top row shows models trained on the same architecture with
|
| 141 |
+
|
| 142 |
+
Models with the same architecture (1000-1000) trained on different number of training samples $( n )$
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
|
| 146 |
+

|
| 147 |
+
Models trained on $n = 5 0 0$ samples with different architectures
|
| 148 |
+
Figure 4: Each point represents a training sample. The y-axis is the highest SSIM score achieved by a reconstruction of this sample, the $\mathbf { X }$ -axis is the output of the model. Top: The effect of training the same model on different number of training samples $( n )$ . Bottom: The effect of training models with different architectures (on $n = 5 0 0$ training samples). The right-most plot shows a 3-layer non-homogeneous MLP (with bias terms in all hidden layers). See discussion in Section 5.3.
|
| 149 |
+
|
| 150 |
+
different number of training samples $( n )$ , where in the bottom row we show the results for models trained on $n = 5 0 0$ training samples, with different architectures (all results are on CIFAR10).
|
| 151 |
+
|
| 152 |
+
Recall that we do not expect to reconstruct samples that are far from the margin (Subsection 3.2). It is evident from Figure 4 that good reconstructions (e.g., $\mathrm { S S I M } > 0 . 4 \AA ,$ ) are obtained for samples that lie on the margin, as expected from theory. The plots indicate that increasing training size makes reconstruction more difficult. Lastly, as seen from the rightmost plot in the bottom row, we manage to get high-quality reconstructions from a non-homogeneous model (trained with biases in all hidden layers). This indicates that our approach may work beyond the theoretical limitations of Theorem 3.1.
|
| 153 |
+
|
| 154 |
+
# 5.4 Comparison to other Reconstruction Schemes
|
| 155 |
+
|
| 156 |
+
Model Inversion. Given a trained model $\Phi ( \theta ; \cdot )$ , we search for $\mathbf { x }$ which maximizes or minimizes $\Phi ( \pmb \theta ; \mathbf x )$ , corresponding to positive or negative labels. We initialize $\mathbf { x } \sim \mathcal { N } ( 0 , \sigma I )$ for several values of $\sigma$ and optimize w.r.t. the model output (see Appendix B for the choice of hyperparameters). In Figure 5a (left) it is apparent that in our two-dimensional experiment, model inversion successfully reconstructed 7 training samples, which indeed lie on a local minimum or maximum. However, note that our scheme reconstructs all 20 samples (Figure 2). In high dimensions, namely, in MNIST and CIFAR, while our scheme can reconstruct a large portion of the training set (Figure 3a), model inversion converges to noisy/blurry class representatives that correspond to high/low output values (Figure 5a, right). Such results are typical with model inversion since not all class members from the training set are visually similar (see discussions in Shokri et al. [2017], Melis et al. [2019]).
|
| 157 |
+
|
| 158 |
+
Weights Visualization. The weights of the first fully-connected layer have the same dimension as that of the input. One may wonder whether training samples are directly encoded there. In Figure 5b we show the weights that are most similar (SSIM) to a training sample, or all of them in the 2D case. As seen in the 2D case, most weights are in the general direction of a training sample, however the scale is unknown without prior knowledge on the data. For images (MNIST/CIFAR10), not more than 3 or 4 of the weights have resemblance to training samples, while our scheme manages to reconstruct dozens of samples. See Appendix B and C for details and all 1000 weights of the models.
|
| 159 |
+
|
| 160 |
+
# 6 Discussion and Conclusion
|
| 161 |
+
|
| 162 |
+
Even though our results are shown for relatively small-scale models, they are the first to show that the parameters of trained networks may contain enough information to fully reconstruct training samples,
|
| 163 |
+
|
| 164 |
+
# (a) Model Inversion
|
| 165 |
+
|
| 166 |
+

|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
(b) Weights of the first Fully-Connected Layer
|
| 170 |
+
Figure 5: Comparison to other reconstruction schemes. Top: Model inversion on the 2D experiment (left), on CIFAR10 (top right) and MNIST (bottom right). The CIFAR and MNIST images are ordered by the value of their output from left (smallest) to right (largest). Bottom: Weights of the first (fully-connected) layer for the 2D experiment (left), CIFAR10 (top right) and MNIST (bottom right). The weights for the 2D experiment are the small purple dots. For the CIFAR and MNIST experiments we show the 10 weights with the highest SSIM score.
|
| 171 |
+
|
| 172 |
+
and the first to reconstruct a substantial amount of training samples. Moreover, the theoretical basis of the implicit bias in neural networks provides an analytic explanation to this phenomenon.
|
| 173 |
+
|
| 174 |
+
Solving our optimization problem for convolutional neural networks turned out to be more challenging and is therefore a subject of future research. We note that the theoretical results that we rely on (i.e., Theorem 3.1) also covers convolutional neural networks. We believe that the homogeneity restriction might be relaxed, and showed reconstructions also from a non-homogeneous model (Figure 4, bottomrightmost). We also believe that our method may be extended to multi-class classifiers using an extension of Theorem 3.1. Finally, showing reconstructions on larger models and datasets, or on tabular or textual data are interesting future directions.
|
| 175 |
+
|
| 176 |
+
On the theoretical side, it is not entirely clear why our optimization problem in Eq. (8) converges to actual training samples, even though there is no guarantee that the solution is unique, especially when using no prior (other than simple bounding to $[ - 1 , 1 ] ,$ . As a final note, our work brings up the question: are samples on margin the only ones that can be recovered from a trained classifier? or there exist better reconstruction schemes to reconstruct even more training samples from a trained neural network.
|
| 177 |
+
|
| 178 |
+
# Acknowledgements
|
| 179 |
+
|
| 180 |
+
This project received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 788535), and ERC grant 754705, and from the D. Dan and Betty Kahn Foundation, and was supported by the Carolito Stiftung.
|
| 181 |
+
|
| 182 |
+
# References
|
| 183 |
+
|
| 184 |
+
M. Abadi, A. Chu, I. Goodfellow, H. B. McMahan, I. Mironov, K. Talwar, and L. Zhang. Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC conference on computer and communications security, pages 308–318, 2016.
|
| 185 |
+
|
| 186 |
+
S. Arora, N. Cohen, W. Hu, and Y. Luo. Implicit regularization in deep matrix factorization. In Advances in Neural Information Processing Systems, pages 7413–7424, 2019.
|
| 187 |
+
S. Azulay, E. Moroshko, M. S. Nacson, B. Woodworth, N. Srebro, A. Globerson, and D. Soudry. On the implicit bias of initialization shape: Beyond infinitesimal mirror descent. In International Conference on Machine Learning, pages 468–477, 2021.
|
| 188 |
+
B. Balle, G. Cherubin, and J. Hayes. Reconstructing training data with informed adversaries. arXiv preprint arXiv:2201.04845, 2022.
|
| 189 |
+
L. Biewald. Experiment tracking with weights and biases, 2020. URL https://www.wandb.com/. Software available from wandb.com.
|
| 190 |
+
G. Brown, M. Bun, V. Feldman, A. Smith, and K. Talwar. When is memorization of irrelevant training data necessary for high-accuracy learning? In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 123–132, 2021.
|
| 191 |
+
N. Carlini, C. Liu, Ú. Erlingsson, J. Kos, and D. Song. The secret sharer: Evaluating and testing unintended memorization in neural networks. In 28th USENIX Security Symposium (USENIX Security 19), pages 267–284, 2019.
|
| 192 |
+
N. Carlini, S. Deng, S. Garg, S. Jha, S. Mahloujifar, M. Mahmoody, S. Song, A. Thakurta, and F. Tramer. Is private learning possible with instance encoding? arXiv preprint arXiv:2011.05315, 2020a.
|
| 193 |
+
N. Carlini, M. Jagielski, and I. Mironov. Cryptanalytic extraction of neural network models. In Annual International Cryptology Conference, pages 189–218. Springer, 2020b.
|
| 194 |
+
N. Carlini, F. Tramer, E. Wallace, M. Jagielski, A. Herbert-Voss, K. Lee, A. Roberts, T. Brown, D. Song, U. Erlingsson, et al. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21), pages 2633–2650, 2021.
|
| 195 |
+
K. Chaudhuri, C. Monteleoni, and A. D. Sarwate. Differentially private empirical risk minimization. Journal of Machine Learning Research, 12(3), 2011.
|
| 196 |
+
S. Chen, A. Klivans, and R. Meka. Efficiently learning one hidden layer relu networks from queries. Advances in Neural Information Processing Systems, 34, 2021.
|
| 197 |
+
L. Chizat and F. Bach. Implicit bias of gradient descent for wide two-layer neural networks trained with the logistic loss. In Conference on Learning Theory, pages 1305–1338. PMLR, 2020.
|
| 198 |
+
C. Dwork, F. McSherry, K. Nissim, and A. Smith. Calibrating noise to sensitivity in private data analysis. In Theory of cryptography conference, pages 265–284. Springer, 2006.
|
| 199 |
+
L. Engstrom, A. Ilyas, S. Santurkar, D. Tsipras, B. Tran, and A. Madry. Adversarial robustness as a prior for learned representations. arXiv preprint arXiv:1906.00945, 2019.
|
| 200 |
+
D. Erhan, Y. Bengio, A. Courville, and P. Vincent. Visualizing higher-layer features of a deep network. University of Montreal, 1341(3):1, 2009.
|
| 201 |
+
V. Feldman. Does learning require memorization? a short tale about a long tail. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, pages 954–959, 2020.
|
| 202 |
+
M. Fredrikson, S. Jha, and T. Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22nd ACM SIGSAC conference on computer and communications security, pages 1322–1333, 2015.
|
| 203 |
+
I. J. Goodfellow, J. Shlens, and C. Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
|
| 204 |
+
S. Gunasekar, J. Lee, D. Soudry, and N. Srebro. Characterizing implicit bias in terms of optimization geometry. In International Conference on Machine Learning, pages 1832–1841. PMLR, 2018a.
|
| 205 |
+
S. Gunasekar, J. Lee, D. Soudry, and N. Srebro. Implicit bias of gradient descent on linear convolutional networks. arXiv preprint arXiv:1806.00468, 2018b.
|
| 206 |
+
S. Gunasekar, J. D. Lee, D. Soudry, and N. Srebro. Implicit bias of gradient descent on linear convolutional networks. In Advances in Neural Information Processing Systems, pages 9461–9471, 2018c.
|
| 207 |
+
K. He, X. Zhang, S. Ren, and J. Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pages 1026–1034, 2015.
|
| 208 |
+
Z. He, T. Zhang, and R. B. Lee. Model inversion attacks against collaborative inference. In Proceedings of the 35th Annual Computer Security Applications Conference, pages 148–162, 2019.
|
| 209 |
+
B. Hitaj, G. Ateniese, and F. Perez-Cruz. Deep models under the gan: information leakage from collaborative deep learning. In Proceedings of the 2017 ACM SIGSAC conference on computer and communications security, pages 603–618, 2017.
|
| 210 |
+
Y. Huang, Z. Song, K. Li, and S. Arora. Instahide: Instance-hiding schemes for private distributed learning. In International Conference on Machine Learning, pages 4507–4518. PMLR, 2020.
|
| 211 |
+
Y. Huang, S. Gupta, Z. Song, K. Li, and S. Arora. Evaluating gradient inversion attacks and defenses in federated learning. Advances in Neural Information Processing Systems, 34:7232–7241, 2021.
|
| 212 |
+
M. Jagielski, N. Carlini, D. Berthelot, A. Kurakin, and N. Papernot. High accuracy and high fidelity extraction of neural networks. In 29th USENIX Security Symposium (USENIX Security 20), pages 1345–1362, 2020.
|
| 213 |
+
M. Jegorova, C. Kaul, C. Mayor, A. Q. O’Neil, A. Weir, R. Murray-Smith, and S. A. Tsaftaris. Survey: Leakage and privacy at inference time. arXiv preprint arXiv:2107.01614, 2021.
|
| 214 |
+
Z. Ji and M. Telgarsky. Gradient descent aligns the layers of deep linear networks. In International Conference on Learning Representations, 2018.
|
| 215 |
+
Z. Ji and M. Telgarsky. Directional convergence and alignment in deep learning. Advances in Neural Information Processing Systems, 33:17176–17186, 2020.
|
| 216 |
+
A. Krizhevsky, G. Hinton, et al. Learning multiple layers of features from tiny images. 2009.
|
| 217 |
+
Y. LeCun, C. Cortes, and C. Burges. Mnist handwritten digit database. ATT Labs [Online]. Available: http://yann.lecun.com/exdb/mnist, 2, 2010.
|
| 218 |
+
J. P. Lewis. Fast normalized cross-correlation. 1995. URL http://citeseerx.ist.psu.edu/ viewdoc/summary?doi=10.1.1.21.6062.
|
| 219 |
+
Z. Li, Y. Luo, and K. Lyu. Towards resolving the implicit bias of gradient descent for matrix factorization: Greedy low-rank learning. In International Conference on Learning Representations, 2020.
|
| 220 |
+
B. Liu, M. Ding, S. Shaham, W. Rahayu, F. Farokhi, and Z. Lin. When machine learning meets privacy: A survey and outlook. ACM Computing Surveys (CSUR), 54(2):1–36, 2021.
|
| 221 |
+
Y. Long, V. Bindschaedler, L. Wang, D. Bu, X. Wang, H. Tang, C. A. Gunter, and K. Chen. Understanding membership inferences on well-generalized learning models. arXiv preprint arXiv:1802.04889, 2018.
|
| 222 |
+
K. Lyu and J. Li. Gradient descent maximizes the margin of homogeneous neural networks. arXiv preprint arXiv:1906.05890, 2019.
|
| 223 |
+
A. Mahendran and A. Vedaldi. Understanding deep image representations by inverting them. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5188–5196, 2015.
|
| 224 |
+
F. A. Mejia, P. Gamble, Z. Hampel-Arias, M. Lomnitz, N. Lopatina, L. Tindall, and M. A. Barrios. Robust or private? adversarial training makes models more vulnerable to privacy attacks. arXiv preprint arXiv:1906.06449, 2019.
|
| 225 |
+
L. Melis, C. Song, E. De Cristofaro, and V. Shmatikov. Exploiting unintended feature leakage in collaborative learning. In 2019 IEEE Symposium on Security and Privacy $( S P )$ , pages 691–706. IEEE, 2019.
|
| 226 |
+
S. Milli, L. Schmidt, A. D. Dragan, and M. Hardt. Model reconstruction from model explanations. In Proceedings of the Conference on Fairness, Accountability, and Transparency, pages 1–9, 2019.
|
| 227 |
+
A. Mordvintsev, C. Olah, and M. Tyka. Inceptionism: Going deeper into neural networks. 2015.
|
| 228 |
+
E. Moroshko, B. E. Woodworth, S. Gunasekar, J. D. Lee, N. Srebro, and D. Soudry. Implicit bias in deep linear classification: Initialization scale vs training accuracy. Advances in neural information processing systems, 33:22182–22193, 2020.
|
| 229 |
+
M. S. Nacson, S. Gunasekar, J. Lee, N. Srebro, and D. Soudry. Lexicographic and depth-sensitive margins in homogeneous and non-homogeneous deep models. In International Conference on Machine Learning, pages 4683–4692. PMLR, 2019.
|
| 230 |
+
B. Neyshabur, S. Bhojanapalli, D. McAllester, and N. Srebro. Exploring generalization in deep learning. In Advances in Neural Information Processing Systems, pages 5947–5956, 2017.
|
| 231 |
+
A. Nguyen, A. Dosovitskiy, J. Yosinski, T. Brox, and J. Clune. Synthesizing the preferred inputs for neurons in neural networks via deep generator networks. Advances in neural information processing systems, 29, 2016a.
|
| 232 |
+
A. Nguyen, J. Yosinski, and J. Clune. Multifaceted feature visualization: Uncovering the different types of features learned by each neuron in deep neural networks. arXiv preprint arXiv:1602.03616, 2016b.
|
| 233 |
+
A. Nguyen, J. Clune, Y. Bengio, A. Dosovitskiy, and J. Yosinski. Plug & play generative networks: Conditional iterative generation of images in latent space. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4467–4477, 2017.
|
| 234 |
+
S. J. Oh, B. Schiele, and M. Fritz. Towards reverse-engineering black-box neural networks. In Explainable AI: Interpreting, Explaining and Visualizing Deep Learning, pages 121–144. Springer, 2019.
|
| 235 |
+
C. Olah, A. Mordvintsev, and L. Schubert. Feature visualization. Distill, 2(11):e7, 2017.
|
| 236 |
+
C. Olah, N. Cammarata, L. Schubert, G. Goh, M. Petrov, and S. Carter. Zoom in: An introduction to circuits. Distill, 2020. doi: 10.23915/distill.00024.001. https://distill.pub/2020/circuits/zoom-in.
|
| 237 |
+
A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019.
|
| 238 |
+
N. Razin and N. Cohen. Implicit regularization in deep learning may not be explainable by norms. Advances in Neural Information Processing Systems, 2020.
|
| 239 |
+
D. Rolnick and K. Kording. Reverse-engineering deep relu networks. In International Conference on Machine Learning, pages 8178–8187. PMLR, 2020.
|
| 240 |
+
A. Salem, Y. Zhang, M. Humbert, P. Berrang, M. Fritz, and M. Backes. Ml-leaks: Model and data independent membership inference attacks and defenses on machine learning models. arXiv preprint arXiv:1806.01246, 2018.
|
| 241 |
+
S. Santurkar, A. Ilyas, D. Tsipras, L. Engstrom, B. Tran, and A. Madry. Image synthesis with a single (robust) classifier. Advances in Neural Information Processing Systems, 32, 2019.
|
| 242 |
+
R. Shokri, M. Stronati, C. Song, and V. Shmatikov. Membership inference attacks against machine learning models. In 2017 IEEE symposium on security and privacy (SP), pages 3–18. IEEE, 2017.
|
| 243 |
+
L. Song and P. Mittal. Systematic evaluation of privacy risks of machine learning models. In 30th USENIX Security Symposium (USENIX Security 21), pages 2615–2632, 2021.
|
| 244 |
+
D. Soudry, E. Hoffer, M. S. Nacson, S. Gunasekar, and N. Srebro. The implicit bias of gradient descent on separable data. The Journal of Machine Learning Research, 19(1):2822–2878, 2018.
|
| 245 |
+
C. Szegedy, W. Zaremba, I. Sutskever, J. Bruna, D. Erhan, I. Goodfellow, and R. Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
|
| 246 |
+
N. Timor, G. Vardi, and O. Shamir. Implicit regularization towards rank minimization in relu networks. arXiv preprint arXiv:2201.12760, 2022.
|
| 247 |
+
F. Tramèr, F. Zhang, A. Juels, M. K. Reiter, and T. Ristenpart. Stealing machine learning models via prediction {APIs}. In 25th USENIX security symposium (USENIX Security 16), pages 601–618, 2016.
|
| 248 |
+
D. Tsipras, S. Santurkar, L. Engstrom, A. Turner, and A. Madry. Robustness may be at odds with accuracy. arXiv preprint arXiv:1805.12152, 2018.
|
| 249 |
+
G. Vardi. On the implicit bias in deep-learning algorithms. arXiv preprint arXiv:2208.12591, 2022.
|
| 250 |
+
G. Vardi and O. Shamir. Implicit regularization in relu networks with the square loss. In Conference on Learning Theory, pages 4224–4258. PMLR, 2021.
|
| 251 |
+
G. Vardi, O. Shamir, and N. Srebro. On margin maximization in linear and relu networks. arXiv preprint arXiv:2110.02732, 2021.
|
| 252 |
+
B. Wang and N. Z. Gong. Stealing hyperparameters in machine learning. In 2018 IEEE Symposium on Security and Privacy (SP), pages 36–52. IEEE, 2018.
|
| 253 |
+
Z. Wang, A. C. Bovik, H. R. Sheikh, and E. P. Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600–612, 2004.
|
| 254 |
+
B. Woodworth, S. Gunasekar, J. D. Lee, E. Moroshko, P. Savarese, I. Golan, D. Soudry, and N. Srebro. Kernel and rich regimes in overparametrized models. In Conference on Learning Theory, pages 3635–3673. PMLR, 2020.
|
| 255 |
+
Z. Yang, J. Zhang, E.-C. Chang, and Z. Liang. Neural network inversion in adversarial setting via background knowledge alignment. In Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security, pages 225–240, 2019.
|
| 256 |
+
S. Yeom, I. Giacomelli, M. Fredrikson, and S. Jha. Privacy risk in machine learning: Analyzing the connection to overfitting. In 2018 IEEE 31st computer security foundations symposium (CSF), pages 268–282. IEEE, 2018.
|
| 257 |
+
H. Yin, P. Molchanov, J. M. Alvarez, Z. Li, A. Mallya, D. Hoiem, N. K. Jha, and J. Kautz. Dreaming to distill: Data-free knowledge transfer via deepinversion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8715–8724, 2020.
|
| 258 |
+
H. Yin, A. Mallya, A. Vahdat, J. M. Alvarez, J. Kautz, and P. Molchanov. See through gradients: Image batch recovery via gradinversion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 16337–16346, 2021.
|
| 259 |
+
J. Yosinski, J. Clune, A. Nguyen, T. Fuchs, and H. Lipson. Understanding neural networks through deep visualization. arXiv preprint arXiv:1506.06579, 2015.
|
| 260 |
+
C. Yun, S. Krishnan, and H. Mobahi. A unifying view on implicit bias in training linear neural networks. In International Conference on Learning Representations, 2020.
|
| 261 |
+
C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning (still) requires rethinking generalization. Communications of the ACM, 64(3):107–115, 2021.
|
| 262 |
+
Y. Zhang, R. Jia, H. Pei, W. Wang, B. Li, and D. Song. The secret revealer: Generative modelinversion attacks against deep neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 253–261, 2020.
|
| 263 |
+
L. Zhu, Z. Liu, and S. Han. Deep leakage from gradients. Advances in Neural Information Processing Systems, 32, 2019.
|
| 264 |
+
|
| 265 |
+
# Checklist
|
| 266 |
+
|
| 267 |
+
1. For all authors...
|
| 268 |
+
|
| 269 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 270 |
+
(b) Did you describe the limitations of your work? [Yes]
|
| 271 |
+
(c) Did you discuss any potential negative societal impacts of your work? [Yes]
|
| 272 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 273 |
+
|
| 274 |
+
2. If you are including theoretical results...
|
| 275 |
+
|
| 276 |
+
(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [N/A] We rely on known theoretical results, so proofs are not required.
|
| 277 |
+
|
| 278 |
+
3. If you ran experiments...
|
| 279 |
+
|
| 280 |
+
(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]
|
| 281 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
|
| 282 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A]
|
| 283 |
+
(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]
|
| 284 |
+
|
| 285 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 286 |
+
|
| 287 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes]
|
| 288 |
+
(b) Did you mention the license of the assets? [Yes]
|
| 289 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] We do not have new assets.
|
| 290 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] We used only publicly available assets.
|
| 291 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] We used only publicly available data.
|
| 292 |
+
|
| 293 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 294 |
+
|
| 295 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 296 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 297 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/dev/Sxk8Bse3RKO/Sxk8Bse3RKO_content_list.json
ADDED
|
@@ -0,0 +1,1205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Reconstructing Training Data from Trained Neural Networks ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
233,
|
| 8 |
+
122,
|
| 9 |
+
766,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Niv Haim∗ Weizmann Institute of Science niv.haim@weizmann.ac.il ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
240,
|
| 19 |
+
222,
|
| 20 |
+
442,
|
| 21 |
+
263
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Gal Vardi∗† TTI-Chicago and Hebrew University galvardi@ttic.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
514,
|
| 30 |
+
220,
|
| 31 |
+
758,
|
| 32 |
+
263
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Gilad Yehudai∗ Weizmann Institute of Science gilad.yehudai@weizmann.ac.il ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
233,
|
| 41 |
+
285,
|
| 42 |
+
473,
|
| 43 |
+
327
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Ohad Shamir Weizmann Institute of Science ohad.shamir@weizmann.ac.il ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
539,
|
| 52 |
+
285,
|
| 53 |
+
764,
|
| 54 |
+
327
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Michal Irani Weizmann Institute of Science michal.irani@weizmann.ac.il ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
382,
|
| 63 |
+
348,
|
| 64 |
+
614,
|
| 65 |
+
388
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Project page: https://giladude1.github.io/reconstruction ",
|
| 72 |
+
"bbox": [
|
| 73 |
+
232,
|
| 74 |
+
401,
|
| 75 |
+
683,
|
| 76 |
+
415
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"text": "Abstract ",
|
| 83 |
+
"text_level": 1,
|
| 84 |
+
"bbox": [
|
| 85 |
+
462,
|
| 86 |
+
444,
|
| 87 |
+
535,
|
| 88 |
+
460
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "Understanding to what extent neural networks memorize training data is an intriguing question with practical and theoretical implications. In this paper we show that in some cases a significant fraction of the training data can in fact be reconstructed from the parameters of a trained neural network classifier. We propose a novel reconstruction scheme that stems from recent theoretical results about the implicit bias in training neural networks with gradient-based methods. To the best of our knowledge, our results are the first to show that reconstructing a large portion of the actual training samples from a trained neural network classifier is generally possible. This has negative implications on privacy, as it can be used as an attack for revealing sensitive training data. We demonstrate our method for binary MLP classifiers on a few standard computer vision datasets. ",
|
| 95 |
+
"bbox": [
|
| 96 |
+
233,
|
| 97 |
+
472,
|
| 98 |
+
766,
|
| 99 |
+
623
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 0
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "1 Introduction ",
|
| 106 |
+
"text_level": 1,
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
648,
|
| 110 |
+
310,
|
| 111 |
+
666
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "It is commonly believed that neural networks memorize the training data, even when they are able to generalize well to unseen test data (e.g., [Zhang et al., 2021, Feldman, 2020]). Exploring this memorization phenomenon is of great importance both practically and theoretically. Indeed, it has implications on our understanding of generalization in deep learning, on the hidden representations learnt by neural networks, and on the extent to which they are vulnerable to privacy attacks. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
680,
|
| 121 |
+
825,
|
| 122 |
+
750
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "A fundamental question for understanding memorization is: ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
756,
|
| 132 |
+
565,
|
| 133 |
+
770
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "Are the specific training samples encoded in the parameters of a trained classifier? Can they be recovered from the network parameters? ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
230,
|
| 142 |
+
781,
|
| 143 |
+
764,
|
| 144 |
+
809
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "In this work, we study this question, and devise a novel scheme which allows us to reconstruct a significant portion of the training data from the parameters of a trained neural network alone, without having any additional information on the data. Thus, we provide a proof-of-concept that the learning (a) Top 24 images reconstructed from a binary classifier trained on 50 CIFAR10 images (b) Their corresponding nearest neighbours from the training-set of the model process can sometimes be reversed: That is, instead of learning a model given a training dataset, it is possible to find the training data given a trained model. In Figure 1 we show how our approach reconstructs images from the CIFAR10 dataset, given a simple trained binary classifier. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
176,
|
| 153 |
+
821,
|
| 154 |
+
823,
|
| 155 |
+
863
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 0
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "",
|
| 162 |
+
"bbox": [
|
| 163 |
+
215,
|
| 164 |
+
88,
|
| 165 |
+
795,
|
| 166 |
+
103
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "image",
|
| 172 |
+
"img_path": "images/ed282a7049c35ade42ab306a6ef56700e2d645bdbbdfcd5644417349b411ddc9.jpg",
|
| 173 |
+
"image_caption": [],
|
| 174 |
+
"image_footnote": [],
|
| 175 |
+
"bbox": [
|
| 176 |
+
187,
|
| 177 |
+
106,
|
| 178 |
+
830,
|
| 179 |
+
188
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "",
|
| 186 |
+
"bbox": [
|
| 187 |
+
253,
|
| 188 |
+
194,
|
| 189 |
+
764,
|
| 190 |
+
208
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 1
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "image",
|
| 196 |
+
"img_path": "images/7cf960fa2f82434a9efbbc4e9e6c61ec64f0bfc24a1869967b39feb8256f2cee.jpg",
|
| 197 |
+
"image_caption": [
|
| 198 |
+
"Figure 1: Reconstruction of training images from a pretrained binary classifier, trained on 50 CIFAR10 images. The two classes are “animals” and “vehicles”. We calculate the nearest neighbor using the SSIM metric. "
|
| 199 |
+
],
|
| 200 |
+
"image_footnote": [],
|
| 201 |
+
"bbox": [
|
| 202 |
+
187,
|
| 203 |
+
210,
|
| 204 |
+
828,
|
| 205 |
+
294
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "",
|
| 212 |
+
"bbox": [
|
| 213 |
+
174,
|
| 214 |
+
357,
|
| 215 |
+
825,
|
| 216 |
+
398
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 1
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "Many works try to “crack” neural networks by analyzing and visualizing either their learnt parameters or representations [Erhan et al., 2009, Mahendran and Vedaldi, 2015, Olah et al., 2017, 2020]. This is usually done by “inverting” the model, namely finding inputs that are strongly correlated with the model’s activations [Mordvintsev et al., 2015, Yin et al., 2020, Fredrikson et al., 2015]. Unsurprisingly, the results are semantically correlated with the training dataset. However, one rarely sees an exact version of a training sample. ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
405,
|
| 226 |
+
825,
|
| 227 |
+
488
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "Our results have potential negative implications on privacy in deep learning. Our scheme can be viewed as a training-data reconstruction attack, since an adversary might recover sensitive training data. For example, if a medical device includes a model trained on sensitive medical records, an adversary might reconstruct this data and thus violate the privacy of the patients. Privacy attacks in deep learning have been widely studied in recent years (cf. Liu et al. [2021]), but as far as we are aware, the known attacks cannot reconstruct portions of the training data from a trained model. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
494,
|
| 237 |
+
825,
|
| 238 |
+
578
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 1
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "Our approach relies on theoretical results about the implicit bias in training neural networks with gradient-based methods. The implicit bias has been studied extensively in recent years with the motivation of explaining generalization in deep learning (see Section 2). We use results by Lyu and Li [2019], Ji and Telgarsky [2020], which establish that, under some technical assumptions, if we train a neural network with the binary cross entropy loss, its parameters will converge to a stationary point of a certain margin-maximization problem. This result implies that the parameters of the trained network satisfy a set of equations w.r.t. the training dataset. In our approach, given a trained network, we find a dataset that solves this set of equations w.r.t. the trained parameters. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
173,
|
| 247 |
+
584,
|
| 248 |
+
825,
|
| 249 |
+
695
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 1
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "Our Contributions We show that large portions of the training samples are encoded in the parameters of a trained classifier. We also provide a practical scheme to decode the training samples, without any assumptions on the data. As far as we know, this is the first work that shows that reconstruction of actual training samples from a trained neural network classifier is possible. ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
702,
|
| 259 |
+
825,
|
| 260 |
+
757
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 1
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "2 Related Work ",
|
| 267 |
+
"text_level": 1,
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
768,
|
| 271 |
+
321,
|
| 272 |
+
786
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 1
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "Understanding and Visualizing what is learnt by Neural Networks. The most common approach for analysing what is learnt by a neural network is by searching inputs that maximize the class output or the activations of neurons in intermediate layers [Erhan et al., 2009, Olah et al., 2020]. Oftentimes this is done via optimization with respect to the model input. Optimizing without any prior on the input usually results in noise inputs. Therefore, most approaches incorporate priors such as smoothness regularization or the use of pre-trained image generators [Mahendran and Vedaldi, 2015, Yosinski et al., 2015, Mordvintsev et al., 2015, Nguyen et al., 2016a,b, 2017] (see Olah et al. [2017] for a comprehensive summary). Optimization w.r.t. the input may also result in adversarial examples [Szegedy et al., 2013, Goodfellow et al., 2014]. Recently, [Tsipras et al., 2018, Engstrom et al., 2019] showed that classifiers trained to be robust to adversarial examples tend to learn representations that are more aligned with human vision. This was later utilized by [Santurkar et al., 2019, Mejia et al., 2019] to generate class-conditional images from a trained classifier. While all those approaches indicate that, unsurprisingly, the learnt representations are strongly correlated with the datasets on which the model was trained, none of them demonstrate the reconstruction of exact training samples from the trained models. ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
174,
|
| 281 |
+
800,
|
| 282 |
+
825,
|
| 283 |
+
911
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 1
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "",
|
| 290 |
+
"bbox": [
|
| 291 |
+
174,
|
| 292 |
+
90,
|
| 293 |
+
825,
|
| 294 |
+
188
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "Privacy Attacks in Deep Learning. Many methods deal with extracting sensitive information from trained models. Perhaps the closest to our approach is model-inversion that aims to reconstruct class representatives from the training data of a trained model [Fredrikson et al., 2015, He et al., 2019, Yang et al., 2019, Yin et al., 2020]. It is important to note that the reconstructed images, albeit semantically similar to some input images, are still not actual samples from the training set. Carlini et al. [2021, 2019] demonstrated reconstruction of training data from generative language models. By completing sentences, they reveal sensitive information from the training data. We note that this approach is specific to generative language models, while our approach considers classifiers and is less data specific. Membership-inference attacks [Shokri et al., 2017] aim to determine whether a given data point was used to train the model or not. For these methods to work, the adversary must be able to guess a specific input, whereas our approach does not assume such ability. Lastly, avoiding leakage of sensitive information on the training dataset is the motivation behind differential privacy in machine learning, which has been extensively studied [Abadi et al., 2016, Dwork et al., 2006, Chaudhuri et al., 2011]. For an elaborated discussion on the relation of these approaches to ours see Appendix A. ",
|
| 301 |
+
"bbox": [
|
| 302 |
+
174,
|
| 303 |
+
203,
|
| 304 |
+
825,
|
| 305 |
+
410
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 2
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "Implicit Bias. In overparameterized neural networks one might expect overfitting to occur, but it seems that gradient-based methods are biased towards networks that generalize well [Zhang et al., 2021, Neyshabur et al., 2017]. Mathematically characterizing this implicit bias is a major problem in the theory of deep learning. Our approach is based on a characterization of the implicit bias of gradient flow in homogeneous neural networks due to Lyu and Li [2019] and Ji and Telgarsky [2020] (see Section 3 for details). The implicit bias of gradient-based methods in neural networks was extensively studied in recent years both for classification tasks (e.g., Soudry et al. [2018], Gunasekar et al. [2018c], Ji and Telgarsky [2018], Nacson et al. [2019], Vardi et al. [2021], Chizat and Bach [2020], Gunasekar et al. [2018a], Moroshko et al. [2020]) and regression tasks (e.g., Gunasekar et al. [2018b], Arora et al. [2019], Azulay et al. [2021], Yun et al. [2020], Woodworth et al. [2020], Razin and Cohen [2020], Li et al. [2020], Vardi and Shamir [2021], Timor et al. [2022]). See Vardi [2022] for a survey. ",
|
| 312 |
+
"bbox": [
|
| 313 |
+
173,
|
| 314 |
+
425,
|
| 315 |
+
826,
|
| 316 |
+
592
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 2
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "3 Background and Reconstruction Scheme ",
|
| 323 |
+
"text_level": 1,
|
| 324 |
+
"bbox": [
|
| 325 |
+
174,
|
| 326 |
+
609,
|
| 327 |
+
545,
|
| 328 |
+
627
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 2
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "In this section we present our training data reconstruction scheme, as well as provide a brief overview on the theoretical results about implicit bias, which motivate our approach. ",
|
| 335 |
+
"bbox": [
|
| 336 |
+
171,
|
| 337 |
+
642,
|
| 338 |
+
823,
|
| 339 |
+
671
|
| 340 |
+
],
|
| 341 |
+
"page_idx": 2
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"type": "text",
|
| 345 |
+
"text": "3.1 On the Implicit Bias of Neural Networks ",
|
| 346 |
+
"text_level": 1,
|
| 347 |
+
"bbox": [
|
| 348 |
+
173,
|
| 349 |
+
686,
|
| 350 |
+
495,
|
| 351 |
+
702
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 2
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "Let $S = \\{ ( \\mathbf { x } _ { i } , y _ { i } ) \\} _ { i = 1 } ^ { n } \\subseteq \\mathbb { R } ^ { d } \\times \\{ - 1 , 1 \\}$ be a binary classification training dataset. Let $\\Phi ( \\pmb \\theta ; \\cdot ) :$ $\\mathbb { R } ^ { d } \\to \\mathbb { R }$ be a neural network parameterized by $\\pmb { \\theta } \\in \\mathbb { R } ^ { p }$ . For a loss function $\\ell : \\mathbb { R } \\to \\mathbb { R }$ the empirical loss of $\\Phi ( \\theta ; \\cdot )$ on the dataset $S$ is $\\begin{array} { r } { \\mathcal { L } ( \\pmb { \\theta } ) : = \\sum _ { i = 1 } ^ { n } \\ell \\big ( y _ { i } \\Phi ( \\pmb { \\theta } ; \\mathbf { x } _ { i } ) \\big ) } \\end{array}$ . We focus on the logistic loss (a.k.a. binary cross entropy), namely, $\\ell ( q ) = \\log ( 1 + e ^ { - q } )$ . ",
|
| 358 |
+
"bbox": [
|
| 359 |
+
174,
|
| 360 |
+
710,
|
| 361 |
+
825,
|
| 362 |
+
771
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 2
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "Our approach is based on Theorem 3.1 below, which holds for gradient flow (i.e., gradient descent with an infinitesimally small step size). Before stating the theorem, we need the following definitions: (1) We say that gradient flow converges in direction to $\\tilde { \\pmb { \\theta } }$ if $\\begin{array} { r } { \\operatorname* { l i m } _ { t \\infty } \\frac { \\pmb { \\theta } ( t ) } { \\lVert \\pmb { \\theta } ( t ) \\rVert } = \\frac { \\tilde { \\pmb { \\theta } } } { \\lVert \\tilde { \\pmb { \\theta } } \\rVert } } \\end{array}$ , where $\\pmb \\theta ( t )$ is the parameter vector at time $t$ ; (2) We say that a network $\\Phi$ is homogeneous w.r.t. the parameters $\\pmb \\theta$ if there exists $L > 0$ such that for every $\\alpha > 0$ and $\\theta , \\mathbf { x }$ we have $\\bar { \\Phi ( \\alpha \\pmb { \\theta } ; \\mathbf { x } ) } = \\alpha ^ { L } \\Phi ( \\bar { \\pmb { \\theta } } ; \\mathbf { x } )$ . Thus, scaling the parameters by any factor $\\alpha > 0$ scales the outputs by $\\alpha ^ { L }$ . We note that essentially any fully-connected or convolutional neural network with ReLU activations is homogeneous w.r.t. the parameters $\\pmb \\theta$ if it does not have any skip-connections (i.e., residual connections) or bias terms, except possibly for the first layer. ",
|
| 369 |
+
"bbox": [
|
| 370 |
+
173,
|
| 371 |
+
776,
|
| 372 |
+
825,
|
| 373 |
+
911
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 2
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "text",
|
| 379 |
+
"text": "Theorem 3.1 (Paraphrased from Lyu and Li [2019], Ji and Telgarsky [2020]) Let $\\Phi ( \\theta ; \\cdot )$ be $a$ homogeneous ReLU neural network. Consider minimizing the logistic loss over a binary classification dataset $\\{ ( \\mathbf { x } _ { i } , y _ { i } ) \\} _ { i = 1 } ^ { n }$ using gradient flow. Assume that there exists time $t _ { 0 }$ such that $\\mathcal { L } ( \\pmb { \\theta } ( t _ { 0 } ) ) < 1 ^ { \\ddagger }$ Then, gradient flow converges in direction to a first order stationary point (KKT point) of the following maximum-margin problem: ",
|
| 380 |
+
"bbox": [
|
| 381 |
+
173,
|
| 382 |
+
90,
|
| 383 |
+
825,
|
| 384 |
+
161
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 3
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "equation",
|
| 390 |
+
"img_path": "images/e1b2c8ac454534a70e287b922fc4cdd2f0681650953e0e1a7c532b5c7fbc4c25.jpg",
|
| 391 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\pmb { \\theta } ^ { \\prime } } \\frac { 1 } { 2 } \\left\\| \\pmb { \\theta } ^ { \\prime } \\right\\| ^ { 2 } s . t . \\forall i \\in [ n ] \\ y _ { i } \\Phi ( \\pmb { \\theta } ^ { \\prime } ; \\mathbf { x } _ { i } ) \\geq 1 .\n$$",
|
| 392 |
+
"text_format": "latex",
|
| 393 |
+
"bbox": [
|
| 394 |
+
336,
|
| 395 |
+
164,
|
| 396 |
+
660,
|
| 397 |
+
194
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 3
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"text": "Moreover, $\\mathcal { L } ( \\pmb \\theta ( t ) ) 0$ as $t \\to \\infty$ . ",
|
| 404 |
+
"bbox": [
|
| 405 |
+
173,
|
| 406 |
+
199,
|
| 407 |
+
405,
|
| 408 |
+
214
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 3
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "text",
|
| 414 |
+
"text": "The above theorem guarantees directional convergence to a first order stationary point (of the optimization problem (1)), which is also called Karush–Kuhn–Tucker point, or KKT point for short. The KKT approach allows inequality constraints, and is a generalization of the method of Lagrange multipliers, which allows only equality constraints. ",
|
| 415 |
+
"bbox": [
|
| 416 |
+
173,
|
| 417 |
+
224,
|
| 418 |
+
825,
|
| 419 |
+
281
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 3
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"text": "The great virtue of Theorem 3.1 is that it characterizes the implicit bias of gradient flow with the logistic loss for homogeneous networks. Namely, even though there are many possible directions of $\\frac { \\bar { \\pmb { \\theta } } } { \\| \\pmb { \\theta } \\| }$ that classify the dataset correctly, gradient flow converges only to directions that are KKT points of Problem (1). In particular, if the trajectory $\\pmb \\theta ( t )$ of gradient flow under the regime of Theorem 3.1 converges in direction to a KKT point $\\tilde { \\pmb { \\theta } }$ , then we have the following: There exist $\\lambda _ { 1 } , \\ldots , \\lambda _ { n } \\in \\mathbb { R }$ such that ",
|
| 426 |
+
"bbox": [
|
| 427 |
+
173,
|
| 428 |
+
286,
|
| 429 |
+
826,
|
| 430 |
+
377
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 3
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "equation",
|
| 436 |
+
"img_path": "images/10a5b80a8bbdde1d43bd6cc8f9d151d5719fd201ad176f6f6bef7032058b8c92.jpg",
|
| 437 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle \\tilde { \\theta } = \\sum _ { i = 1 } ^ { n } \\lambda _ { i } y _ { i } \\nabla _ { \\theta } \\Phi ( \\tilde { \\theta } ; { \\bf x } _ { i } ) } \\\\ { \\displaystyle \\forall i \\in [ n ] , ~ y _ { i } \\Phi ( \\tilde { \\theta } ; { \\bf x } _ { i } ) \\geq 1 } \\\\ { \\displaystyle \\lambda _ { 1 } , \\ldots , \\lambda _ { n } \\geq 0 } \\\\ { \\displaystyle \\forall i \\in [ n ] , ~ \\lambda _ { i } = 0 \\mathrm { i f } y _ { i } \\Phi ( \\tilde { \\theta } ; { \\bf x } _ { i } ) \\neq 1 } \\end{array}\n$$",
|
| 438 |
+
"text_format": "latex",
|
| 439 |
+
"bbox": [
|
| 440 |
+
251,
|
| 441 |
+
378,
|
| 442 |
+
488,
|
| 443 |
+
479
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 3
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "Our main insight is based on Eq. (2), which implies that the parameters $\\tilde { \\pmb { \\theta } }$ are a linear combinations of the derivatives of the network at the training data points. We say that a data point $\\mathbf { x } _ { i }$ is on the margin if $y _ { i } \\Phi ( \\tilde { \\pmb { \\theta } } ; { \\mathbf x } _ { i } ) = 1$ (i.e. $| \\Phi ( \\tilde { \\pmb \\theta } ; { \\mathbf x } _ { i } ) | = 1 )$ . Note that Eq. (5) implies that only samples which are on the margin affect Eq. (2), since samples not on the margin have a coefficient $\\lambda _ { i } = 0$ . ",
|
| 450 |
+
"bbox": [
|
| 451 |
+
174,
|
| 452 |
+
484,
|
| 453 |
+
825,
|
| 454 |
+
544
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 3
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "3.2 Dataset Reconstruction ",
|
| 461 |
+
"text_level": 1,
|
| 462 |
+
"bbox": [
|
| 463 |
+
174,
|
| 464 |
+
559,
|
| 465 |
+
375,
|
| 466 |
+
574
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 3
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "Suppose we are given a trained neural network with parameters $\\pmb \\theta$ , and our goal is to reconstruct the dataset that the network was trained on. Although Theorem 3.1 holds asymptotically as the time $t$ tends to infinity, it suggests that also after training for a finite number of iterations the parameters of the network might approximately satisfy Eq. (2), and the coefficients $\\lambda _ { i }$ satisfy Eq. (4). Since $n$ is unknown (and so is the number of samples on the margin) we set $m \\geq 2 n$ which represents the number of samples we want to reconstruct (thus, we only need to upper bound $n$ ), and fix $y _ { i } = 1$ for $i = 1 , \\ldots , m / 2$ and $y _ { i } = - 1$ for $i = m / 2 + 1 , \\dots , m$ . We define the following losses: ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
173,
|
| 475 |
+
583,
|
| 476 |
+
826,
|
| 477 |
+
683
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 3
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "equation",
|
| 483 |
+
"img_path": "images/e0c44a360b2594a8f67677a4d1fdf0f04c302705f6ce1d82dfeded590f0dde30.jpg",
|
| 484 |
+
"text": "$$\n\\begin{array} { r l } & { L _ { \\mathrm { s t a t i o n a r y } } ( \\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { m } , \\boldsymbol { \\lambda } _ { 1 } , \\ldots , \\boldsymbol { \\lambda } _ { m } ) = \\displaystyle \\left\\| \\pmb { \\theta } - \\sum _ { i = 1 } ^ { m } \\lambda _ { i } y _ { i } \\nabla _ { \\pmb { \\theta } } \\Phi ( \\pmb { \\theta } ; \\mathbf { x } _ { i } ) \\right\\| _ { 2 } ^ { 2 } } \\\\ & { L _ { \\lambda } ( \\lambda _ { 1 } , \\ldots , \\lambda _ { m } ) = \\displaystyle \\sum _ { i = 1 } ^ { m } \\operatorname* { m a x } \\{ - \\lambda _ { i } , 0 \\} } \\end{array}\n$$",
|
| 485 |
+
"text_format": "latex",
|
| 486 |
+
"bbox": [
|
| 487 |
+
277,
|
| 488 |
+
685,
|
| 489 |
+
720,
|
| 490 |
+
773
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 3
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "Note that the unknown parameters are the $\\mathbf { x } _ { i }$ ’s and $\\lambda _ { i }$ ’s, and that $\\pmb { \\theta }$ and the $y _ { i }$ ’s are given. The loss $L _ { \\mathrm { s t a t i o n a r y } }$ represents the stationarity condition that the parameters of the network satisfy, and $L _ { \\lambda }$ represents the dual feasibility condition. We additionally define $L _ { \\mathrm { p r i o r } }$ which represents some prior knowledge we might have about the dataset. For example, if we know that the dataset contains images, prior knowledge would be that each input coordinate (i.e. each pixel) is between 0 and 1. Given no prior knowledge on the data, we can define $L _ { \\mathrm { p r i o r } } \\equiv 0$ . Finally, we define the reconstruction loss as: ",
|
| 497 |
+
"bbox": [
|
| 498 |
+
173,
|
| 499 |
+
775,
|
| 500 |
+
825,
|
| 501 |
+
872
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 3
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "equation",
|
| 507 |
+
"img_path": "images/bd9175db7eeae1bc308df6a9019b2c5dbd058575839ca746e18c10ab59593088.jpg",
|
| 508 |
+
"text": "$$\nL _ { \\mathrm { r e c o n s t r u c t } } ( \\{ \\mathbf { x } _ { i } \\} _ { i = 1 } ^ { m } , \\{ \\lambda _ { i } \\} _ { i = 1 } ^ { m } ) = \\alpha _ { 1 } L _ { \\mathrm { s t a t i o n a r y } } + \\alpha _ { 2 } L _ { \\lambda } + \\alpha _ { 3 } L _ { \\mathrm { p r i o r } }\n$$",
|
| 509 |
+
"text_format": "latex",
|
| 510 |
+
"bbox": [
|
| 511 |
+
287,
|
| 512 |
+
871,
|
| 513 |
+
710,
|
| 514 |
+
890
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 3
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "where $\\alpha _ { 1 } , \\alpha _ { 2 } , \\alpha _ { 3 } \\in \\mathbb { R }$ are tunable hyperparameters of the different losses. To reconstruct the dataset, we can use any nonconvex optimization method (e.g. SGD) to find the $\\mathbf { x } _ { 1 } , \\hdots , \\mathbf { x } _ { m } , \\lambda _ { 1 } , \\hdots , \\lambda _ { m }$ which minimize Eq. (8). We note that the $\\lambda _ { i }$ ’s are not part of the training data, but finding them is necessary in order to solve this optimization problem. Finally, we emphasize that there are many other possible options to formulate the KKT conditions Eq. (2)-(5) as an unconstrained optimization problem. However, this simple choice seemed to work quite well in practice. ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
173,
|
| 523 |
+
90,
|
| 524 |
+
825,
|
| 525 |
+
174
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "We note that if there exist $\\{ { \\bf x } _ { i } \\} _ { i = 1 } ^ { n }$ and $\\{ \\lambda _ { i } \\} _ { i = 1 } ^ { n }$ which satisfy the KKT conditions, then there are $\\{ { \\bf x } _ { i } \\} _ { i = 1 } ^ { m }$ and $\\{ \\lambda _ { i } \\} _ { i = 1 } ^ { m }$ which achieve zero loss in Eq. (8). Indeed, such a solution can be obtained by adding to $\\{ { \\bf x } _ { i } \\} _ { i = 1 } ^ { n }$ additional points $\\mathbf { x } _ { j }$ with $\\lambda _ { j } = 0$ , or by duplicating some points in $\\{ { \\bf x } _ { i } \\} _ { i = 1 } ^ { n }$ and modifying the $\\lambda$ ’s accordingly. Also, note that since we choose $m \\geq 2 n$ , then we set at least $n$ labels $y _ { i }$ to 1 and at least $n$ labels to $- 1$ . Hence, there is a solution to Eq. (8) even though we do not know the real distribution of labels in the actual training data. ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
173,
|
| 534 |
+
180,
|
| 535 |
+
825,
|
| 536 |
+
263
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "We cannot simply use Eq. (3) and (5) in our reconstruction scheme, because they contain the constant \"1\" which corresponds to the margin (i.e., $\\operatorname* { m i n } _ { i } | \\Phi ( \\tilde { \\pmb { \\theta } } ; { \\mathbf { x } } _ { i } ) | )$ . Namely, we only converge in direction to a point $\\tilde { \\pmb { \\theta } }$ that attains margin 1, but in practice we approach some point $\\pmb \\theta$ which attains an unknown margin $\\gamma$ (i.e., $\\mathrm { m i n } _ { i } \\left| \\Phi ( \\pmb { \\theta } ; \\mathbf { x } _ { i } ) \\right| = \\gamma )$ , and we do not know in advance how to normalize it to attain a margin of exactly 1. On the other hand, Eq. (2) and (4) hold not only for $\\tilde { \\pmb { \\theta } }$ but also for any $\\pmb { \\theta }$ that points at the direction of $\\tilde { \\pmb { \\theta } }$ , and therefore in our loss in Eq. (8) we rely only on these conditions. ",
|
| 543 |
+
"bbox": [
|
| 544 |
+
173,
|
| 545 |
+
270,
|
| 546 |
+
825,
|
| 547 |
+
363
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "Intuitively, a reason to believe that there is enough information in Eq. (2) to reconstruct the data, is the following observation: Eq. (2) represents a set of $p$ equations with $O ( n d )$ unknown variables, where $p$ is the number of parameters in the network. In practice, neural networks are often highly overparameterized (i.e., $p > n d ,$ , suggesting more equations than variables. ",
|
| 554 |
+
"bbox": [
|
| 555 |
+
174,
|
| 556 |
+
368,
|
| 557 |
+
825,
|
| 558 |
+
425
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 4
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "text",
|
| 564 |
+
"text": "Finally, since by Eq. (5) we have $\\lambda _ { i } = 0$ for every $\\mathbf { x } _ { i }$ that is not on the margin, then Eq. (2) implies that $\\tilde { \\pmb { \\theta } }$ is determined only by the gradients w.r.t. the data points that are on the margin. Hence, we can only expect to reconstruct training samples that are on the margin (see also Subsection 5.3). ",
|
| 565 |
+
"bbox": [
|
| 566 |
+
174,
|
| 567 |
+
430,
|
| 568 |
+
825,
|
| 569 |
+
474
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 4
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "4 A Simple Experiment in Two Dimensions ",
|
| 576 |
+
"text_level": 1,
|
| 577 |
+
"bbox": [
|
| 578 |
+
174,
|
| 579 |
+
492,
|
| 580 |
+
549,
|
| 581 |
+
511
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 4
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "image",
|
| 587 |
+
"img_path": "images/4695b7b15f87a2c4a89697189e1241eb252753b4423bcb1c728119f24ad7122f.jpg",
|
| 588 |
+
"image_caption": [
|
| 589 |
+
"Figure 2: Exemplifying our reconstruction scheme on a simple 2D dataset (see text for explanation). "
|
| 590 |
+
],
|
| 591 |
+
"image_footnote": [],
|
| 592 |
+
"bbox": [
|
| 593 |
+
212,
|
| 594 |
+
531,
|
| 595 |
+
740,
|
| 596 |
+
819
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 4
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "text",
|
| 602 |
+
"text": "In this section we exemplify our dataset reconstruction scheme on a toy example of 2-dimensional data, i.e. we consider $( \\dot { \\bf x } , y ) \\in \\mathbb { R } ^ { 2 } \\times \\{ \\pm 1 \\}$ . We set $n = 2 0$ training samples on the unit circle, with alternating labels. For a visualization of the dataset see Figure 2a, blue and red \" $\" \\times \"$ represent the two classes. We trained a 3-layer model with 1000 neurons in each layer on this dataset. The model learns to correctly classify the training set. In Figure 2b, we visualize the output of the model as a function of its input. Blue and red regions correspond to smaller and larger outputs of the model, respectively. ",
|
| 603 |
+
"bbox": [
|
| 604 |
+
174,
|
| 605 |
+
856,
|
| 606 |
+
825,
|
| 607 |
+
911
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 4
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "text",
|
| 613 |
+
"text": "",
|
| 614 |
+
"bbox": [
|
| 615 |
+
171,
|
| 616 |
+
90,
|
| 617 |
+
825,
|
| 618 |
+
119
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 5
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "text",
|
| 624 |
+
"text": "We now demonstrate our reconstruction scheme. We first randomly initialize $m = 1 0 0$ points in $\\mathbb { R } ^ { 2 }$ , and assign 50 points to each class. This is depicted in Figure $2 \\mathrm { c }$ , where green points correspond to the blue class, and magenta points correspond to the red class. Next, we optimize the loss in Eq. (8), with $L _ { \\mathrm { p r i o r } } \\equiv 0$ . The results of our reconstruction scheme are in Figure 2d. Note that our approach reconstructed all the input samples, up to some noise. ",
|
| 625 |
+
"bbox": [
|
| 626 |
+
173,
|
| 627 |
+
126,
|
| 628 |
+
825,
|
| 629 |
+
195
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 5
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "To further improve our reconstruction results, we remove some of the extra points which did not converge to a training sample. In Figure 2e we removed points $\\mathbf { x } _ { i }$ with corresponding $\\lambda _ { i } ~ < ~ 5$ . According to Eq. (2), points with $\\lambda _ { i } = 0$ should not affect the parameters, hence their corresponding $\\mathbf { x } _ { i }$ can take any value. In practice, it is sufficient to remove points with a small enough corresponding $\\lambda _ { i }$ . Finally, to remove duplicates, we greedily remove points which are very close to other points. That is, we randomly order the points, and iteratively remove points that are at distance $< 0 . 0 3$ from another point. The final reconstruction result is depicted in Figure 2f. ",
|
| 636 |
+
"bbox": [
|
| 637 |
+
173,
|
| 638 |
+
202,
|
| 639 |
+
826,
|
| 640 |
+
299
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 5
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "5 Results ",
|
| 647 |
+
"text_level": 1,
|
| 648 |
+
"bbox": [
|
| 649 |
+
174,
|
| 650 |
+
324,
|
| 651 |
+
266,
|
| 652 |
+
342
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 5
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "image",
|
| 658 |
+
"img_path": "images/9ba1d585e03e450dfc4f5ad8ac520e3a120d423feabaea0e9bf57b6db37b2f8e.jpg",
|
| 659 |
+
"image_caption": [
|
| 660 |
+
"Top 45 images reconstructed from a model trained on CIFAR10 (rows 1, 3, 5), and their corresponding nearest-neighbors from the training-set of the model (rows 2, 4, 6) "
|
| 661 |
+
],
|
| 662 |
+
"image_footnote": [],
|
| 663 |
+
"bbox": [
|
| 664 |
+
189,
|
| 665 |
+
404,
|
| 666 |
+
828,
|
| 667 |
+
601
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 5
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "image",
|
| 673 |
+
"img_path": "images/0fad3d3c0032f4f7495de8818c7a26d4e9430c33bef1601d39dc5dbb7c22559c.jpg",
|
| 674 |
+
"image_caption": [
|
| 675 |
+
"Top 45 images reconstructed from a model trained on MNIST (rows 1, 3, 5), and their corresponding nearest-neighbors from the training-set of the model (rows 2, 4, 6) ",
|
| 676 |
+
"Figure 3: Reconstructing training samples from two binary classifiers – one trained on 500 images with labels animals/vehicles (CIFAR), and the other trained on 500 odd/even digit images (MNIST). Train errors are zero, test accuracies are $8 8 . 0 \\% / 7 7 . 6 \\%$ for MNIST/CIFAR "
|
| 677 |
+
],
|
| 678 |
+
"image_footnote": [],
|
| 679 |
+
"bbox": [
|
| 680 |
+
189,
|
| 681 |
+
638,
|
| 682 |
+
828,
|
| 683 |
+
837
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 5
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "5.1 Experimental Setup ",
|
| 690 |
+
"text_level": 1,
|
| 691 |
+
"bbox": [
|
| 692 |
+
174,
|
| 693 |
+
90,
|
| 694 |
+
352,
|
| 695 |
+
106
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 6
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "Datasets. We conduct experiments on binary classification tasks where images are taken from the MNIST [LeCun et al., 2010] and CIFAR10 [Krizhevsky et al., 2009] datasets and the labels are set to odd vs. even digits (MNIST), and vehicles vs. animals§ (CIFAR10). We make sure that the class distribution in the training and test sets is balanced, and normalize the train and test sets by reducing the mean of the training set from both. ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
174,
|
| 704 |
+
116,
|
| 705 |
+
825,
|
| 706 |
+
185
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 6
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "Training. We consider MLP architectures. Unless stated otherwise, our models comprise of three fully-connected layers with dimensions $d$ -1000-1000-1 (where $d$ is the dimension of the input) with ReLU activations. Biases are set to zero except for the first layer, to line up with the theoretical assumption of homogeneous models in Section 3. The parameters are initialized using standard Kaiming He initialization [He et al., 2015] except for the weights of the first layer that are initialized to a Gaussian distribution with standard deviation $1 0 ^ { - 4 }$ (see discussion in Subsection 5.2). We train our models using full batch gradient descent for $1 0 ^ { 6 }$ epochs with a learning rate of 0.01. All models achieve zero training error (i.e., all the train samples are labeled correctly), and a training loss $< 1 0 ^ { - 6 }$ To compute the test accuracy, we use the original test sets of MNIST/CIFAR10 with 10000/8000 images respectively, and labeled accordingly. ",
|
| 713 |
+
"bbox": [
|
| 714 |
+
173,
|
| 715 |
+
200,
|
| 716 |
+
825,
|
| 717 |
+
340
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 6
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "text",
|
| 723 |
+
"text": "5.2 Training Set Reconstruction ",
|
| 724 |
+
"text_level": 1,
|
| 725 |
+
"bbox": [
|
| 726 |
+
176,
|
| 727 |
+
356,
|
| 728 |
+
408,
|
| 729 |
+
371
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 6
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "text",
|
| 735 |
+
"text": "We minimize the loss defined in Eq. (8) with $\\alpha _ { 1 } = 1$ , $\\alpha _ { 2 } = 5$ , $\\alpha _ { 3 } = 1$ . We initialize $\\mathbf { x } _ { i } \\sim \\mathcal { N } ( 0 , \\sigma _ { x } I )$ , where $\\sigma _ { x }$ is a hyperparameter, and $\\lambda _ { i } \\sim \\mathcal { U } [ 0 , 1 ]$ . We set the number of reconstructed samples to $m =$ $2 n$ (where $n$ is the size of the original training set). Note that our loss contains the derivative of ReLU Eq. (6). This derivative is a step function, containing only flat regions which are hard to optimize. We replace the derivative of the ReLU layer (backward function) with a sigmoid, which is the derivative of softplus (a smooth version of ReLU). We use the fact that our inputs are images to penalize values outside the range $[ - 1 , 1 ]$ . To this end we set $L _ { \\mathrm { p r i o r } } ( z ) = \\operatorname* { m a x } \\{ z - 1 , 0 \\} + \\operatorname* { m a x } \\{ - z - 1 , 0 \\}$ for each pixel $z$ , and average over all dimensions (pixels) in $\\mathbf { x } _ { i }$ . We optimize our loss for 100, 000 iterations using an SGD optimizer with momentum 0.9. We conduct a total of 100 runs using a random grid search on the hyperparameters (e.g. learning rate, $\\sigma _ { x }$ . See Appendix $\\mathbf { B }$ for full details). This results in $1 0 0 m$ “reconstructed” inputs. ",
|
| 736 |
+
"bbox": [
|
| 737 |
+
173,
|
| 738 |
+
381,
|
| 739 |
+
825,
|
| 740 |
+
534
|
| 741 |
+
],
|
| 742 |
+
"page_idx": 6
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"type": "text",
|
| 746 |
+
"text": "While some $\\mathbf { x } _ { i }$ end up converging to a training sample, some end as noise (similar phenomenon can be observed in 2D in Figure 2d). To identify the reconstructions that are most similar to a training image we use the SSIM metric [Wang et al., 2004]. ",
|
| 747 |
+
"bbox": [
|
| 748 |
+
174,
|
| 749 |
+
540,
|
| 750 |
+
821,
|
| 751 |
+
582
|
| 752 |
+
],
|
| 753 |
+
"page_idx": 6
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"type": "text",
|
| 757 |
+
"text": "In Figure 3 we show the best reconstruction results (in terms of SSIM) for models trained on $n { = } 5 0 0$ samples from MNIST/CIFAR10 datasets (with test accuracy $8 8 . 0 \\% / 7 7 . 6 \\%$ resp.). Note that the reconstructed images are very similar to the real input data, although a bit noisy. The source of this noise is not entirely clear. Possible reasons may be the complexity of the optimization problem, or the possibility that the trained model has not fully converged to the KKT point of Problem (1). ",
|
| 758 |
+
"bbox": [
|
| 759 |
+
174,
|
| 760 |
+
588,
|
| 761 |
+
825,
|
| 762 |
+
659
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 6
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "text",
|
| 768 |
+
"text": "We observed that small initializations significantly improve the quality of the reconstructed samples. We conjecture that small initialization causes faster convergence to the direction of the KKT point. This is also theoretically implied in Moroshko et al. [2020] (for certain linear models). Similarly, training for more epochs also improves the quality of the reconstruction. In Appendix C we show results for reconstructions from networks trained with standard initialization or trained for much fewer epochs. During the training phase, we used full batch gradient descent, to remain as much aligned to the theoretical setting. In Appendix C we show that our approach can reconstruct training data also from models trained with mini-batch SGD. ",
|
| 769 |
+
"bbox": [
|
| 770 |
+
174,
|
| 771 |
+
664,
|
| 772 |
+
825,
|
| 773 |
+
775
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 6
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "text",
|
| 779 |
+
"text": "5.3 Practice vs. Theory ",
|
| 780 |
+
"text_level": 1,
|
| 781 |
+
"bbox": [
|
| 782 |
+
174,
|
| 783 |
+
791,
|
| 784 |
+
348,
|
| 785 |
+
806
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 6
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "In this section we analyze some relations between our experimental results to the theory laid down in Section 3. Given a trained model and its reconstructed samples, we match each training sample to its best reconstruction (in terms of SSIM score). We then plot this SSIM score against $\\bar { \\Phi } ( \\pmb \\theta ; \\mathbf x )$ (the value of the model’s output on this training sample) – for all training samples. In Figure 4 each cell shows such plot for a given model. The top row shows models trained on the same architecture with ",
|
| 792 |
+
"bbox": [
|
| 793 |
+
174,
|
| 794 |
+
818,
|
| 795 |
+
825,
|
| 796 |
+
887
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 6
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "Models with the same architecture (1000-1000) trained on different number of training samples $( n )$ ",
|
| 803 |
+
"bbox": [
|
| 804 |
+
156,
|
| 805 |
+
88,
|
| 806 |
+
805,
|
| 807 |
+
103
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 7
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "image",
|
| 813 |
+
"img_path": "images/acf9a903284c286521927ed5267fbe8b20e8a007d4ef72864bb8eb94f4607bdc.jpg",
|
| 814 |
+
"image_caption": [],
|
| 815 |
+
"image_footnote": [],
|
| 816 |
+
"bbox": [
|
| 817 |
+
155,
|
| 818 |
+
109,
|
| 819 |
+
803,
|
| 820 |
+
195
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 7
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "image",
|
| 826 |
+
"img_path": "images/5f8fefd7b02bbd13b61929e28694bbeafe49126e63ee1df602eedf813bf6d4eb.jpg",
|
| 827 |
+
"image_caption": [
|
| 828 |
+
"Models trained on $n = 5 0 0$ samples with different architectures ",
|
| 829 |
+
"Figure 4: Each point represents a training sample. The y-axis is the highest SSIM score achieved by a reconstruction of this sample, the $\\mathbf { X }$ -axis is the output of the model. Top: The effect of training the same model on different number of training samples $( n )$ . Bottom: The effect of training models with different architectures (on $n = 5 0 0$ training samples). The right-most plot shows a 3-layer non-homogeneous MLP (with bias terms in all hidden layers). See discussion in Section 5.3. "
|
| 830 |
+
],
|
| 831 |
+
"image_footnote": [],
|
| 832 |
+
"bbox": [
|
| 833 |
+
156,
|
| 834 |
+
218,
|
| 835 |
+
807,
|
| 836 |
+
306
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 7
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "different number of training samples $( n )$ , where in the bottom row we show the results for models trained on $n = 5 0 0$ training samples, with different architectures (all results are on CIFAR10). ",
|
| 843 |
+
"bbox": [
|
| 844 |
+
171,
|
| 845 |
+
414,
|
| 846 |
+
823,
|
| 847 |
+
441
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 7
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "Recall that we do not expect to reconstruct samples that are far from the margin (Subsection 3.2). It is evident from Figure 4 that good reconstructions (e.g., $\\mathrm { S S I M } > 0 . 4 \\AA ,$ ) are obtained for samples that lie on the margin, as expected from theory. The plots indicate that increasing training size makes reconstruction more difficult. Lastly, as seen from the rightmost plot in the bottom row, we manage to get high-quality reconstructions from a non-homogeneous model (trained with biases in all hidden layers). This indicates that our approach may work beyond the theoretical limitations of Theorem 3.1. ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
174,
|
| 856 |
+
448,
|
| 857 |
+
825,
|
| 858 |
+
532
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 7
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "5.4 Comparison to other Reconstruction Schemes ",
|
| 865 |
+
"text_level": 1,
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
549,
|
| 869 |
+
531,
|
| 870 |
+
564
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 7
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "Model Inversion. Given a trained model $\\Phi ( \\theta ; \\cdot )$ , we search for $\\mathbf { x }$ which maximizes or minimizes $\\Phi ( \\pmb \\theta ; \\mathbf x )$ , corresponding to positive or negative labels. We initialize $\\mathbf { x } \\sim \\mathcal { N } ( 0 , \\sigma I )$ for several values of $\\sigma$ and optimize w.r.t. the model output (see Appendix B for the choice of hyperparameters). In Figure 5a (left) it is apparent that in our two-dimensional experiment, model inversion successfully reconstructed 7 training samples, which indeed lie on a local minimum or maximum. However, note that our scheme reconstructs all 20 samples (Figure 2). In high dimensions, namely, in MNIST and CIFAR, while our scheme can reconstruct a large portion of the training set (Figure 3a), model inversion converges to noisy/blurry class representatives that correspond to high/low output values (Figure 5a, right). Such results are typical with model inversion since not all class members from the training set are visually similar (see discussions in Shokri et al. [2017], Melis et al. [2019]). ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
173,
|
| 879 |
+
575,
|
| 880 |
+
825,
|
| 881 |
+
715
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 7
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "Weights Visualization. The weights of the first fully-connected layer have the same dimension as that of the input. One may wonder whether training samples are directly encoded there. In Figure 5b we show the weights that are most similar (SSIM) to a training sample, or all of them in the 2D case. As seen in the 2D case, most weights are in the general direction of a training sample, however the scale is unknown without prior knowledge on the data. For images (MNIST/CIFAR10), not more than 3 or 4 of the weights have resemblance to training samples, while our scheme manages to reconstruct dozens of samples. See Appendix B and C for details and all 1000 weights of the models. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
173,
|
| 890 |
+
731,
|
| 891 |
+
825,
|
| 892 |
+
829
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 7
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "6 Discussion and Conclusion ",
|
| 899 |
+
"text_level": 1,
|
| 900 |
+
"bbox": [
|
| 901 |
+
176,
|
| 902 |
+
851,
|
| 903 |
+
426,
|
| 904 |
+
867
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 7
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "Even though our results are shown for relatively small-scale models, they are the first to show that the parameters of trained networks may contain enough information to fully reconstruct training samples, ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
174,
|
| 913 |
+
883,
|
| 914 |
+
823,
|
| 915 |
+
911
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 7
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "(a) Model Inversion ",
|
| 922 |
+
"text_level": 1,
|
| 923 |
+
"bbox": [
|
| 924 |
+
338,
|
| 925 |
+
92,
|
| 926 |
+
490,
|
| 927 |
+
104
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 8
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "image",
|
| 933 |
+
"img_path": "images/2a1e1da7792eaea32ec559b3a37f2a5fe38b259f2bcb1d5335d7c7dd321138da.jpg",
|
| 934 |
+
"image_caption": [],
|
| 935 |
+
"image_footnote": [],
|
| 936 |
+
"bbox": [
|
| 937 |
+
215,
|
| 938 |
+
107,
|
| 939 |
+
715,
|
| 940 |
+
224
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 8
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "image",
|
| 946 |
+
"img_path": "images/6f832c5d79b42554e21e18bfc5782279a9167f3d917b448259e4b1db5c1ae8e3.jpg",
|
| 947 |
+
"image_caption": [
|
| 948 |
+
"(b) Weights of the first Fully-Connected Layer ",
|
| 949 |
+
"Figure 5: Comparison to other reconstruction schemes. Top: Model inversion on the 2D experiment (left), on CIFAR10 (top right) and MNIST (bottom right). The CIFAR and MNIST images are ordered by the value of their output from left (smallest) to right (largest). Bottom: Weights of the first (fully-connected) layer for the 2D experiment (left), CIFAR10 (top right) and MNIST (bottom right). The weights for the 2D experiment are the small purple dots. For the CIFAR and MNIST experiments we show the 10 weights with the highest SSIM score. "
|
| 950 |
+
],
|
| 951 |
+
"image_footnote": [],
|
| 952 |
+
"bbox": [
|
| 953 |
+
215,
|
| 954 |
+
257,
|
| 955 |
+
815,
|
| 956 |
+
396
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 8
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "and the first to reconstruct a substantial amount of training samples. Moreover, the theoretical basis of the implicit bias in neural networks provides an analytic explanation to this phenomenon. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
173,
|
| 965 |
+
506,
|
| 966 |
+
821,
|
| 967 |
+
534
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 8
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Solving our optimization problem for convolutional neural networks turned out to be more challenging and is therefore a subject of future research. We note that the theoretical results that we rely on (i.e., Theorem 3.1) also covers convolutional neural networks. We believe that the homogeneity restriction might be relaxed, and showed reconstructions also from a non-homogeneous model (Figure 4, bottomrightmost). We also believe that our method may be extended to multi-class classifiers using an extension of Theorem 3.1. Finally, showing reconstructions on larger models and datasets, or on tabular or textual data are interesting future directions. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
174,
|
| 976 |
+
540,
|
| 977 |
+
825,
|
| 978 |
+
637
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 8
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "On the theoretical side, it is not entirely clear why our optimization problem in Eq. (8) converges to actual training samples, even though there is no guarantee that the solution is unique, especially when using no prior (other than simple bounding to $[ - 1 , 1 ] ,$ . As a final note, our work brings up the question: are samples on margin the only ones that can be recovered from a trained classifier? or there exist better reconstruction schemes to reconstruct even more training samples from a trained neural network. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
174,
|
| 987 |
+
643,
|
| 988 |
+
825,
|
| 989 |
+
727
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 8
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Acknowledgements ",
|
| 996 |
+
"text_level": 1,
|
| 997 |
+
"bbox": [
|
| 998 |
+
176,
|
| 999 |
+
744,
|
| 1000 |
+
310,
|
| 1001 |
+
758
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 8
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"text": "This project received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 788535), and ERC grant 754705, and from the D. Dan and Betty Kahn Foundation, and was supported by the Carolito Stiftung. ",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
174,
|
| 1010 |
+
768,
|
| 1011 |
+
825,
|
| 1012 |
+
825
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 8
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "References ",
|
| 1019 |
+
"text_level": 1,
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
174,
|
| 1022 |
+
844,
|
| 1023 |
+
266,
|
| 1024 |
+
861
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 8
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "M. Abadi, A. Chu, I. Goodfellow, H. B. McMahan, I. Mironov, K. Talwar, and L. Zhang. Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC conference on computer and communications security, pages 308–318, 2016. ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
176,
|
| 1033 |
+
869,
|
| 1034 |
+
825,
|
| 1035 |
+
911
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 8
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "S. Arora, N. Cohen, W. Hu, and Y. Luo. Implicit regularization in deep matrix factorization. In Advances in Neural Information Processing Systems, pages 7413–7424, 2019. \nS. Azulay, E. Moroshko, M. S. Nacson, B. Woodworth, N. Srebro, A. Globerson, and D. Soudry. On the implicit bias of initialization shape: Beyond infinitesimal mirror descent. In International Conference on Machine Learning, pages 468–477, 2021. \nB. Balle, G. Cherubin, and J. Hayes. Reconstructing training data with informed adversaries. arXiv preprint arXiv:2201.04845, 2022. \nL. Biewald. Experiment tracking with weights and biases, 2020. URL https://www.wandb.com/. Software available from wandb.com. \nG. Brown, M. Bun, V. Feldman, A. Smith, and K. Talwar. When is memorization of irrelevant training data necessary for high-accuracy learning? In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 123–132, 2021. \nN. Carlini, C. Liu, Ú. Erlingsson, J. Kos, and D. Song. The secret sharer: Evaluating and testing unintended memorization in neural networks. In 28th USENIX Security Symposium (USENIX Security 19), pages 267–284, 2019. \nN. Carlini, S. Deng, S. Garg, S. Jha, S. Mahloujifar, M. Mahmoody, S. Song, A. Thakurta, and F. Tramer. Is private learning possible with instance encoding? arXiv preprint arXiv:2011.05315, 2020a. \nN. Carlini, M. Jagielski, and I. Mironov. Cryptanalytic extraction of neural network models. In Annual International Cryptology Conference, pages 189–218. Springer, 2020b. \nN. Carlini, F. Tramer, E. Wallace, M. Jagielski, A. Herbert-Voss, K. Lee, A. Roberts, T. Brown, D. Song, U. Erlingsson, et al. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21), pages 2633–2650, 2021. \nK. Chaudhuri, C. Monteleoni, and A. D. Sarwate. Differentially private empirical risk minimization. Journal of Machine Learning Research, 12(3), 2011. \nS. Chen, A. Klivans, and R. Meka. Efficiently learning one hidden layer relu networks from queries. Advances in Neural Information Processing Systems, 34, 2021. \nL. Chizat and F. Bach. Implicit bias of gradient descent for wide two-layer neural networks trained with the logistic loss. In Conference on Learning Theory, pages 1305–1338. PMLR, 2020. \nC. Dwork, F. McSherry, K. Nissim, and A. Smith. Calibrating noise to sensitivity in private data analysis. In Theory of cryptography conference, pages 265–284. Springer, 2006. \nL. Engstrom, A. Ilyas, S. Santurkar, D. Tsipras, B. Tran, and A. Madry. Adversarial robustness as a prior for learned representations. arXiv preprint arXiv:1906.00945, 2019. \nD. Erhan, Y. Bengio, A. Courville, and P. Vincent. Visualizing higher-layer features of a deep network. University of Montreal, 1341(3):1, 2009. \nV. Feldman. Does learning require memorization? a short tale about a long tail. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, pages 954–959, 2020. \nM. Fredrikson, S. Jha, and T. Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22nd ACM SIGSAC conference on computer and communications security, pages 1322–1333, 2015. \nI. J. Goodfellow, J. Shlens, and C. Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. \nS. Gunasekar, J. Lee, D. Soudry, and N. Srebro. Characterizing implicit bias in terms of optimization geometry. In International Conference on Machine Learning, pages 1832–1841. PMLR, 2018a. \nS. Gunasekar, J. Lee, D. Soudry, and N. Srebro. Implicit bias of gradient descent on linear convolutional networks. arXiv preprint arXiv:1806.00468, 2018b. \nS. Gunasekar, J. D. Lee, D. Soudry, and N. Srebro. Implicit bias of gradient descent on linear convolutional networks. In Advances in Neural Information Processing Systems, pages 9461–9471, 2018c. \nK. He, X. Zhang, S. Ren, and J. Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pages 1026–1034, 2015. \nZ. He, T. Zhang, and R. B. Lee. Model inversion attacks against collaborative inference. In Proceedings of the 35th Annual Computer Security Applications Conference, pages 148–162, 2019. \nB. Hitaj, G. Ateniese, and F. Perez-Cruz. Deep models under the gan: information leakage from collaborative deep learning. In Proceedings of the 2017 ACM SIGSAC conference on computer and communications security, pages 603–618, 2017. \nY. Huang, Z. Song, K. Li, and S. Arora. Instahide: Instance-hiding schemes for private distributed learning. In International Conference on Machine Learning, pages 4507–4518. PMLR, 2020. \nY. Huang, S. Gupta, Z. Song, K. Li, and S. Arora. Evaluating gradient inversion attacks and defenses in federated learning. Advances in Neural Information Processing Systems, 34:7232–7241, 2021. \nM. Jagielski, N. Carlini, D. Berthelot, A. Kurakin, and N. Papernot. High accuracy and high fidelity extraction of neural networks. In 29th USENIX Security Symposium (USENIX Security 20), pages 1345–1362, 2020. \nM. Jegorova, C. Kaul, C. Mayor, A. Q. O’Neil, A. Weir, R. Murray-Smith, and S. A. Tsaftaris. Survey: Leakage and privacy at inference time. arXiv preprint arXiv:2107.01614, 2021. \nZ. Ji and M. Telgarsky. Gradient descent aligns the layers of deep linear networks. In International Conference on Learning Representations, 2018. \nZ. Ji and M. Telgarsky. Directional convergence and alignment in deep learning. Advances in Neural Information Processing Systems, 33:17176–17186, 2020. \nA. Krizhevsky, G. Hinton, et al. Learning multiple layers of features from tiny images. 2009. \nY. LeCun, C. Cortes, and C. Burges. Mnist handwritten digit database. ATT Labs [Online]. Available: http://yann.lecun.com/exdb/mnist, 2, 2010. \nJ. P. Lewis. Fast normalized cross-correlation. 1995. URL http://citeseerx.ist.psu.edu/ viewdoc/summary?doi=10.1.1.21.6062. \nZ. Li, Y. Luo, and K. Lyu. Towards resolving the implicit bias of gradient descent for matrix factorization: Greedy low-rank learning. In International Conference on Learning Representations, 2020. \nB. Liu, M. Ding, S. Shaham, W. Rahayu, F. Farokhi, and Z. Lin. When machine learning meets privacy: A survey and outlook. ACM Computing Surveys (CSUR), 54(2):1–36, 2021. \nY. Long, V. Bindschaedler, L. Wang, D. Bu, X. Wang, H. Tang, C. A. Gunter, and K. Chen. Understanding membership inferences on well-generalized learning models. arXiv preprint arXiv:1802.04889, 2018. \nK. Lyu and J. Li. Gradient descent maximizes the margin of homogeneous neural networks. arXiv preprint arXiv:1906.05890, 2019. \nA. Mahendran and A. Vedaldi. Understanding deep image representations by inverting them. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5188–5196, 2015. \nF. A. Mejia, P. Gamble, Z. Hampel-Arias, M. Lomnitz, N. Lopatina, L. Tindall, and M. A. Barrios. Robust or private? adversarial training makes models more vulnerable to privacy attacks. arXiv preprint arXiv:1906.06449, 2019. \nL. Melis, C. Song, E. De Cristofaro, and V. Shmatikov. Exploiting unintended feature leakage in collaborative learning. In 2019 IEEE Symposium on Security and Privacy $( S P )$ , pages 691–706. IEEE, 2019. \nS. Milli, L. Schmidt, A. D. Dragan, and M. Hardt. Model reconstruction from model explanations. In Proceedings of the Conference on Fairness, Accountability, and Transparency, pages 1–9, 2019. \nA. Mordvintsev, C. Olah, and M. Tyka. Inceptionism: Going deeper into neural networks. 2015. \nE. Moroshko, B. E. Woodworth, S. Gunasekar, J. D. Lee, N. Srebro, and D. Soudry. Implicit bias in deep linear classification: Initialization scale vs training accuracy. Advances in neural information processing systems, 33:22182–22193, 2020. \nM. S. Nacson, S. Gunasekar, J. Lee, N. Srebro, and D. Soudry. Lexicographic and depth-sensitive margins in homogeneous and non-homogeneous deep models. In International Conference on Machine Learning, pages 4683–4692. PMLR, 2019. \nB. Neyshabur, S. Bhojanapalli, D. McAllester, and N. Srebro. Exploring generalization in deep learning. In Advances in Neural Information Processing Systems, pages 5947–5956, 2017. \nA. Nguyen, A. Dosovitskiy, J. Yosinski, T. Brox, and J. Clune. Synthesizing the preferred inputs for neurons in neural networks via deep generator networks. Advances in neural information processing systems, 29, 2016a. \nA. Nguyen, J. Yosinski, and J. Clune. Multifaceted feature visualization: Uncovering the different types of features learned by each neuron in deep neural networks. arXiv preprint arXiv:1602.03616, 2016b. \nA. Nguyen, J. Clune, Y. Bengio, A. Dosovitskiy, and J. Yosinski. Plug & play generative networks: Conditional iterative generation of images in latent space. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4467–4477, 2017. \nS. J. Oh, B. Schiele, and M. Fritz. Towards reverse-engineering black-box neural networks. In Explainable AI: Interpreting, Explaining and Visualizing Deep Learning, pages 121–144. Springer, 2019. \nC. Olah, A. Mordvintsev, and L. Schubert. Feature visualization. Distill, 2(11):e7, 2017. \nC. Olah, N. Cammarata, L. Schubert, G. Goh, M. Petrov, and S. Carter. Zoom in: An introduction to circuits. Distill, 2020. doi: 10.23915/distill.00024.001. https://distill.pub/2020/circuits/zoom-in. \nA. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019. \nN. Razin and N. Cohen. Implicit regularization in deep learning may not be explainable by norms. Advances in Neural Information Processing Systems, 2020. \nD. Rolnick and K. Kording. Reverse-engineering deep relu networks. In International Conference on Machine Learning, pages 8178–8187. PMLR, 2020. \nA. Salem, Y. Zhang, M. Humbert, P. Berrang, M. Fritz, and M. Backes. Ml-leaks: Model and data independent membership inference attacks and defenses on machine learning models. arXiv preprint arXiv:1806.01246, 2018. \nS. Santurkar, A. Ilyas, D. Tsipras, L. Engstrom, B. Tran, and A. Madry. Image synthesis with a single (robust) classifier. Advances in Neural Information Processing Systems, 32, 2019. \nR. Shokri, M. Stronati, C. Song, and V. Shmatikov. Membership inference attacks against machine learning models. In 2017 IEEE symposium on security and privacy (SP), pages 3–18. IEEE, 2017. \nL. Song and P. Mittal. Systematic evaluation of privacy risks of machine learning models. In 30th USENIX Security Symposium (USENIX Security 21), pages 2615–2632, 2021. \nD. Soudry, E. Hoffer, M. S. Nacson, S. Gunasekar, and N. Srebro. The implicit bias of gradient descent on separable data. The Journal of Machine Learning Research, 19(1):2822–2878, 2018. \nC. Szegedy, W. Zaremba, I. Sutskever, J. Bruna, D. Erhan, I. Goodfellow, and R. Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. \nN. Timor, G. Vardi, and O. Shamir. Implicit regularization towards rank minimization in relu networks. arXiv preprint arXiv:2201.12760, 2022. \nF. Tramèr, F. Zhang, A. Juels, M. K. Reiter, and T. Ristenpart. Stealing machine learning models via prediction {APIs}. In 25th USENIX security symposium (USENIX Security 16), pages 601–618, 2016. \nD. Tsipras, S. Santurkar, L. Engstrom, A. Turner, and A. Madry. Robustness may be at odds with accuracy. arXiv preprint arXiv:1805.12152, 2018. \nG. Vardi. On the implicit bias in deep-learning algorithms. arXiv preprint arXiv:2208.12591, 2022. \nG. Vardi and O. Shamir. Implicit regularization in relu networks with the square loss. In Conference on Learning Theory, pages 4224–4258. PMLR, 2021. \nG. Vardi, O. Shamir, and N. Srebro. On margin maximization in linear and relu networks. arXiv preprint arXiv:2110.02732, 2021. \nB. Wang and N. Z. Gong. Stealing hyperparameters in machine learning. In 2018 IEEE Symposium on Security and Privacy (SP), pages 36–52. IEEE, 2018. \nZ. Wang, A. C. Bovik, H. R. Sheikh, and E. P. Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600–612, 2004. \nB. Woodworth, S. Gunasekar, J. D. Lee, E. Moroshko, P. Savarese, I. Golan, D. Soudry, and N. Srebro. Kernel and rich regimes in overparametrized models. In Conference on Learning Theory, pages 3635–3673. PMLR, 2020. \nZ. Yang, J. Zhang, E.-C. Chang, and Z. Liang. Neural network inversion in adversarial setting via background knowledge alignment. In Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security, pages 225–240, 2019. \nS. Yeom, I. Giacomelli, M. Fredrikson, and S. Jha. Privacy risk in machine learning: Analyzing the connection to overfitting. In 2018 IEEE 31st computer security foundations symposium (CSF), pages 268–282. IEEE, 2018. \nH. Yin, P. Molchanov, J. M. Alvarez, Z. Li, A. Mallya, D. Hoiem, N. K. Jha, and J. Kautz. Dreaming to distill: Data-free knowledge transfer via deepinversion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8715–8724, 2020. \nH. Yin, A. Mallya, A. Vahdat, J. M. Alvarez, J. Kautz, and P. Molchanov. See through gradients: Image batch recovery via gradinversion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 16337–16346, 2021. \nJ. Yosinski, J. Clune, A. Nguyen, T. Fuchs, and H. Lipson. Understanding neural networks through deep visualization. arXiv preprint arXiv:1506.06579, 2015. \nC. Yun, S. Krishnan, and H. Mobahi. A unifying view on implicit bias in training linear neural networks. In International Conference on Learning Representations, 2020. \nC. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning (still) requires rethinking generalization. Communications of the ACM, 64(3):107–115, 2021. \nY. Zhang, R. Jia, H. Pei, W. Wang, B. Li, and D. Song. The secret revealer: Generative modelinversion attacks against deep neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 253–261, 2020. \nL. Zhu, Z. Liu, and S. Han. Deep leakage from gradients. Advances in Neural Information Processing Systems, 32, 2019. ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
169,
|
| 1044 |
+
35,
|
| 1045 |
+
828,
|
| 1046 |
+
917
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 9
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
168,
|
| 1055 |
+
71,
|
| 1056 |
+
828,
|
| 1057 |
+
920
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 10
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
168,
|
| 1066 |
+
61,
|
| 1067 |
+
828,
|
| 1068 |
+
920
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 11
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
169,
|
| 1077 |
+
61,
|
| 1078 |
+
828,
|
| 1079 |
+
917
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 12
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "Checklist ",
|
| 1086 |
+
"text_level": 1,
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
174,
|
| 1089 |
+
89,
|
| 1090 |
+
254,
|
| 1091 |
+
106
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 13
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "1. For all authors... ",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
214,
|
| 1100 |
+
116,
|
| 1101 |
+
339,
|
| 1102 |
+
130
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 13
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"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] \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
238,
|
| 1111 |
+
135,
|
| 1112 |
+
825,
|
| 1113 |
+
227
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 13
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "2. If you are including theoretical results... ",
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
214,
|
| 1122 |
+
231,
|
| 1123 |
+
493,
|
| 1124 |
+
244
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 13
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [N/A] We rely on known theoretical results, so proofs are not required. ",
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
238,
|
| 1133 |
+
248,
|
| 1134 |
+
825,
|
| 1135 |
+
294
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 13
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "3. If you ran experiments... ",
|
| 1142 |
+
"bbox": [
|
| 1143 |
+
212,
|
| 1144 |
+
297,
|
| 1145 |
+
393,
|
| 1146 |
+
313
|
| 1147 |
+
],
|
| 1148 |
+
"page_idx": 13
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "text",
|
| 1152 |
+
"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] \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)? [N/A] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] ",
|
| 1153 |
+
"bbox": [
|
| 1154 |
+
238,
|
| 1155 |
+
316,
|
| 1156 |
+
825,
|
| 1157 |
+
435
|
| 1158 |
+
],
|
| 1159 |
+
"page_idx": 13
|
| 1160 |
+
},
|
| 1161 |
+
{
|
| 1162 |
+
"type": "text",
|
| 1163 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1164 |
+
"bbox": [
|
| 1165 |
+
220,
|
| 1166 |
+
439,
|
| 1167 |
+
823,
|
| 1168 |
+
454
|
| 1169 |
+
],
|
| 1170 |
+
"page_idx": 13
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"type": "text",
|
| 1174 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [Yes] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] We do not have new assets. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] We used only publicly available assets. \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] We used only publicly available data. ",
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
238,
|
| 1177 |
+
458,
|
| 1178 |
+
825,
|
| 1179 |
+
580
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 13
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "text",
|
| 1185 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
214,
|
| 1188 |
+
583,
|
| 1189 |
+
705,
|
| 1190 |
+
598
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 13
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"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] ",
|
| 1197 |
+
"bbox": [
|
| 1198 |
+
238,
|
| 1199 |
+
602,
|
| 1200 |
+
825,
|
| 1201 |
+
691
|
| 1202 |
+
],
|
| 1203 |
+
"page_idx": 13
|
| 1204 |
+
}
|
| 1205 |
+
]
|
parse/dev/Sxk8Bse3RKO/Sxk8Bse3RKO_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/Sxk8Bse3RKO/Sxk8Bse3RKO_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/TatRHT_1cK/TatRHT_1cK.md
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# QUANTIFYING MEMORIZATION ACROSS NEURAL LANGUAGE MODELS
|
| 2 |
+
|
| 3 |
+
Nicholas Carlini∗1 Daphne Ippolito1,2 Matthew Jagielski1
|
| 4 |
+
Katherine Lee1,3 Florian Tramèr1 Chiyuan Zhang1
|
| 5 |
+
|
| 6 |
+
1Google Research 2University of Pennsylvania 3Cornell University
|
| 7 |
+
|
| 8 |
+
# ABSTRACT
|
| 9 |
+
|
| 10 |
+
Large language models (LMs) have been shown to memorize parts of their training data, and when prompted appropriately, they will emit the memorized training data verbatim. This is undesirable because memorization violates privacy (exposing user data), degrades utility (repeated easy-to-memorize text is often low quality), and hurts fairness (some texts are memorized over others).
|
| 11 |
+
|
| 12 |
+
We describe three log-linear relationships that quantify the degree to which LMs emit memorized training data. Memorization significantly grows as we increase (1) the capacity of a model, (2) the number of times an example has been duplicated, and (3) the number of tokens of context used to prompt the model. Surprisingly, we find the situation becomes more complicated when generalizing these results across model families. On the whole, we find that memorization in LMs is more prevalent than previously believed and will likely get worse as models continues to scale, at least without active mitigations.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
The performance of neural language models has continuously improved as these models have grown from millions to trillions of parameters (Fedus et al., 2021), with their training sets similarly growing from millions to trillions of tokens. In anticipation of future, even larger models trained on minimally curated datasets, it is important to quantify factors that lead to increased memorization of a model’s training set. Indeed, recent work has shown that training data extraction attacks are a practical threat for current language models (Carlini et al., 2020); an adversary interacting with a pretrained model can extract individual sequences that were used to train the model.
|
| 17 |
+
|
| 18 |
+
While current attacks are effective, they only represent a lower bound on how much memorization occurs in existing models. For example, by querying the GPT-2 language model, Carlini et al. (2020) (manually) identified just 600 memorized training examples out of a 40GB training dataset. This attack establishes a (loose) lower bound that at least $0 . 0 0 0 0 0 0 0 1 5 \%$ of the dataset is memorized. In contrast, we are able to show that the 6 billion parameter GPT-J model (Black et al., 2021; Wang and Komatsuzaki, 2021) memorizes at least $1 \%$ of its training dataset: The Pile (Gao et al., 2020).
|
| 19 |
+
|
| 20 |
+
In addition to prior work’s loose estimates of models’ memorization capabilities, there is a limited understanding of how memorization varies across different neural language models and datasets of different scales. Prior studies of memorization in language models either focus on models or datasets of a fixed size (Carlini et al., 2019; Zhang et al., 2021; Thakkar et al., 2020) or identify a narrow memorization-versus-scale relationship (Carlini et al., 2020; Lee et al., 2021). While McCoy et al. (2021) broadly study the extent to which language models memorize, their focus is on how to avoid the problem and ensure novelty of model outputs, rather than on studying model risk through identifying the maximal amount of data memorization.
|
| 21 |
+
|
| 22 |
+
This paper addresses both of the above open questions by comprehensively quantifying memorization across three families of neural language models and their associated datasets. We leverage access to each model’s original training set to provide order-of-magnitude more precise bounds on the amount of extractable data that an adversary could recover than in prior works.
|
| 23 |
+
|
| 24 |
+
We first construct a set of prompts from the model’s training set. By feeding prefixes of these prompts into the trained model, we check whether the model has the ability to complete the rest of the example verbatim. This allows us to measure memorization across models, datasets, and prompts of varying sizes. We identify three properties that significantly impact memorization:
|
| 25 |
+
|
| 26 |
+
1. Model scale: Within a model family, larger models memorize $2 { - } 5 \times$ more than smaller models.
|
| 27 |
+
2. Data duplication: Examples repeated more often are more likely to be extractable.
|
| 28 |
+
3. Context: It is orders of magnitude easier to extract sequences when given a longer context.
|
| 29 |
+
|
| 30 |
+
Our analysis suggests that future research on neural language modeling will need to take steps to prevent future (larger) models from memorizing their training datasets.
|
| 31 |
+
|
| 32 |
+
# 2 RELATED WORK
|
| 33 |
+
|
| 34 |
+
There is extensive prior work that qualitatively studies memorization in neural language models. Prior work has demonstrated extraction attacks that recover memorized data including URLs, phone numbers, and other personal information (Carlini et al., 2020; Ziegler, 2021)—or synthetically injected “canaries” (Carlini et al., 2019; Henderson et al., 2018; Thakkar et al., 2020; Thomas et al., 2020). However most of these works are qualitative and aim to demonstrate the existence of extractable data, rather than precisely quantifying how much models memorize. For example, the unprompted memorization evaluation of Carlini et al. (2020) found just 600 examples of memorization in GPT-2. Our paper aims to establish tighter bounds on the fraction of a dataset that is memorized.
|
| 35 |
+
|
| 36 |
+
Our analysis is relevant to the broad literature on privacy attacks on machine learning. For example, membership inference attacks (Shokri et al., 2017; Yeom et al., 2018) let an adversary detect the presence of a given example in a model’s training set; other forms of data leakage let an adversary learn dataset properties (Ganju et al., 2018; Fredrikson et al., 2015). We focus on extraction attacks due to their relevance for language modeling—extraction implies significant leakage from a model, and grows with data duplication (Lee et al., 2021), a common feature of large-scale text datasets.
|
| 37 |
+
|
| 38 |
+
Various definitions of memorization in deep neural networks have been studied in prior work (Carlini et al., 2019; 2020; Feldman and Zhang, 2020; Zhang et al., 2021). A detailed comparison with those existing formulations is presented in Section 3.1. One leading general memorization definition is differential privacy (Dwork et al., 2006), which formalizes the idea that removing any one example from the training set should not change the trained model. However, while differential privacy protects a single user’s private information, it is ineffective for preventing memorization of highly duplicated data, and does not capture the complexity of social, linguistic data (Brown et al., 2022). Also, differentially private learning algorithms (Abadi et al., 2016) generally suffer from expensive computation, slow convergence, and poor model utility, despite recent advances (Anil et al., 2021).
|
| 39 |
+
|
| 40 |
+
In concurrent work, Kandpal et al. (2022) study how often models emit memorized data as a function of data duplication. Their analysis focuses on evaluating why training data extraction attacks succeed. In contrast, we explicitly prompt models with training data prefixes in order to measure memorization in the worst case, something that a practical attack cannot necessarily do.
|
| 41 |
+
|
| 42 |
+
Prior scaling hypotheses. Our motivation to study scaling phenomena stems from anecdotal evidence in prior work that memorization ability relates to various aspects of scale. In particular, our analysis on model scale is informed by preliminary experiments in (Zhang et al., 2017; Carlini et al., 2020), our data duplication experiments follow in the line of Lee et al. (2021), and our context length experiments build on hypotheses by Carlini et al. (2020); Ziegler (2021).
|
| 43 |
+
|
| 44 |
+
# 3 METHODOLOGY
|
| 45 |
+
|
| 46 |
+
# 3.1 DEFINITION OF MEMORIZATION
|
| 47 |
+
|
| 48 |
+
To begin, we first select a precise definition for memorization:
|
| 49 |
+
|
| 50 |
+
Definition 3.1. A string $s$ is extractable with $k$ tokens of context from a model $f$ if there exists a (length- $k$ ) string $p$ , such that the concatenation $\left[ p \mid \mid s \right]$ is contained in the training data for $f$ , and $f$ produces $s$ when prompted with $p$ using greedy decoding.
|
| 51 |
+
|
| 52 |
+
For example, if a model’s training dataset contains the sequence “My phone number is 555-6789”, and given the length $k = 4$ prefix “My phone number is”, the most likely output is “555-6789”, then this sequence is extractable (with 4 words of context). We focus on greedy sampling in this paper, and verify in Section 4.1 that our choice of decoding strategy does not significantly impact our results.
|
| 53 |
+
|
| 54 |
+
While prior work proposed other definitions, we prefer ours in this paper as it is more actionable. Some memorization definitions, including lower-bounds on differential privacy (Dwork et al., 2006; Jagielski et al., 2020; Nasr et al., 2021) or counterfactual memorization (Feldman and Zhang, 2020; Zhang et al., 2021), require training hundreds or thousands of models, which is impractical for large language models. Alternatively, computing exposure (Carlini et al., 2019) requires thousands of generations per sequence, and is only designed for carefully crafted training examples.Finally, $k$ -eidetic memorization (Carlini et al., 2020), is a useful definition for unprompted memorization, but less useful for tightly bounding memorization by prompting with training data (as we will do). Future work might explore how our three scaling observations apply to other definitions of memorization.
|
| 55 |
+
|
| 56 |
+
# 3.2 SELECTION OF EVALUATION DATA
|
| 57 |
+
|
| 58 |
+
Having chosen a definition, we next describe our evaluation procedure. Ideally, we would consider every sequence $x = [ p \mid \mid s ]$ in the model’s training dataset (where $x$ has been split into a length- $k$ prefix $p$ and a suffix $s$ ). For each sequence, we would report if the model exactly reproduces $s$ when prompted with $p$ , following Definition 3.1. Unfortunately, performing this test on every sequence in the training data would be prohibitively expensive. For example, the largest 6 billion parameter GPT-Neo model has a throughput of roughly one 100-token generation per second on a V100 GPU. Extrapolating to the 800GB training dataset, this would require over 30 GPU-years of compute.
|
| 59 |
+
|
| 60 |
+
Instead, we query on a smaller subset of the training data, that still produces statistically confident estimates. In this paper we randomly choose subsets of roughly 50,000 sequences, allowing us to efficiently run inference in just a few hours. The primary criteria when choosing a subset of the training data is to obtain a representative sample that allows us to draw meaningful conclusions from the data. We consider two approaches to constructing a subset of the data.
|
| 61 |
+
|
| 62 |
+
Our first subset is a uniformly random sample of 50,000 sequences, drawn from the training dataset without repetition. While a uniform sample is useful to estimate the absolute amount of memorization in a model, it is poorly suited for studying how memorization scales with data properties that are not uniformly represented in the training set. For example, prior work has identified that data duplication (i.e., how often the same sequence is repeated either exactly or approximately) is an important factor for memorization. Yet, because the frequency of training data duplication decays extremely quickly (Lee et al., 2021), a uniformly random sample of 50,000 sequences (accounting for $\leq 0 . 0 \dot { 2 } \%$ of the dataset) is unlikely to contain any signal that would allow us to accurately measure the tail of this repeated data distribution. A similar concern arises for measuring how memorization scales with prompt length, since very long sentences account for only a small fraction of the training set.
|
| 63 |
+
|
| 64 |
+
Therefore, our second subset is a random sample normalized by both sequence lengths and duplication counts, which allows us to accurately measure memorization of large language models in the worst-case, on highly duplicated data with long prompts. For each sequence length $\ell \in \{ 5 0 , 1 0 0 , 1 5 0 , \ldots , 5 0 0 \}$ , and integer $n$ , we select 1,000 sequences of length $\ell$ that are contained in the training dataset between $2 ^ { n / 4 }$ and $2 ^ { ( n + 1 ) / 4 }$ times. We do this until we reach an $n$ for which 1,000 sequences are not available. This gives us 1,000 sequences that repeat between 6 and 8 times $( \approx 2 ^ { 1 1 / 4 }$ and $\approx 2 ^ { 1 2 / 4 }$ ) and also 1,000 sequences that repeat between 724 and 861 times $( \approx 2 ^ { 3 8 / 4 }$ and $\approx 2 ^ { 3 9 / 4 }$ ). This biased sampling allows us to more accurately measure memorization as a function of a sample’s duplication factor and prompt length, without querying the entire dataset. Note that constructing this duplicate-normalized data subset requires some work, as efficiently identifying duplicate substrings in an 800GB training dataset is computationally challenging. We make use of the suffix array construction from Lee et al. (2021) (see Appendix).
|
| 65 |
+
|
| 66 |
+
For each length from 50 to 500 tokens, we collect 50,000 examples duplicated varying numbers of times, totaling roughly 500,000 sequences. For each sequence of length $\ell$ , we prompt the model with the first $\ell - 5 0$ tokens and report the sequence as “extractable” if the model exactly emits the next 50 token suffix of this sequence. Fifty tokens corresponds to an average of 127 characters or 25 wordsin the GPT-Neo training set, well over the length of a typical English sentence. Finally, we compute the average probability that a sequence is extractable by averaging over all lengths $\ell$ .
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+
Figure 1: We prompt various sizes of GPT-Neo models (green) with data sampled from their training set—The Pile, and normalized by sequence lengths and duplication counts. As a baseline (yellow), we also prompt the GPT-2 family of models with the same Pile-derived prompts, even though these models were trained on WebText, a different training dataset. (a) Larger models memorize a larger fraction of their training dataset, following a log-linear relationship. This is not just a result of better generalization, as shown by the lack of growth for the GPT-2 baseline models. (b) Examples that are repeated more often in the training set are more likely to be extractable, again following a log-linear trend (baseline is GPT-2 XL). (c) As the number of tokens of context available increases, so does our ability to extract memorized text (baseine is GPT-2 XL).
|
| 70 |
+
|
| 71 |
+
# 4 EXPERIMENTS
|
| 72 |
+
|
| 73 |
+
We primarily study the GPT-Neo model family (Black et al., 2021; Wang and Komatsuzaki, 2021) trained on the Pile dataset (Gao et al., 2020). The GPT-Neo models are causal language models trained with the objective of predicting the next token in a sequence given the previous ones. They come in four sizes: 125 million, 1.3 billion, 2.7 billion and 6 billion parameters.1 The Pile is a dataset of 825GB of text collected from various sources (e.g., books, Web scrapes, open source code). Prior to the recent release of OPT (Zhang et al., 2022), the GPT-Neo models were the largest language models available for public download, and The Pile is the largest public text dataset available.
|
| 74 |
+
|
| 75 |
+
# 4.1 BIGGER MODELS MEMORIZE MORE
|
| 76 |
+
|
| 77 |
+
We begin by considering the impact of model size on memorization, expanding on prior studies which qualitatively established a relationship between the size of GPT-2 models and their ability to memorize $< 3 0$ URLs (Carlini et al., 2020). In contrast, we study a million model generations in order to describe how model scale relates to memorization.
|
| 78 |
+
|
| 79 |
+
Results. We first study our biased random data sample normalized by duplication count and sequence lengths. The results of this experiment are given in Figure 1a. The y-axis reports the fraction of generations which exactly reproduce the true suffix for their prompt, averaged over all prompt and sequence lengths in our evaluation set. Because our biased sampling over-represents duplicated strings, the absolute degree of memorization in Figure 1a is not particularly important here—rather, we are interested in how memorization varies with scale.2 We find that larger models memorize significantly more than smaller models do, with a near-perfect log-linear fit ( $R ^ { 2 }$ of $9 9 . 8 \%$ ): a ten fold increase in model size corresponds to an increase in memorization of 19 percentage points.
|
| 80 |
+
|
| 81 |
+
To confirm that larger models are indeed memorizing more data, and not simply generalizing better, we repeat the analysis with the GPT-2 model family as a baseline. The GPT-2 models are similarly sized, and also trained on Internet-scraped data. If our “larger models memorize more” result was due to the predictive strength of larger models, and not the memorization of specific training data, we would expect a similar relationship between comparably sized GPT-2 models trained on similar data. Put differently, this baseline allows to establish what fraction of the training data is sufficiently “easy” that any language model can correctly predict the 50-token suffix, even if the example has not been seen during training. For example, a language model trained on multiple examples of number sequences can likely correctly complete some other unseen number sequences. We find that GPT-2 correctly completes approximately $6 \%$ of the examples in our evaluation set, compared to $4 0 \%$ for the similarly sized 1.3B parameter GPT-Neo model. A qualitative analysis (see examples in Appendix Figure 15) suggests that examples “memorized” by GPT-2 are largely uninteresting sequences (e.g., number sequences, repetitions of the same few tokens, or common phrases). Therefore, we conclude that larger models have a higher fraction of extractable training data because they have actually memorized the data; it is not simply that the larger models are more accurate.
|
| 82 |
+
|
| 83 |
+
# 4.2 REPEATED STRINGS ARE MEMORIZED MORE
|
| 84 |
+
|
| 85 |
+
Prior work provides preliminary evidence that memorization in language models increases with the number of times sequences are repeated in the training set (Carlini et al., 2020; Lee et al., 2021). We expand on this observation and quantitatively measure the effect of data duplication on memorization. Using our duplication-normalized data sample, we measure the fraction of sequences which are extractable, for buckets of sequences duplicated between 2 and 900 times. Each bucket consists of 1,000 distinct sentences, and we compute the average amount of memorization for each bucket.
|
| 86 |
+
|
| 87 |
+
Results. Figure 1b shows our results, aggregated over all sequence lengths. We observe a clear log-linear trend in memorization. While models rarely regurgitate strings that are repeated only a few times, this probability increases severely for highly duplicated strings. The small memorization values at low numbers of repetitions corroborates the positive impact of training dataset deduplication on memorization observed by Lee et al. (2021). However, we find that memorization does still happen, even with just a few duplicates—thus, deduplication will not perfectly prevent leakage. While this relationship is perhaps obvious, and has been corroborated for specific training examples in prior work (Carlini et al., 2019; 2020), our results show that it holds across the entire training set.
|
| 88 |
+
|
| 89 |
+
# 4.3 LONGER CONTEXT DISCOVERS MORE MEMORIZATION
|
| 90 |
+
|
| 91 |
+
The previous two questions evaluated how data collection and model training decisions impact the leakage of a model’s training data when it is provided a fixed number of tokens from a sequence as context. As a result, those experiments suggest particular actions that could be taken to mitigate memorization (by reducing model size, or limiting the number of duplicate examples).
|
| 92 |
+
|
| 93 |
+
However, even when the model is fixed, it is possible to vary the amount of extractable training data by controlling the length of the prefix passed to the model. By studying how the number of tokens of context impacts extractability, we demonstrate the difficulty of discovering memorization—language models may only exhibit their memorization under favorable conditions.
|
| 94 |
+
|
| 95 |
+
Results. In Figure 1c, we observe that the fraction of extractable sequences increases log-linearly with the number of tokens of context. For example, $33 \%$ of training sequences in our evaluation set are extractable from the 6B model at 50 tokens of context, compared to $65 \%$ with 450 tokens of context. We call this the discoverability phenomenon: some memorization only becomes apparent under certain conditions, such as when the model is prompted with a sufficiently long context.
|
| 96 |
+
|
| 97 |
+
The discoverability phenomenon may seem natural: conditioning a model on 100 tokens of context is more specific than conditioning the model on 50 tokens of context, and it is natural that the model would estimate the probability of the training data as higher in this situation. However, the result is that some strings are “hidden” in the model and require more knowledge than others to be extractable.
|
| 98 |
+
|
| 99 |
+
From one point of view, it is good that some memorization is difficult to discover. This makes it harder for attackers to perform training data extraction attacks (Carlini et al., 2020), or otherwise exploit memorization. Indeed, if an exact 100 token prompt is required to make the model output a given string, then, in practice, an adversary will likely be unable to perform the attack. The difficulty in discovering memorization also reduces the likelihood of non-adversarial training data regurgitation. For example, the GitHub Copilot model (Chen et al., 2021) reportedly rarely emits memorized code in benign situations, and most memorization occurs only when the model has been prompted with long code excerpts that are very similar to the training data (Ziegler, 2021). Practitioners building language generation APIs could (until stronger attacks are developed) significantly reduce extraction risk by restricting the maximum prompt length available to users.
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
Figure 2: (a) Fraction of sequences extracted as a function of model scale where we sample uniformly from the training set. (b) Fraction of sequences extracted as we vary the length of the prompt. For each sequence length $n$ , $n { - } 5 0$ tokens are used as the prefix, and we check for extraction of the remaining 50 tokens. (c-left) Using beam search with $\scriptstyle b = 1 0 0$ slightly increases the data extracted. (c-right) We observe considerably more memorization when checking whether the generated sequence occurs anywhere in the entire training set (Section C). However, this approach is very computationally expensive so we do not use it for our other experiments.
|
| 103 |
+
|
| 104 |
+
Viewed differently, however, the difficulty of discovering memorization can also harm our ability to audit privacy in machine learning models. Because provably-correct approaches for privacypreserving training of machine learning models are applied only rarely in practice (Abadi et al., 2016; Thakkar et al., 2020; Ramaswamy et al., 2020), it is common to attempt post-hoc privacy auditing (Jayaraman and Evans, 2019; Jagielski et al., 2020; Nasr et al., 2021). Our results suggest that correctly auditing large language models likely requires prompting the model with training data, as there are no known techniques to identify the tail of memorized data without conditioning the model with a large context. Improving upon this limitation is an interesting problem for future work.
|
| 105 |
+
|
| 106 |
+
# 4.4 ALTERNATE EXPERIMENTAL SETTINGS
|
| 107 |
+
|
| 108 |
+
In this section, we briefly review other strategies that we could have used to quantify memorization.
|
| 109 |
+
|
| 110 |
+
Random dataset sampling. The majority of this paper uses subsets of the training data that were explicitly sampled according to training data duplication frequency. Now, we consider how our results would differ if we chose a truly random subset of the training data, where each sequence is sampled uniformly, instead of sampling a duplicate-normalized dataset. Specifically, we randomly sample 100,000 sequences of varying lengths from The Pile dataset, then prompt the model and test for memorization as before (more details in Appendix C).
|
| 111 |
+
|
| 112 |
+
Figure 2a and Figure 2b present the results. We observe similar qualitative trends with model scale and context length as in Figure 1. Larger models memorize more training examples than smaller models—and much more than the GPT-2 models that were not trained on The Pile. Similarly, providing more context to a model increases the likelihood we discover memorization. We can extract the last 50 tokens of a length-1000 sequence with $7 \%$ probability for the largest GPT-J 6B model, compared to $4 \%$ probability for the smallest 125M GPT-Neo model. (And both of these are much larger than the $2 \%$ probability of extraction for the 1.5B parameter GPT2-XL model.) These results, taken together, allow us to estimate a lower bound that there is at least $1 \%$ of The Pile dataset that is extractable by the 6B GPT-J model, but not by GPT-2 XL.
|
| 113 |
+
|
| 114 |
+
Alternate decoding strategies. We have defined memorization as a model’s ability to generate the true continuation when choosing the most likely token at every step of decoding. Yet, this greedy decoding strategy does not produce the overall most likely sequence. Many language model applications use other decoding strategies, such as beam search to find the generation with highest likelihood. To understand how our choice of decoding strategy affects the amount of memorization we measure, we compare greedy decoding with beam search in Figure 2(c). We find that using beam search with 100 beams results in marginally more extracted memorization. The difference in extractable memorization is just under 2 percentage points on average, with a maximum of $5 . 6 \%$ Interestingly, beam search and greedy decoding generated the same output $45 \%$ of the time.
|
| 115 |
+
|
| 116 |
+
Figure 3: Text examples that are memorized by the 6B model, but not by smaller models. Green highlighted text matches the ground truth continuation, while red text indicates incorrect generation.
|
| 117 |
+
|
| 118 |
+
<table><tr><td rowspan=1 colspan=1>Prompt</td><td rowspan=1 colspan=1>Continuation (== 6B)</td><td rowspan=1 colspan=2>2.7B</td><td rowspan=1 colspan=1>1.3B</td><td rowspan=1 colspan=1>125M</td></tr><tr><td rowspan=1 colspan=1>Gallery "Though defensive violence will</td><td rowspan=1 colspan=1>condemned as ridiculous,and</td><td rowspan=1 colspan=2>condemned as ridiculous,and then</td><td rowspan=1 colspan=1>tried inthe mind of achild</td><td rowspan=1 colspan=1>and foremostaman's dutyto</td></tr><tr><td rowspan=3 colspan=1>always be'a sad necessity'in the eyesof men of principle, it would be stillmore unfortunate if wrongdoers shoulddominate just men."- St.Augustine "Anew idea is first</td><td rowspan=2 colspan=1>thendismissedastrivial,utilfinally it becomes what everybodyknows."-William James "This istherealtaskbefore us:toreassert</td><td rowspan=2 colspan=2>dismissedastivial,bforengacceptedas the mostimportant thingin the world.George Bernard</td><td rowspan=3 colspan=1>and then it is tried in themind of a man."- ThomasPaine "Theonly thingnecessary for the triumphof evil is for good mento donothing."- Edmund Burke"</td><td rowspan=3 colspan=1>his fellow man.It isa duty tobea manof principleandto beaman ofprinciple,andtobeaman ofprinciple,andtobeaman ofprinciple,and tobea</td></tr><tr><td rowspan=1 colspan=1>acceptedas the mostimportant thingin the world.George Bernard</td></tr><tr><td rowspan=1 colspan=1>therealtaskbefore us:toreassertourcommitmentasanation toalaw higher than our own,</td><td rowspan=1 colspan=2>Shaw"The ultimate measure of a manis not where he standsin moments ofcomfort and convenience,but where</td><td rowspan=1 colspan=1>aman</td></tr><tr><td rowspan=2 colspan=1>_GPL(crypto_unregister_alg); intcrypto_register_template(structcrypto_template *tmpl){structcrypto_template *q; interr=-EIS;</td><td rowspan=2 colspan=1>down_write(&crypto_alg_sem);list_for_each_entry(q,&cryptotemplatelist,istif==tmpl)</td><td rowspan=1 colspan=2>list_for_each_entry(q,&cryptoag_list,list){if(tmp-</td><td rowspan=2 colspan=1>q = kzalloc(sizeof(*q),GFP_KERNEL); if(q)goto out; q->alg=tmpl->alg;q->base</td><td rowspan=2 colspan=1>stuctcrypto_template*tmpl=crypto_template_new(tmpl);if (err)returemp->tmpl = q;tmpl->tmpl->tm</td></tr><tr><td rowspan=1 colspan=2>>name&& tmpl->name!= q->alg.cra_name)</td></tr></table>
|
| 119 |
+
|
| 120 |
+
The most common decoding strategy employed by modern LMs is random sampling, where the next token is selected at random according to a probability distribution derived from the model’s predictions. McCoy et al. (2021) found that random sampling resulted in generated text with a greater number of novel $n$ -grams. Since the goal of our study is to maximize discoverability—an antithetical goal to maximizing linguistic novelty—we do not present experiments that use random sampling.
|
| 121 |
+
|
| 122 |
+
Alternate definition of extractability. Our main experiments report a sequence as “extractable” if the model’s generation is identical to the true suffix of the considered training example. However it is possible this suffix is still present (elsewhere) in the dataset. We now consider a loose lower bound on memorization that considers a sequence memorized if the generation $[ p | | f ( p ) ]$ from a prompt $p$ is contained anywhere in the training dataset. Searching within the entire dataset finds more memorized content than comparing with the ground truth (Figure 2c). For examples at 100 repetitions, $3 2 . 6 \%$ of outputs are contained somewhere in the dataset but just $1 5 . 8 \%$ match the ground truth continuation.
|
| 123 |
+
|
| 124 |
+
# 4.5 QUALITATIVE EXAMPLES OF MEMORIZATION
|
| 125 |
+
|
| 126 |
+
In Figure 3, we present qualitative examples that are only memorized by the largest (6B) model, but not the smaller ones. We highlight some interesting patterns in these sequences: while the generations from the smaller models do not match the training data, they are generally thematically-relevant and locally consistent. However, a closer inspection reveals that those generations are only syntactically sound, but semantically incorrect. Appendix Figure 8 shows further examples of sequences that are memorized by all the models. We found most of these universally-memorized sequences to be “unconventional” texts such as code snippets or highly duplicated texts such as open source licenses. Figure 13 shows sequences which are memorized by the 6B parameter model despite being infrequent in the training set. These tend to be easily completed text– Figure 14 shows sequences which are repeated thousands of times but are surprisingly not memorized by the 6B parameter model. Many of these are mostly correctly completed, only differing on semantically unimportant characters.
|
| 127 |
+
|
| 128 |
+
# 5 REPLICATION STUDY
|
| 129 |
+
|
| 130 |
+
The above analysis provides evidence that memorization scales log-linearly with model size, data duplicates, and context length. We now replicate this analysis for other language models trained with different datasets and training objectives, namely: (1) the T5 family of models trained on the C4 dataset (Raffel et al., 2020), (2) models from Lee et al. (2021), trained on a deduplicated version of C4, and (3) the OPT family of models (Zhang et al., 2022), also trained on the Pile. We expected our results to cleanly generalize across settings, and this is indeed true for model scale. Yet, the situation is more complicated when considering data duplication, due to training set idiosyncrasies.
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
Figure 4: (a) Masked language model objective: Larger models have a higher fraction of sequences extractable on T5. (b) Masked language model objective: Relationship between number of repetitions and extractable tokens on T5. (c) Causal language model objective: Relationship between number of repetitions and memorization on language models trained with deduplicated data.
|
| 134 |
+
|
| 135 |
+
# 5.1 T5 MASKED LANGUAGE MODELING
|
| 136 |
+
|
| 137 |
+
Model and dataset. The T5 v1.1 models are masked encoder-decoder models trained to reproduce randomly deleted spans from an input sequence. The models vary in size from 77M to 11B billion parameters, and are trained on C4—a 806 GB curated version of English web pages from the Common Crawl. The largest T5 model (11B parameters) is the largest publicly available masked language model. T5 models are thus good candidates for studying how memorization scales with model size.
|
| 138 |
+
|
| 139 |
+
We must first define what is meant by “extractable data” for the masked language modeling task. T5 models are trained by removing a random $1 5 \%$ of tokens from each training sequence (i.i.d), and the model must then “fill in the blanks” to restore the tokens that were dropped from the input. As a result of this different training objective, Definition 3.1 is not directly applicable: the model does not operate on a prefix and output a suffix. We instead call a sequence memorized if the model perfectly solves the masked language modeling task on that sequence. For example, we call a 200-token sequence memorized if the model can use the 170 $( = 2 0 0 \cdot 0 . 8 5 )$ ) tokens of context to perfectly predict the remaining 30 tokens $( = 2 0 0 \cdot 0 . 1 5 )$ . Because this token-dropping procedure is stochastic, it is possible that one set of dropped tokens might yield an output of “memorized” and another might not. For simplicity, we inspect only one set of masked tokens per sequence; because we are already averaging over 50,000 sequences this additional randomness does not harm the results of our analysis.
|
| 140 |
+
|
| 141 |
+
Results. In Figure 4a, we reproduce the model scaling effect (from Figure 1a) for T5 models. Larger models similarly have an increased ability to perfectly solve the masked prediction task. Surprisingly, while a scaling trend does hold here as well, the absolute memorization in masked models is an order of magnitude lower than for comparably sized causal language models. For example, the 3B parameter T5-XL model memorizes $3 . { \bar { 5 } } \%$ of sequences repeated 100 times, whereas the GPT-Neo 2.7B model memorizes $5 3 . 6 \%$ of sequences repeated 100 times (with 150 tokens of context).
|
| 142 |
+
|
| 143 |
+
Next, we turn to reproducing the analysis of how memorization scales with data duplication. The situation here becomes significantly less clear. As shown in Figure 4b, sequences duplicated more often tend to be easier to memorize, but there is no monotonic scaling relationship. Compared to the case of the GPT-Neo models trained on The Pile, the relation between data duplication counts and memorization for T5 models trained on C4 exhibits large variance. This variance is statistically significant: sequences repeated 159 to 196 times are memorized with probability less than $5 . 1 \%$ with $9 9 . 7 \%$ confidence (three standard deviations from the mean), however sequences repeated 138 to 158 times (that is, less often) are memorized with probability at least $6 . 2 \%$ (also with $9 9 . 7 \%$ confidence). That is, for some reason, sequences that occur ${ \sim } 1 4 0$ times are more likely to be memorized, despite occurring less often, even if we assume a three-sigma error in both measurements simultaneously.
|
| 144 |
+
|
| 145 |
+
In order to explain this counter-intuitive phenomenon, we qualitatively study each of these two buckets of examples to understand this difference. We find that most of the duplicate examples repeated 138-158 times consist mainly of whitespace tokens. These sequences are thus much easier to predict correctly than other sequences, even if they are repeated more often. This effect, to a lesser extent, can be found in other buckets which contain many approximately near duplicates.
|
| 146 |
+
|
| 147 |
+
# 5.2 LANGUAGE MODELS TRAINED ON DEDUPLICATED DATA
|
| 148 |
+
|
| 149 |
+
Model and dataset. The models used in Lee et al. (2021) are 1.5B parameter causal language models. This model family consists of one model trained on C4 (the same dataset as T5), one model trained on a version of C4 that was deduplicated by removing all documents which were near-duplicates of other documents, and one model trained on a version of C4 that was deduplicated by deleting any string of length-50 tokens that occurred more than once. Lee et al. (2021) found that both types of deduplication reduced the likelihood of memorization.
|
| 150 |
+
|
| 151 |
+
Results. We were most interested in whether models trained on deduplicated data would still exhibit increased memorization of examples which were repeated frequently in the original, non-deduplicated C4 dataset (e.g., because the deduplication missed some near-duplicates). Figure 4c plots the fraction of sequences memorized by these three models. We draw two interesting conclusions from this data.
|
| 152 |
+
|
| 153 |
+
First, we confirm that models trained on deduplicated datasets memorize less data than models trained without deduplication. For example, for sequences repeated below 35 times, the exact deduplicated model memorizes an average of $1 . 2 \%$ of sequences, compared to $3 . 6 \%$ without deduplication, a statistically significant $\left( p < 1 0 ^ { - 1 5 } \right.$ ) decrease by a factor of $3 \times$ . Second, while deduplication does help for sequences repeated up to ${ \sim } 1 0 0$ times, it does not help for sequences repeated more often! The extractability of examples repeated at least 408 times is statistically significantly higher than any other number of repeats before this. We hypothesize that this is due to the fact that any deduplication strategy is necessarily imperfect in order to efficiently scale to hundreds of gigabytes of training data. Thus, while it may be possible to remove most instances of duplicate data, different and valid definitions of duplicates can mean deduplication is not exhaustive.
|
| 154 |
+
|
| 155 |
+
# 5.3 LANGUAGE MODELS TRAINED ON A MODIFIED VERSION OF THE PILE
|
| 156 |
+
|
| 157 |
+
Model and dataset. We finally study the OPT family of models (Zhang et al., 2022), that vary from 125 million to 175 billion parameters.3 These models were trained on a 800GB dataset that overlaps with The Pile but is not identical and contains data from many new sources, while also removing some data from the Pile. This dataset was also deduplicated prior to training, and so we do not expect to see duplicate sequences memorized (much) more than sequences repeated only a few times.
|
| 158 |
+
|
| 159 |
+
Results. Overall, we find that while there are nearly identical scaling trends to those we found for GPT-Neo’s model family, the effect size is orders-of-magnitude smaller (figure 7). Even the 66 billion parameter model memorizes a smaller fraction of The Pile than the smallest 125 million parameter GPT Neo model. This suggests two possible conclusions: (a) careful data curation and training can mitigate memorization, or (b) even slight shifts in data distribution can significantly alter what content gets memorized. Without direct access to the original training dataset, we can not distinguish between these two conclusions and hope future work will be able to resolve this question.
|
| 160 |
+
|
| 161 |
+
# 6 CONCLUSION
|
| 162 |
+
|
| 163 |
+
Our paper presents the first comprehensive quantitative analysis of memorization in large language models, by re-processing the training set to find memorized data. Our work has two broad conclusions.
|
| 164 |
+
|
| 165 |
+
For the study of generalization, we have shown that while current LMs do accurately model the statistics of their training data, this need not imply that they faithfully model the desired underlying data distribution. In particular, when the training data distribution is skewed (e.g., by containing many duplicates of some sequences) larger models are likely to learn these unintended dataset peculiarities. It is therefore important to carefully analyze the datasets used to train ever larger models, as future (larger) models are likely to remember even more training details than current (smaller) models.
|
| 166 |
+
|
| 167 |
+
For the study of privacy, our work indicates that current large language models memorize a significant fraction of their training datasets. Memorization scales log-linear with model size—by doubling the number of parameters in a model we can extract a significantly larger fraction of the dataset. Given that current state-of-the-art models contain more than $2 0 0 \times$ as many parameters as the largest 6B parameter model we analyze, it is likely that these even larger models memorize many sequences that are repeated just a handful of times. At the same time, we have shown that this memorization is often hard to discover, and for an attack to actually extract this data it will be necessary to develop qualitatively new attack strategies. Fortunately, it appears that (for the comparatively small models we study) training data inserted just once is rarely memorized, and so deduplicating training datasets (Lee et al., 2021) is likely a practical technique to mitigate the harms of memorization.
|
| 168 |
+
|
| 169 |
+
# REFERENCES
|
| 170 |
+
|
| 171 |
+
Martin Abadi, Andy Chu, Ian Goodfellow, H Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC conference on computer and communications security, pages 308–318, 2016.
|
| 172 |
+
|
| 173 |
+
Rohan Anil, Badih Ghazi, Vineet Gupta, Ravi Kumar, and Pasin Manurangsi. Large-scale differentially private BERT. arXiv preprint arXiv:2108.01624, 2021.
|
| 174 |
+
|
| 175 |
+
Sid Black, Leo Gao, Phil Wang, Connor Leahy, and Stella Biderman. GPT-Neo: Large Scale Autoregressive Language Modeling with Mesh-Tensorflow, March 2021. URL https://doi.org/ 10.5281/zenodo.5297715. If you use this software, please cite it using these metadata.
|
| 176 |
+
|
| 177 |
+
Hannah Brown, Katherine Lee, Fatemehsadat Mireshghallah, Reza Shokri, and Florian Tramèr. What does it mean for a language model to preserve privacy?, 2022.
|
| 178 |
+
|
| 179 |
+
Nicholas Carlini, Chang Liu, Úlfar Erlingsson, Jernej Kos, and Dawn Song. The secret sharer: Evaluating and testing unintended memorization in neural networks. In USENIX Security Symposium, 2019.
|
| 180 |
+
|
| 181 |
+
Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, et al. Extracting training data from large language models. arXiv preprint arXiv:2012.07805, 2020.
|
| 182 |
+
|
| 183 |
+
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.
|
| 184 |
+
|
| 185 |
+
Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of cryptography conference, pages 265–284. Springer, 2006.
|
| 186 |
+
|
| 187 |
+
William Fedus, Barret Zoph, and Noam Shazeer. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. arXiv preprint arXiv:2101.03961, 2021.
|
| 188 |
+
|
| 189 |
+
Vitaly Feldman and Chiyuan Zhang. What neural networks memorize and why: Discovering the long tail via influence estimation. In Advances in Neural Information Processing Systems, 2020.
|
| 190 |
+
|
| 191 |
+
Matt Fredrikson, Somesh Jha, and Thomas Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22nd ACM SIGSAC conference on computer and communications security, pages 1322–1333, 2015.
|
| 192 |
+
|
| 193 |
+
Karan Ganju, Qi Wang, Wei Yang, Carl A Gunter, and Nikita Borisov. Property inference attacks on fully connected neural networks using permutation invariant representations. In Proceedings of the 2018 ACM SIGSAC conference on computer and communications security, pages 619–633, 2018.
|
| 194 |
+
|
| 195 |
+
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.
|
| 196 |
+
|
| 197 |
+
Peter Henderson, Koustuv Sinha, Nicolas Angelard-Gontier, Nan Rosemary Ke, Genevieve Fried, Ryan Lowe, and Joelle Pineau. Ethical challenges in data-driven dialogue systems. In Proceedings of the 2018 AAAI/ACM Conference on AI, Ethics, and Society, pages 123–129, 2018.
|
| 198 |
+
|
| 199 |
+
Matthew Jagielski, Jonathan Ullman, and Alina Oprea. Auditing differentially private machine learning: How private is private SGD? arXiv preprint arXiv:2006.07709, 2020.
|
| 200 |
+
|
| 201 |
+
Bargav Jayaraman and David Evans. Evaluating differentially private machine learning in practice. In 28th {USENIX} Security Symposium ({USENIX} Security 19), pages 1895–1912, 2019.
|
| 202 |
+
|
| 203 |
+
Nikhil Kandpal, Eric Wallace, and Colin Raffel. Deduplicating training data mitigates privacy risks in language models. arXiv preprint arXiv:2202.06539, 2022.
|
| 204 |
+
|
| 205 |
+
Katherine Lee, Daphne Ippolito, Andrew Nystrom, Chiyuan Zhang, Douglas Eck, Chris CallisonBurch, and Nicholas Carlini. Deduplicating training data makes language models better. CoRR, abs/2107.06499, 2021. URL https://arxiv.org/abs/2107.06499.
|
| 206 |
+
|
| 207 |
+
R. Thomas McCoy, Paul Smolensky, Tal Linzen, Jianfeng Gao, and Asli Celikyilmaz. How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVEN. CoRR, abs/2111.09509, 2021. URL https://arxiv.org/abs/2111.09509.
|
| 208 |
+
|
| 209 |
+
Milad Nasr, Shuang Song, Abhradeep Thakurta, Nicolas Papernot, and Nicholas Carlini. Adversary instantiation: Lower bounds for differentially private machine learning. arXiv preprint arXiv:2101.04535, 2021.
|
| 210 |
+
|
| 211 |
+
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67, 2020. URL http://jmlr.org/papers/v21/20-074.html.
|
| 212 |
+
|
| 213 |
+
Swaroop Ramaswamy, Om Thakkar, Rajiv Mathews, Galen Andrew, H Brendan McMahan, and Françoise Beaufays. Training production language models without memorizing user data. arXiv preprint arXiv:2009.10031, 2020.
|
| 214 |
+
|
| 215 |
+
Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. Membership inference attacks against machine learning models. In 2017 IEEE Symposium on Security and Privacy (SP), pages 3–18. IEEE, 2017.
|
| 216 |
+
|
| 217 |
+
Om Thakkar, Swaroop Ramaswamy, Rajiv Mathews, and Françoise Beaufays. Understanding unintended memorization in federated learning, 2020.
|
| 218 |
+
|
| 219 |
+
Aleena Thomas, David Ifeoluwa Adelani, Ali Davody, Aditya Mogadala, and Dietrich Klakow. Investigating the impact of pre-trained word embeddings on memorization in neural networks. In International Conference on Text, Speech, and Dialogue, pages 273–281. Springer, 2020.
|
| 220 |
+
|
| 221 |
+
Ben Wang and Aran Komatsuzaki. GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model. https://github.com/kingoflolz/mesh-transformer-jax, May 2021.
|
| 222 |
+
|
| 223 |
+
Samuel Yeom, Irene Giacomelli, Matt Fredrikson, and Somesh Jha. Privacy risk in machine learning: Analyzing the connection to overfitting. In 2018 IEEE 31st Computer Security Foundations Symposium (CSF), pages 268–282. IEEE, 2018.
|
| 224 |
+
|
| 225 |
+
Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. ICLR, 2017.
|
| 226 |
+
|
| 227 |
+
Chiyuan Zhang, Daphne Ippolito, Katherine Lee, Matthew Jagielski, Florian Tramèr, and Nicholas Carlini. Counterfactual memorization in neural language models. arXiv preprint arXiv:2112.12938, 2021.
|
| 228 |
+
|
| 229 |
+
Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022.
|
| 230 |
+
|
| 231 |
+
Albert Ziegler. GitHub Copilot: Parrot or crow? https://docs.github.com/en/github/copilot/researchrecitation, 2021.
|
| 232 |
+
|
| 233 |
+
# A IMPLEMENTATION DETAILS FOR DATASET CREATION
|
| 234 |
+
|
| 235 |
+
Intuitively speaking, it is straightforward to construct a dataset containing specifiable proportions of documents at various frequencies. We need only enumerate all sequences repeated various numbers of times, and then sample uniformly at random from each of these subsets. However in practice this is difficult to do, given the scale of these datasets: even asking the question “how many times is this sequence present in the training dataset” requires linear work for each query, and so repeating this thousands of times for an 800GB dataset would be infeasible.
|
| 236 |
+
|
| 237 |
+
To do this efficiently, we build on the work of Lee et al. (2021) and construct a suffix array over the training dataset. Such a data structure allows efficient queries to enumerate all sequences of length $k$ that are repeated between $N$ and $M$ times for any $N , M$ . This can be accomplished by a linear scan of the suffix array. As notation, write $i$ as the pointer into the dataset at a certain position $j$ of the suffix array (i.e., $A [ j ] = i$ ), $i ^ { \prime }$ as the index at position $j + N$ (so that $A [ j + N ] = i ^ { \prime } )$ , and $i ^ { \prime \prime }$ as the index at position $j + M$ (so that $A [ j + M ] ^ { - } = i ^ { \prime \prime }$ . Then, if $D [ i : i + k ] = D [ i ^ { \prime } : i ^ { \prime } + k ]$ but $D [ i : i + k ] \neq D [ i ^ { \prime \prime } : i ^ { \prime \prime } + k ]$ , the sequence $D [ k : i + k ]$ is guaranteed to appear between $N$ and $M$ times in the dataset. As a result, we can scan linearly through the suffix array and enumerate all values of j $j$ to efficiently find all potential sequences repeated between $\mathbf { N }$ and $\mathbf { M }$ times. From here, we then randomly sample 1,000 indices within these buckets to construct all of our sequences.
|
| 238 |
+
|
| 239 |
+
# B LONGER DOCUMENTS ARE NOT EASIER TO MEMORIZE THAN SHORTER DOCUMENTS
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
Figure 5: Longer sequences are not easier to extract. We compute the probability that an adversary can extract a sequence as a function of the number of tokens of context available, when varying the length of the sequences. All sequences are repeated the same number of times, and evaluated with the same 6B parameter model. Each line represents the fraction extractable in sequences of increasing lengths. Because all lines nearly perfectly overlap, longer sequences are not fundamentally “easier” to extract than shorter sequences.
|
| 243 |
+
|
| 244 |
+
Intuitively, one might think that longer sequences are more likely in the tail of the distribution, and if the model is trained to a low perplexity, then the tail of the distribution may be more likely to be memorized. This could lead our context length results to be exaggerated (as it would be difficult to untangle the tail effect of memorization from the context length effect). To check if sequence length plays a role in the amount of memorization we can extract with this method, we generated the next 50 tokens after the prompt for various sequence lengths and various prompt lengths. Figure 5 shows the fraction of extractable tokens in the next 50 tokens after the prompt. Each line on the figure represents a set of sequences with sequence lengths between 100 and 500 tokens. For each sequence length, we looked at prompt lengths from 50 tokens to (sequence length − 50) tokens. We do not see significant differences between the fraction of extractable tokens with varying prompt lengths across various sequence lengths.
|
| 245 |
+
|
| 246 |
+
Figure 6: Text examples that are memorized by the 6B model, but not by smaller models. Text highlighted in green matches the ground truth continuation, while text in red indicates incorrect (novel) generation.
|
| 247 |
+
|
| 248 |
+
<table><tr><td rowspan=1 colspan=1>Prompt</td><td rowspan=1 colspan=1>Continuation (= 6B)</td><td rowspan=1 colspan=1>2.7B</td><td rowspan=1 colspan=1>1.3B</td><td rowspan=1 colspan=1>125M</td></tr><tr><td rowspan=3 colspan=1>Gallery "Though defensive violencewill always be'a sad necessity' inthe eyes of men of principle,itwould be still more unfortunate ifwrongdoers should dominate justmen."- St. Augustine "A new idea isfirst</td><td rowspan=1 colspan=1>condemned as ridiculous,and thendismissedastrivial,untilfinallyit</td><td rowspan=3 colspan=1>condemned as ridiculous,and thendismissedasiialoegaccepted asthe most important thingin the world."- George BernardShaw"The ultimate measure of a manis not where he stands in moments ofcomfort and convenience,but where</td><td rowspan=2 colspan=1>tried in the mindof achild,and thenit istried in themind ofaman."- ThomasPaine "The only thingnecessary for the triumphof evil is for goodmen todo</td><td rowspan=3 colspan=1>and foremostaman'sdutytohis fellow man.It isa duty tobe a man of principle,andto bea man ofprincipleand tobeaman ofprinciple,andtobeamanofprinciple,and tobe</td></tr><tr><td rowspan=2 colspan=1>becomeswhat everybody knows."-William James "This is the real taskbeforeus:toreassertourcommitmentasanationtoalawhigherthanourown,</td></tr><tr><td rowspan=1 colspan=1>nothing."- Edmund Burke "</td></tr><tr><td rowspan=1 colspan=1>_GPL(crypto_unregister_alg);intcrypto_register_template(structcrypto_template *tmpl){structcrypto_template *q; int err =-EEXIST;</td><td rowspan=1 colspan=1>down_write(&cryptoalg_sem);list_for_each_entry(q,&cryptotemateistst{tmpl)</td><td rowspan=1 colspan=1>list_for_each_entry(q,&cryptoaglist,ist{i>name &&tmpl->name!= q->alg.cra_name)</td><td rowspan=1 colspan=1>q = kzaloc(sizeof(*q),GFP_KERNEL); if(!q)goto out; q->alg=tmpl->alg; q->base</td><td rowspan=1 colspan=1>structcrypto_template*tmpl=crypto_templatenew(tmpl);if(err)returnerr;tmpl->tmpl = q;tmpl->tmpl->tm</td></tr><tr><td rowspan=1 colspan=1>ions:before {content: "\f5eb";}.fa-discord:before {content:"\f392";}.fa-discourse:before{ content: "\f393</td><td rowspan=1 colspan=1>";}.fa-divide:before{content:"\f529";}.fa-dizzy:before{content:"\f567";}.fa-dna:before</td><td rowspan=1 colspan=1>";}.fa-digg:before{content:"\f391";}.fdochubbeore{ot:"\f394";}.fockeboe</td><td rowspan=1 colspan=1>;}.fa-dggbeore{ot:"\f96c";}.fa-dollar-sign:before{content:"f155";}.fa-digniter</td><td rowspan=1 colspan=1>";}.fa-discus:before{content:"\f394";}.f-drupal:before{content:"\f395";}.f-drupaldiscod</td></tr><tr><td rowspan=1 colspan=1>new users as an exploration tourand getting started guide, withexercises at the end of eachchapter. For more advanced traineesit can be a desktop reference,and acollection of the base knowledgeneeded to proceed with system andnetwork administration. This</td><td rowspan=1 colspan=1>book contains many real life examplesderivedfromtheauthor'sexperienceasa Linux systemand networkadministrator,trainerand consultant.They hope these examples will helpyoutogeta better understanding ofthe Linux systemand that you feelencouraged to tryoutthingson</td><td rowspan=1 colspan=1>bookisdesigned to give thereaderafirm understanding of thetechnologies needed to install andmanage Linux systems, using thevarous available tools and techniquesfor the task.The book begins with arapid-fire introduction to the basic principles of the Linux operating</td><td rowspan=1 colspan=1>is a good place to start foranew user. A: I wouldrecommendthe book&quot;LinuxNetworking" by David S.Itisavery goodbook forbeginners.A: Iwouldrecommend</td><td rowspan=1 colspan=1>isa great way to get startedwitha new project.A:Iwould suggest youto usethefollowing:Createanew project Create a newuser CreateanewuserCreateanew user Create</td></tr></table>
|
| 249 |
+
|
| 250 |
+
# C ALTERNATE EXPERIMENTAL SETTINGS
|
| 251 |
+
|
| 252 |
+
In this section, we study other strategies that we could have used to quantify memorization.
|
| 253 |
+
|
| 254 |
+
Random dataset sampling. In Section 4.4, we explored what would happen if we instead chose a truly random subset of the training data, where each sequence is sampled uniformly. Specifically, we randomly sample 100,000 sequences from The Pile dataset of length 100, 200, 500, and 1,000; prompt the model with the first $N - 5 0$ tokens; and then test for memorization by verifying if the model can emit the remaining 50 tokens perfectly. In our analysis in Figures 2a and 2b, we vary the size of the trained model and the context length we provide it to understand how these factors impact memorization—but this time through prompting the models with randomly sampled training sequences. As expected, the absolute probability of memorization is much lower than in Figure 1 where we prompted models with training data from the sampled duplication-normalized subset.
|
| 255 |
+
|
| 256 |
+
We observe similar trends with model scale and context length as in our other results. Larger models memorize more training examples than smaller models—and much more than the baseline GPT-2 model that was not trained on The Pile. Similarly, providing more context to a model increases the likelihood we can discover memorization. In Figure 2b, we prompt models with: prompt length $=$ sequence length − 50. We see that the longer prompts are easier to predict correctly than shorter prompts. The baseline GPT-2 model is nearly twice as accurate on sequences of length 1,000 (prompt length $= 9 5 0$ ) compared to sequences of length 100 (prompt length $= 5 0$ ).
|
| 257 |
+
|
| 258 |
+
Alternate definition of extractability. Our main experiments report a sequence as “extractable” if the model’s generated continuation is identical to the true suffix within that training example. This method is a loose lower bound on memorization. Consider two sequences $x _ { 1 }$ , $x _ { 2 }$ both contained in the training dataset. Suppose these two sequences share the same prefix, and differ only in the final suffix; that is, $x _ { 1 } = [ p | | s _ { 1 } ]$ and $x _ { 2 } = [ p | | s _ { 2 } ]$ . When we select $x _ { 1 }$ and prompt the model on the prefix $p$ , we will report “success” only if the output equals $s _ { 1 }$ , but not if the output is $s _ { 2 }$ , even though this is also a form of memorization.
|
| 259 |
+
|
| 260 |
+
We now consider how our results would change if we instead checked that the generation $[ p | | f ( p ) ]$ from a prompt $p$ was contained anywhere in the training dataset. This gives a strictly larger measurement of memorization. By comparing these two methods (checking for memorization within the ground truth continuation, and within the entire dataset), we can understand how the choice of measurement affects the results in our experiments.
|
| 261 |
+
|
| 262 |
+
Searching within the entire dataset finds more memorized content than comparing with the ground truth (Figure 2c). For examples at 100 repetitions $3 2 . 6 \%$ of outputs are contained somewhere in the dataset but just $1 5 . 8 \%$ match the ground truth continuation. This difference becomes more pronounced as the number of repetitions increases. The maximum difference between these approaches is $2 8 . 4 \%$ , at 2,200 repetitions.
|
| 263 |
+
|
| 264 |
+
We refrain from using this approach for our main experiments, because this definition requires vastly larger computation resources; it requires querying whether hundreds of thousands of sequences are contained in an 800GB training dataset. Therefore, to promote reproducability, the remainder of this paper continues with testing the generated suffix against the single expected training suffix.
|
| 265 |
+
|
| 266 |
+
# D TEXT MEMORIZED BY ONLY SOME MODELS
|
| 267 |
+
|
| 268 |
+
Table 1: The number of sequences memorized by one model, and not memorized by another.
|
| 269 |
+
|
| 270 |
+
<table><tr><td></td><td></td><td colspan="4">Not Memorized By</td></tr><tr><td>Model</td><td>Memorized</td><td>125M</td><td>1.3B</td><td>2.7B</td><td>6B</td></tr><tr><td>125M</td><td>4,812</td><td>=</td><td>328</td><td>295</td><td>293</td></tr><tr><td>1.3B</td><td>10,391</td><td>5,907</td><td>=</td><td>1,205</td><td>1,001</td></tr><tr><td>2.7B</td><td>12,148</td><td>7,631</td><td>2.962</td><td></td><td>1,426</td></tr><tr><td>6B</td><td>14,792</td><td>10,273</td><td>5,402</td><td>4,070</td><td>-</td></tr></table>
|
| 271 |
+
|
| 272 |
+
Table 1 shows the total number of sequences that are memorized by one model but not another. Larger models have more uniquely memorized sequences, although every model has some memorization not shared by any other model. (Even the 125M model memorizes a few sequences that the 6B model does not.)
|
| 273 |
+
|
| 274 |
+
# E MEMORIZATION IN OPT MODELS
|
| 275 |
+
|
| 276 |
+

|
| 277 |
+
Figure 7: We prompt OPT models with data sampled from their training set. We use a prompt length of 100 here. (a) Fraction of sequences extracted as a function of model scale. (b) Fraction of sequences extracted as the number of repetitions of that sequence in the training set increases.
|
| 278 |
+
|
| 279 |
+
# F EXAMPLES OF MEMORIZED TEXTS
|
| 280 |
+
|
| 281 |
+
We show examples of texts that are memorized by different models. We consider the case of 50-token prompts and 50-token generation. We sample texts with various number of repetitions in the training data. It is impossible to inspect all the generated examples, so we random sample examples satisfying a certain criterion and show a few interesting ones in the paper. Figure 8 lists examples that are memorized by models of all sizes, in the sense that the 50-token generations match the groundtruth continuations of the prompts.
|
| 282 |
+
|
| 283 |
+

|
| 284 |
+
Figure 8: Text examples that are memorized by all the models: given 50-token prompts on the left, the next 50 tokens generated by all the models match the groundtruth continuation.
|
| 285 |
+
|
| 286 |
+
Figure 9 lists examples that are memorized by the 6B model but not by smaller ones. Specifically, the 50-token generations of the 6B model match the groundtruth continuations exactly, but the generations from the smaller models match neither the groundtruth continuations of the prompted examples nor any other training examples with the same prompts. We find that when smaller models do not get the groundtruth continuation right, they are generally still able to stick to similar topics. However, in many cases, the texts generated by the smaller models are only syntactically sound, but semantically incorrect. Figure 10 and Figure 11 show more examples.
|
| 287 |
+
|
| 288 |
+
In Figure 12 we show examples that are only memorized by the smallest model, using similar criterion as when we filter examples that are only memorized by the largest model. There are significantly fewer number of examples that are only memorized by the smallest model (35) than that of the largest model (2860). One of those examples (the first row of Figure 12) is particularly interesting: the groundtruth continuation contains a typo due to formatting cutoff. While the smallest model memorized the typo, larger models try to fix the typo.
|
| 289 |
+
|
| 290 |
+
In Figure 13 and Figure 14 we show examples that are memorized but not heavily duplicated in the training set, and examples that are heavily duplicated but not memorized, respectively. Finally, we show examples that are memorized by GPT2-XL in Figure 15.
|
| 291 |
+
|
| 292 |
+

|
| 293 |
+
Figure 9: Text examples that are memorized by the 6B model (according to true-continuation match), but not memorized by smaller models (the generated texts do not match the true continuation, nor any other training examples). The first column shows the prompt. The second column shows the prediction from the 6B model, which matches the groundtruth continuation exactly. The remaining columns shows predictions from smaller models.
|
| 294 |
+
|
| 295 |
+

|
| 296 |
+
Figure 10: Continuation of Figure 9.
|
| 297 |
+
|
| 298 |
+

|
| 299 |
+
Figure 11: Continuation of Figure 9.
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
Figure 12: Text examples that are memorized by the $1 2 5 \mathbf { M }$ model (according to true-continuation match), but not memorized by larger models (the generated texts do not match the true continuation, nor any other training examples). The first column shows the prompt. The last column shows the prediction from the 125M model, which matches the groundtruth continuation exactly.
|
| 303 |
+
|
| 304 |
+
Figure 13: Text examples that are memorized but are not heavily duplicated in the training set. Many of these have a simple sequential structure (the middle three), may be boilerplate code (the first), or starts out with unique text, and completes with frequently repeated text (the last example). Overall, these are easily completed sequences.
|
| 305 |
+
|
| 306 |
+
<table><tr><td rowspan=1 colspan=1>Frequency</td><td rowspan=1 colspan=1> Prompt</td><td rowspan=1 colspan=1>Continuation ( == 6B)</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>L_LONG_LONG*/__STL_TEMPLATE_NULL struCt_type_traits<float>{typedef_true_typehas_trivial_default_</td><td rowspan=1 colspan=1>constructor; typedef__true_type has_trivial_copy_constructor;typedef__true_type has_trivial_assignment_operator;</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>"groupby4_map","groupby4_map_skew","groupby4_noskew","groupby5",</td><td rowspan=1 colspan=1>"groupby5_map","groupby5_map_skew","groupby5_noskew","groupby6",</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>pair<K12>(_12),fusion:make_pair<K13>(13),fusion:make_pair<K14>(14),fusion:makepair<K15>(5));</td><td rowspan=1 colspan=1>J namespace result_of{template<typename K0,typename K1,typenameK</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>_GLSL_400))list += QLatin1String("dmat2"); if (variant&(Lexer:Variant_GLSL_40O)) ist+= QLatin</td><td rowspan=1 colspan=1>1String("dmat3"); f (variant & (Lexer:Variant_GLSL_40o))list +=QLatin1String("dmat4"); if (variant&(</td></tr><tr><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>disabled.BCG.com will work better for you if you enableJavaScript or switch to a JavaScript supported browser.Boston Consulting Group is an Equal Opportunity Employer.All qualified applicants will receive consideration foremployment without regard to race,color,</td><td rowspan=1 colspan=1>age,religion,sex,xualentationgederdiy/expressionioalginoectedeatothercharacteristic protected under federal,stateor local law,whereapplicable,and those with criminal histories will beconsidered ina manner consistent with</td></tr></table>
|
| 307 |
+
|
| 308 |
+
Figure 14: Text examples that are heavily replicated in the training set but not memorized. We find many examples which have slight differences with no semantic (English) meaning. This includes comment characters in code, non-English characters, template values, error messages, and meaningless symbols. We also surprisingly find a large number of slightly different but heavily repeated documents about dumpsters.
|
| 309 |
+
|
| 310 |
+
<table><tr><td rowspan=1 colspan=1>Frequency</td><td rowspan=1 colspan=1>Prompt</td><td rowspan=1 colspan=1>Continuation</td><td rowspan=1 colspan=1>6B</td></tr><tr><td rowspan=1 colspan=1>5526</td><td rowspan=1 colspan=1>contributors.All rights reserved./// Licensedunder the Apache License,Version 2.0 (the"License");//you may not usethisfile exceptin compliance with the License.// You mayobtain a copy of the</td><td rowspan=1 colspan=1>License at //http://www.apache.org/licenses/LICENSE-2.0/// Unless requiredby applicable law or agreed to in writing,software // distributed under the License isdistributed on an "AS</td><td rowspan=1 colspan=1>Licenseat////http://www.apache.org/licenses/LICENSE-2.0///Unlessrequiredbyapplicablelaworagreedto inwriting,software//distributedunderthe License</td></tr><tr><td rowspan=1 colspan=1>5652</td><td rowspan=1 colspan=1>ators are Standing By Our Dumpster Specialistsare waiting by the phone to help you getstarted. However, there is some importantinformation we need before we can give you aprice quote and delivery time.Some things weneed to know</td><td rowspan=1 colspan=1>: What size dumpster you will need Whatyou plan on puting in your dumpster Whenyou need us to drop your roll off containeroff How long you plan on keeping your roll-off City &</td><td rowspan=1 colspan=1>include:What size dumpster do you need?What type of waste do you have?How much wastedo you have?What is the delivery time?What isthepickup'time?What</td></tr><tr><td rowspan=1 colspan=1>4323</td><td rowspan=1 colspan=1>a copy ofthe License at ## http:/lwww.apache.org/licenses/LICENSE-2.0 ##Unless required by applicable law</td><td rowspan=1 colspan=1>or agreed to in writing,software #distributed under the License is distributedon an "AS IS" BASIS,WITHOUT #WARRANTIES OR CONDITIONS OF ANYKIND,either express or implied. See</td><td rowspan=1 colspan=1>oragreed to in writing,software #distributed underthe License is distributed onan "AS IS"BASIS,#VWITHOUT WARRANTIES OR CONDITIONS OFANY KIND,either express or implied.</td></tr><tr><td rowspan=1 colspan=1>3556</td><td rowspan=1 colspan=1>date_default_timezone_set() function.In caseyou used any of those methods and you arestill geting this warning,you most likelymisspelled the timezone identifier. We selectedthe timezone 'UTC' for now,but please</td><td rowspan=1 colspan=1>setdate.timezone to select your timezone.in/home/erlypro/public_html/natural/datas/persobanner_center.php on line 17Deprecated: Function eregi_replace</td><td rowspan=1 colspan=1>setdate.timezone toselect your timezone.in/home/notes/public_html/wp-includes/functions.phponline3812Warning:date()[functiondatel:Itisnotsafe to rely</td></tr><tr><td rowspan=2 colspan=1>3920</td><td rowspan=2 colspan=1>|&nbsp;&nbsp;[手把手翻墙教程]https://github.com/gfw-breaker/guides/wiki) &nbsp;&</td><td rowspan=1 colspan=1>nbsp;l&nbsp;&nbsp;[禁闻聚合安卓版](https://github.com/gfw-breaker/bn-android)</td><td rowspan=2 colspan=1>nbsp;[网门安卓版](https://github.com/gfw-breaker/webpack-interpreter)&nbsp;&nbsp;[神州正道</td></tr><tr><td rowspan=1 colspan=1>&nbsp;&n</td></tr><tr><td rowspan=1 colspan=1>3675</td><td rowspan=1 colspan=1>*/_II\\)11*</td><td rowspan=1 colspan=1>=(_-_-_△</td><td rowspan=1 colspan=1>I(_ILI1_11*</td></tr><tr><td rowspan=1 colspan=1>3030</td><td rowspan=1 colspan=1>1775,"date": "1775\u20131851","displayOrder":1,"fc": "Joseph Mallord William</td><td rowspan=1 colspan=1>Turner","gender":"Male","id":558,"mda":"Turner,Joseph Mallord William",</td><td rowspan=1 colspan=1>Turner","gender":"Male","id":604,"mda": "Turner,Joseph MallordWilliam",</td></tr></table>
|
| 311 |
+
|
| 312 |
+
Figure 15: Text examples that are from The Pile and memorized by GPT2-XL. The first two examples have a natural sequential structure, while the others appear to represent an overlap in GPT2-XL’s training set and The Pile.
|
| 313 |
+
|
| 314 |
+
<table><tr><td rowspan=1 colspan=1> Prompt</td><td rowspan=1 colspan=1>Continuation (== GPT2-XL)</td></tr><tr><td rowspan=1 colspan=1>165.00 $175.00 $180.00 $185.00 $190.00 $195.00 $200.00$210.00 $220.00 $230.00 $240.00 $250.00 $260.</td><td rowspan=1 colspan=1>00 $270.00 $280.00 $290.00 $300.00 $310.00 $320.00$330.00 $340.00 $350.00 $360.00 $370.00 $380.00 $</td></tr><tr><td rowspan=1 colspan=1>ISRC3DEC2,ARIZONA_ISRC3DEC2MIX_INPUT_1_SOURCE);ARIZONA_MUX_ENUMS(ISRC3DEC3,ARIZONA_</td><td rowspan=1 colspan=1>ISRC3DEC3MIX_INPUT_1_SOURCE);ARIZONA_MUX_ENUMS(ISRC3DEC4,ARIZONA_ISRC3DEC4MIX_INPUT</td></tr><tr><td rowspan=1 colspan=1>the councils of government,we must guard against theacquisition of unwarranted influence,whether sought orunsought,by the militaryindustrial complex.The potentialfor the disastrous rise of misplaced power exists and willpersist.We must never let the weight</td><td rowspan=1 colspan=1>of this combination endanger our liberties or democraticprocesses.Weshould take nothing forgranted.Onlyanalertand knowledgeable citizenrycan compel the propermeshing of the huge industrial and military machinery ofdefense with our peaceful methods and goals,so thatsecurityand</td></tr><tr><td rowspan=1 colspan=1>full spreadsheet NEW! Buy our book·Facts are Sacred: the power of data (on Kindle) More open data Data journalismand data visualisations from the Guardian World government data ·Search the</td><td rowspan=1 colspan=1>world's government data with our gateway Developmentand aid data·Search the world's global development datawith our gateway Can you do something with this data?·Flickr Please post your visualisations and mash-ups on</td></tr><tr><td rowspan=1 colspan=1>Original press release Get ahead of the crowd by signing upfor 420 Investor,the largest& most comprehensivepremium subscription service for cannabis traders andinvestors since 2013.Published by NCV Newswire The NCVNewswire</td><td rowspan=2 colspan=1>by New Cannabis Venturesaims to curate high qualitycontent and information about leading cannabis companiesto help our readers flterout the noiseand to stay on top ofthe most important cannabis business news.The NCVNewswire is hand-curated byas long the source and copyright are acknowledgedtogetherwithahyperlinktotheoriginalGlobalResearcharticle.For publication of Global Research articles in printor other forms including commercial internet sites,contact:[email protected]www.globalresearch.ca</td></tr><tr><td rowspan=1 colspan=1>of sole responsibility of the author(s).The Centre forResearch on Globalization will not be responsible for any inaccurate or incorrect statement in this article.The Centreof Research on Globalization grants permission to cross- post Global Research articles on community internet sites</td></tr></table>
|
parse/dev/TatRHT_1cK/TatRHT_1cK_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/TatRHT_1cK/TatRHT_1cK_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/TatRHT_1cK/TatRHT_1cK_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/TntbHxxGd6j/TntbHxxGd6j_content_list.json
ADDED
|
@@ -0,0 +1,1876 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "OUTPUT DISTRIBUTION OVER THE ENTIRE INPUT SPACE: A NOVEL PERSPECTIVE TO UNDERSTAND NEURAL NETWORKS ",
|
| 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 |
+
184,
|
| 19 |
+
195,
|
| 20 |
+
400,
|
| 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": "Understanding the input-output mapping relationship in the entire input space contributes a novel perspective to a comprehensive understanding of deep neural networks. In this paper, we focus on binary neural classifiers and propose to first uncover the histogram about the number of inputs that are mapped to certain output values and then scrutinize the representative inputs from a certain output range of interest, such as the positive-logit region that corresponds to one of the classes. A straightforward solution is uniform sampling (or exhaustive enumeration) in the entire input space but when the inputs are high dimensional, it can take almost forever to converge. We connect the output histogram to the density of states in physics by making an analogy between the energy of a system and the neural network output. Inspired by the Wang-Landau algorithm designed for sampling the density of states, we propose an efficient sampler that is driven to explore the under-explored output values through a gradient-based proposal. Compared with the random proposal in Wang-Landau algorithm, our gradientbased proposal converges faster as it can propose the inputs corresponding to the under-explored output values. Extensive experiments have verified the accuracy of the histogram generated by our sampler and also demonstrated interesting findings. For example, the models map many human unrecognizable images to very negative logit values. These properties of a neural model are revealed for the first time through our sampled statistics. We believe that our approach opens a new gate for neural model evaluation and shall be further explored in future works. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
296,
|
| 43 |
+
764,
|
| 44 |
+
588
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
627,
|
| 55 |
+
336,
|
| 56 |
+
643
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Understanding the input-output mapping relationship in the entire input space contributes a novel perspective to a comprehensive understanding of deep neural networks. Existing methods approximate such mapping relations through the evaluation on a certain subset of the entire input space, such as measuring the accuracy on in-distribution test sets Dosovitskiy et al. (2021); Tolstikhin et al. (2021); Steiner et al. (2021); Chen et al. (2021); Zhuang et al. (2022); He et al. (2015), out-ofdistribution (OOD) test sets (Liu et al., 2020; Hendrycks & Gimpel, 2016; Hendrycks et al., 2019; Hsu et al., 2020; Lee et al., 2017; 2018), and adversarial test sets Szegedy et al. (2013); Rozsa et al. (2016); Miyato et al. (2018); Kurakin et al. (2016). However, none of the existing evaluations can offer a comprehensive understanding that covers the entire input space, including all kinds of inputs mentioned above and even those human unrecognizable inputs as shown in Fig 1a. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
662,
|
| 66 |
+
825,
|
| 67 |
+
803
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "As a pilot study, we focus on binary classification — given a trained binary classifier, we aim to uncover a histogram that counts how many samples in the entire input space are mapped to certain logit values, i.e., the distribution of the output values, as shown in Fig 1b. A straightforward solution is uniform sampling (or exhaustive enumeration) in the entire input space but when the inputs are high dimensional, it can take almost forever to converge. Therefore, it calls for a novel efficient sampling method over a neural model’s output space. Note that, as a side product of the sampling procedure, one can expect that this histogram also offers fine-grained information such as some representative input samples corresponding to a certain range of output values. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
809,
|
| 77 |
+
823,
|
| 78 |
+
921
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/29ec5d1242f09bc8849324efbf60a3490ac355a746485b26678407d230c3dadb.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: Input types and the example output histogram when the task is binary classification between digits 0 and 1. The entire input space covers all possible gray-scale images of the same shape. y is the output (logit) of input $\\mathbf { X }$ . "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
173,
|
| 91 |
+
99,
|
| 92 |
+
826,
|
| 93 |
+
247
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 1
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "We connect the output histogram problem to the density of states (DOS) problem in physics by making an analogy between the system energy and neural network output, as shown in the right figure. If one follows the physics language to describe our problem, the input $\\mathbf { x }$ to the neural network can be viewed as the configuration $\\mathbf { x }$ of the system; the neural network output (e.g., logit values in binary classifier) $y ( \\mathbf { x } )$ corresponds to the energy function $E ( \\mathbf { x } )$ ; the desired output histogram can be obtained through the DOS (a.k.a., the entropy, $S ( E ( \\mathbf { x } ) { \\bar { ) } }$ , the log scale of DOS), which is the count of the configurations given the energy value. Note that the density of states by definition is over the entire input space, which aligns perfectly with our objective. ",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
332,
|
| 103 |
+
678,
|
| 104 |
+
470
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "image",
|
| 110 |
+
"img_path": "images/ad5a7aeb42a570ca2f9b842f8a6e68d599dbba1e4e3359f8c99a0d5fe36c7fcc.jpg",
|
| 111 |
+
"image_caption": [],
|
| 112 |
+
"image_footnote": [],
|
| 113 |
+
"bbox": [
|
| 114 |
+
694,
|
| 115 |
+
335,
|
| 116 |
+
816,
|
| 117 |
+
468
|
| 118 |
+
],
|
| 119 |
+
"page_idx": 1
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"type": "text",
|
| 123 |
+
"text": "Inspired by the Wang-Landau algorithm (Wang & Landau, 2001) designed for density of states, we propose an efficient sampler that is driven to explore the under-explored output values through a gradient-based proposal. If the binary classifier is well-trained, it is reasonable to believe that in-distribution inputs (images) which usually have certain semantic structures are concentrated in certain output ranges. If one follows the random proposal in the Wang-Landau algorithm, it is difficult to propose the inputs with meaningful structure (or even in-distribution inputs), thus possibly preventing the sampler from exploring the corresponding output values. Thus, we propose to apply a gradient-based proposal called Gibbs-with-Gradients (GWG) (Grathwohl et al., 2021) which proves to be efficient to propose in-distribution inputs for a trained model. ",
|
| 124 |
+
"bbox": [
|
| 125 |
+
174,
|
| 126 |
+
478,
|
| 127 |
+
825,
|
| 128 |
+
603
|
| 129 |
+
],
|
| 130 |
+
"page_idx": 1
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"type": "text",
|
| 134 |
+
"text": "With the help of this new sampler, we can reveal some new understanding of the models for the entire input space. First, in our experiments on a real-world dataset, the dominant output values are very negative and correspond to the human-unrecognizable inputs. This indicates the models may map an overwhelmingly large number of unrecognizable images to the overconfident prediction probabilities. Second, we can derive the relative difference between the dominant peak of output values and the other output values, especially those where the in-distribution inputs correspond to. The output values where the in-distribution inputs correspond to are also dominated by the humanunrecognizable inputs. This result presents significant challenges to the OOD detection problems. Third, we observe a clear trend of the representative samples in a CNN model and speculate it simply utilizes the background to predict the labels of the digits. ",
|
| 135 |
+
"bbox": [
|
| 136 |
+
174,
|
| 137 |
+
611,
|
| 138 |
+
825,
|
| 139 |
+
750
|
| 140 |
+
],
|
| 141 |
+
"page_idx": 1
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"type": "text",
|
| 145 |
+
"text": "Our contributions are summarized as follows. ",
|
| 146 |
+
"bbox": [
|
| 147 |
+
174,
|
| 148 |
+
756,
|
| 149 |
+
472,
|
| 150 |
+
770
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "• We work on the challenging problem to uncover the output distribution over the entire input space. Such output distributions offer a novel perspective to understand deep neural networks. • We connect this output distribution problem to the density of states problem in physic and successfully tailor Wang-Landau algorithm using a gradient-based proposal, which is a must-have component to sample the entire output space as much as possible, improving the efficiency. • We conduct extensive experiments on toy and real-world datasets based on CNN and ResNet-18 to confirm the correctness of our proposed sampler and discover novel and interesting findings. ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
174,
|
| 159 |
+
777,
|
| 160 |
+
825,
|
| 161 |
+
875
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "We believe that our approach opens a new gate for neural model evaluation and shall be further explored in future works. For example, one can can utilize our sampler to estimate the intrinsic ratio of in-distribution samples given a range of interest with human evaluation as shown in Sec. 5.3. ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
174,
|
| 170 |
+
882,
|
| 171 |
+
825,
|
| 172 |
+
924
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "2 PROBLEM DEFINITION ",
|
| 179 |
+
"text_level": 1,
|
| 180 |
+
"bbox": [
|
| 181 |
+
174,
|
| 182 |
+
102,
|
| 183 |
+
390,
|
| 184 |
+
118
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 2
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "In the traditional setting, binary neural classifiers model the class distribution through logit $z$ . A neural classifier parameterized by $\\theta$ learns $p _ { \\theta } ( z | \\mathbf { x } ) = \\delta ( z - y _ { \\theta } ( \\mathbf { x } ) )$ through a function $y _ { \\theta } : \\mathbf { x } z \\in$ $\\mathbb { R }$ , where $\\mathbf { x } \\in \\Omega$ , $\\Omega \\subseteq \\{ 0 , . . . , N \\} ^ { D }$ for images, and $\\delta$ is the Dirac delta function. $\\Omega$ is aligned with Gibbs-With-Gradient’s setting to be discrete. ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
173,
|
| 193 |
+
132,
|
| 194 |
+
825,
|
| 195 |
+
189
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 2
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "What the above model does not define is the distribution of the data $\\mathbf { x }$ . This paper aims to obtain the output value distribution of binary classifiers in the entire input space: $\\Omega \\doteq \\dot { \\{ 0 , . . . , N \\} } ^ { D }$ . Here we assume that the data distribution $p ( \\mathbf { x } )$ follows the uniform distribution over the domain $\\Omega$ of $\\mathbf { x }$ and denote its measure by $\\mu$ . We define the joint distribution ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
173,
|
| 204 |
+
195,
|
| 205 |
+
825,
|
| 206 |
+
252
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "equation",
|
| 212 |
+
"img_path": "images/8cda377b4319d2958baf932e0d698f57240311b130c7671ed50e4ec4447ac5c9.jpg",
|
| 213 |
+
"text": "$$\np _ { \\theta } ( z , \\mathbf { x } ) = p _ { \\theta } ( z | \\mathbf { x } ) \\mu ( \\mathbf { x } )\n$$",
|
| 214 |
+
"text_format": "latex",
|
| 215 |
+
"bbox": [
|
| 216 |
+
416,
|
| 217 |
+
257,
|
| 218 |
+
580,
|
| 219 |
+
275
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 2
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "Our goal is only the logit (output) distribution. We marginalize the above joint distribution to define the density given the logit $z$ : ",
|
| 226 |
+
"bbox": [
|
| 227 |
+
174,
|
| 228 |
+
286,
|
| 229 |
+
823,
|
| 230 |
+
315
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 2
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "equation",
|
| 236 |
+
"img_path": "images/4d97f2c2f096b6f20e6d971cf1201b2fa8857671e277c8bc34829d1f66a95a8c.jpg",
|
| 237 |
+
"text": "$$\np _ { \\theta } ( z ) = \\sum _ { \\Omega } p _ { \\theta } ( z | \\mathbf { x } ) \\mu ( \\mathbf { x } ) = \\sum _ { \\mathbf { x } \\in \\Omega } \\delta ( z - y _ { \\theta } ( \\mathbf { x } ) )\n$$",
|
| 238 |
+
"text_format": "latex",
|
| 239 |
+
"bbox": [
|
| 240 |
+
343,
|
| 241 |
+
320,
|
| 242 |
+
653,
|
| 243 |
+
354
|
| 244 |
+
],
|
| 245 |
+
"page_idx": 2
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"text": "To sample from the distribution $p _ { \\theta } ( z )$ , we can first sample $\\mathbf { x } _ { i } \\sim \\mathrm { U n i f o r m } ( \\Omega )$ , then condition on the sampled $\\mathbf { x } _ { i }$ , sample $z _ { i } \\sim p _ { \\theta } ( z | \\mathbf { x } _ { i } )$ . While uniform sampler in principle can resolve our problem, it takes almost forever to converge. ",
|
| 250 |
+
"bbox": [
|
| 251 |
+
174,
|
| 252 |
+
359,
|
| 253 |
+
825,
|
| 254 |
+
404
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 2
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "3 METHOD ",
|
| 261 |
+
"text_level": 1,
|
| 262 |
+
"bbox": [
|
| 263 |
+
174,
|
| 264 |
+
422,
|
| 265 |
+
282,
|
| 266 |
+
438
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 2
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "text",
|
| 272 |
+
"text": "In this section, we first discuss the connection between our problem to density of states (DOS), introduce both Wang-Landau algorithm and Gibbs-with-Gradient as background, and present our new sampler Gradient-Wang-Landau algorithm. ",
|
| 273 |
+
"bbox": [
|
| 274 |
+
174,
|
| 275 |
+
453,
|
| 276 |
+
825,
|
| 277 |
+
497
|
| 278 |
+
],
|
| 279 |
+
"page_idx": 2
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"type": "text",
|
| 283 |
+
"text": "3.1 CONNECTION TO DENSITY OF STATES (DOS) IN PHYSICS ",
|
| 284 |
+
"text_level": 1,
|
| 285 |
+
"bbox": [
|
| 286 |
+
174,
|
| 287 |
+
512,
|
| 288 |
+
614,
|
| 289 |
+
527
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 2
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "In statistical physics, given the energy function $E : \\mathbf { x } \\mathcal { E } \\in \\mathbb { R }$ , the DOS $\\rho ( \\mathcal { E } )$ is defined as ",
|
| 296 |
+
"bbox": [
|
| 297 |
+
168,
|
| 298 |
+
537,
|
| 299 |
+
777,
|
| 300 |
+
554
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 2
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "equation",
|
| 306 |
+
"img_path": "images/546328d62bee1475970760535c3aa9834edeed7e45686bd3d701a8c370a6fe68.jpg",
|
| 307 |
+
"text": "$$\n\\rho ( \\mathcal { E } ) = \\sum _ { \\mathbf { x } \\in \\Omega } \\delta ( \\mathcal { E } - E ( \\mathbf { x } ) )\n$$",
|
| 308 |
+
"text_format": "latex",
|
| 309 |
+
"bbox": [
|
| 310 |
+
413,
|
| 311 |
+
558,
|
| 312 |
+
584,
|
| 313 |
+
593
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 2
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "where $\\delta$ is the Dirac delta function and $\\Omega$ is the domain of $\\mathbf { x }$ where $\\mathbf { x }$ is valid. The DOS is treated as a probability distribution in the energy space, whose log-probability is defined as the entropy $S$ : ",
|
| 320 |
+
"bbox": [
|
| 321 |
+
173,
|
| 322 |
+
597,
|
| 323 |
+
826,
|
| 324 |
+
626
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "equation",
|
| 330 |
+
"img_path": "images/7751010ef8ce91f63b057ece1e72e8ddbcd2a2b7533cbd43043ab3e970c287e9.jpg",
|
| 331 |
+
"text": "$$\n\\rho ( \\mathcal { E } ) = \\exp ( S ( \\mathcal { E } ) )\n$$",
|
| 332 |
+
"text_format": "latex",
|
| 333 |
+
"bbox": [
|
| 334 |
+
434,
|
| 335 |
+
631,
|
| 336 |
+
562,
|
| 337 |
+
648
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 2
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "Boltzmann constant is assumed to be 1 in our setting. DOS is meaningful because many physical quantities depend on energy or its integration but not the specific input $\\mathbf { x }$ . ",
|
| 344 |
+
"bbox": [
|
| 345 |
+
169,
|
| 346 |
+
654,
|
| 347 |
+
823,
|
| 348 |
+
683
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 2
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "We connect the output histogram to DOS in physics by making an analogy between the system energy $\\mathcal { E } = E ( \\mathbf { x } )$ and neural network output $z = y ( \\mathbf { x } )$ . This connection is based on the observation that the energy function in physics maps an input configuration to a scalar-valued energy; similarly, a binary neural classifier maps an image to a logit. Both the logit and energy are treated as the direct output of the mapping. Other quantities, such as the loss, are derived from the output. The desired output histogram can be obtained similarly through sampling the DOS (a.k.a., the entropy $S ( E ( \\mathbf { x } ) )$ or $\\bar { S } ( y ( { \\bf x } ) )$ in the log scale) which is the count of the configurations given the energy value. The output histogram and DOS are defined in the entire input space. ",
|
| 355 |
+
"bbox": [
|
| 356 |
+
173,
|
| 357 |
+
688,
|
| 358 |
+
825,
|
| 359 |
+
801
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 2
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "3.2 WANG-LANDAU ALGORITHM AND GIBBS-WITH-GRADIENT ",
|
| 366 |
+
"text_level": 1,
|
| 367 |
+
"bbox": [
|
| 368 |
+
173,
|
| 369 |
+
815,
|
| 370 |
+
629,
|
| 371 |
+
832
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 2
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "Wang-Landau algorithm is a Markov chain Monte Carlo sampler that samples DOS. Since the true distribution $\\rho ( \\mathcal { E } )$ is what we are interested in sampling but its formula/model is unknown, we need to approximate it. The Wang-Landau algorithm uses a histogram to store the current estimation $\\tilde { S }$ . It improves the sampling efficiency by sampling the inverted distribution: ",
|
| 378 |
+
"bbox": [
|
| 379 |
+
173,
|
| 380 |
+
842,
|
| 381 |
+
825,
|
| 382 |
+
901
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 2
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "equation",
|
| 388 |
+
"img_path": "images/115dcc95d101a8d7496740de4da467a508b3eb0e197d17daef448a8be69d2916.jpg",
|
| 389 |
+
"text": "$$\np ( \\mathbf { x } ) \\propto \\exp ( - \\tilde { S } ( E ( \\mathbf { x } ) ) )\n$$",
|
| 390 |
+
"text_format": "latex",
|
| 391 |
+
"bbox": [
|
| 392 |
+
415,
|
| 393 |
+
905,
|
| 394 |
+
581,
|
| 395 |
+
925
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 2
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "text",
|
| 401 |
+
"text": "By sampling $p ( \\mathbf { x } )$ , we can get an ensemble of $\\mathcal { E }$ via $E ( \\cdot )$ whose probability distribution is: ",
|
| 402 |
+
"bbox": [
|
| 403 |
+
169,
|
| 404 |
+
102,
|
| 405 |
+
766,
|
| 406 |
+
119
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "equation",
|
| 412 |
+
"img_path": "images/2926a6d93cecd4732fede8730e48ee4967de16040ee9e8d63f94df0554166535.jpg",
|
| 413 |
+
"text": "$$\n\\pi ( \\mathcal { E } ) = \\sum _ { \\mathbf { x } \\sim p ( \\mathbf { x } ) } \\delta ( \\mathcal { E } - E ( \\mathbf { x } ) )\n$$",
|
| 414 |
+
"text_format": "latex",
|
| 415 |
+
"bbox": [
|
| 416 |
+
403,
|
| 417 |
+
128,
|
| 418 |
+
594,
|
| 419 |
+
166
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 3
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"text": "When $\\tilde { S } ( \\mathcal { E } )$ approaches $S ( \\mathcal { E } )$ , the energy distribution $\\pi ( \\mathcal { E } )$ approaches to $\\mathcal { E }$ -independent constant for all the accessible energy $\\mathcal { E }$ . ",
|
| 426 |
+
"bbox": [
|
| 427 |
+
173,
|
| 428 |
+
179,
|
| 429 |
+
825,
|
| 430 |
+
209
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 3
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "text",
|
| 436 |
+
"text": "Gibbs-With-Gradient (GWG) is used for energy-based models (EBM) by sampling ",
|
| 437 |
+
"bbox": [
|
| 438 |
+
179,
|
| 439 |
+
214,
|
| 440 |
+
735,
|
| 441 |
+
229
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 3
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "equation",
|
| 447 |
+
"img_path": "images/49901da0b3bf7607159dfd7b5e8d7ce036c83431dc9e1743c2cf58fc1c2036dc.jpg",
|
| 448 |
+
"text": "$$\n\\log p ( \\mathbf { x } ) = f ( \\mathbf { x } ) - \\log Z ,\n$$",
|
| 449 |
+
"text_format": "latex",
|
| 450 |
+
"bbox": [
|
| 451 |
+
411,
|
| 452 |
+
241,
|
| 453 |
+
584,
|
| 454 |
+
258
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 3
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "where $f ( \\mathbf { x } )$ is the unnormalized log-probability, $Z$ is the partition function, and $\\mathbf { x }$ is discrete. Typical Gibbs sampler iterates every dimension $x _ { i }$ of $\\mathbf { x }$ , computes the conditional probability $p ( x _ { i } | x _ { 1 } , . . . x _ { i - 1 } , x _ { i + 1 } , . . . , x _ { D } )$ , and samples according to this conditional probability. ",
|
| 461 |
+
"bbox": [
|
| 462 |
+
174,
|
| 463 |
+
268,
|
| 464 |
+
823,
|
| 465 |
+
313
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 3
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "When the training data $\\mathbf { x }$ are natural images and the EBM learns $\\mathbf { x }$ decently well, the traditional Gibbs sampler wastes much of the computation. For example, most pixel-by-pixel iterations over $x _ { i }$ in MNIST dataset will be on the background which should stay black. GWG proposes a smart proposal that picks the pixel $x _ { i }$ that is more likely to change, such as the pixels around the edge between the bright and dark region of the digits. ",
|
| 472 |
+
"bbox": [
|
| 473 |
+
173,
|
| 474 |
+
318,
|
| 475 |
+
825,
|
| 476 |
+
388
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 3
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "3.3 WANG-LANDAU WITH GRADIENT PROPOSAL ",
|
| 483 |
+
"text_level": 1,
|
| 484 |
+
"bbox": [
|
| 485 |
+
174,
|
| 486 |
+
410,
|
| 487 |
+
521,
|
| 488 |
+
424
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 3
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "Directly applying Wang-Landau algorithm is not enough as it uses random proposal, because a trained neural model learns preferred mapping through the loss function. For example, a binary classifier should map the training inputs to either the sufficiently positive or negative logit values which ideally should correspond to the extremely rare but semantically meaningful inputs. After the sampler explores and generates the peak centered at 0 where most random samples correspond to as shown in Fig. 1b, it is almost impossible for the sampler with a random proposal to propose the inputs with meaningful structure (or even in-distribution inputs) so that the other possible output values are explored. Of course, whether those output values correspond to in-distribution inputs is only confirmable after sampling. In summary, it is extremely difficult for the random proposal in Wang-Landau algorithm to explore (almost all) the possible output values. ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
174,
|
| 497 |
+
438,
|
| 498 |
+
825,
|
| 499 |
+
578
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 3
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "We propose to use the framework of Wang-Landau algorithm but replace the proposal distribution with the Gibbs-With-Gradients (GWG) sampler which has a gradient proposal, since the gradient proposal takes the advantage of model’s learned weights to propose inputs. In order to sample the distribution of the output prediction through GWG, we define log-probability $f ( x )$ as: ",
|
| 506 |
+
"bbox": [
|
| 507 |
+
174,
|
| 508 |
+
584,
|
| 509 |
+
825,
|
| 510 |
+
641
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 3
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "equation",
|
| 516 |
+
"img_path": "images/3724791a0308e376d5f26a18fc822591aff3ec25adaa5e7979121308143b2582.jpg",
|
| 517 |
+
"text": "$$\nf ( x ) = S ( y ( \\mathbf { x } ) )\n$$",
|
| 518 |
+
"text_format": "latex",
|
| 519 |
+
"bbox": [
|
| 520 |
+
442,
|
| 521 |
+
651,
|
| 522 |
+
555,
|
| 523 |
+
669
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 3
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "where $S$ is the count for the bin corresponding to $y ( \\mathbf x )$ . The fixed $f ( \\cdot )$ in the original GWG is changing in our sampling process given the input $\\mathbf { x }$ , since the formula for $S$ is unknown and we can only estimate the output distribution as we did in Wang-Landau algorithm. Moreover, the GWG requires the gradient of $f$ , but the $S$ is not differentiable since it is approximated through discrete bins. We adopt a first-order differentiable interpolation for the discrete histogram of entropy. ",
|
| 530 |
+
"bbox": [
|
| 531 |
+
173,
|
| 532 |
+
679,
|
| 533 |
+
825,
|
| 534 |
+
750
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 3
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "In summary, similar to the original Wang-Landau algorithm, we first initialize two histograms with all of their bins to 0. One of these histograms is for entropy $S$ , and the other histogram, $H$ , is a counter of how many times the sampler workers visited a specific bin and $H$ is also for the flatness check. We first preset the number of iterations. When $H$ passes the flatness check, it enters the next iteration loop with the step counter reset to 0. Every step in the while loop until the flatness check passes, we interpolate the entropy in the histogram to get a differentiable interpolation and take the derivative of the negation of the entropy with respect to the output $z$ and the inputs $\\mathbf { x }$ through the chain rule. GWG uses this gradient to propose the next input that is likely to have lower entropy and be accepted by the sampler. his procedure drives the sampler to visit rare samples whose logit values correspond to the lower entropy until $S$ converges. This proposal also goes through a Monte-Carlo accept-reject procedure in the GWG. Once the flatness is met, the bins of $H$ are reset to 0 and the step size is halved before a new iteration. Our proposed algorithm is in Alg. 1 in Appendix. ",
|
| 541 |
+
"bbox": [
|
| 542 |
+
173,
|
| 543 |
+
756,
|
| 544 |
+
825,
|
| 545 |
+
924
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 3
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "4 RELATED WORKS AND DISCUSSIONS ",
|
| 552 |
+
"text_level": 1,
|
| 553 |
+
"bbox": [
|
| 554 |
+
174,
|
| 555 |
+
102,
|
| 556 |
+
514,
|
| 557 |
+
118
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 4
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "Performance Characterization has long been explored even before the era of deep learning (Haralick, 1992; Klette et al., 2000; Thacker et al., 2008). The input-output relationship has been explored for simple functions (Hammitt & Bartlett, 1995) and mathematical morphological operators (Gao et al., 2002; Kanungo & Haralick, 1990). Compared to existing performance characterization approaches (Ramesh et al., 1997; Bowyer & Phillips, 1998; Aghdasi, 1994; Ramesh & Haralick, 1992; 1994), our work focuses on the output distribution (Greiffenhagen et al., 2001) of a neural network over the entire input space (i.e., not task specific) following the blackbox approach (Courtney et al., 1997; Cho et al., 1997) where the system transfer function from input to output is unknown. Our setting shall be viewed as the most general forward uncertainty quantification case (Lee & Chen, 2009) where the model performance is characterized when the inputs are perturbed (Roberts et al., 2021). To our best knowledge, we demonstrate for the first time that the challenging task of sampling the entire input space for modern neural networks is feasible and efficient by drawing the connection between neural network and physics models. Our proposed method can offer samples to be further integrated with the performance characterization methods mentioned above. ",
|
| 564 |
+
"bbox": [
|
| 565 |
+
174,
|
| 566 |
+
136,
|
| 567 |
+
825,
|
| 568 |
+
329
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 4
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "Density Estimation and Energy Landscape Mapping Previous works in density estimation focus on data density Tabak & Turner (2013); Liu et al. (2021), where class samples are given and the goal is to estimate the density of samples. Here we are not interested in the density of the given dataset, but the density of all the valid samples in the pixel space for a trained model. Hill et al. (2019); Barbu & Zhu (2020) have done the pioneering work in sampling the energy landscape for energy-based models. Their methods specifically focus on the local minimum and barriers of the energy landscape. We can relax the requirement and generalize the mapping on the “output” space where either sufficiently positive or sufficiently negative output (logit) values are meaningful in binary classifiers and other models. ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
174,
|
| 577 |
+
338,
|
| 578 |
+
825,
|
| 579 |
+
463
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 4
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "Open-world Model Evaluation Though many neural models have achieved the SOTA performance, most of them are only on in-distribution test sets (Dosovitskiy et al., 2021; Tolstikhin et al., 2021; Steiner et al., 2021; Chen et al., 2021; Zhuang et al., 2022; He et al., 2015; Simonyan & Zisserman, 2014; Szegedy et al., 2015; Huang et al., 2017; Zagoruyko & Komodakis, 2016). Openworld settings where the test set distribution differs from the in-distribution training set create special challenges for the model. While the models have to detect the OOD samples from in-distribution samples (Liu et al., 2020; Hendrycks & Gimpel, 2016; Hendrycks et al., 2019; Hsu et al., 2020; Lee et al., 2017; 2018; Liang et al., 2018; Mohseni et al., 2020; Ren et al., 2019), we also expect sometimes the model could generalize what it learns to OOD datasets (Cao et al., 2022; Sun & Li, 2022). It has been discovered that models have over-confident predictions for some OOD samples that obviously do not align with human judgments (Nguyen et al., 2015). The OOD generalization becomes more challenging because of this discovery, because the models may not be as reliable as we thought they were. Adversarial test sets Szegedy et al. (2013); Rozsa et al. (2016); Miyato et al. (2018); Kurakin et al. (2016); Xie et al. (2019); Madry et al. (2017) also present special challenges as models decisions are different from those of humans. Having a full view of input-output relation with all the above different kinds of test sets under consideration is important. ",
|
| 586 |
+
"bbox": [
|
| 587 |
+
174,
|
| 588 |
+
472,
|
| 589 |
+
825,
|
| 590 |
+
693
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 4
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "text",
|
| 596 |
+
"text": "Samplers MCMC samplers (Chen et al., 2014; Welling & Teh, 2011; Li et al., 2016; Xu et al., 2018) are developed to scale to big datasets and sample efficient with gradients. Recently, GibbsWith-Gradients (GWG) (Grathwohl et al., 2021) is proposed to pick the promising pixel(s) as the proposal. To further improve sampling efficiency, CSGLD (Deng et al., 2020) drives the sampler to explore the under-explored energy using similar idea as Wang-Landau algorithm (Wang & Landau, 2001). The important difference between our problem setting and the previous ones solved by other MCMC samplers is the function or model as distribution to be sampled from is unknown. Wang-Landau algorithm utilizes previous approximation of the distribution to drive the sampler to explore the under-explored energy regions. This algorithm can be more efficient through parallelization (Vogel et al., 2013; Cunha-Netto et al., 2008), bin-free (Junghans et al., 2014; Li & Eisenbach, 2017) and extended to multi-dimensional outputs (Zhou et al., 2006). While the previous samplers can be applied to high dimensional inputs, the energy functions written by physicists are relative simple and symmetric. However, modern neural networks are complex and hard to characterize performance (Roberts et al., 2021). We assume agnostic of the output properties of the model and thus apply the Wang-Landau algorithm to sample the entropy as a function of energy but with the gradient proposal in GWG to make the sampler more efficient. Similar to GWG, our sampler can propose the inputs corresponding to the under-explored regions of outputs. Improvements of efficiency can benefit from a patch of pixel changes. ",
|
| 597 |
+
"bbox": [
|
| 598 |
+
173,
|
| 599 |
+
702,
|
| 600 |
+
825,
|
| 601 |
+
924
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 4
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "text",
|
| 607 |
+
"text": "",
|
| 608 |
+
"bbox": [
|
| 609 |
+
173,
|
| 610 |
+
103,
|
| 611 |
+
823,
|
| 612 |
+
132
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 5
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"text": "5 EXPERIMENTS ",
|
| 619 |
+
"text_level": 1,
|
| 620 |
+
"bbox": [
|
| 621 |
+
176,
|
| 622 |
+
154,
|
| 623 |
+
326,
|
| 624 |
+
170
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 5
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "In this section, we apply our proposed Gradient Wang-Landau sampler to inspect a few neural network models and present the discovered output histogram together with representative samples. The dataset and model training details are introduced in Sec. 5.1. We first empirically confirm our sampler performance through a toy example in Sec. 5.2. We then discuss results for modern binary classifiers in Sec. 5.3 and Sec. 5.4. Hyperparameters of the samplers tested in are Appendix C. ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
174,
|
| 633 |
+
188,
|
| 634 |
+
825,
|
| 635 |
+
257
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 5
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "5.1 DATASETS, MODELS, AND OTHER EXPERIMENT SETTINGS ",
|
| 642 |
+
"bbox": [
|
| 643 |
+
173,
|
| 644 |
+
276,
|
| 645 |
+
620,
|
| 646 |
+
290
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 5
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "text",
|
| 652 |
+
"text": "Datasets As aforementioned, we focus on binary classification. Therefore, we derive two datasets from the MNIST datasets by only including samples with labels $\\{ 0 , 1 \\}$ . The training and test splits are the same as those in the original MNIST dataset. ",
|
| 653 |
+
"bbox": [
|
| 654 |
+
174,
|
| 655 |
+
292,
|
| 656 |
+
825,
|
| 657 |
+
334
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 5
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "text",
|
| 663 |
+
"text": "• Toy is a simple dataset with $5 \\times 5$ binary input images we construct. It is designed to make feasible the bruteforce enumeration over the entire input space (only $2 ^ { 5 \\times 5 }$ different samples). We center crop the MNIST samples from $\\{ 0 , 1 \\}$ classes and resize them to $5 \\times 5$ images. We compute the average of the pixel values and use the average as the threshold to binarize the images — the pixel value lower than this threshold becomes 0; otherwise, it becomes 1. The duplicates are not removed for accuracy after resizing since PyTorch does not find duplicate row indices. • MNIST-0/1 is an MNIST dataset whose samples only have the 0,1 labels. To align with the GWG setting, the inputs are discrete and not $\\mathrm { _ { Z } }$ -normalized. Therefore, in this dataset, the input $\\mathbf { x }$ is $2 8 \\times 2 8$ dimensional with discrete pixel values from $\\{ 0 , . . . , 2 5 5 \\}$ . ",
|
| 664 |
+
"bbox": [
|
| 665 |
+
173,
|
| 666 |
+
342,
|
| 667 |
+
825,
|
| 668 |
+
467
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 5
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "Neural Network Models for Evaluation Since the focus of this paper is not to compare different neural architectures, given the relatively small datasets we have, we train two types of models, a simple CNN and ResNet-18 (He et al., 2015). Each pixel of the inputs is first transformed to the one-hot encoding and passed to a 3-by-3 convolution layer with 3 channel output. The CNN model contains 2 convolution layers with 3-by-3 filter size. The output channels are 32 and 128. The final features are average-pooled and passed to a fully-connected layer for the binary classification. ",
|
| 675 |
+
"bbox": [
|
| 676 |
+
174,
|
| 677 |
+
473,
|
| 678 |
+
825,
|
| 679 |
+
556
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 5
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "Please keep in mind that our goal in this experiment section is to showcase that our proposed sampler can uncover some novel interesting empirical insights for neural network models. Models with different architectures, weights due to different initialization, optimization, and/or datasets will lead to different results. Therefore, our results and discussions are all model-specific. Specifically, we train a simple CNN model to classify the $5 \\times 5$ binary images in the Toy dataset (CNN-Toy). The test accuracy of this CNN-Toy model reaches $9 9 . 7 \\%$ , which is almost perfect. We train a simple CNN model to classify the $2 8 \\times 2 8$ grey-scale images in the MNIST-0/1 dataset (CNN-MNIST-0/1). The test accuracy of CNN-MNIST-0/1 model is $9 7 . 8 \\%$ . We train a ResNet-18 model to classify the $2 8 \\times 2 8$ grey-scale images in the MNIST-0/1 dataset (ResNet-18-MNIST-0/1). The test accuracy of ResNet-18-MNIST-0/1 model is $1 0 0 \\%$ . ",
|
| 686 |
+
"bbox": [
|
| 687 |
+
173,
|
| 688 |
+
564,
|
| 689 |
+
825,
|
| 690 |
+
702
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 5
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "Sampling Methods for Comparison We compare several different sampling methods (including our proposed method) to obtain the output histogram over the entire input space. ",
|
| 697 |
+
"bbox": [
|
| 698 |
+
174,
|
| 699 |
+
709,
|
| 700 |
+
821,
|
| 701 |
+
738
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 5
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "• Enumeration generates the histogram by enumerating all the possible pixel values as inputs. This is a rather slow but the most accurate method. \n• In-dist Test Samples generates the histogram of the inputs based on the fixed test set.This is commonly used in machine learning evaluation. It is based on a very small and potentially biased subset of the entire input space. \n• Wang-Landau algorithm (WL) generates the histogram the Wang-Landau algorithm with the random proposal. Specifically, we randomly pick one pixel at a time and change it to any valid (discrete) value as in this implementation 1 \n• Gradient Wang-Landau (GWL) generates the histogram by our proposed sampler of WangLandau algorithm with gradient proposal. ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
173,
|
| 710 |
+
744,
|
| 711 |
+
826,
|
| 712 |
+
883
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 5
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "image",
|
| 718 |
+
"img_path": "images/0c66faa4a0eb7a34a59abefd6c5d10be5d13bb2f8cef0d5ec07bef93354745d8.jpg",
|
| 719 |
+
"image_caption": [
|
| 720 |
+
"Figure 2: Output histograms of CNN-Toy obtained by different sampling methods. The indistribution samples are only a very small portion in the output histogram. We also present the representative samples obtained by GWL given different logit values. "
|
| 721 |
+
],
|
| 722 |
+
"image_footnote": [],
|
| 723 |
+
"bbox": [
|
| 724 |
+
264,
|
| 725 |
+
103,
|
| 726 |
+
728,
|
| 727 |
+
234
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 6
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "image",
|
| 733 |
+
"img_path": "images/b8f5711f821ee80ee89c73c4737a3b20b82e3cfc2d828174a5f1009260d0b2a3.jpg",
|
| 734 |
+
"image_caption": [
|
| 735 |
+
"Figure 3: Output histograms of CNN-MNIST-0/1 obtained by different sampling methods. The blue scale is for GWL and the red scale is for In-distribution Test Samples. We also present the representative samples obtained by GWL given different logit values (more in Fig. 6 in Appendix) "
|
| 736 |
+
],
|
| 737 |
+
"image_footnote": [],
|
| 738 |
+
"bbox": [
|
| 739 |
+
264,
|
| 740 |
+
284,
|
| 741 |
+
730,
|
| 742 |
+
416
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 6
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "5.2 RESULTS OF CNN-TOY ",
|
| 749 |
+
"text_level": 1,
|
| 750 |
+
"bbox": [
|
| 751 |
+
176,
|
| 752 |
+
478,
|
| 753 |
+
377,
|
| 754 |
+
492
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 6
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "text",
|
| 760 |
+
"text": "Given the CNN-Toy model, we apply Enumeration, GWL, and In-dist Test Samples to obtain the output histograms, as shown in Fig. 2. Note that our GWL method samples the relative entropy of different energy values as duplicate x may be proposed. After normalization with the maximum entropy, the GWL histogram almost exactly matches the Enumeration histogram which is the ground truth histogram. This confirms the accuracy of our GWL sampler and we can apply it further to more complicated models with confidence. ",
|
| 761 |
+
"bbox": [
|
| 762 |
+
174,
|
| 763 |
+
503,
|
| 764 |
+
825,
|
| 765 |
+
587
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 6
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "text",
|
| 771 |
+
"text": "Remarkably, this histogram is quite different from the expectation we presented in Fig. 1b — this histogram is even not centered at 0 or has the expected subdominant peaks on both the positive and negative sides. Instead, the dominant peak is so wide that it covers almost the entire spectrum of the possible output values. From a coarse-grained overview, most of the samples are mapped to the center of logit $- 5$ with a decay from $- 5$ to both sides in the CNN-Toy model. This shows the CNN-Toy model is biased to predict more samples to the negative logit values. ",
|
| 772 |
+
"bbox": [
|
| 773 |
+
173,
|
| 774 |
+
594,
|
| 775 |
+
825,
|
| 776 |
+
679
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 6
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "In Fig. 2, we also present the representative samples obtained by GWL given different logit values in the CNN-Toy model. The visualization results suggest that the CNN-Toy model probably learns the digit “1” for positive logit values as the center pixels of the representative samples are white (see the three representative samples with logit values from 0 to 20) and $\\ \" 0 \\ \"$ for the very negative logit values as the center pixels of the representative samples are black (see two representative samples with logit values from -20 to -30). From this example, one can see that the output histogram over the entire input space can offer a comprehensive understanding of the neural network models, helping researchers better understand critical questions such as the distribution of the outputs, where the model maps the samples to, and what the representative samples with high likelihood are. ",
|
| 783 |
+
"bbox": [
|
| 784 |
+
174,
|
| 785 |
+
685,
|
| 786 |
+
825,
|
| 787 |
+
810
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 6
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "text",
|
| 793 |
+
"text": "5.3 RESULTS OF CNN-MNIST-0/1 ",
|
| 794 |
+
"text_level": 1,
|
| 795 |
+
"bbox": [
|
| 796 |
+
176,
|
| 797 |
+
827,
|
| 798 |
+
428,
|
| 799 |
+
842
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 6
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "text",
|
| 805 |
+
"text": "Histogram Results by GWL The trial of applying GWL on the CNN-Toy model is encouraging and we now apply GWL to the CNN-MNIST-0/1 that is trained on a real-world dataset. The results are shown in Fig. 3. As our GWL reveals, the output histogram of CNN-MNIST-0/1, similar to CNN-Toy’s histogram, does not have the subdominant peaks. It is also different from the presumed case in Fig. 1b. Compared with the output histogram of the CNN-Toy model (i.e., Fig. 2), this time, the peak is on the negative boundary and the histogram is skewed towards the negative logit values. $S$ almost linearly decays to the positive logit values. While the in-distribution samples have logit values between $- 2 0$ and 15 as we expect, these samples are exponentially (i.e., $e ^ { 1 3 0 0 }$ at logit value -20 to $e ^ { 3 1 0 0 }$ at logit value 13, thousands in log scale) less often found than the majority samples whose logit values are around $- 5 5$ . From a fine-grained view, the CNN-MNIST-0/1 model tends to map the human-unrecognizable samples to the very negative logit values. While previous work (Nguyen et al., 2015) showed the existence of the overconfident prediction samples, our result shows a rough but quantitative performance of this CNN which can serve as a baseline for further improvements. One may notice that in Fig. 3, there is still some output values (e.g., the rightmost positive logit region) that are not yet covered by our GWL sampler. We believe that this calls for more future work to follow on more advanced efficient samplers. ",
|
| 806 |
+
"bbox": [
|
| 807 |
+
174,
|
| 808 |
+
853,
|
| 809 |
+
823,
|
| 810 |
+
924
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 6
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "image",
|
| 816 |
+
"img_path": "images/e9ff3076d4a132b973f8030a8b19784ad990e1a23965a3fd9c23de67d84f3d1b.jpg",
|
| 817 |
+
"image_caption": [
|
| 818 |
+
"Figure 4: Intermediate output histogram $S$ per iteration. (a) GWL gradually explores the logit values in the first iteration. (b) GWL discovers the output histogram well within 2 iterations. (c) The original WL explores the output distribution much slower. "
|
| 819 |
+
],
|
| 820 |
+
"image_footnote": [],
|
| 821 |
+
"bbox": [
|
| 822 |
+
174,
|
| 823 |
+
99,
|
| 824 |
+
823,
|
| 825 |
+
204
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 7
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "",
|
| 832 |
+
"bbox": [
|
| 833 |
+
174,
|
| 834 |
+
284,
|
| 835 |
+
825,
|
| 836 |
+
436
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 7
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "GWL is much more efficient than WL Since WL takes a much longer time to converge, we are not able to obtain the converged results from WL. For the comparison purpose, we inspect the intermediate $S$ results of the GWL and WL samplers, as shown in Fig. 4. As one can see from Fig. 4a, in the first iteration, GWL has already been able to gradually explore the logit values efficiently from the most dominant output value around $- 5 5$ to the positive logit values. Within only two iterations, as shown in Fig. 4b, GWL can discover the output histogram covering the value range from $- 5 5$ to 13. On the other hand, as presented in Fig. 4c, in the first two iterations, the original WL can only explore the output ranges from around $- 5 5$ to $- 4 5$ ; in the 3rd iteration, WL converges significantly slower and never ends in a reasonable time. This result indicates that the GWL converges much faster than the original WL and is able to explore a much more diverse range of output values. ",
|
| 843 |
+
"bbox": [
|
| 844 |
+
173,
|
| 845 |
+
454,
|
| 846 |
+
825,
|
| 847 |
+
606
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 7
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "Manual inspection on more representative samples As show in Fig. 3, for the CNN-MNIST$_ { 0 / 1 }$ model, GWL can effectively sample input images from logit values ranging from -55 to 13. We further group these logit values per 100 bins (100 bins correspond to a difference of 10 in logit value) in $S$ , resulting in about 7 groups. For every group, we sample 200 representative input images. To make sure they are not correlated, we sample every 1000 steps. For demonstration purposes, we randomly pick 10-out-of-200 samples from every group in Fig. 6 in Appendix. We manually inspect the sufficiently positive group (e.g., the last column in Fig. 6) and the sufficiently negative groups (e.g., the first five columns in Fig. 6) , and there are no human recognizable samples of digits. We also observe an interesting pattern that as the logit value increases, more and more representative samples have black background. This result suggests that the CNN-MNIST-0/1 model may heavily rely on the background to classify the images (Xiao et al., 2020). We conjecture that is because the samples in the most dominant peak are closer to class 0 samples than class 1 samples (Appendix. D). In summary, although CNN-MNIST-0/1 holds a very high in-distribution test accuracy, it is far from a robust model because it does not truly understand the semantic structure of the digits. ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
173,
|
| 856 |
+
623,
|
| 857 |
+
825,
|
| 858 |
+
818
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 7
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "Discussion Fig. 3 presents challenges to the OOD detection methods that may be more modeldependent than we thought before. If the model cannot map most of the human unrecognizable samples with high uncertainty, the likelihood-based OOD detection methods (Liu et al., 2020; Hendrycks & Gimpel, 2016) cannot perform well for samples in the entire input space. Fig. 6 shows the inputs with the in-distribution output values (output logits of the red plot) of the CNN model may not uniquely correspond to in-distribution samples. More rigorous experiments to a definite conclusion are yet required as future work. ",
|
| 865 |
+
"bbox": [
|
| 866 |
+
174,
|
| 867 |
+
834,
|
| 868 |
+
823,
|
| 869 |
+
931
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 7
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "image",
|
| 875 |
+
"img_path": "images/12832be2d3026b42c4b661d4a5448d60b6a476c48ec9c0a5dde3fb23f35a2113.jpg",
|
| 876 |
+
"image_caption": [
|
| 877 |
+
"(a) Results with random re-initialization. "
|
| 878 |
+
],
|
| 879 |
+
"image_footnote": [],
|
| 880 |
+
"bbox": [
|
| 881 |
+
174,
|
| 882 |
+
102,
|
| 883 |
+
493,
|
| 884 |
+
194
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 8
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "image",
|
| 890 |
+
"img_path": "images/092109fc749bf3dd1476c50096882b69ff635bf9f62d94622d943b3cda11f427.jpg",
|
| 891 |
+
"image_caption": [
|
| 892 |
+
"(b) Results with test set re-initialization. ",
|
| 893 |
+
"Figure 5: Output histograms of ResNet-18-MNIST-0/1 obtained by different sampling methods. There may be a sharp local minima in the output landscape causing a cliff around the logit value of -33 and making GWL “trapped”. We have tried two variants to address the “trapped” issue via (a) random re-initialization and (b) test set re-initialization. The blue scale is for GWL and the red scale is for In-distribution Test Samples. We also present the representative samples obtained by GWL given different logit values. "
|
| 894 |
+
],
|
| 895 |
+
"image_footnote": [],
|
| 896 |
+
"bbox": [
|
| 897 |
+
500,
|
| 898 |
+
102,
|
| 899 |
+
820,
|
| 900 |
+
194
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 8
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "5.4 RESULTS OF RESNET-18-MNIST-0/1 ",
|
| 907 |
+
"text_level": 1,
|
| 908 |
+
"bbox": [
|
| 909 |
+
176,
|
| 910 |
+
319,
|
| 911 |
+
473,
|
| 912 |
+
333
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 8
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "When applying our GWL samplers to the ResNet-18-MNIST-0/1 model, we observe that the sampler can easily get trapped in some output regions. This is a fairly common phenomenon for WangLandau-based samplers, as reported in (Vogel et al., 2018). We follow the common practice to re-initialize the sampler to the random samples every time it gets trapped. We let those workers run 1000 steps (10,000 pixels selected with replacement) before counting to $S$ again. As shown in Fig. 5a, the smallest logit values in ResNet-18-MNIST-0/1 are around -220, much lower than those of CNN-MNIST-0/1. A wide range of negative logit values corresponds to human unrecognizable inputs and there is no obvious pattern observed in contrast to CNN-MNIST-0/1’s results. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
174,
|
| 921 |
+
345,
|
| 922 |
+
825,
|
| 923 |
+
458
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 8
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Interestingly, we observe a cliff around the logit value of -33. We try another variant for reinitialization: we re-initialize using the test set samples every time it gets trapped in certain output value. This time, as shown in Figure 5b, it can explore the output values larger than -33. We believe there may be a sharp local minima in the output landscape, similar to the case discussed before Vogel et al. (2018). ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
174,
|
| 932 |
+
464,
|
| 933 |
+
823,
|
| 934 |
+
534
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 8
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Because of the “trapping” issue and the complexity of ResNet-18 over CNN, we have to relax the flatness check a bit to let GWL converge for the first iteration. Because of the less rigorous flatness check, we do not draw conclusions about ResNet-18-MNIST-0/1 evaluation of the relative entropy differences. Compared with the CNN-MNIST-0/1 model, ResNet-18-MNIST-0/1 has more interesting phenomena and further exploration is needed to understand these phenomena. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
174,
|
| 943 |
+
541,
|
| 944 |
+
825,
|
| 945 |
+
611
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 8
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "6 CONCLUSION ",
|
| 952 |
+
"text_level": 1,
|
| 953 |
+
"bbox": [
|
| 954 |
+
176,
|
| 955 |
+
633,
|
| 956 |
+
318,
|
| 957 |
+
648
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 8
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "text",
|
| 963 |
+
"text": "We aim to get a full picture of the input-output relationship of a model through the inputs valid in the pixel space. We propose to use a histogram to better understand the input-output distribution. When the inputs are high-dimensional, enumeration or uniform sampling is either impossible or takes too long to converge. We connect the density of states in physics to this histogram sampling problem. We propose to use an efficient sampler to achieve this goal. We confirm empirically this can be achieved and uncover some new aspects of neural networks. ",
|
| 964 |
+
"bbox": [
|
| 965 |
+
174,
|
| 966 |
+
666,
|
| 967 |
+
825,
|
| 968 |
+
750
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 8
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "For future work, it is interesting to develop a new and more efficient sampler that has theoretical guarantees to acquire this input-output relationship in order to sample with more pixels, such as the ImageNet (Deng et al., 2009). Most importantly, with this new sampler, we can develop new insights into network architectures developed in the last decade for open-world applications. ",
|
| 975 |
+
"bbox": [
|
| 976 |
+
176,
|
| 977 |
+
757,
|
| 978 |
+
825,
|
| 979 |
+
813
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 8
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "7 REPRODUCIBILITY ",
|
| 986 |
+
"text_level": 1,
|
| 987 |
+
"bbox": [
|
| 988 |
+
176,
|
| 989 |
+
835,
|
| 990 |
+
361,
|
| 991 |
+
851
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 8
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "We provide fairly amount of information to re-implement our sampler. The data processing is in the Sec. 5.1 and algorithm is in Appendix B. The hyperparameters and sampling details are also listed in the Sec. 5. We also provide different time stamp of steps for our samplers to indicate what to expect during the sampling procedure in Fig. 4. Of course, the Wang-Landau algorithm we adopted is the prototypical one and it subjects to some issues reported in its follow-up works, such as the discontinuity of the boundaries between bins and trapping in one of the bins. These problems lead to some issues in our experiments and we discussed them in Sec. 5.4. More advanced algorithms have been developed to resolve these issues. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
174,
|
| 1000 |
+
867,
|
| 1001 |
+
823,
|
| 1002 |
+
924
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 8
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
174,
|
| 1011 |
+
103,
|
| 1012 |
+
825,
|
| 1013 |
+
159
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 9
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "8 ETHICS STATEMENT ",
|
| 1020 |
+
"text_level": 1,
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
176,
|
| 1023 |
+
179,
|
| 1024 |
+
374,
|
| 1025 |
+
196
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 9
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "Our method aims to provide a comprehensitve understanding of the neural models. This work will be applicable to many applications, such as those in the safety and trusty-worthy machine learning. As a pilor study, we do not anticipate the negative aspects of our work. ",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
174,
|
| 1034 |
+
212,
|
| 1035 |
+
825,
|
| 1036 |
+
255
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 9
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "REFERENCES ",
|
| 1043 |
+
"text_level": 1,
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
174,
|
| 1046 |
+
275,
|
| 1047 |
+
287,
|
| 1048 |
+
291
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 9
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "Farzin Aghdasi. Digitization and analysis of mammographic images for early detection of breast cancer. PhD thesis, University of British Columbia, 1994. ",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
173,
|
| 1057 |
+
299,
|
| 1058 |
+
821,
|
| 1059 |
+
328
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 9
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"text": "Adrian Barbu and Song-Chun Zhu. Mapping the energy landscape. In Monte Carlo Methods, pp. 367–420. Springer, 2020. ",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
173,
|
| 1068 |
+
337,
|
| 1069 |
+
821,
|
| 1070 |
+
366
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 9
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "Kevin Bowyer and P Jonathon Phillips. Empirical evaluation techniques in computer vision. IEEE Computer Society Press, 1998. ",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
173,
|
| 1079 |
+
375,
|
| 1080 |
+
823,
|
| 1081 |
+
405
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 9
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "Kaidi Cao, Maria Brbic, and Jure Leskovec. Open-world semi-supervised learning. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum? id=O-r8LOR-CCA. ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
174,
|
| 1090 |
+
414,
|
| 1091 |
+
823,
|
| 1092 |
+
457
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 9
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "Tianqi Chen, Emily Fox, and Carlos Guestrin. Stochastic gradient hamiltonian monte carlo. In International conference on machine learning, pp. 1683–1691. PMLR, 2014. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
173,
|
| 1101 |
+
467,
|
| 1102 |
+
823,
|
| 1103 |
+
496
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 9
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "Xiangning Chen, Cho-Jui Hsieh, and Boqing Gong. When vision transformers outperform resnets without pretraining or strong data augmentations. arXiv preprint arXiv:2106.01548, 2021. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
171,
|
| 1112 |
+
503,
|
| 1113 |
+
823,
|
| 1114 |
+
534
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 9
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Kyujin Cho, Peter Meer, and Javier Cabrera. Performance assessment through bootstrap. IEEE Transactions on Pattern Analysis and Machine Intelligence, 19(11):1185–1198, 1997. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
171,
|
| 1123 |
+
542,
|
| 1124 |
+
823,
|
| 1125 |
+
571
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 9
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "Patrick Courtney, Neil Thacker, and Adrian F Clark. Algorithmic modelling for performance evaluation. Machine Vision and Applications, 9(5):219–228, 1997. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
173,
|
| 1134 |
+
580,
|
| 1135 |
+
821,
|
| 1136 |
+
611
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 9
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "Antonio Gonc¸alves da Cunha-Netto, AA Caparica, Shan-Ho Tsai, Ronald Dickman, and David Paulˆ Landau. Improving wang-landau sampling with adaptive windows. Physical Review E, 78(5): 055701, 2008. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
173,
|
| 1145 |
+
619,
|
| 1146 |
+
825,
|
| 1147 |
+
662
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 9
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pp. 248–255, 2009. doi: 10.1109/CVPR.2009.5206848. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
173,
|
| 1156 |
+
671,
|
| 1157 |
+
823,
|
| 1158 |
+
715
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 9
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Wei Deng, Guang Lin, and Faming Liang. A contour stochastic gradient langevin dynamics algorithm for simulations of multi-modal distributions. In Advances in Neural Information Processing Systems, 2020. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
173,
|
| 1167 |
+
724,
|
| 1168 |
+
823,
|
| 1169 |
+
767
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 9
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. ICLR, 2021. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
174,
|
| 1178 |
+
776,
|
| 1179 |
+
825,
|
| 1180 |
+
833
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 9
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "Xiang Gao, Visvanathan Ramesh, and Terry Boult. Statistical characterization of morphological operator sequences. In European Conference on Computer Vision, pp. 590–605. Springer, 2002. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
171,
|
| 1189 |
+
843,
|
| 1190 |
+
823,
|
| 1191 |
+
872
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 9
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "Will Grathwohl, Kevin Swersky, Milad Hashemi, David Duvenaud, and Chris Maddison. Oops i took a gradient: Scalable sampling for discrete distributions. In International Conference on Machine Learning, pp. 3831–3841. PMLR, 2021. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
176,
|
| 1200 |
+
881,
|
| 1201 |
+
825,
|
| 1202 |
+
924
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 9
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "Michael Greiffenhagen, Dorin Comaniciu, Heinrich Niemann, and Visvanathan Ramesh. Design, analysis, and engineering of video monitoring systems: An approach and a case study. Proceedings of the IEEE, 89(10):1498–1517, 2001. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
174,
|
| 1211 |
+
103,
|
| 1212 |
+
821,
|
| 1213 |
+
146
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 10
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "AM Hammitt and EB Bartlett. Determining functional relationships from trained neural networks. Mathematical and computer modelling, 22(3):83–103, 1995. ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
169,
|
| 1222 |
+
154,
|
| 1223 |
+
821,
|
| 1224 |
+
184
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 10
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "Robert M Haralick. Performance characterization in computer vision. In BMVC92, pp. 1–8. Springer, 1992. ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
173,
|
| 1233 |
+
191,
|
| 1234 |
+
821,
|
| 1235 |
+
220
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 10
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015. ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
171,
|
| 1244 |
+
228,
|
| 1245 |
+
823,
|
| 1246 |
+
257
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 10
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. arXiv preprint arXiv:1610.02136, 2016. ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
173,
|
| 1255 |
+
265,
|
| 1256 |
+
823,
|
| 1257 |
+
295
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 10
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "Dan Hendrycks, Mantas Mazeika, and Thomas Dietterich. Deep anomaly detection with outlier exposure. In International Conference on Learning Representations, 2019. URL https:// openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ HyxCxhRcY7. ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
178,
|
| 1266 |
+
301,
|
| 1267 |
+
823,
|
| 1268 |
+
345
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 10
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "Mitch Hill, Erik Nijkamp, and Song-Chun Zhu. Building a telescope to look into high-dimensional image spaces. Quarterly of Applied Mathematics, 77(2):269–321, 2019. ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
173,
|
| 1277 |
+
353,
|
| 1278 |
+
823,
|
| 1279 |
+
383
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 10
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "Yen-Chang Hsu, Yilin Shen, Hongxia Jin, and Zsolt Kira. Generalized ODIN: Detecting outof-distribution image without learning from out-of-distribution data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10951–10960, 2020. ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
176,
|
| 1288 |
+
390,
|
| 1289 |
+
823,
|
| 1290 |
+
434
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 10
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "text",
|
| 1296 |
+
"text": "Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017. ",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
176,
|
| 1299 |
+
440,
|
| 1300 |
+
823,
|
| 1301 |
+
484
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 10
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"type": "text",
|
| 1307 |
+
"text": "Christoph Junghans, Danny Perez, and Thomas Vogel. Molecular dynamics in the multicanonical ensemble: Equivalence of wang–landau sampling, statistical temperature molecular dynamics, and metadynamics. Journal of chemical theory and computation, 10(5):1843–1847, 2014. ",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
176,
|
| 1310 |
+
492,
|
| 1311 |
+
821,
|
| 1312 |
+
535
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 10
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"type": "text",
|
| 1318 |
+
"text": "Tapas Kanungo and Robert M Haralick. Character recognition using mathematical morphology. In Proc. of the Fourth USPS Conference on Advanced Technology, pp. 973–986, 1990. ",
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
173,
|
| 1321 |
+
542,
|
| 1322 |
+
823,
|
| 1323 |
+
571
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 10
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"type": "text",
|
| 1329 |
+
"text": "Reinhard Klette, H Siegfried Stiehl, Max A Viergever, and Koen L Vincken. Performance characterization in computer vision. Springer, 2000. ",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
173,
|
| 1332 |
+
579,
|
| 1333 |
+
823,
|
| 1334 |
+
609
|
| 1335 |
+
],
|
| 1336 |
+
"page_idx": 10
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"type": "text",
|
| 1340 |
+
"text": "Alexey Kurakin, Ian Goodfellow, Samy Bengio, et al. Adversarial examples in the physical world, 2016. ",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
173,
|
| 1343 |
+
617,
|
| 1344 |
+
823,
|
| 1345 |
+
646
|
| 1346 |
+
],
|
| 1347 |
+
"page_idx": 10
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"type": "text",
|
| 1351 |
+
"text": "Kimin Lee, Honglak Lee, Kibok Lee, and Jinwoo Shin. Training confidence-calibrated classifiers for detecting out-of-distribution samples. arXiv preprint arXiv:1711.09325, 2017. ",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
171,
|
| 1354 |
+
654,
|
| 1355 |
+
823,
|
| 1356 |
+
684
|
| 1357 |
+
],
|
| 1358 |
+
"page_idx": 10
|
| 1359 |
+
},
|
| 1360 |
+
{
|
| 1361 |
+
"type": "text",
|
| 1362 |
+
"text": "Kimin Lee, Kibok Lee, Honglak Lee, and Jinwoo Shin. A simple unified framework for detecting out-of-distribution samples and adversarial attacks. In Advances in Neural Information Processing Systems, pp. 7167–7177, 2018. ",
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
174,
|
| 1365 |
+
690,
|
| 1366 |
+
823,
|
| 1367 |
+
734
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 10
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "text",
|
| 1373 |
+
"text": "Sang Hoon Lee and Wei Chen. A comparative study of uncertainty propagation methods for blackbox-type problems. Structural and multidisciplinary optimization, 37(3):239–253, 2009. ",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
171,
|
| 1376 |
+
742,
|
| 1377 |
+
823,
|
| 1378 |
+
771
|
| 1379 |
+
],
|
| 1380 |
+
"page_idx": 10
|
| 1381 |
+
},
|
| 1382 |
+
{
|
| 1383 |
+
"type": "text",
|
| 1384 |
+
"text": "Chunyuan Li, Changyou Chen, David Carlson, and Lawrence Carin. Preconditioned stochastic gradient langevin dynamics for deep neural networks. In Thirtieth AAAI Conference on Artificial Intelligence, 2016. ",
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
173,
|
| 1387 |
+
779,
|
| 1388 |
+
823,
|
| 1389 |
+
821
|
| 1390 |
+
],
|
| 1391 |
+
"page_idx": 10
|
| 1392 |
+
},
|
| 1393 |
+
{
|
| 1394 |
+
"type": "text",
|
| 1395 |
+
"text": "Ying Wai Li and Markus Eisenbach. A histogram-free multicanonical monte carlo algorithm for the basis expansion of density of states. In Proceedings of the Platform for Advanced Scientific Computing Conference, pp. 1–7, 2017. ",
|
| 1396 |
+
"bbox": [
|
| 1397 |
+
174,
|
| 1398 |
+
830,
|
| 1399 |
+
823,
|
| 1400 |
+
873
|
| 1401 |
+
],
|
| 1402 |
+
"page_idx": 10
|
| 1403 |
+
},
|
| 1404 |
+
{
|
| 1405 |
+
"type": "text",
|
| 1406 |
+
"text": "Shiyu Liang, Yixuan Li, and Rayadurgam Srikant. Enhancing the reliability of out-of-distribution image detection in neural networks. In 6th International Conference on Learning Representations, ICLR 2018, 2018. ",
|
| 1407 |
+
"bbox": [
|
| 1408 |
+
174,
|
| 1409 |
+
882,
|
| 1410 |
+
825,
|
| 1411 |
+
924
|
| 1412 |
+
],
|
| 1413 |
+
"page_idx": 10
|
| 1414 |
+
},
|
| 1415 |
+
{
|
| 1416 |
+
"type": "text",
|
| 1417 |
+
"text": "Qiao Liu, Jiaze Xu, Rui Jiang, and Wing Hung Wong. Density estimation using deep generative neural networks. Proceedings of the National Academy of Sciences, 118(15):e2101344118, 2021. ",
|
| 1418 |
+
"bbox": [
|
| 1419 |
+
173,
|
| 1420 |
+
103,
|
| 1421 |
+
823,
|
| 1422 |
+
133
|
| 1423 |
+
],
|
| 1424 |
+
"page_idx": 11
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"type": "text",
|
| 1428 |
+
"text": "Weitang Liu, Xiaoyun Wang, John Owens, and Yixuan Li. Energy-based out-of-distribution detection. Advances in Neural Information Processing Systems, 2020. ",
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
173,
|
| 1431 |
+
142,
|
| 1432 |
+
823,
|
| 1433 |
+
171
|
| 1434 |
+
],
|
| 1435 |
+
"page_idx": 11
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"type": "text",
|
| 1439 |
+
"text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. ",
|
| 1440 |
+
"bbox": [
|
| 1441 |
+
174,
|
| 1442 |
+
181,
|
| 1443 |
+
825,
|
| 1444 |
+
224
|
| 1445 |
+
],
|
| 1446 |
+
"page_idx": 11
|
| 1447 |
+
},
|
| 1448 |
+
{
|
| 1449 |
+
"type": "text",
|
| 1450 |
+
"text": "Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, and Shin Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 41(8):1979–1993, 2018. ",
|
| 1451 |
+
"bbox": [
|
| 1452 |
+
173,
|
| 1453 |
+
234,
|
| 1454 |
+
826,
|
| 1455 |
+
277
|
| 1456 |
+
],
|
| 1457 |
+
"page_idx": 11
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"type": "text",
|
| 1461 |
+
"text": "Sina Mohseni, Mandar Pitale, JBS Yadawa, and Zhangyang Wang. Self-supervised learning for generalizable out-of-distribution detection. Proceedings of the AAAI Conference on Artificial Intelligence, 34(04):5216–5223, April 2020. ISSN 2159-5399. doi: 10.1609/aaai.v34i04.5966. ",
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
174,
|
| 1464 |
+
287,
|
| 1465 |
+
825,
|
| 1466 |
+
330
|
| 1467 |
+
],
|
| 1468 |
+
"page_idx": 11
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"type": "text",
|
| 1472 |
+
"text": "Anh Nguyen, Jason Yosinski, and Jeff Clune. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 427–436, 2015. ",
|
| 1473 |
+
"bbox": [
|
| 1474 |
+
173,
|
| 1475 |
+
340,
|
| 1476 |
+
823,
|
| 1477 |
+
385
|
| 1478 |
+
],
|
| 1479 |
+
"page_idx": 11
|
| 1480 |
+
},
|
| 1481 |
+
{
|
| 1482 |
+
"type": "text",
|
| 1483 |
+
"text": "V Ramesh and RM Haralick. A methodology for automatic selection of iu algorithm tuning parameters. In ARPA Image Understanding Workshop, 1994. ",
|
| 1484 |
+
"bbox": [
|
| 1485 |
+
174,
|
| 1486 |
+
393,
|
| 1487 |
+
821,
|
| 1488 |
+
422
|
| 1489 |
+
],
|
| 1490 |
+
"page_idx": 11
|
| 1491 |
+
},
|
| 1492 |
+
{
|
| 1493 |
+
"type": "text",
|
| 1494 |
+
"text": "Visvanathan Ramesh and Robert M Haralick. Random perturbation models and performance characterization in computer vision. In Proceedings 1992 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 521–522. IEEE Computer Society, 1992. ",
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
174,
|
| 1497 |
+
433,
|
| 1498 |
+
825,
|
| 1499 |
+
477
|
| 1500 |
+
],
|
| 1501 |
+
"page_idx": 11
|
| 1502 |
+
},
|
| 1503 |
+
{
|
| 1504 |
+
"type": "text",
|
| 1505 |
+
"text": "Visvanathan Ramesh, RM Haralick, AS Bedekar, X Liu, DC Nadadur, KB Thornton, and X Zhang. Computer vision performance characterization. RADIUS: Image Understanding for Imagery Intelligence, pp. 241–282, 1997. ",
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
174,
|
| 1508 |
+
486,
|
| 1509 |
+
825,
|
| 1510 |
+
530
|
| 1511 |
+
],
|
| 1512 |
+
"page_idx": 11
|
| 1513 |
+
},
|
| 1514 |
+
{
|
| 1515 |
+
"type": "text",
|
| 1516 |
+
"text": "Jie Ren, Peter J Liu, Emily Fertig, Jasper Snoek, Ryan Poplin, Mark Depristo, Joshua Dillon, and Balaji Lakshminarayanan. Likelihood ratios for out-of-distribution detection. In Advances in Neural Information Processing Systems, pp. 14680–14691, 2019. ",
|
| 1517 |
+
"bbox": [
|
| 1518 |
+
174,
|
| 1519 |
+
540,
|
| 1520 |
+
823,
|
| 1521 |
+
583
|
| 1522 |
+
],
|
| 1523 |
+
"page_idx": 11
|
| 1524 |
+
},
|
| 1525 |
+
{
|
| 1526 |
+
"type": "text",
|
| 1527 |
+
"text": "Daniel A Roberts, Sho Yaida, and Boris Hanin. The principles of deep learning theory. arXiv preprint arXiv:2106.10165, 2021. ",
|
| 1528 |
+
"bbox": [
|
| 1529 |
+
169,
|
| 1530 |
+
592,
|
| 1531 |
+
823,
|
| 1532 |
+
622
|
| 1533 |
+
],
|
| 1534 |
+
"page_idx": 11
|
| 1535 |
+
},
|
| 1536 |
+
{
|
| 1537 |
+
"type": "text",
|
| 1538 |
+
"text": "Andras Rozsa, Ethan M Rudd, and Terrance E Boult. Adversarial diversity and hard positive generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 25–32, 2016. ",
|
| 1539 |
+
"bbox": [
|
| 1540 |
+
173,
|
| 1541 |
+
631,
|
| 1542 |
+
825,
|
| 1543 |
+
675
|
| 1544 |
+
],
|
| 1545 |
+
"page_idx": 11
|
| 1546 |
+
},
|
| 1547 |
+
{
|
| 1548 |
+
"type": "text",
|
| 1549 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 1550 |
+
"bbox": [
|
| 1551 |
+
173,
|
| 1552 |
+
685,
|
| 1553 |
+
823,
|
| 1554 |
+
714
|
| 1555 |
+
],
|
| 1556 |
+
"page_idx": 11
|
| 1557 |
+
},
|
| 1558 |
+
{
|
| 1559 |
+
"type": "text",
|
| 1560 |
+
"text": "Andreas Steiner, Alexander Kolesnikov, , Xiaohua Zhai, Ross Wightman, Jakob Uszkoreit, and Lucas Beyer. How to train your vit? data, augmentation, and regularization in vision transformers. arXiv preprint arXiv:2106.10270, 2021. ",
|
| 1561 |
+
"bbox": [
|
| 1562 |
+
173,
|
| 1563 |
+
723,
|
| 1564 |
+
825,
|
| 1565 |
+
767
|
| 1566 |
+
],
|
| 1567 |
+
"page_idx": 11
|
| 1568 |
+
},
|
| 1569 |
+
{
|
| 1570 |
+
"type": "text",
|
| 1571 |
+
"text": "Yiyou Sun and Yixuan Li. Open-world contrastive learning. arXiv preprint arXiv:2208.02764, 2022. ",
|
| 1572 |
+
"bbox": [
|
| 1573 |
+
173,
|
| 1574 |
+
776,
|
| 1575 |
+
823,
|
| 1576 |
+
792
|
| 1577 |
+
],
|
| 1578 |
+
"page_idx": 11
|
| 1579 |
+
},
|
| 1580 |
+
{
|
| 1581 |
+
"type": "text",
|
| 1582 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. ",
|
| 1583 |
+
"bbox": [
|
| 1584 |
+
171,
|
| 1585 |
+
803,
|
| 1586 |
+
823,
|
| 1587 |
+
832
|
| 1588 |
+
],
|
| 1589 |
+
"page_idx": 11
|
| 1590 |
+
},
|
| 1591 |
+
{
|
| 1592 |
+
"type": "text",
|
| 1593 |
+
"text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1–9, 2015. ",
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
174,
|
| 1596 |
+
842,
|
| 1597 |
+
825,
|
| 1598 |
+
885
|
| 1599 |
+
],
|
| 1600 |
+
"page_idx": 11
|
| 1601 |
+
},
|
| 1602 |
+
{
|
| 1603 |
+
"type": "text",
|
| 1604 |
+
"text": "Esteban G Tabak and Cristina V Turner. A family of nonparametric density estimation algorithms. Communications on Pure and Applied Mathematics, 66(2):145–164, 2013. ",
|
| 1605 |
+
"bbox": [
|
| 1606 |
+
173,
|
| 1607 |
+
895,
|
| 1608 |
+
821,
|
| 1609 |
+
924
|
| 1610 |
+
],
|
| 1611 |
+
"page_idx": 11
|
| 1612 |
+
},
|
| 1613 |
+
{
|
| 1614 |
+
"type": "text",
|
| 1615 |
+
"text": "Neil A Thacker, Adrian F Clark, John L Barron, J Ross Beveridge, Patrick Courtney, William R Crum, Visvanathan Ramesh, and Christine Clark. Performance characterization in computer vision: A guide to best practices. Computer vision and image understanding, 109(3):305–334, 2008. ",
|
| 1616 |
+
"bbox": [
|
| 1617 |
+
174,
|
| 1618 |
+
103,
|
| 1619 |
+
825,
|
| 1620 |
+
159
|
| 1621 |
+
],
|
| 1622 |
+
"page_idx": 12
|
| 1623 |
+
},
|
| 1624 |
+
{
|
| 1625 |
+
"type": "text",
|
| 1626 |
+
"text": "Ilya Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner, Jessica Yung, Andreas Steiner, Daniel Keysers, Jakob Uszkoreit, Mario Lucic, and Alexey Dosovitskiy. Mlp-mixer: An all-mlp architecture for vision. arXiv preprint arXiv:2105.01601, 2021. ",
|
| 1627 |
+
"bbox": [
|
| 1628 |
+
173,
|
| 1629 |
+
169,
|
| 1630 |
+
823,
|
| 1631 |
+
224
|
| 1632 |
+
],
|
| 1633 |
+
"page_idx": 12
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"type": "text",
|
| 1637 |
+
"text": "Thomas Vogel, Ying Wai Li, Thomas Wust, and David P Landau. Generic, hierarchical framework¨ for massively parallel wang-landau sampling. Physical review letters, 110(21):210603, 2013. ",
|
| 1638 |
+
"bbox": [
|
| 1639 |
+
173,
|
| 1640 |
+
233,
|
| 1641 |
+
821,
|
| 1642 |
+
263
|
| 1643 |
+
],
|
| 1644 |
+
"page_idx": 12
|
| 1645 |
+
},
|
| 1646 |
+
{
|
| 1647 |
+
"type": "text",
|
| 1648 |
+
"text": "Thomas Vogel, Ying Wai Li, and David P. Landau. A practical guide to replica-exchange wang—landau simulations. 1012, 4 2018. ISSN 1742-6588. doi: 10.1088/1742-6596/1012/ 1/012003. URL https://www.osti.gov/biblio/1479789. ",
|
| 1649 |
+
"bbox": [
|
| 1650 |
+
174,
|
| 1651 |
+
271,
|
| 1652 |
+
823,
|
| 1653 |
+
315
|
| 1654 |
+
],
|
| 1655 |
+
"page_idx": 12
|
| 1656 |
+
},
|
| 1657 |
+
{
|
| 1658 |
+
"type": "text",
|
| 1659 |
+
"text": "Fugao Wang and David P Landau. Efficient, multiple-range random walk algorithm to calculate the density of states. Physical review letters, 86(10):2050, 2001. ",
|
| 1660 |
+
"bbox": [
|
| 1661 |
+
173,
|
| 1662 |
+
323,
|
| 1663 |
+
823,
|
| 1664 |
+
353
|
| 1665 |
+
],
|
| 1666 |
+
"page_idx": 12
|
| 1667 |
+
},
|
| 1668 |
+
{
|
| 1669 |
+
"type": "text",
|
| 1670 |
+
"text": "Max Welling and Yee W Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th international conference on machine learning (ICML-11), pp. 681–688, 2011. ",
|
| 1671 |
+
"bbox": [
|
| 1672 |
+
174,
|
| 1673 |
+
361,
|
| 1674 |
+
823,
|
| 1675 |
+
404
|
| 1676 |
+
],
|
| 1677 |
+
"page_idx": 12
|
| 1678 |
+
},
|
| 1679 |
+
{
|
| 1680 |
+
"type": "text",
|
| 1681 |
+
"text": "Kai Xiao, Logan Engstrom, Andrew Ilyas, and Aleksander Madry. Noise or signal: The role of image backgrounds in object recognition. arXiv preprint arXiv:2006.09994, 2020. ",
|
| 1682 |
+
"bbox": [
|
| 1683 |
+
173,
|
| 1684 |
+
412,
|
| 1685 |
+
823,
|
| 1686 |
+
441
|
| 1687 |
+
],
|
| 1688 |
+
"page_idx": 12
|
| 1689 |
+
},
|
| 1690 |
+
{
|
| 1691 |
+
"type": "text",
|
| 1692 |
+
"text": "Cihang Xie, Zhishuai Zhang, Yuyin Zhou, Song Bai, Jianyu Wang, Zhou Ren, and Alan L Yuille. Improving transferability of adversarial examples with input diversity. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2730–2739, 2019. ",
|
| 1693 |
+
"bbox": [
|
| 1694 |
+
176,
|
| 1695 |
+
450,
|
| 1696 |
+
821,
|
| 1697 |
+
493
|
| 1698 |
+
],
|
| 1699 |
+
"page_idx": 12
|
| 1700 |
+
},
|
| 1701 |
+
{
|
| 1702 |
+
"type": "text",
|
| 1703 |
+
"text": "Pan Xu, Jinghui Chen, Difan Zou, and Quanquan Gu. Global convergence of langevin dynamics based algorithms for nonconvex optimization. Advances in Neural Information Processing Systems, 31, 2018. ",
|
| 1704 |
+
"bbox": [
|
| 1705 |
+
173,
|
| 1706 |
+
502,
|
| 1707 |
+
821,
|
| 1708 |
+
545
|
| 1709 |
+
],
|
| 1710 |
+
"page_idx": 12
|
| 1711 |
+
},
|
| 1712 |
+
{
|
| 1713 |
+
"type": "text",
|
| 1714 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. ",
|
| 1715 |
+
"bbox": [
|
| 1716 |
+
171,
|
| 1717 |
+
554,
|
| 1718 |
+
823,
|
| 1719 |
+
583
|
| 1720 |
+
],
|
| 1721 |
+
"page_idx": 12
|
| 1722 |
+
},
|
| 1723 |
+
{
|
| 1724 |
+
"type": "text",
|
| 1725 |
+
"text": "Chenggang Zhou, T. C. Schulthess, Stefan Torbrugge, and D. P. Landau. Wang-landau algorithm ¨ for continuous models and joint density of states. Phys. Rev. Lett., 96:120201, Mar 2006. doi: 10.1103/PhysRevLett.96.120201. URL https://link.aps.org/doi/10.1103/ PhysRevLett.96.120201. ",
|
| 1726 |
+
"bbox": [
|
| 1727 |
+
174,
|
| 1728 |
+
592,
|
| 1729 |
+
825,
|
| 1730 |
+
647
|
| 1731 |
+
],
|
| 1732 |
+
"page_idx": 12
|
| 1733 |
+
},
|
| 1734 |
+
{
|
| 1735 |
+
"type": "text",
|
| 1736 |
+
"text": "Juntang Zhuang, Boqing Gong, Liangzhe Yuan, Yin Cui, Hartwig Adam, Nicha Dvornek, Sekhar Tatikonda, James Duncan, and Ting Liu. Surrogate gap minimization improves sharpness-aware training. ICLR, 2022. ",
|
| 1737 |
+
"bbox": [
|
| 1738 |
+
174,
|
| 1739 |
+
657,
|
| 1740 |
+
825,
|
| 1741 |
+
700
|
| 1742 |
+
],
|
| 1743 |
+
"page_idx": 12
|
| 1744 |
+
},
|
| 1745 |
+
{
|
| 1746 |
+
"type": "text",
|
| 1747 |
+
"text": "A APPENDIX A: REPRESENTATIVE INPUTS ",
|
| 1748 |
+
"text_level": 1,
|
| 1749 |
+
"bbox": [
|
| 1750 |
+
174,
|
| 1751 |
+
103,
|
| 1752 |
+
540,
|
| 1753 |
+
118
|
| 1754 |
+
],
|
| 1755 |
+
"page_idx": 13
|
| 1756 |
+
},
|
| 1757 |
+
{
|
| 1758 |
+
"type": "text",
|
| 1759 |
+
"text": "Here we list more representative samples of the CNN-MNIST-0/1 scenario. The samples are bounded by a black box of boundaries. ",
|
| 1760 |
+
"bbox": [
|
| 1761 |
+
174,
|
| 1762 |
+
132,
|
| 1763 |
+
823,
|
| 1764 |
+
161
|
| 1765 |
+
],
|
| 1766 |
+
"page_idx": 13
|
| 1767 |
+
},
|
| 1768 |
+
{
|
| 1769 |
+
"type": "table",
|
| 1770 |
+
"img_path": "images/bf1948b09fba60548ba41be433ac25ba3ecc7334f0121c861a922a4307083b04.jpg",
|
| 1771 |
+
"table_caption": [],
|
| 1772 |
+
"table_footnote": [],
|
| 1773 |
+
"table_body": "<table><tr><td>-50.6 国</td><td>-43.2 -43.9</td><td>-31.5 国</td><td>-18.3 国 -18.5</td><td>-13.8 国</td><td>-0.5 □</td><td></td><td>10.3 ■</td></tr><tr><td>-54.2 国</td><td>国</td><td>-28.9 国</td><td></td><td>国</td><td>-13.9 国</td><td>0.6 国</td><td>8.8 □</td></tr><tr><td>-46.7 国</td><td>-44.2 国</td><td>-32.8 √</td><td>-17.4 √</td><td>-13.9 国</td><td></td><td>-3.5 国</td><td>11.2 ■</td></tr><tr><td>-49.3 国</td><td>-39.0 国</td><td>-26.0 国</td><td>-20.2 国</td><td>-9.8 国</td><td></td><td>0.7 国</td><td>7.9 □</td></tr><tr><td>-49.1 图</td><td>-39.6 国</td><td>-33.4 国</td><td>-23.4 国</td><td>-11.0 □</td><td></td><td>0.8 ■</td><td>6.3 1</td></tr><tr><td>-47.9 国</td><td>-35.7 園</td><td>-32.2 国</td><td>-18.6 国</td><td>-7.6 √</td><td></td><td>-0.7</td><td>9.3</td></tr><tr><td>-47.2</td><td>-43.1</td><td>-33.7</td><td>-16.2</td><td>-14.9</td><td></td><td>国 3.4</td><td>□ 10.4</td></tr><tr><td>国</td><td>国 -38.1</td><td>国 -28.8</td><td>□ -23.4</td><td>国</td><td></td><td>□</td><td>□</td></tr><tr><td>-45.1 国</td><td>国</td><td>国</td><td>国</td><td>-12.2 ?</td><td></td><td>3.9 □</td><td>14.8 ■</td></tr><tr><td>-53.1</td><td>-36.7</td><td>-33.5</td><td>-22.5</td><td>-5.7</td><td></td><td>-1.9</td><td>8.8</td></tr><tr><td>国</td><td>国</td><td>国</td><td>国</td><td>国</td><td></td><td>国</td><td>□</td></tr><tr><td>-48.7</td><td>-43.8</td><td>-31.7</td><td>-22.2</td><td>-8.0</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>0.2</td><td></td></tr><tr><td>国</td><td>国</td><td>国</td><td>国</td><td></td><td>国</td><td>国</td><td>5.8 □</td></tr></table>",
|
| 1774 |
+
"bbox": [
|
| 1775 |
+
197,
|
| 1776 |
+
175,
|
| 1777 |
+
805,
|
| 1778 |
+
549
|
| 1779 |
+
],
|
| 1780 |
+
"page_idx": 13
|
| 1781 |
+
},
|
| 1782 |
+
{
|
| 1783 |
+
"type": "text",
|
| 1784 |
+
"text": "Figure 6: More representative samples of the CNN-MNIST-0/1 model obtained by GWL at different logit values, grouped by logit values. We further group these logit values per 100 bins (100 bins correspond to a difference of 10 in logit value) in $S$ , resulting in about 10 groups. The output values in the first column are within the range [-55,-45) and the second is from [-45,-35], etc. ",
|
| 1785 |
+
"bbox": [
|
| 1786 |
+
173,
|
| 1787 |
+
565,
|
| 1788 |
+
826,
|
| 1789 |
+
622
|
| 1790 |
+
],
|
| 1791 |
+
"page_idx": 13
|
| 1792 |
+
},
|
| 1793 |
+
{
|
| 1794 |
+
"type": "text",
|
| 1795 |
+
"text": "B APPENDIX B: GRADIENT WANG-LANDAU ALGORITHM ",
|
| 1796 |
+
"text_level": 1,
|
| 1797 |
+
"bbox": [
|
| 1798 |
+
174,
|
| 1799 |
+
102,
|
| 1800 |
+
666,
|
| 1801 |
+
118
|
| 1802 |
+
],
|
| 1803 |
+
"page_idx": 14
|
| 1804 |
+
},
|
| 1805 |
+
{
|
| 1806 |
+
"type": "text",
|
| 1807 |
+
"text": "Here we provide the algorithms of the GWL algorithm. The input and output are listed. The hyperparameters are determined mostly by the toy-example. ",
|
| 1808 |
+
"bbox": [
|
| 1809 |
+
176,
|
| 1810 |
+
133,
|
| 1811 |
+
820,
|
| 1812 |
+
161
|
| 1813 |
+
],
|
| 1814 |
+
"page_idx": 14
|
| 1815 |
+
},
|
| 1816 |
+
{
|
| 1817 |
+
"type": "table",
|
| 1818 |
+
"img_path": "images/5621d2b0fd7f21d9204f4c768b3ebd0c68ceb94b25527cb1e676172069f87584.jpg",
|
| 1819 |
+
"table_caption": [],
|
| 1820 |
+
"table_footnote": [],
|
| 1821 |
+
"table_body": "<table><tr><td colspan=\"2\">Algorithm 1 Our proposed Gradient Wang-Landau (GWL)</td></tr><tr><td>lation function g(z, S) for t=1,2,...,Tdo X~Dte while His not flat do</td><td>Require: pretrained model y: X → z, flat histogram H = O,entropy histogram S = 0, increment/step-size lnf, number of iterations T,test set Dte, GWG sampler GWG(z,S), interpo- > Get the continuous interpolation entropy Sin at output z</td></tr><tr><td colspan=\"2\">z =y(x) Sin=g(z,S) X ~ GWG(z,-Sin) = round(z) Round z to the nearest z' that corresponds to one of the bins S[]←S[]+lnf H[]←H[]+1 end while lnf ←lnf/2</td></tr></table>",
|
| 1822 |
+
"bbox": [
|
| 1823 |
+
171,
|
| 1824 |
+
174,
|
| 1825 |
+
826,
|
| 1826 |
+
438
|
| 1827 |
+
],
|
| 1828 |
+
"page_idx": 14
|
| 1829 |
+
},
|
| 1830 |
+
{
|
| 1831 |
+
"type": "text",
|
| 1832 |
+
"text": "C HYPER-PARAMETERS AND IMPLEMENTATION DETAILS FOR GWL AND WL ",
|
| 1833 |
+
"text_level": 1,
|
| 1834 |
+
"bbox": [
|
| 1835 |
+
176,
|
| 1836 |
+
467,
|
| 1837 |
+
797,
|
| 1838 |
+
497
|
| 1839 |
+
],
|
| 1840 |
+
"page_idx": 14
|
| 1841 |
+
},
|
| 1842 |
+
{
|
| 1843 |
+
"type": "text",
|
| 1844 |
+
"text": "The hyper-parameters for GWL and WL are extremely similar, if not identical, as the only major difference between GWL and WL is the gradient proposal versus the random proposal. We first preset a large enough range of output values for the sampler to explore the trained neural network models. In our experiments, we found that the output (logit) values of the binary classifiers typically fall in the range of -300 to 100 (based on ResNet). Therefore, we use this range for all experiments. For flatness histogram $H$ , the bin window size is set to be 1, resulting in 400 bins. The histogram $H$ is considered flat if the difference between maximum bin value and minimum bin value is smaller than the average bin value. For output histogram $S$ , we set the bin window size to be 0.1, resulting in 4000 bins. Instead of updating one bin at a time for $S$ , we update the neighbor bins with exponential decay. We use the linear interpolation to approximate the bins for continuous queries. We iterate 5 times with test set initialization. Every step the GWG tries to at most update 10 pixels. ",
|
| 1845 |
+
"bbox": [
|
| 1846 |
+
173,
|
| 1847 |
+
515,
|
| 1848 |
+
825,
|
| 1849 |
+
667
|
| 1850 |
+
],
|
| 1851 |
+
"page_idx": 14
|
| 1852 |
+
},
|
| 1853 |
+
{
|
| 1854 |
+
"type": "text",
|
| 1855 |
+
"text": "D SAMPLES SIMILARITY ",
|
| 1856 |
+
"text_level": 1,
|
| 1857 |
+
"bbox": [
|
| 1858 |
+
174,
|
| 1859 |
+
688,
|
| 1860 |
+
393,
|
| 1861 |
+
704
|
| 1862 |
+
],
|
| 1863 |
+
"page_idx": 14
|
| 1864 |
+
},
|
| 1865 |
+
{
|
| 1866 |
+
"type": "text",
|
| 1867 |
+
"text": "The samples in the most dominant peak may be closer to class 0 than to class 1. We compute the L2 pixel-wise distance from the uniform noise image to the samples of class 1 and 0 respectively. The mean L2 distance from uniform noise to 0 is around 0.3121 and that from uniform noise to 1 is around 0.3236. The distance between 1 and 0 samples is 0.1652. This result shows the samples in the most dominant peak are closer to class 0 samples than class 1 samples. More rigorous experiments to a definite conclusion is yet required as future work. ",
|
| 1868 |
+
"bbox": [
|
| 1869 |
+
174,
|
| 1870 |
+
719,
|
| 1871 |
+
825,
|
| 1872 |
+
804
|
| 1873 |
+
],
|
| 1874 |
+
"page_idx": 14
|
| 1875 |
+
}
|
| 1876 |
+
]
|
parse/dev/TntbHxxGd6j/TntbHxxGd6j_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/TySnJ-0RdKI/TySnJ-0RdKI_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/WVX0NNVBBkV/WVX0NNVBBkV.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|