SlowGuess commited on
Commit
745895f
·
verified ·
1 Parent(s): fd3c511

Add Batch 2d67cea3-cee4-4510-ab89-d0d709725a2a

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +64 -0
  2. 2002.08xxx/2002.08148/4b37942e-c8d0-4694-b8f8-d16a21c66fe7_content_list.json +0 -0
  3. 2002.08xxx/2002.08148/4b37942e-c8d0-4694-b8f8-d16a21c66fe7_model.json +0 -0
  4. 2002.08xxx/2002.08148/4b37942e-c8d0-4694-b8f8-d16a21c66fe7_origin.pdf +3 -0
  5. 2002.08xxx/2002.08148/full.md +732 -0
  6. 2002.08xxx/2002.08148/images.zip +3 -0
  7. 2002.08xxx/2002.08148/layout.json +0 -0
  8. 2002.08xxx/2002.08155/9ddac694-f769-4a0a-acb8-3d4e0835ba7b_content_list.json +2067 -0
  9. 2002.08xxx/2002.08155/9ddac694-f769-4a0a-acb8-3d4e0835ba7b_model.json +0 -0
  10. 2002.08xxx/2002.08155/9ddac694-f769-4a0a-acb8-3d4e0835ba7b_origin.pdf +3 -0
  11. 2002.08xxx/2002.08155/full.md +428 -0
  12. 2002.08xxx/2002.08155/images.zip +3 -0
  13. 2002.08xxx/2002.08155/layout.json +0 -0
  14. 2002.08xxx/2002.08165/a4f0c2ad-a173-4b99-8972-7a973b7b598f_content_list.json +1793 -0
  15. 2002.08xxx/2002.08165/a4f0c2ad-a173-4b99-8972-7a973b7b598f_model.json +0 -0
  16. 2002.08xxx/2002.08165/a4f0c2ad-a173-4b99-8972-7a973b7b598f_origin.pdf +3 -0
  17. 2002.08xxx/2002.08165/full.md +428 -0
  18. 2002.08xxx/2002.08165/images.zip +3 -0
  19. 2002.08xxx/2002.08165/layout.json +0 -0
  20. 2002.08xxx/2002.08196/36a27757-1c49-4da1-b5a3-ec1408b5d759_content_list.json +1781 -0
  21. 2002.08xxx/2002.08196/36a27757-1c49-4da1-b5a3-ec1408b5d759_model.json +2031 -0
  22. 2002.08xxx/2002.08196/36a27757-1c49-4da1-b5a3-ec1408b5d759_origin.pdf +3 -0
  23. 2002.08xxx/2002.08196/full.md +428 -0
  24. 2002.08xxx/2002.08196/images.zip +3 -0
  25. 2002.08xxx/2002.08196/layout.json +0 -0
  26. 2002.08xxx/2002.08235/e47c5a69-7d21-48e3-9d80-4939a14a1d4e_content_list.json +0 -0
  27. 2002.08xxx/2002.08235/e47c5a69-7d21-48e3-9d80-4939a14a1d4e_model.json +0 -0
  28. 2002.08xxx/2002.08235/e47c5a69-7d21-48e3-9d80-4939a14a1d4e_origin.pdf +3 -0
  29. 2002.08xxx/2002.08235/full.md +715 -0
  30. 2002.08xxx/2002.08235/images.zip +3 -0
  31. 2002.08xxx/2002.08235/layout.json +0 -0
  32. 2002.08xxx/2002.08243/5cf00148-c56b-49a8-b569-25f6b6dabd16_content_list.json +0 -0
  33. 2002.08xxx/2002.08243/5cf00148-c56b-49a8-b569-25f6b6dabd16_model.json +0 -0
  34. 2002.08xxx/2002.08243/5cf00148-c56b-49a8-b569-25f6b6dabd16_origin.pdf +3 -0
  35. 2002.08xxx/2002.08243/full.md +0 -0
  36. 2002.08xxx/2002.08243/images.zip +3 -0
  37. 2002.08xxx/2002.08243/layout.json +0 -0
  38. 2002.08xxx/2002.08246/71cdedc4-ea57-42fa-8215-2dac1de995f9_content_list.json +0 -0
  39. 2002.08xxx/2002.08246/71cdedc4-ea57-42fa-8215-2dac1de995f9_model.json +0 -0
  40. 2002.08xxx/2002.08246/71cdedc4-ea57-42fa-8215-2dac1de995f9_origin.pdf +3 -0
  41. 2002.08xxx/2002.08246/full.md +0 -0
  42. 2002.08xxx/2002.08246/images.zip +3 -0
  43. 2002.08xxx/2002.08246/layout.json +0 -0
  44. 2002.08xxx/2002.08264/1ab8352f-8757-44cd-b927-0e5a09266b46_content_list.json +0 -0
  45. 2002.08xxx/2002.08264/1ab8352f-8757-44cd-b927-0e5a09266b46_model.json +0 -0
  46. 2002.08xxx/2002.08264/1ab8352f-8757-44cd-b927-0e5a09266b46_origin.pdf +3 -0
  47. 2002.08xxx/2002.08264/full.md +465 -0
  48. 2002.08xxx/2002.08264/images.zip +3 -0
  49. 2002.08xxx/2002.08264/layout.json +0 -0
  50. 2002.08xxx/2002.08267/a18561e3-151b-44a2-895b-fa2c83db4550_content_list.json +1752 -0
.gitattributes CHANGED
@@ -7919,3 +7919,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
7919
  2002.11xxx/2002.11045/4e31a3ef-68f3-44cf-a91c-91c3f3348a7a_origin.pdf filter=lfs diff=lfs merge=lfs -text
7920
  2003.01xxx/2003.01043/385a1eeb-d614-46f7-b8c4-b6d98024e74e_origin.pdf filter=lfs diff=lfs merge=lfs -text
7921
  2003.04xxx/2003.04816/93ea2de7-b123-481a-8d57-ff0eff6b21db_origin.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7919
  2002.11xxx/2002.11045/4e31a3ef-68f3-44cf-a91c-91c3f3348a7a_origin.pdf filter=lfs diff=lfs merge=lfs -text
7920
  2003.01xxx/2003.01043/385a1eeb-d614-46f7-b8c4-b6d98024e74e_origin.pdf filter=lfs diff=lfs merge=lfs -text
7921
  2003.04xxx/2003.04816/93ea2de7-b123-481a-8d57-ff0eff6b21db_origin.pdf filter=lfs diff=lfs merge=lfs -text
7922
+ 2002.08xxx/2002.08148/4b37942e-c8d0-4694-b8f8-d16a21c66fe7_origin.pdf filter=lfs diff=lfs merge=lfs -text
7923
+ 2002.08xxx/2002.08155/9ddac694-f769-4a0a-acb8-3d4e0835ba7b_origin.pdf filter=lfs diff=lfs merge=lfs -text
7924
+ 2002.08xxx/2002.08165/a4f0c2ad-a173-4b99-8972-7a973b7b598f_origin.pdf filter=lfs diff=lfs merge=lfs -text
7925
+ 2002.08xxx/2002.08196/36a27757-1c49-4da1-b5a3-ec1408b5d759_origin.pdf filter=lfs diff=lfs merge=lfs -text
7926
+ 2002.08xxx/2002.08235/e47c5a69-7d21-48e3-9d80-4939a14a1d4e_origin.pdf filter=lfs diff=lfs merge=lfs -text
7927
+ 2002.08xxx/2002.08243/5cf00148-c56b-49a8-b569-25f6b6dabd16_origin.pdf filter=lfs diff=lfs merge=lfs -text
7928
+ 2002.08xxx/2002.08246/71cdedc4-ea57-42fa-8215-2dac1de995f9_origin.pdf filter=lfs diff=lfs merge=lfs -text
7929
+ 2002.08xxx/2002.08264/1ab8352f-8757-44cd-b927-0e5a09266b46_origin.pdf filter=lfs diff=lfs merge=lfs -text
7930
+ 2002.08xxx/2002.08267/a18561e3-151b-44a2-895b-fa2c83db4550_origin.pdf filter=lfs diff=lfs merge=lfs -text
7931
+ 2002.08xxx/2002.08277/ca75fd18-4b41-4fe5-b8bc-d0ae5577e4fd_origin.pdf filter=lfs diff=lfs merge=lfs -text
7932
+ 2002.08xxx/2002.08307/3a0f8e54-b8ce-4d7c-81c2-9784799b7f00_origin.pdf filter=lfs diff=lfs merge=lfs -text
7933
+ 2002.08xxx/2002.08325/ffb2aac4-d9b8-4126-a404-588b0e5b6771_origin.pdf filter=lfs diff=lfs merge=lfs -text
7934
+ 2002.08xxx/2002.08347/d44e934c-b2e3-419d-90ee-9347836545fb_origin.pdf filter=lfs diff=lfs merge=lfs -text
7935
+ 2002.08xxx/2002.08394/85a7b294-91dd-40ca-a034-6e04e8b49755_origin.pdf filter=lfs diff=lfs merge=lfs -text
7936
+ 2002.08xxx/2002.08396/9d5d2929-b564-42c3-af9b-13ed60b50af1_origin.pdf filter=lfs diff=lfs merge=lfs -text
7937
+ 2002.08xxx/2002.08397/9284e1cb-52b1-4f57-910a-a7ee814a6223_origin.pdf filter=lfs diff=lfs merge=lfs -text
7938
+ 2002.08xxx/2002.08404/6da3463f-a25e-47b0-94e2-11f0366be3cb_origin.pdf filter=lfs diff=lfs merge=lfs -text
7939
+ 2002.08xxx/2002.08456/956e79df-3b01-4a38-94f8-8186effe7fde_origin.pdf filter=lfs diff=lfs merge=lfs -text
7940
+ 2002.08xxx/2002.08473/3f6ee982-2db8-4e5a-ad96-1a172328f66c_origin.pdf filter=lfs diff=lfs merge=lfs -text
7941
+ 2002.08xxx/2002.08484/9f6e1222-c09c-48e7-bcbc-0681f0e3dae4_origin.pdf filter=lfs diff=lfs merge=lfs -text
7942
+ 2002.08xxx/2002.08512/78af43d6-17f2-4425-be7e-b72e4f8dde14_origin.pdf filter=lfs diff=lfs merge=lfs -text
7943
+ 2002.08xxx/2002.08526/83443e7a-a56c-4ebe-bd9f-be039b4bcbaa_origin.pdf filter=lfs diff=lfs merge=lfs -text
7944
+ 2002.08xxx/2002.08546/bd0e2e46-390d-4b0f-9240-85ab0470567c_origin.pdf filter=lfs diff=lfs merge=lfs -text
7945
+ 2002.08xxx/2002.08550/b74835d7-c486-4a1a-9a73-90b8eb838fae_origin.pdf filter=lfs diff=lfs merge=lfs -text
7946
+ 2002.08xxx/2002.08554/51d08364-511a-4f8f-a075-72dfba43f726_origin.pdf filter=lfs diff=lfs merge=lfs -text
7947
+ 2002.08xxx/2002.08565/32da5808-6ee0-4578-8fd5-7b3c30667caf_origin.pdf filter=lfs diff=lfs merge=lfs -text
7948
+ 2002.08xxx/2002.08584/03c806e7-2fcd-4100-bfc0-f442bb472fc7_origin.pdf filter=lfs diff=lfs merge=lfs -text
7949
+ 2002.08xxx/2002.08596/7647297c-a725-406a-a486-96d32695a817_origin.pdf filter=lfs diff=lfs merge=lfs -text
7950
+ 2002.08xxx/2002.08599/194debec-3886-403b-b2dd-a0077087e94f_origin.pdf filter=lfs diff=lfs merge=lfs -text
7951
+ 2002.08xxx/2002.08611/e138291d-143c-4f0d-b9fd-d329ba71058b_origin.pdf filter=lfs diff=lfs merge=lfs -text
7952
+ 2002.08xxx/2002.08619/68c41d0f-29f8-467f-b892-64be1c1c63b7_origin.pdf filter=lfs diff=lfs merge=lfs -text
7953
+ 2002.08xxx/2002.08627/d338ef3a-b6a1-4e01-a431-097242fb4c89_origin.pdf filter=lfs diff=lfs merge=lfs -text
7954
+ 2002.08xxx/2002.08648/6bc06e77-248d-457c-b9a7-e71afc03e271_origin.pdf filter=lfs diff=lfs merge=lfs -text
7955
+ 2002.08xxx/2002.08653/97d01a39-5b21-46e3-b814-9d73a5c13889_origin.pdf filter=lfs diff=lfs merge=lfs -text
7956
+ 2002.08xxx/2002.08676/3f8f6e77-f73a-44d9-a15f-1ba27ff524af_origin.pdf filter=lfs diff=lfs merge=lfs -text
7957
+ 2002.08xxx/2002.08681/5ce3f04e-7ca3-4aa4-aa1f-9f4aa75ffb82_origin.pdf filter=lfs diff=lfs merge=lfs -text
7958
+ 2002.08xxx/2002.08694/05330124-752f-4263-88a5-35109740c619_origin.pdf filter=lfs diff=lfs merge=lfs -text
7959
+ 2002.08xxx/2002.08709/01ddf978-0153-4fd8-a415-41fd9eb7d0f7_origin.pdf filter=lfs diff=lfs merge=lfs -text
7960
+ 2002.08xxx/2002.08721/f43344c3-ca85-4821-84ea-de6e9594f1ad_origin.pdf filter=lfs diff=lfs merge=lfs -text
7961
+ 2002.08xxx/2002.08725/7729e557-779c-4a59-8d91-c17183bfc6a4_origin.pdf filter=lfs diff=lfs merge=lfs -text
7962
+ 2002.08xxx/2002.08736/8f6ea2df-ef0d-4564-bd1d-f4dcd4f1ea38_origin.pdf filter=lfs diff=lfs merge=lfs -text
7963
+ 2002.08xxx/2002.08742/69192314-9568-46d0-bb6a-2001ef6539b8_origin.pdf filter=lfs diff=lfs merge=lfs -text
7964
+ 2002.08xxx/2002.08791/68c53273-5c84-4480-a2bc-857f206a7d79_origin.pdf filter=lfs diff=lfs merge=lfs -text
7965
+ 2002.08xxx/2002.08822/87da5ba6-8ae5-452e-bcc0-9f01683867df_origin.pdf filter=lfs diff=lfs merge=lfs -text
7966
+ 2002.08xxx/2002.08860/0dad9aed-ce20-4e79-9276-4c2a97729e30_origin.pdf filter=lfs diff=lfs merge=lfs -text
7967
+ 2002.08xxx/2002.08871/a11d928b-b0bd-4cf8-8d92-7a34b9582387_origin.pdf filter=lfs diff=lfs merge=lfs -text
7968
+ 2002.08xxx/2002.08872/f832dad5-a185-452b-9a0c-2352d132efa9_origin.pdf filter=lfs diff=lfs merge=lfs -text
7969
+ 2002.08xxx/2002.08926/88867773-862f-4e5e-8fa6-e20326a9d549_origin.pdf filter=lfs diff=lfs merge=lfs -text
7970
+ 2002.08xxx/2002.08933/22e006f9-3ee0-467b-9d6c-c5c4d42de9ce_origin.pdf filter=lfs diff=lfs merge=lfs -text
7971
+ 2002.08xxx/2002.08945/35be0253-d734-4a88-a43c-e94d21c5cabf_origin.pdf filter=lfs diff=lfs merge=lfs -text
7972
+ 2002.08xxx/2002.08947/0368a2fd-5603-42d7-9a16-765bff8ae9f2_origin.pdf filter=lfs diff=lfs merge=lfs -text
7973
+ 2002.08xxx/2002.08973/1c2a68cf-882c-4d19-b43b-079f6633b480_origin.pdf filter=lfs diff=lfs merge=lfs -text
7974
+ 2002.08xxx/2002.08988/867bd95b-c077-480b-ae1e-d985a25684c3_origin.pdf filter=lfs diff=lfs merge=lfs -text
7975
+ 2002.08xxx/2002.08991/137bd191-08ad-4247-98a8-683a6bc1a736_origin.pdf filter=lfs diff=lfs merge=lfs -text
7976
+ 2002.09xxx/2002.09002/8a065a48-f205-44ac-89c3-cd75187cdf86_origin.pdf filter=lfs diff=lfs merge=lfs -text
7977
+ 2002.09xxx/2002.09038/44d8309e-7055-4cf0-b541-617d6fb28101_origin.pdf filter=lfs diff=lfs merge=lfs -text
7978
+ 2002.09xxx/2002.09040/d46272cb-0768-4623-8441-962502923bec_origin.pdf filter=lfs diff=lfs merge=lfs -text
7979
+ 2002.09xxx/2002.09054/5ced2a89-7d6f-46c8-af11-fcbe52a3eb94_origin.pdf filter=lfs diff=lfs merge=lfs -text
7980
+ 2002.09xxx/2002.09062/14fe1cce-e3ca-4565-9b33-47977fea0b66_origin.pdf filter=lfs diff=lfs merge=lfs -text
7981
+ 2002.09xxx/2002.09072/d77eb57a-ae69-4891-afea-dcf6262709bd_origin.pdf filter=lfs diff=lfs merge=lfs -text
7982
+ 2002.09xxx/2002.09270/ea5713ce-e107-4c62-ae99-da2c1732e199_origin.pdf filter=lfs diff=lfs merge=lfs -text
7983
+ 2002.09xxx/2002.09277/14e5ca3a-86de-4f52-bec0-96a32d06bc13_origin.pdf filter=lfs diff=lfs merge=lfs -text
7984
+ 2002.09xxx/2002.09283/46414b69-89d5-4a99-b553-a19b8546a31d_origin.pdf filter=lfs diff=lfs merge=lfs -text
7985
+ 2002.11xxx/2002.11770/cc1dc24f-cb28-4ab2-a86d-aff2d87643ab_origin.pdf filter=lfs diff=lfs merge=lfs -text
2002.08xxx/2002.08148/4b37942e-c8d0-4694-b8f8-d16a21c66fe7_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08148/4b37942e-c8d0-4694-b8f8-d16a21c66fe7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08148/4b37942e-c8d0-4694-b8f8-d16a21c66fe7_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:935a97dc6088f7560ed045c072db0c1a03ff4b55993424c91bcd0092677f0a06
3
+ size 401618
2002.08xxx/2002.08148/full.md ADDED
@@ -0,0 +1,732 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Massive MIMO Transmission for LEO Satellite Communications
2
+
3
+ Li You, Ke-Xin Li, Jiaheng Wang, Xiqi Gao, Xiang-Gen Xia, and Björn Ottersten
4
+
5
+ # Abstract
6
+
7
+ Low earth orbit (LEO) satellite communications are expected to be incorporated in future wireless networks, in particular 5G and beyond networks, to provide global wireless access with enhanced data rates. Massive multiple-input multiple-output (MIMO) techniques, though widely used in terrestrial communication systems, have not been applied to LEO satellite communication systems. In this paper, we propose a massive MIMO transmission scheme with full frequency reuse (FFR) for LEO satellite communication systems and exploit statistical channel state information (sCSI) to address the difficulty of obtaining instantaneous CSI (iCSI) at the transmitter. We first establish the massive MIMO channel model for LEO satellite communications and simplify the transmission designs via performing Doppler and delay compensations at user terminals (UTs). Then, we develop the low-complexity sCSI based downlink (DL) precoder and uplink (UL) receiver in closed-form, aiming to maximize the average signal-to-leakage-plus-noise ratio (ASLNR) and the average signal-to-interference-plus-noise ratio (ASINR), respectively. It is shown that the DL ASLNRs and UL ASINRs of all UTs reach their upper bounds under some channel condition. Motivated by this, we propose a space angle based user grouping (SAUG) algorithm to schedule the served UTs into different groups, where each group of UTs use the same time and frequency resource. The proposed algorithm is asymptotically optimal in the sense that the lower and upper bounds of the achievable rate coincide when the number of satellite antennas or UT groups is sufficiently large. Numerical results demonstrate that the proposed massive MIMO transmission scheme with FFR significantly enhances the data rate of LEO satellite communication systems. Notably, the proposed sCSI based precoder and receiver achieve the similar performance with the iCSI based ones that are often infeasible in practice.
8
+
9
+ # Index Terms
10
+
11
+ LEO satellite, massive MIMO, multibeam satellite, full frequency reuse, statistical CSI, user grouping.
12
+
13
+ This work will be presented in part at the IEEE International Conference on Communications, Dublin, Ireland, Jun. 2020 [1]. L. You, K.-X. Li, J. Wang, and X. Q. Gao are with the National Mobile Communications Research Laboratory, Southeast University, Nanjing 210096, China, and also with the Purple Mountain Laboratories, Nanjing 211100, China (e-mail: liyou@seu.edu.cn; likexin3488@seu.edu.cn; jhwang@seu.edu.cn; xqgao@seu.edu.cn). X.-G. Xia is with the Department of Electrical and Computer Engineering, University of Delaware, Newark, DE 19716 USA (e-mail: xxia@ee.udel.edu). B. Ottersten is with the Interdisciplinary Centre for Security, Reliability and Trust (SnT), University of Luxembourg, L-2721 Luxembourg City, Luxembourg (e-mail: bjorn.ottersten@uni.lu). (Corresponding author: Xiqi Gao.)
14
+
15
+ # I. INTRODUCTION
16
+
17
+ Satellite communication systems can provide seamless wireless coverage so as to complement and extend terrestrial communication networks and, as in recent standardization endeavors [2], are expected to be incorporated in future wireless networks, in particular 5G and beyond networks. Low earth orbit (LEO) satellite communications, with orbits at altitudes of less than 2000 km, have recently gained broad research interests due to the potential in providing global wireless access with enhanced data rates. Compared with the geostationary earth orbit (GEO) counterpart, LEO satellite communication systems impose much less stringent requirements on, e.g., power consumption and transmission signal delays. Recently, several projects, e.g., OneWeb and SpaceX, on LEO satellite communication systems have been launched [3].
18
+
19
+ In satellite communication systems, multibeam transmission techniques have been widely adopted to increase transmission data rates. As a well-know multibeam solution, a four-color frequency reuse (FR4) scheme where adjacent beams are allocated with non-overlapping frequency spectrum (or different polarizations) is adopted to mitigate the co-channel inter-beam interference [4], [5]. To further enhance the spectral efficiency of satellite communications, the more aggressive full frequency reuse (FFR) schemes [4]–[8], where frequency resources are reused across neighboring beams, have been considered to increase the total available bandwidth in each beam as that has been done in terrestrial cellular systems. Yet, in FFR the inter-beam interference becomes a critical issue, which has to be properly handled. In general, inter-beam interference management can be performed at either the transmitter via precoding or at the receiver via multi-user detection, similar as in terrestrial cellular communication systems [9]. Compared with non-linear dirty paper coding (DPC) precoding and multi-user detection, in practice linear precoding and detection are more preferred in multibeam satellite communication systems due to their low computational complexity and near-optimal performance [10].
20
+
21
+ It is worth noting that most of the existing works on downlink (DL) precoding in multibeam satellite communications, e.g., [4], [5], rely on precise instantaneous channel state information (iCSI). However, obtaining iCSI at the transmitter sides of satellite communication systems is usually difficult and even infeasible due to a number of practical factors, especially the long propagation delay between a satellite and user terminals (UTs) as well as the mobility of UTs and satellites. In particular, for time-division duplex (TDD) systems, the coherence time of the channel is shorter than the transmission delay, which makes obtaining accurate iCSI via the UL-
22
+
23
+ DL reciprocity a mission impossible. On the other hand, in more common frequency-division duplex (FDD) systems, obtaining iCSI at the satellite side requires UL feedback from UTs, which inevitably introduces a great among of training and feedback overhead due to mobility of UTs and more importantly could become outdated as a result of the long propagation delay.
24
+
25
+ In recent years, massive multiple-input multiple-output (MIMO) transmission, where a large number of antennas are equipped at a base station to serve many UTs, has been applied in terrestrial cellular wireless networks, e.g., 5G [11], [12], as an enabling technology. Massive MIMO can substantially increase available degrees of freedom, enhance spectral efficiency, and achieve high data rates. Motivated by this, we propose to exploit massive MIMO along with FFR for LEO satellite communication systems, where a large number of antennas are equipped at the LEO satellite side. Our focus is particularized on the physical layer transmission design for massive MIMO LEO satellite communication systems. We note that it is not necessary to perform predefined multiple beamforming in fully digital-implemented FFR satellite communication systems. Exploiting massive MIMO for satellite communications with FFR can be seen as a technique without predefined beamforming.
26
+
27
+ Albeit the existence of a large body of literature on massive MIMO in terrestrial cellular communication systems [12], so far massive MIMO has not been applied to satellite communication systems. The performance of massive MIMO systems relies substantially on the available CSI [13]–[15]. As mentioned above, obtaining accurate DL iCSI at the LEO satellite side is generally difficult and even infeasible due to the long propagation delay and the mobility of satellites and UTs, which makes inapplicable of the existing terrestrial massive MIMO transmission approaches relying on iCSI. Meanwhile, the implementation complexity accompanied with massive MIMO becomes a critical concern in satellite communication systems considering the payload limitation on satellites. Consequently, incorporating massive MIMO into LEO satellite communication systems is still an open and challenging task.
28
+
29
+ For massive MIMO, obtaining iCSI at the transmitter has been a difficult problem even in terrestrial communication systems, especially in high-mobility scenarios. Compared with iCSI, statistical CSI (sCSI) varies much slower and thus can be relatively easily obtained at both the satellite and the UTs with sufficiently high accuracy. Hence, sCSI based DL precoding has been proposed in terrestrial massive MIMO systems [14]–[16]. For massive MIMO satellite communication systems, it is more practical to use sCSI, which can overcome the difficulty of acquiring iCSI and significantly reduce the computational overhead of satellite payloads via the
30
+
31
+ much less frequent update of transmission strategies including, e.g., DL precoding, UL receiving, and user grouping.
32
+
33
+ In this paper, we investigate massive MIMO transmission for LEO satellite communication systems using FFR based on sCSI. In particular, we focus on devising DL precoding, UL receiving, and user grouping utilizing sCSI. While this paper focuses on the LEO satellite communications, the proposed massive MIMO transmission schemes can also be extended to other non-terrestrial communication systems, e.g., GEO satellite communication systems, and high-altitude platform (HAP) communication systems. The major contributions of the current work are summarized as follows:
34
+
35
+ - We introduce massive MIMO into LEO satellite communication systems using FFR and investigate low-complexity and low-overhead transmission strategies based on sCSI.
36
+ - We establish the massive MIMO channel model for LEO satellite communications by incorporating the LEO satellite signal propagation properties, and simplify the UL/DL transmission designs via performing Doppler and delay compensations at UTs.
37
+ - We develop the sCSI based DL precoder and UL receiver in closed-form, aiming to maximize the average signal-to-leakage-plus-noise ratio (ASLNR) and the average signal-to-interference-plus-noise ratio (ASINR), respectively, and theoretically prove that the proposed sCSI based scheme asymptotically approaches the iCSI based one.
38
+ - We propose a space angle based user grouping (SAUG) algorithm using only the channel space angle information, and show that the proposed algorithm is asymptotically optimal in the sense that the lower and upper bounds of the achievable rate coincide when the number of satellite antennas or UT groups is sufficiently large.
39
+ - Simulation results demonstrate that the proposed massive MIMO transmission scheme with FFR significantly enhances the data rate of LEO satellite communication systems. Notably, the proposed sCSI based precoder and receiver achieve the similar performance with the iCSI based ones that are often infeasible in practice.
40
+
41
+ The rest of the paper is organized as follows. In Section II, we investigate the channel model and the corresponding transmission signal model for LEO satellite communication systems. Based on the system model, we then investigate the optimal DL and UL transmission strategies for LEO satellite communications in Section III. In Section IV, we further investigate user grouping. We present the numerical results in Section V and conclude the paper in Section VI.
42
+
43
+ TABLEI VARIABLE LIST
44
+
45
+ <table><tr><td>Notation</td><td>Definition</td></tr><tr><td>Mx, My</td><td>Numbers of antennas of UPA at x- and y- axes</td></tr><tr><td>gdlk,p, gulk,p</td><td>Complex channel gains for DL and UL</td></tr><tr><td>Pk</td><td>Number of multipaths</td></tr><tr><td>νk,p, νsatk,p, νsatk,p, νutk,p</td><td>Doppler frequencies</td></tr><tr><td>τk,p, τmink,p, τmaxk,p, τutk,p</td><td>Propagation delays</td></tr><tr><td>vsk,p, vxk,p, vyk,p, vk</td><td>DL array response vectors</td></tr><tr><td>uk, uxk,p, uyk,p</td><td>UL array response vectors</td></tr><tr><td>gd(t,f), gul(k,t,f)</td><td>DL and UL channel vectors</td></tr><tr><td>gd(t,f), gul(k,t,f)</td><td>Complex channel gains after compensation</td></tr><tr><td>θxk,p, θyk,p, θxk,p, θyk,p</td><td>Angles</td></tr><tr><td>φxk,p, φyk,p, φxk,p, φyk,p</td><td>Space angles</td></tr><tr><td>γk</td><td>Channel power</td></tr><tr><td>κk</td><td>Rician factor</td></tr><tr><td>Nus, Ncp</td><td>Numbers of subcarriers and CP</td></tr><tr><td>Ts</td><td>System sampling interval</td></tr><tr><td>Tus, Tcp</td><td>Lengths of OFDM symbol and CP</td></tr><tr><td>gd(k,ℓ,n, gulk,ℓ,n)</td><td>Effective DL and UL frequency domain channel vectors after compensation</td></tr><tr><td>gd(k,ℓ,n, gulk,ℓ,n)</td><td>Effective DL and UL frequency domain channel gains after compensation</td></tr><tr><td>gd(k, gulk,p)</td><td>DL and UL channel vectors</td></tr><tr><td>qdlk,p, qulk,p</td><td>DL and UL transmit power</td></tr><tr><td>bk, wk</td><td>Normalized DL precoder and UL receiver</td></tr><tr><td>ASLNRk, ASINRk</td><td>DL ASLNR and UL ASINR</td></tr><tr><td>Gx, Gy</td><td>Number of groups at x- and y- axes</td></tr><tr><td>Δx, Δy</td><td>Lengths of space angle interval at x- and y- axes</td></tr><tr><td>A(m,n)(g,r)</td><td>Space angle interval</td></tr><tr><td>K(g,r)</td><td>Set of UTs in group (g,r)</td></tr><tr><td>Rdl, Rdil, Rdlb</td><td>DL ergodic rate and its upper bound, lower bound</td></tr></table>
46
+
47
+ The major variables adopted in the paper is listed in Table I for ease of reference.
48
+
49
+ # II. SYSTEM MODEL
50
+
51
+ # A. System Setup
52
+
53
+ Consider a LEO satellite communication system where a satellite provides services to a number of single-antenna UTs simultaneously. The satellite is equipped with a uniform planar array (UPA) composed of $M = M_{\mathrm{x}}M_{\mathrm{y}}$ antennas where $M_{\mathrm{x}}$ and $M_{\mathrm{y}}$ are the numbers of antennas on the x- and y-axes, respectively. Assume without loss of generality that the antennas are separated by one-half wavelength in both the x- and y-axes, and both $M_{\mathrm{x}}$ and $M_{\mathrm{y}}$ are even. The system setup is illustrated in Fig. 1.
54
+
55
+ ![](images/25389a2534b054e8efbb58c89b31c8cfd1586b0dff796ed2177895abc0316563.jpg)
56
+ Fig. 1. Illustration of the LEO satellite communication system setup.
57
+
58
+ # B. DL Channel Model
59
+
60
+ As different UTs are usually spatially separated by a few wavelengths, it is reasonable to assume that the channel realizations between the satellite and different UTs are uncorrelated [17]. We focus on investigating the DL channel between the satellite and UT $k$ . Using a ray-tracing based channel modeling approach, the complex baseband DL space domain channel response between the LEO satellite and UT $k$ at instant $t$ and frequency $f$ can be represented by [18]–[20]
61
+
62
+ $$
63
+ \mathbf {g} _ {k} ^ {\mathrm {d l}} (t, f) = \sum_ {p = 0} ^ {P _ {k} - 1} g _ {k, p} ^ {\mathrm {d l}} \cdot \exp \left\{\bar {\jmath} 2 \pi \left[ t \nu_ {k, p} - f \tau_ {k, p} \right] \right\} \cdot \mathbf {v} _ {k, p} \in \mathbb {C} ^ {M \times 1}, \tag {1}
64
+ $$
65
+
66
+ where $\mathbb{C}^{M\times N}$ denotes the $M\times N$ dimensional complex-valued vector space, $\bar{j} = \sqrt{-1}$ , $P_{k}$ denotes the number of channel propagation paths of UT $k$ , and $g_{k,p}^{\mathrm{dl}}$ , $\nu_{k,p}$ , $\tau_{k,p}$ , and $\mathbf{v}_{k,p}\in \mathbb{C}^{M\times 1}$ are the complex-valued gain, the Doppler shift, the propagation delay, and the DL array response vector associated with path $p$ of UT $k$ , respectively. Note that the channel model adopted in (1) is applicable over the time intervals of interest where the relative positions of the LEO satellite and UT $k$ do not change significantly, and thus the physical channel parameters, $P_{k}$ , $g_{k,p}^{\mathrm{dl}}$ , $\nu_{k,p}$ , $\tau_{k,p}$ , and $\mathbf{v}_{k,p}$ , are assumed to be invariant. When the LEO satellite and/or the UT move over
67
+
68
+ large distances, the above channel parameters will vary and should be updated accordingly [19]. It is worth mentioning that the ray-tracing based channel model in (1) can be applied to different propagation scenarios, and further analysis of the channel model will depend on the parameter properties in the specific scenario. Hereafter, we detail some propagation characteristics of the LEO satellite channels and their impact on the modeling of the channel parameters in (1).
69
+
70
+ 1) Doppler: For LEO satellite communications, assuming that the scatterers are stationary in the considered interval of interest, then the Doppler shift $\nu_{k,p}$ associated with propagation path $p$ of UT $k$ is mainly composed of two independent Doppler shifts, $\nu_{k,p}^{\mathrm{sat}}$ and $\nu_{k,p}^{\mathrm{ut}}$ , that are caused by the motions of the LEO satellite and the UT, respectively [21], [22].
71
+
72
+ It is worth noting that due to the relatively high altitude of the LEO satellite, the Doppler shifts $\nu_{k,p}^{\mathrm{sat}}$ caused by the motion of the LEO satellite can be assumed to be identical for different propagation paths $p$ of the same UT $k$ [21], [22], and different for different UTs. Thus, for notation simplicity, we omit the path index of the Doppler shift $\nu_{k,p}^{\mathrm{sat}}$ due to the motion of the LEO satellite and rewrite the Doppler shifts as $\nu_{k,p}^{\mathrm{sat}} = \nu_k^{\mathrm{sat}}$ . On the other hand, the Doppler shifts $\nu_{k,p}^{\mathrm{ut}}$ due to the motion of the UT are typically different for different propagation paths, which contribute the Doppler spread of the LEO satellite channels [21], [22]. As the scattering characteristics around the UTs mainly determine the Doppler shifts caused by the movement of the UTs, the modeling of the Doppler spread in LEO satellite communications can be similar to that in the traditional terrestrial cellular communications [22].
73
+
74
+ 2) Delay: Due to the relatively large distance between the LEO satellite and the UTs, the propagation delay $\tau_{k,p}$ associated with path $p$ of UT $k$ exhibits a much larger value than that in terrestrial wireless channels. Denote by $\tau_k^{\mathrm{min}} = \min_p\{\tau_{k,p}\}$ and $\tau_k^{\mathrm{max}} = \max_p\{\tau_{k,p}\}$ the minimum and maximum values of the propagation delays of UT $k$ , respectively. The delay spread of the LEO satellite channels $\tau_k^{\mathrm{max}} - \tau_k^{\mathrm{min}}$ might be much smaller than that of the terrestrial wireless channels as observed in measurement results [22]–[24]. For notational brevity, we define $\tau_{k,p}^{\mathrm{ut}} \triangleq \tau_{k,p} - \tau_k^{\mathrm{min}}$ . Note that due to, e.g., the long propagation delays in LEO satellite communications, acquiring reliable iCSI at the transmitter sides is usually infeasible, especially when the UTs are in high mobility. Thus, it is more practical to investigate transmission design with, e.g., sCSI, in LEO satellite communications.
75
+
76
+ 3) Angle: The UPA response vector $\mathbf{v}_{k,p}$ in (1) can be represented by [25], [26]
77
+
78
+ $$
79
+ \mathbf {v} _ {k, p} \triangleq \mathbf {v} _ {k, p} ^ {\mathrm {x}} \otimes \mathbf {v} _ {k, p} ^ {\mathrm {y}}
80
+ $$
81
+
82
+ $$
83
+ = \mathbf {v} _ {\mathrm {x}} \left(\vartheta_ {k, p} ^ {\mathrm {x}}\right) \otimes \mathbf {v} _ {\mathrm {y}} \left(\vartheta_ {k, p} ^ {\mathrm {y}}\right) \in \mathbb {C} ^ {M \times 1}, \tag {2}
84
+ $$
85
+
86
+ where $\otimes$ denotes the Kronecker product, and $\mathbf{v}_{k,p}^{d}$ for $d\in \mathcal{D}\triangleq \{\mathrm{x},\mathrm{y}\}$ is the array response vector of the angle with respect to the x- or y-axis given by
87
+
88
+ $$
89
+ \begin{array}{l} \mathbf {v} _ {k, p} ^ {d} \triangleq \mathbf {v} _ {d} \left(\vartheta_ {k, p} ^ {d}\right) \\ = \frac {1}{\sqrt {M _ {d}}} \left[ 1 \exp \left\{- \bar {\jmath} \pi \vartheta_ {k, p} ^ {d} \right\} \dots \exp \left\{- \bar {\jmath} \pi \left(M _ {d} - 1\right) \vartheta_ {k, p} ^ {d} \right\} \right] ^ {T} \in \mathbb {C} ^ {M _ {d} \times 1}, \tag {3} \\ \end{array}
90
+ $$
91
+
92
+ with the superscript $(\cdot)^T$ denoting the transpose operation. In (3), the parameters $\vartheta_{k,p}^{\mathrm{x}}$ and $\vartheta_{k,p}^{\mathrm{y}}$ are related to the physical angles as $\vartheta_{k,p}^{\mathrm{x}} = \sin \left(\theta_{k,p}^{\mathrm{y}}\right)\cos \left(\theta_{k,p}^{\mathrm{x}}\right)$ and $\vartheta_{k,p}^{\mathrm{y}} = \cos \left(\theta_{k,p}^{\mathrm{y}}\right)$ where $\theta_{k,p}^{\mathrm{x}}$ and $\theta_{k,p}^{\mathrm{y}}$ are the angles with respect to the x- and y-axes associated with the pth propagation path of UT $k$ , respectively. For satellite communication channels, the angles of all propagation paths associated with the same UT, can be assumed to be identical due to the relatively high altitude of the satellite compared with that of the scatterers located in the vicinity of the UTs [27], i.e., $\vartheta_{k,p}^{d} = \vartheta_{k}^{d}$ . Note that the parameters $\vartheta_{k}^{d}$ can reflect the propagation properties of the LEO satellite channels in the space domain, and we refer to $\vartheta_{k}^{d}$ as the space angle parameters. Then, the array response vector can be rewritten as
93
+
94
+ $$
95
+ \begin{array}{l} \mathbf {v} _ {k, p} = \mathbf {v} _ {k} = \mathbf {v} _ {k} ^ {\mathrm {x}} \otimes \mathbf {v} _ {k} ^ {\mathrm {y}} \\ = \mathbf {v} _ {\mathrm {x}} \left(\vartheta_ {k} ^ {\mathrm {x}}\right) \otimes \mathbf {v} _ {\mathrm {y}} \left(\vartheta_ {k} ^ {\mathrm {y}}\right) \in \mathbb {C} ^ {M \times 1}, \tag {4} \\ \end{array}
96
+ $$
97
+
98
+ which will be referred to as the DL channel direction vector of UT $k$ that is associated with the space angles $\vartheta_{k}^{\mathrm{x}}$ and $\vartheta_{k}^{\mathrm{y}}$ . Note that when the number of antennas $M_{d}$ for $d \in \mathcal{D}$ tends to infinity, we can know from (3) and (4) that the channel direction vectors of different UTs are asymptotically orthogonal, i.e.,
99
+
100
+ $$
101
+ \lim _ {M _ {d} \rightarrow \infty} \left(\mathbf {v} _ {k} ^ {d}\right) ^ {H} \mathbf {v} _ {k ^ {\prime}} ^ {d} = \delta \left(k - k ^ {\prime}\right), \tag {5}
102
+ $$
103
+
104
+ where $(\cdot)^H$ denotes the conjugate-transpose operation.
105
+
106
+ Based on the above modeling of the propagation properties of LEO satellite communications, we can rewrite the channel response in (1) as follows
107
+
108
+ $$
109
+ \mathbf {g} _ {k} ^ {\mathrm {d l}} (t, f) = \exp \left\{\bar {\jmath} 2 \pi \left[ t \nu_ {k} ^ {\mathrm {s a t}} - f \tau_ {k} ^ {\min } \right] \right\} \cdot g _ {k} ^ {\mathrm {d l}} (t, f) \cdot \mathbf {v} _ {k}, \tag {6}
110
+ $$
111
+
112
+ where $g_{k}^{\mathrm{dl}}(t,f)$ is the DL channel gain of UT $k$ given by
113
+
114
+ $$
115
+ \begin{array}{l} g _ {k} ^ {\mathrm {d l}} (t, f) \triangleq \sum_ {p = 0} ^ {P _ {k} - 1} g _ {k, p} ^ {\mathrm {d l}} \cdot \exp \left\{\jmath 2 \pi \left[ t (\nu_ {k, p} - \nu_ {k} ^ {\mathrm {s a t}}) - f (\tau_ {k, p} - \tau_ {k} ^ {\mathrm {m i n}}) \right] \right\} \\ = \sum_ {p = 0} ^ {P _ {k} - 1} g _ {k, p} ^ {\mathrm {d l}} \cdot \exp \left\{\bar {j} 2 \pi \left[ t \nu_ {k, p} ^ {\mathrm {u t}} - f \tau_ {k, p} ^ {\mathrm {u t}} \right] \right\}, \tag {7} \\ \end{array}
116
+ $$
117
+
118
+ which will be convenient for derivation of the transmission signal model later.
119
+
120
+ 4) Gain: Note that the statistical properties of the fluctuations of the channel gain $g_{k}^{\mathrm{dl}}(t,f)$ in LEO satellite communications mainly depend on the propagation environment in which the UT is located. Note that LEO satellite communication systems are usually operated under line-of-sight (LOS) propagations and Rician channel model is widely accepted in LOS satellite communication systems. In this work, we focus on the case where both non-shadowed LOS and non-LOS paths of the LEO satellite channels exist [6]. Then, the channel gain $g_{k}^{\mathrm{dl}}(t,f)$ exhibits the Rician fading distribution with the Rician factor $\kappa_{k}$ and power $\mathsf{E}\left\{\left|g_k^{\mathrm{dl}}(t,f)\right|^2\right\} = \gamma_k$ . In other words, the real and imaginary parts of $g_{k}^{\mathrm{dl}}(t,f)$ are independently and identically real-valued Gaussian distributed with mean $\sqrt{\frac{\kappa_k\gamma_k}{2(\kappa_k + 1)}}$ and variance $\frac{\gamma_k}{2(\kappa_k + 1)}$ , respectively.
121
+
122
+ # C. UL Channel Model
123
+
124
+ Using the DL channel modeling approach presented in the above subsections, we briefly investigate the UL channel model for LEO satellite communications in this subsection. Note that the UL channel response is the transpose of the DL channel response in TDD systems, and similar channel model can be obtained. Meanwhile, for FDD systems where the relative carrier frequency difference is small, the physical channel parameters, $P_{k}$ , $\nu_{u,p}$ , $\tau_{k,p}$ , $\vartheta_{k}^{\mathrm{x}}$ , and $\vartheta_{k}^{\mathrm{y}}$ are almost identical between the UL and DL [28]-[30]. Thus, the major difference between the UL and DL channels lies in the fast fading path gain terms. Similarly as (6), the UL space domain channel response between UT $k$ and the LEO satellite at time $t$ and frequency $f$ can be modeled as
125
+
126
+ $$
127
+ \mathbf {g} _ {k} ^ {\mathrm {u l}} (t, f) = \exp \left\{\bar {\gamma} 2 \pi \left[ t \nu_ {k} ^ {\mathrm {s a t}} - f \tau_ {k} ^ {\min } \right] \right\} \cdot g _ {k} ^ {\mathrm {u l}} (t, f) \cdot \mathbf {u} _ {k} \in \mathbb {C} ^ {M \times 1}, \tag {8}
128
+ $$
129
+
130
+ where $g_k^{\mathrm{ul}}(t,f)$ is the UL channel gain of UT $k$ given by
131
+
132
+ $$
133
+ g _ {k} ^ {\mathrm {u l}} (t, f) \triangleq \sum_ {p = 0} ^ {P _ {k} - 1} g _ {k, p} ^ {\mathrm {u l}} \cdot \exp \left\{\bar {\jmath} 2 \pi \left[ t \nu_ {k, p} ^ {\mathrm {u t}} - f \tau_ {k, p} ^ {\mathrm {u t}} \right] \right\}, \tag {9}
134
+ $$
135
+
136
+ which exhibits the same statistical properties as the DL channel gain $g_{k}^{\mathrm{dl}}(t,f)$ , i.e., the real and imaginary parts of $g_{k}^{\mathrm{ul}}(t,f)$ are independently and identically real-valued Gaussian distributed with mean $\sqrt{\frac{\kappa_k\gamma_k}{2(\kappa_k + 1)}}$ and variance $\frac{\gamma_k}{2(\kappa_k + 1)}$ , respectively, and $\mathbf{u}_k$ is the UL channel direction vector given by
137
+
138
+ $$
139
+ \begin{array}{l} \mathbf {u} _ {k} = \mathbf {u} _ {k} ^ {\mathrm {x}} \otimes \mathbf {u} _ {k} ^ {\mathrm {y}} \\ = \mathbf {u} _ {\mathrm {x}} \left(\vartheta_ {k} ^ {\mathrm {x}}\right) \otimes \mathbf {u} _ {\mathrm {y}} \left(\vartheta_ {k} ^ {\mathrm {y}}\right) \in \mathbb {C} ^ {M \times 1}, \tag {10} \\ \end{array}
140
+ $$
141
+
142
+ which exhibits a similar structure as the DL channel direction vector $\mathbf{v}_k$ in (4) but with a center frequency offset for FDD systems, and can be well approximated by $\mathbf{v}_k$ when the frequency separation between the UL and the DL is not significant [31]. Similarly as the DL case, the LEO satellite UL channel also exhibits the asymptotic orthogonality as
143
+
144
+ $$
145
+ \lim _ {M _ {d} \rightarrow \infty} \left(\mathbf {u} _ {k} ^ {d}\right) ^ {H} \mathbf {u} _ {k ^ {\prime}} ^ {d} = \delta \left(k - k ^ {\prime}\right). \tag {11}
146
+ $$
147
+
148
+ Note that the channel models in (6) and (8) are general in the sense that they take into account the LEO satellite channel propagation properties in the space, time, and frequency domains.
149
+
150
+ # D. DL/UL Transmission Signal Model
151
+
152
+ Consider a wideband massive MIMO LEO satellite communication system employing orthogonal frequency division multiplexing (OFDM) modulation [21] with the number of subcarriers, $N_{\mathrm{us}}$ , and the cyclic prefix (CP), $N_{\mathrm{cp}}$ samples. Denote by $T_{\mathrm{s}}$ the system sampling interval. Then, the OFDM symbol length and the CP length are given by $T_{\mathrm{us}} = N_{\mathrm{us}}T_{\mathrm{s}}$ and $T_{\mathrm{cp}} = N_{\mathrm{cp}}T_{\mathrm{s}}$ , respectively. Note that with the delay and Doppler properties of the LEO satellite channels taken into account, it is not difficult to select proper OFDM parameters such that the effects of the intersymbol and intercarrier interference can be almost neglected [32].
153
+
154
+ Let $\{\mathbf{x}_{\ell,n}^{\mathrm{dl}}\}_{n=0}^{N_{\mathrm{us}}-1}$ be the DL transmit symbols during symbol $\ell$ . Then, the transmitted signal $\mathbf{x}_{\ell}^{\mathrm{dl}}(t) \in \mathbb{C}^{M \times 1}$ can be written as [33]
155
+
156
+ $$
157
+ \mathbf {x} _ {\ell} ^ {\mathrm {d l}} (t) = \sum_ {n = 0} ^ {N _ {\mathrm {u s}} - 1} \mathbf {x} _ {\ell , n} ^ {\mathrm {d l}} \cdot \exp \left\{\bar {j} 2 \pi \frac {n}{T _ {\mathrm {u s}}} t \right\}, - T _ {\mathrm {c p}} \leq t - \ell \left(T _ {\mathrm {c p}} + T _ {\mathrm {u s}}\right) < T _ {\mathrm {u s}}, \tag {12}
158
+ $$
159
+
160
+ and the corresponding received signal at UT $k$ is given by (where the noise is omitted for brevity)
161
+
162
+ $$
163
+ y _ {k, \ell} ^ {\mathrm {d l}} (t) = \int_ {- \infty} ^ {\infty} \left[ \mathbf {g} _ {k} ^ {\mathrm {d l}} (t, \tau) \right] ^ {T} \cdot \mathbf {x} _ {\ell} ^ {\mathrm {d l}} (t - \tau) \mathrm {d} \tau , \tag {13}
164
+ $$
165
+
166
+ where $\mathbf{g}_k^{\mathrm{dl}}(t,\tau)$ is the inverse Fourier transform of $\mathbf{g}_k^{\mathrm{dl}}(t,f)$ in (6) in terms of $\tau$ .
167
+
168
+ Utilizing the Doppler and delay properties of the LEO satellite propagation channels addressed previously, we proceed to perform time and frequency synchronization. In particular, with delay compensation $\tau_{k}^{\mathrm{syn}} = \tau_{k}^{\mathrm{min}}$ and Doppler compensation $\nu_{k}^{\mathrm{syn}} = \nu_{k,p}^{\mathrm{sat}}$ applied to the received signal at UT $k$ , the resultant signal can be represented by
169
+
170
+ $$
171
+ y _ {k, \ell} ^ {\mathrm {d l}, \text {s y n}} (t) = y _ {k, \ell} ^ {\mathrm {d l}} \left(t + \tau_ {k} ^ {\text {s y n}}\right) \cdot \exp \left\{- \bar {\jmath} 2 \pi \left(t + \tau_ {k} ^ {\text {s y n}}\right) \nu_ {k} ^ {\text {s y n}} \right\}. \tag {14}
172
+ $$
173
+
174
+ Then, the corresponding signal dispersion in the delay and Doppler domains can be significantly reduced, and it is not difficult to select proper OFDM parameters to mitigate the intersymbol and intercarrier interference [33]. Consequently, the demodulated DL received signal at UT $k$ over subcarrier $n$ of OFDM symbol $\ell$ can be represented by
175
+
176
+ $$
177
+ y _ {k, \ell , n} ^ {\mathrm {d l}} = \left(\mathbf {g} _ {k, \ell , n} ^ {\mathrm {d l}}\right) ^ {T} \mathbf {x} _ {\ell , n} ^ {\mathrm {d l}}, \tag {15}
178
+ $$
179
+
180
+ where $\mathbf{g}_{k,\ell,n}^{\mathrm{dl}}$ is the DL channel of UT $k$ over symbol $\ell$ and subcarrier $n$ given by [33]
181
+
182
+ $$
183
+ \mathbf {g} _ {k, \ell , n} ^ {\mathrm {d l}} = \mathbf {v} _ {k} \cdot g _ {k, \ell , n} ^ {\mathrm {d l}} \in \mathbb {C} ^ {M \times 1}, \tag {16}
184
+ $$
185
+
186
+ where $g_{k,\ell,n}^{\mathrm{dl}} = g_k^{\mathrm{dl}}\left(\ell \left(T_{\mathrm{us}} + T_{\mathrm{cp}}\right), n / T_{\mathrm{us}}\right)$ .
187
+
188
+ Besides, consider UL transmission employing OFDM modulation with similar parameters as DL transmission. Then, with proper delay and Doppler compensations performed at the UT side, the demodulated UL received signal at the satellite over symbol $\ell$ and subcarrier $n$ can be represented as
189
+
190
+ $$
191
+ \mathbf {y} _ {\ell , n} ^ {\mathrm {u l}} = \sum_ {k} \mathbf {g} _ {k, \ell , n} ^ {\mathrm {u l}} x _ {k, \ell , n} ^ {\mathrm {u l}} \in \mathbb {C} ^ {M \times 1}, \tag {17}
192
+ $$
193
+
194
+ where $x_{k,\ell,n}^{\mathrm{ul}}$ is the complex-valued symbols transmitted by UT $k$ , and $\mathbf{g}_{k,\ell,n}^{\mathrm{ul}}$ is the UL channel of UT $k$ over subcarrier $n$ of OFDM symbol $\ell$ given by
195
+
196
+ $$
197
+ \mathbf {g} _ {k, \ell , n} ^ {\mathrm {u l}} = \mathbf {u} _ {k} \cdot g _ {k, \ell , n} ^ {\mathrm {u l}} \in \mathbb {C} ^ {M \times 1}, \tag {18}
198
+ $$
199
+
200
+ where $g_{k,\ell,n}^{\mathrm{ul}} = g_k^{\mathrm{ul}} \left( \frac{\ell (T_{\mathrm{us}} + T_{\mathrm{cp}})}{n / T_{\mathrm{us}}} \right)$ . Note that the transmission signal models in (15) and (17) are applicable provided that delay and Doppler compensations are properly performed via exploiting the delay and Doppler properties of the LEO satellite channels described previously.
201
+
202
+ # III. STATISTICAL CSI BASED DL/UL TRANSMISSIONS
203
+
204
+ In this section, we investigate DL precoder and UL receiver design for LEO satellite communications based on the channel and signal models established in the above section. Note that the conventional designs of DL precoding vectors and UL receiving vectors in MIMO transmission usually require knowledge of iCSI. However, it is in general infeasible to obtain precise iCSI at the satellite sides for DL of LEO satellite communications. In addition, frequent update of the DL precoding vectors and UL receiving vectors using iCSI will be challenging for implementation on payload of practical satellite communications. Hereafter, we focus on the design of DL precoder and UL receiver utilizing slowly-varying sCSI for satellite communications.
205
+
206
+ # A. DL Precoder
207
+
208
+ We first consider DL transmission where $K$ single antenna UTs are simultaneously served in the same time-frequency blocks, and the served UT set is denoted by $\mathcal{K} = \{0,1,\dots ,K - 1\}$ . For DL linear precoding performed at the satellite, the signal received by UT $k\in \mathcal{K}$ in (15) can be rewritten as
209
+
210
+ $$
211
+ y _ {k} ^ {\mathrm {d l}} = \left(\mathbf {g} _ {k} ^ {\mathrm {d l}}\right) ^ {T} \sum_ {i \in \mathcal {K}} \sqrt {q _ {i} ^ {\mathrm {d l}}} \mathbf {b} _ {i} s _ {i} ^ {\mathrm {d l}} + z _ {k} ^ {\mathrm {d l}}, \tag {19}
212
+ $$
213
+
214
+ where the subcarrier and symbol indices are omitted for brevity, $q_{k}^{\mathrm{dl}}$ is the transmit power allocated to UT $k$ , $\mathbf{b}_{k} \in \mathbb{C}^{M \times 1}$ is the normalized transmit precoding vector satisfying the $\| \mathbf{b}_k\| = \sqrt{\mathbf{b}_k^H\mathbf{b}_k} = 1$ , $s_k^{\mathrm{dl}}$ is the signal for UT $k$ with mean 0 and variance 1, and $z_{k}^{\mathrm{dl}}$ is the additive circular symmetric complex-valued Gaussian noise with mean 0 and variance $\sigma_k^{\mathrm{dl}}$ , i.e., $z_{k}^{\mathrm{dl}} \sim \mathcal{CN}\left(0,\sigma_{k}^{\mathrm{dl}}\right)$ .
215
+
216
+ Note that SLNR is a convenient and efficient design metric widely adopted in DL multiuser MIMO transmission, and we first review the SLNR maximization criterion based precoding approach. In particular, the SLNR of UT $k$ in the DL is given by [34], [35]
217
+
218
+ $$
219
+ \mathrm {S L N R} _ {k} = \frac {\left| \left(\mathbf {g} _ {k} ^ {\mathrm {d l}}\right) ^ {T} \mathbf {b} _ {k} \right| ^ {2} q _ {k} ^ {\mathrm {d l}}}{\sum_ {i \neq k} \left| \left(\mathbf {g} _ {i} ^ {\mathrm {d l}}\right) ^ {T} \mathbf {b} _ {k} \right| ^ {2} q _ {k} ^ {\mathrm {d l}} + \sigma_ {k} ^ {\mathrm {d l}}} = \frac {\left| \left(\mathbf {g} _ {k} ^ {\mathrm {d l}}\right) ^ {T} \mathbf {b} _ {k} \right| ^ {2}}{\sum_ {i \neq k} \left| \left(\mathbf {g} _ {i} ^ {\mathrm {d l}}\right) ^ {T} \mathbf {b} _ {k} \right| ^ {2} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}}}, \tag {20}
220
+ $$
221
+
222
+ where $\rho_{k}^{\mathrm{dl}}\triangleq q_{k}^{\mathrm{dl}} / \sigma_{k}^{\mathrm{dl}}$ is the DL signal-to-noise ratio (SNR) of UT $k$ . Then the precoder of UT $k$ that maximizes $\mathsf{SLNR}_k$ in (20) can be obtained as
223
+
224
+ $$
225
+ \mathbf {b} _ {k} ^ {\mathrm {s l n r}} = \frac {1}{\eta_ {k} ^ {\mathrm {s l n r}}} \left[ \left(\sum_ {i} \mathbf {g} _ {i} ^ {\mathrm {d l}} \left(\mathbf {g} _ {i} ^ {\mathrm {d l}}\right) ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {g} _ {k} ^ {\mathrm {d l}} \right] ^ {*}, \tag {21}
226
+ $$
227
+
228
+ where $(\cdot)^*$ denotes the conjugate operation and $\eta_k^{\mathrm{slnr}}$ is the power normalization coefficient that is set to satisfy $\left\| \mathbf{b}_k^{\mathrm{slnr}}\right\| = 1$ . We mention that the SLNR maximization DL precoder in (21) requires knowledge of iCSI $\mathbf{g}_k^{\mathrm{dl}}$ for all $k$ . However, it is in general difficult to obtain precise DL iCSI for transmitter at the satellite side.
229
+
230
+ In the following, we investigate DL precoding for satellite communications using long-term sCSI at the transmitter, including the channel direction vector $\mathbf{v}_k$ and the statistics of the channel gain $g_{k,\ell,n}^{\mathrm{dl}}$ . We consider the ASLNR performance metric as follows [36]
231
+
232
+ $$
233
+ \mathrm {A S L N R} _ {k} \triangleq \frac {\mathsf {E} \left\{\left| \left(\mathbf {g} _ {k} ^ {\mathrm {d l}}\right) ^ {T} \mathbf {b} _ {k} \right| ^ {2} \right\}}{\mathsf {E} \left\{\sum_ {i \neq k} \left| \left(\mathbf {g} _ {i} ^ {\mathrm {d l}}\right) ^ {T} \mathbf {b} _ {k} \right| ^ {2} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \right\}} = \frac {\gamma_ {k} \left| (\mathbf {v} _ {k}) ^ {T} \mathbf {b} _ {k} \right| ^ {2}}{\sum_ {i \neq k} \gamma_ {i} \left| (\mathbf {v} _ {i}) ^ {T} \mathbf {b} _ {k} \right| ^ {2} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}}}, \tag {22}
234
+ $$
235
+
236
+ where the numerator and the denominator account for the average power of the signal and leakage plus noise, respectively. The sCSI based precoder that maximizes $\mathrm{ASLNR}_k$ is presented in the following proposition.
237
+
238
+ Proposition 1: The precoding vector that maximizes $\mathrm{ASLNR}_k$ in (22) is given by
239
+
240
+ $$
241
+ \mathbf {b} _ {k} ^ {\text {a s l n r}} = \frac {1}{\eta_ {k} ^ {\text {a s l n r}}} \left[ \left(\sum_ {i} \gamma_ {i} \mathbf {v} _ {i} \mathbf {v} _ {i} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {v} _ {k} \right] ^ {*}, \tag {23}
242
+ $$
243
+
244
+ where $\eta_k^{\mathrm{aslnr}}$ is the power normalization coefficient that is set to satisfy $\left\| \mathbf{b}_k^{\mathrm{aslnr}}\right\| = 1$ , and the corresponding maximum ASLNR value is given by
245
+
246
+ $$
247
+ \mathrm {A S L N R} _ {k} ^ {\max } = \frac {1}{1 - \gamma_ {k} \mathbf {v} _ {k} ^ {H} \left(\sum_ {i} \gamma_ {i} \mathbf {v} _ {i} \mathbf {v} _ {i} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {v} _ {k}} - 1. \tag {24}
248
+ $$
249
+
250
+ Proof: The proof is similar to the iCSI case in [35], and is omitted for brevity.
251
+
252
+ Proposition 1 provides a sCSI based DL precoder that maximizes the ASLNR in closed-form. Note that the sCSI required in the proposed approach are the channel direction vectors and the average power of all UTs' channels, i.e., $\mathbf{v}_k$ and $\gamma_k$ , $\forall k$ . In addition, from the definition of the channel direction vector in (4), only the space angles, $\vartheta_k^{\mathrm{x}}$ and $\vartheta_k^{\mathrm{y}}$ , are needed for estimating
253
+
254
+ $\mathbf{v}_k$ . Thus, the number of parameters in statistical CSI to estimate can be significantly reduced. As the proposed sCSI based DL precoding design is independent of subcarriers and OFDM symbols in transmission interval where the channels statistics do not change significantly and thus is convenient for practical implementation of the satellite payloads. Then, the computational overhead for DL precoding design can be reduced compared with the iCSI based approach.
255
+
256
+ # B. UL Receiver
257
+
258
+ In this subsection, we investigate UL receiver design. The UL received signal by the satellite in (17) can be rewritten as
259
+
260
+ $$
261
+ \mathbf {y} ^ {\mathrm {u l}} = \sum_ {k} \mathbf {g} _ {k} ^ {\mathrm {u l}} \sqrt {q ^ {\mathrm {u l}}} s _ {k} ^ {\mathrm {u l}} + \mathbf {z} ^ {\mathrm {u l}}, \tag {25}
262
+ $$
263
+
264
+ where the subcarrier and symbol indices are omitted for brevity, $q^{\mathrm{ul}}$ is the transmit power of one UT, $s_k^{\mathrm{ul}}$ is the signal sent by UT $k$ with mean 0 and variance 1, and $\mathbf{z}^{\mathrm{ul}}$ is the additive Gaussian noise distributed as $\mathcal{CN}\left(\mathbf{0},\sigma^{\mathrm{ul}}\mathbf{I}_M\right)$ . With a linear receiver at the satellite, the recovered signal of UT $k$ can be expressed by
265
+
266
+ $$
267
+ \hat {s} _ {k} ^ {\mathrm {u l}} = \mathbf {w} _ {k} ^ {T} \mathbf {y} ^ {\mathrm {u l}} = \mathbf {w} _ {k} ^ {T} \sum_ {i} \mathbf {g} _ {i} ^ {\mathrm {u l}} \sqrt {q ^ {\mathrm {u l}}} s _ {i} ^ {\mathrm {u l}} + \mathbf {w} _ {k} ^ {T} \mathbf {z} ^ {\mathrm {u l}}, \tag {26}
268
+ $$
269
+
270
+ where $\mathbf{w}_k$ is the linear receiving vector of UT $k$ . Then the SINR of UT $k$ is given by
271
+
272
+ $$
273
+ \operatorname {S I N R} _ {k} = \frac {\left| \mathbf {w} _ {k} ^ {T} \mathbf {g} _ {k} ^ {\mathrm {u l}} \right| ^ {2} q ^ {\mathrm {u l}}}{\sum_ {i \neq k} \left| \mathbf {w} _ {k} ^ {T} \mathbf {g} _ {i} ^ {\mathrm {u l}} \right| ^ {2} q ^ {\mathrm {u l}} + \sigma^ {\mathrm {u l}} \| \mathbf {w} _ {k} \| ^ {2}} = \frac {\left| \mathbf {w} _ {k} ^ {T} \mathbf {g} _ {k} ^ {\mathrm {u l}} \right| ^ {2}}{\sum_ {i \neq k} \left| \mathbf {w} _ {k} ^ {T} \mathbf {g} _ {i} ^ {\mathrm {u l}} \right| ^ {2} + \frac {1}{\rho^ {\mathrm {u l}}} \| \mathbf {w} _ {k} \| ^ {2}}, \tag {27}
274
+ $$
275
+
276
+ where $\rho^{\mathrm{ul}}\triangleq q^{\mathrm{ul}} / \sigma^{\mathrm{ul}}$ is the UL SNR. It is not difficult to obtain the receiver of UT $k$ that maximizes SINR in (27) as
277
+
278
+ $$
279
+ \mathbf {w} _ {k} ^ {\sin \mathrm {r}} = \left[ \left(\sum_ {i} \mathbf {g} _ {i} ^ {\mathrm {u l}} \left(\mathbf {g} _ {i} ^ {\mathrm {u l}}\right) ^ {H} + \frac {1}{\rho^ {\mathrm {u l}}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {g} _ {k} ^ {\mathrm {u l}} \right] ^ {*}. \tag {28}
280
+ $$
281
+
282
+ Note that the SINR maximization UL receiving vectors in (28) are in general difficult to be computed in practical satellite communications systems where the payload resource is limited, as they are needed to be updated more frequently in time and frequency.
283
+
284
+ Similarly as the DL case, we investigate UL receiver design for LEO satellite communications
285
+
286
+ exploiting sCSI and consider the ASINR performance metric given by
287
+
288
+ $$
289
+ A S I N R _ {k} \triangleq \frac {E \left\{\left| \mathbf {w} _ {k} ^ {T} \mathbf {g} _ {k} ^ {\mathrm {u l}} \right| ^ {2} \right\}}{E \left\{\sum_ {i \neq k} \left| \mathbf {w} _ {k} ^ {T} \mathbf {g} _ {i} ^ {\mathrm {u l}} \right| ^ {2} + \frac {1}{\rho^ {\mathrm {u l}}} \| \mathbf {w} _ {k} \| ^ {2} \right\}} = \frac {\gamma_ {k} \left| (\mathbf {u} _ {k}) ^ {T} \mathbf {w} _ {k} \right| ^ {2}}{\sum_ {i \neq k} \gamma_ {i} \left| (\mathbf {u} _ {i}) ^ {T} \mathbf {w} _ {k} \right| ^ {2} + \frac {1}{\rho^ {\mathrm {u l}}} \| \mathbf {w} _ {k} \| ^ {2}}. \tag {29}
290
+ $$
291
+
292
+ Using a similar proof procedure as in Proposition 1, we can obtain that the sCSI based UL receiver that maximizes $\mathrm{ASINR}_k$ in (29) is given by
293
+
294
+ $$
295
+ \mathbf {w} _ {k} ^ {\text {a s i n r}} = \left[ \left(\sum_ {i} \gamma_ {i} \mathbf {u} _ {i} \mathbf {u} _ {i} ^ {H} + \frac {1}{\rho^ {\mathrm {u l}}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {u} _ {k} \right] ^ {*}, \tag {30}
296
+ $$
297
+
298
+ with the corresponding maximum ASINR of UT $k$ being
299
+
300
+ $$
301
+ \operatorname {A S I N R} _ {k} ^ {\max } = \frac {1}{1 - \gamma_ {k} \mathbf {u} _ {k} ^ {H} \left(\sum_ {i} \gamma_ {i} \mathbf {u} _ {i} \mathbf {u} _ {i} ^ {H} + \frac {1}{\rho^ {\mathrm {u l}}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {u} _ {k}} - 1. \tag {31}
302
+ $$
303
+
304
+ Note that the sCSI based UL receiver in (30) is presented in closed-form, and is based on sCSI, i.e., the channel direction vector $\mathbf{u}_k$ and the statistics of the channel gain $g_{k,\ell,n}^{\mathrm{dl}}$ , which can thus mitigate the payload complexity and cost in practical satellite communications.
305
+
306
+ # C. DL-UL Duality
307
+
308
+ From (23) and (30), we can obtain the DL-UL duality between the proposed sCSI based DL precoder and UL receiver. Specifically, in the considered transmission interval where the channel statistics do not change significantly, if the DL data transmission $\mathrm{SNR}\rho_k^{\mathrm{dl}}$ equals the UL data transmission $\mathrm{SNR}\rho^{\mathrm{ul}}$ , then the sCSI based DL precoding vectors in (23) are equal to the sCSI based UL receiving vectors in (30) with proper power normalization provided that the DL direction vector $\mathbf{v}_k$ equals the UL direction vector $\mathbf{u}_k$ , and the transmission complexity can be further reduced. Note that different from the UL-DL duality results based on the perfect iCSI assumption in, e.g., [37] and [38], our result is established using the sCSI at the satellite side.
309
+
310
+ # D. Upper Bound of ASLNR/ASINR
311
+
312
+ In this subsection, we investigate the conditions under which the DL ASLNR and UL ASINR metrics considered above can be upper bounded.
313
+
314
+ Proposition 2: The maximum DL ASLNR value $\mathrm{ASLNR}_k^{\max}$ in (24) is upper bounded by
315
+
316
+ $$
317
+ \mathrm {A S L N R} _ {k} ^ {\max } \leq \rho_ {k} ^ {\mathrm {d l}} \gamma_ {k}, \tag {32}
318
+ $$
319
+
320
+ and the upper bound can be achieved under the condition that
321
+
322
+ $$
323
+ \left(\mathbf {v} _ {k} ^ {\mathrm {x}}\right) ^ {H} \mathbf {v} _ {i} ^ {\mathrm {x}} = 0 \quad \text {o r} \quad \left(\mathbf {v} _ {k} ^ {\mathrm {y}}\right) ^ {H} \mathbf {v} _ {i} ^ {\mathrm {y}} = 0, \quad \forall k \neq i. \tag {33}
324
+ $$
325
+
326
+ Besides, the maximum UL ASINR value $\mathrm{ASINR}_k^{\max}$ in (31) is upper bounded by
327
+
328
+ $$
329
+ \operatorname {A S I N R} _ {k} ^ {\max } \leq \rho^ {\mathrm {u l}} \gamma_ {k}, \tag {34}
330
+ $$
331
+
332
+ and the upper bound can be achieved under the condition that
333
+
334
+ $$
335
+ \left(\mathbf {u} _ {k} ^ {\mathrm {x}}\right) ^ {H} \mathbf {u} _ {i} ^ {\mathrm {x}} = 0 \quad \text {o r} \quad \left(\mathbf {u} _ {k} ^ {\mathrm {y}}\right) ^ {H} \mathbf {u} _ {i} ^ {\mathrm {y}} = 0, \quad \forall k \neq i. \tag {35}
336
+ $$
337
+
338
+ Proof: Please refer to Appendix A.
339
+
340
+ Proposition 2 shows that the DL ASLNRs and UL ASINRs of all served UTs with the proposed sCSI based precoder and receiver can reach their upper bounds provided that the corresponding channel direction vectors of different UTs are mutually orthogonal. The result in Proposition 2 is physically intuitive as the DL channel leakage power and the UL inter-user interference can be eliminated provided that the conditions in (33) and (35) are satisfied.
341
+
342
+ From (5) and (11), we can observe that the optimal conditions obtained in Proposition 2 can be asymptotically satisfied when the number of antennas $M$ tends to infinity. This corroborates the rationality and potential of exploiting massive MIMO in enhancing the transmission performance of satellite communications.
343
+
344
+ Remark 1: When the channel direction vectors of the UTs scheduled over the same time-frequency resource blocks satisfy the conditions in (33) and (35) or the number of antennas at the satellite side is sufficiently large, we can obtain from the matrix inversion lemma that the proposed sCSI based precoder/receiver in (23) and (30) will reduce to
345
+
346
+ $$
347
+ \mathbf {b} _ {k} ^ {\text {a s l n r}} = \mathbf {v} _ {k} ^ {*}, \quad \mathbf {w} _ {k} ^ {\text {a s i n r}} = \mathbf {u} _ {k} ^ {*}. \tag {36}
348
+ $$
349
+
350
+ Notably, the sCSI based DL precoder and UL receiver presented in (36) approach the ones using iCSI as the number of antennas tends to infinity [11], which demonstrates the asymptotic optimality of the proposed precoder/receiver exploiting sCSI.
351
+
352
+ Remark 2: Note that for the case with a sufficiently large number of antennas at the satellite side, the precoder/receiver in (36) will asymptotically tend to the discrete Fourier transform
353
+
354
+ (DFT) based fixed precoder/receiver as follows
355
+
356
+ $$
357
+ \mathbf {b} _ {k} = \left[ \mathbf {v} _ {\mathrm {x}} \left(\bar {\vartheta} _ {k} ^ {\mathrm {x}}\right) \otimes \mathbf {v} _ {\mathrm {y}} \left(\bar {\vartheta} _ {k} ^ {\mathrm {y}}\right) \right] ^ {*}, \quad \mathbf {w} _ {k} ^ {\text {a s i n r}} = \mathbf {w} _ {k} = \left[ \mathbf {u} _ {\mathrm {x}} \left(\bar {\vartheta} _ {k} ^ {\mathrm {x}}\right) \otimes \mathbf {u} _ {\mathrm {y}} \left(\bar {\vartheta} _ {k} ^ {\mathrm {y}}\right) \right] ^ {*}, \tag {37}
358
+ $$
359
+
360
+ where $\overline{\vartheta}_k^d$ is the nearest point of $\vartheta_k^d$ in the DFT grid satisfying $\overline{\vartheta}_k^d = -1 + 2n_k^d /M_d$ with $n_k^d\in [0,M_d - 1]$ being integers and $\left|\overline{\vartheta}_k^d -\vartheta_k^d\right| < 2 / M_d$ for $d\in \mathcal{D}$ . In this case, the precoding/receiving vectors for the simultaneously served UTs in the same user group are orthogonal, and can be efficiently implemented with fast Fourier transform (FFT).
361
+
362
+ # IV. USER GROUPING
363
+
364
+ From the results in the above section, we can observe that the performance of the proposed sCSI based precoder and receiver in massive MIMO LEO satellite communications will largely depend on the channel statistics of the simultaneously served UTs. As the number of the UTs to be served is usually much larger than that of antennas equipped at the satellites, user grouping is of practical importance. Compared with the terrestrial counterpart, user grouping is of greater interest as the satellite service provider generally aims at serving all UTs in satellite communications. In this section, we investigate user grouping for massive MIMO LEO satellite communications.
365
+
366
+ # A. Space Angle based User Grouping
367
+
368
+ Although the conditions in Proposition 2 are desirable for optimizing the performance of DL ASLNRs and UL ASINRs in satellite communications, it is in general difficult to schedule the UTs that rigorously satisfy this condition, and the optimal user grouping pattern can be found through exhaustive search. However, due to the large number of existing UTs in satellite communications, it is usually infeasible to perform an exhaustive search in practical systems.
369
+
370
+ The optimal user grouping condition presented in Proposition 2 indicates that the channel direction vectors of UTs in the same group should be as orthogonal as possible. From the definitions in (4) and (10), the channel direction vectors are directly related to the channel propagation properties in the space domain, i.e., the channel space angles. Then, the conditions for achieving the upper bounds of ASLNR and ASINR presented in (33) and (35) can be reduced to the condition that the channel space angles should satisfy
371
+
372
+ $$
373
+ \vartheta_ {k} ^ {\mathrm {x}} - \vartheta_ {i} ^ {\mathrm {x}} = \frac {2}{M _ {\mathrm {x}}} n _ {k, i} ^ {\mathrm {x}} \quad \text {o r} \quad \vartheta_ {k} ^ {\mathrm {y}} - \vartheta_ {i} ^ {\mathrm {y}} = \frac {2}{M _ {\mathrm {y}}} n _ {k, i} ^ {\mathrm {y}}, \quad \forall k \neq i, \tag {38}
374
+ $$
375
+
376
+ where both $n_{k,i}^{\mathrm{x}}$ and $n_{k,i}^{\mathrm{y}}$ are non-zero integers. Motivated by the condition in (38), we propose a space angle based user grouping (SAUG) approach as follows. Specifically, we uniformly divide the space angle range $[-1,1)$ into $M_{\mathrm{x}}G_{\mathrm{x}}$ and $M_{\mathrm{y}}G_{\mathrm{y}}$ equal sectors in the x- and y-axes, respectively, where $G_{\mathrm{x}}$ and $G_{\mathrm{y}}$ are both integers and their physical meaning will be clear later. Then, the space angle intervals after division can be represented by
377
+
378
+ $$
379
+ \mathcal {A} _ {(g, r)} ^ {(m, n)} = \left\{\left(\phi_ {\mathrm {x}}, \phi_ {\mathrm {y}}\right) \mid \phi_ {\mathrm {x}} \in \left[ \phi_ {g, m} ^ {\mathrm {x}} - \frac {\Delta_ {\mathrm {x}}}{2}, \phi_ {g, m} ^ {\mathrm {x}} + \frac {\Delta_ {\mathrm {x}}}{2}\right), \phi_ {\mathrm {y}} \in \left[ \phi_ {r, n} ^ {\mathrm {y}} - \frac {\Delta_ {\mathrm {y}}}{2}, \phi_ {r, n} ^ {\mathrm {y}} + \frac {\Delta_ {\mathrm {y}}}{2}\right) \right\}, \tag {39}
380
+ $$
381
+
382
+ where $\phi_{a,b}^{d}$ for $d\in \mathcal{D}$ is the center space angle of the interval in the x-/y-axis given by
383
+
384
+ $$
385
+ \phi_ {a, b} ^ {d} = - 1 + \frac {\Delta_ {d}}{2} + (a + b G _ {d}) \Delta_ {d}, \quad 0 \leq a \leq G _ {d} - 1, 0 \leq b \leq M _ {d} - 1, \tag {40}
386
+ $$
387
+
388
+ with $\Delta_d = 2 / (M_dG_d)$ being the length of the space angle interval in the x-/y-axis.
389
+
390
+ With the above definition of the space angle interval division, the UTs can be grouped as follows. A given UT $k$ is scheduled into the $(g,r)$ th group if there exist $0 \leq m \leq M_{\mathrm{x}} - 1$ and $0 \leq n \leq M_{\mathrm{y}} - 1$ such that the corresponding channel space angles satisfy
391
+
392
+ $$
393
+ \left(\vartheta_ {k} ^ {\mathrm {x}}, \vartheta_ {k} ^ {\mathrm {y}}\right) \in \mathcal {A} _ {(g, r)} ^ {(m, n)}. \tag {41}
394
+ $$
395
+
396
+ Denote by $\mathcal{K}_{(g,r)}^{(m,n)} = \left\{k:(\vartheta_k^{\mathrm{x}},\vartheta_k^{\mathrm{y}})\in \mathcal{A}_{(g,r)}^{(m,n)}\right\}$ the set of UTs whose space angles lie in the interval $\mathcal{A}_{(g,r)}^{(m,n)}$ . In the proposed SAUG approach, we always require $\left|\mathcal{K}_{(g,r)}^{(m,n)}\right|\leq 1$ to avoid intra-beam interference. Note that other UTs located in the same space angle interval can be scheduled over different time-frequency resources in a round-robin manner to preserve fairness. Based on the above user grouping procedure, the UTs are scheduled into at most $G_{\mathrm{x}}G_{\mathrm{y}}$ groups, where the $(g,r)$ th UT group is defined as
397
+
398
+ $$
399
+ \mathcal {K} _ {(g, r)} \triangleq \bigcup_ {\substack {0 \leq m \leq M _ {\mathrm {x}} - 1 \\ 0 \leq n \leq M _ {\mathrm {y}} - 1}} \mathcal {K} _ {(g, r)} ^ {(m, n)}. \tag{42}
400
+ $$
401
+
402
+ Note that the UTs scheduled in the same group will perform transmission over the same time-frequency resources, while UTs in different groups will be allocated with different time-frequency transmission resources.
403
+
404
+ # B. Achievable Rate Performance
405
+
406
+ In this subsection, we investigate the achievable rate performance of the proposed SAUG approach. We focus on the DL transmission case, and the UL results can be similarly obtained.
407
+
408
+ From the DL signal model in (19) and the proposed SAUG approach in the above subsection, the DL achievable ergodic sum rate is given by
409
+
410
+ $$
411
+ R _ {\mathrm {d l}} = \frac {1}{G _ {\mathrm {x}} G _ {\mathrm {y}}} \sum_ {g = 0} ^ {G _ {\mathrm {x}} - 1} \sum_ {r = 0} ^ {G _ {\mathrm {y}} - 1} \sum_ {k \in \mathcal {K} _ {(g, r)}} \mathsf {E} \left\{\log_ {2} \left\{1 + \frac {\left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \left| \mathbf {v} _ {k} ^ {T} \mathbf {b} _ {k} ^ {\text {a s l n r}} \right| ^ {2} q _ {k} ^ {\mathrm {d l}}}{\sum_ {i \in \mathcal {K} _ {(g , r)}} \left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \left| \mathbf {v} _ {k} ^ {T} \mathbf {b} _ {i} ^ {\text {a s l n r}} \right| ^ {2} q _ {i} ^ {\mathrm {d l}} + \sigma_ {k} ^ {\mathrm {d l}}} \right\} \right\}, \tag {43}
412
+ $$
413
+
414
+ where $\mathbf{b}_k^{\mathrm{aslnr}}$ is the sCSI based precoder of UT $k$ presented in (23), and $\mathcal{K}_{(g,r)}$ is the UT group defined in (42). The ergodic rate expression in (43) is in general difficult to handle. Therefore, we resort to investigate the bounds of the achievable ergodic rate for further analysis. In the following proposition, we first present an upper bound of the DL achievable ergodic sum rate.
415
+
416
+ Proposition 3: With linear precoder utilizing only sCSI, the DL achievable ergodic sum rate $R_{\mathrm{dl}}$ in (43) is upper bounded by
417
+
418
+ $$
419
+ R _ {\mathrm {d l}} \leq R _ {\mathrm {d l}} ^ {\mathrm {u b}} \triangleq \frac {1}{G _ {\mathrm {x}} G _ {\mathrm {y}}} \sum_ {g = 0} ^ {G _ {\mathrm {x}} - 1} \sum_ {r = 0} ^ {G _ {\mathrm {y}} - 1} \sum_ {k \in \mathcal {K} _ {(g, r)}} \mathsf {E} \left\{\log_ {2} \left\{1 + \rho_ {k} ^ {\mathrm {d l}} \left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \right\} \right\}, \tag {44}
420
+ $$
421
+
422
+ where the corresponding upper bound can be achieved provided that the channel direction vectors of the UTs served in the same group satisfy
423
+
424
+ $$
425
+ \left(\mathbf {v} _ {k} ^ {\mathrm {x}}\right) ^ {H} \mathbf {v} _ {i} ^ {\mathrm {x}} = 0 \quad \text {o r} \quad \left(\mathbf {v} _ {k} ^ {\mathrm {y}}\right) ^ {H} \mathbf {v} _ {i} ^ {\mathrm {y}} = 0, \quad \forall k, i \in \mathcal {K} _ {(g, r)}, k \neq i, \tag {45a}
426
+ $$
427
+
428
+ $$
429
+ \mathbf {b} _ {k} ^ {\text {a s l n r}} = \left(\mathbf {v} _ {k} ^ {\mathrm {x}} \otimes \mathbf {v} _ {k} ^ {\mathrm {y}}\right) ^ {*}, \quad \forall k. \tag {45b}
430
+ $$
431
+
432
+ Proof: Please refer to Appendix B.
433
+
434
+ Proposition 3 provides some insights for optimal DL precoding design with sCSI at the transmitter. In particular, the channel direction vectors of the UTs scheduled to be served over the same time-frequency resources should be as orthogonal as possible. Meanwhile, the beamforming vector of a given UT should be aligned with the corresponding channel direction vector. Note that the previously proposed SAUG approach attempts to schedule the UTs to satisfy the condition in (45a), and the proposed ASLNR based precoding strives to reduce the inter-user interference to approach the condition in (45b) as remarked in (36).
435
+
436
+ In the following, we further investigate the asymptotic performance of the proposed approach. Before proceeding, we first provide an upper bound of the inner product $\left|\mathbf{v}_k^H\mathbf{v}_j\right|$ for UTs $k,j(\forall k\neq j)$ that are scheduled over the same time-frequency transmission resources via the
437
+
438
+ proposed SAUG approach. From (3), we have
439
+
440
+ $$
441
+ \left| \mathbf {v} _ {k} ^ {H} \mathbf {v} _ {j} \right| = \left| \frac {\sin \frac {\pi \varphi_ {\mathrm {x}} M _ {\mathrm {x}}}{2}}{M _ {\mathrm {x}} \sin \frac {\pi \varphi_ {\mathrm {x}}}{2}} \right| \left| \frac {\sin \frac {\pi \varphi_ {\mathrm {y}} M _ {\mathrm {y}}}{2}}{M _ {\mathrm {y}} \sin \frac {\pi \varphi_ {\mathrm {y}}}{2}} \right|, \quad \forall k \neq j. \tag {46}
442
+ $$
443
+
444
+ where $\varphi_d = \vartheta_k^d -\vartheta_j^d$ for $d\in \mathcal{D}$ . With the proposed SAUG approach, it is not difficult to show that
445
+
446
+ $$
447
+ \frac {2}{M _ {d}} m - \Delta_ {d} \leq \varphi_ {d} \leq \frac {2}{M _ {d}} m + \Delta_ {d}, \text {w h e r e} 1 \leq m \leq M _ {d} - 1, d \in \mathcal {D}. \tag {47}
448
+ $$
449
+
450
+ Then, we can further upper bound the inner product $\left|\mathbf{v}_k^H\mathbf{v}_j\right|$ as
451
+
452
+ $$
453
+ \left| \mathbf {v} _ {k} ^ {H} \mathbf {v} _ {j} \right| \leq \left| \frac {\sin \pi \left(1 - \frac {1}{G _ {\mathrm {x}}}\right)}{M _ {\mathrm {x}} \sin \frac {\pi}{M _ {\mathrm {x}}} \left(1 - \frac {1}{G _ {\mathrm {x}}}\right)} \right| \left| \frac {\sin \pi \left(1 - \frac {1}{G _ {\mathrm {y}}}\right)}{M _ {\mathrm {y}} \sin \frac {\pi}{M _ {\mathrm {y}}} \left(1 - \frac {1}{G _ {\mathrm {y}}}\right)} \right|, \quad \forall k \neq j. \tag {48}
454
+ $$
455
+
456
+ Thus, with sufficiently large numbers of groups $G_{\mathrm{x}}$ and $G_{\mathrm{y}}$ , the inner product $\left|\mathbf{v}_k^H\mathbf{v}_j\right|$ can be sufficiently small. Motivated by this, we present the asymptotic optimality of the proposed SAUG approach combined with sCSI based DL precoder in each UT group in the following proposition.
457
+
458
+ Proposition 4: The DL achievable ergodic sum rate $R_{\mathrm{dl}}$ with the proposed sCSI based ASLNR maximization DL precoder and the SAUG approach is lower bounded by
459
+
460
+ $$
461
+ R _ {\mathrm {d l}} \geq R _ {\mathrm {d l}} ^ {\mathrm {l b}} \triangleq \frac {1}{G _ {\mathrm {x}} G _ {\mathrm {y}}} \sum_ {g = 0} ^ {G _ {\mathrm {x}} - 1} \sum_ {r = 0} ^ {G _ {\mathrm {y}} - 1} \sum_ {k \in \mathcal {K} _ {(g, r)}} \mathsf {E} \left\{\log_ {2} \left\{1 + \frac {\left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \left(1 - \delta^ {\mathrm {d l}} (\epsilon)\right) q _ {k} ^ {\mathrm {d l}}}{\sum_ {i \in \mathcal {K} _ {(g , r)}} ^ {i \neq k} \left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \frac {\beta_ {k , i} ^ {\mathrm {d l}} (\epsilon)}{\xi^ {\mathrm {d l}} (\epsilon)} q _ {i} ^ {\mathrm {d l}} + \sigma_ {k} ^ {\mathrm {d l}}} \right\} \right\}, \tag {49}
462
+ $$
463
+
464
+ where $\delta^{\mathrm{dl}}(\epsilon),\beta_{k,i}^{\mathrm{dl}}(\epsilon)$ , and $\xi^{\mathrm{dl}}(\epsilon)$ are given by
465
+
466
+ $$
467
+ \delta^ {\mathrm {d l}} (\epsilon) = \frac {\left(\rho_ {\max } ^ {\mathrm {d l}} \gamma_ {\max }\right) ^ {2} \left(K _ {\max } - 1\right) ^ {2} \epsilon^ {2}}{\chi^ {\mathrm {d l}} (\epsilon)}, \tag {50a}
468
+ $$
469
+
470
+ $$
471
+ \chi^ {\mathrm {d l}} (\epsilon) = \frac {1}{\frac {1}{\rho_ {\operatorname* {m i n}} ^ {\mathrm {d l}} \gamma_ {\operatorname* {m i n}}} + 1 + (K _ {\max } - 1) \epsilon}, \tag {50b}
472
+ $$
473
+
474
+ $$
475
+ \beta_ {k, i} ^ {\mathrm {d l}} (\epsilon) = \frac {\left(\rho_ {\max } ^ {\mathrm {d l}} \gamma_ {\max }\right) ^ {4}}{\left(\rho_ {k} ^ {\mathrm {d l}} \gamma_ {i} \gamma_ {k}\right) ^ {2}} \left(K _ {\max } - 1\right) ^ {2} \epsilon^ {2}, \tag {50c}
476
+ $$
477
+
478
+ $$
479
+ \xi^ {\mathrm {d l}} (\epsilon) = \frac {1}{\left(1 / \rho_ {\min } ^ {\mathrm {d l}} + \gamma_ {\max } + \gamma_ {\max } \left(K _ {\max } - 1\right) \epsilon\right) ^ {2}}, \tag {50d}
480
+ $$
481
+
482
+ respectively, with $K_{\max} = \max_{g,r}\left|\mathcal{K}_{(g,r)}\right|$ , $\rho_{\max}^{\mathrm{dl}} = \max_{g,r}\max_{k\in \mathcal{K}_{(g,r)}}\rho_k^{\mathrm{dl}}$ , $\rho_{\min}^{\mathrm{dl}} = \min_{g,r}\min_{k\in \mathcal{K}_{(g,r)}}\rho_k^{\mathrm{dl}}$ , $\gamma_{\max} = \max_{g,r}\max_{k\in \mathcal{K}_{(g,r)}}\gamma_k$ , and $\gamma_{\min} = \min_{g,r}\min_{k\in \mathcal{K}_{(g,r)}}\gamma_k$ , provided that the inner product of the channel direction vectors of the UTs scheduled over the same time-frequency resource blocks satisfies $|\mathbf{v}_k^H\mathbf{v}_j| \leq \epsilon$ for $\forall k \neq j$ and $k,j \in \mathcal{K}_{(g,r)}$ . Moreover, when $\epsilon \to 0$ , the lowed bound of the DL achievable
483
+
484
+ ergodic rate in (49) asymptotically tends to be equal to the upper bound of the DL achievable ergodic rate in (44), i.e.,
485
+
486
+ $$
487
+ \lim _ {\epsilon \rightarrow 0} R _ {\mathrm {d l}} ^ {\mathrm {l b}} = \frac {1}{G _ {\mathrm {x}} G _ {\mathrm {y}}} \sum_ {g = 0} ^ {G _ {\mathrm {x}} - 1} \sum_ {r = 0} ^ {G _ {\mathrm {y}} - 1} \sum_ {k \in \mathcal {K} _ {(g, r)}} \mathsf {E} \left\{\log_ {2} \left\{1 + \rho_ {k} ^ {\mathrm {d l}} \left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \right\}\right\} = R _ {\mathrm {d l}} ^ {\mathrm {u b}}. \tag {51}
488
+ $$
489
+
490
+ Proof: Please refer to Appendix C.
491
+
492
+ Proposition 4 shows that the proposed approach with SAUG and sCSI based ASLNR maximization DL precoder performed in each UT group is asymptotically optimal when $\left|\mathbf{v}_k^H\mathbf{v}_j\right| \to 0$ . Note that this condition coincides with the upper bound achieving condition presented in Proposition 2. Therefore, when the number of satellite antennas $M$ and/or the number of scheduled UT groups is sufficiently large, the proposed approach is asymptotically optimal, which indicates the potential of adopting massive MIMO to serve a large number of UTs in LEO satellite communications. In addition, when the previously derived conditions are not rigorously satisfied (which is the usual case in practice), the proposed sCSI based precoder and receiver can mitigate the inter-user interference and further enhance the transmission performance for satellite communications.
493
+
494
+ # V. SIMULATION RESULTS
495
+
496
+ In this section, we provide simulation results to evaluate the performance of the proposed massive MIMO transmission approach for LEO satellite communications. The major simulation setup parameters are listed as follows. The numbers of antennas equipped at the satellite side are set to be $M_{\mathrm{x}} = M_{\mathrm{y}} = 16$ with half-wavelength antenna spacing in both the x- and y-axes. The channel Rician factor is set to be $\kappa_{k} = \kappa = 10$ dB, and the channel power is normalized as $\gamma_{k} = M_{\mathrm{x}}M_{\mathrm{y}}$ for all UT $k$ . In addition, the channel space angles $\vartheta_{k,p}^{\mathrm{x}}$ and $\vartheta_{k,p}^{\mathrm{y}}$ are independently and uniformly distributed in the interval $[-1,1)$ for all UTs. The numbers of UT groups in the proposed SAUG approach are set to be equal for both x- and y-axes, i.e., $G_{\mathrm{x}} = G_{\mathrm{y}} = G$ . The number of UTs to be grouped is set as $G^{2}M$ .
497
+
498
+ Note that massive MIMO has not been applied to LEO satellite communications, and we consider and compare the following DL precoding and UL receiving approaches in the simulations:
499
+
500
+ - IntF: An ideal interference-free (IntF) case where the interference from other scheduled UTs over the same time and frequency resource is "genie-aided" eliminated will be considered as the performance upper bound.
501
+
502
+ ![](images/61ceee804e3182c2d2ad237904daede9a144ed6d8493328e5365a57534012ed9.jpg)
503
+ (a) DL
504
+
505
+ ![](images/6e1847ca52bb8a20477f74c75b698d8a1d74fde0ba8c86e36765df88042b8b8d.jpg)
506
+ (b) UL
507
+ Fig. 2. Sum rate performance comparison between the proposed sCSI (using the true and the estimated sCSI that are obtained via averaging over 50 samples, respectively) and iCSI based precoding/receiving approaches.
508
+
509
+ - iCSI: Relying on the iCSI, the SLNR maximization DL precoder in (21) and the SINR maximization UL receiver in (28) are adopted, with the assumption that the iCSI can be "genie-aided" obtained.
510
+ - sCSI: The proposed sCSI based ASLNR maximization DL precoder and ASINR maximization UL receiver in (23) and (30) are adopted, respectively.
511
+ - Fixed: DFT based fixed DL precoding and UL receiving vectors in (37) are adopted.
512
+
513
+ In Fig. 2, we evaluate the performance of the proposed sCSI based precoding/receiving approaches, and compare them with the iCSI based ones where UTs are grouped using the proposed SAUG with $G = 1$ . We consider both cases that utilize the true and estimated sCSI that is obtained via averaging 50 samples. We can observe that in both UL and DL transmissions, the proposed sCSI based precoder and receivers exhibit almost identical performance as the iCSI based ones, while having significantly reduced computational overhead. In addition, the sum rate performance loss utilizing the estimated sCSI can be almost neglected.
514
+
515
+ In Fig. 3, we evaluate the performance of the proposed SAUG approach with different precoding/receiving approaches versus the number of scheduled groups $G$ when FFR is adopted across neighboring beams. We can observe that the performance of the proposed sCSI based precoder/receiver can approach that of the interference-free scenario, especially in the case with a large number of scheduled groups, which demonstrates the asymptotic optimality of the proposed transmission approach. In addition, the performance gap between the approach
516
+
517
+ ![](images/4539939dd0d4dfbe6183aa0dd45b28148c95a26cd56d60024077a6e225c25c76.jpg)
518
+ (a) DL
519
+
520
+ ![](images/6934dc7520ac13e4a0255d33016bcdd5d38b06f4c935c39645cf7f9cf9575288.jpg)
521
+ (b) UL
522
+ Fig. 3. Sum rate performance of SAUG with different transmission approaches versus the number of scheduled UT groups for different SNRs when FFR is adopted.
523
+
524
+ with fixed precoding/receiving vectors and the proposed sCSI based ones becomes smaller as the number of scheduled groups increases, especially in the low SNR regime, which indicates the near-optimality of the approach with fixed precoding/receiving vectors in the case where interference is not dominated.
525
+
526
+ In Fig. 4, the performance between the proposed transmission approach with FFR and the conventional FR4 approach is compared for different SNRs and channel Rician factors. Similarly as FFR, only one UT is scheduled per beam over the same time and frequency resource in FR4. Note that in the case of FR4, the UTs with the same color are a group of UTs performing transmission over the same time and frequency resource. For FR4, we consider two transmission approaches where "FR4, Conventional" denotes the fixed precoder/receiver in (37) and "FR4, sCSI" denotes the proposed sCSI based precoder/receiver in (23)/(30) applied to the group of UTs over the same time and frequency resource for interference mitigation, respectively. We can observe that the proposed sCSI based precoder/receiver applied to FR4 show sum rate performance gains over the conventional FR4 approach. Moreover, with FFR across neighboring beams, the proposed sCSI based precoder/receiver combined with SAUG can provide significant sum rate performance gains over the conventional FR4 approach, especially in the cases with high SNRs and large Rician factors. Notably, for both UL and DL with an SNR of 20 dB and $\kappa = 10$ dB, the proposed transmission approach with $G = 4$ can provide about eight-folded sum rate performance gain over the conventional FR4 approach.
527
+
528
+ ![](images/e563143779b20df816c4f15db7d6219a7e87074590574f6d9fe4054d6dd15237.jpg)
529
+ (a) DL
530
+
531
+ ![](images/8d8e6e171e6c7744c5619da1920d3f16919fc44e0384e11f09f578004dab0261.jpg)
532
+ (b) UL
533
+ Fig. 4. Sum rate performance comparison between the proposed approach with FFR and the conventional FR4 approach under different Rician factors.
534
+
535
+ # VI. CONCLUSION
536
+
537
+ In this paper, we have investigated massive MIMO transmission for LEO satellite communications exploiting sCSI with FFR. We first established the massive MIMO channel model for LEO satellite communications by taking into account the LEO satellite signal propagation properties and simplified the UL/DL transmission designs via performing Doppler and delay compensations at UTs. Then, we developed the sCSI based DL precoder and UL receiver in closed-form, under the criteria of maximizing the ASLNR and the ASINR, respectively, and revealed the duality between them. We further showed that the DL ASLNRs and UL ASINRs can reach their upper bounds provided that the channel direction vectors of the simultaneously served UTs are orthogonal, and proposed a space angle based user grouping (SAUG) approach motivated by this condition. Besides, we showed the asymptotic optimality of the proposed massive MIMO transmission approach exploiting sCSI. Simulation results showed that the proposed massive MIMO transmission scheme with FFR significantly enhances the data rate of LEO satellite communication systems. Notably, the proposed sCSI based precoder and receiver achieved the similar performance with the iCSI based ones that are often infeasible in practice. Future work includes detailed investigation on low complexity sCSI estimation, transmission designs for the cases with UTs using multiple antenna or directive antennas, low peak-to-average power ratio transmission signal design, and extension to the multiple LEO satellite communication systems, etc.
538
+
539
+ # APPENDIX A
540
+
541
+ # PROOF OF PROPOSITION 2
542
+
543
+ We focus on the proof of the DL case and the proof of the UL case can be similarly obtained. We first show the upper bound of $\mathrm{ASLNR}_{k}^{\max}$ in (32). From (24), we can obtain that $\mathrm{ASLNR}_{k}^{\max}$ with the proposed sCSI based precoder can be upper bounded by
544
+
545
+ $$
546
+ \begin{array}{l} \mathsf {A S L N R} _ {k} ^ {\max} = \frac {1}{1 - \gamma_ {k} \mathbf {v} _ {k} ^ {H} \left(\sum_ {i} \gamma_ {i} \mathbf {v} _ {i} \mathbf {v} _ {i} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d i}} \mathbf {I} _ {M}}\right) ^ {- 1} \mathbf {v} _ {k}} - 1 \\ \stackrel {\mathrm {(a)}} {\leq} \frac {1}{1 - \gamma_ {k} \mathbf {v} _ {k} ^ {H} \left(\gamma_ {k} \mathbf {v} _ {k} \mathbf {v} _ {k} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d i}} \mathbf {I}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {v} _ {k}} - 1 \\ \stackrel {(b)} {=} \rho_ {k} ^ {\mathrm {d l}} \gamma_ {k}, \tag {52} \\ \end{array}
547
+ $$
548
+
549
+ where (a) follows from that $\gamma_{i}\mathbf{v}_{i}\mathbf{v}_{i}^{H}$ is positive semidefinite for $\forall i$ , and (b) follows from the Sherman-Morrison formula [39, Eq. (15.2b)].
550
+
551
+ We then show the achievability of the upper bound. From the definition of $\mathbf{v}_k$ in (4), the condition given in (33) is equivalent to $\mathbf{v}_k^H\mathbf{v}_i = 0$ for $\forall k \neq i$ . Thus, we can obtain that
552
+
553
+ $$
554
+ \begin{array}{l} \left(\sum_ {i} \gamma_ {i} \mathbf {v} _ {i} \mathbf {v} _ {i} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) \mathbf {v} _ {k} \mathbf {v} _ {k} ^ {H} = \left(\gamma_ {k} \mathbf {v} _ {k} \mathbf {v} _ {k} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) \mathbf {v} _ {k} \mathbf {v} _ {k} ^ {H} \\ = \mathbf {v} _ {k} \mathbf {v} _ {k} ^ {H} \left(\gamma_ {k} \mathbf {v} _ {k} \mathbf {v} _ {k} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right), \tag {53} \\ \end{array}
555
+ $$
556
+
557
+ which yields
558
+
559
+ $$
560
+ \left(\sum_ {i} \gamma_ {i} \mathbf {v} _ {i} \mathbf {v} _ {i} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {v} _ {k} \mathbf {v} _ {k} ^ {H} = \mathbf {v} _ {k} \mathbf {v} _ {k} ^ {H} \left(\gamma_ {k} \mathbf {v} _ {k} \mathbf {v} _ {k} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) ^ {- 1}. \tag {54}
561
+ $$
562
+
563
+ Taking the traces of both sides of (54), we can further obtain
564
+
565
+ $$
566
+ \mathbf {v} _ {k} ^ {H} \left(\sum_ {i} \gamma_ {i} \mathbf {v} _ {i} \mathbf {v} _ {i} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {v} _ {k} = \mathbf {v} _ {k} ^ {H} \left(\gamma_ {k} \mathbf {v} _ {k} \mathbf {v} _ {k} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {v} _ {k}. \tag {55}
567
+ $$
568
+
569
+ Thus, the inequality in (a) of (52) can be obtained when the condition in (33) is satisfied. This concludes the proof.
570
+
571
+ # APPENDIX B
572
+
573
+ # PROOF OF PROPOSITION 3
574
+
575
+ The achievable ergodic rate in (43) can be upper bounded by
576
+
577
+ $$
578
+ \begin{array}{l} R _ {\mathrm {d l}} \stackrel {\mathrm {(a)}} {\leq} \frac {1}{G _ {\mathrm {x}} G _ {\mathrm {y}}} \sum_ {g = 0} ^ {G _ {\mathrm {x}} - 1} \sum_ {r = 0} ^ {G _ {\mathrm {y}} - 1} \sum_ {k \in \mathcal {K} _ {(g, r)}} \mathsf {E} \left\{\log_ {2} \left\{1 + \rho_ {k} ^ {\mathrm {d l}} \left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \left| \mathbf {v} _ {k} ^ {T} \mathbf {b} _ {k} ^ {\mathrm {a s l n r}} \right| ^ {2} \right\} \right\} \\ \stackrel {(b)} {\leq} \frac {1}{G _ {\mathrm {x}} G _ {\mathrm {y}}} \sum_ {g = 0} ^ {G _ {\mathrm {x}} - 1} \sum_ {r = 0} ^ {G _ {\mathrm {y}} - 1} \sum_ {k \in \mathcal {K} _ {(g, r)}} \mathsf {E} \left\{\log_ {2} \left\{1 + \rho_ {k} ^ {\mathrm {d l}} \left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \right\} \right\}, \tag {56} \\ \end{array}
579
+ $$
580
+
581
+ where (a) follows from $|\cdot|^2 \geq 0$ , and (b) follows from the Cauchy-Schwarz inequality.
582
+
583
+ We then examine the condition under which the upper bound in (44) can be achieved. The inequality (a) in (56) becomes tight when $\mathbf{b}_i^{\mathrm{aslnr}}$ is orthogonal to $(\mathbf{v}_k^{\mathrm{x}}\otimes \mathbf{v}_k^{\mathrm{y}})^*$ for $i\neq k$ . In addition, as the equality in (b) can be achieved when $\mathbf{b}_k^{\mathrm{aslnr}} = (\mathbf{v}_k^{\mathrm{x}}\otimes \mathbf{v}_k^{\mathrm{y}})^*$ [40], [41], we can obtain that for $\forall k\neq i\in \mathcal{K}_{(g,r)}$ , the channel direction vectors should satisfy $(\mathbf{v}_k^{\mathrm{x}}\otimes \mathbf{v}_k^{\mathrm{y}})^H (\mathbf{v}_i^{\mathrm{x}}\otimes \mathbf{v}_i^{\mathrm{y}}) = (\mathbf{v}_k^{\mathrm{x}})^H\mathbf{v}_i^{\mathrm{x}}(\mathbf{v}_k^{\mathrm{y}})^H\mathbf{v}_i^{\mathrm{y}} = 0$ , i.e., $(\mathbf{v}_k^{\mathrm{x}})^H\mathbf{v}_i^{\mathrm{x}} = 0$ or $(\mathbf{v}_k^{\mathrm{y}})^H\mathbf{v}_i^{\mathrm{y}} = 0$ . This concludes the proof.
584
+
585
+ # APPENDIX C
586
+
587
+ # PROOF OF PROPOSITION 4
588
+
589
+ We first define some auxiliary variables for clarity of further proof. For notational brevity, we focus on a specific UT group, namely, the $(g,r)$ th UT group $\mathcal{K}_{(g,r)}$ , and omit the group index as the UTs in different groups are scheduled over different time-frequency transmission resources. For a given UT $k \in \mathcal{K}_{(g,r)}$ , we define $\underline{\mathbf{b}}_k^{\mathrm{aslnr}} \triangleq \left(\sum_i \gamma_i \mathbf{v}_i \mathbf{v}_i^H + \frac{1}{\rho_k^{\mathrm{dl}}} \mathbf{I}_M\right)^{-1} \mathbf{v}_k$ . From (23), we can have $\mathbf{b}_k^{\mathrm{aslnr}} = \left(\underline{\mathbf{b}}_k^{\mathrm{aslnr}} / \left\| \underline{\mathbf{b}}_k^{\mathrm{aslnr}} \right\|\right)^*$ . Then, the DL sum rate in (43) can be rewritten as
590
+
591
+ $$
592
+ R _ {\mathrm {d l}} = \frac {1}{G _ {\mathrm {x}} G _ {\mathrm {y}}} \sum_ {g = 0} ^ {G _ {\mathrm {x}} - 1} \sum_ {r = 0} ^ {G _ {\mathrm {y}} - 1} \sum_ {k \in \mathcal {K} _ {(g, r)}} \mathsf {E} \left\{\log_ {2} \left\{1 + \frac {\left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \frac {\left| \mathbf {v} _ {k} ^ {H} \underline {{\mathbf {b}}} _ {k} ^ {\text {a s l n r}} \right| ^ {2}}{\left\| \underline {{\mathbf {b}}} _ {k} ^ {\text {a s l n r}} \right\| ^ {2}} q _ {k} ^ {\mathrm {d l}}}{\sum_ {i \in \mathcal {K} _ {(g , r)}} \left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \frac {\left| \mathbf {v} _ {k} ^ {H} \underline {{\mathbf {b}}} _ {i} ^ {\text {a s l n r}} \right| ^ {2}}{\left\| \underline {{\mathbf {b}}} _ {i} ^ {\text {a s l n r}} \right\| ^ {2}} q _ {i} ^ {\mathrm {d l}} + \sigma_ {k} ^ {\mathrm {d l}}} \right\} \right\}. \tag {57}
593
+ $$
594
+
595
+ In order to obtain a lower bound of $R_{\mathrm{dl}}$ in (57), we provide an upper bound of $\left|\mathbf{v}_k^H\underline{\mathbf{b}}_i^{\mathrm{aslnr}}\right|^2$ for $\forall k \neq i$ , a lower bound of $\left\| \underline{\mathbf{b}}_k^{\mathrm{aslnr}}\right\|^2$ , and a lower bound of $\left|\mathbf{v}_k^H\underline{\mathbf{b}}_k^{\mathrm{aslnr}}\right|^2 / \left\| \underline{\mathbf{b}}_k^{\mathrm{aslnr}}\right\|^2$ , respectively, in the following.
596
+
597
+ A. Upper Bound of $\left|\mathbf{v}_k^H\underline{\mathbf{b}}_i^{\mathrm{aslnr}}\right|^2$ for $\forall k \neq i$
598
+
599
+ Denote by $K \triangleq |\mathcal{K}_{(g,r)}|$ , $\mathbf{V} \triangleq [\mathbf{v}_1, \ldots, \mathbf{v}_K]$ , and $\Gamma \triangleq \operatorname{diag}\left\{[\gamma_1, \ldots, \gamma_K]^T\right\}$ . Then, $\mathbf{v}_k^H \underline{\mathbf{b}}_i^{\mathrm{aslnr}}$ can be expressed by the $(k,i)$ th element of the following matrix
600
+
601
+ $$
602
+ \mathbf {A} \triangleq \mathbf {V} ^ {H} \left(\mathbf {V} \boldsymbol {\Gamma} \mathbf {V} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {V} \triangleq \boldsymbol {\Gamma} ^ {- 1} - \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \boldsymbol {\Gamma} ^ {- 1} \left(\frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \boldsymbol {\Gamma} ^ {- 1} + \mathbf {V} ^ {H} \mathbf {V}\right) ^ {- 1} \boldsymbol {\Gamma} ^ {- 1}, \tag {58}
603
+ $$
604
+
605
+ where (a) follows from the matrix inversion lemma. Let $\mathbf{B} \triangleq \frac{1}{\rho_k^{\mathrm{dI}}}\pmb{\Gamma}^{-1} + \mathbf{V}^H\mathbf{V}$ . Then, $\mathbf{v}_k^H\underline{\mathbf{b}}_i^{\mathrm{aslnr}}$ can be further written as
606
+
607
+ $$
608
+ \mathbf {v} _ {k} ^ {H} \underline {{\mathbf {b}}} _ {i} ^ {\text {a s l n r}} = [ \mathbf {A} ] _ {k, i} = \left\{ \begin{array}{l l} - \frac {1}{\rho_ {k} ^ {\mathrm {d l}} \gamma_ {i} \gamma_ {k}} [ \mathbf {B} ^ {- 1} ] _ {k, i}, & \text {i f} i \neq k \\ \frac {1}{\gamma_ {k}} - \frac {1}{\rho_ {k} ^ {\mathrm {d l}} \gamma_ {k} ^ {2}} [ \mathbf {B} ^ {- 1} ] _ {k, k}, & \text {i f} i = k \end{array} . \right. \tag {59}
609
+ $$
610
+
611
+ Denote by $b_{k,j}$ the $(k,j)$ th element of $\mathbf{B}$ , and $D_k^\prime (\mathbf{B}) \triangleq \sum_{j\neq k}|b_{k,j}| = \sum_{j\neq k}\left|\mathbf{v}_k^H\mathbf{v}_j\right|$ . Then, according to Gersgorin disc theorem [42, Theorem 6.1.1], for an arbitrary eigenvalue $\lambda$ of $\mathbf{B}$ , there exists an integer $1\leq p\leq K$ such that
612
+
613
+ $$
614
+ \left| \lambda - b _ {p, p} \right| \leq D _ {p} ^ {\prime} (\mathbf {B}) \stackrel {(a)} {\leq} (K - 1) \epsilon^ {(b)} \leq (K _ {\max } - 1) \epsilon , \tag {60}
615
+ $$
616
+
617
+ where (a) follows from $\left|\mathbf{v}_p^H\mathbf{v}_j\right| \leq \epsilon$ for all $j \neq p$ , and (b) follows from $K \leq K_{\max}$ . Denote by $\lambda_{\max}$ and $\lambda_{\min}$ the largest and smallest eigenvalues of $\mathbf{B}$ , respectively. For $\forall i \neq k$ , we can have the following inequality
618
+
619
+ $$
620
+ \begin{array}{l} \left| \left[ \mathbf {B} ^ {- 1} \right] _ {k, i} \right| = \left| \mathbf {e} _ {k} ^ {T} \mathbf {B} ^ {- 1} \mathbf {e} _ {i} \right| \stackrel {\mathrm {(a)}} {\leq} \frac {1 / \lambda_ {\min} - 1 / \lambda_ {\max}}{1 / \lambda_ {\min} + 1 / \lambda_ {\max}} \sqrt {\mathbf {e} _ {k} ^ {T} \mathbf {B} ^ {- 1} \mathbf {e} _ {k}} \sqrt {\mathbf {e} _ {i} ^ {T} \mathbf {B} ^ {- 1} \mathbf {e} _ {i}} \\ = \frac {\lambda_ {\mathrm {m a x}} - \lambda_ {\mathrm {m i n}}}{\lambda_ {\mathrm {m a x}} + \lambda_ {\mathrm {m i n}}} \sqrt {[ \mathbf {B} ^ {- 1} ] _ {k , k}} \sqrt {[ \mathbf {B} ^ {- 1} ] _ {i , i}} \overset {(\mathrm {b})} {\leq} \frac {2 (K _ {\mathrm {m a x}} - 1) \epsilon}{\lambda_ {\mathrm {m a x}} + \lambda_ {\mathrm {m i n}}} \sqrt {[ \mathbf {B} ^ {- 1} ] _ {k , k}} \sqrt {[ \mathbf {B} ^ {- 1} ] _ {i , i}} \\ \stackrel {\mathrm {(c)}} {\leq} \rho_ {\max } ^ {\mathrm {d l}} \gamma_ {\max } \left(K _ {\max } - 1\right) \epsilon \sqrt {\left[ \mathbf {B} ^ {- 1} \right] _ {k , k}} \sqrt {\left[ \mathbf {B} ^ {- 1} \right] _ {i , i}} \\ \stackrel {\mathrm {(d)}} {\leq} \left(\rho_ {\max } ^ {\mathrm {d l}} \gamma_ {\max }\right) ^ {2} \left(K _ {\max } - 1\right) \epsilon , \tag {61} \\ \end{array}
621
+ $$
622
+
623
+ where $\mathbf{e}_k$ is the $k$ th column of identity matrix, (a) follows from Wielandt's inequality [42, Eq. (7.4.12.2)], (b) follows from (60), (c) follows from Weyl's inequality [42, Corollary 4.3.15], and (d) follows from Rayleigh quotient theorem [42, Theorem 4.2.2(c)]. From (59) and the inequality in (61), we can obtain
624
+
625
+ $$
626
+ \left| \mathbf {v} _ {k} ^ {H} \underline {{\mathbf {b}}} _ {i} ^ {\text {a s l n r}} \right| ^ {2} \leq \frac {\left(\rho_ {\max } ^ {\mathrm {d l}} \gamma_ {\max }\right) ^ {4}}{\left(\rho_ {k} ^ {\mathrm {d l}} \gamma_ {i} \gamma_ {k}\right) ^ {2}} \left(K _ {\max } - 1\right) ^ {2} \epsilon^ {2} \triangleq \beta_ {k, i} ^ {\mathrm {d l}} (\epsilon), \quad \forall i \neq k. \tag {62}
627
+ $$
628
+
629
+ B. Lower Bound of $\left\| \underline{\mathbf{b}}_k^{\mathrm{aslnr}}\right\|$
630
+
631
+ Defining $\zeta_{\mathrm{max}}(\mathbf{X})$ as the maximum eigenvalue of matrix $\mathbf{X}$ . Then, a lower bound of $\left\| \underline{\mathbf{b}}_k^{\mathrm{aslnr}} \right\|^2$ can be obtained as
632
+
633
+ $$
634
+ \begin{array}{l} \left\| \underline {{\mathbf {b}}} _ {k} ^ {\mathrm {a s l n r}} \right\| ^ {2} = \mathbf {v} _ {k} ^ {H} \left(\mathbf {V} \boldsymbol {\Gamma} \mathbf {V} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) ^ {- 2} \mathbf {v} _ {k} \overset {\mathrm {(a)}} {\geq} \frac {1}{\zeta_ {\max} ^ {2} \left(\mathbf {V} \boldsymbol {\Gamma} \mathbf {V} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right)} \\ \stackrel {(b)} {\geq} \frac {1}{\left(1 / \rho_ {k} ^ {\mathrm {d l}} + \zeta_ {\max } \left(\mathbf {V} \boldsymbol {\Gamma} \mathbf {V} ^ {H}\right)\right) ^ {2}} \stackrel {(c)} {\geq} \frac {1}{\left(1 / \rho_ {\min } ^ {\mathrm {d l}} + \gamma_ {\max } + \gamma_ {\max } \left(K _ {\max } - 1\right) \epsilon\right) ^ {2}} \triangleq \xi^ {\mathrm {d l}} (\epsilon), \tag {63} \\ \end{array}
635
+ $$
636
+
637
+ where (a) follows from Rayleigh quotient theorem [42, Theorem 4.2.2(c)], (b) follows from Weyl's inequality [42, Corollary 4.3.15], and (c) holds by applying Gersgorin disc theorem [42, Theorem 6.1.1] to matrix $\mathbf{V}\mathbf{T}\mathbf{V}^H$ .
638
+
639
+ C. Lower Bound of $\left|\mathbf{v}_k^H\underline{\mathbf{b}}_k^{\mathrm{aslnr}}\right|^2 / \left\| \underline{\mathbf{b}}_k^{\mathrm{aslnr}}\right\|^2$
640
+
641
+ Before proceeding, we first present some preliminary results. An upper bound of $\left\| \underline{\mathbf{b}}_k^{\mathrm{aslnr}}\right\|^2$ can be obtained as
642
+
643
+ $$
644
+ \begin{array}{l} \left\| \underline {{\mathbf {b}}} _ {k} ^ {\mathrm {a s l n r}} \right\| ^ {2} = \left\| \left(\mathbf {V} \boldsymbol {\Gamma} \mathbf {V} ^ {H} + \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \mathbf {I} _ {M}\right) ^ {- 1} \mathbf {V} \mathbf {e} _ {k} \right\| ^ {2} \stackrel {(a)} {=} \left\| \mathbf {V} \mathbf {B} ^ {- 1} \boldsymbol {\Gamma} ^ {- 1} \mathbf {e} _ {k} \right\| ^ {2} = \mathbf {e} _ {k} ^ {T} \boldsymbol {\Gamma} ^ {- 1} \mathbf {B} ^ {- 1} \mathbf {V} ^ {H} \mathbf {V} \mathbf {B} ^ {- 1} \boldsymbol {\Gamma} ^ {- 1} \mathbf {e} _ {k} \\ \stackrel {\mathrm {(b)}} {=} \frac {1}{\gamma_ {k} ^ {2}} \left[ \mathbf {B} ^ {- 1} \left(\mathbf {B} - \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \boldsymbol {\Gamma} ^ {- 1}\right) \mathbf {B} ^ {- 1} \right] _ {k, k} = \frac {1}{\gamma_ {k} ^ {2}} \left(\left[ \mathbf {B} ^ {- 1} \right] _ {k, k} - \frac {1}{\rho_ {k} ^ {\mathrm {d l}}} \left[ \mathbf {B} ^ {- 1} \boldsymbol {\Gamma} ^ {- 1} \mathbf {B} ^ {- 1} \right] _ {k, k}\right) \\ = \frac {1}{\gamma_ {k} ^ {2}} \left(\left[ \mathbf {B} ^ {- 1} \right] _ {k, k} - \sum_ {j = 1} ^ {K} \frac {1}{\rho_ {k} ^ {\mathrm {d l}} \gamma_ {j}} \left| \left[ \mathbf {B} ^ {- 1} \right] _ {k, j} \right| ^ {2}\right) \\ \leq \frac {1}{\gamma_ {k} ^ {2}} \left[ \mathbf {B} ^ {- 1} \right] _ {k, k} \left(1 - \frac {1}{\rho_ {k} ^ {\mathrm {d l}} \gamma_ {k}} \left[ \mathbf {B} ^ {- 1} \right] _ {k, k}\right) \triangleq \eta_ {k} ^ {\mathrm {d l}}, \tag {64} \\ \end{array}
645
+ $$
646
+
647
+ where (a) follows from the matrix inversion lemma, and (b) follows from the definition of $\Gamma$ and $\mathbf{B}$ . In addition, $[\mathbf{B}^{-1}]_{k,k}$ can be lower bounded by
648
+
649
+ $$
650
+ \left[ \mathbf {B} ^ {- 1} \right] _ {k, k} \overset {\mathrm {(a)}} {\geq} \frac {1}{\lambda_ {\operatorname* {m a x}}} \overset {\mathrm {(b)}} {\geq} \frac {1}{b _ {p , p} + \left(K _ {\operatorname* {m a x}} - 1\right) \epsilon} \geq \frac {1}{\frac {1}{\rho_ {\operatorname* {m i n}} ^ {\mathrm {d l}} \gamma_ {\operatorname* {m i n}}} + 1 + \left(K _ {\operatorname* {m a x}} - 1\right) \epsilon} \triangleq \chi^ {\mathrm {d l}} (\epsilon), \tag {65}
651
+ $$
652
+
653
+ where (a) follows from Rayleigh quotient theorem [42, Theorem 4.2.2(c)], (b) follows from Gersgorin disc theorem [42, Theorem 6.1.1]. Moreover, the following inequality can be obtained
654
+
655
+ $$
656
+ 1 = \left| \left[ \mathbf {B} \mathbf {B} ^ {- 1} \right] _ {k, k} \right| = \left| \sum_ {j = 1} ^ {K} b _ {k, j} \left[ \mathbf {B} ^ {- 1} \right] _ {j, k} \right|
657
+ $$
658
+
659
+ $$
660
+ \begin{array}{l} \stackrel {\mathrm {(a)}} {\geq} b _ {k, k} \left[ \mathbf {B} ^ {- 1} \right] _ {k, k} - \sum_ {j \neq k} | b _ {k, j} | \left| \left[ \mathbf {B} ^ {- 1} \right] _ {j, k} \right| \stackrel {\mathrm {(b)}} {\geq} b _ {k, k} \left[ \mathbf {B} ^ {- 1} \right] _ {k, k} - \sum_ {j \neq k} \left(\rho_ {\max } ^ {\mathrm {d l}} \gamma_ {\max }\right) ^ {2} (K _ {\max } - 1) \epsilon^ {2} \\ = \left(\frac {1}{\rho_ {k} ^ {\mathrm {d l}} \gamma_ {k}} + 1\right) \left[ \mathbf {B} ^ {- 1} \right] _ {k, k} - \left(\rho_ {\max } ^ {\mathrm {d l}} \gamma_ {\max }\right) ^ {2} \left(K _ {\max } - 1\right) ^ {2} \epsilon^ {2}, \tag {66} \\ \end{array}
661
+ $$
662
+
663
+ where (a) follows from the triangle inequality, and (b) follows from $|b_{k,j}| = |\mathbf{v}_k^H\mathbf{v}_j|\leq \epsilon$ for $\forall j\neq k$ and the inequality in (61). Then, we can obtain
664
+
665
+ $$
666
+ \begin{array}{l} \frac {1}{[ \mathbf {B} ^ {- 1} ] _ {k , k}} - \frac {1}{\rho_ {k} ^ {\mathrm {d l}} \gamma_ {k}} \overset {\mathrm {(a)}} {\geq} 1 - \frac {1}{[ \mathbf {B} ^ {- 1} ] _ {k , k}} \left(\rho_ {\max} ^ {\mathrm {d l}} \gamma_ {\max}\right) ^ {2} (K _ {\max} - 1) ^ {2} \epsilon^ {2} \\ \stackrel {(b)} {\geq} 1 - \frac {\left(\rho_ {\max } ^ {\mathrm {d l}} \gamma_ {\max }\right) ^ {2} \left(K _ {\max } - 1\right) ^ {2} \epsilon^ {2}}{\chi^ {\mathrm {d l}} (\epsilon)} \triangleq 1 - \delta^ {\mathrm {d l}} (\epsilon), \tag {67} \\ \end{array}
667
+ $$
668
+
669
+ where (a) follows from (66), and (b) follows from (65).
670
+
671
+ Consequently, $\left|\mathbf{v}_k^H\underline{\mathbf{b}}_k^{\mathrm{aslnr}}\right|^2 / \left\| \underline{\mathbf{b}}_k^{\mathrm{aslnr}}\right\|^2$ can be lower bounded by
672
+
673
+ $$
674
+ \frac {\left| \mathbf {v} _ {k} ^ {H} \underline {{\mathbf {b}}} _ {k} ^ {\text {a s l n r}} \right| ^ {2}}{\left\| \underline {{\mathbf {b}}} _ {k} ^ {\text {a s l n r}} \right\| ^ {2}} \overset {(a)} {\geq} \frac {\left| \mathbf {v} _ {k} ^ {H} \underline {{\mathbf {b}}} _ {k} ^ {\text {a s l n r}} \right| ^ {2}}{\eta_ {k} ^ {\mathrm {d l}}} \overset {(b)} {=} \frac {\left(1 - \frac {1}{\rho_ {k} ^ {\mathrm {d l}} \gamma_ {k}} [ \mathbf {B} ^ {- 1} ] _ {k , k}\right) ^ {2}}{\gamma_ {k} ^ {2} \eta_ {k} ^ {\mathrm {d l}}} \overset {(c)} {=} \frac {1}{[ \mathbf {B} ^ {- 1} ] _ {k , k}} - \frac {1}{\rho_ {k} ^ {\mathrm {d l}} \gamma_ {k}} \overset {(d)} {\geq} 1 - \delta^ {\mathrm {d l}} (\epsilon), \tag {68}
675
+ $$
676
+
677
+ where (a) follows from the inequality in (64), (b) follows from (59), (c) follows from the definition of $\eta_k^{\mathrm{dl}}$ in (64), and (d) follows from (67).
678
+
679
+ Combining (57), (62), (63), and (68), we can obtain a lower bound of $R_{\mathrm{dl}}$ as
680
+
681
+ $$
682
+ R _ {\mathrm {d l}} \geq \frac {1}{G _ {\mathrm {x}} G _ {\mathrm {y}}} \sum_ {g = 0} ^ {G _ {\mathrm {x}} - 1} \sum_ {r = 0} ^ {G _ {\mathrm {y}} - 1} \sum_ {k \in \mathcal {K} _ {(g, r)}} \mathsf {E} \left\{\log_ {2} \left\{1 + \frac {\left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \left(1 - \delta^ {\mathrm {d l}} (\epsilon)\right) q _ {k} ^ {\mathrm {d l}}}{\sum_ {i \in \mathcal {K} _ {(g , r)}} ^ {i \neq k} \left| g _ {k} ^ {\mathrm {d l}} \right| ^ {2} \frac {\beta_ {k , i} ^ {\mathrm {d l}} (\epsilon)}{\xi^ {\mathrm {d l}} (\epsilon)} q _ {i} ^ {\mathrm {d l}} + \sigma_ {k} ^ {\mathrm {d l}}} \right\} \right\} \triangleq R _ {\mathrm {d l}} ^ {\mathrm {l b}}. \tag {69}
683
+ $$
684
+
685
+ Note that $\lim_{\epsilon \to 0} \delta^{\mathrm{dl}}(\epsilon) = 0$ , $\lim_{\epsilon \to 0} \beta_{k,i}^{\mathrm{dl}}(\epsilon) = 0$ , and $\xi^{\mathrm{dl}}(\epsilon) > 0$ , thus we can obtain $\lim_{\epsilon \to 0} R_{\mathrm{dl}}^{\mathrm{lb}} = R_{\mathrm{dl}}^{\mathrm{ub}}$ . This concludes the proof.
686
+
687
+ # REFERENCES
688
+
689
+ [1] L. You, K.-X. Li, J. Wang, X. Q. Gao, X.-G. Xia, and B. Ottersten, “LEO satellite communications with massive MIMO,” in Proc. IEEE ICC, Dublin, Ireland, 2020, pp. 1-6.
690
+ [2] A. Guidotti, A. Vanelli-Coralli, M. Conti, S. Andreacci, S. Chatzinotas, N. Maturo, B. Evans, A. Awoseyila, A. Ugolini, T. Foggi, L. Gaudio, N. Alagha, and S. Cioni, "Architectures and key technical challenges for 5G systems incorporating satellites," IEEE Trans. Veh. Technol., vol. 68, no. 3, pp. 2624-2639, Mar. 2019.
691
+ [3] B. Di, L. Song, Y. Li, and H. V. Poor, "Ultra-dense LEO: Integration of satellite access networks into 5G and beyond," IEEE Wireless Commun., vol. 26, no. 2, pp. 62-69, Apr. 2019.
692
+ [4] R. T. Schwarz, T. Delamotte, K.-U. Storek, and A. Knopp, “MIMO applications for multibeam satellites,” IEEE Trans. Broadcast., vol. 65, no. 4, pp. 664–681, Dec. 2019.
693
+
694
+ [5] M. Á. Vázquez, A. Pérez-Neira, D. Christopoulos, S. Chatzinotas, B. Ottersten, P.-D. Arapoglou, A. Ginesi, and G. Tarocco, “Precoding in multibeam satellite communications: Present and future challenges,” IEEE Wireless Commun., vol. 23, no. 6, pp. 88–95, Dec. 2016.
695
+ [6] N. Letzepis and A. J. Grant, "Capacity of the multiple spot beam satellite channel with Rician fading," IEEE Trans. Inf. Theory, vol. 54, no. 11, pp. 5210-5222, Nov. 2008.
696
+ [7] W. Wang, A. Liu, Q. Zhang, L. You, X. Q. Gao, and G. Zheng, "Robust multigroup multicast transmission for frame-based multi-beam satellite systems," IEEE Access, vol. 6, pp. 46074-46083, Aug. 2018.
697
+ [8] L. You, A. Liu, W. Wang, and X. Q. Gao, "Outage constrained robust multigroup multicast beamforming for multi-beam satellite communication systems," IEEE Wireless Commun. Lett., vol. 8, no. 2, pp. 352-355, Apr. 2019.
698
+ [9] T. Yoo, G. J. Foschini, R. A. Valenzuela, and A. J. Goldsmith, "Common rate support in multi-antenna downlink channels using semi-orthogonal user selection," IEEE Trans. Inf. Theory, vol. 57, no. 6, pp. 3449-3461, Jun. 2011.
699
+ [10] J. Lee and N. Jindal, "High SNR analysis for MIMO broadcast channels: Dirty paper coding versus linear precoding," IEEE Trans. Inf. Theory, vol. 53, no. 12, pp. 4787-4792, Dec. 2007.
700
+ [11] T. L. Marzetta, “Noncooperative cellular wireless with unlimited numbers of base station antennas,” IEEE Trans. Wireless Commun., vol. 9, no. 11, pp. 3590–3600, Nov. 2010.
701
+ [12] L. Lu, G. Y. Li, A. L. Swindlehurst, A. Ashikhmin, and R. Zhang, “An overview of massive MIMO: Benefits and challenges,” IEEE J. Sel. Topics Signal Process., vol. 8, no. 5, pp. 742–758, Oct. 2014.
702
+ [13] L. You, X. Q. Gao, X.-G. Xia, N. Ma, and Y. Peng, "Pilot reuse for massive MIMO transmission over spatially correlated Rayleigh fading channels," IEEE Trans. Wireless Commun., vol. 14, no. 6, pp. 3352-3366, Jun. 2015.
703
+ [14] C. Sun, X. Q. Gao, S. Jin, M. Matthaiou, Z. Ding, and C. Xiao, “Beam division multiple access transmission for massive MIMO communications,” IEEE Trans. Commun., vol. 63, no. 6, pp. 2170–2184, Jun. 2015.
704
+ [15] A.-A. Lu, X. Q. Gao, W. Zhong, C. Xiao, and X. Meng, "Robust transmission for massive MIMO downlink with imperfect CSI," IEEE Trans. Commun., vol. 67, no. 8, pp. 5362-5376, Aug. 2019.
705
+ [16] L. You, J. Xiong, K.-X. Li, W. Wang, and X. Q. Gao, “Non-orthogonal unicast and multicast transmission for massive MIMO with statistical channel state information,” IEEE Access, vol. 6, pp. 66841-66849, Nov. 2018.
706
+ [17] A.adhikary, J.Nam, J.-Y.Ahn, and G.Caire, "Joint spatial division and multiplexing--The large-scale array regime," IEEE Trans. Inf. Theory, vol. 59, no. 10, pp. 6441-6463, Oct. 2013.
707
+ [18] A. G. Kanatas and A. D. Panagopoulos, Radio Wave Propagation and Channel Modeling for Earth-Space Systems. New York, NY, USA: CRC Press, 2016.
708
+ [19] B. Clerckx and C. Oestges, MIMO Wireless Networks: Channels, Techniques and Standards for Multi-Antenna, Multi-User and Multi-Cell Systems, 2nd ed. Oxford, U.K.: Academic Press, 2013.
709
+ [20] L. You, X. Q. Gao, A. L. Swindlehurst, and W. Zhong, "Channel acquisition for massive MIMO-OFDM with adjustable phase shift pilots," IEEE Trans. Signal Process., vol. 64, no. 6, pp. 1461-1476, Mar. 2016.
710
+ [21] A. Papathanassiou, A. K. Salkintzis, and P. T. Mathiopoulos, “A comparison study of the uplink performance of W-CDMA and OFDM for mobile multimedia communications via LEO satellites,” IEEE Personal Commun., vol. 8, no. 3, pp. 35–43, Jun. 2001.
711
+ [22] F. Pérez Fontán, M. Vázquez-Castro, C. Enjamio Cabado, J. Pita García, and E. Kubista, “Statistical modeling of the LMS channel,” IEEE Trans. Veh. Technol., vol. 50, no. 6, pp. 1549–1567, Nov. 2001.
712
+ [23] B. R. Vojcic, R. L. Pickholtz, and L. B. Milstein, “Performance of DS-CDMA with imperfect power control operating over a low earth orbiting satellite link,” IEEE J. Sel. Areas Commun., vol. 12, no. 4, pp. 560–567, May 1994.
713
+ [24] 3GPP TR 38.811 V15.0.0, "3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Study on New Radio (NR) to support non terrestrial networks (Release 15)," Tech. Rep., Jun. 2018.
714
+
715
+ [25] C. A. Balanis, Antenna Theory: Analysis and Design, 4th ed. Hoboken, NJ, USA: John Wiley & Sons, 2016.
716
+ [26] R. Shafin, L. Liu, Y. Li, A. Wang, and J. Zhang, “Angle and delay estimation for 3-D massive MIMO/FD-MIMO systems based on parametric channel modeling,” IEEE Trans. Wireless Commun., vol. 16, no. 8, pp. 5370–5383, Aug. 2017.
717
+ [27] S. Jaeckel, L. Raschkowski, K. Borner, L. Thiele, F. Burkhardt, and E. Eberlein, “QuaDRiGa - Quasi Deterministic Radio Channel Generator, User Manual and Documentation, v2.0.0,” Tech. Rep., Aug. 2017.
718
+ [28] H. Xu, D. Chizhik, H. Huang, and R. Valenzuela, “A generalized space-time multiple-input multiple-output (MIMO) channel model,” IEEE Trans. Wireless Commun., vol. 3, no. 3, pp. 966–975, May 2004.
719
+ [29] U. Ugurlu, R. Wichman, C. B. Ribeiro, and C. Wijting, “A multipath extraction-based CSI acquisition method for FDD cellular networks with massive antenna arrays,” IEEE Trans. Wireless Commun., vol. 15, no. 4, pp. 2940–2953, Apr. 2016.
720
+ [30] G. Barriac and U. Madhow, "Space-time communication for OFDM with implicit channel feedback," IEEE Trans. Inf. Theory, vol. 50, no. 12, pp. 3111-3129, Dec. 2004.
721
+ [31] M. Barzegar Khalilsarai, S. Haghhighatshoar, X. Yi, and G. Caire, "FDD massive MIMO via UL/DL channel covariance extrapolation and active channel sparsification," IEEE Trans. Wireless Commun., vol. 18, no. 1, pp. 121-135, Jan. 2019.
722
+ [32] M. Morelli, C.-C. J. Kuo, and M.-O. Pun, "Synchronization techniques for orthogonal frequency division multiple access (OFDMA): A tutorial review," Proc. IEEE, vol. 95, no. 7, pp. 1394-1427, Jul. 2007.
723
+ [33] T. Hwang, C. Yang, G. Wu, S. Li, and G. Y. Li, “OFDM and its wireless applications: A survey,” IEEE Trans. Veh. Technol., vol. 58, no. 4, pp. 1673–1694, May 2009.
724
+ [34] M. Sadek, A. Tarighat, and A. H. Sayed, “A leakage-based precoding scheme for downlink multi-user MIMO channels,” IEEE Trans. Wireless Commun., vol. 6, no. 5, pp. 1711–1721, May 2007.
725
+ [35] P. Patcharamaneepakorn, S. Armour, and A. Doufexi, “On the equivalence between SLNR and MMSE precoding schemes with single-antenna receivers,” IEEE Commun. Lett., vol. 16, no. 7, pp. 1034–1037, Jul. 2012.
726
+ [36] J. Joung and A. H. Sayed, “Relay selection for grouped-relay networks using the average SLNR measure,” in Proc. IEEE CAMSAP, Aruba, Dutch Antilles, 2009, pp. 273–279.
727
+ [37] P. Viswanath and D. N. C. Tse, "Sum capacity of the vector Gaussian broadcast channel and uplink-downlink duality," IEEE Trans. Inf. Theory, vol. 49, no. 8, pp. 1912-1921, Aug. 2003.
728
+ [38] S. Shi, M. Schubert, and H. Boche, "Downlink MMSE transceiver optimization for multiuser MIMO systems: Duality and sum-MSE minimization," IEEE Trans. Signal Process., vol. 55, no. 11, pp. 5436-5446, Nov. 2007.
729
+ [39] G. A. F. Seber, A Matrix Handbook for Statisticians. Hoboken, NJ, USA: Wiley, 2008.
730
+ [40] A. M. Tulino, A. Lozano, and S. Verdu, "Capacity-achieving input covariance for single-user multi-antenna channels," IEEE Trans. Wireless Commun., vol. 5, no. 3, pp. 662-671, Mar. 2006.
731
+ [41] X. Q. Gao, B. Jiang, X. Li, A. B. Gershman, and M. R. McKay, "Statistical eigenmode transmission over jointly correlated MIMO channels," IEEE Trans. Inf. Theory, vol. 55, no. 8, pp. 3735-3750, Aug. 2009.
732
+ [42] R. A. Horn and C. R. Johnson, Matrix Analysis, 2nd ed. New York, NY, USA: Cambridge Univ. Press, 2012.
2002.08xxx/2002.08148/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2580851092d0b5dfe9f85a73daa141a6727adeb40a9b6522596743f8c39fcd9
3
+ size 1246931
2002.08xxx/2002.08148/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08155/9ddac694-f769-4a0a-acb8-3d4e0835ba7b_content_list.json ADDED
@@ -0,0 +1,2067 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "CodeBERT: A Pre-Trained Model for Programming and Natural Languages",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 169,
8
+ 80,
9
+ 830,
10
+ 118
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Zhangyin Feng $^{1*}$ , Daya Guo $^{2*}$ , Duyu Tang $^{3}$ , Nan Duan $^{3}$ , Xiaocheng Feng $^{1}$ , Ming Gong $^{4}$ , Linjun Shou $^{4}$ , Bing Qin $^{1}$ , Ting Liu $^{1}$ , Daxin Jiang $^{4}$ , Ming Zhou $^{3}$",
17
+ "bbox": [
18
+ 169,
19
+ 133,
20
+ 831,
21
+ 167
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "<sup>1</sup> Research Center for Social Computing and Information Retrieval, Harbin Institute of Technology, China",
28
+ "bbox": [
29
+ 73,
30
+ 167,
31
+ 929,
32
+ 184
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "2 The School of Data and Computer Science, Sun Yat-sen University, China",
39
+ "bbox": [
40
+ 196,
41
+ 184,
42
+ 808,
43
+ 200
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "<sup>3</sup> Microsoft Research Asia, Beijing, China",
50
+ "bbox": [
51
+ 329,
52
+ 200,
53
+ 675,
54
+ 217
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "<sup>4</sup> Microsoft Search Technology Center Asia, Beijing, China",
61
+ "bbox": [
62
+ 260,
63
+ 217,
64
+ 744,
65
+ 234
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "{zyfeng,xcfeng,qinb,tliu}@ir.hit.edu.cn",
72
+ "bbox": [
73
+ 275,
74
+ 234,
75
+ 742,
76
+ 250
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "guody5@mail2.sysu.edu.cn",
83
+ "bbox": [
84
+ 357,
85
+ 252,
86
+ 648,
87
+ 266
88
+ ],
89
+ "page_idx": 0
90
+ },
91
+ {
92
+ "type": "text",
93
+ "text": "{dutang,nanduan,migon,lisho,djiang,mingzhou}@microsoft.com",
94
+ "bbox": [
95
+ 154,
96
+ 267,
97
+ 852,
98
+ 284
99
+ ],
100
+ "page_idx": 0
101
+ },
102
+ {
103
+ "type": "text",
104
+ "text": "Abstract",
105
+ "text_level": 1,
106
+ "bbox": [
107
+ 262,
108
+ 309,
109
+ 342,
110
+ 324
111
+ ],
112
+ "page_idx": 0
113
+ },
114
+ {
115
+ "type": "text",
116
+ "text": "We present CodeBERT, a bimodal pre-trained model for programming language (PL) and natural language (NL). CodeBERT learns general-purpose representations that support downstream NL-PL applications such as natural language code search, code documentation generation, etc. We develop CodeBERT with Transformer-based neural architecture, and train it with a hybrid objective function that incorporates the pre-training task of replaced token detection, which is to detect plausible alternatives sampled from generators. This enables us to utilize both \"bimodal\" data of NL-PL pairs and \"unimodal\" data, where the former provides input tokens for model training while the latter helps to learn better generators. We evaluate CodeBERT on two NL-PL applications by fine-tuning model parameters. Results show that CodeBERT achieves state-of-the-art performance on both natural language code search and code documentation generation. Furthermore, to investigate what type of knowledge is learned in CodeBERT, we construct a dataset for NL-PL probing, and evaluate in a zero-shot setting where parameters of pre-trained models are fixed. Results show that CodeBERT performs better than previous pre-trained models on NL-PL probing.<sup>1</sup>",
117
+ "bbox": [
118
+ 142,
119
+ 341,
120
+ 460,
121
+ 753
122
+ ],
123
+ "page_idx": 0
124
+ },
125
+ {
126
+ "type": "text",
127
+ "text": "1 Introduction",
128
+ "text_level": 1,
129
+ "bbox": [
130
+ 115,
131
+ 770,
132
+ 260,
133
+ 785
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Large pre-trained models such as ELMo (Peters et al., 2018), GPT (Radford et al., 2018), BERT (Devlin et al., 2018), XLNet (Yang et al., 2019)",
140
+ "bbox": [
141
+ 114,
142
+ 799,
143
+ 489,
144
+ 848
145
+ ],
146
+ "page_idx": 0
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "and RoBERTa (Liu et al., 2019) have dramatically improved the state-of-the-art on a variety of natural language processing (NLP) tasks. These pre-trained models learn effective contextual representations from massive unlabeled text optimized by self-supervised objectives, such as masked language modeling, which predicts the original masked word from an artificially masked input sequence. The success of pre-trained models in NLP also drives a surge of multi-modal pre-trained models, such as ViBERT (Lu et al., 2019) for language-image and VideoBERT (Sun et al., 2019) for language-video, which are learned from bimodal data such as language-image pairs with bimodal self-supervised objectives.",
151
+ "bbox": [
152
+ 509,
153
+ 310,
154
+ 885,
155
+ 551
156
+ ],
157
+ "page_idx": 0
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "In this work, we present CodeBERT, a bimodal pre-trained model for natural language (NL) and programming language (PL) like Python, Java, JavaScript, etc. CodeBERT captures the semantic connection between natural language and programming language, and produces general-purpose representations that can broadly support NL-PL understanding tasks (e.g. natural language code search) and generation tasks (e.g. code documentation generation). It is developed with the multilayer Transformer (Vaswani et al., 2017), which is adopted in a majority of large pre-trained models. In order to make use of both bimodal instances of NL-PL pairs and large amount of available unimodal codes, we train CodeBERT with a hybrid objective function, including standard masked language modeling (Devlin et al., 2018) and replaced token detection (Clark et al., 2020), where unimodal codes help to learn better generators for producing better alternative tokens for the latter objective.",
162
+ "bbox": [
163
+ 509,
164
+ 554,
165
+ 885,
166
+ 890
167
+ ],
168
+ "page_idx": 0
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "We train CodeBERT from Github code reposito",
173
+ "bbox": [
174
+ 529,
175
+ 892,
176
+ 885,
177
+ 909
178
+ ],
179
+ "page_idx": 0
180
+ },
181
+ {
182
+ "type": "aside_text",
183
+ "text": "arXiv:2002.08155v4 [cs.CL] 18 Sep 2020",
184
+ "bbox": [
185
+ 21,
186
+ 309,
187
+ 60,
188
+ 724
189
+ ],
190
+ "page_idx": 0
191
+ },
192
+ {
193
+ "type": "page_footnote",
194
+ "text": "*Work done while this author was an intern at Microsoft Research Asia.",
195
+ "bbox": [
196
+ 115,
197
+ 858,
198
+ 489,
199
+ 882
200
+ ],
201
+ "page_idx": 0
202
+ },
203
+ {
204
+ "type": "page_footnote",
205
+ "text": "1 All the codes and data are available at https://github.com/microsoft/CodeBERT",
206
+ "bbox": [
207
+ 117,
208
+ 883,
209
+ 489,
210
+ 908
211
+ ],
212
+ "page_idx": 0
213
+ },
214
+ {
215
+ "type": "text",
216
+ "text": "ries in 6 programming languages, where bimodal datapoints are codes that pair with function-level natural language documentations (Husain et al., 2019). Training is conducted in a setting similar to that of multilingual BERT (Pires et al., 2019), in which case one pre-trained model is learned for 6 programming languages with no explicit markers used to denote the input programming language. We evaluate CodeBERT on two downstream NL-PL tasks, including natural language code search and code documentation generation. Results show that fine-tuning the parameters of CodeBERT achieves state-of-the-art performance on both tasks. To further investigate what type of knowledge is learned in CodeBERT, we construct a dataset for NL-PL probing, and test CodeBERT in a zero-shot scenario, i.e. without fine-tuning the parameters of CodeBERT. We find that CodeBERT consistently outperforms RoBERTa, a purely natural language-based pre-trained model. The contributions of this work are as follows:",
217
+ "bbox": [
218
+ 114,
219
+ 74,
220
+ 492,
221
+ 413
222
+ ],
223
+ "page_idx": 1
224
+ },
225
+ {
226
+ "type": "list",
227
+ "sub_type": "text",
228
+ "list_items": [
229
+ "- CodeBERT is the first large NL-PL pretrained model for multiple programming languages.",
230
+ "- Empirical results show that CodeBERT is effective in both code search and code-to-text generation tasks.",
231
+ "- We further created a dataset which is the first one to investigate the probing ability of the code-based pre-trained models."
232
+ ],
233
+ "bbox": [
234
+ 134,
235
+ 424,
236
+ 489,
237
+ 592
238
+ ],
239
+ "page_idx": 1
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "2 Background",
244
+ "text_level": 1,
245
+ "bbox": [
246
+ 115,
247
+ 605,
248
+ 257,
249
+ 620
250
+ ],
251
+ "page_idx": 1
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "2.1 Pre-Trained Models in NLP",
256
+ "text_level": 1,
257
+ "bbox": [
258
+ 115,
259
+ 631,
260
+ 381,
261
+ 645
262
+ ],
263
+ "page_idx": 1
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "Large pre-trained models (Peters et al., 2018; Radford et al., 2018; Devlin et al., 2018; Yang et al., 2019; Liu et al., 2019; Raffel et al., 2019) have brought dramatic empirical improvements on almost every NLP task in the past few years. Successful approaches train deep neural networks on large-scale plain texts with self-supervised learning objectives. One of the most representative neural architectures is the Transformer (Vaswani et al., 2017), which is also the one used in this work. It contains multiple self-attention layers, and can be conventionally learned with gradient decent in an end-to-end manner as every component is differentiable. The terminology \"self-supervised\" means that supervisions used for pre-training are automatically collected from raw data without manual",
268
+ "bbox": [
269
+ 114,
270
+ 652,
271
+ 492,
272
+ 910
273
+ ],
274
+ "page_idx": 1
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "annotation. Dominant learning objectives are language modeling and its variations. For example, in GPT (Radford et al., 2018), the learning objective is language modeling, namely predicting the next word $w_{k}$ given the preceding context words $\\{w_{1}, w_{2}, \\dots, w_{k-1}\\}$ . As the ultimate goal of pretraining is not to train a good language model, it is desirable to consider both preceding and following contexts to learn better general-purpose contextual representations. This leads us to the masked language modeling objective used in BERT (Devlin et al., 2018), which learns to predict the masked words of a randomly masked word sequence given surrounding contexts. Masked language modeling is also used as one of the two learning objectives for training CodeBERT.",
279
+ "bbox": [
280
+ 509,
281
+ 74,
282
+ 885,
283
+ 332
284
+ ],
285
+ "page_idx": 1
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "2.2 Multi-Modal Pre-Trained Models",
290
+ "text_level": 1,
291
+ "bbox": [
292
+ 510,
293
+ 351,
294
+ 820,
295
+ 365
296
+ ],
297
+ "page_idx": 1
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "The remarkable success of the pre-trained model in NLP has driven the development of multi-modal pre-trained model that learns implicit alignment between inputs of different modalities. These models are typically learned from bimodal data, such as pairs of language-image or pairs of language-video. For example, ViLBERT (Lu et al., 2019) learns from image caption data, where the model learns by reconstructing categories of masked image region or masked words given the observed inputs, and meanwhile predicting whether the caption describes the image content or not. Similarly, VideoBERT (Sun et al., 2019) learns from language-video data and is trained by video and text masked token prediction. Our work belongs to this line of research as we regard NL and PL as different modalities. Our method differs from previous works in that the fuels for model training include not only bimodal data of NL-PL pairs, but larger amounts of unimodal data such as codes without paired documentations.",
302
+ "bbox": [
303
+ 509,
304
+ 376,
305
+ 885,
306
+ 714
307
+ ],
308
+ "page_idx": 1
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "A concurrent work (Kanade et al., 2019) uses masked language modeling and next sentence prediction as the objective to train a BERT model on Python source codes, where a sentence is a logical code line as defined by the Python standard. In terms of the pre-training process, CodeBERT differs from their work in that (1) CodeBERT is trained in a cross-modal style and leverages both bimodal NL-PL data and unimodal PL/NL data, (2) CodeBERT is pre-trained over six programming languages, and (3) CodeBERT is trained with a new learning objective based on replaced token",
313
+ "bbox": [
314
+ 509,
315
+ 715,
316
+ 885,
317
+ 910
318
+ ],
319
+ "page_idx": 1
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "detection.",
324
+ "bbox": [
325
+ 115,
326
+ 74,
327
+ 193,
328
+ 89
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "3 CodeBERT",
335
+ "text_level": 1,
336
+ "bbox": [
337
+ 115,
338
+ 103,
339
+ 250,
340
+ 118
341
+ ],
342
+ "page_idx": 2
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "We describe the details about CodeBERT in this section, including the model architecture, the input and output representations, the objectives and data used for training CodeBERT, and how to fine-tune CodeBERT when it is applied to downstream tasks.",
347
+ "bbox": [
348
+ 114,
349
+ 130,
350
+ 490,
351
+ 210
352
+ ],
353
+ "page_idx": 2
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "3.1 Model Architecture",
358
+ "text_level": 1,
359
+ "bbox": [
360
+ 115,
361
+ 223,
362
+ 317,
363
+ 237
364
+ ],
365
+ "page_idx": 2
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "We follow BERT (Devlin et al., 2018) and RoBERTa (Liu et al., 2019), and use multi-layer bidirectional Transformer (Vaswani et al., 2017) as the model architecture of CodeBERT. We will not review the ubiquitous Transformer architecture in detail. We develop CodeBERT by using exactly the same model architecture as RoBERTa-base. The total number of model parameters is 125M.",
370
+ "bbox": [
371
+ 114,
372
+ 244,
373
+ 489,
374
+ 373
375
+ ],
376
+ "page_idx": 2
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "3.2 Input/Output Representations",
381
+ "text_level": 1,
382
+ "bbox": [
383
+ 115,
384
+ 386,
385
+ 400,
386
+ 401
387
+ ],
388
+ "page_idx": 2
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "In the pre-training phase, we set the input as the concatenation of two segments with a special separator token, namely [CLS], $w_{1}, w_{2}, \\ldots, w_{n}$ , [SEP], $c_{1}, c_{2}, \\ldots, c_{m}$ , [EOS]. One segment is natural language text, and another is code from a certain programming language. [CLS] is a special token in front of the two segments, whose final hidden representation is considered as the aggregated sequence representation for classification or ranking. Following the standard way of processing text in Transformer, we regard a natural language text as a sequence of words, and split it as WordPiece (Wu et al., 2016). We regard a piece of code as a sequence of tokens.",
393
+ "bbox": [
394
+ 114,
395
+ 407,
396
+ 490,
397
+ 632
398
+ ],
399
+ "page_idx": 2
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "The output of CodeBERT includes (1) contextual vector representation of each token, for both natural language and code, and (2) the representation of [CLS], which works as the aggregated sequence representation.",
404
+ "bbox": [
405
+ 115,
406
+ 633,
407
+ 489,
408
+ 714
409
+ ],
410
+ "page_idx": 2
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "3.3 Pre-Training Data",
415
+ "text_level": 1,
416
+ "bbox": [
417
+ 115,
418
+ 726,
419
+ 307,
420
+ 741
421
+ ],
422
+ "page_idx": 2
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "We train CodeBERT with both bimodal data, which refers to parallel data of natural language-code pairs, and unimodal data, which stands for codes without paired natural language texts and natural language without paired codes.",
427
+ "bbox": [
428
+ 114,
429
+ 747,
430
+ 489,
431
+ 827
432
+ ],
433
+ "page_idx": 2
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "We use datapoints from Github repositories, where each bimodal datapoint is an individual function with paired documentation, and each uni-modal code is a function without paired documentation. Specifically, we use a recent large dataset",
438
+ "bbox": [
439
+ 114,
440
+ 829,
441
+ 490,
442
+ 910
443
+ ],
444
+ "page_idx": 2
445
+ },
446
+ {
447
+ "type": "table",
448
+ "img_path": "images/a002adbdf3ce799370b3c77ff030eaea2cbdaf9bf405a4bc1f94c14936f0a3c8.jpg",
449
+ "table_caption": [],
450
+ "table_footnote": [],
451
+ "table_body": "<table><tr><td>TRAINING DATA</td><td>bimodal DATA</td><td>unimodal CODES</td></tr><tr><td>GO</td><td>319,256</td><td>726,768</td></tr><tr><td>JAVA</td><td>500,754</td><td>1,569,889</td></tr><tr><td>JAVAscript</td><td>143,252</td><td>1,857,835</td></tr><tr><td>PHP</td><td>662,907</td><td>977,821</td></tr><tr><td>PYTHON</td><td>458,219</td><td>1,156,085</td></tr><tr><td>RUBY</td><td>52,905</td><td>164,048</td></tr><tr><td>ALL</td><td>2,137,293</td><td>6,452,446</td></tr></table>",
452
+ "bbox": [
453
+ 514,
454
+ 72,
455
+ 878,
456
+ 184
457
+ ],
458
+ "page_idx": 2
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "Table 1: Statistics of the dataset used for training CodeBERT.",
463
+ "bbox": [
464
+ 509,
465
+ 190,
466
+ 885,
467
+ 219
468
+ ],
469
+ "page_idx": 2
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "provided by Husain et al. (2019), which includes 2.1M bimodal datapoints and 6.4M unimodal codes across six programming languages (Python, Java, JavaScript, PHP, Ruby, and Go). Data statistics is shown in Table 1. $^{2}$",
474
+ "bbox": [
475
+ 507,
476
+ 244,
477
+ 884,
478
+ 323
479
+ ],
480
+ "page_idx": 2
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "The data comes from publicly available open-source non-fork GitHub repositories and are filtered with a set of constraints and rules. For example, (1) each project should be used by at least one other project, (2) each documentation is truncated to the first paragraph, (3) documentations shorter than three tokens are removed, (4) functions shorter than three lines are removed, and (5) function names with substring \"test\" are removed. An example of the data is given in Figure 1<sup>3</sup>.",
485
+ "bbox": [
486
+ 509,
487
+ 325,
488
+ 885,
489
+ 486
490
+ ],
491
+ "page_idx": 2
492
+ },
493
+ {
494
+ "type": "image",
495
+ "img_path": "images/dfb9fdee528028c1c0c0eb591cfa11540dc07eb3ad1fb80615b6a3322ebad838.jpg",
496
+ "image_caption": [
497
+ "Figure 1: An example of the NL-PL pair, where NL is the first paragraph (filled in red) from the documentation (dashed line in black) of a function."
498
+ ],
499
+ "image_footnote": [],
500
+ "bbox": [
501
+ 515,
502
+ 495,
503
+ 884,
504
+ 639
505
+ ],
506
+ "page_idx": 2
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "3.4 Pre-Training CodeBERT",
511
+ "text_level": 1,
512
+ "bbox": [
513
+ 510,
514
+ 718,
515
+ 754,
516
+ 734
517
+ ],
518
+ "page_idx": 2
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "We describe the two objectives used for training CodeBERT here. The first objective is masked language modeling (MLM), which has proven effective in literature (Devlin et al., 2018; Liu et al.,",
523
+ "bbox": [
524
+ 509,
525
+ 739,
526
+ 885,
527
+ 804
528
+ ],
529
+ "page_idx": 2
530
+ },
531
+ {
532
+ "type": "page_footnote",
533
+ "text": "<sup>2</sup>Since we will evaluate on the natural language code search task, we only use the training data of Husain et al. (2019) to train CodeBERT with no access to the dev and testing data.",
534
+ "bbox": [
535
+ 509,
536
+ 810,
537
+ 885,
538
+ 860
539
+ ],
540
+ "page_idx": 2
541
+ },
542
+ {
543
+ "type": "page_footnote",
544
+ "text": "3The source of the illustrating example comes from https://github.com/apache/spark/blob/618d6bfff71073c8c93501ab7392c3cc579730f0b/python/pyspark/rdd.py#L125-L138",
545
+ "bbox": [
546
+ 509,
547
+ 860,
548
+ 885,
549
+ 910
550
+ ],
551
+ "page_idx": 2
552
+ },
553
+ {
554
+ "type": "image",
555
+ "img_path": "images/3e79d5432408f9c7354ee138d1a252282bbef5871530c68ea0ba9fc7e14a7ad9.jpg",
556
+ "image_caption": [
557
+ "Figure 2: An illustration about the replaced token detection objective. Both NL and code generators are language models, which generate plausible tokens for masked positions based on surrounding contexts. NL-Code discriminator is the targeted pre-trained model, which is trained via detecting plausible alternatives tokens sampled from NL and PL generators. NL-Code discriminator is used for producing general-purpose representations in the fine-tuning step. Both NL and code generators are thrown out in the fine-tuning step."
558
+ ],
559
+ "image_footnote": [],
560
+ "bbox": [
561
+ 142,
562
+ 72,
563
+ 860,
564
+ 294
565
+ ],
566
+ "page_idx": 3
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "2019; Sun et al., 2019). We apply masked language modeling on bimodal data of NL-PL pairs. The second objective is replaced token detection (RTD), which further uses a large amount of unimodal data, such as codes without paired natural language texts. Detailed hyper-parameters for model pre-training are given in Appendix B.1.",
571
+ "bbox": [
572
+ 114,
573
+ 399,
574
+ 490,
575
+ 512
576
+ ],
577
+ "page_idx": 3
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "Objective #1: Masked Language Modeling (MLM) Given a datapoint of NL-PL pair $(x = \\{w, c\\})$ as input, where $w$ is a sequence of NL words and $c$ is a sequence of PL tokens, we first select a random set of positions for both NL and PL to mask out (i.e. $m^w$ and $m^c$ , respectively), and then replace the selected positions with a special [MASK] token. Following Devlin et al. (2018), $15\\%$ of the tokens from $x$ are masked out.",
582
+ "bbox": [
583
+ 115,
584
+ 521,
585
+ 489,
586
+ 665
587
+ ],
588
+ "page_idx": 3
589
+ },
590
+ {
591
+ "type": "equation",
592
+ "text": "\n$$\nm _ {i} ^ {w} \\sim \\operatorname {u n i f} \\{1, | \\boldsymbol {w} | \\} \\text {f o r} i = 1 \\text {t o} | \\boldsymbol {w} | \\tag {1}\n$$\n",
593
+ "text_format": "latex",
594
+ "bbox": [
595
+ 159,
596
+ 677,
597
+ 487,
598
+ 694
599
+ ],
600
+ "page_idx": 3
601
+ },
602
+ {
603
+ "type": "equation",
604
+ "text": "\n$$\nm _ {i} ^ {c} \\sim \\operatorname {u n i f} \\{1, | c | \\} \\text {f o r} i = 1 \\text {t o} | c | \\tag {2}\n$$\n",
605
+ "text_format": "latex",
606
+ "bbox": [
607
+ 166,
608
+ 697,
609
+ 487,
610
+ 714
611
+ ],
612
+ "page_idx": 3
613
+ },
614
+ {
615
+ "type": "equation",
616
+ "text": "\n$$\n\\boldsymbol {w} ^ {\\text {m a s k e d}} = \\operatorname {R E P L A C E} \\left(\\boldsymbol {w}, \\boldsymbol {m} ^ {\\boldsymbol {w}}, [ M A S K ]\\right) \\tag {3}\n$$\n",
617
+ "text_format": "latex",
618
+ "bbox": [
619
+ 134,
620
+ 717,
621
+ 487,
622
+ 734
623
+ ],
624
+ "page_idx": 3
625
+ },
626
+ {
627
+ "type": "equation",
628
+ "text": "\n$$\n\\boldsymbol {c} ^ {\\text {m a s k e d}} = \\operatorname {R E P L A C E} (\\boldsymbol {c}, \\boldsymbol {m} ^ {\\boldsymbol {c}}, [ M A S K ]) \\tag {4}\n$$\n",
629
+ "text_format": "latex",
630
+ "bbox": [
631
+ 137,
632
+ 739,
633
+ 487,
634
+ 756
635
+ ],
636
+ "page_idx": 3
637
+ },
638
+ {
639
+ "type": "equation",
640
+ "text": "\n$$\n\\boldsymbol {x} = \\boldsymbol {w} + \\boldsymbol {c} \\tag {5}\n$$\n",
641
+ "text_format": "latex",
642
+ "bbox": [
643
+ 178,
644
+ 760,
645
+ 487,
646
+ 775
647
+ ],
648
+ "page_idx": 3
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "The MLM objective is to predict the original tokens which are masked out, formulated as follows, where $p^{D_1}$ is the discriminator which predicts a token from a large vocabulary.",
653
+ "bbox": [
654
+ 114,
655
+ 788,
656
+ 490,
657
+ 853
658
+ ],
659
+ "page_idx": 3
660
+ },
661
+ {
662
+ "type": "equation",
663
+ "text": "\n$$\n\\mathcal {L} _ {\\mathrm {M L M}} (\\theta) = \\sum_ {i \\in \\boldsymbol {m} ^ {\\boldsymbol {w}} \\cup \\boldsymbol {m} ^ {\\boldsymbol {c}}} - \\log p ^ {D _ {1}} \\left(x _ {i} \\mid \\boldsymbol {w} ^ {\\text {m a x k e d}}, \\boldsymbol {c} ^ {\\text {m a x k e d}}\\right) \\tag {6}\n$$\n",
664
+ "text_format": "latex",
665
+ "bbox": [
666
+ 117,
667
+ 862,
668
+ 487,
669
+ 909
670
+ ],
671
+ "page_idx": 3
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "Objective #2: Replaced Token Detection (RTD) In the MLM objective, only bimodal data (i.e. datapoints of NL-PL pairs) is used for training. Here we present the objective of replaced token detection. The RTD objective (Clark et al., 2020) is originally developed for efficiently learning pre-trained model for natural language. We adapt it in our scenario, with the advantage of using both bimodal and unimodal data for training. Specifically, there are two data generators here, an NL generator $p^{G_w}$ and a PL generator $p^{G_c}$ , both for generating plausible alternatives for the set of randomly masked positions.",
676
+ "bbox": [
677
+ 509,
678
+ 399,
679
+ 885,
680
+ 609
681
+ ],
682
+ "page_idx": 3
683
+ },
684
+ {
685
+ "type": "equation",
686
+ "text": "\n$$\n\\hat {w} _ {i} \\sim p ^ {G _ {w}} \\left(w _ {i} \\mid \\boldsymbol {w} ^ {\\text {m a x k e d}}\\right) \\text {f o r} i \\in \\boldsymbol {m} ^ {\\boldsymbol {w}} \\tag {7}\n$$\n",
687
+ "text_format": "latex",
688
+ "bbox": [
689
+ 564,
690
+ 618,
691
+ 882,
692
+ 637
693
+ ],
694
+ "page_idx": 3
695
+ },
696
+ {
697
+ "type": "equation",
698
+ "text": "\n$$\n\\hat {c} _ {i} \\sim p ^ {G _ {c}} \\left(c _ {i} \\mid c ^ {\\text {m a x k e d}}\\right) \\text {f o r} i \\in \\boldsymbol {m} ^ {\\boldsymbol {c}} \\tag {8}\n$$\n",
699
+ "text_format": "latex",
700
+ "bbox": [
701
+ 569,
702
+ 640,
703
+ 882,
704
+ 658
705
+ ],
706
+ "page_idx": 3
707
+ },
708
+ {
709
+ "type": "equation",
710
+ "text": "\n$$\n\\boldsymbol {w} ^ {\\text {c o r r u p t}} = \\operatorname {R E P L A C E} (\\boldsymbol {w}, \\boldsymbol {m} ^ {\\boldsymbol {w}}, \\hat {\\boldsymbol {w}}) \\tag {9}\n$$\n",
711
+ "text_format": "latex",
712
+ "bbox": [
713
+ 566,
714
+ 680,
715
+ 882,
716
+ 697
717
+ ],
718
+ "page_idx": 3
719
+ },
720
+ {
721
+ "type": "equation",
722
+ "text": "\n$$\n\\boldsymbol {c} ^ {\\text {c o r r u p t}} = \\operatorname {R E P L A C E} (\\boldsymbol {c}, \\boldsymbol {m} ^ {\\boldsymbol {c}}, \\hat {\\boldsymbol {c}}) \\tag {10}\n$$\n",
723
+ "text_format": "latex",
724
+ "bbox": [
725
+ 574,
726
+ 700,
727
+ 882,
728
+ 717
729
+ ],
730
+ "page_idx": 3
731
+ },
732
+ {
733
+ "type": "equation",
734
+ "text": "\n$$\n\\boldsymbol {x} ^ {\\text {c o r r u p t}} = \\boldsymbol {w} ^ {\\text {c o r r u p t}} + \\boldsymbol {c} ^ {\\text {c o r r u p t}} \\tag {11}\n$$\n",
735
+ "text_format": "latex",
736
+ "bbox": [
737
+ 571,
738
+ 719,
739
+ 882,
740
+ 736
741
+ ],
742
+ "page_idx": 3
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "The discriminator is trained to determine whether a word is the original one or not, which is a binary classification problem. It is worth noting that the RTD objective is applied to every position in the input, and it differs from GAN (generative adversarial network) in that if a generator happens to produce the correct token, the label of that token is \"real\" instead of \"fake\" (Clark et al., 2020). The loss function of RTD with regard to the discriminator parameterized by $\\theta$ is given below, where $\\delta(i)$ is",
747
+ "bbox": [
748
+ 509,
749
+ 747,
750
+ 885,
751
+ 910
752
+ ],
753
+ "page_idx": 3
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "an indicator function and $p^{D_2}$ is the discriminator that predicts the probability of the $i$ -th word being original.",
758
+ "bbox": [
759
+ 114,
760
+ 74,
761
+ 489,
762
+ 122
763
+ ],
764
+ "page_idx": 4
765
+ },
766
+ {
767
+ "type": "equation",
768
+ "text": "\n$$\n\\begin{array}{l} \\mathcal {L} _ {\\mathrm {R T D}} (\\theta) = \\sum_ {i = 1} ^ {| \\boldsymbol {w} | + | \\boldsymbol {c} |} \\left(\\delta (i) \\log p ^ {D _ {2}} \\left(\\boldsymbol {x} ^ {\\text {c o r r u p t}}, i\\right) + \\right. \\\\ \\left. \\left(1 - \\delta (i)\\right) \\left(1 - \\log p ^ {D _ {2}} \\left(\\boldsymbol {x} ^ {\\text {c o r r u p t}}, i\\right)\\right)\\right) \\tag {12} \\\\ \\end{array}\n$$\n",
769
+ "text_format": "latex",
770
+ "bbox": [
771
+ 115,
772
+ 134,
773
+ 489,
774
+ 231
775
+ ],
776
+ "page_idx": 4
777
+ },
778
+ {
779
+ "type": "equation",
780
+ "text": "\n$$\n\\delta (i) = \\left\\{ \\begin{array}{l l} 1, & \\text {i f} x _ {i} ^ {\\text {c o r r u p t}} = x _ {i}. \\\\ 0, & \\text {o t h e r w i s e .} \\end{array} \\right. \\tag {13}\n$$\n",
781
+ "text_format": "latex",
782
+ "bbox": [
783
+ 191,
784
+ 244,
785
+ 487,
786
+ 286
787
+ ],
788
+ "page_idx": 4
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "There are many different ways to implement the generators. In this work, we implement two efficient n-gram language models (Jurafsky, 2000) with bidirectional contexts, one for NL and one for PL, and learn them from corresponding unimodel datapoints, respectively. The approach is easily generalized to learn bimodal generators or use more complicated generators like Transformer-based neural architecture learned in a joint manner. We leave these to future work. The PL training data is the unimodal codes as shown in Table 1, and the NL training data comes from the documentations from bimodal data. One could easily extend these two training datasets to larger amount. The final loss function are given below.",
793
+ "bbox": [
794
+ 114,
795
+ 291,
796
+ 489,
797
+ 532
798
+ ],
799
+ "page_idx": 4
800
+ },
801
+ {
802
+ "type": "equation",
803
+ "text": "\n$$\n\\min _ {\\theta} \\mathcal {L} _ {\\mathrm {M L M}} (\\theta) + \\mathcal {L} _ {\\mathrm {R T D}} (\\theta) \\tag {14}\n$$\n",
804
+ "text_format": "latex",
805
+ "bbox": [
806
+ 203,
807
+ 545,
808
+ 487,
809
+ 568
810
+ ],
811
+ "page_idx": 4
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "3.5 Fine-Tuning CodeBERT",
816
+ "text_level": 1,
817
+ "bbox": [
818
+ 115,
819
+ 577,
820
+ 354,
821
+ 594
822
+ ],
823
+ "page_idx": 4
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "We have different settings to use CodeBERT in downstream NL-PL tasks. For example, in natural language code search, we feed the input as the same way as the pre-training phase and use the representation of [CLS] to measure the semantic relevance between code and natural language query, while in code-to-text generation, we use an encoder-decoder framework and initialize the encoder of a generative model with CodeBERT. Details are given in the experiment section.",
828
+ "bbox": [
829
+ 114,
830
+ 599,
831
+ 489,
832
+ 759
833
+ ],
834
+ "page_idx": 4
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "4 Experiment",
839
+ "text_level": 1,
840
+ "bbox": [
841
+ 115,
842
+ 771,
843
+ 253,
844
+ 788
845
+ ],
846
+ "page_idx": 4
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "We present empirical results in this section to verify the effectiveness of CodeBERT. We first describe the use of CodeBERT in natural language code search (§4.1), in a way that model parameters of CodeBERT are fine-tuned. After that, we present the NL-PL probing task (§4.2), and evaluate CodeBERT in a zero-shot setting where the parameters",
851
+ "bbox": [
852
+ 114,
853
+ 797,
854
+ 489,
855
+ 909
856
+ ],
857
+ "page_idx": 4
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "of CodeBERT are fixed. Finally, we evaluate CodeBERT on a generation problem, i.e. code documentation generation (§4.3), and further evaluate on a programming language which is never seen in the training phase (§4.4).",
862
+ "bbox": [
863
+ 509,
864
+ 74,
865
+ 885,
866
+ 155
867
+ ],
868
+ "page_idx": 4
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "4.1 Natural Language Code Search",
873
+ "text_level": 1,
874
+ "bbox": [
875
+ 510,
876
+ 168,
877
+ 805,
878
+ 184
879
+ ],
880
+ "page_idx": 4
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "Given a natural language as the input, the objective of code search is to find the most semantically related code from a collection of codes. We conduct experiments on the CodeSearchNet corpus (Husain et al., 2019). We follow the official evaluation metric to calculate the Mean Reciprocal Rank (MRR) for each pair of test data $(c, w)$ over a fixed set of 999 distractor codes. We further calculate the macro-average MRR for all languages as an overall evaluation metric. It is helpful to note that this metric differs from the AVG metric in the original paper, where the answer is retrieved from candidates from all six languages. We fine-tune a language-specific model for each programming language. We train each model with a binary classification loss function, where a softmax layer is connected to the representation of [CLS]. Both training and validation datasets are created in a way that positive and negative samples are balanced. Negative samples consist of balanced number of instances with randomly replaced NL (i.e. $(c, \\hat{w})$ ) and PL (i.e. $(\\hat{c}, w)$ ). Detailed hyper-parameters for model fine-tuning are given in Appendix B.2.",
885
+ "bbox": [
886
+ 507,
887
+ 190,
888
+ 885,
889
+ 561
890
+ ],
891
+ "page_idx": 4
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "Model Comparisons Table 2 shows the results of different approaches on the CodeSearchNet corpus. The first four rows are reported by Husain et al. (2019), which are joint embeddings of NL and PL (Gu et al., 2018; Mitra et al., 2018). NBOw represents neural bag-of-words. CNN, BIRNN and SELFATT stand for 1D convolutional neural network (Kim, 2014), bidirectional GRU-based recurrent neural network (Cho et al., 2014), and multi-head attention (Vaswani et al., 2017), respectively.",
896
+ "bbox": [
897
+ 509,
898
+ 571,
899
+ 885,
900
+ 749
901
+ ],
902
+ "page_idx": 4
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "We report the remaining numbers in Table 2. We train all these pre-trained models by regarding codes as a sequence of tokens. We also continuously train RoBERTa only on codes from CodeSearchNet with masked language modeling. Results show that CodeBERT consistently performs",
907
+ "bbox": [
908
+ 509,
909
+ 750,
910
+ 885,
911
+ 847
912
+ ],
913
+ "page_idx": 4
914
+ },
915
+ {
916
+ "type": "page_footnote",
917
+ "text": "4More details about the dataset are given in Appendix A.",
918
+ "bbox": [
919
+ 534,
920
+ 858,
921
+ 880,
922
+ 871
923
+ ],
924
+ "page_idx": 4
925
+ },
926
+ {
927
+ "type": "page_footnote",
928
+ "text": "5We have fine-tuned a multi-lingual model for six programming languages, but find that it performs worse that fine-tuning a language-specific model for each programming language.",
929
+ "bbox": [
930
+ 512,
931
+ 872,
932
+ 882,
933
+ 909
934
+ ],
935
+ "page_idx": 4
936
+ },
937
+ {
938
+ "type": "table",
939
+ "img_path": "images/77c785dec4d5142c066d6c044a04d83665c3edeb214f104ce16205c3ec4d84a7.jpg",
940
+ "table_caption": [],
941
+ "table_footnote": [],
942
+ "table_body": "<table><tr><td>MODEL</td><td>RUBY</td><td>JAVASCIPT</td><td>GO</td><td>PYTHON</td><td>JAVA</td><td>PHP</td><td>MA-AVG</td></tr><tr><td>NBOW</td><td>0.4285</td><td>0.4607</td><td>0.6409</td><td>0.5809</td><td>0.5140</td><td>0.4835</td><td>0.5181</td></tr><tr><td>CNN</td><td>0.2450</td><td>0.3523</td><td>0.6274</td><td>0.5708</td><td>0.5270</td><td>0.5294</td><td>0.4753</td></tr><tr><td>BiRNN</td><td>0.0835</td><td>0.1530</td><td>0.4524</td><td>0.3213</td><td>0.2865</td><td>0.2512</td><td>0.2580</td></tr><tr><td>SELFATT</td><td>0.3651</td><td>0.4506</td><td>0.6809</td><td>0.6922</td><td>0.5866</td><td>0.6011</td><td>0.5628</td></tr><tr><td>ROBERTA</td><td>0.6245</td><td>0.6060</td><td>0.8204</td><td>0.8087</td><td>0.6659</td><td>0.6576</td><td>0.6972</td></tr><tr><td>PT w/ CODE ONLY (INIT=s)</td><td>0.5712</td><td>0.5557</td><td>0.7929</td><td>0.7855</td><td>0.6567</td><td>0.6172</td><td>0.6632</td></tr><tr><td>PT w/ CODE ONLY (INIT=R)</td><td>0.6612</td><td>0.6402</td><td>0.8191</td><td>0.8438</td><td>0.7213</td><td>0.6706</td><td>0.7260</td></tr><tr><td>CODEBERT (MLM, INIT=s)</td><td>0.5695</td><td>0.6029</td><td>0.8304</td><td>0.8261</td><td>0.7142</td><td>0.6556</td><td>0.6998</td></tr><tr><td>CODEBERT (MLM, INIT=R)</td><td>0.6898</td><td>0.6997</td><td>0.8383</td><td>0.8647</td><td>0.7476</td><td>0.6893</td><td>0.7549</td></tr><tr><td>CODEBERT (RTD, INIT=R)</td><td>0.6414</td><td>0.6512</td><td>0.8285</td><td>0.8263</td><td>0.7150</td><td>0.6774</td><td>0.7233</td></tr><tr><td>CODEBERT (MLM+RTD, INIT=R)</td><td>0.6926</td><td>0.7059</td><td>0.8400</td><td>0.8685</td><td>0.7484</td><td>0.7062</td><td>0.7603</td></tr></table>",
943
+ "bbox": [
944
+ 117,
945
+ 72,
946
+ 884,
947
+ 231
948
+ ],
949
+ "page_idx": 5
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Table 2: Results on natural language code retrieval. Baselines include four joint embeddings (first group) of NL and PL, RoBERTa, and RoBERTa which is continuously trained with masked language modeling on codes only (second group). PT stands for pre-training. We train CodeBERT (third group) with different settings, including using different initialization (from scratch (INIT=S) or initialized with the parameters of RoBERTa (INIT=R)) and using different learning objectives (MLM, RTD, or the combination of both).",
954
+ "bbox": [
955
+ 112,
956
+ 249,
957
+ 884,
958
+ 321
959
+ ],
960
+ "page_idx": 5
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "better than RoBERTa and the model pre-trained with code only. CodeBERT (MLM) learned from scratch performs better than RoBERTa. Unsurprisingly, initializing CodeBERT with RoBERTa improves the performance $^{6}$ .",
965
+ "bbox": [
966
+ 114,
967
+ 344,
968
+ 490,
969
+ 428
970
+ ],
971
+ "page_idx": 5
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "4.2 NL-PL Probing",
976
+ "text_level": 1,
977
+ "bbox": [
978
+ 115,
979
+ 438,
980
+ 285,
981
+ 454
982
+ ],
983
+ "page_idx": 5
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "In the previous subsection, we show the empirical effectiveness of CodeBERT in a setting that the parameters of CodeBERT are fine-tuned in downstream tasks. In this subsection, we further investigate what type of knowledge is learned in CodeBERT without modifying the parameters.",
988
+ "bbox": [
989
+ 114,
990
+ 460,
991
+ 490,
992
+ 556
993
+ ],
994
+ "page_idx": 5
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "Task Formulation and Data Construction Following the probing experiments in NLP (Petroni et al., 2019; Talmor et al., 2019), we study NL-PL probing here. Since there is no existing work towards this goal, we formulate the problem of NL-PL probing and create the dataset by ourselves. Given an NL-PL pair $(c, w)$ , the goal of NL-PL probing is to test model's ability to correctly predict/recover the masked token of interest (either a code token $c_i$ or word token $w_j$ ) among distractors. There are two major types of distractors: one is the whole target vocabulary used for the masked language modeling objective (Petroni et al., 2019), and another one has fewer candidates which are filter or curated based on experts' understanding about the ability to be tested (Talmor et al., 2019). We follow the second direction and formulate NL-PL probing as a multi-choice question answering task, where the question is cloze-style in which a certain token",
999
+ "bbox": [
1000
+ 114,
1001
+ 567,
1002
+ 490,
1003
+ 873
1004
+ ],
1005
+ "page_idx": 5
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "is replaced by $[MASK]$ and distractor candidate answers are curated based on our expertise.",
1010
+ "bbox": [
1011
+ 509,
1012
+ 344,
1013
+ 882,
1014
+ 376
1015
+ ],
1016
+ "page_idx": 5
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "Specifically, we evaluate on the NL side and PL side, respectively. To ease the effort of data collection, we collect data automatically from NL-PL pairs in both validation and testing sets of CodeSearchNet, both of which are unseen in the pretraining phase. To evaluate on the NL side, we select NL-PL pairs whose NL documentations include one of the six keywords (max, maximize, min, minimize, less, greater), and group them to four candidates by merging first two keywords and the middle two keywords. The task is to ask pre-trained models to select the correct one instead of three other distractors. That is to say, the input in this setting includes the complete code and a masked NL documentation. The goal is to select the correct answer from four candidates. For the PL side, we select codes containing keywords max and min, and formulate the task as a two-choice answer selection problem. Here, the input includes complete NL documentation and a masked PL code, and the goal is to select the correct answer from two candidates. Since code completion is an important scenario, we would like to test model's ability in predicting the correct token merely based on preceding PL contexts. Therefore, we add an additional setting for PL side, where the input includes the complete NL documentation and preceding PL codes. Data statistics is given in the top two rows in Table 3.",
1021
+ "bbox": [
1022
+ 509,
1023
+ 378,
1024
+ 885,
1025
+ 831
1026
+ ],
1027
+ "page_idx": 5
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "Model Comparisons Results are given in Table 3. We report accuracy, namely the number of correctly predicted instances over the number of all instances, for each programming language. Since",
1032
+ "bbox": [
1033
+ 509,
1034
+ 845,
1035
+ 885,
1036
+ 910
1037
+ ],
1038
+ "page_idx": 5
1039
+ },
1040
+ {
1041
+ "type": "page_footnote",
1042
+ "text": "<sup>6</sup>We further give a learning curve of different pre-trained models in the fine-tuning process in Appendix C.",
1043
+ "bbox": [
1044
+ 115,
1045
+ 882,
1046
+ 489,
1047
+ 909
1048
+ ],
1049
+ "page_idx": 5
1050
+ },
1051
+ {
1052
+ "type": "table",
1053
+ "img_path": "images/4e21a6a58fb92d927272dd3e8aa7baf7789615195c2cd594d87db3c1e6d27283.jpg",
1054
+ "table_caption": [],
1055
+ "table_footnote": [],
1056
+ "table_body": "<table><tr><td></td><td>RUBY</td><td>JAVASCIPT</td><td>GO</td><td>PYTHON</td><td>JAVA</td><td>PHP</td><td>ALL</td></tr><tr><td colspan=\"8\">NUMBER OF DATAPoints FOR PROBING</td></tr><tr><td>PL (2 CHOICES)</td><td>38</td><td>272</td><td>152</td><td>1,264</td><td>482</td><td>407</td><td>2,615</td></tr><tr><td>NL (4 CHOICES)</td><td>20</td><td>65</td><td>159</td><td>216</td><td>323</td><td>73</td><td>856</td></tr><tr><td colspan=\"8\">PL PROBING</td></tr><tr><td>ROBERTA</td><td>73.68</td><td>63.97</td><td>72.37</td><td>59.18</td><td>59.96</td><td>69.78</td><td>62.45</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>71.05</td><td>77.94</td><td>89.47</td><td>70.41</td><td>70.12</td><td>82.31</td><td>74.11</td></tr><tr><td>CODEBERT (MLM)</td><td>86.84</td><td>86.40</td><td>90.79</td><td>82.20</td><td>90.46</td><td>88.21</td><td>85.66</td></tr><tr><td colspan=\"8\">PL PROBING WITH PRECEDED CONTEXT ONLY</td></tr><tr><td>ROBERTA</td><td>73.68</td><td>53.31</td><td>51.32</td><td>55.14</td><td>42.32</td><td>52.58</td><td>52.24</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>63.16</td><td>48.53</td><td>61.84</td><td>56.25</td><td>58.51</td><td>58.97</td><td>56.71</td></tr><tr><td>CODEBERT (MLM)</td><td>65.79</td><td>50.74</td><td>59.21</td><td>62.03</td><td>54.98</td><td>59.95</td><td>59.12</td></tr><tr><td colspan=\"8\">NL PROBING</td></tr><tr><td>ROBERTA</td><td>50.00</td><td>72.31</td><td>54.72</td><td>61.57</td><td>61.61</td><td>65.75</td><td>61.21</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>55.00</td><td>67.69</td><td>60.38</td><td>68.06</td><td>65.02</td><td>68.49</td><td>65.19</td></tr><tr><td>CODEBERT (MLM)</td><td>65.00</td><td>89.23</td><td>66.67</td><td>76.85</td><td>73.37</td><td>79.45</td><td>74.53</td></tr></table>",
1057
+ "bbox": [
1058
+ 126,
1059
+ 71,
1060
+ 870,
1061
+ 288
1062
+ ],
1063
+ "page_idx": 6
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "datasets in different programming languages are extremely unbalanced, we report the accumulated metric with the same way. We use CodeBERT (MLM) here because its output layer naturally fits for probing. Results show that CodeBERT performs better than baselines on almost all languages on both NL and PL probing. The numbers with only preceding contexts are lower than that with bidirectional contexts, which suggests that code completion is challenging. We leave it as a future work.",
1068
+ "bbox": [
1069
+ 114,
1070
+ 349,
1071
+ 489,
1072
+ 524
1073
+ ],
1074
+ "page_idx": 6
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "We further give a case study on PL-NL probing. We mask NL token and PL token separately, and report the predicted probabilities of RoBERTa and CodeBERT. Figure 3 illustrates the example of a python code<sup>7</sup>. We can see that RoBERTa fails in both cases, whereas CodeBERT makes the correct prediction in both NL and PL settings.",
1079
+ "bbox": [
1080
+ 114,
1081
+ 527,
1082
+ 489,
1083
+ 640
1084
+ ],
1085
+ "page_idx": 6
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "4.3 Code Documentation Generation",
1090
+ "text_level": 1,
1091
+ "bbox": [
1092
+ 115,
1093
+ 651,
1094
+ 421,
1095
+ 665
1096
+ ],
1097
+ "page_idx": 6
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Although the pre-training objective of CodeBERT does not include generation-based objectives (Lewis et al., 2019), we would like to investigate to what extent does CodeBERT perform on generation tasks. Specifically, we study code-to-NL generation, and report results for the documentation generation task on CodeSearchNet Corpus in six programming languages. Since the generated documentations are short and higher order n-grams may not overlap, we remedy this problem by using smoothed BLEU score (Lin and Och, 2004).",
1102
+ "bbox": [
1103
+ 114,
1104
+ 673,
1105
+ 490,
1106
+ 850
1107
+ ],
1108
+ "page_idx": 6
1109
+ },
1110
+ {
1111
+ "type": "image",
1112
+ "img_path": "images/e64b87002281d5456c0e8f63166cf4b1450b10633676d16bd7887e1d67514c52.jpg",
1113
+ "image_caption": [],
1114
+ "image_footnote": [],
1115
+ "bbox": [
1116
+ 515,
1117
+ 349,
1118
+ 880,
1119
+ 505
1120
+ ],
1121
+ "page_idx": 6
1122
+ },
1123
+ {
1124
+ "type": "table",
1125
+ "img_path": "images/95ffa6293d51f95e332e4d63b29adb35fbdbae9cceccbc9a1471bf73efe7deab.jpg",
1126
+ "table_caption": [
1127
+ "Table 3: Statistics of the data for NL-PL probing and the performance of different pre-trained models. Accuracies $(\\%)$ are reported. Best results in each group are in bold."
1128
+ ],
1129
+ "table_footnote": [],
1130
+ "table_body": "<table><tr><td colspan=\"2\"></td><td>max</td><td>min</td><td>less</td><td>greater</td></tr><tr><td rowspan=\"2\">NL</td><td>Roberta</td><td>96.24%</td><td>3.73%</td><td>0.02%</td><td>0.01%</td></tr><tr><td>CodeBERT (MLM)</td><td>39.38%</td><td>60.60%</td><td>0.02%</td><td>0.0003%</td></tr><tr><td rowspan=\"2\">PL</td><td>Roberta</td><td>95.85%</td><td>4.15%</td><td>-</td><td>-</td></tr><tr><td>CodeBERT (MLM)</td><td>0.001%</td><td>99.999%</td><td>-</td><td>-</td></tr></table>",
1131
+ "bbox": [
1132
+ 512,
1133
+ 510,
1134
+ 880,
1135
+ 586
1136
+ ],
1137
+ "page_idx": 6
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Figure 3: Case study on python language. Masked tokens in NL (in blue) and PL (in yellow) are separately applied. Predicted probabilities of RoBERTa and CodeBERT are given.",
1142
+ "bbox": [
1143
+ 509,
1144
+ 596,
1145
+ 885,
1146
+ 653
1147
+ ],
1148
+ "page_idx": 6
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Model Comparisons We compare our model with several baselines, including a RNN-based model with attention mechanism (Sutskever et al., 2014), the Transformer (Vaswani et al., 2017), RoBERTa and the model pre-trained on code only. To demonstrate the effectiveness of CodeBERT on code-to-NL generation tasks, we adopt various pre-trained models as encoders and keep the hyperparameters consistent. Detailed hyper-parameters are given in Appendix B.3.",
1153
+ "bbox": [
1154
+ 507,
1155
+ 667,
1156
+ 885,
1157
+ 828
1158
+ ],
1159
+ "page_idx": 6
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Table 4 shows the results with different models for the code-to-documentation generation task. As we can see, models pre-trained on programming language outperform RoBERTa, which illustrates that pre-training models on programming",
1164
+ "bbox": [
1165
+ 509,
1166
+ 829,
1167
+ 885,
1168
+ 910
1169
+ ],
1170
+ "page_idx": 6
1171
+ },
1172
+ {
1173
+ "type": "page_footnote",
1174
+ "text": "The example comes from https://github.com/peri-source/peri/blob/61beed5deaaf978ab31ed716e8470d86ba639867/peri/comp/psfcalc.py#L994-L1002",
1175
+ "bbox": [
1176
+ 115,
1177
+ 858,
1178
+ 490,
1179
+ 910
1180
+ ],
1181
+ "page_idx": 6
1182
+ },
1183
+ {
1184
+ "type": "table",
1185
+ "img_path": "images/14e5d194cead93abaa64c4b1865c1be73b8430e26a11879bb0210ae88aebf97e.jpg",
1186
+ "table_caption": [],
1187
+ "table_footnote": [],
1188
+ "table_body": "<table><tr><td>MODEL</td><td>RUBY</td><td>JAVASCIPT</td><td>GO</td><td>PYTHON</td><td>JAVA</td><td>PHP</td><td>OVERALL</td></tr><tr><td>SEQ2SEQ</td><td>9.64</td><td>10.21</td><td>13.98</td><td>15.93</td><td>15.09</td><td>21.08</td><td>14.32</td></tr><tr><td>TRANSFORMER</td><td>11.18</td><td>11.59</td><td>16.38</td><td>15.81</td><td>16.26</td><td>22.12</td><td>15.56</td></tr><tr><td>ROBERTA</td><td>11.17</td><td>11.90</td><td>17.72</td><td>18.14</td><td>16.47</td><td>24.02</td><td>16.57</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>11.91</td><td>13.99</td><td>17.78</td><td>18.58</td><td>17.50</td><td>24.34</td><td>17.35</td></tr><tr><td>CODEBERT (RTD)</td><td>11.42</td><td>13.27</td><td>17.53</td><td>18.29</td><td>17.35</td><td>24.10</td><td>17.00</td></tr><tr><td>CODEBERT (MLM)</td><td>11.57</td><td>14.41</td><td>17.78</td><td>18.77</td><td>17.38</td><td>24.85</td><td>17.46</td></tr><tr><td>CODEBERT (RTD+MLM)</td><td>12.16</td><td>14.90</td><td>18.07</td><td>19.06</td><td>17.65</td><td>25.16</td><td>17.83</td></tr></table>",
1189
+ "bbox": [
1190
+ 161,
1191
+ 72,
1192
+ 833,
1193
+ 183
1194
+ ],
1195
+ "page_idx": 7
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "language could improve code-to-NL generation. Besides, results in the Table 4 show that CodeBERT pre-trained with RTD and MLM objectives brings a gain of 1.3 BLEU score over RoBERTa overall and achieve the state-of-the-art performance $^8$ .",
1200
+ "bbox": [
1201
+ 114,
1202
+ 225,
1203
+ 489,
1204
+ 307
1205
+ ],
1206
+ "page_idx": 7
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "4.4 Generalization to Programming Languages NOT in Pre-training",
1211
+ "text_level": 1,
1212
+ "bbox": [
1213
+ 115,
1214
+ 318,
1215
+ 413,
1216
+ 350
1217
+ ],
1218
+ "page_idx": 7
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "We would like to evaluate CodeBERT on the programming language which is never seen in the pretraining step. To this end, we study the task of generating a natural language summary of a C# code snippet. We conduct experiments on the dataset of CodeNN (Iyer et al., 2016)<sup>9</sup>, which consists of 66,015 pairs of questions and answers automatically collected from StackOverflow. This dataset is challenging since the scale of dataset is orders of magnitude smaller than CodeSearchNet Corpus. We evaluate models using smoothed BLEU-4 score and use the same evaluation scripts as Iyer et al. (2016).",
1223
+ "bbox": [
1224
+ 114,
1225
+ 356,
1226
+ 490,
1227
+ 565
1228
+ ],
1229
+ "page_idx": 7
1230
+ },
1231
+ {
1232
+ "type": "table",
1233
+ "img_path": "images/3622b7d2ef855755e33f25a2c4ae90d6bb132674728c1cd704908b044a093ed2.jpg",
1234
+ "table_caption": [
1235
+ "Table 4: Results on Code-to-Documentation generation, evaluated with smoothed BLEU-4 score."
1236
+ ],
1237
+ "table_footnote": [],
1238
+ "table_body": "<table><tr><td>MODEL</td><td>BLEU</td></tr><tr><td>MOSES (KOEHN ET AL., 2007)</td><td>11.57</td></tr><tr><td>IR</td><td>13.66</td></tr><tr><td>SUM-NN (RUSH ET AL., 2015)</td><td>19.31</td></tr><tr><td>2-LAYER BILSTM</td><td>19.78</td></tr><tr><td>TRANSFORMER (VASWANI ET AL., 2017)</td><td>19.68</td></tr><tr><td>TREELSTM (TAI ET AL., 2015)</td><td>20.11</td></tr><tr><td>CODENN (IYER ET AL., 2016)</td><td>20.53</td></tr><tr><td>CODE2SEQ (ALON ET AL., 2019)</td><td>23.04</td></tr><tr><td>ROBERTA</td><td>19.81</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>20.65</td></tr><tr><td>CODEBERT (RTD)</td><td>22.14</td></tr><tr><td>CODEBERT (MLM)</td><td>22.32</td></tr><tr><td>CODEBERT (MLM+RTD)</td><td>22.36</td></tr></table>",
1239
+ "bbox": [
1240
+ 126,
1241
+ 576,
1242
+ 475,
1243
+ 760
1244
+ ],
1245
+ "page_idx": 7
1246
+ },
1247
+ {
1248
+ "type": "text",
1249
+ "text": "Table 5: Code-to-NL generation on C# language.",
1250
+ "bbox": [
1251
+ 131,
1252
+ 766,
1253
+ 470,
1254
+ 782
1255
+ ],
1256
+ "page_idx": 7
1257
+ },
1258
+ {
1259
+ "type": "text",
1260
+ "text": "Model Comparisons Table 5 shows that our model with MLM and RTD pre-training objectives achieves 22.36 BLEU score and improves by 2.55 points over RoBERTa, which illustrates CodeBERT",
1261
+ "bbox": [
1262
+ 114,
1263
+ 808,
1264
+ 489,
1265
+ 873
1266
+ ],
1267
+ "page_idx": 7
1268
+ },
1269
+ {
1270
+ "type": "text",
1271
+ "text": "could generalize better to other programming language which is never seen in the pre-training step. However, our model achieve slightly lower results than code2seq (Alon et al., 2019). The main reason could be that code2seq makes use of compositional paths in its abstract syntax tree (AST) while CodeBERT only takes original code as the input. We have trained a version of CodeBERT by traversing the tree structure of AST following a certain order, but applying that model does not bring improvements on generation tasks. This shows a potential direction to improve CodeBERT by incorporating AST.",
1272
+ "bbox": [
1273
+ 509,
1274
+ 225,
1275
+ 885,
1276
+ 434
1277
+ ],
1278
+ "page_idx": 7
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "5 Conclusion",
1283
+ "text_level": 1,
1284
+ "bbox": [
1285
+ 510,
1286
+ 448,
1287
+ 643,
1288
+ 463
1289
+ ],
1290
+ "page_idx": 7
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "In this paper, we present CodeBERT, which to the best of our knowledge is the first large bimodal pre-trained model for natural language and programming language. We train CodeBERT on both bimodal and unimodal data, and show that finetuning CodeBERT achieves state-of-the-art performance on downstream tasks including natural language code search and code-to-documentation generation. To further investigate the knowledge embodied in pre-trained models, we formulate the task of NL-PL probing and create a dataset for probing. We regard the probing task as a cloze-style answer selection problem, and curate distractors for both NL and PL parts. Results show that, with model parameters fixed, CodeBERT performs better than RoBERTa and a continuously trained model using codes only.",
1295
+ "bbox": [
1296
+ 507,
1297
+ 474,
1298
+ 885,
1299
+ 747
1300
+ ],
1301
+ "page_idx": 7
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "There are many potential directions for further research on this field. First, one could learn better generators with bimodal evidence or more complicated neural architecture to improve the replaced token detection objective. Second, the loss functions of CodeBERT mainly target on NL-PL understanding tasks. Although CodeBERT achieves strong BLEU scores on code-to-documentation generation, the CodeBERT itself could be further improved by generation-related learning objectives.",
1306
+ "bbox": [
1307
+ 507,
1308
+ 749,
1309
+ 885,
1310
+ 910
1311
+ ],
1312
+ "page_idx": 7
1313
+ },
1314
+ {
1315
+ "type": "page_footnote",
1316
+ "text": "<sup>8</sup>We further give some output examples in Appendix E.",
1317
+ "bbox": [
1318
+ 134,
1319
+ 881,
1320
+ 477,
1321
+ 895
1322
+ ],
1323
+ "page_idx": 7
1324
+ },
1325
+ {
1326
+ "type": "page_footnote",
1327
+ "text": "$^{9}$ https://github.com/sriniyer/codenn",
1328
+ "bbox": [
1329
+ 134,
1330
+ 895,
1331
+ 465,
1332
+ 908
1333
+ ],
1334
+ "page_idx": 7
1335
+ },
1336
+ {
1337
+ "type": "text",
1338
+ "text": "How to successfully incorporate AST into the pretraining step is also an attractive direction. Third, we plan to apply CodeBERT to more NL-PL related tasks, and extend it to more programming languages. Flexible and powerful domain/language adaptation methods are necessary to generalize well.",
1339
+ "bbox": [
1340
+ 114,
1341
+ 74,
1342
+ 492,
1343
+ 186
1344
+ ],
1345
+ "page_idx": 8
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "Acknowledgments",
1350
+ "text_level": 1,
1351
+ "bbox": [
1352
+ 115,
1353
+ 200,
1354
+ 280,
1355
+ 217
1356
+ ],
1357
+ "page_idx": 8
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "Xiaocheng Feng is the corresponding author of this work. We thank the anonymous reviewers for their insightful comments. Zhangyin Feng, Xiaocheng Feng, Bing Qin and Ting Liu are supported by the National Key R&D Program of China via grant 2018YFB1005103 and National Natural Science Foundation of China (NSFC) via grant 61632011 and 61772156.",
1362
+ "bbox": [
1363
+ 114,
1364
+ 225,
1365
+ 489,
1366
+ 354
1367
+ ],
1368
+ "page_idx": 8
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "References",
1373
+ "text_level": 1,
1374
+ "bbox": [
1375
+ 115,
1376
+ 382,
1377
+ 215,
1378
+ 398
1379
+ ],
1380
+ "page_idx": 8
1381
+ },
1382
+ {
1383
+ "type": "list",
1384
+ "sub_type": "ref_text",
1385
+ "list_items": [
1386
+ "Uri Alon, Shaked Brody, Omer Levy, and Eran Yahav. 2019. code2seq: Generating sequences from structured representations of code. International Conference on Learning Representations.",
1387
+ "Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. 2014. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078.",
1388
+ "Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. 2020. {ELECTRA}: Pretraining text encoders as discriminators rather than generators. In International Conference on Learning Representations.",
1389
+ "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805.",
1390
+ "Xiaodong Gu, Hongyu Zhang, and Sunghun Kim. 2018. Deep code search. In 2018 IEEE/ACM 40th International Conference on Software Engineering (ICSE), pages 933-944. IEEE.",
1391
+ "Hamel Husain, Ho-Hsiang Wu, Tiferet Gazit, Miltiadis Allamanis, and Marc Brockschmidt. 2019. Code-searchnet challenge: Evaluating the state of semantic code search. arXiv preprint arXiv:1909.09436.",
1392
+ "Srinivasan Iyer, Ioannis Konstas, Alvin Cheung, and Luke Zettlemoyer. 2016. Summarizing source code using a neural attention model. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2073-2083."
1393
+ ],
1394
+ "bbox": [
1395
+ 117,
1396
+ 406,
1397
+ 492,
1398
+ 910
1399
+ ],
1400
+ "page_idx": 8
1401
+ },
1402
+ {
1403
+ "type": "list",
1404
+ "sub_type": "ref_text",
1405
+ "list_items": [
1406
+ "Dan Jurafsky. 2000. Speech & language processing. Pearson Education India.",
1407
+ "Aditya Kanade, Petros Maniatis, Gogul Balakrishnan, and Kensen Shi. 2019. Pre-trained contextual embedding of source code. arXiv preprint arXiv:2001.00059.",
1408
+ "Yoon Kim. 2014. Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882.",
1409
+ "Philipp Koehn, Hieu Hoang, Alexandra Birch, Chris Callison-Burch, Marcello Federico, Nicola Bertoldi, Brooke Cowan, Wade Shen, Christine Moran, Richard Zens, et al. 2007. Moses: Open source toolkit for statistical machine translation. In Proceedings of the 45th annual meeting of the association for computational linguistics companion volume proceedings of the demo and poster sessions, pages 177-180.",
1410
+ "Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and Luke Zettlemoyer. 2019. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv preprint arXiv:1910.13461.",
1411
+ "Chin-Yew Lin and Franz Josef Och. 2004. Orange: a method for evaluating automatic evaluation metrics for machine translation. In Proceedings of the 20th international conference on Computational Linguistics, page 501. Association for Computational Linguistics.",
1412
+ "Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.",
1413
+ "Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. 2019. Vilbert: Pretraining task-agnostic visi-olinguistic representations for vision-and-language tasks. In Advances in Neural Information Processing Systems, pages 13-23.",
1414
+ "Bhaskar Mitra, Nick Craswell, et al. 2018. An introduction to neural information retrieval. Foundations and Trends in Information Retrieval, 13(1):1-126.",
1415
+ "Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word representations. arXiv preprint arXiv:1802.05365.",
1416
+ "Fabio Petroni, Tim Roktaschel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, Alexander H Miller, and Sebastian Riedel. 2019. Language models as knowledge bases? arXiv preprint arXiv:1909.01066.",
1417
+ "Telmo Pires, Eva Schlinger, and Dan Garrette. 2019. How multilingual is multilingual bert? arXiv preprint arXiv:1906.01502."
1418
+ ],
1419
+ "bbox": [
1420
+ 512,
1421
+ 76,
1422
+ 884,
1423
+ 909
1424
+ ],
1425
+ "page_idx": 8
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. 2018. Improving language understanding by generative pre-training. URL https://s3-us-west-2. amazonaws. com/openai-assetss/researchcovers/languageunsupervised/language understanding paper.pdf.",
1430
+ "bbox": [
1431
+ 117,
1432
+ 74,
1433
+ 505,
1434
+ 156
1435
+ ],
1436
+ "page_idx": 9
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2019. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683.",
1441
+ "bbox": [
1442
+ 115,
1443
+ 166,
1444
+ 490,
1445
+ 233
1446
+ ],
1447
+ "page_idx": 9
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "Alexander M Rush, Sumit Chopra, and Jason Weston. 2015. A neural attention model for abstractive sentence summarization. arXiv preprint arXiv:1509.00685.",
1452
+ "bbox": [
1453
+ 115,
1454
+ 244,
1455
+ 490,
1456
+ 298
1457
+ ],
1458
+ "page_idx": 9
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "Chen Sun, Austin Myers, Carl Vondrick, Kevin Murphy, and Cordelia Schmid. 2019. Videobert: A joint model for video and language representation learning. arXiv preprint arXiv:1904.01766.",
1463
+ "bbox": [
1464
+ 115,
1465
+ 309,
1466
+ 490,
1467
+ 363
1468
+ ],
1469
+ "page_idx": 9
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "Ilya Sutskever, Oriol Vinyals, and Quoc V Le. 2014. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pages 3104-3112.",
1474
+ "bbox": [
1475
+ 115,
1476
+ 374,
1477
+ 490,
1478
+ 429
1479
+ ],
1480
+ "page_idx": 9
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "Kai Sheng Tai, Richard Socher, and Christopher D Manning. 2015. Improved semantic representations from tree-structured long short-term memory networks. arXiv preprint arXiv:1503.00075.",
1485
+ "bbox": [
1486
+ 115,
1487
+ 439,
1488
+ 490,
1489
+ 494
1490
+ ],
1491
+ "page_idx": 9
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "text": "Alon Talmor, Yanai Elazar, Yoav Goldberg, and Jonathan Berant. 2019. olmpics-on what language model pre-training captures. arXiv preprint arXiv:1912.13283.",
1496
+ "bbox": [
1497
+ 115,
1498
+ 505,
1499
+ 490,
1500
+ 558
1501
+ ],
1502
+ "page_idx": 9
1503
+ },
1504
+ {
1505
+ "type": "text",
1506
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in neural information processing systems, pages 5998-6008.",
1507
+ "bbox": [
1508
+ 115,
1509
+ 570,
1510
+ 490,
1511
+ 638
1512
+ ],
1513
+ "page_idx": 9
1514
+ },
1515
+ {
1516
+ "type": "text",
1517
+ "text": "Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. 2016. Google's neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144.",
1518
+ "bbox": [
1519
+ 115,
1520
+ 648,
1521
+ 490,
1522
+ 740
1523
+ ],
1524
+ "page_idx": 9
1525
+ },
1526
+ {
1527
+ "type": "text",
1528
+ "text": "Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. 2019. Xlnet: Generalized autoregressive pretraining for language understanding. arXiv preprint arXiv:1906.08237.",
1529
+ "bbox": [
1530
+ 115,
1531
+ 752,
1532
+ 490,
1533
+ 819
1534
+ ],
1535
+ "page_idx": 9
1536
+ },
1537
+ {
1538
+ "type": "text",
1539
+ "text": "A Data Statistic",
1540
+ "text_level": 1,
1541
+ "bbox": [
1542
+ 115,
1543
+ 834,
1544
+ 272,
1545
+ 850
1546
+ ],
1547
+ "page_idx": 9
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "Data statistics of the training/validation/testing data splits for six programming languages are given in Table 6.",
1552
+ "bbox": [
1553
+ 114,
1554
+ 860,
1555
+ 490,
1556
+ 909
1557
+ ],
1558
+ "page_idx": 9
1559
+ },
1560
+ {
1561
+ "type": "table",
1562
+ "img_path": "images/d61832405592abb2341be1cdb3cd0b0393b5d764cb3de70c977453d04e0433d8.jpg",
1563
+ "table_caption": [],
1564
+ "table_footnote": [],
1565
+ "table_body": "<table><tr><td>CODE SEARCH</td><td>TRAINING</td><td>DEV</td><td>TESTING</td></tr><tr><td>GO</td><td>635,635</td><td>28,483</td><td>14,291</td></tr><tr><td>JAVA</td><td>908,886</td><td>30,655</td><td>26,909</td></tr><tr><td>JAVAscript</td><td>247,773</td><td>16,505</td><td>6,483</td></tr><tr><td>PHP</td><td>1,047,406</td><td>52,029</td><td>28,391</td></tr><tr><td>PYTHON</td><td>824,342</td><td>46,213</td><td>22,176</td></tr><tr><td>RUBY</td><td>97,580</td><td>4,417</td><td>2,279</td></tr></table>",
1566
+ "bbox": [
1567
+ 521,
1568
+ 72,
1569
+ 872,
1570
+ 172
1571
+ ],
1572
+ "page_idx": 9
1573
+ },
1574
+ {
1575
+ "type": "text",
1576
+ "text": "Table 6: Data statistics about the CodeSearchNet Corpus for natural language code search.",
1577
+ "bbox": [
1578
+ 509,
1579
+ 179,
1580
+ 885,
1581
+ 209
1582
+ ],
1583
+ "page_idx": 9
1584
+ },
1585
+ {
1586
+ "type": "text",
1587
+ "text": "B Train Details",
1588
+ "text_level": 1,
1589
+ "bbox": [
1590
+ 510,
1591
+ 234,
1592
+ 663,
1593
+ 250
1594
+ ],
1595
+ "page_idx": 9
1596
+ },
1597
+ {
1598
+ "type": "text",
1599
+ "text": "B.1 Pre-training",
1600
+ "text_level": 1,
1601
+ "bbox": [
1602
+ 510,
1603
+ 262,
1604
+ 658,
1605
+ 279
1606
+ ],
1607
+ "page_idx": 9
1608
+ },
1609
+ {
1610
+ "type": "text",
1611
+ "text": "We train CodeBERT on one NVIDIA DGX-2 machine using FP16. It combines 16 interconnected NVIDIA Tesla V100 with 32GB memory. We use the following set of hyper-parameters to train models: batchsize is 2,048 and learning rate is 5e-4. We use Adam to update the parameters and set the number of warmup steps as 10K. We set the max length as 512 and the max training step is 100K. Training 1,000 batches of data costs 600 minutes with MLM objective, 120 minutes with RTD objective.",
1612
+ "bbox": [
1613
+ 509,
1614
+ 284,
1615
+ 885,
1616
+ 447
1617
+ ],
1618
+ "page_idx": 9
1619
+ },
1620
+ {
1621
+ "type": "text",
1622
+ "text": "B.2 CodeSearch",
1623
+ "text_level": 1,
1624
+ "bbox": [
1625
+ 510,
1626
+ 460,
1627
+ 655,
1628
+ 474
1629
+ ],
1630
+ "page_idx": 9
1631
+ },
1632
+ {
1633
+ "type": "text",
1634
+ "text": "In the fine-turning step, we set the learning rate as 1e-5, the batch size as 64, the max sequence length as 200 and the max fine-tuning epoch as 8. As the same with pre-training, We use Adam to update the parameters. We choose the model performed best on the development set, and use that to evaluate on the test set.",
1635
+ "bbox": [
1636
+ 509,
1637
+ 483,
1638
+ 885,
1639
+ 594
1640
+ ],
1641
+ "page_idx": 9
1642
+ },
1643
+ {
1644
+ "type": "text",
1645
+ "text": "B.3 Code Summarization on Six Programming Languages",
1646
+ "text_level": 1,
1647
+ "bbox": [
1648
+ 510,
1649
+ 609,
1650
+ 781,
1651
+ 640
1652
+ ],
1653
+ "page_idx": 9
1654
+ },
1655
+ {
1656
+ "type": "text",
1657
+ "text": "We use Transformer with 6 layers, 768 dimensional hidden states and 12 attention heads as our decoder in all settings. We set the max length of input and inference as 256 and 64, respectively. We use the Adam optimizer to update model parameters. The learning rate and the batch size are 5e-5 and 64, respectively. We tune hyperparameters and perform early stopping on the development set.",
1658
+ "bbox": [
1659
+ 509,
1660
+ 646,
1661
+ 885,
1662
+ 778
1663
+ ],
1664
+ "page_idx": 9
1665
+ },
1666
+ {
1667
+ "type": "text",
1668
+ "text": "B.4 Code Summarization on C#",
1669
+ "text_level": 1,
1670
+ "bbox": [
1671
+ 510,
1672
+ 790,
1673
+ 781,
1674
+ 806
1675
+ ],
1676
+ "page_idx": 9
1677
+ },
1678
+ {
1679
+ "type": "text",
1680
+ "text": "Since state-of-the-art methods use RNN as their decoder, we choose a 2-layer GRU with an attention mechanism as our decoder for a comparison. We fine-tune models using a grid search with the following set of hyper-parameters: batchsize is in \\{32, 64\\} and learning rate is in \\{2e-5, 5e-5\\}. We report",
1681
+ "bbox": [
1682
+ 509,
1683
+ 813,
1684
+ 885,
1685
+ 910
1686
+ ],
1687
+ "page_idx": 9
1688
+ },
1689
+ {
1690
+ "type": "text",
1691
+ "text": "the number when models achieve best performance on the development set.",
1692
+ "bbox": [
1693
+ 115,
1694
+ 74,
1695
+ 489,
1696
+ 105
1697
+ ],
1698
+ "page_idx": 10
1699
+ },
1700
+ {
1701
+ "type": "text",
1702
+ "text": "C Learning Curve of CodeSearch",
1703
+ "text_level": 1,
1704
+ "bbox": [
1705
+ 115,
1706
+ 117,
1707
+ 421,
1708
+ 134
1709
+ ],
1710
+ "page_idx": 10
1711
+ },
1712
+ {
1713
+ "type": "text",
1714
+ "text": "From Figure 4, we can see that CodeBERT performs better at the early stage, which reflects that CodeBERT provides good initialization for learning downstream tasks.",
1715
+ "bbox": [
1716
+ 115,
1717
+ 142,
1718
+ 490,
1719
+ 206
1720
+ ],
1721
+ "page_idx": 10
1722
+ },
1723
+ {
1724
+ "type": "image",
1725
+ "img_path": "images/db6357b1d8c49497159e567595a575c4f04bc6f76a6f358063976b8a202bf0e3.jpg",
1726
+ "image_caption": [
1727
+ "Figure 4: Learning curve of different pre-trained models in the fine-tuning step. We show results on Python and Java."
1728
+ ],
1729
+ "image_footnote": [],
1730
+ "bbox": [
1731
+ 119,
1732
+ 225,
1733
+ 302,
1734
+ 357
1735
+ ],
1736
+ "page_idx": 10
1737
+ },
1738
+ {
1739
+ "type": "image",
1740
+ "img_path": "images/556ef6f6bb3c91bfb2d76dac20414ec4366486c6b2cb0ee0cbd706798c5ef43f.jpg",
1741
+ "image_caption": [],
1742
+ "image_footnote": [],
1743
+ "bbox": [
1744
+ 305,
1745
+ 225,
1746
+ 485,
1747
+ 357
1748
+ ],
1749
+ "page_idx": 10
1750
+ },
1751
+ {
1752
+ "type": "text",
1753
+ "text": "D Late Fusion",
1754
+ "text_level": 1,
1755
+ "bbox": [
1756
+ 115,
1757
+ 423,
1758
+ 258,
1759
+ 438
1760
+ ],
1761
+ "page_idx": 10
1762
+ },
1763
+ {
1764
+ "type": "text",
1765
+ "text": "In section §4.1, we show that CodeBERT performs well in the setting where natural languages and codes have early interactions. Here, we investigate whether CodeBERT is good at working as a unified encoder. We apply CodeBERT for natural language code search in a later fusion setting, where CodeBERT first encodes NL and PL separately, and then calculates the similarity by dot-product. In this way, code search is equivalent to find the nearest codes in the shared vector space. This scenario also facilitates the use of CodeBERT in an online system, where the representations of codes are calculated in advance. In the runtime, a system only needs to compute the representation of NL and vector-based dot-product.",
1766
+ "bbox": [
1767
+ 114,
1768
+ 448,
1769
+ 489,
1770
+ 688
1771
+ ],
1772
+ "page_idx": 10
1773
+ },
1774
+ {
1775
+ "type": "text",
1776
+ "text": "We fine-tune CodeBERT with the following objective, which maximizes the dot-product of the ground truth while minimizing the dot-product of distractors.",
1777
+ "bbox": [
1778
+ 114,
1779
+ 690,
1780
+ 489,
1781
+ 753
1782
+ ],
1783
+ "page_idx": 10
1784
+ },
1785
+ {
1786
+ "type": "equation",
1787
+ "text": "\n$$\n- \\frac {1}{N} \\sum_ {i} \\log \\left(\\frac {\\exp \\left(E n c \\left(c _ {i}\\right) ^ {\\intercal} E n c \\left(w _ {i}\\right)\\right)}{\\sum_ {j} \\exp \\left(E n c \\left(c _ {j}\\right) ^ {\\intercal} E n c \\left(w _ {i}\\right)\\right)}\\right) \\tag {15}\n$$\n",
1788
+ "text_format": "latex",
1789
+ "bbox": [
1790
+ 132,
1791
+ 758,
1792
+ 489,
1793
+ 813
1794
+ ],
1795
+ "page_idx": 10
1796
+ },
1797
+ {
1798
+ "type": "text",
1799
+ "text": "Results are given in Table 7. We just do this setting on two languages with a relatively small amount of data.",
1800
+ "bbox": [
1801
+ 115,
1802
+ 829,
1803
+ 487,
1804
+ 875
1805
+ ],
1806
+ "page_idx": 10
1807
+ },
1808
+ {
1809
+ "type": "text",
1810
+ "text": "We can see that CodeBERT performs better than RoBERTa and the model pre-trained with codes",
1811
+ "bbox": [
1812
+ 115,
1813
+ 877,
1814
+ 489,
1815
+ 910
1816
+ ],
1817
+ "page_idx": 10
1818
+ },
1819
+ {
1820
+ "type": "table",
1821
+ "img_path": "images/0e8033c6c9e05c656ae76855c1b4fb81fc3e40848531274b4db7a86001c4c3ae.jpg",
1822
+ "table_caption": [],
1823
+ "table_footnote": [],
1824
+ "table_body": "<table><tr><td>MODEL</td><td>RUBY</td><td>GO</td></tr><tr><td>ROBERTA</td><td>0.0043</td><td>0.0030</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>0.1648</td><td>0.4179</td></tr><tr><td>CODEBERT</td><td>0.6870</td><td>0.8372</td></tr></table>",
1825
+ "bbox": [
1826
+ 531,
1827
+ 80,
1828
+ 860,
1829
+ 145
1830
+ ],
1831
+ "page_idx": 10
1832
+ },
1833
+ {
1834
+ "type": "text",
1835
+ "text": "Table 7: Results on natural language code search by late fusion.",
1836
+ "bbox": [
1837
+ 509,
1838
+ 152,
1839
+ 882,
1840
+ 180
1841
+ ],
1842
+ "page_idx": 10
1843
+ },
1844
+ {
1845
+ "type": "text",
1846
+ "text": "only. And late fusion performs comparable with the standard way. What's more, late fusion is more efficient and this setting could be used in an online system.",
1847
+ "bbox": [
1848
+ 509,
1849
+ 206,
1850
+ 882,
1851
+ 269
1852
+ ],
1853
+ "page_idx": 10
1854
+ },
1855
+ {
1856
+ "type": "text",
1857
+ "text": "E Case Study",
1858
+ "text_level": 1,
1859
+ "bbox": [
1860
+ 510,
1861
+ 282,
1862
+ 648,
1863
+ 299
1864
+ ],
1865
+ "page_idx": 10
1866
+ },
1867
+ {
1868
+ "type": "text",
1869
+ "text": "To qualitatively analyze the effectiveness of CodeBERT, we give some cases for code search and code documentation generation tasks.",
1870
+ "bbox": [
1871
+ 509,
1872
+ 307,
1873
+ 885,
1874
+ 355
1875
+ ],
1876
+ "page_idx": 10
1877
+ },
1878
+ {
1879
+ "type": "text",
1880
+ "text": "Considering the limited space, we only give the top2 results of the query for python programming language. As show in Figure 5, search results are very relevant with query.",
1881
+ "bbox": [
1882
+ 509,
1883
+ 356,
1884
+ 882,
1885
+ 420
1886
+ ],
1887
+ "page_idx": 10
1888
+ },
1889
+ {
1890
+ "type": "text",
1891
+ "text": "Figure 6 and Figure 7 show the outputs with different models for the code documentation generation task. As we can see, CodeBERT performs better than all baselines.",
1892
+ "bbox": [
1893
+ 509,
1894
+ 420,
1895
+ 885,
1896
+ 483
1897
+ ],
1898
+ "page_idx": 10
1899
+ },
1900
+ {
1901
+ "type": "code",
1902
+ "sub_type": "code",
1903
+ "code_caption": [
1904
+ "Query"
1905
+ ],
1906
+ "code_body": "create file and write something",
1907
+ "guess_lang": "txt",
1908
+ "bbox": [
1909
+ 152,
1910
+ 93,
1911
+ 327,
1912
+ 105
1913
+ ],
1914
+ "page_idx": 11
1915
+ },
1916
+ {
1917
+ "type": "code",
1918
+ "sub_type": "code",
1919
+ "code_caption": [
1920
+ "Search Results (top2)"
1921
+ ],
1922
+ "code_body": "https://github.com/darknessomi/musicbox/blob/master/NEMbox/util.py#L37-L40 \ndef create_file(path, default $=$ \"\\\\n\"): if not os.path.exists(path): with open(path, \"w\") as f: f.write(default)",
1923
+ "guess_lang": "python",
1924
+ "bbox": [
1925
+ 152,
1926
+ 130,
1927
+ 631,
1928
+ 216
1929
+ ],
1930
+ "page_idx": 11
1931
+ },
1932
+ {
1933
+ "type": "code",
1934
+ "sub_type": "code",
1935
+ "code_caption": [],
1936
+ "code_body": "https://github.com/datakortet/yamldirs/blob/master/yamldirs/filemaker.py#L114-L118",
1937
+ "guess_lang": "txt",
1938
+ "bbox": [
1939
+ 154,
1940
+ 237,
1941
+ 631,
1942
+ 250
1943
+ ],
1944
+ "page_idx": 11
1945
+ },
1946
+ {
1947
+ "type": "code",
1948
+ "sub_type": "code",
1949
+ "code_caption": [],
1950
+ "code_body": "def make_file(self, filename, content):\n '''Create a new file with name``filename``and content``content``.\n '''with open(filename,'w') as fp:\n fp.write(content)",
1951
+ "guess_lang": "python",
1952
+ "bbox": [
1953
+ 154,
1954
+ 260,
1955
+ 618,
1956
+ 319
1957
+ ],
1958
+ "page_idx": 11
1959
+ },
1960
+ {
1961
+ "type": "text",
1962
+ "text": "Figure 5: Python CodeSearch example. The results are searched from 1,156,085 python code data. We only give the top2 results because space is limited.",
1963
+ "bbox": [
1964
+ 114,
1965
+ 338,
1966
+ 882,
1967
+ 367
1968
+ ],
1969
+ "page_idx": 11
1970
+ },
1971
+ {
1972
+ "type": "code",
1973
+ "sub_type": "code",
1974
+ "code_caption": [
1975
+ "Gold: Add a write error result"
1976
+ ],
1977
+ "code_body": "public void addWriteErrorResult(final BulkWriteError writeError, final IndexMap indexMap) {\n notNull(\"writeError\", writeError);\n mergeWriteErrors(asList(writeError), indexMap);\n}",
1978
+ "guess_lang": "java",
1979
+ "bbox": [
1980
+ 149,
1981
+ 387,
1982
+ 505,
1983
+ 445
1984
+ ],
1985
+ "page_idx": 11
1986
+ },
1987
+ {
1988
+ "type": "code",
1989
+ "sub_type": "code",
1990
+ "code_caption": [],
1991
+ "code_body": "CodeBERT: Add a write error result. \nPRE-TRAIN W/ CODEONLY : Merges the given write error. \nRoberta: Add a write operation to the map. \nTransformer: Adds an error to the write map.",
1992
+ "guess_lang": "txt",
1993
+ "bbox": [
1994
+ 151,
1995
+ 481,
1996
+ 482,
1997
+ 543
1998
+ ],
1999
+ "page_idx": 11
2000
+ },
2001
+ {
2002
+ "type": "code",
2003
+ "sub_type": "code",
2004
+ "code_caption": [],
2005
+ "code_body": "RNN: Add an error map.",
2006
+ "guess_lang": "txt",
2007
+ "bbox": [
2008
+ 152,
2009
+ 546,
2010
+ 287,
2011
+ 558
2012
+ ],
2013
+ "page_idx": 11
2014
+ },
2015
+ {
2016
+ "type": "text",
2017
+ "text": "Figure 6: Java code documentation generation output example.",
2018
+ "bbox": [
2019
+ 285,
2020
+ 576,
2021
+ 712,
2022
+ 590
2023
+ ],
2024
+ "page_idx": 11
2025
+ },
2026
+ {
2027
+ "type": "code",
2028
+ "sub_type": "code",
2029
+ "code_caption": [],
2030
+ "code_body": "def create_or_update(self, list_id, subscriber_hash, data): \n subscriber_hash = check subscribed_hash(subscriber_hash) \n self.list_id = list_id \n self subscribers_hash = subscriber_hash \n if 'email_address' not in data: \n raise ValueError('The list member must have an email_address') \n check_email(data['email_address']) \n if 'status_if_new' not in data: \n raise ValueError('The list member must have a status_if_new') \n if data['status_if_new'] not in [' subscribed', 'un subscribed', 'cleaned', 'pending', 'transactional']: \n raise ValueError('The list member status_if_new must be one of \" subscribed\", \"un subscribed\", \"cleaned\", \"pending\", or \"transactional\")) \n return self._mc_client._put(url= self._build_path(list_id, 'members', subscriber_hash), data=data)",
2031
+ "guess_lang": "python",
2032
+ "bbox": [
2033
+ 152,
2034
+ 612,
2035
+ 684,
2036
+ 757
2037
+ ],
2038
+ "page_idx": 11
2039
+ },
2040
+ {
2041
+ "type": "code",
2042
+ "sub_type": "code",
2043
+ "code_caption": [
2044
+ "Gold: Add or update a list member."
2045
+ ],
2046
+ "code_body": "CodeBERT: Create or update a list member. \nPRE-TRAIN W/ CODEONLY: Create or update a subscriber. \nRoberta: Create or update an existing record. \nTransformer: Create or update a subscription. \nRNN: Creates or updates an email address.",
2047
+ "guess_lang": "txt",
2048
+ "bbox": [
2049
+ 154,
2050
+ 790,
2051
+ 477,
2052
+ 868
2053
+ ],
2054
+ "page_idx": 11
2055
+ },
2056
+ {
2057
+ "type": "text",
2058
+ "text": "Figure 7: Python code documentation generation output example.",
2059
+ "bbox": [
2060
+ 275,
2061
+ 883,
2062
+ 722,
2063
+ 898
2064
+ ],
2065
+ "page_idx": 11
2066
+ }
2067
+ ]
2002.08xxx/2002.08155/9ddac694-f769-4a0a-acb8-3d4e0835ba7b_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08155/9ddac694-f769-4a0a-acb8-3d4e0835ba7b_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cee6e60819035c91d5ad8906df2932e91e2038e72b881c61a8762368704cd767
3
+ size 1280226
2002.08xxx/2002.08155/full.md ADDED
@@ -0,0 +1,428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CodeBERT: A Pre-Trained Model for Programming and Natural Languages
2
+
3
+ Zhangyin Feng $^{1*}$ , Daya Guo $^{2*}$ , Duyu Tang $^{3}$ , Nan Duan $^{3}$ , Xiaocheng Feng $^{1}$ , Ming Gong $^{4}$ , Linjun Shou $^{4}$ , Bing Qin $^{1}$ , Ting Liu $^{1}$ , Daxin Jiang $^{4}$ , Ming Zhou $^{3}$
4
+
5
+ <sup>1</sup> Research Center for Social Computing and Information Retrieval, Harbin Institute of Technology, China
6
+
7
+ 2 The School of Data and Computer Science, Sun Yat-sen University, China
8
+
9
+ <sup>3</sup> Microsoft Research Asia, Beijing, China
10
+
11
+ <sup>4</sup> Microsoft Search Technology Center Asia, Beijing, China
12
+
13
+ {zyfeng,xcfeng,qinb,tliu}@ir.hit.edu.cn
14
+
15
+ guody5@mail2.sysu.edu.cn
16
+
17
+ {dutang,nanduan,migon,lisho,djiang,mingzhou}@microsoft.com
18
+
19
+ # Abstract
20
+
21
+ We present CodeBERT, a bimodal pre-trained model for programming language (PL) and natural language (NL). CodeBERT learns general-purpose representations that support downstream NL-PL applications such as natural language code search, code documentation generation, etc. We develop CodeBERT with Transformer-based neural architecture, and train it with a hybrid objective function that incorporates the pre-training task of replaced token detection, which is to detect plausible alternatives sampled from generators. This enables us to utilize both "bimodal" data of NL-PL pairs and "unimodal" data, where the former provides input tokens for model training while the latter helps to learn better generators. We evaluate CodeBERT on two NL-PL applications by fine-tuning model parameters. Results show that CodeBERT achieves state-of-the-art performance on both natural language code search and code documentation generation. Furthermore, to investigate what type of knowledge is learned in CodeBERT, we construct a dataset for NL-PL probing, and evaluate in a zero-shot setting where parameters of pre-trained models are fixed. Results show that CodeBERT performs better than previous pre-trained models on NL-PL probing.<sup>1</sup>
22
+
23
+ # 1 Introduction
24
+
25
+ Large pre-trained models such as ELMo (Peters et al., 2018), GPT (Radford et al., 2018), BERT (Devlin et al., 2018), XLNet (Yang et al., 2019)
26
+
27
+ and RoBERTa (Liu et al., 2019) have dramatically improved the state-of-the-art on a variety of natural language processing (NLP) tasks. These pre-trained models learn effective contextual representations from massive unlabeled text optimized by self-supervised objectives, such as masked language modeling, which predicts the original masked word from an artificially masked input sequence. The success of pre-trained models in NLP also drives a surge of multi-modal pre-trained models, such as ViBERT (Lu et al., 2019) for language-image and VideoBERT (Sun et al., 2019) for language-video, which are learned from bimodal data such as language-image pairs with bimodal self-supervised objectives.
28
+
29
+ In this work, we present CodeBERT, a bimodal pre-trained model for natural language (NL) and programming language (PL) like Python, Java, JavaScript, etc. CodeBERT captures the semantic connection between natural language and programming language, and produces general-purpose representations that can broadly support NL-PL understanding tasks (e.g. natural language code search) and generation tasks (e.g. code documentation generation). It is developed with the multilayer Transformer (Vaswani et al., 2017), which is adopted in a majority of large pre-trained models. In order to make use of both bimodal instances of NL-PL pairs and large amount of available unimodal codes, we train CodeBERT with a hybrid objective function, including standard masked language modeling (Devlin et al., 2018) and replaced token detection (Clark et al., 2020), where unimodal codes help to learn better generators for producing better alternative tokens for the latter objective.
30
+
31
+ We train CodeBERT from Github code reposito
32
+
33
+ ries in 6 programming languages, where bimodal datapoints are codes that pair with function-level natural language documentations (Husain et al., 2019). Training is conducted in a setting similar to that of multilingual BERT (Pires et al., 2019), in which case one pre-trained model is learned for 6 programming languages with no explicit markers used to denote the input programming language. We evaluate CodeBERT on two downstream NL-PL tasks, including natural language code search and code documentation generation. Results show that fine-tuning the parameters of CodeBERT achieves state-of-the-art performance on both tasks. To further investigate what type of knowledge is learned in CodeBERT, we construct a dataset for NL-PL probing, and test CodeBERT in a zero-shot scenario, i.e. without fine-tuning the parameters of CodeBERT. We find that CodeBERT consistently outperforms RoBERTa, a purely natural language-based pre-trained model. The contributions of this work are as follows:
34
+
35
+ - CodeBERT is the first large NL-PL pretrained model for multiple programming languages.
36
+ - Empirical results show that CodeBERT is effective in both code search and code-to-text generation tasks.
37
+ - We further created a dataset which is the first one to investigate the probing ability of the code-based pre-trained models.
38
+
39
+ # 2 Background
40
+
41
+ # 2.1 Pre-Trained Models in NLP
42
+
43
+ Large pre-trained models (Peters et al., 2018; Radford et al., 2018; Devlin et al., 2018; Yang et al., 2019; Liu et al., 2019; Raffel et al., 2019) have brought dramatic empirical improvements on almost every NLP task in the past few years. Successful approaches train deep neural networks on large-scale plain texts with self-supervised learning objectives. One of the most representative neural architectures is the Transformer (Vaswani et al., 2017), which is also the one used in this work. It contains multiple self-attention layers, and can be conventionally learned with gradient decent in an end-to-end manner as every component is differentiable. The terminology "self-supervised" means that supervisions used for pre-training are automatically collected from raw data without manual
44
+
45
+ annotation. Dominant learning objectives are language modeling and its variations. For example, in GPT (Radford et al., 2018), the learning objective is language modeling, namely predicting the next word $w_{k}$ given the preceding context words $\{w_{1}, w_{2}, \dots, w_{k-1}\}$ . As the ultimate goal of pretraining is not to train a good language model, it is desirable to consider both preceding and following contexts to learn better general-purpose contextual representations. This leads us to the masked language modeling objective used in BERT (Devlin et al., 2018), which learns to predict the masked words of a randomly masked word sequence given surrounding contexts. Masked language modeling is also used as one of the two learning objectives for training CodeBERT.
46
+
47
+ # 2.2 Multi-Modal Pre-Trained Models
48
+
49
+ The remarkable success of the pre-trained model in NLP has driven the development of multi-modal pre-trained model that learns implicit alignment between inputs of different modalities. These models are typically learned from bimodal data, such as pairs of language-image or pairs of language-video. For example, ViLBERT (Lu et al., 2019) learns from image caption data, where the model learns by reconstructing categories of masked image region or masked words given the observed inputs, and meanwhile predicting whether the caption describes the image content or not. Similarly, VideoBERT (Sun et al., 2019) learns from language-video data and is trained by video and text masked token prediction. Our work belongs to this line of research as we regard NL and PL as different modalities. Our method differs from previous works in that the fuels for model training include not only bimodal data of NL-PL pairs, but larger amounts of unimodal data such as codes without paired documentations.
50
+
51
+ A concurrent work (Kanade et al., 2019) uses masked language modeling and next sentence prediction as the objective to train a BERT model on Python source codes, where a sentence is a logical code line as defined by the Python standard. In terms of the pre-training process, CodeBERT differs from their work in that (1) CodeBERT is trained in a cross-modal style and leverages both bimodal NL-PL data and unimodal PL/NL data, (2) CodeBERT is pre-trained over six programming languages, and (3) CodeBERT is trained with a new learning objective based on replaced token
52
+
53
+ detection.
54
+
55
+ # 3 CodeBERT
56
+
57
+ We describe the details about CodeBERT in this section, including the model architecture, the input and output representations, the objectives and data used for training CodeBERT, and how to fine-tune CodeBERT when it is applied to downstream tasks.
58
+
59
+ # 3.1 Model Architecture
60
+
61
+ We follow BERT (Devlin et al., 2018) and RoBERTa (Liu et al., 2019), and use multi-layer bidirectional Transformer (Vaswani et al., 2017) as the model architecture of CodeBERT. We will not review the ubiquitous Transformer architecture in detail. We develop CodeBERT by using exactly the same model architecture as RoBERTa-base. The total number of model parameters is 125M.
62
+
63
+ # 3.2 Input/Output Representations
64
+
65
+ In the pre-training phase, we set the input as the concatenation of two segments with a special separator token, namely [CLS], $w_{1}, w_{2}, \ldots, w_{n}$ , [SEP], $c_{1}, c_{2}, \ldots, c_{m}$ , [EOS]. One segment is natural language text, and another is code from a certain programming language. [CLS] is a special token in front of the two segments, whose final hidden representation is considered as the aggregated sequence representation for classification or ranking. Following the standard way of processing text in Transformer, we regard a natural language text as a sequence of words, and split it as WordPiece (Wu et al., 2016). We regard a piece of code as a sequence of tokens.
66
+
67
+ The output of CodeBERT includes (1) contextual vector representation of each token, for both natural language and code, and (2) the representation of [CLS], which works as the aggregated sequence representation.
68
+
69
+ # 3.3 Pre-Training Data
70
+
71
+ We train CodeBERT with both bimodal data, which refers to parallel data of natural language-code pairs, and unimodal data, which stands for codes without paired natural language texts and natural language without paired codes.
72
+
73
+ We use datapoints from Github repositories, where each bimodal datapoint is an individual function with paired documentation, and each uni-modal code is a function without paired documentation. Specifically, we use a recent large dataset
74
+
75
+ <table><tr><td>TRAINING DATA</td><td>bimodal DATA</td><td>unimodal CODES</td></tr><tr><td>GO</td><td>319,256</td><td>726,768</td></tr><tr><td>JAVA</td><td>500,754</td><td>1,569,889</td></tr><tr><td>JAVAscript</td><td>143,252</td><td>1,857,835</td></tr><tr><td>PHP</td><td>662,907</td><td>977,821</td></tr><tr><td>PYTHON</td><td>458,219</td><td>1,156,085</td></tr><tr><td>RUBY</td><td>52,905</td><td>164,048</td></tr><tr><td>ALL</td><td>2,137,293</td><td>6,452,446</td></tr></table>
76
+
77
+ Table 1: Statistics of the dataset used for training CodeBERT.
78
+
79
+ provided by Husain et al. (2019), which includes 2.1M bimodal datapoints and 6.4M unimodal codes across six programming languages (Python, Java, JavaScript, PHP, Ruby, and Go). Data statistics is shown in Table 1. $^{2}$
80
+
81
+ The data comes from publicly available open-source non-fork GitHub repositories and are filtered with a set of constraints and rules. For example, (1) each project should be used by at least one other project, (2) each documentation is truncated to the first paragraph, (3) documentations shorter than three tokens are removed, (4) functions shorter than three lines are removed, and (5) function names with substring "test" are removed. An example of the data is given in Figure 1<sup>3</sup>.
82
+
83
+ ![](images/dfb9fdee528028c1c0c0eb591cfa11540dc07eb3ad1fb80615b6a3322ebad838.jpg)
84
+ Figure 1: An example of the NL-PL pair, where NL is the first paragraph (filled in red) from the documentation (dashed line in black) of a function.
85
+
86
+ # 3.4 Pre-Training CodeBERT
87
+
88
+ We describe the two objectives used for training CodeBERT here. The first objective is masked language modeling (MLM), which has proven effective in literature (Devlin et al., 2018; Liu et al.,
89
+
90
+ ![](images/3e79d5432408f9c7354ee138d1a252282bbef5871530c68ea0ba9fc7e14a7ad9.jpg)
91
+ Figure 2: An illustration about the replaced token detection objective. Both NL and code generators are language models, which generate plausible tokens for masked positions based on surrounding contexts. NL-Code discriminator is the targeted pre-trained model, which is trained via detecting plausible alternatives tokens sampled from NL and PL generators. NL-Code discriminator is used for producing general-purpose representations in the fine-tuning step. Both NL and code generators are thrown out in the fine-tuning step.
92
+
93
+ 2019; Sun et al., 2019). We apply masked language modeling on bimodal data of NL-PL pairs. The second objective is replaced token detection (RTD), which further uses a large amount of unimodal data, such as codes without paired natural language texts. Detailed hyper-parameters for model pre-training are given in Appendix B.1.
94
+
95
+ Objective #1: Masked Language Modeling (MLM) Given a datapoint of NL-PL pair $(x = \{w, c\})$ as input, where $w$ is a sequence of NL words and $c$ is a sequence of PL tokens, we first select a random set of positions for both NL and PL to mask out (i.e. $m^w$ and $m^c$ , respectively), and then replace the selected positions with a special [MASK] token. Following Devlin et al. (2018), $15\%$ of the tokens from $x$ are masked out.
96
+
97
+ $$
98
+ m _ {i} ^ {w} \sim \operatorname {u n i f} \{1, | \boldsymbol {w} | \} \text {f o r} i = 1 \text {t o} | \boldsymbol {w} | \tag {1}
99
+ $$
100
+
101
+ $$
102
+ m _ {i} ^ {c} \sim \operatorname {u n i f} \{1, | c | \} \text {f o r} i = 1 \text {t o} | c | \tag {2}
103
+ $$
104
+
105
+ $$
106
+ \boldsymbol {w} ^ {\text {m a s k e d}} = \operatorname {R E P L A C E} \left(\boldsymbol {w}, \boldsymbol {m} ^ {\boldsymbol {w}}, [ M A S K ]\right) \tag {3}
107
+ $$
108
+
109
+ $$
110
+ \boldsymbol {c} ^ {\text {m a s k e d}} = \operatorname {R E P L A C E} (\boldsymbol {c}, \boldsymbol {m} ^ {\boldsymbol {c}}, [ M A S K ]) \tag {4}
111
+ $$
112
+
113
+ $$
114
+ \boldsymbol {x} = \boldsymbol {w} + \boldsymbol {c} \tag {5}
115
+ $$
116
+
117
+ The MLM objective is to predict the original tokens which are masked out, formulated as follows, where $p^{D_1}$ is the discriminator which predicts a token from a large vocabulary.
118
+
119
+ $$
120
+ \mathcal {L} _ {\mathrm {M L M}} (\theta) = \sum_ {i \in \boldsymbol {m} ^ {\boldsymbol {w}} \cup \boldsymbol {m} ^ {\boldsymbol {c}}} - \log p ^ {D _ {1}} \left(x _ {i} \mid \boldsymbol {w} ^ {\text {m a x k e d}}, \boldsymbol {c} ^ {\text {m a x k e d}}\right) \tag {6}
121
+ $$
122
+
123
+ Objective #2: Replaced Token Detection (RTD) In the MLM objective, only bimodal data (i.e. datapoints of NL-PL pairs) is used for training. Here we present the objective of replaced token detection. The RTD objective (Clark et al., 2020) is originally developed for efficiently learning pre-trained model for natural language. We adapt it in our scenario, with the advantage of using both bimodal and unimodal data for training. Specifically, there are two data generators here, an NL generator $p^{G_w}$ and a PL generator $p^{G_c}$ , both for generating plausible alternatives for the set of randomly masked positions.
124
+
125
+ $$
126
+ \hat {w} _ {i} \sim p ^ {G _ {w}} \left(w _ {i} \mid \boldsymbol {w} ^ {\text {m a x k e d}}\right) \text {f o r} i \in \boldsymbol {m} ^ {\boldsymbol {w}} \tag {7}
127
+ $$
128
+
129
+ $$
130
+ \hat {c} _ {i} \sim p ^ {G _ {c}} \left(c _ {i} \mid c ^ {\text {m a x k e d}}\right) \text {f o r} i \in \boldsymbol {m} ^ {\boldsymbol {c}} \tag {8}
131
+ $$
132
+
133
+ $$
134
+ \boldsymbol {w} ^ {\text {c o r r u p t}} = \operatorname {R E P L A C E} (\boldsymbol {w}, \boldsymbol {m} ^ {\boldsymbol {w}}, \hat {\boldsymbol {w}}) \tag {9}
135
+ $$
136
+
137
+ $$
138
+ \boldsymbol {c} ^ {\text {c o r r u p t}} = \operatorname {R E P L A C E} (\boldsymbol {c}, \boldsymbol {m} ^ {\boldsymbol {c}}, \hat {\boldsymbol {c}}) \tag {10}
139
+ $$
140
+
141
+ $$
142
+ \boldsymbol {x} ^ {\text {c o r r u p t}} = \boldsymbol {w} ^ {\text {c o r r u p t}} + \boldsymbol {c} ^ {\text {c o r r u p t}} \tag {11}
143
+ $$
144
+
145
+ The discriminator is trained to determine whether a word is the original one or not, which is a binary classification problem. It is worth noting that the RTD objective is applied to every position in the input, and it differs from GAN (generative adversarial network) in that if a generator happens to produce the correct token, the label of that token is "real" instead of "fake" (Clark et al., 2020). The loss function of RTD with regard to the discriminator parameterized by $\theta$ is given below, where $\delta(i)$ is
146
+
147
+ an indicator function and $p^{D_2}$ is the discriminator that predicts the probability of the $i$ -th word being original.
148
+
149
+ $$
150
+ \begin{array}{l} \mathcal {L} _ {\mathrm {R T D}} (\theta) = \sum_ {i = 1} ^ {| \boldsymbol {w} | + | \boldsymbol {c} |} \left(\delta (i) \log p ^ {D _ {2}} \left(\boldsymbol {x} ^ {\text {c o r r u p t}}, i\right) + \right. \\ \left. \left(1 - \delta (i)\right) \left(1 - \log p ^ {D _ {2}} \left(\boldsymbol {x} ^ {\text {c o r r u p t}}, i\right)\right)\right) \tag {12} \\ \end{array}
151
+ $$
152
+
153
+ $$
154
+ \delta (i) = \left\{ \begin{array}{l l} 1, & \text {i f} x _ {i} ^ {\text {c o r r u p t}} = x _ {i}. \\ 0, & \text {o t h e r w i s e .} \end{array} \right. \tag {13}
155
+ $$
156
+
157
+ There are many different ways to implement the generators. In this work, we implement two efficient n-gram language models (Jurafsky, 2000) with bidirectional contexts, one for NL and one for PL, and learn them from corresponding unimodel datapoints, respectively. The approach is easily generalized to learn bimodal generators or use more complicated generators like Transformer-based neural architecture learned in a joint manner. We leave these to future work. The PL training data is the unimodal codes as shown in Table 1, and the NL training data comes from the documentations from bimodal data. One could easily extend these two training datasets to larger amount. The final loss function are given below.
158
+
159
+ $$
160
+ \min _ {\theta} \mathcal {L} _ {\mathrm {M L M}} (\theta) + \mathcal {L} _ {\mathrm {R T D}} (\theta) \tag {14}
161
+ $$
162
+
163
+ # 3.5 Fine-Tuning CodeBERT
164
+
165
+ We have different settings to use CodeBERT in downstream NL-PL tasks. For example, in natural language code search, we feed the input as the same way as the pre-training phase and use the representation of [CLS] to measure the semantic relevance between code and natural language query, while in code-to-text generation, we use an encoder-decoder framework and initialize the encoder of a generative model with CodeBERT. Details are given in the experiment section.
166
+
167
+ # 4 Experiment
168
+
169
+ We present empirical results in this section to verify the effectiveness of CodeBERT. We first describe the use of CodeBERT in natural language code search (§4.1), in a way that model parameters of CodeBERT are fine-tuned. After that, we present the NL-PL probing task (§4.2), and evaluate CodeBERT in a zero-shot setting where the parameters
170
+
171
+ of CodeBERT are fixed. Finally, we evaluate CodeBERT on a generation problem, i.e. code documentation generation (§4.3), and further evaluate on a programming language which is never seen in the training phase (§4.4).
172
+
173
+ # 4.1 Natural Language Code Search
174
+
175
+ Given a natural language as the input, the objective of code search is to find the most semantically related code from a collection of codes. We conduct experiments on the CodeSearchNet corpus (Husain et al., 2019). We follow the official evaluation metric to calculate the Mean Reciprocal Rank (MRR) for each pair of test data $(c, w)$ over a fixed set of 999 distractor codes. We further calculate the macro-average MRR for all languages as an overall evaluation metric. It is helpful to note that this metric differs from the AVG metric in the original paper, where the answer is retrieved from candidates from all six languages. We fine-tune a language-specific model for each programming language. We train each model with a binary classification loss function, where a softmax layer is connected to the representation of [CLS]. Both training and validation datasets are created in a way that positive and negative samples are balanced. Negative samples consist of balanced number of instances with randomly replaced NL (i.e. $(c, \hat{w})$ ) and PL (i.e. $(\hat{c}, w)$ ). Detailed hyper-parameters for model fine-tuning are given in Appendix B.2.
176
+
177
+ Model Comparisons Table 2 shows the results of different approaches on the CodeSearchNet corpus. The first four rows are reported by Husain et al. (2019), which are joint embeddings of NL and PL (Gu et al., 2018; Mitra et al., 2018). NBOw represents neural bag-of-words. CNN, BIRNN and SELFATT stand for 1D convolutional neural network (Kim, 2014), bidirectional GRU-based recurrent neural network (Cho et al., 2014), and multi-head attention (Vaswani et al., 2017), respectively.
178
+
179
+ We report the remaining numbers in Table 2. We train all these pre-trained models by regarding codes as a sequence of tokens. We also continuously train RoBERTa only on codes from CodeSearchNet with masked language modeling. Results show that CodeBERT consistently performs
180
+
181
+ <table><tr><td>MODEL</td><td>RUBY</td><td>JAVASCIPT</td><td>GO</td><td>PYTHON</td><td>JAVA</td><td>PHP</td><td>MA-AVG</td></tr><tr><td>NBOW</td><td>0.4285</td><td>0.4607</td><td>0.6409</td><td>0.5809</td><td>0.5140</td><td>0.4835</td><td>0.5181</td></tr><tr><td>CNN</td><td>0.2450</td><td>0.3523</td><td>0.6274</td><td>0.5708</td><td>0.5270</td><td>0.5294</td><td>0.4753</td></tr><tr><td>BiRNN</td><td>0.0835</td><td>0.1530</td><td>0.4524</td><td>0.3213</td><td>0.2865</td><td>0.2512</td><td>0.2580</td></tr><tr><td>SELFATT</td><td>0.3651</td><td>0.4506</td><td>0.6809</td><td>0.6922</td><td>0.5866</td><td>0.6011</td><td>0.5628</td></tr><tr><td>ROBERTA</td><td>0.6245</td><td>0.6060</td><td>0.8204</td><td>0.8087</td><td>0.6659</td><td>0.6576</td><td>0.6972</td></tr><tr><td>PT w/ CODE ONLY (INIT=s)</td><td>0.5712</td><td>0.5557</td><td>0.7929</td><td>0.7855</td><td>0.6567</td><td>0.6172</td><td>0.6632</td></tr><tr><td>PT w/ CODE ONLY (INIT=R)</td><td>0.6612</td><td>0.6402</td><td>0.8191</td><td>0.8438</td><td>0.7213</td><td>0.6706</td><td>0.7260</td></tr><tr><td>CODEBERT (MLM, INIT=s)</td><td>0.5695</td><td>0.6029</td><td>0.8304</td><td>0.8261</td><td>0.7142</td><td>0.6556</td><td>0.6998</td></tr><tr><td>CODEBERT (MLM, INIT=R)</td><td>0.6898</td><td>0.6997</td><td>0.8383</td><td>0.8647</td><td>0.7476</td><td>0.6893</td><td>0.7549</td></tr><tr><td>CODEBERT (RTD, INIT=R)</td><td>0.6414</td><td>0.6512</td><td>0.8285</td><td>0.8263</td><td>0.7150</td><td>0.6774</td><td>0.7233</td></tr><tr><td>CODEBERT (MLM+RTD, INIT=R)</td><td>0.6926</td><td>0.7059</td><td>0.8400</td><td>0.8685</td><td>0.7484</td><td>0.7062</td><td>0.7603</td></tr></table>
182
+
183
+ Table 2: Results on natural language code retrieval. Baselines include four joint embeddings (first group) of NL and PL, RoBERTa, and RoBERTa which is continuously trained with masked language modeling on codes only (second group). PT stands for pre-training. We train CodeBERT (third group) with different settings, including using different initialization (from scratch (INIT=S) or initialized with the parameters of RoBERTa (INIT=R)) and using different learning objectives (MLM, RTD, or the combination of both).
184
+
185
+ better than RoBERTa and the model pre-trained with code only. CodeBERT (MLM) learned from scratch performs better than RoBERTa. Unsurprisingly, initializing CodeBERT with RoBERTa improves the performance $^{6}$ .
186
+
187
+ # 4.2 NL-PL Probing
188
+
189
+ In the previous subsection, we show the empirical effectiveness of CodeBERT in a setting that the parameters of CodeBERT are fine-tuned in downstream tasks. In this subsection, we further investigate what type of knowledge is learned in CodeBERT without modifying the parameters.
190
+
191
+ Task Formulation and Data Construction Following the probing experiments in NLP (Petroni et al., 2019; Talmor et al., 2019), we study NL-PL probing here. Since there is no existing work towards this goal, we formulate the problem of NL-PL probing and create the dataset by ourselves. Given an NL-PL pair $(c, w)$ , the goal of NL-PL probing is to test model's ability to correctly predict/recover the masked token of interest (either a code token $c_i$ or word token $w_j$ ) among distractors. There are two major types of distractors: one is the whole target vocabulary used for the masked language modeling objective (Petroni et al., 2019), and another one has fewer candidates which are filter or curated based on experts' understanding about the ability to be tested (Talmor et al., 2019). We follow the second direction and formulate NL-PL probing as a multi-choice question answering task, where the question is cloze-style in which a certain token
192
+
193
+ is replaced by $[MASK]$ and distractor candidate answers are curated based on our expertise.
194
+
195
+ Specifically, we evaluate on the NL side and PL side, respectively. To ease the effort of data collection, we collect data automatically from NL-PL pairs in both validation and testing sets of CodeSearchNet, both of which are unseen in the pretraining phase. To evaluate on the NL side, we select NL-PL pairs whose NL documentations include one of the six keywords (max, maximize, min, minimize, less, greater), and group them to four candidates by merging first two keywords and the middle two keywords. The task is to ask pre-trained models to select the correct one instead of three other distractors. That is to say, the input in this setting includes the complete code and a masked NL documentation. The goal is to select the correct answer from four candidates. For the PL side, we select codes containing keywords max and min, and formulate the task as a two-choice answer selection problem. Here, the input includes complete NL documentation and a masked PL code, and the goal is to select the correct answer from two candidates. Since code completion is an important scenario, we would like to test model's ability in predicting the correct token merely based on preceding PL contexts. Therefore, we add an additional setting for PL side, where the input includes the complete NL documentation and preceding PL codes. Data statistics is given in the top two rows in Table 3.
196
+
197
+ Model Comparisons Results are given in Table 3. We report accuracy, namely the number of correctly predicted instances over the number of all instances, for each programming language. Since
198
+
199
+ <table><tr><td></td><td>RUBY</td><td>JAVASCIPT</td><td>GO</td><td>PYTHON</td><td>JAVA</td><td>PHP</td><td>ALL</td></tr><tr><td colspan="8">NUMBER OF DATAPoints FOR PROBING</td></tr><tr><td>PL (2 CHOICES)</td><td>38</td><td>272</td><td>152</td><td>1,264</td><td>482</td><td>407</td><td>2,615</td></tr><tr><td>NL (4 CHOICES)</td><td>20</td><td>65</td><td>159</td><td>216</td><td>323</td><td>73</td><td>856</td></tr><tr><td colspan="8">PL PROBING</td></tr><tr><td>ROBERTA</td><td>73.68</td><td>63.97</td><td>72.37</td><td>59.18</td><td>59.96</td><td>69.78</td><td>62.45</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>71.05</td><td>77.94</td><td>89.47</td><td>70.41</td><td>70.12</td><td>82.31</td><td>74.11</td></tr><tr><td>CODEBERT (MLM)</td><td>86.84</td><td>86.40</td><td>90.79</td><td>82.20</td><td>90.46</td><td>88.21</td><td>85.66</td></tr><tr><td colspan="8">PL PROBING WITH PRECEDED CONTEXT ONLY</td></tr><tr><td>ROBERTA</td><td>73.68</td><td>53.31</td><td>51.32</td><td>55.14</td><td>42.32</td><td>52.58</td><td>52.24</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>63.16</td><td>48.53</td><td>61.84</td><td>56.25</td><td>58.51</td><td>58.97</td><td>56.71</td></tr><tr><td>CODEBERT (MLM)</td><td>65.79</td><td>50.74</td><td>59.21</td><td>62.03</td><td>54.98</td><td>59.95</td><td>59.12</td></tr><tr><td colspan="8">NL PROBING</td></tr><tr><td>ROBERTA</td><td>50.00</td><td>72.31</td><td>54.72</td><td>61.57</td><td>61.61</td><td>65.75</td><td>61.21</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>55.00</td><td>67.69</td><td>60.38</td><td>68.06</td><td>65.02</td><td>68.49</td><td>65.19</td></tr><tr><td>CODEBERT (MLM)</td><td>65.00</td><td>89.23</td><td>66.67</td><td>76.85</td><td>73.37</td><td>79.45</td><td>74.53</td></tr></table>
200
+
201
+ datasets in different programming languages are extremely unbalanced, we report the accumulated metric with the same way. We use CodeBERT (MLM) here because its output layer naturally fits for probing. Results show that CodeBERT performs better than baselines on almost all languages on both NL and PL probing. The numbers with only preceding contexts are lower than that with bidirectional contexts, which suggests that code completion is challenging. We leave it as a future work.
202
+
203
+ We further give a case study on PL-NL probing. We mask NL token and PL token separately, and report the predicted probabilities of RoBERTa and CodeBERT. Figure 3 illustrates the example of a python code<sup>7</sup>. We can see that RoBERTa fails in both cases, whereas CodeBERT makes the correct prediction in both NL and PL settings.
204
+
205
+ # 4.3 Code Documentation Generation
206
+
207
+ Although the pre-training objective of CodeBERT does not include generation-based objectives (Lewis et al., 2019), we would like to investigate to what extent does CodeBERT perform on generation tasks. Specifically, we study code-to-NL generation, and report results for the documentation generation task on CodeSearchNet Corpus in six programming languages. Since the generated documentations are short and higher order n-grams may not overlap, we remedy this problem by using smoothed BLEU score (Lin and Och, 2004).
208
+
209
+ ![](images/e64b87002281d5456c0e8f63166cf4b1450b10633676d16bd7887e1d67514c52.jpg)
210
+
211
+ Table 3: Statistics of the data for NL-PL probing and the performance of different pre-trained models. Accuracies $(\%)$ are reported. Best results in each group are in bold.
212
+
213
+ <table><tr><td colspan="2"></td><td>max</td><td>min</td><td>less</td><td>greater</td></tr><tr><td rowspan="2">NL</td><td>Roberta</td><td>96.24%</td><td>3.73%</td><td>0.02%</td><td>0.01%</td></tr><tr><td>CodeBERT (MLM)</td><td>39.38%</td><td>60.60%</td><td>0.02%</td><td>0.0003%</td></tr><tr><td rowspan="2">PL</td><td>Roberta</td><td>95.85%</td><td>4.15%</td><td>-</td><td>-</td></tr><tr><td>CodeBERT (MLM)</td><td>0.001%</td><td>99.999%</td><td>-</td><td>-</td></tr></table>
214
+
215
+ Figure 3: Case study on python language. Masked tokens in NL (in blue) and PL (in yellow) are separately applied. Predicted probabilities of RoBERTa and CodeBERT are given.
216
+
217
+ Model Comparisons We compare our model with several baselines, including a RNN-based model with attention mechanism (Sutskever et al., 2014), the Transformer (Vaswani et al., 2017), RoBERTa and the model pre-trained on code only. To demonstrate the effectiveness of CodeBERT on code-to-NL generation tasks, we adopt various pre-trained models as encoders and keep the hyperparameters consistent. Detailed hyper-parameters are given in Appendix B.3.
218
+
219
+ Table 4 shows the results with different models for the code-to-documentation generation task. As we can see, models pre-trained on programming language outperform RoBERTa, which illustrates that pre-training models on programming
220
+
221
+ <table><tr><td>MODEL</td><td>RUBY</td><td>JAVASCIPT</td><td>GO</td><td>PYTHON</td><td>JAVA</td><td>PHP</td><td>OVERALL</td></tr><tr><td>SEQ2SEQ</td><td>9.64</td><td>10.21</td><td>13.98</td><td>15.93</td><td>15.09</td><td>21.08</td><td>14.32</td></tr><tr><td>TRANSFORMER</td><td>11.18</td><td>11.59</td><td>16.38</td><td>15.81</td><td>16.26</td><td>22.12</td><td>15.56</td></tr><tr><td>ROBERTA</td><td>11.17</td><td>11.90</td><td>17.72</td><td>18.14</td><td>16.47</td><td>24.02</td><td>16.57</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>11.91</td><td>13.99</td><td>17.78</td><td>18.58</td><td>17.50</td><td>24.34</td><td>17.35</td></tr><tr><td>CODEBERT (RTD)</td><td>11.42</td><td>13.27</td><td>17.53</td><td>18.29</td><td>17.35</td><td>24.10</td><td>17.00</td></tr><tr><td>CODEBERT (MLM)</td><td>11.57</td><td>14.41</td><td>17.78</td><td>18.77</td><td>17.38</td><td>24.85</td><td>17.46</td></tr><tr><td>CODEBERT (RTD+MLM)</td><td>12.16</td><td>14.90</td><td>18.07</td><td>19.06</td><td>17.65</td><td>25.16</td><td>17.83</td></tr></table>
222
+
223
+ language could improve code-to-NL generation. Besides, results in the Table 4 show that CodeBERT pre-trained with RTD and MLM objectives brings a gain of 1.3 BLEU score over RoBERTa overall and achieve the state-of-the-art performance $^8$ .
224
+
225
+ # 4.4 Generalization to Programming Languages NOT in Pre-training
226
+
227
+ We would like to evaluate CodeBERT on the programming language which is never seen in the pretraining step. To this end, we study the task of generating a natural language summary of a C# code snippet. We conduct experiments on the dataset of CodeNN (Iyer et al., 2016)<sup>9</sup>, which consists of 66,015 pairs of questions and answers automatically collected from StackOverflow. This dataset is challenging since the scale of dataset is orders of magnitude smaller than CodeSearchNet Corpus. We evaluate models using smoothed BLEU-4 score and use the same evaluation scripts as Iyer et al. (2016).
228
+
229
+ Table 4: Results on Code-to-Documentation generation, evaluated with smoothed BLEU-4 score.
230
+
231
+ <table><tr><td>MODEL</td><td>BLEU</td></tr><tr><td>MOSES (KOEHN ET AL., 2007)</td><td>11.57</td></tr><tr><td>IR</td><td>13.66</td></tr><tr><td>SUM-NN (RUSH ET AL., 2015)</td><td>19.31</td></tr><tr><td>2-LAYER BILSTM</td><td>19.78</td></tr><tr><td>TRANSFORMER (VASWANI ET AL., 2017)</td><td>19.68</td></tr><tr><td>TREELSTM (TAI ET AL., 2015)</td><td>20.11</td></tr><tr><td>CODENN (IYER ET AL., 2016)</td><td>20.53</td></tr><tr><td>CODE2SEQ (ALON ET AL., 2019)</td><td>23.04</td></tr><tr><td>ROBERTA</td><td>19.81</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>20.65</td></tr><tr><td>CODEBERT (RTD)</td><td>22.14</td></tr><tr><td>CODEBERT (MLM)</td><td>22.32</td></tr><tr><td>CODEBERT (MLM+RTD)</td><td>22.36</td></tr></table>
232
+
233
+ Table 5: Code-to-NL generation on C# language.
234
+
235
+ Model Comparisons Table 5 shows that our model with MLM and RTD pre-training objectives achieves 22.36 BLEU score and improves by 2.55 points over RoBERTa, which illustrates CodeBERT
236
+
237
+ could generalize better to other programming language which is never seen in the pre-training step. However, our model achieve slightly lower results than code2seq (Alon et al., 2019). The main reason could be that code2seq makes use of compositional paths in its abstract syntax tree (AST) while CodeBERT only takes original code as the input. We have trained a version of CodeBERT by traversing the tree structure of AST following a certain order, but applying that model does not bring improvements on generation tasks. This shows a potential direction to improve CodeBERT by incorporating AST.
238
+
239
+ # 5 Conclusion
240
+
241
+ In this paper, we present CodeBERT, which to the best of our knowledge is the first large bimodal pre-trained model for natural language and programming language. We train CodeBERT on both bimodal and unimodal data, and show that finetuning CodeBERT achieves state-of-the-art performance on downstream tasks including natural language code search and code-to-documentation generation. To further investigate the knowledge embodied in pre-trained models, we formulate the task of NL-PL probing and create a dataset for probing. We regard the probing task as a cloze-style answer selection problem, and curate distractors for both NL and PL parts. Results show that, with model parameters fixed, CodeBERT performs better than RoBERTa and a continuously trained model using codes only.
242
+
243
+ There are many potential directions for further research on this field. First, one could learn better generators with bimodal evidence or more complicated neural architecture to improve the replaced token detection objective. Second, the loss functions of CodeBERT mainly target on NL-PL understanding tasks. Although CodeBERT achieves strong BLEU scores on code-to-documentation generation, the CodeBERT itself could be further improved by generation-related learning objectives.
244
+
245
+ How to successfully incorporate AST into the pretraining step is also an attractive direction. Third, we plan to apply CodeBERT to more NL-PL related tasks, and extend it to more programming languages. Flexible and powerful domain/language adaptation methods are necessary to generalize well.
246
+
247
+ # Acknowledgments
248
+
249
+ Xiaocheng Feng is the corresponding author of this work. We thank the anonymous reviewers for their insightful comments. Zhangyin Feng, Xiaocheng Feng, Bing Qin and Ting Liu are supported by the National Key R&D Program of China via grant 2018YFB1005103 and National Natural Science Foundation of China (NSFC) via grant 61632011 and 61772156.
250
+
251
+ # References
252
+
253
+ Uri Alon, Shaked Brody, Omer Levy, and Eran Yahav. 2019. code2seq: Generating sequences from structured representations of code. International Conference on Learning Representations.
254
+ Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. 2014. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078.
255
+ Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. 2020. {ELECTRA}: Pretraining text encoders as discriminators rather than generators. In International Conference on Learning Representations.
256
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805.
257
+ Xiaodong Gu, Hongyu Zhang, and Sunghun Kim. 2018. Deep code search. In 2018 IEEE/ACM 40th International Conference on Software Engineering (ICSE), pages 933-944. IEEE.
258
+ Hamel Husain, Ho-Hsiang Wu, Tiferet Gazit, Miltiadis Allamanis, and Marc Brockschmidt. 2019. Code-searchnet challenge: Evaluating the state of semantic code search. arXiv preprint arXiv:1909.09436.
259
+ Srinivasan Iyer, Ioannis Konstas, Alvin Cheung, and Luke Zettlemoyer. 2016. Summarizing source code using a neural attention model. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2073-2083.
260
+
261
+ Dan Jurafsky. 2000. Speech & language processing. Pearson Education India.
262
+ Aditya Kanade, Petros Maniatis, Gogul Balakrishnan, and Kensen Shi. 2019. Pre-trained contextual embedding of source code. arXiv preprint arXiv:2001.00059.
263
+ Yoon Kim. 2014. Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882.
264
+ Philipp Koehn, Hieu Hoang, Alexandra Birch, Chris Callison-Burch, Marcello Federico, Nicola Bertoldi, Brooke Cowan, Wade Shen, Christine Moran, Richard Zens, et al. 2007. Moses: Open source toolkit for statistical machine translation. In Proceedings of the 45th annual meeting of the association for computational linguistics companion volume proceedings of the demo and poster sessions, pages 177-180.
265
+ Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and Luke Zettlemoyer. 2019. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv preprint arXiv:1910.13461.
266
+ Chin-Yew Lin and Franz Josef Och. 2004. Orange: a method for evaluating automatic evaluation metrics for machine translation. In Proceedings of the 20th international conference on Computational Linguistics, page 501. Association for Computational Linguistics.
267
+ Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.
268
+ Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. 2019. Vilbert: Pretraining task-agnostic visi-olinguistic representations for vision-and-language tasks. In Advances in Neural Information Processing Systems, pages 13-23.
269
+ Bhaskar Mitra, Nick Craswell, et al. 2018. An introduction to neural information retrieval. Foundations and Trends in Information Retrieval, 13(1):1-126.
270
+ Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word representations. arXiv preprint arXiv:1802.05365.
271
+ Fabio Petroni, Tim Roktaschel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, Alexander H Miller, and Sebastian Riedel. 2019. Language models as knowledge bases? arXiv preprint arXiv:1909.01066.
272
+ Telmo Pires, Eva Schlinger, and Dan Garrette. 2019. How multilingual is multilingual bert? arXiv preprint arXiv:1906.01502.
273
+
274
+ Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. 2018. Improving language understanding by generative pre-training. URL https://s3-us-west-2. amazonaws. com/openai-assetss/researchcovers/languageunsupervised/language understanding paper.pdf.
275
+
276
+ Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2019. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683.
277
+
278
+ Alexander M Rush, Sumit Chopra, and Jason Weston. 2015. A neural attention model for abstractive sentence summarization. arXiv preprint arXiv:1509.00685.
279
+
280
+ Chen Sun, Austin Myers, Carl Vondrick, Kevin Murphy, and Cordelia Schmid. 2019. Videobert: A joint model for video and language representation learning. arXiv preprint arXiv:1904.01766.
281
+
282
+ Ilya Sutskever, Oriol Vinyals, and Quoc V Le. 2014. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pages 3104-3112.
283
+
284
+ Kai Sheng Tai, Richard Socher, and Christopher D Manning. 2015. Improved semantic representations from tree-structured long short-term memory networks. arXiv preprint arXiv:1503.00075.
285
+
286
+ Alon Talmor, Yanai Elazar, Yoav Goldberg, and Jonathan Berant. 2019. olmpics-on what language model pre-training captures. arXiv preprint arXiv:1912.13283.
287
+
288
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in neural information processing systems, pages 5998-6008.
289
+
290
+ Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. 2016. Google's neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144.
291
+
292
+ Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. 2019. Xlnet: Generalized autoregressive pretraining for language understanding. arXiv preprint arXiv:1906.08237.
293
+
294
+ # A Data Statistic
295
+
296
+ Data statistics of the training/validation/testing data splits for six programming languages are given in Table 6.
297
+
298
+ <table><tr><td>CODE SEARCH</td><td>TRAINING</td><td>DEV</td><td>TESTING</td></tr><tr><td>GO</td><td>635,635</td><td>28,483</td><td>14,291</td></tr><tr><td>JAVA</td><td>908,886</td><td>30,655</td><td>26,909</td></tr><tr><td>JAVAscript</td><td>247,773</td><td>16,505</td><td>6,483</td></tr><tr><td>PHP</td><td>1,047,406</td><td>52,029</td><td>28,391</td></tr><tr><td>PYTHON</td><td>824,342</td><td>46,213</td><td>22,176</td></tr><tr><td>RUBY</td><td>97,580</td><td>4,417</td><td>2,279</td></tr></table>
299
+
300
+ Table 6: Data statistics about the CodeSearchNet Corpus for natural language code search.
301
+
302
+ # B Train Details
303
+
304
+ # B.1 Pre-training
305
+
306
+ We train CodeBERT on one NVIDIA DGX-2 machine using FP16. It combines 16 interconnected NVIDIA Tesla V100 with 32GB memory. We use the following set of hyper-parameters to train models: batchsize is 2,048 and learning rate is 5e-4. We use Adam to update the parameters and set the number of warmup steps as 10K. We set the max length as 512 and the max training step is 100K. Training 1,000 batches of data costs 600 minutes with MLM objective, 120 minutes with RTD objective.
307
+
308
+ # B.2 CodeSearch
309
+
310
+ In the fine-turning step, we set the learning rate as 1e-5, the batch size as 64, the max sequence length as 200 and the max fine-tuning epoch as 8. As the same with pre-training, We use Adam to update the parameters. We choose the model performed best on the development set, and use that to evaluate on the test set.
311
+
312
+ # B.3 Code Summarization on Six Programming Languages
313
+
314
+ We use Transformer with 6 layers, 768 dimensional hidden states and 12 attention heads as our decoder in all settings. We set the max length of input and inference as 256 and 64, respectively. We use the Adam optimizer to update model parameters. The learning rate and the batch size are 5e-5 and 64, respectively. We tune hyperparameters and perform early stopping on the development set.
315
+
316
+ # B.4 Code Summarization on C#
317
+
318
+ Since state-of-the-art methods use RNN as their decoder, we choose a 2-layer GRU with an attention mechanism as our decoder for a comparison. We fine-tune models using a grid search with the following set of hyper-parameters: batchsize is in \{32, 64\} and learning rate is in \{2e-5, 5e-5\}. We report
319
+
320
+ the number when models achieve best performance on the development set.
321
+
322
+ # C Learning Curve of CodeSearch
323
+
324
+ From Figure 4, we can see that CodeBERT performs better at the early stage, which reflects that CodeBERT provides good initialization for learning downstream tasks.
325
+
326
+ ![](images/db6357b1d8c49497159e567595a575c4f04bc6f76a6f358063976b8a202bf0e3.jpg)
327
+ Figure 4: Learning curve of different pre-trained models in the fine-tuning step. We show results on Python and Java.
328
+
329
+ ![](images/556ef6f6bb3c91bfb2d76dac20414ec4366486c6b2cb0ee0cbd706798c5ef43f.jpg)
330
+
331
+ # D Late Fusion
332
+
333
+ In section §4.1, we show that CodeBERT performs well in the setting where natural languages and codes have early interactions. Here, we investigate whether CodeBERT is good at working as a unified encoder. We apply CodeBERT for natural language code search in a later fusion setting, where CodeBERT first encodes NL and PL separately, and then calculates the similarity by dot-product. In this way, code search is equivalent to find the nearest codes in the shared vector space. This scenario also facilitates the use of CodeBERT in an online system, where the representations of codes are calculated in advance. In the runtime, a system only needs to compute the representation of NL and vector-based dot-product.
334
+
335
+ We fine-tune CodeBERT with the following objective, which maximizes the dot-product of the ground truth while minimizing the dot-product of distractors.
336
+
337
+ $$
338
+ - \frac {1}{N} \sum_ {i} \log \left(\frac {\exp \left(E n c \left(c _ {i}\right) ^ {\intercal} E n c \left(w _ {i}\right)\right)}{\sum_ {j} \exp \left(E n c \left(c _ {j}\right) ^ {\intercal} E n c \left(w _ {i}\right)\right)}\right) \tag {15}
339
+ $$
340
+
341
+ Results are given in Table 7. We just do this setting on two languages with a relatively small amount of data.
342
+
343
+ We can see that CodeBERT performs better than RoBERTa and the model pre-trained with codes
344
+
345
+ <table><tr><td>MODEL</td><td>RUBY</td><td>GO</td></tr><tr><td>ROBERTA</td><td>0.0043</td><td>0.0030</td></tr><tr><td>PRE-TRAIN W/ CODE ONLY</td><td>0.1648</td><td>0.4179</td></tr><tr><td>CODEBERT</td><td>0.6870</td><td>0.8372</td></tr></table>
346
+
347
+ Table 7: Results on natural language code search by late fusion.
348
+
349
+ only. And late fusion performs comparable with the standard way. What's more, late fusion is more efficient and this setting could be used in an online system.
350
+
351
+ # E Case Study
352
+
353
+ To qualitatively analyze the effectiveness of CodeBERT, we give some cases for code search and code documentation generation tasks.
354
+
355
+ Considering the limited space, we only give the top2 results of the query for python programming language. As show in Figure 5, search results are very relevant with query.
356
+
357
+ Figure 6 and Figure 7 show the outputs with different models for the code documentation generation task. As we can see, CodeBERT performs better than all baselines.
358
+
359
+ Query
360
+ ```txt
361
+ create file and write something
362
+ ```
363
+
364
+ Search Results (top2)
365
+ ```python
366
+ https://github.com/darknessomi/musicbox/blob/master/NEMbox/util.py#L37-L40
367
+ def create_file(path, default $=$ "\\n"): if not os.path.exists(path): with open(path, "w") as f: f.write(default)
368
+ ```
369
+
370
+ ```txt
371
+ https://github.com/datakortet/yamldirs/blob/master/yamldirs/filemaker.py#L114-L118
372
+ ```
373
+
374
+ ```python
375
+ def make_file(self, filename, content):
376
+ '''Create a new file with name``filename``and content``content``.
377
+ '''with open(filename,'w') as fp:
378
+ fp.write(content)
379
+ ```
380
+
381
+ Figure 5: Python CodeSearch example. The results are searched from 1,156,085 python code data. We only give the top2 results because space is limited.
382
+
383
+ Gold: Add a write error result
384
+ ```java
385
+ public void addWriteErrorResult(final BulkWriteError writeError, final IndexMap indexMap) {
386
+ notNull("writeError", writeError);
387
+ mergeWriteErrors(asList(writeError), indexMap);
388
+ }
389
+ ```
390
+
391
+ ```txt
392
+ CodeBERT: Add a write error result.
393
+ PRE-TRAIN W/ CODEONLY : Merges the given write error.
394
+ Roberta: Add a write operation to the map.
395
+ Transformer: Adds an error to the write map.
396
+ ```
397
+
398
+ ```txt
399
+ RNN: Add an error map.
400
+ ```
401
+
402
+ Figure 6: Java code documentation generation output example.
403
+
404
+ ```python
405
+ def create_or_update(self, list_id, subscriber_hash, data):
406
+ subscriber_hash = check subscribed_hash(subscriber_hash)
407
+ self.list_id = list_id
408
+ self subscribers_hash = subscriber_hash
409
+ if 'email_address' not in data:
410
+ raise ValueError('The list member must have an email_address')
411
+ check_email(data['email_address'])
412
+ if 'status_if_new' not in data:
413
+ raise ValueError('The list member must have a status_if_new')
414
+ if data['status_if_new'] not in [' subscribed', 'un subscribed', 'cleaned', 'pending', 'transactional']:
415
+ raise ValueError('The list member status_if_new must be one of " subscribed", "un subscribed", "cleaned", "pending", or "transactional"))
416
+ return self._mc_client._put(url= self._build_path(list_id, 'members', subscriber_hash), data=data)
417
+ ```
418
+
419
+ Gold: Add or update a list member.
420
+ ```txt
421
+ CodeBERT: Create or update a list member.
422
+ PRE-TRAIN W/ CODEONLY: Create or update a subscriber.
423
+ Roberta: Create or update an existing record.
424
+ Transformer: Create or update a subscription.
425
+ RNN: Creates or updates an email address.
426
+ ```
427
+
428
+ Figure 7: Python code documentation generation output example.
2002.08xxx/2002.08155/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f48d70b94f8fc412d43088c9729e70daa007ddcd2005af5234d7e31edf6db6c5
3
+ size 584731
2002.08xxx/2002.08155/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08165/a4f0c2ad-a173-4b99-8972-7a973b7b598f_content_list.json ADDED
@@ -0,0 +1,1793 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Using Hindsight to Anchor Past Knowledge in Continual Learning",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 163,
8
+ 119,
9
+ 833,
10
+ 142
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Arslan Chaudhry $^{1,*}$ , Albert Gordo $^{2}$ , Puneet K. Dokania $^{1}$ , Philip Torr $^{1}$ , David Lopez-Paz $^{2}$",
17
+ "bbox": [
18
+ 127,
19
+ 157,
20
+ 872,
21
+ 176
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "<sup>1</sup>University of Oxford, <sup>2</sup>Facebook AI",
28
+ "bbox": [
29
+ 372,
30
+ 176,
31
+ 620,
32
+ 191
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 250,
42
+ 273,
43
+ 313,
44
+ 286
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "In continual learning, the learner faces a stream of data whose distribution changes over time. Modern neural networks are known to suffer under this setting, as they quickly forget previously acquired knowledge. To address such catastrophic forgetting, many continual learning methods implement different types of experience replay, re-learning on past data stored in a small buffer known as episodic memory. In this work, we complement experience replay with a new objective that we call \"anchoring\", where the learner uses bilevel optimization to update its knowledge on the current task, while keeping intact predictions on some anchor points of past tasks. These anchor points are learned using gradient-based optimization to maximize forgetting, which is approximated by fine-tuning the currently trained model on the episodic memory of past tasks. Experiments on several supervised learning benchmarks for continual learning demonstrate that our approach improves the standard experience replay in terms of both accuracy and forgetting metrics and for various sizes of episodic memory.",
51
+ "bbox": [
52
+ 101,
53
+ 297,
54
+ 460,
55
+ 536
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 212,
65
+ 558,
66
+ 349,
67
+ 571
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "We study the problem of continual learning, where a machine learning model experiences a sequence of tasks. Each of these tasks is presented as a stream of input-output pairs, where each pair is drawn identically and independently (iid) from the corresponding task probability distribution. Since the length of the learning experience is not specified a priori, the learner can only assume a single pass over the data and, due to space constraints, store nothing but a few examples in a small episodic memory. At all times during the lifetime of the model, predictions on examples from any task may be requested. Addressing continual learning is an important research problem, since it would enable the community to move past the assumption of \"identically and independently distributed data\", and allow a better deployment of machine learning in-the-wild. However, continual learning presents one major challenge, catastrophic forgetting (McCloskey and Cohen 1989). That is, as the learner experiences new tasks, it quickly forgets previously acquired knowledge. This is a hindrance especially for state-of-the-art deep learn",
74
+ "bbox": [
75
+ 86,
76
+ 578,
77
+ 477,
78
+ 840
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "ing models, where all parameters are updated after observing each example.",
85
+ "bbox": [
86
+ 519,
87
+ 273,
88
+ 910,
89
+ 300
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Continual learning has received increasing attention from the scientific community during the last decade. The state of the art algorithms for continual learning fall into three categories. First, regularization-based approaches reduce forgetting by restricting the updates in model parameters that were important for previous tasks (Kirkpatrick et al. 2016; Rebuffi, Kolesnikov, and Lampert 2017; Aljundi et al. 2018; Chaudhry et al. 2018; Nguyen et al. 2018). However, when the number of tasks are large, the regularization of past tasks becomes obsolete, leading to the representation drift (Titsias et al. 2019). Second, modular approaches (Rusu et al. 2016; Lee et al. 2017) add new modules to the learner as new tasks are learned. While modular architectures overcome forgetting by design, the memory complexity of these approaches scales with the number of tasks. Third, the memory-based methods (Lopez-Paz and Ranzato 2017; Hayes, Cahill, and Kanan 2018; Isele and Cosgun 2018; Riemer et al. 2019; Chaudhry et al. 2019a) store a few examples from past tasks in an \"episodic memory\", to be revisited when training for a new task. Contrary to modular approaches, memory-based methods add a very small memory overhead for each new task. Memory-based methods are the reigning state-of-the-art, but their performance remains a far cry from a simple oracle accessing all the data at once, hence turning the continual learning experience back into a normal supervised learning task. Despite intense research efforts, such gap in performance renders the problem of continual learning an open research question.",
96
+ "bbox": [
97
+ 519,
98
+ 301,
99
+ 911,
100
+ 688
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Contribution We propose Hindsight Anchor Learning (HAL), a continual learning approach to improve the performance of memory-based continual learning algorithms. HAL leverages bilevel optimization to regularize the training objective with one representational point per class per task, called anchors. These anchors are constructed via gradient ascent in the image space, by maximizing one approximation to the forgetting loss for the current task throughout the entire continual learning experience. We estimate the amount of forgetting that the learner would suffer on these anchors if it were to be trained on future tasks in hindsight: that is, by measuring forgetting on a temporary predictor that has been fine-tuned on the episodic memory of past tasks.",
107
+ "bbox": [
108
+ 519,
109
+ 709,
110
+ 911,
111
+ 888
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "aside_text",
117
+ "text": "arXiv:2002.08165v2 [cs.LG] 2 Mar 2021",
118
+ "bbox": [
119
+ 22,
120
+ 268,
121
+ 57,
122
+ 700
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "page_footnote",
128
+ "text": "*Correspondence to arslan.chaudhry@eng.ox.ac.uk. Copyright © 2021, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.",
129
+ "bbox": [
130
+ 84,
131
+ 851,
132
+ 478,
133
+ 888
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Anchors learned in such a way lie close to the classifier's decision boundary, as visualized in Figure 2. Since points near the decision boundary are the easiest to forget when updating the learner on future tasks, keeping prediction invariant on such anchors preserves the performance of previous tasks effectively. In sum, the overall parameter update of HAL uses nested optimization to minimize the loss of the current mini-batch, while keeping the predictions of all anchors invariant.",
140
+ "bbox": [
141
+ 81,
142
+ 68,
143
+ 480,
144
+ 193
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Results We compare HAL to EWC (Kirkpatrick et al. 2016), ICARL (Rebuffi, Kolesnikov, and Lampert 2017), VCL (Nguyen et al. 2018), AGEM (Chaudhry et al. 2019a), experience replay (Hayes, Cahill, and Kanan 2018; Riemer et al. 2019), MER (Riemer et al. 2019), and MIR (Aljundi et al. 2019a) across four commonly used benchmarks in supervised continual learning (MNIST permutations, MNIST rotations, split CIFAR-100, and split miniImageNet). In these experiments, HAL achieves state-of-the-art performance, improving accuracy by up to $7.5\\%$ and reducing forgetting by almost $23\\%$ over the experience replay baseline. We show that these results hold for various sizes of episodic memory (between 1 and 5 examples per class per task).",
151
+ "bbox": [
152
+ 81,
153
+ 210,
154
+ 478,
155
+ 391
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "We now begin our exposition by reviewing the continual learning setup. The rest of the manuscript then presents our new algorithm HAL (Section 3), showcases its empirical performance (Section 4), surveys the related literature (Section 5), and offers some concluding remarks (Section 6).",
162
+ "bbox": [
163
+ 81,
164
+ 391,
165
+ 478,
166
+ 460
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "2 Continual learning setup",
173
+ "text_level": 1,
174
+ "bbox": [
175
+ 158,
176
+ 472,
177
+ 403,
178
+ 489
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "In continual learning, a learner experiences a stream of data triplets $(x_{i},y_{i},t_{i})$ containing an input $x_{i}$ , a target $y_{i}$ , and a task identifier $t_i\\in \\mathcal{T} = \\{1,\\ldots ,T\\}$ . Each input-target pair $(x_{i},y_{i})\\in \\mathcal{X}\\times \\mathcal{Y}_{t_{i}}$ is an identical and independently distributed example drawn from some unknown distribution $P_{t_i}(X,Y)$ , representing the $t_i$ -th learning task. We assume that the tasks are experienced in order ( $t_i\\leq t_j$ for all $i\\leq j$ ), and that the total number of tasks $T$ is not known a priori. Under this setup, our goal is to estimate a predictor $f_{\\theta} = (w\\circ \\phi):\\mathcal{X}\\times \\mathcal{T}\\to \\mathcal{Y}$ , parameterized by $\\theta \\in \\mathbb{R}^P$ , and composed of a feature extractor $\\phi :\\mathcal{X}\\rightarrow \\mathcal{H}$ and a classifier $w:\\mathcal{H}\\to \\mathcal{V}$ , that minimizes the multi-task error",
185
+ "bbox": [
186
+ 81,
187
+ 491,
188
+ 480,
189
+ 659
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "equation",
195
+ "text": "\n$$\n\\frac {1}{T} \\sum_ {t = 1} ^ {T} \\mathbb {E} _ {(x, y) \\sim P _ {t}} [ \\ell (f (x, t), y) ], \\tag {1}\n$$\n",
196
+ "text_format": "latex",
197
+ "bbox": [
198
+ 171,
199
+ 662,
200
+ 478,
201
+ 704
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "where $\\mathcal{Y} = \\cup_{t\\in \\mathcal{T}}\\mathcal{Y}_t$ , and $\\ell :\\mathcal{Y}\\times \\mathcal{Y}\\to \\mathbb{R}$ is a loss function.",
208
+ "bbox": [
209
+ 83,
210
+ 707,
211
+ 473,
212
+ 722
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "Inspired by prior literature in continual learning, (Lopez-Paz and Ranzato 2017; Hayes, Cahill, and Kanan 2018; Riemer et al. 2019; Chaudhry et al. 2019a), we consider streams of data that are experienced only once. Therefore, the learner cannot revisit any but a small number of data triplets chosen to be stored in a small episodic memory $\\mathcal{M}$ . More specifically, we consider tiny \"ring\" episodic memories, which contain the last $m$ observed examples per class for each of the experienced tasks, where $m \\in \\{1,3,5\\}$ . That is, considering as variables the number of experienced tasks $t$ and examples $n$ , we study continual learning algorithms with a $O(t)$ memory footprint.",
219
+ "bbox": [
220
+ 81,
221
+ 722,
222
+ 480,
223
+ 888
224
+ ],
225
+ "page_idx": 1
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "Following Lopez-Paz and Ranzato (2017) and Chaudhry et al. (2018), we monitor two statistics to evaluate the quality of continual learning algorithms: final average accuracy, and final maximum forgetting. First, the final average accuracy of a predictor is defined as",
230
+ "bbox": [
231
+ 514,
232
+ 68,
233
+ 911,
234
+ 138
235
+ ],
236
+ "page_idx": 1
237
+ },
238
+ {
239
+ "type": "equation",
240
+ "text": "\n$$\n\\text {A c c u r a c y} = \\frac {1}{T} \\sum_ {j = 1} ^ {T} a _ {T, j}, \\tag {2}\n$$\n",
241
+ "text_format": "latex",
242
+ "bbox": [
243
+ 630,
244
+ 148,
245
+ 911,
246
+ 191
247
+ ],
248
+ "page_idx": 1
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "where $a_{i,j}$ denotes the test accuracy on task $j$ after the model has finished experiencing task $i$ . That is, the final average accuracy measures the test performance of the model at every task after the continual learning experience has finished. Second, the final maximum forgetting is defined as",
253
+ "bbox": [
254
+ 514,
255
+ 199,
256
+ 913,
257
+ 270
258
+ ],
259
+ "page_idx": 1
260
+ },
261
+ {
262
+ "type": "equation",
263
+ "text": "\n$$\n\\text {F o r g e t t i n g} = \\frac {1}{T - 1} \\sum_ {j = 1} ^ {T - 1} \\max _ {l \\in \\{1, \\dots , T - 1 \\}} \\left(a _ {l, j} - a _ {T, j}\\right), \\tag {3}\n$$\n",
264
+ "text_format": "latex",
265
+ "bbox": [
266
+ 535,
267
+ 280,
268
+ 911,
269
+ 321
270
+ ],
271
+ "page_idx": 1
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "that is, the decrease in performance for each of the tasks between their peak accuracy and their accuracy after the continual learning experience has finished.",
276
+ "bbox": [
277
+ 514,
278
+ 330,
279
+ 911,
280
+ 373
281
+ ],
282
+ "page_idx": 1
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "Finally, following Chaudhry et al. (2019a), we use the first $k < T$ tasks to cross validate the hyper-parameters of each of the considered continual learning algorithms. These first $k$ tasks are not considered when computing the final average accuracy and maximum forgetting metrics.",
287
+ "bbox": [
288
+ 516,
289
+ 375,
290
+ 913,
291
+ 445
292
+ ],
293
+ "page_idx": 1
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "3 Hindsight Anchor Learning (HAL)",
298
+ "text_level": 1,
299
+ "bbox": [
300
+ 549,
301
+ 460,
302
+ 879,
303
+ 477
304
+ ],
305
+ "page_idx": 1
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "The current state of the art algorithms for continual learning are based on experience replay (Hayes, Cahill, and Kanan 2018; Riemer et al. 2019; Chaudhry et al. 2019b). These methods update the model $f_{\\theta}$ while storing a small amount of past observed triplets in an episodic memory $\\mathcal{M} = \\{(x', y', t')\\}$ . For a new minibatch of observations $\\mathcal{B} := \\{(x, y, t)\\}$ from task $t$ , the learner samples a minibatch $\\mathcal{B}_{\\mathcal{M}}$ from $\\mathcal{M}$ at random, and employ the rule $\\theta \\gets \\theta - \\alpha \\cdot \\nabla_{\\theta} \\ell(\\mathcal{B} \\cup \\mathcal{B}_{\\mathcal{M}})$ to update its parameters, where",
310
+ "bbox": [
311
+ 514,
312
+ 481,
313
+ 913,
314
+ 609
315
+ ],
316
+ "page_idx": 1
317
+ },
318
+ {
319
+ "type": "equation",
320
+ "text": "\n$$\n\\ell (\\mathcal {A}) = \\frac {1}{| \\mathcal {A} |} \\sum_ {(x, y, t) \\in \\mathcal {A}} \\ell (f _ {\\theta} (x, t), y) \\tag {4}\n$$\n",
321
+ "text_format": "latex",
322
+ "bbox": [
323
+ 596,
324
+ 617,
325
+ 911,
326
+ 655
327
+ ],
328
+ "page_idx": 1
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "denotes the average loss across a collection of triplets $\\mathcal{A} = \\mathcal{B} \\cup \\mathcal{B}_{\\mathcal{M}}$ . In general, $\\mathcal{B}_{\\mathcal{M}}$ is constructed to have the same size as $\\mathcal{B}$ , but it can be smaller if the episodic memory $\\mathcal{M}$ does not yet contain enough samples.",
333
+ "bbox": [
334
+ 514,
335
+ 664,
336
+ 913,
337
+ 719
338
+ ],
339
+ "page_idx": 1
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "The episodic memory $\\mathcal{M}$ reminds the predictor about how to perform past tasks using only a small amount of data. As such, the behaviour of the predictor on past tasks outside the data stored in $\\mathcal{M}$ is not guaranteed. Moreover, since $\\mathcal{M}$ is usually very small, the performance of the predictor becomes sensitive to the choice of samples stored in the episodic memory. Because of this reason, we propose to further fix the behaviour of the predictor at a collection of carefully constructed anchor points $e_{t'}$ , one per class per past task $t'$ , at each parameter update.",
344
+ "bbox": [
345
+ 514,
346
+ 720,
347
+ 913,
348
+ 859
349
+ ],
350
+ "page_idx": 1
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "Let us assume that the anchor points $e_{t'}$ are given—we will see later how to construct them in practice. To constrain",
355
+ "bbox": [
356
+ 516,
357
+ 859,
358
+ 911,
359
+ 888
360
+ ],
361
+ "page_idx": 1
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "the change of the predictor at these anchor points, we propose a two-step parameter update rule:",
366
+ "bbox": [
367
+ 81,
368
+ 68,
369
+ 478,
370
+ 97
371
+ ],
372
+ "page_idx": 2
373
+ },
374
+ {
375
+ "type": "equation",
376
+ "text": "\n$$\n\\begin{array}{l} \\tilde {\\theta} \\leftarrow \\theta - \\alpha \\nabla_ {\\theta} \\ell (\\mathcal {B} \\cup \\mathcal {B} _ {\\mathcal {M}}), \\\\ \\theta \\leftarrow \\theta - \\alpha \\nabla_ {\\theta} \\left(\\ell \\left(\\mathcal {B} \\cup \\mathcal {B} _ {\\mathcal {M}}\\right) + \\lambda \\sum_ {t ^ {\\prime} < t} \\left(f _ {\\theta} \\left(e _ {t ^ {\\prime}}, t ^ {\\prime}\\right) - f _ {\\tilde {\\theta}} \\left(e _ {t ^ {\\prime}}, t ^ {\\prime}\\right)\\right) ^ {2}\\right). \\tag {5} \\\\ \\end{array}\n$$\n",
377
+ "text_format": "latex",
378
+ "bbox": [
379
+ 86,
380
+ 104,
381
+ 480,
382
+ 171
383
+ ],
384
+ "page_idx": 2
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "The first step computes a temporary parameter vector $\\tilde{\\theta}$ by minimizing the loss at a minibatch from the current task $t$ , and the episodic memory of past tasks (this is the usual experience replay parameter update). The second step employs a nested optimization to perform the actual update of the parameter $\\theta$ , which trades-off the minimization of $(a)$ the loss value at the current minibatch and the episodic memory, as well as $(b)$ changes in predictions at the anchor points for all past tasks. The proposed rule not only updates the predictor conservatively, thereby reducing forgetting, but also, as shown analytically in Appendix A, improves the forward transfer by maximizing the inner product between the gradients on $\\mathcal{B} \\cup \\mathcal{B}_{\\mathcal{M}}$ and anchor points. In this respect, it bears similarity to gradient-based meta-learning approaches (Finn, Abbeel, and Levine 2017; Nichol and Schulman 2018; Riemer et al. 2019).",
389
+ "bbox": [
390
+ 81,
391
+ 181,
392
+ 478,
393
+ 402
394
+ ],
395
+ "page_idx": 2
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "Next, let us discuss how to choose the anchor points, $e_t$ (one per class per task) as to preserve the performance of the current task throughout the entire learning experience. Ideally, the anchor points should attempt to minimize the forgetting on the current task as the learner is updated with future tasks. One could achieve this by letting $e_t$ to be an example from the task $t$ that would undergo maximum forgetting during the entire continual learning experience. Then, requiring the predictions to remain invariant at $e_t$ , by using Eq. 5, could effectively reduce forgetting on the current task. Mathematically, the desirable $e_t$ for the label $y_t$ is obtained by maximizing the following Forgetting loss:",
400
+ "bbox": [
401
+ 81,
402
+ 402,
403
+ 478,
404
+ 570
405
+ ],
406
+ "page_idx": 2
407
+ },
408
+ {
409
+ "type": "equation",
410
+ "text": "\n$$\n(e _ {t}, y _ {t}) \\leftarrow \\underset {(x, y) \\sim P _ {t}} {\\arg \\max } \\ell \\left(f _ {\\theta_ {T}} (x, t), y _ {t}\\right) - \\ell \\left(f _ {\\theta_ {t}} (x, t), y _ {t}\\right), \\tag {6}\n$$\n",
411
+ "text_format": "latex",
412
+ "bbox": [
413
+ 94,
414
+ 575,
415
+ 478,
416
+ 602
417
+ ],
418
+ "page_idx": 2
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "where $\\theta_{t}$ is the parameter vector obtained after training on task $t$ and $\\theta_{T}$ is the final parameter vector obtained after the entire learning experience. Thus, keeping the predictions intact on the pair $(e_t,y_t)$ above can effectively preserve the performance of task $t$ . However, the idealistic Eq. 6 requires access to $(a)$ the entire distribution $P_{t}$ to compute the maximization, and $(b)$ access to all future distributions $t^{\\prime} > t$ to compute the final parameter vector $\\theta_{T}$ . Both are unrealistic assumptions under the continual learning setup described in Section 2, as the former requires storing the entire dataset of task $t$ , and the latter needs access to future tasks.",
423
+ "bbox": [
424
+ 81,
425
+ 608,
426
+ 478,
427
+ 761
428
+ ],
429
+ "page_idx": 2
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "To circumvent $(a)$ , we can recast Eq. 6 as an optimization problem and learn the desired $e_t$ by initializing it at random and using $k$ gradient ascent updates for a given label $y_t$ in the image space $(\\mathcal{X} \\in \\mathbb{R}^D)$ . The proposed optimization objective is given by:",
434
+ "bbox": [
435
+ 81,
436
+ 761,
437
+ 478,
438
+ 830
439
+ ],
440
+ "page_idx": 2
441
+ },
442
+ {
443
+ "type": "equation",
444
+ "text": "\n$$\n\\max _ {e _ {t} \\in \\mathbb {R} ^ {D}} \\left(\\underbrace {\\ell \\left(f _ {\\theta_ {T}} \\left(e _ {t} , t\\right) , y _ {t}\\right) - \\ell \\left(f _ {\\theta_ {t}} \\left(e _ {t} , t\\right) , y _ {t}\\right)} _ {\\text {F o r g e t t i n g l o s s}} - \\gamma \\underbrace {\\left(\\phi \\left(e _ {t}\\right) - \\phi_ {t}\\right) ^ {2}} _ {\\text {M e a n e m b e d d i n g l o s s}}\\right), \\tag {7}\n$$\n",
445
+ "text_format": "latex",
446
+ "bbox": [
447
+ 83,
448
+ 837,
449
+ 478,
450
+ 888
451
+ ],
452
+ "page_idx": 2
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "where the regularizer, given by the mean embedding loss, constrains the search space by trying to push the anchor point embedding towards the mean data embedding. We recall that $\\phi$ denotes the feature extractor of the predictor, and $\\phi_t$ is the neural mean embedding (Smola et al. 2007) of all observed examples from task $t$ . Since the feature extractor is updated after experiencing each data point, the mean embedding $\\phi_t$ are computed as running averages. That is, after observing a minibatch $\\mathcal{B} = \\{(x,y,t)\\}$ of task $t$ , we update:",
457
+ "bbox": [
458
+ 514,
459
+ 68,
460
+ 913,
461
+ 195
462
+ ],
463
+ "page_idx": 2
464
+ },
465
+ {
466
+ "type": "equation",
467
+ "text": "\n$$\n\\phi_ {t} \\leftarrow \\beta \\cdot \\phi_ {t} + (1 - \\beta) \\frac {1}{| \\mathcal {B} |} \\sum_ {x \\in \\mathcal {B}} \\phi (x), \\tag {8}\n$$\n",
468
+ "text_format": "latex",
469
+ "bbox": [
470
+ 591,
471
+ 203,
472
+ 911,
473
+ 239
474
+ ],
475
+ "page_idx": 2
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "where $\\phi_t$ is initialized to zero at the beginning of the learning experience. In our experiments, we learn one $e_t$ per class for each task. We fix the $y_t$ to the corresponding class label, and discard $\\phi_t$ after training on task $t$ . Learning $e_t$ in this manner circumvents the requirement of storing the entire distribution $P_t$ for the current task $t$ .",
480
+ "bbox": [
481
+ 514,
482
+ 248,
483
+ 911,
484
+ 330
485
+ ],
486
+ "page_idx": 2
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "Still, Eq. 7 requires the parameter vector $\\theta_T$ , to be obtained in the distant future after all learning tasks have been experienced. To waive this impossible requirement, we propose to approximate the future by simulating the past. That is, instead of measuring the forgetting that would happen after the model is trained for future tasks, we measure the forgetting that happens when the model is fine-tuned for past tasks. In this way, we say that forgetting is estimated in hind-sight, using past experiences. More concretely, after training on task $t$ and obtaining the parameter vector $\\theta_t$ , we minimize the loss during one epoch on the episodic memory $\\mathcal{M}$ to obtain a temporary parameter vector $\\theta_{\\mathcal{M}}$ that approximates $\\theta_T$ , and update $e_t$ as:",
491
+ "bbox": [
492
+ 514,
493
+ 332,
494
+ 913,
495
+ 512
496
+ ],
497
+ "page_idx": 2
498
+ },
499
+ {
500
+ "type": "equation",
501
+ "text": "\n$$\n\\begin{array}{l} e _ {t} \\leftarrow e _ {t} + \\alpha \\nabla_ {e _ {t}} \\left(\\ell \\left(f _ {\\theta_ {\\mathcal {M}}} \\left(e _ {t}, t\\right), y _ {t}\\right) - \\ell \\left(f _ {\\theta_ {t}} \\left(e _ {t}, t\\right), y _ {t}\\right) \\right. \\\\ \\left. - \\gamma \\left(\\phi \\left(e _ {t}\\right) - \\phi_ {t}\\right) ^ {2}\\right). \\tag {9} \\\\ \\end{array}\n$$\n",
502
+ "text_format": "latex",
503
+ "bbox": [
504
+ 522,
505
+ 515,
506
+ 911,
507
+ 585
508
+ ],
509
+ "page_idx": 2
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "This completes the description of our proposed algorithm for continual learning, which combines experience replay with anchors learned in hindsight. We call our approach Hind-sight Anchor Learning (HAL) and summarize the entire learning process as follows:",
514
+ "bbox": [
515
+ 514,
516
+ 587,
517
+ 911,
518
+ 657
519
+ ],
520
+ "page_idx": 2
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "Hindsight Anchor Learning (HAL)",
525
+ "text_level": 1,
526
+ "bbox": [
527
+ 535,
528
+ 666,
529
+ 761,
530
+ 679
531
+ ],
532
+ "page_idx": 2
533
+ },
534
+ {
535
+ "type": "list",
536
+ "sub_type": "text",
537
+ "list_items": [
538
+ "- Initialize $\\theta \\sim P(\\theta)$ and $\\{e_t \\sim P(e)\\}_{t=1}^T$ from normal distributions $P(\\theta)$ and $P(e)$ , $\\mathcal{M} = \\{\\}$ .",
539
+ "- Initialize $\\mathcal{M} = \\{\\}$",
540
+ "- For each task $t = 1, \\dots, T$ :"
541
+ ],
542
+ "bbox": [
543
+ 535,
544
+ 681,
545
+ 893,
546
+ 744
547
+ ],
548
+ "page_idx": 2
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "- For each minibatch $\\mathcal{B}$ from task $t$ :",
553
+ "bbox": [
554
+ 552,
555
+ 748,
556
+ 771,
557
+ 761
558
+ ],
559
+ "page_idx": 2
560
+ },
561
+ {
562
+ "type": "list",
563
+ "sub_type": "text",
564
+ "list_items": [
565
+ "* Sample $\\mathcal{B}_{\\mathcal{M}}$ from $\\mathcal{M}$",
566
+ "* Update $\\theta$ using Eq. 5",
567
+ "* Update ${\\phi }_{t}$ using Eq. 8",
568
+ "* Update $\\mathcal{M}$ by adding $\\mathcal{B}$ in a FIFO ring buffer"
569
+ ],
570
+ "bbox": [
571
+ 560,
572
+ 763,
573
+ 846,
574
+ 819
575
+ ],
576
+ "page_idx": 2
577
+ },
578
+ {
579
+ "type": "list",
580
+ "sub_type": "text",
581
+ "list_items": [
582
+ "- Fine-tune on $\\mathcal{M}$ to obtain $\\theta_{\\mathcal{M}}$",
583
+ "Build $e_t$ using Eq. 9 k times",
584
+ "-Discard $\\phi_t$"
585
+ ],
586
+ "bbox": [
587
+ 552,
588
+ 821,
589
+ 746,
590
+ 864
591
+ ],
592
+ "page_idx": 2
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "- Return $\\theta$ .",
597
+ "bbox": [
598
+ 539,
599
+ 868,
600
+ 609,
601
+ 881
602
+ ],
603
+ "page_idx": 2
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "We contrast HAL with another idea, Maximally Interfered Retrieval (MIR) (Aljundi et al. 2019a) in that MIR selects a minibatch from an already populated replay buffer at each training step, whereas HAL writes to the replay buffer at the end of each task and samples randomly from the replay buffer. Furthermore, MIR selects the minibatch by measuring a one-step increase in loss incurred by the minibatch whereas HAL uses an approximate forgetting loss Eq. 9 that measures an increase over multiple training steps.",
608
+ "bbox": [
609
+ 86,
610
+ 68,
611
+ 477,
612
+ 193
613
+ ],
614
+ "page_idx": 3
615
+ },
616
+ {
617
+ "type": "text",
618
+ "text": "4 Experiments",
619
+ "text_level": 1,
620
+ "bbox": [
621
+ 212,
622
+ 208,
623
+ 349,
624
+ 223
625
+ ],
626
+ "page_idx": 3
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "We now report experiments on standard image classification benchmarks for continual learning.",
631
+ "bbox": [
632
+ 86,
633
+ 227,
634
+ 477,
635
+ 256
636
+ ],
637
+ "page_idx": 3
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "Datasets and tasks",
642
+ "text_level": 1,
643
+ "bbox": [
644
+ 86,
645
+ 268,
646
+ 227,
647
+ 282
648
+ ],
649
+ "page_idx": 3
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "We perform experiments on four supervised classification benchmarks for continual learning. Permuted MNIST is a variant of the MNIST dataset of handwritten digits (LeCun 1998) where each task applies a fixed random pixel permutation to the original dataset. This benchmark contains 23 tasks, each with 1000 samples from 10 different classes. Rotated MNIST is another variant of MNIST, where each task applies a fixed random image rotation (between 0 and 180 degrees) to the original dataset. This benchmark contains 23 tasks, each with 1000 samples from 10 different classes. Split CIFAR is a variant of the CIFAR-100 dataset (Krizhevsky and Hinton 2009; Zenke, Poole, and Ganguli 2017), where each task contains the data pertaining 5 random classes (without replacement) out of the total 100 classes. This benchmark contains 20 tasks, each with 250 samples per each of the 5 classes. Split miniImageNet is a variant of the ImageNet dataset (Russakovsky et al. 2015; Vinyals et al. 2016), containing a subset of images and classes from the original dataset. This benchmark contains 20 tasks, each with 250 samples per each of the 5 classes.",
654
+ "bbox": [
655
+ 86,
656
+ 287,
657
+ 477,
658
+ 577
659
+ ],
660
+ "page_idx": 3
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "For all datasets, the first 3 tasks are used for hyperparameter optimization (grids available in Appendix C). The learner can perform multiple epochs on these three initial tasks that are later discarded for evaluation.",
665
+ "bbox": [
666
+ 86,
667
+ 579,
668
+ 477,
669
+ 633
670
+ ],
671
+ "page_idx": 3
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "Baselines",
676
+ "text_level": 1,
677
+ "bbox": [
678
+ 86,
679
+ 647,
680
+ 156,
681
+ 661
682
+ ],
683
+ "page_idx": 3
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "We compare our proposed model HAL to the following baselines. Finetune is a single model trained on a stream of data, without any regularization or episodic memory. ICARL (Rebuffi, Kolesnikov, and Lampert 2017) uses nearest-mean-of-exemplar rule for classification and avoids catastrophic forgetting by regularizing over the feature representations of previous tasks using knowledge distillation loss (Hinton, Vinyals, and Dean 2014). EWC (Kirkpatrick et al. 2016) is a continual learning method that limits changes to parameters critical to past tasks, as measured by the Fisher information matrix. VCL (Nguyen et al. 2018) is a continual learning method that uses online variational inference for approximating the posterior distribution, which is then used to regularize the model. AGEM (Chaudhry et al. 2019a) is a continual learning method improving on (Lopez-Paz and Ranzato 2017), which uses an episodic memory of",
688
+ "bbox": [
689
+ 86,
690
+ 666,
691
+ 477,
692
+ 888
693
+ ],
694
+ "page_idx": 3
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "parameter gradients to limit forgetting. MER (Riemer et al. 2019) is a continual learning method that combines episodic memory with meta-learning to limit forgetting. ER-Ring (Chaudhry et al. 2019b) is a continual learning method that uses a ring buffer as episodic memory. MIR (Aljundi et al. 2019a) is a continual learning method based on experience replay that selects a minibatch from the episodic memory that incurs the maximum change in loss. Multitask is an oracle baseline that has access to all data to optimize Eq. 1, useful to estimate an upper bound on the obtainable accuracy (Eq. 2). Clone-and-finetune is an oracle baseline training one independent model per task, where the model for task $t'$ is initialized by cloning the parameters of the model for task $t' - 1$ .",
699
+ "bbox": [
700
+ 519,
701
+ 69,
702
+ 911,
703
+ 261
704
+ ],
705
+ "page_idx": 3
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "All baselines use the same neural network architecture: a perceptron with two hidden layers of 256 ReLU neurons in the MNIST experiments, and a ResNet18, with three times less feature maps across all layers, similar to Lopez-Paz and Ranzato (2017), in CIFAR and ImageNet experiments. The task identifiers are used to select the output head in the CIFAR and ImageNet experiments, while ignored in the MNIST experiments. Batch size is set to 10 for both the stream of data and episodic memory across experiments and models. The size of episodic memory is set between 1 and 5 examples per class per task. The results of VCL are complied by running the official implementation<sup>1</sup>, that only works for fully-connected networks, in our continual learning setup. All the other baselines use our unified code base which is available here<sup>2</sup>. All experiments are averaged over five runs using different random seeds, where each seed corresponds to a different dataset ordering among tasks.",
710
+ "bbox": [
711
+ 519,
712
+ 263,
713
+ 911,
714
+ 500
715
+ ],
716
+ "page_idx": 3
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "Results",
721
+ "text_level": 1,
722
+ "bbox": [
723
+ 519,
724
+ 511,
725
+ 576,
726
+ 525
727
+ ],
728
+ "page_idx": 3
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "Table 1 summarizes the main results of our experiments when the episodic memory of only one example per class per task is used. First, our proposed HAL is the method achieving maximum Accuracy (Eq. 2) and minimal Forgetting (Eq. 3) for all benchmarks. This does not include Oracle baselines Multitask (which has access to all data simultaneously) and Clone-and-finetune (which trains a separate model per task). Second, the relative gains from ER-Ring to HAL are substantial, confirming that the anchoring objective (Eq. 5) allows experience-replay methods to generalize better with the same amount of episodic memory.",
733
+ "bbox": [
734
+ 519,
735
+ 530,
736
+ 911,
737
+ 681
738
+ ],
739
+ "page_idx": 3
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "Third, regularization based approaches, such as EWC (Kirkpatrick et al. 2016) and VCL (Nguyen et al. 2018), suffer under the single epoch setup. As noted by Chaudhry et al. (2019a), EWC requires multiple passes over the samples of each task to perform well. The poor performance of VCL is attributed to the noisy posterior estimation in the single pass setup. Note that approaches making use of memory (MER, ER, MIR, and HAL) work substantially better in this setup.",
744
+ "bbox": [
745
+ 519,
746
+ 683,
747
+ 911,
748
+ 806
749
+ ],
750
+ "page_idx": 3
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "Fourth, ICARL (Rebuffi, Kolesnikov, and Lampert 2017), another method making use of episodic memory, performs poorly in our setup. From Table 1, it can be argued that di",
755
+ "bbox": [
756
+ 519,
757
+ 808,
758
+ 911,
759
+ 849
760
+ ],
761
+ "page_idx": 3
762
+ },
763
+ {
764
+ "type": "page_footnote",
765
+ "text": "$^{1}$ https://github.com/nvcuong/variational-continual-learning",
766
+ "bbox": [
767
+ 540,
768
+ 861,
769
+ 888,
770
+ 875
771
+ ],
772
+ "page_idx": 3
773
+ },
774
+ {
775
+ "type": "page_footnote",
776
+ "text": "$^{2}$ https://github.com/arslan-chaudhry/HindsightAnchor",
777
+ "bbox": [
778
+ 540,
779
+ 875,
780
+ 859,
781
+ 888
782
+ ],
783
+ "page_idx": 3
784
+ },
785
+ {
786
+ "type": "table",
787
+ "img_path": "images/8747c22ff9cf262042d449736d1c5b6cd22e28615c036c7b199bd23e83cdb1e5.jpg",
788
+ "table_caption": [
789
+ "Table 1: Accuracy (Eq. 2) and Forgetting (Eq. 3) results of continual learning experiments. Averages and standard deviations are computed over five runs using different random seeds. When used, episodic memories contain up to one example per class per task. Last two rows are oracle baselines."
790
+ ],
791
+ "table_footnote": [],
792
+ "table_body": "<table><tr><td>METHOD</td><td colspan=\"2\">PERMUTED MNIST</td><td colspan=\"2\">ROTATED MNIST</td></tr><tr><td></td><td>ACCURACY</td><td>FORGETTING</td><td>ACCURACY</td><td>FORGETTING</td></tr><tr><td>FINETUNE</td><td>53.5 (±1.46)</td><td>0.29 (±0.01)</td><td>41.9 (±1.37)</td><td>0.50 (±0.01)</td></tr><tr><td>EWC (KIRKPATRICK ET AL. 2016)</td><td>63.1 (±1.40)</td><td>0.18 (±0.01)</td><td>44.1 (±0.99)</td><td>0.47 (±0.01)</td></tr><tr><td>VCL (NGUYEN ET AL. 2018)</td><td>51.8 (±1.54)</td><td>0.44 (±0.01)</td><td>48.2 (±0.99)</td><td>0.50 (±0.01)</td></tr><tr><td>VCL-RANDOM (NGUYEN ET AL. 2018)</td><td>52.3 (±0.66)</td><td>0.43 (±0.01)</td><td>54.4 (±1.44)</td><td>0.44 (±0.01)</td></tr><tr><td>AGEM (CHAUDHRY ET AL. 2019A)</td><td>62.1 (±1.39)</td><td>0.21 (±0.01)</td><td>50.9 (±0.92)</td><td>0.40 (±0.01)</td></tr><tr><td>MER (RIEMER ET AL. 2019)</td><td>69.9 (±0.40)</td><td>0.14 (±0.01)</td><td>66.0 (±2.04)</td><td>0.23 (±0.01)</td></tr><tr><td>ER-RING (CHAUDHRY ET AL. 2019B)</td><td>70.2 (±0.56)</td><td>0.12 (±0.01)</td><td>65.9 (±0.41)</td><td>0.24 (±0.01)</td></tr><tr><td>MIR (ALJUNDI ET AL. 2019A)</td><td>71.1 (±0.41)</td><td>0.11 (±0.01)</td><td>-</td><td>-</td></tr><tr><td>HAL (OURS)</td><td>73.6 (±0.31)</td><td>0.09 (±0.01)</td><td>68.4 (±0.72)</td><td>0.21 (±0.01)</td></tr><tr><td>CLONE-AND-FINETUNE</td><td>81.4 (±0.35)</td><td>0.0</td><td>87.5 (±0.11)</td><td>0.0</td></tr><tr><td>MULTITASK</td><td>83.0</td><td>0.0</td><td>83.3</td><td>0.0</td></tr></table>",
793
+ "bbox": [
794
+ 161,
795
+ 119,
796
+ 836,
797
+ 319
798
+ ],
799
+ "page_idx": 4
800
+ },
801
+ {
802
+ "type": "table",
803
+ "img_path": "images/bf1a9f6048e5c0bb148bd85ed900e3d89cd5b99f7a54c600e70ddcbcb764e6ab.jpg",
804
+ "table_caption": [],
805
+ "table_footnote": [],
806
+ "table_body": "<table><tr><td>METHOD</td><td colspan=\"2\">SPLIT CIFAR</td><td colspan=\"2\">SPLIT MINIIMAGENET</td></tr><tr><td></td><td>ACCURACY</td><td>FORGETTING</td><td>ACCURACY</td><td>FORGETTING</td></tr><tr><td>FINETUNE</td><td>42.9 (±2.07)</td><td>0.25 (±0.03)</td><td>34.7 (±2.69)</td><td>0.26 (±0.03)</td></tr><tr><td>EWC (KIRKPATRICK ET AL. 2016)</td><td>42.4 (±3.02)</td><td>0.26 (±0.02)</td><td>37.7 (±3.29)</td><td>0.21 (±0.03)</td></tr><tr><td>ICARL (REBUFFI, KOLESNIKOV, AND LAMPERT 2017)</td><td>46.4 (±1.21)</td><td>0.16 (±0.01)</td><td>-</td><td>-</td></tr><tr><td>AGEM (CHAUDHRY ET AL. 2019A)</td><td>54.9 (±2.92)</td><td>0.14 (±0.03)</td><td>48.2 (±2.49)</td><td>0.13 (±0.02)</td></tr><tr><td>MER (RIEMER ET AL. 2019)</td><td>49.7 (±2.97)</td><td>0.19 (±0.03)</td><td>45.5 (±1.49)</td><td>0.15 (±0.01)</td></tr><tr><td>ER-RING (CHAUDHRY ET AL. 2019B)</td><td>56.2 (±1.93)</td><td>0.13 (±0.01)</td><td>49.0 (±2.61)</td><td>0.12 (±0.02)</td></tr><tr><td>MIR (ALJUNDI ET AL. 2019A)</td><td>57.1 (±1.81)</td><td>0.12 (±0.01)</td><td>49.3 (±2.15)</td><td>0.12 (±0.01)</td></tr><tr><td>HAL (OURS)</td><td>60.4 (±0.54)</td><td>0.10 (±0.01)</td><td>51.6 (±2.02)</td><td>0.10 (±0.01)</td></tr><tr><td>CLONE-AND-FINETUNE</td><td>60.3 (±0.55)</td><td>0.0</td><td>50.3 (±1.00)</td><td>0.0</td></tr><tr><td>MULTITASK</td><td>68.3</td><td>0.0</td><td>63.5</td><td>0.0</td></tr></table>",
807
+ "bbox": [
808
+ 112,
809
+ 335,
810
+ 880,
811
+ 522
812
+ ],
813
+ "page_idx": 4
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "rect training on a very small episodic memory, as done in experience replay, allows the method to generalize better compared to when the same memory is used indirectly in the knowledge distillation loss (Hinton, Vinyals, and Dean 2014) as done in ICARL.",
818
+ "bbox": [
819
+ 81,
820
+ 553,
821
+ 478,
822
+ 625
823
+ ],
824
+ "page_idx": 4
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "Fig 1 shows the accuracy (Eq. 2) of methods employing episodic memory when the size of memory is increased. We use 1 to 5 examples per class per task, resulting in a total memory size from 200 to 1000 for MNIST experiments, and from 85 to 425 for CIFAR and ImageNet experiments. The corresponding numbers for Forgetting are given in Appendix B. HAL consistently improves on ER-Ring and other baselines.",
829
+ "bbox": [
830
+ 81,
831
+ 630,
832
+ 478,
833
+ 742
834
+ ],
835
+ "page_idx": 4
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "Figure 4 in Appendix B provides the training time of the continual learning baselines on MNIST benchmarks. Although HAL adds an overhead on top of the experience replay baseline, it is substantially faster than MER —another approach that makes use of nested optimization to reduce forgetting. However, HAL requires extra memory to store task anchors that, as we will show next, are more effective than additional data samples one can store for experience replay. Overall, we conclude that HAL provides the best tradeoff in terms of efficiency and performance.",
840
+ "bbox": [
841
+ 81,
842
+ 750,
843
+ 480,
844
+ 888
845
+ ],
846
+ "page_idx": 4
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "Ablation Study",
851
+ "text_level": 1,
852
+ "bbox": [
853
+ 516,
854
+ 551,
855
+ 638,
856
+ 569
857
+ ],
858
+ "page_idx": 4
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "We now turn our attention towards two questions; (1) whether for the same episodic memory size in bytes HAL improves over the experience replay baseline, (2) whether fine-tuning on the replay buffer is a good approximation of forgetting when the learner is updated on future tasks.",
863
+ "bbox": [
864
+ 514,
865
+ 580,
866
+ 913,
867
+ 651
868
+ ],
869
+ "page_idx": 4
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "To answer the first question, let $|\\mathcal{M}|$ be the total size of episodic memory for all tasks when one example per class per task is stored in the replay buffer. We then run the experience replay with double the size of episodic memory (i.e.) storing two examples per class per task instead of one. The episodic memory size in HAL, on the other hand, is kept at $|\\mathcal{M}|$ . This effectively makes the size of memory in bytes taken by experience replay and that of HAL equal as the latter requires extra memory to store anchors. Table 2 summarizes the results of this study. For the same memory size in bytes, HAL performs better than experience replay when additional real data samples are stored in the episodic memory. It is surprising that the anchors learned by HAL, initialized from random noise and learned using gradient-based optimization, perform better compared to randomly sampled real data. To understand this, in Figure 2 we visualize HAL's anchors along with the task data in the image",
874
+ "bbox": [
875
+ 514,
876
+ 652,
877
+ 913,
878
+ 888
879
+ ],
880
+ "page_idx": 4
881
+ },
882
+ {
883
+ "type": "image",
884
+ "img_path": "images/b16bbdadfe1c5da6c83772c008e6f251fe08f7fde54f68cdf5acd8f356a913bf.jpg",
885
+ "image_caption": [
886
+ "(a) Permuted MNIST"
887
+ ],
888
+ "image_footnote": [],
889
+ "bbox": [
890
+ 106,
891
+ 68,
892
+ 261,
893
+ 215
894
+ ],
895
+ "page_idx": 5
896
+ },
897
+ {
898
+ "type": "image",
899
+ "img_path": "images/8a321a270dd3f54e1386d08d0964307612a50d7290ec7f380c8f66493a8f202a.jpg",
900
+ "image_caption": [
901
+ "(b) Rotated MNIST"
902
+ ],
903
+ "image_footnote": [],
904
+ "bbox": [
905
+ 303,
906
+ 68,
907
+ 464,
908
+ 215
909
+ ],
910
+ "page_idx": 5
911
+ },
912
+ {
913
+ "type": "image",
914
+ "img_path": "images/fb61212077920520fcde77e0b54495ecc38b61c9c8e1eb7784470e93cf2e6312.jpg",
915
+ "image_caption": [
916
+ "(c) Split CIFAR"
917
+ ],
918
+ "image_footnote": [],
919
+ "bbox": [
920
+ 501,
921
+ 68,
922
+ 660,
923
+ 215
924
+ ],
925
+ "page_idx": 5
926
+ },
927
+ {
928
+ "type": "image",
929
+ "img_path": "images/84392707214066eb4c8750af688f73b2909a3fc2ce9efc97417bd0bde891fd21.jpg",
930
+ "image_caption": [
931
+ "(d) Split miniImageNet",
932
+ "Figure 1: Accuracy (Eq. 2) results for different episodic memory sizes."
933
+ ],
934
+ "image_footnote": [],
935
+ "bbox": [
936
+ 694,
937
+ 66,
938
+ 859,
939
+ 217
940
+ ],
941
+ "page_idx": 5
942
+ },
943
+ {
944
+ "type": "table",
945
+ "img_path": "images/3e9a29d8957939e87d4e06f987282a9bcc8bd50462ff6c46e64a12bb8d2a3610.jpg",
946
+ "table_caption": [
947
+ "Table 2: Comparison of HAL with experience replay. ER-Ring and HAL use one example per class per task in the episodic memory, whereas ER-Ring-2 $|\\mathcal{M}|$ uses two examples per class per task in the memory. Averages and standard deviations are computed over five runs using different random seeds."
948
+ ],
949
+ "table_footnote": [],
950
+ "table_body": "<table><tr><td>Method</td><td colspan=\"2\">Permuted MNIST</td><td colspan=\"2\">Split CIFAR</td></tr><tr><td></td><td>Accuracy</td><td>Forgetting</td><td>Accuracy</td><td>Forgetting</td></tr><tr><td>ER-Ring-|M|</td><td>70.2 ±(0.56)</td><td>0.12 (±0.01)</td><td>56.2 (±1.93)</td><td>0.13 (±0.01)</td></tr><tr><td>ER-Ring-2|M|</td><td>71.9 (±0.31)</td><td>0.11 (±0.01)</td><td>58.6 (±2.68)</td><td>0.12 (±0.01)</td></tr><tr><td>HAL-|M|</td><td>73.6 (±0.31)</td><td>0.09 (±0.01)</td><td>60.4 (±0.54)</td><td>0.10 (±0.01)</td></tr></table>",
951
+ "bbox": [
952
+ 83,
953
+ 382,
954
+ 480,
955
+ 454
956
+ ],
957
+ "page_idx": 5
958
+ },
959
+ {
960
+ "type": "table",
961
+ "img_path": "images/68415b86c41310a86b5e8e136a0e95314268093c0a9b7856ff0f319558e9ebb5.jpg",
962
+ "table_caption": [
963
+ "Table 3: Performance comparison of HAL with Oracle where the learner has access to all the future tasks to exactly quantify forgetting of an anchor. Averages and standard deviations are computed over five runs using different random seeds."
964
+ ],
965
+ "table_footnote": [],
966
+ "table_body": "<table><tr><td>Anchor type</td><td colspan=\"2\">Permuted MNIST</td><td colspan=\"2\">Split CIFAR</td></tr><tr><td></td><td>Accuracy</td><td>Forgetting</td><td>Accuracy</td><td>Forgetting</td></tr><tr><td>HAL</td><td>73.6 (±0.31)</td><td>0.09 (±0.01)</td><td>60.4 (±0.54)</td><td>0.10 (±0.01)</td></tr><tr><td>Oracle</td><td>73.9 (±0.41)</td><td>0.09 (±0.01)</td><td>61.1 (±0.94)</td><td>0.09 (±0.01)</td></tr></table>",
967
+ "bbox": [
968
+ 84,
969
+ 565,
970
+ 480,
971
+ 628
972
+ ],
973
+ "page_idx": 5
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "and feature space on Permuted MNIST benchmark. From the left of the figure, it can be seen that HAL anchors lie in the data cluster of a class in the image space, suggesting that the mean embedding loss in Eq. 9 effectively regularizes against outliers. More interestingly, the figure on the right shows that these anchors lie at or close to the cluster edges in the feature space. In other words, the anchor points learned by HAL lie close to the classifier decision boundary. This can explain their effectiveness compared to the real data samples that can lie anywhere in the data cluster in feature space.",
978
+ "bbox": [
979
+ 81,
980
+ 662,
981
+ 478,
982
+ 816
983
+ ],
984
+ "page_idx": 5
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Finally, to answer the second part, we assume a non-continual setup where at each step the learner has an oracle access to all future tasks. After training on task $t$ , the learner is fine-tuned on all future tasks and anchor points are subsequently learned by optimizing idealistic Eq. 7. The results",
989
+ "bbox": [
990
+ 81,
991
+ 818,
992
+ 480,
993
+ 888
994
+ ],
995
+ "page_idx": 5
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "are reported in Table 3. It can be seen from the table that the proposed HAL performs very close to the noncontinual oracle baseline. This suggests that HAL's approximation of forgetting when the learner is updated on future tasks by replaying past data is effective in many existing continual learning benchmarks.",
1000
+ "bbox": [
1001
+ 514,
1002
+ 297,
1003
+ 913,
1004
+ 383
1005
+ ],
1006
+ "page_idx": 5
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "5 Related work",
1011
+ "text_level": 1,
1012
+ "bbox": [
1013
+ 640,
1014
+ 396,
1015
+ 787,
1016
+ 411
1017
+ ],
1018
+ "page_idx": 5
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "In continual learning (Ring 1997), also called lifelong learning (Thrun 1998), a learner addresses a sequence of changing tasks without storing the complete datasets of these tasks. This contrasts with multitask learning (Caruana 1997), where the learner assumes simultaneous access to data from all tasks. The main challenge in continual learning is to avoid catastrophic interference (McCloskey and Cohen 1989; McClelland, McNaughton, and O'Reilly 1995; Goodfellow et al. 2013), that is, the learner forgetting previously acquired knowledge when learning new tasks. The state-of-the-art methods in continual learning can be categorized into three classes.",
1023
+ "bbox": [
1024
+ 514,
1025
+ 416,
1026
+ 911,
1027
+ 582
1028
+ ],
1029
+ "page_idx": 5
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "First, regularization approaches discourage updating parameters important for past tasks (Kirkpatrick et al. 2016; Aljundi et al. 2018; Nguyen et al. 2018; Zenke, Poole, and Ganguli 2017). While efficient in terms of memory and computation, these approaches suffer from brittleness due to feature drift for large number of tasks (Titsias et al. 2019). Additionally, these approaches are only effective when the learner can perform multiple passes over each task (Chaudhry et al. 2019a), a case deemed unrealistic in this work.",
1034
+ "bbox": [
1035
+ 514,
1036
+ 583,
1037
+ 913,
1038
+ 720
1039
+ ],
1040
+ "page_idx": 5
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "Second, modular approaches use different parts of the prediction function for each new task (Fernando et al. 2017; Aljundi, Chakravarty, and Tuytelaars 2017; Rosenbaum, Klinger, and Riemer 2018; Chang et al. 2018; Xu and Zhu 2018; Ferran Alet 2018). Modular approaches do not scale to a large number of tasks, as they require searching over the combinatorial space of module architectures. Another modular approach (Rusu et al. 2016; Lee et al. 2017) adds new parts to the prediction function as new tasks are learned. By construction, modular approaches have zero forgetting, but their memory requirements increase with the number of tasks.",
1045
+ "bbox": [
1046
+ 514,
1047
+ 720,
1048
+ 913,
1049
+ 887
1050
+ ],
1051
+ "page_idx": 5
1052
+ },
1053
+ {
1054
+ "type": "image",
1055
+ "img_path": "images/1fcd9ebc526b8ddc695d1470ce158cf495e0e9ba11c0ea6529c19dbea2ebb548.jpg",
1056
+ "image_caption": [
1057
+ "Image Space"
1058
+ ],
1059
+ "image_footnote": [],
1060
+ "bbox": [
1061
+ 101,
1062
+ 74,
1063
+ 450,
1064
+ 333
1065
+ ],
1066
+ "page_idx": 6
1067
+ },
1068
+ {
1069
+ "type": "image",
1070
+ "img_path": "images/3f5b18590290746f3c8ce7d93ba6504df65b7f0a28e9ad23f412940fabf846b6.jpg",
1071
+ "image_caption": [
1072
+ "Feature Space",
1073
+ "Figure 2: t-SNE visualization of images and anchors (HAL) in the image space (left) and the feature space (right) on Permuted MNIST benchmark for a single task. Anchor points are exaggerated in size for the purpose of better visualization. The left plot shows that anchor points lie with in the data cluster of a class, whereas the right plot shows that, in the feature space, anchor points lie close to the edge of the cluster of a class or near decision boundaries."
1074
+ ],
1075
+ "image_footnote": [],
1076
+ "bbox": [
1077
+ 500,
1078
+ 66,
1079
+ 861,
1080
+ 333
1081
+ ],
1082
+ "page_idx": 6
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Third, episodic memory approaches maintain and revisit a small episodic memory of data from past tasks. In some of these methods (Li and Hoiem 2016; Rebuffi, Kolesnikov, and Lampert 2017), examples in the episodic memory are replayed and predictions are kept invariant by means of distillation (Hinton, Vinyals, and Dean 2014). In other approaches (Lopez-Paz and Ranzato 2017; Chaudhry et al. 2019a; Aljundi et al. 2019b) the episodic memory is used as an optimization constraint that discourages increases in loss of past tasks. More recently, several works (Hayes, Cahill, and Kanan 2018; Riemer et al. 2019; Rolnick et al. 2018; Chaudhry et al. 2019b) have shown that directly optimizing the loss of episodic memory, also known as experience replay, is cheaper than constraint-based approaches and improves the prediction performance. Our contribution in this paper has been to improve experience replay methods with task anchors learned in hindsight.",
1087
+ "bbox": [
1088
+ 81,
1089
+ 445,
1090
+ 478,
1091
+ 680
1092
+ ],
1093
+ "page_idx": 6
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "There are other definitions of continual learning, such as the one of task-free continual learning. The task-free formulation does not consider the notion of tasks, and instead works on undivided data streams (Aljundi, Kelchtermans, and Tuytelaars 2019; Aljundi et al. 2019b). We have focused on the task-based definition of continual learning and, similar to many recent works (Lopez-Paz and Ranzato 2017; Hayes, Cahill, and Kanan 2018; Riemer et al. 2019; Chaudhry et al. 2019a), assumed that only a single pass through the data was possible.",
1098
+ "bbox": [
1099
+ 81,
1100
+ 681,
1101
+ 478,
1102
+ 818
1103
+ ],
1104
+ "page_idx": 6
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "Finally, our gradient-based learning of anchors bears a similarity to (Simonyan, Vedaldi, and Zisserman 2014) and (Wang et al. 2018). In Simonyan, Vedaldi, and Zisserman (2014), the authors use gradient ascent on class scores to find saliency maps of a classification model. Contrary to",
1109
+ "bbox": [
1110
+ 81,
1111
+ 819,
1112
+ 480,
1113
+ 888
1114
+ ],
1115
+ "page_idx": 6
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "them, our proposed hindsight learning objective optimizes for the forgetting metric, as reducing it is necessary for continual learning. Dataset distillation (Wang et al. 2018) proposes to encode the entire dataset in a few synthetic points at a given parameter vector by a gradient-based optimization process. Their method requires access to the entire dataset of a task for optimization purposes. We, instead, learn anchors in hindsight from the replay buffer of past tasks after training is finished for the current task. While Wang et al. (2018) aim to replicate the performance of the entire dataset from the synthetic points, we focus on reducing forgetting of an already learned task.",
1120
+ "bbox": [
1121
+ 514,
1122
+ 445,
1123
+ 913,
1124
+ 612
1125
+ ],
1126
+ "page_idx": 6
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "6 Conclusion",
1131
+ "text_level": 1,
1132
+ "bbox": [
1133
+ 651,
1134
+ 636,
1135
+ 779,
1136
+ 652
1137
+ ],
1138
+ "page_idx": 6
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "We introduced a bilevel optimization objective, dubbed anchoring, for continual learning. In our approach, we learned one \"anchor point\" per class per task, where predictions are requested to remain invariant by means of nested optimization. These anchors are learned using gradient-based optimization and represent points that would maximize the forgetting of the current task throughout the entire learning experience. We simulate the forgetting that would happen during the learning of future tasks in hindsight, that is, by taking temporary gradient steps across a small episodic memory of past tasks. We call our approach Hindsight Anchor Learning (HAL). As shown in our experiments, anchoring in hindsight complements and improves the performance of continual learning methods based on experience replay, achieving a new state of the art on four standard continual learning benchmarks.",
1143
+ "bbox": [
1144
+ 514,
1145
+ 666,
1146
+ 913,
1147
+ 888
1148
+ ],
1149
+ "page_idx": 6
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Acknowledgement",
1154
+ "text_level": 1,
1155
+ "bbox": [
1156
+ 200,
1157
+ 66,
1158
+ 361,
1159
+ 83
1160
+ ],
1161
+ "page_idx": 7
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "The authors would like to thank Marc'Aurelio Ranzato for helpful discussions. This work was supported by the ERC grant ERC-2012-AdG 321162-HELIOS, EPSRC grant Seebibyte EP/M013774/1 and EPSRC/MURI grant EP/N019474/1. We would also like to acknowledge the Royal Academy of Engineering and FiveAI. AC is funded by Amazon Research award.",
1166
+ "bbox": [
1167
+ 81,
1168
+ 85,
1169
+ 480,
1170
+ 184
1171
+ ],
1172
+ "page_idx": 7
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "References",
1177
+ "text_level": 1,
1178
+ "bbox": [
1179
+ 233,
1180
+ 196,
1181
+ 330,
1182
+ 212
1183
+ ],
1184
+ "page_idx": 7
1185
+ },
1186
+ {
1187
+ "type": "list",
1188
+ "sub_type": "ref_text",
1189
+ "list_items": [
1190
+ "Aljundi, R.; Babiloni, F.; Elhoseiny, M.; Rohrbach, M.; and Tuytelaars, T. 2018. Memory Aware Synapses: Learning what (not) to forget. In ECCV.",
1191
+ "Aljundi, R.; Belilovsky, E.; Tuytelaars, T.; Charlin, L.; Caccia, M.; Lin, M.; and Page-Caccia, L. 2019a. Online Continual Learning with Maximal Interfered Retrieval. In Wallach, H.; Larochelle, H.; Beygelzimer, A.; d'Alché-Buc, F.; Fox, E.; and Garnett, R., eds., Advances in Neural Information Processing Systems 32, 11849-11860. Curran Associates, Inc. URL http://papers.nips.cc/paper/9357-online-continual-learning-with-maximal-interfered-retrieval.pdf.",
1192
+ "Aljundi, R.; Chakravarty, P.; and Tuytelaars, T. 2017. Expert Gate: Lifelong Learning with a Network of Experts. In CVPR, 7120-7129.",
1193
+ "Aljundi, R.; Kelchtermans, K.; and Tuytelaars, T. 2019. Task-free continual learning. In CVPR, 11254-11263.",
1194
+ "Aljundi, R.; Lin, M.; Goujaud, B.; and Bengio, Y. 2019b. Online continual learning with no task boundaries. arXiv preprint arXiv:1903.08671.",
1195
+ "Caruana, R. 1997. Multitask learning. Machine learning 28(1): 41-75.",
1196
+ "Chang, M.; Gupta, A.; Levine, S.; and Griffiths, T. L. 2018. Automatically Composing Representation Transformations as a Means for Generalization. In ICML workshop Neural Abstract Machines and Program Induction v2.",
1197
+ "Chaudhry, A.; Dokania, P. K.; Ajanthan, T.; and Torr, P. H. 2018. Riemannian Walk for Incremental Learning: Understanding Forgetting and Intransigence. In ECCV.",
1198
+ "Chaudhry, A.; Ranzato, M.; Rohrbach, M.; and Elhoseiny, M. 2019a. Efficient Lifelong Learning with A-GEM. In ICLR.",
1199
+ "Chaudhry, A.; Rohrbach, M.; Elhoseiny, M.; Ajanthan, T.; Dokania, P. K.; Torr, P. H.; and Ranzato, M. 2019b. Continual Learning with Tiny Episodic Memories. arXiv preprint arXiv:1902.10486.",
1200
+ "Fernando, C.; Banarse, D.; Blundell, C.; Zwols, Y.; Ha, D.; Rusu, A. A.; Pritzel, A.; and Wierstra, D. 2017. Pathnet: Evolution channels gradient descent in super neural networks. arXiv preprint arXiv:1701.08734.",
1201
+ "Ferran Alet, Tomas Lozano-Perez, L. P. K. 2018. Modular Meta-Learning. arXiv preprint arXiv:1806.10166v1.",
1202
+ "Finn, C.; Abbeel, P.; and Levine, S. 2017. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML-Volume 70, 1126-1135. JMLR.org."
1203
+ ],
1204
+ "bbox": [
1205
+ 84,
1206
+ 215,
1207
+ 478,
1208
+ 888
1209
+ ],
1210
+ "page_idx": 7
1211
+ },
1212
+ {
1213
+ "type": "list",
1214
+ "sub_type": "ref_text",
1215
+ "list_items": [
1216
+ "Goodfellow, I. J.; Mirza, M.; Xiao, D.; Courville, A.; and Bengio, Y. 2013. An empirical investigation of catastrophic forgetting in gradient-based neural networks. arXiv preprint arXiv:1312.6211.",
1217
+ "Hayes, T. L.; Cahill, N. D.; and Kanan, C. 2018. Memory Efficient Experience Replay for Streaming Learning. arXiv preprint arXiv:1809.05922.",
1218
+ "Hinton, G.; Vinyals, O.; and Dean, J. 2014. Distilling the knowledge in a neural network. In NIPS.",
1219
+ "Isele, D.; and Cosgun, A. 2018. Selective Experience Replay for Lifelong Learning. arXiv preprint arXiv:1802.10269.",
1220
+ "Kirkpatrick, J.; Pascanu, R.; Rabinowitz, N. C.; Veness, J.; Desjardins, G.; Rusu, A. A.; Milan, K.; Quan, J.; Ramalho, T.; Grabska-Barwinska, A.; Hassabis, D.; Clopath, C.; Kumaran, D.; and Hadsell, R. 2016. Overcoming catastrophic forgetting in neural networks. *PNAS*.",
1221
+ "Krizhevsky, A.; and Hinton, G. 2009. Learning multiple layers of features from tiny images. https://www.cs.toronto.edu/kriz/cifar.html.",
1222
+ "LeCun, Y. 1998. The MNIST database of handwritten digits. http://yann.lecun.com/exdb/mnist/.",
1223
+ "Lee, J.; Yun, J.; Hwang, S.; and Yang, E. 2017. Lifelong Learning with Dynamically Expandable Networks. arXiv preprint arXiv:1708.01547.",
1224
+ "Li, Z.; and Hoiem, D. 2016. Learning without forgetting. In ECCV, 614-629.",
1225
+ "Lopez-Paz, D.; and Ranzato, M. 2017. Gradient Episodic Memory for Continuum Learning. In NIPS.",
1226
+ "McClelland, J. L.; McNaughton, B. L.; and O'Reilly, R. C. 1995. Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory. Psychological review 102(3): 419.",
1227
+ "McCloskey, M.; and Cohen, N. J. 1989. Catastrophic interference in connectionist networks: The sequential learning problem. Psychology of learning and motivation 24: 109-165.",
1228
+ "Nguyen, C. V.; Li, Y.; Bui, T. D.; and Turner, R. E. 2018. Variational continual learning. *ICLR*.",
1229
+ "Nichol, A.; and Schulman, J. 2018. Reptile: a scalable met-learning algorithm. arXiv preprint arXiv:1803.02999, 2018",
1230
+ "Rebuffi, S.-V.; Kolesnikov, A.; and Lampert, C. H. 2017. iCaRL: Incremental Classifier and Representation Learning. In CVPR.",
1231
+ "Riemer, M.; Cases, I.; Ajemian, R.; Liu, M.; Rish, I.; Tu, Y.; and Tesauro, G. 2019. Learning to Learn without Forgetting By Maximizing Transfer and Minimizing Interference. In ICLR.",
1232
+ "Ring, M. B. 1997. CHILD: A first step towards continual learning. Machine Learning 28(1): 77-104."
1233
+ ],
1234
+ "bbox": [
1235
+ 517,
1236
+ 68,
1237
+ 911,
1238
+ 888
1239
+ ],
1240
+ "page_idx": 7
1241
+ },
1242
+ {
1243
+ "type": "list",
1244
+ "sub_type": "ref_text",
1245
+ "list_items": [
1246
+ "Rolnick, D.; Ahuja, A.; Schwarz, J.; Lillicrap, T. P.; and Wayne, G. 2018. Experience Replay for Continual Learning. CoRR abs/1811.11682. URL http://arxiv.org/abs/1811.11682.",
1247
+ "Rosenbaum, C.; Klinger, T.; and Riemer, M. 2018. Routing Networks: Adaptive Selection of Non-Linear Functions for Multi-Task Learning. In ICLR.",
1248
+ "Russakovsky, O.; Deng, J.; Su, H.; Krause, J.; Satheesh, S.; Ma, S.; Huang, Z.; Karpathy, A.; Khosla, A.; Bernstein, M.; Berg, A. C.; and Fei-Fei, L. 2015. ImageNet Large Scale Visual Recognition Challenge. IJCV 115(3): 211-252.",
1249
+ "Rusu, A. A.; Rabinowitz, N. C.; Desjardins, G.; Soyer, H.; Kirkpatrick, J.; Kavukcuoglu, K.; Pascanu, R.; and Hadsell, R. 2016. Progressive neural networks. arXiv preprint arXiv:1606.04671.",
1250
+ "Simonyan, K.; Vedaldi, A.; and Zisserman, A. 2014. Deep inside convolutional networks: Visualising image classification models and saliency maps. In ICLR.",
1251
+ "Smola, A.; Gretton, A.; Song, L.; and Scholkopf, B. 2007. A Hilbert space embedding for distributions. In ALT, 13-31. Springer.",
1252
+ "Thrun, S. 1998. Lifelong learning algorithms. In Learning to learn, 181-209. Springer.",
1253
+ "Titsias, M. K.; Schwarz, J.; Matthews, A. G. d. G.; Pascanu, R.; and Teh, Y. W. 2019. Functional Regularisation for Continual Learning using Gaussian Processes. arXiv preprint arXiv:1901.11356.",
1254
+ "Vinyals, O.; Blundell, C.; Lillicrap, T.; Wierstra, D.; et al. 2016. Matching networks for one shot learning. In NIPS, 3630-3638.",
1255
+ "Wang, T.; Zhu, J.-Y.; Torralba, A.; and Efros, A. A. 2018. Dataset Distillation. arXiv preprint arXiv:1811.10959.",
1256
+ "Xu, J.; and Zhu, Z. 2018. Reinforced Continual Learning. In arXiv preprint arXiv:1805.12369v1.",
1257
+ "Zenke, F.; Poole, B.; and Ganguli, S. 2017. Continual Learning Through Synaptic Intelligence. In ICML."
1258
+ ],
1259
+ "bbox": [
1260
+ 84,
1261
+ 68,
1262
+ 478,
1263
+ 623
1264
+ ],
1265
+ "page_idx": 8
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Appendix",
1270
+ "text_level": 1,
1271
+ "bbox": [
1272
+ 455,
1273
+ 66,
1274
+ 540,
1275
+ 85
1276
+ ],
1277
+ "page_idx": 9
1278
+ },
1279
+ {
1280
+ "type": "text",
1281
+ "text": "Section A describes the approximate update performed by the anchoring objective (Eq. 5 in the main paper). Section B reports more experimental results. Section C provides the grid considered for hyper-parameters. Section E gives the pseudocode for HAL.",
1282
+ "bbox": [
1283
+ 81,
1284
+ 85,
1285
+ 915,
1286
+ 128
1287
+ ],
1288
+ "page_idx": 9
1289
+ },
1290
+ {
1291
+ "type": "text",
1292
+ "text": "A Approximate Update of Anchoring Objective",
1293
+ "text_level": 1,
1294
+ "bbox": [
1295
+ 290,
1296
+ 141,
1297
+ 705,
1298
+ 159
1299
+ ],
1300
+ "page_idx": 9
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "Here we will use a Taylor series expansion to approximate the update performed by the anchoring objective (Eq. 5 in the main paper). In particular, we are interested in the regularization part of the anchoring objective that involves a nested update. We refer to this gradient as $g_{anc}$ . We follow similar arguments as (Nichol and Schulman 2018).",
1305
+ "bbox": [
1306
+ 81,
1307
+ 160,
1308
+ 913,
1309
+ 202
1310
+ ],
1311
+ "page_idx": 9
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "text": "Let $\\theta_0$ be the parameter vector before the temporary update of the anchoring objective (Eq. 5). Moreover, let $\\ell_{ce}$ and $\\ell_{L2}$ be the cross-entropy and L2 losses, respectively. We use the following definitions:",
1316
+ "bbox": [
1317
+ 81,
1318
+ 202,
1319
+ 913,
1320
+ 231
1321
+ ],
1322
+ "page_idx": 9
1323
+ },
1324
+ {
1325
+ "type": "equation",
1326
+ "text": "\n$$\n\\bar {g} _ {0} = \\ell_ {c e} ^ {\\prime} (\\theta_ {0}) \\quad \\left(\\text {g r a d i e n t o f c r o s s - e n t r o p y l o s s a t i n i t i a l p o i n t o n} \\mathcal {B} \\cup \\mathcal {B} _ {\\mathcal {M}}\\right)\n$$\n",
1327
+ "text_format": "latex",
1328
+ "bbox": [
1329
+ 245,
1330
+ 237,
1331
+ 753,
1332
+ 253
1333
+ ],
1334
+ "page_idx": 9
1335
+ },
1336
+ {
1337
+ "type": "equation",
1338
+ "text": "\n$$\n\\bar {H} _ {0} = \\ell_ {c e} ^ {\\prime \\prime} (\\theta_ {0}) \\quad \\left(\\text {H e s s i a n o f c r o s s - e n t r o p y l o s s a t i n i t i a l p o i n t o n} \\mathcal {B} \\cup \\mathcal {B} _ {\\mathcal {M}}\\right)\n$$\n",
1339
+ "text_format": "latex",
1340
+ "bbox": [
1341
+ 245,
1342
+ 256,
1343
+ 751,
1344
+ 273
1345
+ ],
1346
+ "page_idx": 9
1347
+ },
1348
+ {
1349
+ "type": "equation",
1350
+ "text": "\n$$\n\\bar {g} _ {1} = \\ell_ {L 2} ^ {\\prime} \\left(\\theta_ {0}\\right) \\quad (\\text {g r a d i e n t o f L 2 l o s s a t i n i t i a l p o i n t o n a n c h o r s})\n$$\n",
1351
+ "text_format": "latex",
1352
+ "bbox": [
1353
+ 246,
1354
+ 277,
1355
+ 679,
1356
+ 294
1357
+ ],
1358
+ "page_idx": 9
1359
+ },
1360
+ {
1361
+ "type": "equation",
1362
+ "text": "\n$$\n\\bar {H} _ {1} = \\ell_ {L 2} ^ {\\prime \\prime} (\\theta_ {0}) \\quad \\text {(g r a d i e n t o f L 2 l o s s a t i n i t i a l p o i n t o n a n c h o r s)}\n$$\n",
1363
+ "text_format": "latex",
1364
+ "bbox": [
1365
+ 243,
1366
+ 296,
1367
+ 679,
1368
+ 314
1369
+ ],
1370
+ "page_idx": 9
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "Let $U_0 = \\theta_0 - \\alpha \\overline{g}_0$ be the operator giving a temporary update in the two-step process of (Eq. 5), and let $\\theta_1$ be the temporary update itself (i.e.) $\\theta_1 \\coloneqq U_0$ (note that $\\tilde{\\theta}$ is used in the main paper instead of $\\theta_1$ ). The $g_{anc}$ is given by:",
1375
+ "bbox": [
1376
+ 81,
1377
+ 337,
1378
+ 913,
1379
+ 371
1380
+ ],
1381
+ "page_idx": 9
1382
+ },
1383
+ {
1384
+ "type": "equation",
1385
+ "text": "\n$$\n\\begin{array}{l} g _ {a n c} = \\frac {\\partial}{\\partial \\theta_ {0}} \\ell_ {L 2} (U _ {0}) \\\\ = U _ {0} ^ {\\prime} \\cdot \\ell_ {L 2} ^ {\\prime} (\\theta_ {1}) \\\\ = \\left(I - \\alpha \\bar {H} _ {0}\\right) \\cdot \\ell_ {L 2} ^ {\\prime} \\left(\\theta_ {1}\\right), \\tag {10} \\\\ \\end{array}\n$$\n",
1386
+ "text_format": "latex",
1387
+ "bbox": [
1388
+ 395,
1389
+ 386,
1390
+ 911,
1391
+ 457
1392
+ ],
1393
+ "page_idx": 9
1394
+ },
1395
+ {
1396
+ "type": "text",
1397
+ "text": "where the second step is obtained by using the chain rule. Now, if we calculate the first order Taylor series approximation of $\\ell_{L2}^{\\prime}(\\theta_1)$ ,",
1398
+ "bbox": [
1399
+ 81,
1400
+ 463,
1401
+ 915,
1402
+ 494
1403
+ ],
1404
+ "page_idx": 9
1405
+ },
1406
+ {
1407
+ "type": "equation",
1408
+ "text": "\n$$\n\\begin{array}{l} \\ell_ {L 2} ^ {\\prime} \\left(\\theta_ {1}\\right) = \\ell_ {L 2} ^ {\\prime} \\left(\\theta_ {0}\\right) + \\ell_ {L 2} ^ {\\prime \\prime} \\left(\\theta_ {0}\\right) \\cdot \\left(\\theta_ {1} - \\theta_ {0}\\right) + O \\left(\\left| \\left| \\theta_ {1} - \\theta_ {0} \\right| \\right| ^ {2}\\right) \\\\ = \\bar {g} _ {1} + \\bar {H} _ {1} \\cdot \\left(\\theta_ {0} - \\alpha \\bar {g} _ {0} - \\theta_ {0}\\right) + O \\left(\\alpha^ {2}\\right) \\\\ = \\bar {g} _ {1} - \\alpha \\bar {H} _ {1} \\cdot \\bar {g} _ {0} + O \\left(\\alpha^ {2}\\right), \\tag {11} \\\\ \\end{array}\n$$\n",
1409
+ "text_format": "latex",
1410
+ "bbox": [
1411
+ 299,
1412
+ 511,
1413
+ 911,
1414
+ 570
1415
+ ],
1416
+ "page_idx": 9
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "where in the second step we substituted the value of $\\theta_{1}$ . By putting Eq. 11 in Eq. 10 and after some simplification we get:",
1421
+ "bbox": [
1422
+ 98,
1423
+ 575,
1424
+ 893,
1425
+ 592
1426
+ ],
1427
+ "page_idx": 9
1428
+ },
1429
+ {
1430
+ "type": "equation",
1431
+ "text": "\n$$\ng _ {a n c} = \\bar {g} _ {1} - \\alpha \\left(\\bar {H} _ {1} \\cdot \\bar {g} _ {0} + \\bar {H} _ {0} \\cdot \\bar {g} _ {1}\\right) + O \\left(\\alpha^ {2}\\right). \\tag {12}\n$$\n",
1432
+ "text_format": "latex",
1433
+ "bbox": [
1434
+ 344,
1435
+ 602,
1436
+ 911,
1437
+ 619
1438
+ ],
1439
+ "page_idx": 9
1440
+ },
1441
+ {
1442
+ "type": "text",
1443
+ "text": "This form is very similar to the second-order MAML gradient formulation, Eq. 25 in (Nichol and Schulman 2018). Further simplification of the inner product terms between Hessian and gradient yields the inner product between the gradients $\\overline{g_0}$ and $\\overline{g_1}$ . This shows that similar to MAML (Finn, Abbeel, and Levine 2017), Reptile (Nichol and Schulman 2018) and MER (Riemer et al. 2019), the anchoring objective, as described in Eq. 5 of the main paper, maximizes the inner product between the gradients. However, unlike the other meta-learning approaches, in the anchoring objective, these gradients correspond to different loss functions, cross-entropy and L2 losses on data from the current task and episodic memory, and HAL anchors, respectively.",
1444
+ "bbox": [
1445
+ 81,
1446
+ 622,
1447
+ 913,
1448
+ 708
1449
+ ],
1450
+ "page_idx": 9
1451
+ },
1452
+ {
1453
+ "type": "text",
1454
+ "text": "B More Results",
1455
+ "text_level": 1,
1456
+ "bbox": [
1457
+ 421,
1458
+ 719,
1459
+ 573,
1460
+ 734
1461
+ ],
1462
+ "page_idx": 9
1463
+ },
1464
+ {
1465
+ "type": "text",
1466
+ "text": "Figure 3 shows a more fine-grained analysis of average accuracy as new tasks are learned on Permuted MNIST and Split CIFAR. HAL preserves the performance of a predictor more effectively than other baselines.",
1467
+ "bbox": [
1468
+ 81,
1469
+ 738,
1470
+ 913,
1471
+ 766
1472
+ ],
1473
+ "page_idx": 9
1474
+ },
1475
+ {
1476
+ "type": "text",
1477
+ "text": "Tables 5 and 6 show the accuracy and forgetting of methods employing episodic memory when the size of memory is increased. We use 3 to 5 examples per class per task, resulting in a total memory size from 600 to 1000 for MNIST experiments, and from 255 to 425 for CIFAR and ImageNet experiments.",
1478
+ "bbox": [
1479
+ 81,
1480
+ 766,
1481
+ 913,
1482
+ 808
1483
+ ],
1484
+ "page_idx": 9
1485
+ },
1486
+ {
1487
+ "type": "text",
1488
+ "text": "C Hyper-parameter Selection",
1489
+ "text_level": 1,
1490
+ "bbox": [
1491
+ 362,
1492
+ 821,
1493
+ 630,
1494
+ 838
1495
+ ],
1496
+ "page_idx": 9
1497
+ },
1498
+ {
1499
+ "type": "text",
1500
+ "text": "In this section, we report the hyper-parameters grid considered for experiments. The best values for different benchmarks are given in parentheses.",
1501
+ "bbox": [
1502
+ 81,
1503
+ 840,
1504
+ 913,
1505
+ 869
1506
+ ],
1507
+ "page_idx": 9
1508
+ },
1509
+ {
1510
+ "type": "text",
1511
+ "text": "- Multitask",
1512
+ "bbox": [
1513
+ 84,
1514
+ 875,
1515
+ 166,
1516
+ 887
1517
+ ],
1518
+ "page_idx": 9
1519
+ },
1520
+ {
1521
+ "type": "image",
1522
+ "img_path": "images/03c605b5355952321432ebafbebab2455ea6634b777752c15b7d6111f01bc6e3.jpg",
1523
+ "image_caption": [
1524
+ "Permuted MNIST"
1525
+ ],
1526
+ "image_footnote": [],
1527
+ "bbox": [
1528
+ 125,
1529
+ 68,
1530
+ 421,
1531
+ 170
1532
+ ],
1533
+ "page_idx": 10
1534
+ },
1535
+ {
1536
+ "type": "image",
1537
+ "img_path": "images/d9eafc4c0a015aa8f6d274a5c523990b5f63941959c47917321a54a29ba240a9.jpg",
1538
+ "image_caption": [
1539
+ "Split CIFAR",
1540
+ "Figure 3: Evolution of Accuracy (Eq. 2) as new tasks are learned. When used, episodic memories contain up to one example per class per task."
1541
+ ],
1542
+ "image_footnote": [],
1543
+ "bbox": [
1544
+ 500,
1545
+ 66,
1546
+ 867,
1547
+ 169
1548
+ ],
1549
+ "page_idx": 10
1550
+ },
1551
+ {
1552
+ "type": "table",
1553
+ "img_path": "images/e9350121d7bad21648c37272c4921285045e555487fa02c8c3b1327933ed0a55.jpg",
1554
+ "table_caption": [],
1555
+ "table_footnote": [],
1556
+ "table_body": "<table><tr><td>Anchor type</td><td colspan=\"2\">Split CIFAR</td></tr><tr><td></td><td>Accuracy</td><td>Forgetting</td></tr><tr><td>Real Data Anchor</td><td>58.0 (±0.15)</td><td>0.12 (±0.01)</td></tr><tr><td>HAL (ours)</td><td>60.4 (±0.54)</td><td>0.10 (±0.01)</td></tr></table>",
1557
+ "bbox": [
1558
+ 326,
1559
+ 289,
1560
+ 671,
1561
+ 368
1562
+ ],
1563
+ "page_idx": 10
1564
+ },
1565
+ {
1566
+ "type": "image",
1567
+ "img_path": "images/cf498d4189b19aa297454450490a5004bf92fd45f69a82e85f73ba7778314394.jpg",
1568
+ "image_caption": [
1569
+ "Table 4: Impact of anchor selection, where we compare a randomly chosen data point as an anchor (Real Data Anchor) with our optimized anchor selection (HAL).",
1570
+ "Figure 4: Training time (s) of MNIST experiments for the entire continual learning experience. MER and HAL both use meta-learning objectives to reduce forgetting."
1571
+ ],
1572
+ "image_footnote": [],
1573
+ "bbox": [
1574
+ 334,
1575
+ 383,
1576
+ 661,
1577
+ 549
1578
+ ],
1579
+ "page_idx": 10
1580
+ },
1581
+ {
1582
+ "type": "list",
1583
+ "sub_type": "text",
1584
+ "list_items": [
1585
+ "- learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]",
1586
+ "- Clone-and-finetune",
1587
+ "- learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]",
1588
+ "- Finetune",
1589
+ "- learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]",
1590
+ "EWC",
1591
+ "- learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]",
1592
+ "- regularization: [0.1, 1, 10 (MNIST perm, rot, CIFAR, miniImageNet), 100, 1000]",
1593
+ "- AGEM",
1594
+ "- learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]",
1595
+ "- MER"
1596
+ ],
1597
+ "bbox": [
1598
+ 86,
1599
+ 614,
1600
+ 888,
1601
+ 887
1602
+ ],
1603
+ "page_idx": 10
1604
+ },
1605
+ {
1606
+ "type": "table",
1607
+ "img_path": "images/62de80cd73e9ea1a98889b86e0da15497995b341816f861b0eb46aedf0901f25.jpg",
1608
+ "table_caption": [
1609
+ "Table 5: Accuracy (Eq. 2) results for large (3 to 5 examples per class per task) episodic memory sizes. Here we only compare methods that use an episodic memory. Metrics are averaged over five runs using different random seeds."
1610
+ ],
1611
+ "table_footnote": [],
1612
+ "table_body": "<table><tr><td>METHOD</td><td colspan=\"2\">PERMUTED MNIST</td><td colspan=\"2\">ROTATED MNIST</td></tr><tr><td></td><td>|M| = 600</td><td>|M| = 1000</td><td>|M| = 600</td><td>|M| = 1000</td></tr><tr><td>VCL-RANDOM</td><td>55.8 (±1.29)</td><td>58.5 (±1.21)</td><td>61.2 (±0.12)</td><td>64.4 (±0.16)</td></tr><tr><td>AGEM</td><td>63.2 (±1.47)</td><td>64.1 (±0.74)</td><td>49.9 (±1.49)</td><td>53.0 (±1.52)</td></tr><tr><td>MER</td><td>74.9 (±0.49)</td><td>78.3 (±0.19)</td><td>76.5 (±0.30)</td><td>77.3 (±1.13)</td></tr><tr><td>ER-RING</td><td>73.5 (±0.43)</td><td>75.8 (±0.24)</td><td>74.7 (±0.56)</td><td>76.5 (±0.48)</td></tr><tr><td>HAL (OURS)</td><td>76.2 (±0.52)</td><td>78.4 (±0.27)</td><td>77.0 (±0.66)</td><td>78.7 (±0.97)</td></tr></table>",
1613
+ "bbox": [
1614
+ 238,
1615
+ 104,
1616
+ 759,
1617
+ 218
1618
+ ],
1619
+ "page_idx": 11
1620
+ },
1621
+ {
1622
+ "type": "table",
1623
+ "img_path": "images/9234d1c0f36bf0cbf27b6c531f18863adb5161b9842017bc8ba849cb196e61b6.jpg",
1624
+ "table_caption": [],
1625
+ "table_footnote": [],
1626
+ "table_body": "<table><tr><td>METHOD</td><td colspan=\"2\">SPLIT CIFAR</td><td colspan=\"2\">SPLIT MINIIMAGENET</td></tr><tr><td></td><td>|M| = 255</td><td>|M| = 425</td><td>|M| = 255</td><td>|M| = 425</td></tr><tr><td>ICARL</td><td>51.7 (±1.41)</td><td>51.2 (±1.32)</td><td>-</td><td>-</td></tr><tr><td>AGEM</td><td>56.9 (±3.45)</td><td>59.9 (±2.64)</td><td>51.6 (±2.69)</td><td>54.3 (±1.56)</td></tr><tr><td>MER</td><td>57.7 (±2.59)</td><td>60.6 (±2.09)</td><td>49.4 (±3.43)</td><td>54.8 (±1.79)</td></tr><tr><td>ER-RING</td><td>60.9 (±1.44)</td><td>62.6 (±1.77)</td><td>53.5 (±1.42)</td><td>54.2 (±3.23)</td></tr><tr><td>HAL (OURS)</td><td>62.9 (±1.49)</td><td>64.4 (±2.15)</td><td>56.5 (±0.87)</td><td>57.2 (±1.54)</td></tr></table>",
1627
+ "bbox": [
1628
+ 241,
1629
+ 233,
1630
+ 751,
1631
+ 345
1632
+ ],
1633
+ "page_idx": 11
1634
+ },
1635
+ {
1636
+ "type": "table",
1637
+ "img_path": "images/39e86ee5265bf8d6bd0eca63a60bf1e77f44ab71810252d7e0e724d49a7991a0.jpg",
1638
+ "table_caption": [
1639
+ "Table 6: Forgetting (Eq. 3) results for large (3 to 5 examples per class per task) episodic memory sizes. Here we only compare methods that use an episodic memory. Averages and standard deviations are computed over five runs using different random seeds."
1640
+ ],
1641
+ "table_footnote": [],
1642
+ "table_body": "<table><tr><td>METHOD</td><td colspan=\"2\">PERMUTED MNIST</td><td colspan=\"2\">ROTATED MNIST</td></tr><tr><td></td><td>|M| = 600</td><td>|M| = 1000</td><td>|M| = 600</td><td>|M| = 1000</td></tr><tr><td>VCL-RANDOM</td><td>0.39 (±0.01)</td><td>0.36 (±0.01)</td><td>0.37 (±0.01)</td><td>0.33 (±0.01)</td></tr><tr><td>AGEM</td><td>0.20 (±0.01)</td><td>0.19 (±0.01)</td><td>0.41 (±0.01)</td><td>0.38 (±0.01)</td></tr><tr><td>MER</td><td>0.14 (±0.01)</td><td>0.09 (±0.01)</td><td>0.12 (±0.01)</td><td>0.11 (±0.01)</td></tr><tr><td>ER-RING</td><td>0.09 (±0.01)</td><td>0.07 (±0.01)</td><td>0.15 (±0.01)</td><td>0.13 (±0.01)</td></tr><tr><td>HAL (OURS)</td><td>0.07 (±0.01)</td><td>0.05 (±0.01)</td><td>0.12 (±0.01)</td><td>0.11 (±0.01)</td></tr></table>",
1643
+ "bbox": [
1644
+ 238,
1645
+ 416,
1646
+ 759,
1647
+ 527
1648
+ ],
1649
+ "page_idx": 11
1650
+ },
1651
+ {
1652
+ "type": "table",
1653
+ "img_path": "images/237360b2dbdc6e72654f42e7702f5e6e8bdf283e7b553cb3929e05477c6adb99.jpg",
1654
+ "table_caption": [],
1655
+ "table_footnote": [],
1656
+ "table_body": "<table><tr><td>METHOD</td><td colspan=\"2\">SPLIT CIFAR</td><td colspan=\"2\">SPLIT MINIIMAGENET</td></tr><tr><td></td><td>|M| = 255</td><td>|M| = 425</td><td>|M| = 255</td><td>|M| = 425</td></tr><tr><td>ICARL</td><td>0.13 (±0.02)</td><td>0.13 (±0.02)</td><td>-</td><td>-</td></tr><tr><td>AGEM</td><td>0.13 (±0.03)</td><td>0.10 (±0.02)</td><td>0.10 (±0.02)</td><td>0.08 (±0.01)</td></tr><tr><td>MER</td><td>0.11 (±0.01)</td><td>0.09 (±0.02)</td><td>0.12 (±0.02)</td><td>0.07 (±0.01)</td></tr><tr><td>ER-RING</td><td>0.09 (±0.01)</td><td>0.06 (±0.01)</td><td>0.07 (±0.02)</td><td>0.08 (±0.02)</td></tr><tr><td>HAL (OURS)</td><td>0.08 (±0.01)</td><td>0.06 (±0.01)</td><td>0.06 (±0.01)</td><td>0.06 (±0.01)</td></tr></table>",
1657
+ "bbox": [
1658
+ 241,
1659
+ 542,
1660
+ 751,
1661
+ 655
1662
+ ],
1663
+ "page_idx": 11
1664
+ },
1665
+ {
1666
+ "type": "list",
1667
+ "sub_type": "text",
1668
+ "list_items": [
1669
+ "- learning rate: [0.003, 0.01, 0.03 (MNIST, CIFAR, miniImageNet), 0.1, 0.3, 1.0]",
1670
+ "- within batch meta-learning rate: [0.01, 0.03, 0.1 (MNIST, CIFAR, miniImageNet), 0.3, 1.0]",
1671
+ "- current batch learning rate multiplier: [1, 2, 5 (CIFAR, miniImageNet), 10 (MNIST)]"
1672
+ ],
1673
+ "bbox": [
1674
+ 98,
1675
+ 684,
1676
+ 888,
1677
+ 758
1678
+ ],
1679
+ "page_idx": 11
1680
+ },
1681
+ {
1682
+ "type": "list",
1683
+ "sub_type": "text",
1684
+ "list_items": [
1685
+ "- ER-Ring",
1686
+ "- learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]",
1687
+ "HAL",
1688
+ "- learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]",
1689
+ "- regularization $(\\lambda)$ : [0.01, 0.03, 0.1 (MNIST perm, rot), 0.3 (miniImageNet), 1 (CIFAR), 3, 10]"
1690
+ ],
1691
+ "bbox": [
1692
+ 86,
1693
+ 762,
1694
+ 888,
1695
+ 888
1696
+ ],
1697
+ "page_idx": 11
1698
+ },
1699
+ {
1700
+ "type": "list",
1701
+ "sub_type": "text",
1702
+ "list_items": [
1703
+ "- mean embedding strength $(\\gamma)$ : [0.01, 0.03, 0.1 (MNIST perm, rot, CIFAR, miniImageNet), 0.3, 1, 3, 10]",
1704
+ "- decay rate $(\\beta)$ : 0.5",
1705
+ "gradient steps on anchors $(k)$ : 100"
1706
+ ],
1707
+ "bbox": [
1708
+ 98,
1709
+ 68,
1710
+ 800,
1711
+ 130
1712
+ ],
1713
+ "page_idx": 12
1714
+ },
1715
+ {
1716
+ "type": "text",
1717
+ "text": "D Hyperparameter Sensitivity",
1718
+ "text_level": 1,
1719
+ "bbox": [
1720
+ 359,
1721
+ 142,
1722
+ 633,
1723
+ 159
1724
+ ],
1725
+ "page_idx": 12
1726
+ },
1727
+ {
1728
+ "type": "text",
1729
+ "text": "In Table 7, we report the performance of HAL against a range of hyperparameters. For a given hyperparameter in the table, all the other hyperparameters are set to their optimal values found in Sec C of the appendix. HAL is not sensitive to the choice of hyperparameters.",
1730
+ "bbox": [
1731
+ 81,
1732
+ 161,
1733
+ 915,
1734
+ 205
1735
+ ],
1736
+ "page_idx": 12
1737
+ },
1738
+ {
1739
+ "type": "table",
1740
+ "img_path": "images/a80e3f1dacbb2aefe74473a816f4b6c530f0a0ec46239fd70a533addd40747ec.jpg",
1741
+ "table_caption": [
1742
+ "Table 7: Average Accuracy of HAL on different values of hyperparameters. For a given hyperparameter in the table, all the other hyperparameters are set to their optimal values found in Sec C of the appendix."
1743
+ ],
1744
+ "table_footnote": [],
1745
+ "table_body": "<table><tr><td>DATASET</td><td>λ</td><td>Acc</td><td>γ</td><td>Acc</td><td>β</td><td>Acc</td></tr><tr><td rowspan=\"3\">PERMUTED MNIST</td><td>0.01</td><td>72.8 ±(0.52)</td><td>0.01</td><td>73.1 ±(0.20)</td><td>0.1</td><td>72.5 ±(0.95)</td></tr><tr><td>0.1</td><td>73.6 ±(0.31)</td><td>0.1</td><td>73.6 ±(0.31)</td><td>0.5</td><td>73.6 ±(0.31)</td></tr><tr><td>1.0</td><td>73.2 ±(0.85)</td><td>1.0</td><td>73.4 ±(0.41)</td><td>0.9</td><td>72.9 ±(0.39)</td></tr><tr><td rowspan=\"3\">SPLIT CIFAR100</td><td>0.01</td><td>58.5 ±(1.25)</td><td>0.01</td><td>59.8 ±(0.65)</td><td>0.1</td><td>58.7 ±(1.17)</td></tr><tr><td>0.1</td><td>59.2 ±(0.91)</td><td>0.1</td><td>60.4 ±(0.54)</td><td>0.5</td><td>60.4 ±(0.54)</td></tr><tr><td>1.0</td><td>60.4 ±(0.54)</td><td>1.0</td><td>60.2 ±(1.21)</td><td>0.9</td><td>59.6 ±(1.05)</td></tr></table>",
1746
+ "bbox": [
1747
+ 204,
1748
+ 255,
1749
+ 789,
1750
+ 368
1751
+ ],
1752
+ "page_idx": 12
1753
+ },
1754
+ {
1755
+ "type": "text",
1756
+ "text": "E HAL Algorithm",
1757
+ "text_level": 1,
1758
+ "bbox": [
1759
+ 408,
1760
+ 400,
1761
+ 586,
1762
+ 419
1763
+ ],
1764
+ "page_idx": 12
1765
+ },
1766
+ {
1767
+ "type": "text",
1768
+ "text": "Algorithm 1 provides a pseudocode for HAL.",
1769
+ "bbox": [
1770
+ 83,
1771
+ 420,
1772
+ 385,
1773
+ 435
1774
+ ],
1775
+ "page_idx": 12
1776
+ },
1777
+ {
1778
+ "type": "code",
1779
+ "sub_type": "code",
1780
+ "code_caption": [
1781
+ "Algorithm 1 Training of HAL on sequential data $\\mathcal{D} = \\{\\mathcal{D}_1,\\dots ,\\mathcal{D}_T\\}$ , with total replay buffer size 'mem sz', learning rate $\\alpha$ regularization strength $\\lambda$ mean embedding decay $\\beta$ mean embedding strength $\\eta$"
1782
+ ],
1783
+ "code_body": "1: procedure HAL(D, mem sz, $\\alpha ,\\lambda ,\\beta$ \n2: $\\mathcal{M}\\gets \\{\\} *\\mathrm{mem\\_sz}$ \n3: $\\{e_1,\\dots ,e_T\\} \\leftarrow \\{\\}$ \n4: for $t\\in \\{1,\\dots ,T\\}$ do \n5: $\\phi_t\\gets \\vec{0}$ \n6: for $\\mathcal{B}\\sim \\mathcal{D}_t$ do ▷ Sample a batch from current task \n7: $\\mathcal{B}_{\\mathcal{M}}\\sim \\mathcal{M}$ ▷ Sample a batch from episodic memory \n8: $\\tilde{\\theta}\\gets \\theta -\\alpha \\cdot \\nabla_{\\theta}\\ell (\\mathcal{B}\\cup \\mathcal{B}_{\\mathcal{M}})$ ▷ Temporary parameter update \n9: $\\theta \\gets \\theta -\\alpha \\cdot \\nabla_{\\theta}\\left(\\ell (\\mathcal{B}\\cup \\mathcal{B}_{\\mathcal{M}}) + \\lambda \\cdot \\sum_{t^{\\prime} < t}(f_{\\theta}(e_{t^{\\prime}},t^{\\prime}) - f_{\\tilde{\\theta}}(e_{t^{\\prime}},t^{\\prime}))^{2}\\right)$ ▷ Anchoring objective (Eq. 5) \n10: $\\phi_t\\gets \\beta \\cdot \\phi_t + (1 - \\beta)\\cdot \\phi (\\mathcal{B})$ ▷ Running average of mean embedding \n11: $\\mathcal{M}\\gets$ UpdateMemory(M,B) ▷ Add samples to a ring buffer \n12: end for \n13: $e_t,\\theta \\gets$ GetAnchors(M, $\\theta ,\\phi_t,\\eta)$ ▷ Get anchors for current task \n14: end for \n15: return $\\theta ,\\mathcal{M}$ \n16: end procedure \n1: procedure GETANCHORS(M, $\\theta_t,\\phi_t,\\gamma)$ \n2: $\\theta \\gets \\theta_t$ \n3: for $\\mathcal{B}_{\\mathcal{M}}\\sim \\mathcal{M}$ do \n4: $\\theta \\gets \\theta -\\alpha \\cdot \\nabla_{\\theta}\\ell (\\mathcal{B}_{\\mathcal{M}})$ ▷ Finetune $\\theta_t$ by taking SGD steps on the episodic memory \n5: end for \n6: $\\theta_{\\mathcal{M}}\\gets \\theta$ ▷ Store the updated parameter \n7: $e_t\\gets$ rand() ▷ Initialize the task anchors \n8: for $1,\\dots ,k$ do \n9: $e_t\\gets e_t + \\alpha \\cdot \\nabla_{e_t}\\left(\\ell (f_{\\theta_{\\mathcal{M}}} (e_t,t),y_t) - \\ell (f_{\\theta_t}(e_t,t),y_t) - \\gamma (\\phi (e_t) - \\phi_t)^2\\right)$ ▷ Maximize forgetting (Eq. 9) \n10: end for \n11: return $e_t,\\theta_t$ \n12: end procedure",
1784
+ "guess_lang": "latex",
1785
+ "bbox": [
1786
+ 84,
1787
+ 482,
1788
+ 913,
1789
+ 872
1790
+ ],
1791
+ "page_idx": 12
1792
+ }
1793
+ ]
2002.08xxx/2002.08165/a4f0c2ad-a173-4b99-8972-7a973b7b598f_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08165/a4f0c2ad-a173-4b99-8972-7a973b7b598f_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6bae576a12a573dd1a614d51db0279502b38942611f306f1b281f9da8a20ba9
3
+ size 4632185
2002.08xxx/2002.08165/full.md ADDED
@@ -0,0 +1,428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Using Hindsight to Anchor Past Knowledge in Continual Learning
2
+
3
+ Arslan Chaudhry $^{1,*}$ , Albert Gordo $^{2}$ , Puneet K. Dokania $^{1}$ , Philip Torr $^{1}$ , David Lopez-Paz $^{2}$
4
+
5
+ <sup>1</sup>University of Oxford, <sup>2</sup>Facebook AI
6
+
7
+ # Abstract
8
+
9
+ In continual learning, the learner faces a stream of data whose distribution changes over time. Modern neural networks are known to suffer under this setting, as they quickly forget previously acquired knowledge. To address such catastrophic forgetting, many continual learning methods implement different types of experience replay, re-learning on past data stored in a small buffer known as episodic memory. In this work, we complement experience replay with a new objective that we call "anchoring", where the learner uses bilevel optimization to update its knowledge on the current task, while keeping intact predictions on some anchor points of past tasks. These anchor points are learned using gradient-based optimization to maximize forgetting, which is approximated by fine-tuning the currently trained model on the episodic memory of past tasks. Experiments on several supervised learning benchmarks for continual learning demonstrate that our approach improves the standard experience replay in terms of both accuracy and forgetting metrics and for various sizes of episodic memory.
10
+
11
+ # 1 Introduction
12
+
13
+ We study the problem of continual learning, where a machine learning model experiences a sequence of tasks. Each of these tasks is presented as a stream of input-output pairs, where each pair is drawn identically and independently (iid) from the corresponding task probability distribution. Since the length of the learning experience is not specified a priori, the learner can only assume a single pass over the data and, due to space constraints, store nothing but a few examples in a small episodic memory. At all times during the lifetime of the model, predictions on examples from any task may be requested. Addressing continual learning is an important research problem, since it would enable the community to move past the assumption of "identically and independently distributed data", and allow a better deployment of machine learning in-the-wild. However, continual learning presents one major challenge, catastrophic forgetting (McCloskey and Cohen 1989). That is, as the learner experiences new tasks, it quickly forgets previously acquired knowledge. This is a hindrance especially for state-of-the-art deep learn
14
+
15
+ ing models, where all parameters are updated after observing each example.
16
+
17
+ Continual learning has received increasing attention from the scientific community during the last decade. The state of the art algorithms for continual learning fall into three categories. First, regularization-based approaches reduce forgetting by restricting the updates in model parameters that were important for previous tasks (Kirkpatrick et al. 2016; Rebuffi, Kolesnikov, and Lampert 2017; Aljundi et al. 2018; Chaudhry et al. 2018; Nguyen et al. 2018). However, when the number of tasks are large, the regularization of past tasks becomes obsolete, leading to the representation drift (Titsias et al. 2019). Second, modular approaches (Rusu et al. 2016; Lee et al. 2017) add new modules to the learner as new tasks are learned. While modular architectures overcome forgetting by design, the memory complexity of these approaches scales with the number of tasks. Third, the memory-based methods (Lopez-Paz and Ranzato 2017; Hayes, Cahill, and Kanan 2018; Isele and Cosgun 2018; Riemer et al. 2019; Chaudhry et al. 2019a) store a few examples from past tasks in an "episodic memory", to be revisited when training for a new task. Contrary to modular approaches, memory-based methods add a very small memory overhead for each new task. Memory-based methods are the reigning state-of-the-art, but their performance remains a far cry from a simple oracle accessing all the data at once, hence turning the continual learning experience back into a normal supervised learning task. Despite intense research efforts, such gap in performance renders the problem of continual learning an open research question.
18
+
19
+ Contribution We propose Hindsight Anchor Learning (HAL), a continual learning approach to improve the performance of memory-based continual learning algorithms. HAL leverages bilevel optimization to regularize the training objective with one representational point per class per task, called anchors. These anchors are constructed via gradient ascent in the image space, by maximizing one approximation to the forgetting loss for the current task throughout the entire continual learning experience. We estimate the amount of forgetting that the learner would suffer on these anchors if it were to be trained on future tasks in hindsight: that is, by measuring forgetting on a temporary predictor that has been fine-tuned on the episodic memory of past tasks.
20
+
21
+ Anchors learned in such a way lie close to the classifier's decision boundary, as visualized in Figure 2. Since points near the decision boundary are the easiest to forget when updating the learner on future tasks, keeping prediction invariant on such anchors preserves the performance of previous tasks effectively. In sum, the overall parameter update of HAL uses nested optimization to minimize the loss of the current mini-batch, while keeping the predictions of all anchors invariant.
22
+
23
+ Results We compare HAL to EWC (Kirkpatrick et al. 2016), ICARL (Rebuffi, Kolesnikov, and Lampert 2017), VCL (Nguyen et al. 2018), AGEM (Chaudhry et al. 2019a), experience replay (Hayes, Cahill, and Kanan 2018; Riemer et al. 2019), MER (Riemer et al. 2019), and MIR (Aljundi et al. 2019a) across four commonly used benchmarks in supervised continual learning (MNIST permutations, MNIST rotations, split CIFAR-100, and split miniImageNet). In these experiments, HAL achieves state-of-the-art performance, improving accuracy by up to $7.5\%$ and reducing forgetting by almost $23\%$ over the experience replay baseline. We show that these results hold for various sizes of episodic memory (between 1 and 5 examples per class per task).
24
+
25
+ We now begin our exposition by reviewing the continual learning setup. The rest of the manuscript then presents our new algorithm HAL (Section 3), showcases its empirical performance (Section 4), surveys the related literature (Section 5), and offers some concluding remarks (Section 6).
26
+
27
+ # 2 Continual learning setup
28
+
29
+ In continual learning, a learner experiences a stream of data triplets $(x_{i},y_{i},t_{i})$ containing an input $x_{i}$ , a target $y_{i}$ , and a task identifier $t_i\in \mathcal{T} = \{1,\ldots ,T\}$ . Each input-target pair $(x_{i},y_{i})\in \mathcal{X}\times \mathcal{Y}_{t_{i}}$ is an identical and independently distributed example drawn from some unknown distribution $P_{t_i}(X,Y)$ , representing the $t_i$ -th learning task. We assume that the tasks are experienced in order ( $t_i\leq t_j$ for all $i\leq j$ ), and that the total number of tasks $T$ is not known a priori. Under this setup, our goal is to estimate a predictor $f_{\theta} = (w\circ \phi):\mathcal{X}\times \mathcal{T}\to \mathcal{Y}$ , parameterized by $\theta \in \mathbb{R}^P$ , and composed of a feature extractor $\phi :\mathcal{X}\rightarrow \mathcal{H}$ and a classifier $w:\mathcal{H}\to \mathcal{V}$ , that minimizes the multi-task error
30
+
31
+ $$
32
+ \frac {1}{T} \sum_ {t = 1} ^ {T} \mathbb {E} _ {(x, y) \sim P _ {t}} [ \ell (f (x, t), y) ], \tag {1}
33
+ $$
34
+
35
+ where $\mathcal{Y} = \cup_{t\in \mathcal{T}}\mathcal{Y}_t$ , and $\ell :\mathcal{Y}\times \mathcal{Y}\to \mathbb{R}$ is a loss function.
36
+
37
+ Inspired by prior literature in continual learning, (Lopez-Paz and Ranzato 2017; Hayes, Cahill, and Kanan 2018; Riemer et al. 2019; Chaudhry et al. 2019a), we consider streams of data that are experienced only once. Therefore, the learner cannot revisit any but a small number of data triplets chosen to be stored in a small episodic memory $\mathcal{M}$ . More specifically, we consider tiny "ring" episodic memories, which contain the last $m$ observed examples per class for each of the experienced tasks, where $m \in \{1,3,5\}$ . That is, considering as variables the number of experienced tasks $t$ and examples $n$ , we study continual learning algorithms with a $O(t)$ memory footprint.
38
+
39
+ Following Lopez-Paz and Ranzato (2017) and Chaudhry et al. (2018), we monitor two statistics to evaluate the quality of continual learning algorithms: final average accuracy, and final maximum forgetting. First, the final average accuracy of a predictor is defined as
40
+
41
+ $$
42
+ \text {A c c u r a c y} = \frac {1}{T} \sum_ {j = 1} ^ {T} a _ {T, j}, \tag {2}
43
+ $$
44
+
45
+ where $a_{i,j}$ denotes the test accuracy on task $j$ after the model has finished experiencing task $i$ . That is, the final average accuracy measures the test performance of the model at every task after the continual learning experience has finished. Second, the final maximum forgetting is defined as
46
+
47
+ $$
48
+ \text {F o r g e t t i n g} = \frac {1}{T - 1} \sum_ {j = 1} ^ {T - 1} \max _ {l \in \{1, \dots , T - 1 \}} \left(a _ {l, j} - a _ {T, j}\right), \tag {3}
49
+ $$
50
+
51
+ that is, the decrease in performance for each of the tasks between their peak accuracy and their accuracy after the continual learning experience has finished.
52
+
53
+ Finally, following Chaudhry et al. (2019a), we use the first $k < T$ tasks to cross validate the hyper-parameters of each of the considered continual learning algorithms. These first $k$ tasks are not considered when computing the final average accuracy and maximum forgetting metrics.
54
+
55
+ # 3 Hindsight Anchor Learning (HAL)
56
+
57
+ The current state of the art algorithms for continual learning are based on experience replay (Hayes, Cahill, and Kanan 2018; Riemer et al. 2019; Chaudhry et al. 2019b). These methods update the model $f_{\theta}$ while storing a small amount of past observed triplets in an episodic memory $\mathcal{M} = \{(x', y', t')\}$ . For a new minibatch of observations $\mathcal{B} := \{(x, y, t)\}$ from task $t$ , the learner samples a minibatch $\mathcal{B}_{\mathcal{M}}$ from $\mathcal{M}$ at random, and employ the rule $\theta \gets \theta - \alpha \cdot \nabla_{\theta} \ell(\mathcal{B} \cup \mathcal{B}_{\mathcal{M}})$ to update its parameters, where
58
+
59
+ $$
60
+ \ell (\mathcal {A}) = \frac {1}{| \mathcal {A} |} \sum_ {(x, y, t) \in \mathcal {A}} \ell (f _ {\theta} (x, t), y) \tag {4}
61
+ $$
62
+
63
+ denotes the average loss across a collection of triplets $\mathcal{A} = \mathcal{B} \cup \mathcal{B}_{\mathcal{M}}$ . In general, $\mathcal{B}_{\mathcal{M}}$ is constructed to have the same size as $\mathcal{B}$ , but it can be smaller if the episodic memory $\mathcal{M}$ does not yet contain enough samples.
64
+
65
+ The episodic memory $\mathcal{M}$ reminds the predictor about how to perform past tasks using only a small amount of data. As such, the behaviour of the predictor on past tasks outside the data stored in $\mathcal{M}$ is not guaranteed. Moreover, since $\mathcal{M}$ is usually very small, the performance of the predictor becomes sensitive to the choice of samples stored in the episodic memory. Because of this reason, we propose to further fix the behaviour of the predictor at a collection of carefully constructed anchor points $e_{t'}$ , one per class per past task $t'$ , at each parameter update.
66
+
67
+ Let us assume that the anchor points $e_{t'}$ are given—we will see later how to construct them in practice. To constrain
68
+
69
+ the change of the predictor at these anchor points, we propose a two-step parameter update rule:
70
+
71
+ $$
72
+ \begin{array}{l} \tilde {\theta} \leftarrow \theta - \alpha \nabla_ {\theta} \ell (\mathcal {B} \cup \mathcal {B} _ {\mathcal {M}}), \\ \theta \leftarrow \theta - \alpha \nabla_ {\theta} \left(\ell \left(\mathcal {B} \cup \mathcal {B} _ {\mathcal {M}}\right) + \lambda \sum_ {t ^ {\prime} < t} \left(f _ {\theta} \left(e _ {t ^ {\prime}}, t ^ {\prime}\right) - f _ {\tilde {\theta}} \left(e _ {t ^ {\prime}}, t ^ {\prime}\right)\right) ^ {2}\right). \tag {5} \\ \end{array}
73
+ $$
74
+
75
+ The first step computes a temporary parameter vector $\tilde{\theta}$ by minimizing the loss at a minibatch from the current task $t$ , and the episodic memory of past tasks (this is the usual experience replay parameter update). The second step employs a nested optimization to perform the actual update of the parameter $\theta$ , which trades-off the minimization of $(a)$ the loss value at the current minibatch and the episodic memory, as well as $(b)$ changes in predictions at the anchor points for all past tasks. The proposed rule not only updates the predictor conservatively, thereby reducing forgetting, but also, as shown analytically in Appendix A, improves the forward transfer by maximizing the inner product between the gradients on $\mathcal{B} \cup \mathcal{B}_{\mathcal{M}}$ and anchor points. In this respect, it bears similarity to gradient-based meta-learning approaches (Finn, Abbeel, and Levine 2017; Nichol and Schulman 2018; Riemer et al. 2019).
76
+
77
+ Next, let us discuss how to choose the anchor points, $e_t$ (one per class per task) as to preserve the performance of the current task throughout the entire learning experience. Ideally, the anchor points should attempt to minimize the forgetting on the current task as the learner is updated with future tasks. One could achieve this by letting $e_t$ to be an example from the task $t$ that would undergo maximum forgetting during the entire continual learning experience. Then, requiring the predictions to remain invariant at $e_t$ , by using Eq. 5, could effectively reduce forgetting on the current task. Mathematically, the desirable $e_t$ for the label $y_t$ is obtained by maximizing the following Forgetting loss:
78
+
79
+ $$
80
+ (e _ {t}, y _ {t}) \leftarrow \underset {(x, y) \sim P _ {t}} {\arg \max } \ell \left(f _ {\theta_ {T}} (x, t), y _ {t}\right) - \ell \left(f _ {\theta_ {t}} (x, t), y _ {t}\right), \tag {6}
81
+ $$
82
+
83
+ where $\theta_{t}$ is the parameter vector obtained after training on task $t$ and $\theta_{T}$ is the final parameter vector obtained after the entire learning experience. Thus, keeping the predictions intact on the pair $(e_t,y_t)$ above can effectively preserve the performance of task $t$ . However, the idealistic Eq. 6 requires access to $(a)$ the entire distribution $P_{t}$ to compute the maximization, and $(b)$ access to all future distributions $t^{\prime} > t$ to compute the final parameter vector $\theta_{T}$ . Both are unrealistic assumptions under the continual learning setup described in Section 2, as the former requires storing the entire dataset of task $t$ , and the latter needs access to future tasks.
84
+
85
+ To circumvent $(a)$ , we can recast Eq. 6 as an optimization problem and learn the desired $e_t$ by initializing it at random and using $k$ gradient ascent updates for a given label $y_t$ in the image space $(\mathcal{X} \in \mathbb{R}^D)$ . The proposed optimization objective is given by:
86
+
87
+ $$
88
+ \max _ {e _ {t} \in \mathbb {R} ^ {D}} \left(\underbrace {\ell \left(f _ {\theta_ {T}} \left(e _ {t} , t\right) , y _ {t}\right) - \ell \left(f _ {\theta_ {t}} \left(e _ {t} , t\right) , y _ {t}\right)} _ {\text {F o r g e t t i n g l o s s}} - \gamma \underbrace {\left(\phi \left(e _ {t}\right) - \phi_ {t}\right) ^ {2}} _ {\text {M e a n e m b e d d i n g l o s s}}\right), \tag {7}
89
+ $$
90
+
91
+ where the regularizer, given by the mean embedding loss, constrains the search space by trying to push the anchor point embedding towards the mean data embedding. We recall that $\phi$ denotes the feature extractor of the predictor, and $\phi_t$ is the neural mean embedding (Smola et al. 2007) of all observed examples from task $t$ . Since the feature extractor is updated after experiencing each data point, the mean embedding $\phi_t$ are computed as running averages. That is, after observing a minibatch $\mathcal{B} = \{(x,y,t)\}$ of task $t$ , we update:
92
+
93
+ $$
94
+ \phi_ {t} \leftarrow \beta \cdot \phi_ {t} + (1 - \beta) \frac {1}{| \mathcal {B} |} \sum_ {x \in \mathcal {B}} \phi (x), \tag {8}
95
+ $$
96
+
97
+ where $\phi_t$ is initialized to zero at the beginning of the learning experience. In our experiments, we learn one $e_t$ per class for each task. We fix the $y_t$ to the corresponding class label, and discard $\phi_t$ after training on task $t$ . Learning $e_t$ in this manner circumvents the requirement of storing the entire distribution $P_t$ for the current task $t$ .
98
+
99
+ Still, Eq. 7 requires the parameter vector $\theta_T$ , to be obtained in the distant future after all learning tasks have been experienced. To waive this impossible requirement, we propose to approximate the future by simulating the past. That is, instead of measuring the forgetting that would happen after the model is trained for future tasks, we measure the forgetting that happens when the model is fine-tuned for past tasks. In this way, we say that forgetting is estimated in hind-sight, using past experiences. More concretely, after training on task $t$ and obtaining the parameter vector $\theta_t$ , we minimize the loss during one epoch on the episodic memory $\mathcal{M}$ to obtain a temporary parameter vector $\theta_{\mathcal{M}}$ that approximates $\theta_T$ , and update $e_t$ as:
100
+
101
+ $$
102
+ \begin{array}{l} e _ {t} \leftarrow e _ {t} + \alpha \nabla_ {e _ {t}} \left(\ell \left(f _ {\theta_ {\mathcal {M}}} \left(e _ {t}, t\right), y _ {t}\right) - \ell \left(f _ {\theta_ {t}} \left(e _ {t}, t\right), y _ {t}\right) \right. \\ \left. - \gamma \left(\phi \left(e _ {t}\right) - \phi_ {t}\right) ^ {2}\right). \tag {9} \\ \end{array}
103
+ $$
104
+
105
+ This completes the description of our proposed algorithm for continual learning, which combines experience replay with anchors learned in hindsight. We call our approach Hind-sight Anchor Learning (HAL) and summarize the entire learning process as follows:
106
+
107
+ # Hindsight Anchor Learning (HAL)
108
+
109
+ - Initialize $\theta \sim P(\theta)$ and $\{e_t \sim P(e)\}_{t=1}^T$ from normal distributions $P(\theta)$ and $P(e)$ , $\mathcal{M} = \{\}$ .
110
+ - Initialize $\mathcal{M} = \{\}$
111
+ - For each task $t = 1, \dots, T$ :
112
+
113
+ - For each minibatch $\mathcal{B}$ from task $t$ :
114
+
115
+ * Sample $\mathcal{B}_{\mathcal{M}}$ from $\mathcal{M}$
116
+ * Update $\theta$ using Eq. 5
117
+ * Update ${\phi }_{t}$ using Eq. 8
118
+ * Update $\mathcal{M}$ by adding $\mathcal{B}$ in a FIFO ring buffer
119
+
120
+ - Fine-tune on $\mathcal{M}$ to obtain $\theta_{\mathcal{M}}$
121
+ Build $e_t$ using Eq. 9 k times
122
+ -Discard $\phi_t$
123
+
124
+ - Return $\theta$ .
125
+
126
+ We contrast HAL with another idea, Maximally Interfered Retrieval (MIR) (Aljundi et al. 2019a) in that MIR selects a minibatch from an already populated replay buffer at each training step, whereas HAL writes to the replay buffer at the end of each task and samples randomly from the replay buffer. Furthermore, MIR selects the minibatch by measuring a one-step increase in loss incurred by the minibatch whereas HAL uses an approximate forgetting loss Eq. 9 that measures an increase over multiple training steps.
127
+
128
+ # 4 Experiments
129
+
130
+ We now report experiments on standard image classification benchmarks for continual learning.
131
+
132
+ # Datasets and tasks
133
+
134
+ We perform experiments on four supervised classification benchmarks for continual learning. Permuted MNIST is a variant of the MNIST dataset of handwritten digits (LeCun 1998) where each task applies a fixed random pixel permutation to the original dataset. This benchmark contains 23 tasks, each with 1000 samples from 10 different classes. Rotated MNIST is another variant of MNIST, where each task applies a fixed random image rotation (between 0 and 180 degrees) to the original dataset. This benchmark contains 23 tasks, each with 1000 samples from 10 different classes. Split CIFAR is a variant of the CIFAR-100 dataset (Krizhevsky and Hinton 2009; Zenke, Poole, and Ganguli 2017), where each task contains the data pertaining 5 random classes (without replacement) out of the total 100 classes. This benchmark contains 20 tasks, each with 250 samples per each of the 5 classes. Split miniImageNet is a variant of the ImageNet dataset (Russakovsky et al. 2015; Vinyals et al. 2016), containing a subset of images and classes from the original dataset. This benchmark contains 20 tasks, each with 250 samples per each of the 5 classes.
135
+
136
+ For all datasets, the first 3 tasks are used for hyperparameter optimization (grids available in Appendix C). The learner can perform multiple epochs on these three initial tasks that are later discarded for evaluation.
137
+
138
+ # Baselines
139
+
140
+ We compare our proposed model HAL to the following baselines. Finetune is a single model trained on a stream of data, without any regularization or episodic memory. ICARL (Rebuffi, Kolesnikov, and Lampert 2017) uses nearest-mean-of-exemplar rule for classification and avoids catastrophic forgetting by regularizing over the feature representations of previous tasks using knowledge distillation loss (Hinton, Vinyals, and Dean 2014). EWC (Kirkpatrick et al. 2016) is a continual learning method that limits changes to parameters critical to past tasks, as measured by the Fisher information matrix. VCL (Nguyen et al. 2018) is a continual learning method that uses online variational inference for approximating the posterior distribution, which is then used to regularize the model. AGEM (Chaudhry et al. 2019a) is a continual learning method improving on (Lopez-Paz and Ranzato 2017), which uses an episodic memory of
141
+
142
+ parameter gradients to limit forgetting. MER (Riemer et al. 2019) is a continual learning method that combines episodic memory with meta-learning to limit forgetting. ER-Ring (Chaudhry et al. 2019b) is a continual learning method that uses a ring buffer as episodic memory. MIR (Aljundi et al. 2019a) is a continual learning method based on experience replay that selects a minibatch from the episodic memory that incurs the maximum change in loss. Multitask is an oracle baseline that has access to all data to optimize Eq. 1, useful to estimate an upper bound on the obtainable accuracy (Eq. 2). Clone-and-finetune is an oracle baseline training one independent model per task, where the model for task $t'$ is initialized by cloning the parameters of the model for task $t' - 1$ .
143
+
144
+ All baselines use the same neural network architecture: a perceptron with two hidden layers of 256 ReLU neurons in the MNIST experiments, and a ResNet18, with three times less feature maps across all layers, similar to Lopez-Paz and Ranzato (2017), in CIFAR and ImageNet experiments. The task identifiers are used to select the output head in the CIFAR and ImageNet experiments, while ignored in the MNIST experiments. Batch size is set to 10 for both the stream of data and episodic memory across experiments and models. The size of episodic memory is set between 1 and 5 examples per class per task. The results of VCL are complied by running the official implementation<sup>1</sup>, that only works for fully-connected networks, in our continual learning setup. All the other baselines use our unified code base which is available here<sup>2</sup>. All experiments are averaged over five runs using different random seeds, where each seed corresponds to a different dataset ordering among tasks.
145
+
146
+ # Results
147
+
148
+ Table 1 summarizes the main results of our experiments when the episodic memory of only one example per class per task is used. First, our proposed HAL is the method achieving maximum Accuracy (Eq. 2) and minimal Forgetting (Eq. 3) for all benchmarks. This does not include Oracle baselines Multitask (which has access to all data simultaneously) and Clone-and-finetune (which trains a separate model per task). Second, the relative gains from ER-Ring to HAL are substantial, confirming that the anchoring objective (Eq. 5) allows experience-replay methods to generalize better with the same amount of episodic memory.
149
+
150
+ Third, regularization based approaches, such as EWC (Kirkpatrick et al. 2016) and VCL (Nguyen et al. 2018), suffer under the single epoch setup. As noted by Chaudhry et al. (2019a), EWC requires multiple passes over the samples of each task to perform well. The poor performance of VCL is attributed to the noisy posterior estimation in the single pass setup. Note that approaches making use of memory (MER, ER, MIR, and HAL) work substantially better in this setup.
151
+
152
+ Fourth, ICARL (Rebuffi, Kolesnikov, and Lampert 2017), another method making use of episodic memory, performs poorly in our setup. From Table 1, it can be argued that di
153
+
154
+ Table 1: Accuracy (Eq. 2) and Forgetting (Eq. 3) results of continual learning experiments. Averages and standard deviations are computed over five runs using different random seeds. When used, episodic memories contain up to one example per class per task. Last two rows are oracle baselines.
155
+
156
+ <table><tr><td>METHOD</td><td colspan="2">PERMUTED MNIST</td><td colspan="2">ROTATED MNIST</td></tr><tr><td></td><td>ACCURACY</td><td>FORGETTING</td><td>ACCURACY</td><td>FORGETTING</td></tr><tr><td>FINETUNE</td><td>53.5 (±1.46)</td><td>0.29 (±0.01)</td><td>41.9 (±1.37)</td><td>0.50 (±0.01)</td></tr><tr><td>EWC (KIRKPATRICK ET AL. 2016)</td><td>63.1 (±1.40)</td><td>0.18 (±0.01)</td><td>44.1 (±0.99)</td><td>0.47 (±0.01)</td></tr><tr><td>VCL (NGUYEN ET AL. 2018)</td><td>51.8 (±1.54)</td><td>0.44 (±0.01)</td><td>48.2 (±0.99)</td><td>0.50 (±0.01)</td></tr><tr><td>VCL-RANDOM (NGUYEN ET AL. 2018)</td><td>52.3 (±0.66)</td><td>0.43 (±0.01)</td><td>54.4 (±1.44)</td><td>0.44 (±0.01)</td></tr><tr><td>AGEM (CHAUDHRY ET AL. 2019A)</td><td>62.1 (±1.39)</td><td>0.21 (±0.01)</td><td>50.9 (±0.92)</td><td>0.40 (±0.01)</td></tr><tr><td>MER (RIEMER ET AL. 2019)</td><td>69.9 (±0.40)</td><td>0.14 (±0.01)</td><td>66.0 (±2.04)</td><td>0.23 (±0.01)</td></tr><tr><td>ER-RING (CHAUDHRY ET AL. 2019B)</td><td>70.2 (±0.56)</td><td>0.12 (±0.01)</td><td>65.9 (±0.41)</td><td>0.24 (±0.01)</td></tr><tr><td>MIR (ALJUNDI ET AL. 2019A)</td><td>71.1 (±0.41)</td><td>0.11 (±0.01)</td><td>-</td><td>-</td></tr><tr><td>HAL (OURS)</td><td>73.6 (±0.31)</td><td>0.09 (±0.01)</td><td>68.4 (±0.72)</td><td>0.21 (±0.01)</td></tr><tr><td>CLONE-AND-FINETUNE</td><td>81.4 (±0.35)</td><td>0.0</td><td>87.5 (±0.11)</td><td>0.0</td></tr><tr><td>MULTITASK</td><td>83.0</td><td>0.0</td><td>83.3</td><td>0.0</td></tr></table>
157
+
158
+ <table><tr><td>METHOD</td><td colspan="2">SPLIT CIFAR</td><td colspan="2">SPLIT MINIIMAGENET</td></tr><tr><td></td><td>ACCURACY</td><td>FORGETTING</td><td>ACCURACY</td><td>FORGETTING</td></tr><tr><td>FINETUNE</td><td>42.9 (±2.07)</td><td>0.25 (±0.03)</td><td>34.7 (±2.69)</td><td>0.26 (±0.03)</td></tr><tr><td>EWC (KIRKPATRICK ET AL. 2016)</td><td>42.4 (±3.02)</td><td>0.26 (±0.02)</td><td>37.7 (±3.29)</td><td>0.21 (±0.03)</td></tr><tr><td>ICARL (REBUFFI, KOLESNIKOV, AND LAMPERT 2017)</td><td>46.4 (±1.21)</td><td>0.16 (±0.01)</td><td>-</td><td>-</td></tr><tr><td>AGEM (CHAUDHRY ET AL. 2019A)</td><td>54.9 (±2.92)</td><td>0.14 (±0.03)</td><td>48.2 (±2.49)</td><td>0.13 (±0.02)</td></tr><tr><td>MER (RIEMER ET AL. 2019)</td><td>49.7 (±2.97)</td><td>0.19 (±0.03)</td><td>45.5 (±1.49)</td><td>0.15 (±0.01)</td></tr><tr><td>ER-RING (CHAUDHRY ET AL. 2019B)</td><td>56.2 (±1.93)</td><td>0.13 (±0.01)</td><td>49.0 (±2.61)</td><td>0.12 (±0.02)</td></tr><tr><td>MIR (ALJUNDI ET AL. 2019A)</td><td>57.1 (±1.81)</td><td>0.12 (±0.01)</td><td>49.3 (±2.15)</td><td>0.12 (±0.01)</td></tr><tr><td>HAL (OURS)</td><td>60.4 (±0.54)</td><td>0.10 (±0.01)</td><td>51.6 (±2.02)</td><td>0.10 (±0.01)</td></tr><tr><td>CLONE-AND-FINETUNE</td><td>60.3 (±0.55)</td><td>0.0</td><td>50.3 (±1.00)</td><td>0.0</td></tr><tr><td>MULTITASK</td><td>68.3</td><td>0.0</td><td>63.5</td><td>0.0</td></tr></table>
159
+
160
+ rect training on a very small episodic memory, as done in experience replay, allows the method to generalize better compared to when the same memory is used indirectly in the knowledge distillation loss (Hinton, Vinyals, and Dean 2014) as done in ICARL.
161
+
162
+ Fig 1 shows the accuracy (Eq. 2) of methods employing episodic memory when the size of memory is increased. We use 1 to 5 examples per class per task, resulting in a total memory size from 200 to 1000 for MNIST experiments, and from 85 to 425 for CIFAR and ImageNet experiments. The corresponding numbers for Forgetting are given in Appendix B. HAL consistently improves on ER-Ring and other baselines.
163
+
164
+ Figure 4 in Appendix B provides the training time of the continual learning baselines on MNIST benchmarks. Although HAL adds an overhead on top of the experience replay baseline, it is substantially faster than MER —another approach that makes use of nested optimization to reduce forgetting. However, HAL requires extra memory to store task anchors that, as we will show next, are more effective than additional data samples one can store for experience replay. Overall, we conclude that HAL provides the best tradeoff in terms of efficiency and performance.
165
+
166
+ # Ablation Study
167
+
168
+ We now turn our attention towards two questions; (1) whether for the same episodic memory size in bytes HAL improves over the experience replay baseline, (2) whether fine-tuning on the replay buffer is a good approximation of forgetting when the learner is updated on future tasks.
169
+
170
+ To answer the first question, let $|\mathcal{M}|$ be the total size of episodic memory for all tasks when one example per class per task is stored in the replay buffer. We then run the experience replay with double the size of episodic memory (i.e.) storing two examples per class per task instead of one. The episodic memory size in HAL, on the other hand, is kept at $|\mathcal{M}|$ . This effectively makes the size of memory in bytes taken by experience replay and that of HAL equal as the latter requires extra memory to store anchors. Table 2 summarizes the results of this study. For the same memory size in bytes, HAL performs better than experience replay when additional real data samples are stored in the episodic memory. It is surprising that the anchors learned by HAL, initialized from random noise and learned using gradient-based optimization, perform better compared to randomly sampled real data. To understand this, in Figure 2 we visualize HAL's anchors along with the task data in the image
171
+
172
+ ![](images/b16bbdadfe1c5da6c83772c008e6f251fe08f7fde54f68cdf5acd8f356a913bf.jpg)
173
+ (a) Permuted MNIST
174
+
175
+ ![](images/8a321a270dd3f54e1386d08d0964307612a50d7290ec7f380c8f66493a8f202a.jpg)
176
+ (b) Rotated MNIST
177
+
178
+ ![](images/fb61212077920520fcde77e0b54495ecc38b61c9c8e1eb7784470e93cf2e6312.jpg)
179
+ (c) Split CIFAR
180
+
181
+ ![](images/84392707214066eb4c8750af688f73b2909a3fc2ce9efc97417bd0bde891fd21.jpg)
182
+ (d) Split miniImageNet
183
+ Figure 1: Accuracy (Eq. 2) results for different episodic memory sizes.
184
+
185
+ Table 2: Comparison of HAL with experience replay. ER-Ring and HAL use one example per class per task in the episodic memory, whereas ER-Ring-2 $|\mathcal{M}|$ uses two examples per class per task in the memory. Averages and standard deviations are computed over five runs using different random seeds.
186
+
187
+ <table><tr><td>Method</td><td colspan="2">Permuted MNIST</td><td colspan="2">Split CIFAR</td></tr><tr><td></td><td>Accuracy</td><td>Forgetting</td><td>Accuracy</td><td>Forgetting</td></tr><tr><td>ER-Ring-|M|</td><td>70.2 ±(0.56)</td><td>0.12 (±0.01)</td><td>56.2 (±1.93)</td><td>0.13 (±0.01)</td></tr><tr><td>ER-Ring-2|M|</td><td>71.9 (±0.31)</td><td>0.11 (±0.01)</td><td>58.6 (±2.68)</td><td>0.12 (±0.01)</td></tr><tr><td>HAL-|M|</td><td>73.6 (±0.31)</td><td>0.09 (±0.01)</td><td>60.4 (±0.54)</td><td>0.10 (±0.01)</td></tr></table>
188
+
189
+ Table 3: Performance comparison of HAL with Oracle where the learner has access to all the future tasks to exactly quantify forgetting of an anchor. Averages and standard deviations are computed over five runs using different random seeds.
190
+
191
+ <table><tr><td>Anchor type</td><td colspan="2">Permuted MNIST</td><td colspan="2">Split CIFAR</td></tr><tr><td></td><td>Accuracy</td><td>Forgetting</td><td>Accuracy</td><td>Forgetting</td></tr><tr><td>HAL</td><td>73.6 (±0.31)</td><td>0.09 (±0.01)</td><td>60.4 (±0.54)</td><td>0.10 (±0.01)</td></tr><tr><td>Oracle</td><td>73.9 (±0.41)</td><td>0.09 (±0.01)</td><td>61.1 (±0.94)</td><td>0.09 (±0.01)</td></tr></table>
192
+
193
+ and feature space on Permuted MNIST benchmark. From the left of the figure, it can be seen that HAL anchors lie in the data cluster of a class in the image space, suggesting that the mean embedding loss in Eq. 9 effectively regularizes against outliers. More interestingly, the figure on the right shows that these anchors lie at or close to the cluster edges in the feature space. In other words, the anchor points learned by HAL lie close to the classifier decision boundary. This can explain their effectiveness compared to the real data samples that can lie anywhere in the data cluster in feature space.
194
+
195
+ Finally, to answer the second part, we assume a non-continual setup where at each step the learner has an oracle access to all future tasks. After training on task $t$ , the learner is fine-tuned on all future tasks and anchor points are subsequently learned by optimizing idealistic Eq. 7. The results
196
+
197
+ are reported in Table 3. It can be seen from the table that the proposed HAL performs very close to the noncontinual oracle baseline. This suggests that HAL's approximation of forgetting when the learner is updated on future tasks by replaying past data is effective in many existing continual learning benchmarks.
198
+
199
+ # 5 Related work
200
+
201
+ In continual learning (Ring 1997), also called lifelong learning (Thrun 1998), a learner addresses a sequence of changing tasks without storing the complete datasets of these tasks. This contrasts with multitask learning (Caruana 1997), where the learner assumes simultaneous access to data from all tasks. The main challenge in continual learning is to avoid catastrophic interference (McCloskey and Cohen 1989; McClelland, McNaughton, and O'Reilly 1995; Goodfellow et al. 2013), that is, the learner forgetting previously acquired knowledge when learning new tasks. The state-of-the-art methods in continual learning can be categorized into three classes.
202
+
203
+ First, regularization approaches discourage updating parameters important for past tasks (Kirkpatrick et al. 2016; Aljundi et al. 2018; Nguyen et al. 2018; Zenke, Poole, and Ganguli 2017). While efficient in terms of memory and computation, these approaches suffer from brittleness due to feature drift for large number of tasks (Titsias et al. 2019). Additionally, these approaches are only effective when the learner can perform multiple passes over each task (Chaudhry et al. 2019a), a case deemed unrealistic in this work.
204
+
205
+ Second, modular approaches use different parts of the prediction function for each new task (Fernando et al. 2017; Aljundi, Chakravarty, and Tuytelaars 2017; Rosenbaum, Klinger, and Riemer 2018; Chang et al. 2018; Xu and Zhu 2018; Ferran Alet 2018). Modular approaches do not scale to a large number of tasks, as they require searching over the combinatorial space of module architectures. Another modular approach (Rusu et al. 2016; Lee et al. 2017) adds new parts to the prediction function as new tasks are learned. By construction, modular approaches have zero forgetting, but their memory requirements increase with the number of tasks.
206
+
207
+ ![](images/1fcd9ebc526b8ddc695d1470ce158cf495e0e9ba11c0ea6529c19dbea2ebb548.jpg)
208
+ Image Space
209
+
210
+ ![](images/3f5b18590290746f3c8ce7d93ba6504df65b7f0a28e9ad23f412940fabf846b6.jpg)
211
+ Feature Space
212
+ Figure 2: t-SNE visualization of images and anchors (HAL) in the image space (left) and the feature space (right) on Permuted MNIST benchmark for a single task. Anchor points are exaggerated in size for the purpose of better visualization. The left plot shows that anchor points lie with in the data cluster of a class, whereas the right plot shows that, in the feature space, anchor points lie close to the edge of the cluster of a class or near decision boundaries.
213
+
214
+ Third, episodic memory approaches maintain and revisit a small episodic memory of data from past tasks. In some of these methods (Li and Hoiem 2016; Rebuffi, Kolesnikov, and Lampert 2017), examples in the episodic memory are replayed and predictions are kept invariant by means of distillation (Hinton, Vinyals, and Dean 2014). In other approaches (Lopez-Paz and Ranzato 2017; Chaudhry et al. 2019a; Aljundi et al. 2019b) the episodic memory is used as an optimization constraint that discourages increases in loss of past tasks. More recently, several works (Hayes, Cahill, and Kanan 2018; Riemer et al. 2019; Rolnick et al. 2018; Chaudhry et al. 2019b) have shown that directly optimizing the loss of episodic memory, also known as experience replay, is cheaper than constraint-based approaches and improves the prediction performance. Our contribution in this paper has been to improve experience replay methods with task anchors learned in hindsight.
215
+
216
+ There are other definitions of continual learning, such as the one of task-free continual learning. The task-free formulation does not consider the notion of tasks, and instead works on undivided data streams (Aljundi, Kelchtermans, and Tuytelaars 2019; Aljundi et al. 2019b). We have focused on the task-based definition of continual learning and, similar to many recent works (Lopez-Paz and Ranzato 2017; Hayes, Cahill, and Kanan 2018; Riemer et al. 2019; Chaudhry et al. 2019a), assumed that only a single pass through the data was possible.
217
+
218
+ Finally, our gradient-based learning of anchors bears a similarity to (Simonyan, Vedaldi, and Zisserman 2014) and (Wang et al. 2018). In Simonyan, Vedaldi, and Zisserman (2014), the authors use gradient ascent on class scores to find saliency maps of a classification model. Contrary to
219
+
220
+ them, our proposed hindsight learning objective optimizes for the forgetting metric, as reducing it is necessary for continual learning. Dataset distillation (Wang et al. 2018) proposes to encode the entire dataset in a few synthetic points at a given parameter vector by a gradient-based optimization process. Their method requires access to the entire dataset of a task for optimization purposes. We, instead, learn anchors in hindsight from the replay buffer of past tasks after training is finished for the current task. While Wang et al. (2018) aim to replicate the performance of the entire dataset from the synthetic points, we focus on reducing forgetting of an already learned task.
221
+
222
+ # 6 Conclusion
223
+
224
+ We introduced a bilevel optimization objective, dubbed anchoring, for continual learning. In our approach, we learned one "anchor point" per class per task, where predictions are requested to remain invariant by means of nested optimization. These anchors are learned using gradient-based optimization and represent points that would maximize the forgetting of the current task throughout the entire learning experience. We simulate the forgetting that would happen during the learning of future tasks in hindsight, that is, by taking temporary gradient steps across a small episodic memory of past tasks. We call our approach Hindsight Anchor Learning (HAL). As shown in our experiments, anchoring in hindsight complements and improves the performance of continual learning methods based on experience replay, achieving a new state of the art on four standard continual learning benchmarks.
225
+
226
+ # Acknowledgement
227
+
228
+ The authors would like to thank Marc'Aurelio Ranzato for helpful discussions. This work was supported by the ERC grant ERC-2012-AdG 321162-HELIOS, EPSRC grant Seebibyte EP/M013774/1 and EPSRC/MURI grant EP/N019474/1. We would also like to acknowledge the Royal Academy of Engineering and FiveAI. AC is funded by Amazon Research award.
229
+
230
+ # References
231
+
232
+ Aljundi, R.; Babiloni, F.; Elhoseiny, M.; Rohrbach, M.; and Tuytelaars, T. 2018. Memory Aware Synapses: Learning what (not) to forget. In ECCV.
233
+ Aljundi, R.; Belilovsky, E.; Tuytelaars, T.; Charlin, L.; Caccia, M.; Lin, M.; and Page-Caccia, L. 2019a. Online Continual Learning with Maximal Interfered Retrieval. In Wallach, H.; Larochelle, H.; Beygelzimer, A.; d'Alché-Buc, F.; Fox, E.; and Garnett, R., eds., Advances in Neural Information Processing Systems 32, 11849-11860. Curran Associates, Inc. URL http://papers.nips.cc/paper/9357-online-continual-learning-with-maximal-interfered-retrieval.pdf.
234
+ Aljundi, R.; Chakravarty, P.; and Tuytelaars, T. 2017. Expert Gate: Lifelong Learning with a Network of Experts. In CVPR, 7120-7129.
235
+ Aljundi, R.; Kelchtermans, K.; and Tuytelaars, T. 2019. Task-free continual learning. In CVPR, 11254-11263.
236
+ Aljundi, R.; Lin, M.; Goujaud, B.; and Bengio, Y. 2019b. Online continual learning with no task boundaries. arXiv preprint arXiv:1903.08671.
237
+ Caruana, R. 1997. Multitask learning. Machine learning 28(1): 41-75.
238
+ Chang, M.; Gupta, A.; Levine, S.; and Griffiths, T. L. 2018. Automatically Composing Representation Transformations as a Means for Generalization. In ICML workshop Neural Abstract Machines and Program Induction v2.
239
+ Chaudhry, A.; Dokania, P. K.; Ajanthan, T.; and Torr, P. H. 2018. Riemannian Walk for Incremental Learning: Understanding Forgetting and Intransigence. In ECCV.
240
+ Chaudhry, A.; Ranzato, M.; Rohrbach, M.; and Elhoseiny, M. 2019a. Efficient Lifelong Learning with A-GEM. In ICLR.
241
+ Chaudhry, A.; Rohrbach, M.; Elhoseiny, M.; Ajanthan, T.; Dokania, P. K.; Torr, P. H.; and Ranzato, M. 2019b. Continual Learning with Tiny Episodic Memories. arXiv preprint arXiv:1902.10486.
242
+ Fernando, C.; Banarse, D.; Blundell, C.; Zwols, Y.; Ha, D.; Rusu, A. A.; Pritzel, A.; and Wierstra, D. 2017. Pathnet: Evolution channels gradient descent in super neural networks. arXiv preprint arXiv:1701.08734.
243
+ Ferran Alet, Tomas Lozano-Perez, L. P. K. 2018. Modular Meta-Learning. arXiv preprint arXiv:1806.10166v1.
244
+ Finn, C.; Abbeel, P.; and Levine, S. 2017. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML-Volume 70, 1126-1135. JMLR.org.
245
+
246
+ Goodfellow, I. J.; Mirza, M.; Xiao, D.; Courville, A.; and Bengio, Y. 2013. An empirical investigation of catastrophic forgetting in gradient-based neural networks. arXiv preprint arXiv:1312.6211.
247
+ Hayes, T. L.; Cahill, N. D.; and Kanan, C. 2018. Memory Efficient Experience Replay for Streaming Learning. arXiv preprint arXiv:1809.05922.
248
+ Hinton, G.; Vinyals, O.; and Dean, J. 2014. Distilling the knowledge in a neural network. In NIPS.
249
+ Isele, D.; and Cosgun, A. 2018. Selective Experience Replay for Lifelong Learning. arXiv preprint arXiv:1802.10269.
250
+ Kirkpatrick, J.; Pascanu, R.; Rabinowitz, N. C.; Veness, J.; Desjardins, G.; Rusu, A. A.; Milan, K.; Quan, J.; Ramalho, T.; Grabska-Barwinska, A.; Hassabis, D.; Clopath, C.; Kumaran, D.; and Hadsell, R. 2016. Overcoming catastrophic forgetting in neural networks. *PNAS*.
251
+ Krizhevsky, A.; and Hinton, G. 2009. Learning multiple layers of features from tiny images. https://www.cs.toronto.edu/kriz/cifar.html.
252
+ LeCun, Y. 1998. The MNIST database of handwritten digits. http://yann.lecun.com/exdb/mnist/.
253
+ Lee, J.; Yun, J.; Hwang, S.; and Yang, E. 2017. Lifelong Learning with Dynamically Expandable Networks. arXiv preprint arXiv:1708.01547.
254
+ Li, Z.; and Hoiem, D. 2016. Learning without forgetting. In ECCV, 614-629.
255
+ Lopez-Paz, D.; and Ranzato, M. 2017. Gradient Episodic Memory for Continuum Learning. In NIPS.
256
+ McClelland, J. L.; McNaughton, B. L.; and O'Reilly, R. C. 1995. Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory. Psychological review 102(3): 419.
257
+ McCloskey, M.; and Cohen, N. J. 1989. Catastrophic interference in connectionist networks: The sequential learning problem. Psychology of learning and motivation 24: 109-165.
258
+ Nguyen, C. V.; Li, Y.; Bui, T. D.; and Turner, R. E. 2018. Variational continual learning. *ICLR*.
259
+ Nichol, A.; and Schulman, J. 2018. Reptile: a scalable met-learning algorithm. arXiv preprint arXiv:1803.02999, 2018
260
+ Rebuffi, S.-V.; Kolesnikov, A.; and Lampert, C. H. 2017. iCaRL: Incremental Classifier and Representation Learning. In CVPR.
261
+ Riemer, M.; Cases, I.; Ajemian, R.; Liu, M.; Rish, I.; Tu, Y.; and Tesauro, G. 2019. Learning to Learn without Forgetting By Maximizing Transfer and Minimizing Interference. In ICLR.
262
+ Ring, M. B. 1997. CHILD: A first step towards continual learning. Machine Learning 28(1): 77-104.
263
+
264
+ Rolnick, D.; Ahuja, A.; Schwarz, J.; Lillicrap, T. P.; and Wayne, G. 2018. Experience Replay for Continual Learning. CoRR abs/1811.11682. URL http://arxiv.org/abs/1811.11682.
265
+ Rosenbaum, C.; Klinger, T.; and Riemer, M. 2018. Routing Networks: Adaptive Selection of Non-Linear Functions for Multi-Task Learning. In ICLR.
266
+ Russakovsky, O.; Deng, J.; Su, H.; Krause, J.; Satheesh, S.; Ma, S.; Huang, Z.; Karpathy, A.; Khosla, A.; Bernstein, M.; Berg, A. C.; and Fei-Fei, L. 2015. ImageNet Large Scale Visual Recognition Challenge. IJCV 115(3): 211-252.
267
+ Rusu, A. A.; Rabinowitz, N. C.; Desjardins, G.; Soyer, H.; Kirkpatrick, J.; Kavukcuoglu, K.; Pascanu, R.; and Hadsell, R. 2016. Progressive neural networks. arXiv preprint arXiv:1606.04671.
268
+ Simonyan, K.; Vedaldi, A.; and Zisserman, A. 2014. Deep inside convolutional networks: Visualising image classification models and saliency maps. In ICLR.
269
+ Smola, A.; Gretton, A.; Song, L.; and Scholkopf, B. 2007. A Hilbert space embedding for distributions. In ALT, 13-31. Springer.
270
+ Thrun, S. 1998. Lifelong learning algorithms. In Learning to learn, 181-209. Springer.
271
+ Titsias, M. K.; Schwarz, J.; Matthews, A. G. d. G.; Pascanu, R.; and Teh, Y. W. 2019. Functional Regularisation for Continual Learning using Gaussian Processes. arXiv preprint arXiv:1901.11356.
272
+ Vinyals, O.; Blundell, C.; Lillicrap, T.; Wierstra, D.; et al. 2016. Matching networks for one shot learning. In NIPS, 3630-3638.
273
+ Wang, T.; Zhu, J.-Y.; Torralba, A.; and Efros, A. A. 2018. Dataset Distillation. arXiv preprint arXiv:1811.10959.
274
+ Xu, J.; and Zhu, Z. 2018. Reinforced Continual Learning. In arXiv preprint arXiv:1805.12369v1.
275
+ Zenke, F.; Poole, B.; and Ganguli, S. 2017. Continual Learning Through Synaptic Intelligence. In ICML.
276
+
277
+ # Appendix
278
+
279
+ Section A describes the approximate update performed by the anchoring objective (Eq. 5 in the main paper). Section B reports more experimental results. Section C provides the grid considered for hyper-parameters. Section E gives the pseudocode for HAL.
280
+
281
+ # A Approximate Update of Anchoring Objective
282
+
283
+ Here we will use a Taylor series expansion to approximate the update performed by the anchoring objective (Eq. 5 in the main paper). In particular, we are interested in the regularization part of the anchoring objective that involves a nested update. We refer to this gradient as $g_{anc}$ . We follow similar arguments as (Nichol and Schulman 2018).
284
+
285
+ Let $\theta_0$ be the parameter vector before the temporary update of the anchoring objective (Eq. 5). Moreover, let $\ell_{ce}$ and $\ell_{L2}$ be the cross-entropy and L2 losses, respectively. We use the following definitions:
286
+
287
+ $$
288
+ \bar {g} _ {0} = \ell_ {c e} ^ {\prime} (\theta_ {0}) \quad \left(\text {g r a d i e n t o f c r o s s - e n t r o p y l o s s a t i n i t i a l p o i n t o n} \mathcal {B} \cup \mathcal {B} _ {\mathcal {M}}\right)
289
+ $$
290
+
291
+ $$
292
+ \bar {H} _ {0} = \ell_ {c e} ^ {\prime \prime} (\theta_ {0}) \quad \left(\text {H e s s i a n o f c r o s s - e n t r o p y l o s s a t i n i t i a l p o i n t o n} \mathcal {B} \cup \mathcal {B} _ {\mathcal {M}}\right)
293
+ $$
294
+
295
+ $$
296
+ \bar {g} _ {1} = \ell_ {L 2} ^ {\prime} \left(\theta_ {0}\right) \quad (\text {g r a d i e n t o f L 2 l o s s a t i n i t i a l p o i n t o n a n c h o r s})
297
+ $$
298
+
299
+ $$
300
+ \bar {H} _ {1} = \ell_ {L 2} ^ {\prime \prime} (\theta_ {0}) \quad \text {(g r a d i e n t o f L 2 l o s s a t i n i t i a l p o i n t o n a n c h o r s)}
301
+ $$
302
+
303
+ Let $U_0 = \theta_0 - \alpha \overline{g}_0$ be the operator giving a temporary update in the two-step process of (Eq. 5), and let $\theta_1$ be the temporary update itself (i.e.) $\theta_1 \coloneqq U_0$ (note that $\tilde{\theta}$ is used in the main paper instead of $\theta_1$ ). The $g_{anc}$ is given by:
304
+
305
+ $$
306
+ \begin{array}{l} g _ {a n c} = \frac {\partial}{\partial \theta_ {0}} \ell_ {L 2} (U _ {0}) \\ = U _ {0} ^ {\prime} \cdot \ell_ {L 2} ^ {\prime} (\theta_ {1}) \\ = \left(I - \alpha \bar {H} _ {0}\right) \cdot \ell_ {L 2} ^ {\prime} \left(\theta_ {1}\right), \tag {10} \\ \end{array}
307
+ $$
308
+
309
+ where the second step is obtained by using the chain rule. Now, if we calculate the first order Taylor series approximation of $\ell_{L2}^{\prime}(\theta_1)$ ,
310
+
311
+ $$
312
+ \begin{array}{l} \ell_ {L 2} ^ {\prime} \left(\theta_ {1}\right) = \ell_ {L 2} ^ {\prime} \left(\theta_ {0}\right) + \ell_ {L 2} ^ {\prime \prime} \left(\theta_ {0}\right) \cdot \left(\theta_ {1} - \theta_ {0}\right) + O \left(\left| \left| \theta_ {1} - \theta_ {0} \right| \right| ^ {2}\right) \\ = \bar {g} _ {1} + \bar {H} _ {1} \cdot \left(\theta_ {0} - \alpha \bar {g} _ {0} - \theta_ {0}\right) + O \left(\alpha^ {2}\right) \\ = \bar {g} _ {1} - \alpha \bar {H} _ {1} \cdot \bar {g} _ {0} + O \left(\alpha^ {2}\right), \tag {11} \\ \end{array}
313
+ $$
314
+
315
+ where in the second step we substituted the value of $\theta_{1}$ . By putting Eq. 11 in Eq. 10 and after some simplification we get:
316
+
317
+ $$
318
+ g _ {a n c} = \bar {g} _ {1} - \alpha \left(\bar {H} _ {1} \cdot \bar {g} _ {0} + \bar {H} _ {0} \cdot \bar {g} _ {1}\right) + O \left(\alpha^ {2}\right). \tag {12}
319
+ $$
320
+
321
+ This form is very similar to the second-order MAML gradient formulation, Eq. 25 in (Nichol and Schulman 2018). Further simplification of the inner product terms between Hessian and gradient yields the inner product between the gradients $\overline{g_0}$ and $\overline{g_1}$ . This shows that similar to MAML (Finn, Abbeel, and Levine 2017), Reptile (Nichol and Schulman 2018) and MER (Riemer et al. 2019), the anchoring objective, as described in Eq. 5 of the main paper, maximizes the inner product between the gradients. However, unlike the other meta-learning approaches, in the anchoring objective, these gradients correspond to different loss functions, cross-entropy and L2 losses on data from the current task and episodic memory, and HAL anchors, respectively.
322
+
323
+ # B More Results
324
+
325
+ Figure 3 shows a more fine-grained analysis of average accuracy as new tasks are learned on Permuted MNIST and Split CIFAR. HAL preserves the performance of a predictor more effectively than other baselines.
326
+
327
+ Tables 5 and 6 show the accuracy and forgetting of methods employing episodic memory when the size of memory is increased. We use 3 to 5 examples per class per task, resulting in a total memory size from 600 to 1000 for MNIST experiments, and from 255 to 425 for CIFAR and ImageNet experiments.
328
+
329
+ # C Hyper-parameter Selection
330
+
331
+ In this section, we report the hyper-parameters grid considered for experiments. The best values for different benchmarks are given in parentheses.
332
+
333
+ - Multitask
334
+
335
+ ![](images/03c605b5355952321432ebafbebab2455ea6634b777752c15b7d6111f01bc6e3.jpg)
336
+ Permuted MNIST
337
+
338
+ ![](images/d9eafc4c0a015aa8f6d274a5c523990b5f63941959c47917321a54a29ba240a9.jpg)
339
+ Split CIFAR
340
+ Figure 3: Evolution of Accuracy (Eq. 2) as new tasks are learned. When used, episodic memories contain up to one example per class per task.
341
+
342
+ <table><tr><td>Anchor type</td><td colspan="2">Split CIFAR</td></tr><tr><td></td><td>Accuracy</td><td>Forgetting</td></tr><tr><td>Real Data Anchor</td><td>58.0 (±0.15)</td><td>0.12 (±0.01)</td></tr><tr><td>HAL (ours)</td><td>60.4 (±0.54)</td><td>0.10 (±0.01)</td></tr></table>
343
+
344
+ ![](images/cf498d4189b19aa297454450490a5004bf92fd45f69a82e85f73ba7778314394.jpg)
345
+ Table 4: Impact of anchor selection, where we compare a randomly chosen data point as an anchor (Real Data Anchor) with our optimized anchor selection (HAL).
346
+ Figure 4: Training time (s) of MNIST experiments for the entire continual learning experience. MER and HAL both use meta-learning objectives to reduce forgetting.
347
+
348
+ - learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]
349
+ - Clone-and-finetune
350
+ - learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]
351
+ - Finetune
352
+ - learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]
353
+ EWC
354
+ - learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]
355
+ - regularization: [0.1, 1, 10 (MNIST perm, rot, CIFAR, miniImageNet), 100, 1000]
356
+ - AGEM
357
+ - learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]
358
+ - MER
359
+
360
+ Table 5: Accuracy (Eq. 2) results for large (3 to 5 examples per class per task) episodic memory sizes. Here we only compare methods that use an episodic memory. Metrics are averaged over five runs using different random seeds.
361
+
362
+ <table><tr><td>METHOD</td><td colspan="2">PERMUTED MNIST</td><td colspan="2">ROTATED MNIST</td></tr><tr><td></td><td>|M| = 600</td><td>|M| = 1000</td><td>|M| = 600</td><td>|M| = 1000</td></tr><tr><td>VCL-RANDOM</td><td>55.8 (±1.29)</td><td>58.5 (±1.21)</td><td>61.2 (±0.12)</td><td>64.4 (±0.16)</td></tr><tr><td>AGEM</td><td>63.2 (±1.47)</td><td>64.1 (±0.74)</td><td>49.9 (±1.49)</td><td>53.0 (±1.52)</td></tr><tr><td>MER</td><td>74.9 (±0.49)</td><td>78.3 (±0.19)</td><td>76.5 (±0.30)</td><td>77.3 (±1.13)</td></tr><tr><td>ER-RING</td><td>73.5 (±0.43)</td><td>75.8 (±0.24)</td><td>74.7 (±0.56)</td><td>76.5 (±0.48)</td></tr><tr><td>HAL (OURS)</td><td>76.2 (±0.52)</td><td>78.4 (±0.27)</td><td>77.0 (±0.66)</td><td>78.7 (±0.97)</td></tr></table>
363
+
364
+ <table><tr><td>METHOD</td><td colspan="2">SPLIT CIFAR</td><td colspan="2">SPLIT MINIIMAGENET</td></tr><tr><td></td><td>|M| = 255</td><td>|M| = 425</td><td>|M| = 255</td><td>|M| = 425</td></tr><tr><td>ICARL</td><td>51.7 (±1.41)</td><td>51.2 (±1.32)</td><td>-</td><td>-</td></tr><tr><td>AGEM</td><td>56.9 (±3.45)</td><td>59.9 (±2.64)</td><td>51.6 (±2.69)</td><td>54.3 (±1.56)</td></tr><tr><td>MER</td><td>57.7 (±2.59)</td><td>60.6 (±2.09)</td><td>49.4 (±3.43)</td><td>54.8 (±1.79)</td></tr><tr><td>ER-RING</td><td>60.9 (±1.44)</td><td>62.6 (±1.77)</td><td>53.5 (±1.42)</td><td>54.2 (±3.23)</td></tr><tr><td>HAL (OURS)</td><td>62.9 (±1.49)</td><td>64.4 (±2.15)</td><td>56.5 (±0.87)</td><td>57.2 (±1.54)</td></tr></table>
365
+
366
+ Table 6: Forgetting (Eq. 3) results for large (3 to 5 examples per class per task) episodic memory sizes. Here we only compare methods that use an episodic memory. Averages and standard deviations are computed over five runs using different random seeds.
367
+
368
+ <table><tr><td>METHOD</td><td colspan="2">PERMUTED MNIST</td><td colspan="2">ROTATED MNIST</td></tr><tr><td></td><td>|M| = 600</td><td>|M| = 1000</td><td>|M| = 600</td><td>|M| = 1000</td></tr><tr><td>VCL-RANDOM</td><td>0.39 (±0.01)</td><td>0.36 (±0.01)</td><td>0.37 (±0.01)</td><td>0.33 (±0.01)</td></tr><tr><td>AGEM</td><td>0.20 (±0.01)</td><td>0.19 (±0.01)</td><td>0.41 (±0.01)</td><td>0.38 (±0.01)</td></tr><tr><td>MER</td><td>0.14 (±0.01)</td><td>0.09 (±0.01)</td><td>0.12 (±0.01)</td><td>0.11 (±0.01)</td></tr><tr><td>ER-RING</td><td>0.09 (±0.01)</td><td>0.07 (±0.01)</td><td>0.15 (±0.01)</td><td>0.13 (±0.01)</td></tr><tr><td>HAL (OURS)</td><td>0.07 (±0.01)</td><td>0.05 (±0.01)</td><td>0.12 (±0.01)</td><td>0.11 (±0.01)</td></tr></table>
369
+
370
+ <table><tr><td>METHOD</td><td colspan="2">SPLIT CIFAR</td><td colspan="2">SPLIT MINIIMAGENET</td></tr><tr><td></td><td>|M| = 255</td><td>|M| = 425</td><td>|M| = 255</td><td>|M| = 425</td></tr><tr><td>ICARL</td><td>0.13 (±0.02)</td><td>0.13 (±0.02)</td><td>-</td><td>-</td></tr><tr><td>AGEM</td><td>0.13 (±0.03)</td><td>0.10 (±0.02)</td><td>0.10 (±0.02)</td><td>0.08 (±0.01)</td></tr><tr><td>MER</td><td>0.11 (±0.01)</td><td>0.09 (±0.02)</td><td>0.12 (±0.02)</td><td>0.07 (±0.01)</td></tr><tr><td>ER-RING</td><td>0.09 (±0.01)</td><td>0.06 (±0.01)</td><td>0.07 (±0.02)</td><td>0.08 (±0.02)</td></tr><tr><td>HAL (OURS)</td><td>0.08 (±0.01)</td><td>0.06 (±0.01)</td><td>0.06 (±0.01)</td><td>0.06 (±0.01)</td></tr></table>
371
+
372
+ - learning rate: [0.003, 0.01, 0.03 (MNIST, CIFAR, miniImageNet), 0.1, 0.3, 1.0]
373
+ - within batch meta-learning rate: [0.01, 0.03, 0.1 (MNIST, CIFAR, miniImageNet), 0.3, 1.0]
374
+ - current batch learning rate multiplier: [1, 2, 5 (CIFAR, miniImageNet), 10 (MNIST)]
375
+
376
+ - ER-Ring
377
+ - learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]
378
+ HAL
379
+ - learning rate: [0.003, 0.01, 0.03 (CIFAR, miniImageNet), 0.1 (MNIST perm, rot), 0.3, 1.0]
380
+ - regularization $(\lambda)$ : [0.01, 0.03, 0.1 (MNIST perm, rot), 0.3 (miniImageNet), 1 (CIFAR), 3, 10]
381
+
382
+ - mean embedding strength $(\gamma)$ : [0.01, 0.03, 0.1 (MNIST perm, rot, CIFAR, miniImageNet), 0.3, 1, 3, 10]
383
+ - decay rate $(\beta)$ : 0.5
384
+ gradient steps on anchors $(k)$ : 100
385
+
386
+ # D Hyperparameter Sensitivity
387
+
388
+ In Table 7, we report the performance of HAL against a range of hyperparameters. For a given hyperparameter in the table, all the other hyperparameters are set to their optimal values found in Sec C of the appendix. HAL is not sensitive to the choice of hyperparameters.
389
+
390
+ Table 7: Average Accuracy of HAL on different values of hyperparameters. For a given hyperparameter in the table, all the other hyperparameters are set to their optimal values found in Sec C of the appendix.
391
+
392
+ <table><tr><td>DATASET</td><td>λ</td><td>Acc</td><td>γ</td><td>Acc</td><td>β</td><td>Acc</td></tr><tr><td rowspan="3">PERMUTED MNIST</td><td>0.01</td><td>72.8 ±(0.52)</td><td>0.01</td><td>73.1 ±(0.20)</td><td>0.1</td><td>72.5 ±(0.95)</td></tr><tr><td>0.1</td><td>73.6 ±(0.31)</td><td>0.1</td><td>73.6 ±(0.31)</td><td>0.5</td><td>73.6 ±(0.31)</td></tr><tr><td>1.0</td><td>73.2 ±(0.85)</td><td>1.0</td><td>73.4 ±(0.41)</td><td>0.9</td><td>72.9 ±(0.39)</td></tr><tr><td rowspan="3">SPLIT CIFAR100</td><td>0.01</td><td>58.5 ±(1.25)</td><td>0.01</td><td>59.8 ±(0.65)</td><td>0.1</td><td>58.7 ±(1.17)</td></tr><tr><td>0.1</td><td>59.2 ±(0.91)</td><td>0.1</td><td>60.4 ±(0.54)</td><td>0.5</td><td>60.4 ±(0.54)</td></tr><tr><td>1.0</td><td>60.4 ±(0.54)</td><td>1.0</td><td>60.2 ±(1.21)</td><td>0.9</td><td>59.6 ±(1.05)</td></tr></table>
393
+
394
+ # E HAL Algorithm
395
+
396
+ Algorithm 1 provides a pseudocode for HAL.
397
+
398
+ Algorithm 1 Training of HAL on sequential data $\mathcal{D} = \{\mathcal{D}_1,\dots ,\mathcal{D}_T\}$ , with total replay buffer size 'mem sz', learning rate $\alpha$ regularization strength $\lambda$ mean embedding decay $\beta$ mean embedding strength $\eta$
399
+ ```latex
400
+ 1: procedure HAL(D, mem sz, $\alpha ,\lambda ,\beta$
401
+ 2: $\mathcal{M}\gets \{\} *\mathrm{mem\_sz}$
402
+ 3: $\{e_1,\dots ,e_T\} \leftarrow \{\}$
403
+ 4: for $t\in \{1,\dots ,T\}$ do
404
+ 5: $\phi_t\gets \vec{0}$
405
+ 6: for $\mathcal{B}\sim \mathcal{D}_t$ do ▷ Sample a batch from current task
406
+ 7: $\mathcal{B}_{\mathcal{M}}\sim \mathcal{M}$ ▷ Sample a batch from episodic memory
407
+ 8: $\tilde{\theta}\gets \theta -\alpha \cdot \nabla_{\theta}\ell (\mathcal{B}\cup \mathcal{B}_{\mathcal{M}})$ ▷ Temporary parameter update
408
+ 9: $\theta \gets \theta -\alpha \cdot \nabla_{\theta}\left(\ell (\mathcal{B}\cup \mathcal{B}_{\mathcal{M}}) + \lambda \cdot \sum_{t^{\prime} < t}(f_{\theta}(e_{t^{\prime}},t^{\prime}) - f_{\tilde{\theta}}(e_{t^{\prime}},t^{\prime}))^{2}\right)$ ▷ Anchoring objective (Eq. 5)
409
+ 10: $\phi_t\gets \beta \cdot \phi_t + (1 - \beta)\cdot \phi (\mathcal{B})$ ▷ Running average of mean embedding
410
+ 11: $\mathcal{M}\gets$ UpdateMemory(M,B) ▷ Add samples to a ring buffer
411
+ 12: end for
412
+ 13: $e_t,\theta \gets$ GetAnchors(M, $\theta ,\phi_t,\eta)$ ▷ Get anchors for current task
413
+ 14: end for
414
+ 15: return $\theta ,\mathcal{M}$
415
+ 16: end procedure
416
+ 1: procedure GETANCHORS(M, $\theta_t,\phi_t,\gamma)$
417
+ 2: $\theta \gets \theta_t$
418
+ 3: for $\mathcal{B}_{\mathcal{M}}\sim \mathcal{M}$ do
419
+ 4: $\theta \gets \theta -\alpha \cdot \nabla_{\theta}\ell (\mathcal{B}_{\mathcal{M}})$ ▷ Finetune $\theta_t$ by taking SGD steps on the episodic memory
420
+ 5: end for
421
+ 6: $\theta_{\mathcal{M}}\gets \theta$ ▷ Store the updated parameter
422
+ 7: $e_t\gets$ rand() ▷ Initialize the task anchors
423
+ 8: for $1,\dots ,k$ do
424
+ 9: $e_t\gets e_t + \alpha \cdot \nabla_{e_t}\left(\ell (f_{\theta_{\mathcal{M}}} (e_t,t),y_t) - \ell (f_{\theta_t}(e_t,t),y_t) - \gamma (\phi (e_t) - \phi_t)^2\right)$ ▷ Maximize forgetting (Eq. 9)
425
+ 10: end for
426
+ 11: return $e_t,\theta_t$
427
+ 12: end procedure
428
+ ```
2002.08xxx/2002.08165/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3de7eb62f8d0991f13fe23917d24d9af8ebc89166d059dfba31e27d218e9b16
3
+ size 799864
2002.08xxx/2002.08165/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08196/36a27757-1c49-4da1-b5a3-ec1408b5d759_content_list.json ADDED
@@ -0,0 +1,1781 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Federated Learning in the Sky: Joint Power Allocation and Scheduling with UAV Swarms",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 127,
8
+ 66,
9
+ 869,
10
+ 137
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Tengchan Zeng, Omid Semiari, Mohammad Mozaffari, Mingzhe Chen, Walid Saad, and Mehdi Bennis",
17
+ "bbox": [
18
+ 114,
19
+ 155,
20
+ 880,
21
+ 172
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract—Unmanned aerial vehicle (UAV) swarms must exploit machine learning (ML) in order to execute various tasks ranging from coordinated trajectory planning to cooperative target recognition. However, due to the lack of continuous connections between the UAV swarm and ground base stations (BSs), using centralized ML will be challenging, particularly when dealing with a large volume of data. In this paper, a novel framework is proposed to implement distributed federated learning (FL) algorithms within a UAV swarm that consists of a leading UAV and several following UAVs. Each following UAV trains a local FL model based on its collected data and then sends this trained local model to the leading UAV who will aggregate the received models, generate a global FL model, and transmit it to followers over the intra-swarm network. To identify how wireless factors, like fading, transmission delay, and UAV antenna angle deviations resulting from wind and mechanical vibrations, impact the performance of FL, a rigorous convergence analysis for FL is performed. Then, a joint power allocation and scheduling design is proposed to optimize the convergence rate of FL while taking into account the energy consumption during convergence and the delay requirement imposed by the swarm's control system. Simulation results validate the effectiveness of the FL convergence analysis and show that the joint design strategy can reduce the number of communication rounds needed for convergence by as much as $35\\%$ compared with the baseline design.",
28
+ "bbox": [
29
+ 68,
30
+ 203,
31
+ 491,
32
+ 518
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "I. INTRODUCTION",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 214,
42
+ 527,
43
+ 346,
44
+ 541
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Swarms of unmanned aerial vehicles (UAVs) will play an important role in various services ranging from delivery of goods to monitoring [1] and [2]. To deliver those services, UAV swarms will employ machine learning (ML) for executing various tasks such as consensus trajectory planning, target recognition, and localization. However, due to the high altitude and mobility of UAVs, continuous connections between UAVs and ground base stations (BSs) cannot be guaranteed. Hence, using centralized ML approaches to execute learning-related tasks will be challenging, particularly when transmitting a large",
51
+ "bbox": [
52
+ 68,
53
+ 546,
54
+ 491,
55
+ 699
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "This research was supported, in part, by the U.S. National Science Foundation under Grants CNS-1739642 and CNS-1941348, and by the Academy of Finland Project CARMA, by the Academy of Finland Project MISSION, by the Academy of Finland Project SMARTER, as well as by the INFOTECH Project NOOR.",
62
+ "bbox": [
63
+ 68,
64
+ 708,
65
+ 491,
66
+ 765
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "list",
72
+ "sub_type": "text",
73
+ "list_items": [
74
+ "T. Zeng and W. Saad are with Wireless@VT, Department of Electrical and Computer Engineering, Virginia Tech, Blacksburg, VA, 24061 USA (e-mail: tengchan@vt.edu; walids@vt.edu).",
75
+ "O. Semiari is with Department of Electrical and Computer Engineering, University of Colorado Colorado Springs, Colorado Springs, CO, 80918 USA (e-mail: osemiari@uccs.edu).",
76
+ "M. Mozaffari is with Ericsson Research, Santa Clara, CA, 95054 USA (e-mail: mohammad.mozaffari@ericsson.com).",
77
+ "M. Chen is with Department of Electrical Engineering, Princeton University, Princeton, NJ, 08544 USA (e-mail: mingzhec@princeton.edu).",
78
+ "M. Dennis is with the Centre for Wireless Communications, University of Oulu, 90014 Oulu, Finland (e-mail:mehdi.bennis@oulu.fi)."
79
+ ],
80
+ "bbox": [
81
+ 68,
82
+ 765,
83
+ 491,
84
+ 901
85
+ ],
86
+ "page_idx": 0
87
+ },
88
+ {
89
+ "type": "text",
90
+ "text": "volume of data over aerial links. Instead, a distributed learning approach would be more apropos [3]. In particular, one can use federated learning (FL) to enable each UAV to perform distributed ML tasks without relying on any centralized BSs [4]. In this case, UAVs do not need to send any raw data to BSs when training learning models.",
91
+ "bbox": [
92
+ 501,
93
+ 202,
94
+ 924,
95
+ 292
96
+ ],
97
+ "page_idx": 0
98
+ },
99
+ {
100
+ "type": "text",
101
+ "text": "In essence, FL allows each UAV in a swarm to train its learning model based on its own collected data, and it can use the intra-swarm network to share FL parameters related to the learned models with other UAVs. As the learning process proceeds, UAVs in the swarm can reach a consensus on their collective learning tasks, e.g., trajectory planning or target recognition. However, since the updates of the learning models in FL are transmitted over a wireless network, the FL convergence and task consensus for the UAV swarm will inevitably be affected by wireless factors such as transmission delay. Also, due to the high mobility of UAVs, other factors (like wind and mechanical vibrations) can increase the uncertainty of wireless channels by affecting the UAVs' antenna angles which, in turn, will impact the FL convergence.",
102
+ "bbox": [
103
+ 501,
104
+ 292,
105
+ 926,
106
+ 503
107
+ ],
108
+ "page_idx": 0
109
+ },
110
+ {
111
+ "type": "text",
112
+ "text": "A number of recent works have investigated how wireless communication impacts FL [5]–[7]. For instance, in [5], the authors solve the joint learning, wireless resource allocation, and user selection problem to minimize the FL convergence time while optimizing the FL performance. Also, the work in [6] proposes a strategy for bandwidth allocation and device scheduling to improve the energy efficiency for networks implementing FL. Moreover, [7] studies the impact of different scheduling policies on the performance of FL. While interesting, none of these works in [5]–[7] considers the role of FL in a UAV swarm. Also, due to the high mobility of UAVs and their limited energy, the analysis in [5]–[7] cannot be directly applied for UAV swarms.",
113
+ "bbox": [
114
+ 501,
115
+ 503,
116
+ 926,
117
+ 699
118
+ ],
119
+ "page_idx": 0
120
+ },
121
+ {
122
+ "type": "text",
123
+ "text": "The main contribution of this paper is a novel framework for enabling FL within a swarm of wireless-connected UAVs. In particular, we first conduct a convergence analysis for FL to show how wireless factors within the UAV swarm impact the convergence of FL. We then determine the convergence round, defined as the minimum number of communication rounds needed to achieve FL convergence. Using this key insight, we formulate an optimization problem that jointly designs the power allocation and scheduling for the UAV swarm network to reduce the FL convergence round. In particular, due to the stringent energy limitations of UAVs, we consider the constraint of the energy consumed by learning, communications, and flying during FL convergence. We also take into account",
124
+ "bbox": [
125
+ 501,
126
+ 700,
127
+ 926,
128
+ 896
129
+ ],
130
+ "page_idx": 0
131
+ },
132
+ {
133
+ "type": "aside_text",
134
+ "text": "arXiv:2002.08196v2 [cs.LG] 10 Jun 2020",
135
+ "bbox": [
136
+ 22,
137
+ 267,
138
+ 57,
139
+ 707
140
+ ],
141
+ "page_idx": 0
142
+ },
143
+ {
144
+ "type": "text",
145
+ "text": "the delay constraint imposed by the control system to guarantee the stability of the UAV swarm. To solve the joint design problem, we use a sample average approximation approach from stochastic programming along with a dual method from convex optimization. To the best of our knowledge, this is the first work that implements FL for the UAV swarm, studies the impact of wireless factors on the convergence of FL, and optimizes the FL convergence by jointly designing power allocation and scheduling of the UAV network. Simulation results validate the convergence analysis of FL and show that the joint design can reduce the convergence round by as much as $35\\%$ compared with baselines without the joint design.",
146
+ "bbox": [
147
+ 68,
148
+ 66,
149
+ 491,
150
+ 247
151
+ ],
152
+ "page_idx": 1
153
+ },
154
+ {
155
+ "type": "text",
156
+ "text": "The rest of the paper is organized as follows. Section II presents the system model for the UAV swarm. Section III analyzes the FL convergence and shows the joint system design. Section IV provides simulation results, and conclusions are drawn in Section V.",
157
+ "bbox": [
158
+ 70,
159
+ 247,
160
+ 491,
161
+ 323
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "text",
167
+ "text": "II. SYSTEM MODEL",
168
+ "text_level": 1,
169
+ "bbox": [
170
+ 207,
171
+ 330,
172
+ 354,
173
+ 344
174
+ ],
175
+ "page_idx": 1
176
+ },
177
+ {
178
+ "type": "text",
179
+ "text": "Consider a swarm of wirelessly connected autonomous UAVs flying at the same altitude, as shown in Fig. 1(a). The UAV swarm consists of a leader $L$ and a set $\\mathcal{I}$ of $I$ followers. Every follower keeps a target distance and speed with the leader. While flying, the UAV swarm collects data and performs FL for data analysis and inference tasks like trajectory planning and cooperative target recognition. Using FL, each follower uses its collected data to train a local FL model and send the parameters related to the learned model to the leading UAV in the uplink, as shown in Fig. 1(a). The leading UAV will integrate all received information to generate a global FL model, and, then, transmit the parameters of the global model to following UAVs over the downlink. Moreover, to guarantee that the followers fly with the same speed while keeping a safe distance, the leading UAV will also broadcast the target spacing information and its speed and heading direction.",
180
+ "bbox": [
181
+ 68,
182
+ 349,
183
+ 491,
184
+ 592
185
+ ],
186
+ "page_idx": 1
187
+ },
188
+ {
189
+ "type": "text",
190
+ "text": "A. Federated learning model",
191
+ "text_level": 1,
192
+ "bbox": [
193
+ 70,
194
+ 599,
195
+ 272,
196
+ 616
197
+ ],
198
+ "page_idx": 1
199
+ },
200
+ {
201
+ "type": "text",
202
+ "text": "In the learning model, we assume that UAV $i \\in \\mathcal{I}$ collects a set $\\{\\pmb{x}_{i1},\\pmb{x}_{i2},\\dots,\\pmb{x}_{iN_i}\\}$ of input data where each collected sample is represented by a vector $\\pmb{x}_{in}$ , $n \\in \\{1,\\dots,N_i\\}$ that captures the input features and $N_{i}$ is the number of collected samples. We also assume the input sample $\\pmb{x}_{in}$ , $n \\in \\{1,\\dots,N_i\\}$ , corresponds to a single output $y_{in}$ [4]. The output vector is thereby $\\{y_{i1},\\dots,y_{iN_i}\\}$ for UAV $i$ . We define a vector $\\pmb{w}_i$ as the parameters related to the local FL model that is trained by $\\{\\pmb{x}_{i1},\\pmb{x}_{i2},\\dots,\\pmb{x}_{iN_i}\\}$ and $\\{y_{i1},\\dots,y_{iN_i}\\}$ at UAV $i$ . The convergence of the FL training processes requires each local learning vector to converge to a vector $\\pmb{w}^*$ which solves the following problem:",
203
+ "bbox": [
204
+ 68,
205
+ 619,
206
+ 490,
207
+ 800
208
+ ],
209
+ "page_idx": 1
210
+ },
211
+ {
212
+ "type": "equation",
213
+ "text": "\n$$\n\\underset {\\boldsymbol {w} \\in \\mathbb {R} ^ {d}} {\\arg \\min } F (\\boldsymbol {w}) = \\frac {1}{N} \\sum_ {i} ^ {I} \\sum_ {n = 1} ^ {N _ {i}} f (\\boldsymbol {w}, \\boldsymbol {x} _ {i n}, y _ {i n}), \\tag {1}\n$$\n",
214
+ "text_format": "latex",
215
+ "bbox": [
216
+ 130,
217
+ 799,
218
+ 488,
219
+ 839
220
+ ],
221
+ "page_idx": 1
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "where $N = \\sum_{i}^{I}N_{i}$ is the total number of the collected samples by all followers, and $f(\\pmb {w},\\pmb{x}_{in},y_{in})$ captures the loss function when using learning vector $\\pmb{w}$ for dataset $\\{\\pmb {x}_{in},y_{in}\\}$ . Note that, the loss function $f(\\pmb {w},\\pmb{x}_{in},y_{in}),i\\in \\mathcal{I},0\\leq n\\leq N_i,$",
226
+ "bbox": [
227
+ 68,
228
+ 839,
229
+ 491,
230
+ 901
231
+ ],
232
+ "page_idx": 1
233
+ },
234
+ {
235
+ "type": "image",
236
+ "img_path": "images/56d45f43e204b171ef87a2bb14d6dbde9f1ed2fd7efef56ae10faca062d78ebf.jpg",
237
+ "image_caption": [
238
+ "(a) Communication and learning models."
239
+ ],
240
+ "image_footnote": [],
241
+ "bbox": [
242
+ 547,
243
+ 66,
244
+ 870,
245
+ 218
246
+ ],
247
+ "page_idx": 1
248
+ },
249
+ {
250
+ "type": "image",
251
+ "img_path": "images/532aa106c947b40349baa42189c3b1f0f2989912d8c82bd93117fbbc95e83a61.jpg",
252
+ "image_caption": [
253
+ "(b) Angle deviations and control system.",
254
+ "Fig. 1. Illustration of our system model."
255
+ ],
256
+ "image_footnote": [],
257
+ "bbox": [
258
+ 542,
259
+ 247,
260
+ 879,
261
+ 316
262
+ ],
263
+ "page_idx": 1
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "plays a pivotal role in determining the FL performance, and the expression of the loss function is application-specific. For example, for a simple linear regression FL algorithm, $f(\\boldsymbol{w}, \\boldsymbol{x}_{in}, y_{in}) = (\\boldsymbol{w}^T \\boldsymbol{x}_{in} - y_{in})^2$ .",
268
+ "bbox": [
269
+ 503,
270
+ 369,
271
+ 924,
272
+ 431
273
+ ],
274
+ "page_idx": 1
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "To solve (1), the FL framework uses an iterative update scheme [4]. In particular, the leading UAV will first generate an initial global FL model represented by vector $\\boldsymbol{w}^{(0)}$ and send the initial vector to all followers. Hence, in the first communication round, follower $i\\in \\mathcal{I}$ will first use $\\boldsymbol{w}^{(0)}$ for its own data to train the local model and, then, it sends the vector of the trained model to the leader. Next, the leading UAV will aggregate all received local FL vectors and update the global FL model vector which will be later transmitted to the followers. Each communication round will be followed by another round, and the same process will repeat among leader and followers in each round. In this case, as FL proceeds, the local and global models are sequentially updated, and the total loss $F(\\boldsymbol {w})$ for the updated global model with vector $\\boldsymbol{w}$ will continuously decrease [4]. To identify whether the optimal solution is found for (1), one must analyze the convergence of the loss function $F(\\boldsymbol {w})$ to $F(\\boldsymbol {w}^{*})$ . That is, when the gap between the current loss $F(\\boldsymbol {w})$ and the minimal loss $F(\\boldsymbol {w}^{*})$ is below a threshold $\\varepsilon$ , the FL optimization problem is solved [8]. Therefore, we can use the convergence of $F(\\boldsymbol {w})$ to $F(\\boldsymbol {w}^{*})$ to quantify the FL performance.",
279
+ "bbox": [
280
+ 503,
281
+ 431,
282
+ 926,
283
+ 748
284
+ ],
285
+ "page_idx": 1
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "Moreover, for each communication round, we can divide the total time duration $T_{r}$ into two periods: Uplink and downlink transmission. In particular, to guarantee that the leading UAV has enough time to process all received models from its followers, all uplink transmissions should be completed within a target time $T_{u}(\\beta) = \\beta T_{r}$ , where $\\beta \\in \\{0,1\\}$ is a scheduling parameter to schedule uplink-downlink traffic in time. Also, to receive the global FL model update from the leading UAV successfully, the time constraint for downlink transmissions is thereby $T_{d}(\\beta) = (1 - \\beta)T_{r}$ . In this case, if the communication",
290
+ "bbox": [
291
+ 501,
292
+ 748,
293
+ 924,
294
+ 900
295
+ ],
296
+ "page_idx": 1
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "link between follower $i \\in \\mathcal{I}$ and leader $L$ fails to meet the time constraints $T_{d}(\\beta)$ and $T_{u}(\\beta)$ , the global FL model cannot use the corresponding FL model for the aggregation. At the same time, for the local FL model, the following UAV cannot use the recently updated global vector to train its local data. In other words, the transmission delay of the uplink and downlink links will impact the update of the global and local FL models thus having a major impact on FL convergence.",
301
+ "bbox": [
302
+ 68,
303
+ 65,
304
+ 491,
305
+ 186
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "In addition, when training the global FL model, we can calculate the energy consumption for the UAV $L$ as $E_{L} = \\kappa C\\phi^{2}\\sum_{i=1}^{I}S(\\pmb{w}_{i})$ , where $\\kappa$ captures the energy consumption coefficient depending on the computing system and $C$ is the number of computing cycles needed per data bit [9]. $\\phi$ is the frequency of the CPU clock of UAVs, and $S(\\pmb{w}_{i})$ is the packet size of $\\pmb{w}_{i}$ , transmitted from UAV $i \\in \\mathcal{I}$ , in bits. Similarly, we can determine the training energy consumption for follower $i \\in \\mathcal{I}$ as $E_{i} = \\kappa C\\phi^{2}\\sum_{n=1}^{N_{i}}S(\\pmb{x}_{in})$ .",
312
+ "bbox": [
313
+ 70,
314
+ 186,
315
+ 491,
316
+ 325
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "B. Communication model",
323
+ "text_level": 1,
324
+ "bbox": [
325
+ 71,
326
+ 330,
327
+ 250,
328
+ 345
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "To minimize the interference from other UAVs located outside of the swarm, we assume that all UAVs use directional antennas, as shown in Fig. 1(a), However, as shown in Fig. 1(b), due to the impact of wind, payload, and non-ideal mechanical and control systems, the angle of the UAVs will randomly fluctuate and deviate from the initial angle setting. Based on the central limit theorem, we model the angle deviation for each UAV as a Gaussian random variable [10]. Moreover, we consider a squared cosine function to capture the antenna aperture of UAV $j \\in \\mathcal{I} \\cup \\{L\\}$ when communicating with UAV $l \\in \\mathcal{I} \\cup \\{L\\} / j$ as follows [11]:",
335
+ "bbox": [
336
+ 68,
337
+ 349,
338
+ 490,
339
+ 515
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "equation",
345
+ "text": "\n$$\nG _ {j l} \\left(\\theta_ {j l} + \\vartheta_ {j}\\right) = \\left\\{ \\begin{array}{c c} \\cos^ {2} \\left(\\frac {\\pi}{2} \\left(\\theta_ {j l} + \\vartheta_ {j}\\right)\\right), & \\text {i f} | \\theta_ {j l} + \\vartheta_ {j} | \\leq 1, \\\\ G _ {\\min }, & \\text {o t h e r w i s e}, \\end{array} \\right. \\tag {2}\n$$\n",
346
+ "text_format": "latex",
347
+ "bbox": [
348
+ 75,
349
+ 515,
350
+ 488,
351
+ 556
352
+ ],
353
+ "page_idx": 2
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "where $\\theta_{jl}$ is the initial angle setting for UAV $j$ when communicating with UAV $l$ , $\\vartheta_{j} \\sim \\mathcal{N}(0, \\sigma_{j}^{2})$ is the angle deviation with variance $\\sigma_{j}^{2}$ , and $G_{\\mathrm{min}}$ captures the antenna gain at the side lobes. Also, similar to [10], we can approximate (2) by using a sectionalized expression:",
358
+ "bbox": [
359
+ 70,
360
+ 558,
361
+ 491,
362
+ 632
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "equation",
368
+ "text": "\n$$\nG _ {j l} \\left(\\theta_ {j l} + \\vartheta_ {j}, M\\right) = \\left\\{ \\begin{array}{c c} \\cos^ {2} \\left(\\frac {\\pi m}{2 M}\\right), & \\text {i f} \\frac {m}{M} \\leq \\left| \\theta_ {j l} + \\vartheta_ {j} \\right| \\leq \\frac {m + 1}{M}, \\\\ G _ {\\min }, & \\text {o t h e r w i s e}, \\end{array} \\right. \\tag {3}\n$$\n",
369
+ "text_format": "latex",
370
+ "bbox": [
371
+ 76,
372
+ 631,
373
+ 488,
374
+ 674
375
+ ],
376
+ "page_idx": 2
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "where $m\\in \\{1,\\dots,M\\}$",
381
+ "bbox": [
382
+ 70,
383
+ 675,
384
+ 230,
385
+ 690
386
+ ],
387
+ "page_idx": 2
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "To reduce the interference over the uplink transmissions, we assume that uplinks do not share the wireless resource with each other. Hence, the transmission delay of the uplink between follower $i \\in \\mathcal{I}$ and leader $L$ can be calculated as",
392
+ "bbox": [
393
+ 70,
394
+ 691,
395
+ 491,
396
+ 748
397
+ ],
398
+ "page_idx": 2
399
+ },
400
+ {
401
+ "type": "equation",
402
+ "text": "\n$$\nT _ {i L} = \\frac {S (\\boldsymbol {w} _ {i})}{B _ {u} \\log_ {2} \\left(1 + \\frac {p _ {i} h _ {i L} d _ {i L} ^ {- \\alpha} G _ {i L} G _ {L i}}{\\sum_ {i ^ {\\prime} \\in \\Phi_ {i}} p _ {i ^ {\\prime}} h _ {i ^ {\\prime} L} d _ {i ^ {\\prime} L} ^ {- \\alpha} G _ {i ^ {\\prime} L} G _ {L i ^ {\\prime}} + B _ {u} \\gamma_ {0}}\\right)}, \\tag {4}\n$$\n",
403
+ "text_format": "latex",
404
+ "bbox": [
405
+ 84,
406
+ 748,
407
+ 488,
408
+ 787
409
+ ],
410
+ "page_idx": 2
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "where $B_{u}$ is the bandwidth used by each subchannel in the uplink, $p_i\\in (0,p_{\\mathrm{max}})$ is the transmission power of UAV $i$ with maximum power as $p_{\\mathrm{max}}$ and $\\alpha$ is the path-loss exponent. $h_{iL}$ is the channel gain of the Rician fading channel between UAVs $i$ and $L$ ,and $\\gamma_0$ is the noise power spectral density. Note that, despite the use of directional antenna, the swarm still experiences uplink interference generated by UAVs located",
415
+ "bbox": [
416
+ 70,
417
+ 787,
418
+ 491,
419
+ 893
420
+ ],
421
+ "page_idx": 2
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "outside of the swarm. In particular, these interfering UAVs share the same channel resource and exist in the main lobe of the UAV $L$ , and we define $\\Phi_{i}$ as the set of UAVs that generates interference to the uplink from UAV $i$ to UAV $L$ .",
426
+ "bbox": [
427
+ 501,
428
+ 65,
429
+ 924,
430
+ 126
431
+ ],
432
+ "page_idx": 2
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "Similarly, we can derive the transmission delay $T_{Li}$ for the downlink from UAV $L$ to UAV $i \\in \\mathcal{I}$ as:",
437
+ "bbox": [
438
+ 503,
439
+ 126,
440
+ 924,
441
+ 155
442
+ ],
443
+ "page_idx": 2
444
+ },
445
+ {
446
+ "type": "equation",
447
+ "text": "\n$$\nT _ {L i} = \\frac {S (\\boldsymbol {w})}{B _ {d} \\log_ {2} \\left(1 + \\frac {p _ {L} h _ {L i} d _ {L i} ^ {- \\alpha} G _ {L i} G _ {i L}}{\\sum_ {i ^ {\\prime} \\in \\Phi_ {L}} p _ {i ^ {\\prime}} h _ {i ^ {\\prime} i} d _ {i ^ {\\prime} i} ^ {- \\alpha} G _ {i ^ {\\prime} i} G _ {i i ^ {\\prime}} + B _ {d} \\gamma_ {0}}\\right)}, \\tag {5}\n$$\n",
448
+ "text_format": "latex",
449
+ "bbox": [
450
+ 522,
451
+ 152,
452
+ 924,
453
+ 196
454
+ ],
455
+ "page_idx": 2
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "where $B_{d}$ is the downlink bandwidth, $p_L \\in (0, p_{\\mathrm{max}})$ is the transmission power of UAV $L$ , and $\\Phi_L$ refers to the set of UAVs that will generate interference at the downlink.",
460
+ "bbox": [
461
+ 503,
462
+ 194,
463
+ 926,
464
+ 239
465
+ ],
466
+ "page_idx": 2
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "C. Control model",
471
+ "text_level": 1,
472
+ "bbox": [
473
+ 504,
474
+ 246,
475
+ 630,
476
+ 258
477
+ ],
478
+ "page_idx": 2
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "To guarantee constant speed and altitude and avoid collisions between UAVs within the swarm, the leading UAV will broadcast its speed and heading direction to the followers in the downlink. Here, the control system of each follower will use both its sensor data (e.g. location) and information received from the wireless links to coordinate its movement and achieve a target spacing and speed. Note that the target distance between the UAV leader and each follower is predefined such that there will be no collision between two nearby UAVs.",
483
+ "bbox": [
484
+ 501,
485
+ 263,
486
+ 924,
487
+ 400
488
+ ],
489
+ "page_idx": 2
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "Similar to our previous work in [12], we can build a Cartesian coordinate system to capture the locations of UAVs in the swarm, and, then, we decompose the velocity of each UAV into two components, as shown in Fig. 1(b). We can also define the control law of each UAV the same way as the one provided in [12]. Since the transmission delay will have a negative impact on the stability control of the UAV swarm, we must consider the delay requirement imposed by the control system when designing the UAV network.",
494
+ "bbox": [
495
+ 501,
496
+ 401,
497
+ 926,
498
+ 535
499
+ ],
500
+ "page_idx": 2
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "In addition, in order to fly with a constant speed and maintain a stable flying motion, each UAV must spend energy to overcome the gravity and the air drag forces due to the wind and forward motions. For a forward speed $v \\in (0, v_{\\max})$ with $v_{\\max}$ as the maximum speed, the minimum flying power of UAV $j \\in \\mathcal{I} \\cup \\{L\\}$ is $\\bar{p}_{j,\\min}(v) = \\hat{v}_j A_j$ , where $\\hat{v}_j$ is the induced velocity required for constant speed $v$ and given thrust $A_j = mg$ with $m$ being the UAV mass and $g$ being the gravitational constant [13]. Also, the induced velocity $\\hat{v}_j$ can be obtained by solving the following equation [13]:",
505
+ "bbox": [
506
+ 503,
507
+ 536,
508
+ 926,
509
+ 686
510
+ ],
511
+ "page_idx": 2
512
+ },
513
+ {
514
+ "type": "equation",
515
+ "text": "\n$$\n\\hat {v} _ {j} = \\frac {2 A _ {j}}{q r ^ {2} \\pi \\varrho \\sqrt {v ^ {2} + \\hat {v} _ {j} ^ {2}}}, \\tag {6}\n$$\n",
516
+ "text_format": "latex",
517
+ "bbox": [
518
+ 633,
519
+ 685,
520
+ 924,
521
+ 724
522
+ ],
523
+ "page_idx": 2
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "where $q$ and $r$ capture, respectively, the number and diameter of the UAV rotors, and $\\varrho$ is the air density. Moreover, we can further correct the theoretical minimum motion power consumption by the overall power efficiency $\\eta$ of the UAV in order to obtain the actual power consumption as $\\bar{p}_j(v) = \\bar{p}_{j,\\min}(v) / \\eta$ . Since the control of a UAV's dynamic motion consumes the most energy [13], we must consider the flying energy consumption when designing the swarm of UAVs. In particular, the flying energy consumption can be calculated as $\\bar{p}_j(v)T$ during the flying time $T$ .",
528
+ "bbox": [
529
+ 501,
530
+ 722,
531
+ 926,
532
+ 872
533
+ ],
534
+ "page_idx": 2
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "To guarantee the convergence of FL and the stable operation of the control system in the UAV swarm, we need to properly",
539
+ "bbox": [
540
+ 503,
541
+ 872,
542
+ 924,
543
+ 902
544
+ ],
545
+ "page_idx": 2
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "design the wireless communication network. At the same time, to guarantee that the energy spent on learning, communication, and flying will not exceed the energy limitation of each UAV, we need to consider the energy consumption during the FL convergence. Next, we first conduct the convergence analysis for the FL algorithm and derive the number of communication rounds needed to achieve the FL convergence. Then, we formulate an optimization problem that jointly designs the power allocation and scheduling policy to minimize the convergence round of FL while considering the delay requirement from the control system and energy consumption during the FL convergence.",
550
+ "bbox": [
551
+ 70,
552
+ 66,
553
+ 491,
554
+ 247
555
+ ],
556
+ "page_idx": 3
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "III. CONVERGENCE ANALYSIS AND JOINT DESIGN",
561
+ "text_level": 1,
562
+ "bbox": [
563
+ 99,
564
+ 253,
565
+ 460,
566
+ 266
567
+ ],
568
+ "page_idx": 3
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "A. FL convergence analysis",
573
+ "text_level": 1,
574
+ "bbox": [
575
+ 70,
576
+ 271,
577
+ 264,
578
+ 286
579
+ ],
580
+ "page_idx": 3
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "In order to guarantee FL convergence, we assume that the following UAVs adopt a standard gradient descent method to update their local FL models [4]. Thus, for following UAV $i \\in \\mathcal{I}$ , the local model $\\boldsymbol{w}_i^{(t)}$ at communication round $t$ is given by",
585
+ "bbox": [
586
+ 70,
587
+ 290,
588
+ 491,
589
+ 364
590
+ ],
591
+ "page_idx": 3
592
+ },
593
+ {
594
+ "type": "equation",
595
+ "text": "\n$$\n\\boldsymbol {w} _ {i} ^ {(t)} = \\boldsymbol {w} ^ {(t - 1)} - \\frac {\\bar {\\lambda}}{N _ {i}} \\nabla F _ {i} (\\boldsymbol {w} ^ {(t - 1)}), \\tag {7}\n$$\n",
596
+ "text_format": "latex",
597
+ "bbox": [
598
+ 161,
599
+ 364,
600
+ 488,
601
+ 393
602
+ ],
603
+ "page_idx": 3
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "where $\\pmb{w}^{(t - 1)}$ is the global FL model at communication round $t - 1$ , $\\bar{\\lambda}$ is the learning rate, and $F_{i}(\\pmb{w}^{(t - 1)}) = \\sum_{n = 1}^{N_{i}}f(\\pmb{w}^{(t - 1)},\\pmb{x}_{in},y_{in})$ . After the leading UAV collects local vectors $\\pmb{w}_i^{(t)}, i\\in \\mathcal{I}$ , the global FL model can be updated:",
608
+ "bbox": [
609
+ 70,
610
+ 393,
611
+ 491,
612
+ 458
613
+ ],
614
+ "page_idx": 3
615
+ },
616
+ {
617
+ "type": "equation",
618
+ "text": "\n$$\n\\boldsymbol {w} ^ {(t)} = \\frac {\\sum_ {i = 1} ^ {I} N _ {i} \\boldsymbol {w} _ {i} ^ {(t)}}{\\sum_ {i = 1} ^ {I} N _ {i}}. \\tag {8}\n$$\n",
619
+ "text_format": "latex",
620
+ "bbox": [
621
+ 204,
622
+ 455,
623
+ 488,
624
+ 494
625
+ ],
626
+ "page_idx": 3
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "However, for ensuring successful updates of both global and local FL models as shown in (7) and (8), the transmission delay of uplink and downlink should be within, respectively, $T_{u}(\\beta)$ and $T_{d}(\\beta)$ . Hence, after considering the impact of the transmission delays, we can rewrite the global FL model update as",
631
+ "bbox": [
632
+ 70,
633
+ 491,
634
+ 491,
635
+ 579
636
+ ],
637
+ "page_idx": 3
638
+ },
639
+ {
640
+ "type": "equation",
641
+ "text": "\n$$\n\\boldsymbol {w} ^ {(t)} = \\frac {\\sum_ {i = 1} ^ {I} N _ {i} \\boldsymbol {w} _ {i} ^ {(t)} C _ {i , t}}{\\sum_ {i = 1} ^ {I} N _ {i} C _ {i , t}}, \\tag {9}\n$$\n",
642
+ "text_format": "latex",
643
+ "bbox": [
644
+ 189,
645
+ 577,
646
+ 488,
647
+ 616
648
+ ],
649
+ "page_idx": 3
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "with",
654
+ "bbox": [
655
+ 71,
656
+ 613,
657
+ 106,
658
+ 625
659
+ ],
660
+ "page_idx": 3
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "with $C_{i,t} = \\left\\{ \\begin{array}{ll}1, & \\mathrm{with~probability~}\\mathbb{P}(T_{iL,t}\\leq T_u(\\beta),T_{Li,t}\\leq T_d(\\beta)),\\\\ 0, & \\mathrm{otherwise.} \\end{array} \\right.$",
665
+ "bbox": [
666
+ 71,
667
+ 622,
668
+ 496,
669
+ 651
670
+ ],
671
+ "page_idx": 3
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "With the aim of quantifying the convergence of FL, we use the notion of a convergence round, defined as the minimum number of communication rounds needed to achieve a target difference $\\varepsilon$ of the expected gap between current loss and the minimal loss, i.e., $\\mathbb{E}(F(\\boldsymbol{w}) - F(\\boldsymbol{w}^{*})) \\leq \\varepsilon$ . Moreover, to determine the convergence round, we make the following two standard assumptions: Function $F(\\boldsymbol{w})$ : $\\mathbb{R}^n \\to \\mathbb{R}$ is continuously differentiable, and the gradient of $F(\\boldsymbol{w})$ is uniformly Lipschitz continuous with positive parameter $U$ . We also consider the function $F$ to be strongly convex with positive parameter $\\mu$ , and these exists constants $\\zeta_1 \\geq 0$ and $\\zeta_2 \\geq 1$ , meeting $||\\nabla F_i(\\boldsymbol{w})||^2 \\leq \\zeta_1 + \\zeta_2||\\nabla F(\\boldsymbol{w})||^2$ [14]. Given the above assumptions, we can derive the convergence round.",
676
+ "bbox": [
677
+ 70,
678
+ 651,
679
+ 491,
680
+ 847
681
+ ],
682
+ "page_idx": 3
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "Theorem 1. To realize an expected convergence of $F(\\boldsymbol{w})$ under an accuracy threshold $\\varepsilon$ , i.e., $\\mathbb{E}(F(\\boldsymbol{w}) - F(\\boldsymbol{w}^{*})) \\leq \\varepsilon$ ,",
687
+ "bbox": [
688
+ 70,
689
+ 854,
690
+ 491,
691
+ 885
692
+ ],
693
+ "page_idx": 3
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "the convergence round is given by:",
698
+ "bbox": [
699
+ 504,
700
+ 66,
701
+ 746,
702
+ 80
703
+ ],
704
+ "page_idx": 3
705
+ },
706
+ {
707
+ "type": "equation",
708
+ "text": "\n$$\n\\varphi = \\left[ \\log_ {1 - \\rho} \\frac {\\varepsilon}{\\sum_ {i = 1} ^ {I} \\sum_ {n = 1} ^ {N _ {i}} f (\\boldsymbol {w} ^ {(0)} , \\boldsymbol {x} _ {i n} , y _ {i n})} \\right], \\tag {10}\n$$\n",
709
+ "text_format": "latex",
710
+ "bbox": [
711
+ 540,
712
+ 79,
713
+ 924,
714
+ 119
715
+ ],
716
+ "page_idx": 3
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "where $\\lceil \\cdot \\rceil$ is the ceiling function, and $\\rho$ captures the convergence speed given as follows",
721
+ "bbox": [
722
+ 503,
723
+ 116,
724
+ 924,
725
+ 145
726
+ ],
727
+ "page_idx": 3
728
+ },
729
+ {
730
+ "type": "equation",
731
+ "text": "\n$$\n\\rho = \\frac {\\sum_ {i = 1} ^ {T} N _ {i} \\mathbb {P} \\left(T _ {i L , t} \\leq T _ {u} (\\beta) , T _ {L i , t} \\leq T _ {d} (\\beta)\\right) \\mu}{N U}. \\tag {11}\n$$\n",
732
+ "text_format": "latex",
733
+ "bbox": [
734
+ 540,
735
+ 145,
736
+ 924,
737
+ 176
738
+ ],
739
+ "page_idx": 3
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "Proof: Due to the space limitation, the proof is included in Appendix A.",
744
+ "bbox": [
745
+ 503,
746
+ 180,
747
+ 924,
748
+ 210
749
+ ],
750
+ "page_idx": 3
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "As shown in Theorem 1, the convergence performance of FL depends on the transmission delay of both uplink and downlink in the network. In particular, to increase the convergence speed, we need to maximize the probability that both uplink and downlink meet the corresponding delay requirements of FL. Thus, Theorem 1 provides a concrete characterization of the interplay between wireless communications and FL performance in a UAV swarm.",
755
+ "bbox": [
756
+ 501,
757
+ 217,
758
+ 926,
759
+ 337
760
+ ],
761
+ "page_idx": 3
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "For the stability analysis of the control system, we will follow the method provided by our previous work in [12]. That is, we first build the augmented error state vector. Then, we use Lyapunov-Razumikhin theorem to derive the control system delay requirements $\\tau_{i}, i \\in \\mathcal{I}$ , for downlink that can guarantee the stability of the UAV swarm.",
766
+ "bbox": [
767
+ 501,
768
+ 338,
769
+ 924,
770
+ 429
771
+ ],
772
+ "page_idx": 3
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "B. Problem formulation and solution concept",
777
+ "text_level": 1,
778
+ "bbox": [
779
+ 504,
780
+ 436,
781
+ 815,
782
+ 452
783
+ ],
784
+ "page_idx": 3
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "Here, we formulate an optimization problem to minimize the convergence round by jointly designing the power allocation and scheduling for the UAV network, as follows:",
789
+ "bbox": [
790
+ 503,
791
+ 455,
792
+ 924,
793
+ 501
794
+ ],
795
+ "page_idx": 3
796
+ },
797
+ {
798
+ "type": "equation",
799
+ "text": "\n$$\n\\min _ {\\left\\{\\boldsymbol {p}, p _ {L}, \\beta , v \\right\\}} \\varphi \\tag {12}\n$$\n",
800
+ "text_format": "latex",
801
+ "bbox": [
802
+ 544,
803
+ 502,
804
+ 924,
805
+ 526
806
+ ],
807
+ "page_idx": 3
808
+ },
809
+ {
810
+ "type": "equation",
811
+ "text": "\n$$\n\\mathrm {s . t .} \\mathbb {P} \\left[ \\varphi E _ {L} + \\varphi p _ {L} T _ {d} (\\beta) + \\varphi \\bar {p} _ {L} (v) T _ {r} \\leq \\bar {E} \\right] \\geq \\xi_ {L}, \\tag {13}\n$$\n",
812
+ "text_format": "latex",
813
+ "bbox": [
814
+ 544,
815
+ 527,
816
+ 924,
817
+ 551
818
+ ],
819
+ "page_idx": 3
820
+ },
821
+ {
822
+ "type": "equation",
823
+ "text": "\n$$\n\\mathbb {P} \\left[ \\varphi E _ {i} + \\varphi p _ {i} T _ {i L} + \\varphi \\bar {p} _ {i} (v) T _ {r} \\leq \\bar {E} \\right] \\geq \\xi_ {i}, i \\in \\mathcal {I}, \\tag {14}\n$$\n",
824
+ "text_format": "latex",
825
+ "bbox": [
826
+ 566,
827
+ 553,
828
+ 924,
829
+ 579
830
+ ],
831
+ "page_idx": 3
832
+ },
833
+ {
834
+ "type": "equation",
835
+ "text": "\n$$\n\\mathbb {P} \\left(T _ {L i} \\leq \\tau_ {i}\\right) \\geq \\xi_ {C}, i \\in \\mathcal {I}, \\tag {15}\n$$\n",
836
+ "text_format": "latex",
837
+ "bbox": [
838
+ 566,
839
+ 580,
840
+ 924,
841
+ 597
842
+ ],
843
+ "page_idx": 3
844
+ },
845
+ {
846
+ "type": "equation",
847
+ "text": "\n$$\np _ {L} \\in (0, p _ {L, \\max }, p _ {i} \\in (0, p _ {i, \\max }), i \\in \\mathcal {I}, \\tag {16}\n$$\n",
848
+ "text_format": "latex",
849
+ "bbox": [
850
+ 565,
851
+ 599,
852
+ 924,
853
+ 616
854
+ ],
855
+ "page_idx": 3
856
+ },
857
+ {
858
+ "type": "equation",
859
+ "text": "\n$$\n\\beta \\in (0, 1), v \\in (0, v _ {\\max }) \\tag {17}\n$$\n",
860
+ "text_format": "latex",
861
+ "bbox": [
862
+ 566,
863
+ 619,
864
+ 924,
865
+ 635
866
+ ],
867
+ "page_idx": 3
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "where vector $\\pmb{p} = [p_1, \\dots, p_I]$ . Constraint (13) guarantees that the probability of total energy consumption for the leading UAV being less than a threshold $\\bar{E}$ will be greater than $\\xi_L \\in (0, 1)$ . Similarly to (13), constraint (14) represents the constraint on energy consumption of each follower $i \\in \\mathcal{I}$ . Constraint (15) guarantees that the UAV communication network is reliable to support the stability of the swarm with probability $\\xi_C$ . Constraints (16) and (17) ensure that the optimization variables, i.e., the transmission power, scheduling parameter, and velocity, are chosen within reasonable ranges. Note that, in the optimization problem, we also optimize the operation speed of the UAV swarm to minimize the motion energy consumption and relax the energy constraints in (13) and (14).",
872
+ "bbox": [
873
+ 501,
874
+ 633,
875
+ 926,
876
+ 829
877
+ ],
878
+ "page_idx": 3
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "Since both exponent and base in the logarithm function (10) are less than 1, minimizing the logarithm function in (12) is",
883
+ "bbox": [
884
+ 503,
885
+ 830,
886
+ 924,
887
+ 859
888
+ ],
889
+ "page_idx": 3
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "equivalent to minimizing the base for the constant exponent. Also, according to (11), we can simplify (12) as",
894
+ "bbox": [
895
+ 70,
896
+ 66,
897
+ 488,
898
+ 95
899
+ ],
900
+ "page_idx": 4
901
+ },
902
+ {
903
+ "type": "equation",
904
+ "text": "\n$$\n\\max _ {\\left\\{\\boldsymbol {p}, p _ {L}, \\beta , v \\right\\}} \\sum_ {i = 1} ^ {I} N _ {i} \\mathbb {P} \\left(T _ {i L, t} \\leq T _ {u} (\\beta), T _ {L i, t} \\leq T _ {d} (\\beta)\\right). \\tag {18}\n$$\n",
905
+ "text_format": "latex",
906
+ "bbox": [
907
+ 104,
908
+ 95,
909
+ 488,
910
+ 133
911
+ ],
912
+ "page_idx": 4
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "We observe that, after simplifications, both objective function and constraints are represented by probability terms. In this case, directly deriving the probability terms will be challenging since it requires multidimensional integrations. Also, as the optimization problem is not convex, employing convex approximations to simplify the optimization problem will be impossible. Instead, we use a sample average approximation approach where the probability terms in the objective function and constraints are replaced by an empirical distribution found by random samples [15]. In particular, we first generate $K$ independent samples of the random parameters, i.e., wireless channel gains and angle deviations, and we calculate the corresponding transmission delay and convergence round. Then, we can reformulate the optimization problem as",
917
+ "bbox": [
918
+ 70,
919
+ 132,
920
+ 490,
921
+ 343
922
+ ],
923
+ "page_idx": 4
924
+ },
925
+ {
926
+ "type": "equation",
927
+ "text": "\n$$\n\\max _ {\\left\\{\\boldsymbol {p}, p _ {L}, \\beta , v \\right\\}} \\sum_ {i = 1} ^ {I} \\sum_ {k = 1} ^ {K} N _ {i} \\mathbb {1} \\left(T _ {u} (\\beta) - T _ {i L, k}\\right) \\mathbb {1} \\left(T _ {d} (\\beta) - T _ {L i, k}\\right) \\tag {19}\n$$\n",
928
+ "text_format": "latex",
929
+ "bbox": [
930
+ 84,
931
+ 343,
932
+ 488,
933
+ 395
934
+ ],
935
+ "page_idx": 4
936
+ },
937
+ {
938
+ "type": "equation",
939
+ "text": "\n$$\n\\text {s . t .} \\sum_ {k = 1} ^ {K} \\mathbb {1} \\left(\\bar {E} - \\left(\\varphi_ {k} E _ {L} + \\varphi_ {k} p _ {L} T _ {d} (\\beta) + \\varphi_ {k} \\bar {p} _ {L} (v) T _ {r}\\right)\\right) \\geq K \\xi_ {L}, \\tag {20}\n$$\n",
940
+ "text_format": "latex",
941
+ "bbox": [
942
+ 81,
943
+ 398,
944
+ 488,
945
+ 454
946
+ ],
947
+ "page_idx": 4
948
+ },
949
+ {
950
+ "type": "equation",
951
+ "text": "\n$$\n\\sum_ {k = 1} ^ {K} \\mathbb {1} \\left(\\bar {E} - \\left(\\varphi_ {k} E _ {i} + \\varphi_ {k} p _ {i} T _ {i L, k} + \\varphi_ {k} \\bar {p} _ {i} (v) T _ {r}\\right)\\right) \\geq K \\xi_ {i}, i \\in \\mathcal {I}, \\tag {21}\n$$\n",
952
+ "text_format": "latex",
953
+ "bbox": [
954
+ 98,
955
+ 457,
956
+ 488,
957
+ 512
958
+ ],
959
+ "page_idx": 4
960
+ },
961
+ {
962
+ "type": "equation",
963
+ "text": "\n$$\n\\sum_ {k = 1} ^ {K} \\mathbb {1} \\left(\\tau_ {i} - T _ {L i, k}\\right) \\geq K \\xi_ {C}, i \\in \\mathcal {I}, \\tag {22}\n$$\n",
964
+ "text_format": "latex",
965
+ "bbox": [
966
+ 98,
967
+ 515,
968
+ 488,
969
+ 556
970
+ ],
971
+ "page_idx": 4
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "(16) and (17),",
976
+ "bbox": [
977
+ 98,
978
+ 559,
979
+ 199,
980
+ 574
981
+ ],
982
+ "page_idx": 4
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "where the indicator function $\\mathbb{1}(r) = 1$ , once $r \\geq 0$ ; otherwise, we have $\\mathbb{1}(r) = 0$ . Due to the presence of the indicator function, the reformulated problem is non-smooth. To obtain a smooth problem, we can further replace the indicator functions with modified sigmoid functions, i.e., $\\Gamma(r) = \\frac{1}{1 + \\exp(-\\bar{c}r)}$ , where $\\bar{c}$ determines how quickly the modified sigmoid function changes near 0. To obtain a sub-optimal solution to the reformulated optimization problem with the indicator functions replaced by the modified sigmoid functions, we can use the dual method [16]. In particular, the Lagrangian function is",
987
+ "bbox": [
988
+ 70,
989
+ 574,
990
+ 490,
991
+ 726
992
+ ],
993
+ "page_idx": 4
994
+ },
995
+ {
996
+ "type": "equation",
997
+ "text": "\n$$\n\\mathcal {J} (\\boldsymbol {\\lambda}, \\boldsymbol {p}, p _ {L}, \\beta , v) = \\sum_ {i = 1} ^ {I} \\sum_ {k = 1} ^ {K} N _ {i} \\Gamma (T _ {u} (\\beta) - T _ {i L, k}) \\Gamma (T _ {d} (\\beta) - T _ {L i, k}) +\n$$\n",
998
+ "text_format": "latex",
999
+ "bbox": [
1000
+ 73,
1001
+ 732,
1002
+ 488,
1003
+ 770
1004
+ ],
1005
+ "page_idx": 4
1006
+ },
1007
+ {
1008
+ "type": "equation",
1009
+ "text": "\n$$\n\\lambda_ {1} \\left(\\sum_ {k = 1} ^ {K} \\Gamma \\left(\\bar {E} - \\left(\\varphi_ {k} E _ {L} + \\varphi_ {k} p _ {L} T _ {d} (\\beta) + \\varphi_ {k} \\bar {p} _ {L} (v) T _ {r}\\right)\\right) - K \\xi_ {L}\\right) +\n$$\n",
1010
+ "text_format": "latex",
1011
+ "bbox": [
1012
+ 73,
1013
+ 772,
1014
+ 467,
1015
+ 808
1016
+ ],
1017
+ "page_idx": 4
1018
+ },
1019
+ {
1020
+ "type": "equation",
1021
+ "text": "\n$$\n\\sum_ {i = 1} ^ {I} \\lambda_ {i + 1} \\left(\\sum_ {k = 1} ^ {K} \\Gamma \\left(\\bar {E} - \\left(\\varphi_ {k} E _ {i} + \\varphi_ {k} p _ {i} T _ {i L, k} + \\varphi_ {k} \\bar {p} _ {i} (v) T _ {r}\\right)\\right) - K \\xi_ {i}\\right) +\n$$\n",
1022
+ "text_format": "latex",
1023
+ "bbox": [
1024
+ 73,
1025
+ 810,
1026
+ 486,
1027
+ 847
1028
+ ],
1029
+ "page_idx": 4
1030
+ },
1031
+ {
1032
+ "type": "equation",
1033
+ "text": "\n$$\n\\sum_ {i = 1} ^ {I} \\lambda_ {I + 1 + i} \\left(\\sum_ {k = 1} ^ {K} \\Gamma \\left(\\tau_ {i} - T _ {L i, k}\\right) - K \\xi_ {C}\\right), \\tag {23}\n$$\n",
1034
+ "text_format": "latex",
1035
+ "bbox": [
1036
+ 75,
1037
+ 849,
1038
+ 488,
1039
+ 885
1040
+ ],
1041
+ "page_idx": 4
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "where vector $\\pmb{\\lambda} = [\\lambda_1, \\dots, \\lambda_{2I + 1}] \\succeq \\mathbf{0}_{1 \\times (2I + 1)}$ is the vector",
1046
+ "bbox": [
1047
+ 73,
1048
+ 885,
1049
+ 490,
1050
+ 901
1051
+ ],
1052
+ "page_idx": 4
1053
+ },
1054
+ {
1055
+ "type": "table",
1056
+ "img_path": "images/dcd06c5890b02b0232808c32ea9dfd5e4cc89f2b45f5d9f65f2af3eb8f0feed3.jpg",
1057
+ "table_caption": [
1058
+ "Table. I. Simulation parameters."
1059
+ ],
1060
+ "table_footnote": [],
1061
+ "table_body": "<table><tr><td>Parameters</td><td>Values</td></tr><tr><td>Number of followers I</td><td>5</td></tr><tr><td>Transmission power threshold pmax</td><td>0.5 W</td></tr><tr><td>Maximum speed vmax</td><td>20 m/s [18]</td></tr><tr><td>Energy consumption efficient κ</td><td>10-28 [18]</td></tr><tr><td>Number of cycles needed per bit C</td><td>103 [18]</td></tr><tr><td>Frequency of the CPU φ</td><td>109cycle/s</td></tr><tr><td>Time for each communication round Tr</td><td>0.1 s</td></tr><tr><td>Side lobe gain Gmin, path loss exponent α</td><td>-2 dB, 2.5</td></tr><tr><td>Noise spectral density γ0</td><td>-174 dBm/Hz</td></tr><tr><td>Packet size Sw and Swi</td><td>10 kB</td></tr><tr><td>Number of rotors q and the diameter r</td><td>4, 0.254 m [4]</td></tr><tr><td>Power efficiency η and density ρ of the air</td><td>70 %, 1.225 kg/m3 [4]</td></tr><tr><td>Number of samples K, Energy limits E</td><td>1,000, 7,000 J</td></tr></table>",
1062
+ "bbox": [
1063
+ 542,
1064
+ 73,
1065
+ 890,
1066
+ 231
1067
+ ],
1068
+ "page_idx": 4
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "of Lagrangian multipliers, and the dual objective function can be defined as $\\mathcal{D}(\\pmb{\\lambda}) = \\max_{\\pmb{p}, p_L, v, \\beta} \\mathcal{J}(\\pmb{\\lambda}, \\pmb{p}, p_L, \\beta, v)$ . The corresponding dual optimization problem is",
1073
+ "bbox": [
1074
+ 503,
1075
+ 243,
1076
+ 923,
1077
+ 287
1078
+ ],
1079
+ "page_idx": 4
1080
+ },
1081
+ {
1082
+ "type": "equation",
1083
+ "text": "\n$$\n\\min _ {\\boldsymbol {\\lambda}} \\mathcal {D} (\\boldsymbol {\\lambda}) \\quad \\text {s . t .} \\boldsymbol {\\lambda} \\geq \\mathbf {0}. \\tag {24}\n$$\n",
1084
+ "text_format": "latex",
1085
+ "bbox": [
1086
+ 633,
1087
+ 289,
1088
+ 923,
1089
+ 309
1090
+ ],
1091
+ "page_idx": 4
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "text": "Although the dual problem in (24) is always convex [17], $\\mathcal{D}(\\lambda)$ is not differentiable. Instead, we can use subgradients given by",
1096
+ "bbox": [
1097
+ 503,
1098
+ 306,
1099
+ 923,
1100
+ 335
1101
+ ],
1102
+ "page_idx": 4
1103
+ },
1104
+ {
1105
+ "type": "equation",
1106
+ "text": "\n$$\n\\Delta \\lambda_ {1} = \\sum_ {k = 1} ^ {K} \\Gamma \\left(\\bar {E} - \\left(\\varphi_ {k} ^ {*} E _ {L} + \\varphi_ {k} ^ {*} p _ {L} T _ {d} ^ {*} + \\varphi_ {k} ^ {*} \\bar {p} _ {L} ^ {*} T _ {r}\\right)\\right) - K \\xi_ {L},\n$$\n",
1107
+ "text_format": "latex",
1108
+ "bbox": [
1109
+ 506,
1110
+ 335,
1111
+ 877,
1112
+ 376
1113
+ ],
1114
+ "page_idx": 4
1115
+ },
1116
+ {
1117
+ "type": "equation",
1118
+ "text": "\n$$\n\\Delta \\lambda_ {i + 1} = \\sum_ {k = 1} ^ {K} \\Gamma \\left(\\bar {E} - \\left(\\varphi_ {k} ^ {*} E _ {i} + \\varphi_ {k} ^ {*} p _ {i} ^ {*} T _ {i L, k} ^ {*} + \\varphi_ {k} ^ {*} \\bar {p} _ {i} ^ {*} T _ {r}\\right)\\right) - K \\xi_ {i}, i \\in \\mathcal {I},\n$$\n",
1119
+ "text_format": "latex",
1120
+ "bbox": [
1121
+ 508,
1122
+ 378,
1123
+ 921,
1124
+ 419
1125
+ ],
1126
+ "page_idx": 4
1127
+ },
1128
+ {
1129
+ "type": "equation",
1130
+ "text": "\n$$\n\\Delta \\lambda_ {I + 1 + i} = \\sum_ {k = 1} ^ {K} \\Gamma \\left(\\tau_ {i} - T _ {L i, k} ^ {*}\\right) - K \\xi_ {C}, i \\in \\mathcal {I}, \\tag {25}\n$$\n",
1131
+ "text_format": "latex",
1132
+ "bbox": [
1133
+ 506,
1134
+ 421,
1135
+ 923,
1136
+ 460
1137
+ ],
1138
+ "page_idx": 4
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "where the terms $\\varphi_k^*, T_d^*, T_{iL,k}^*, T_{Li,k}^*, \\bar{p}_L^*, \\bar{p}_i^*$ are expressed by optimized variables $p^*, p_L^*, \\beta^*, v^*$ . The proof of subgradients is similar to the one provided in [16], and is omitted here. Thereby, we can solve the problem in (24) by either the subgradient method or the ellipsoid method, and their complexities are, respectively, $\\mathcal{O}\\left(\\frac{2I + 1}{\\epsilon^2}\\right)$ and $\\mathcal{O}\\left((2I + 1)^2 \\ln \\frac{1}{\\epsilon}\\right)$ with accuracy $\\epsilon$ [17]. Then, the sub-optimal solution of $\\{\\pmb{p}, p_L, \\beta, v\\}$ can be obtained by solving dual objective function $\\mathcal{D}(\\lambda)$ . In particular, similar to [16], we use the iterative method to sequentially derive the sub-optimal value of each element in $\\{\\pmb{p}, p_L, \\beta, v\\}$ (the details are omitted here due to space limitations). Note that, we assume that all these steps of solving the optimization problem are done by a central unit (e.g., cloud or BS), before the swarm starts training their learning models in FL. In particular, there is no need for the central unit to collect any information from UAVs, since all samples of wireless channel gains and antenna deviations are randomly generated by the central unit itself. Also, since the number of UAVs in the swarm is usually small, the complexity of using sample average approximation and dual approach will be low. As a result, the central unit can readily obtain the sub-optimal solution to the joint design problem and later send the power allocation and scheduling parameters to UAVs in the swarm.",
1143
+ "bbox": [
1144
+ 501,
1145
+ 460,
1146
+ 923,
1147
+ 806
1148
+ ],
1149
+ "page_idx": 4
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "IV. SIMULATION RESULTS AND ANALYSIS",
1154
+ "text_level": 1,
1155
+ "bbox": [
1156
+ 563,
1157
+ 815,
1158
+ 864,
1159
+ 829
1160
+ ],
1161
+ "page_idx": 4
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "For our simulations, we first validate the theoretical analysis in Theorem 1. Then, we show the impact of angle deviations on the convergence of FL, and we compare our joint design with baseline schemes that optimize power allocation and schedul",
1166
+ "bbox": [
1167
+ 503,
1168
+ 834,
1169
+ 923,
1170
+ 893
1171
+ ],
1172
+ "page_idx": 4
1173
+ },
1174
+ {
1175
+ "type": "image",
1176
+ "img_path": "images/d48332a15ab16294fc429fd8db6df0fd8d11ab440b33f32abda4c4400b076a11.jpg",
1177
+ "image_caption": [
1178
+ "Fig. 2. Validation of Theorem 1."
1179
+ ],
1180
+ "image_footnote": [],
1181
+ "bbox": [
1182
+ 138,
1183
+ 68,
1184
+ 421,
1185
+ 229
1186
+ ],
1187
+ "page_idx": 5
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "ing separately. In particular, we consider two baselines. The first baseline is a system with optimized power allocation (same power allocation in the joint design) and randomized scheduling parameters. The second baseline is a system with optimized scheduling (same scheduling used by the joint design) and randomized power allocation. We also assume equal uplink and downlink bandwidths, i.e., $B_{u} = B_{d} = 1 \\mathrm{MHz}$ , and equal angle deviation variance for each UAV, i.e., $\\sigma_j^2 = \\sigma^2$ , $j \\in \\mathcal{I} \\cup \\{L\\}$ . All simulation parameters are summarized in Table I.",
1192
+ "bbox": [
1193
+ 70,
1194
+ 279,
1195
+ 491,
1196
+ 415
1197
+ ],
1198
+ "page_idx": 5
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Fig. 2 shows the convergence round versus the difference threshold $\\varepsilon$ . Note that, in Fig. 2, we choose the range of $\\varepsilon \\in (5, 25)$ based on the value of $\\sum_{i=1}^{I} \\sum_{n=1}^{N_i} f(\\boldsymbol{w}_0, \\boldsymbol{x}_{in}, y_{in})$ and the range of $\\varepsilon$ will be varied for different settings of data and initial global FL model and the accuracy requirement. As observed from Fig. 2, the theoretical analysis derived in Theorem 1 is aligned with the simulation results with less than $5\\%$ difference, thus corroborating the validity of Theorem 1. Moreover, Fig. 2 shows that, when the difference threshold increases, the convergence round decreases. This is because, with a larger difference threshold, the requirement of convergence becomes less stringent. In this case, FL requires fewer communication rounds to converge.",
1203
+ "bbox": [
1204
+ 70,
1205
+ 416,
1206
+ 491,
1207
+ 611
1208
+ ],
1209
+ "page_idx": 5
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Fig. 3 shows the convergence round when the variance of angle deviations changes. From Fig. 3, we observe that, when the variance of angle deviations increases, FL needs more communication rounds to converge. This is due to the fact that, when the angle deviation variance increases, the antennas at transmitter and receiver in the network will be less aligned, leading to a drop in the antenna gains' product between transmitter and receiver in (4) and (5). As a result, the transmission delay of wireless links will increase, and the probability of meeting the delay requirements, i.e., $\\mathbb{P}(T_{iL,t} \\leq T_u, T_{Li,t} \\leq T_d)$ , decreases. Therefore, more communication rounds are needed to achieve the FL convergence. Moreover, as shown in Fig. 3, when the bandwidth allocated to uplink and downlink increases, the FL algorithm requires fewer communication rounds to achieve convergence. This stems from the fact that, a large bandwidth improves the probability of meeting the delay requirements, yielding a fast FL convergence.",
1214
+ "bbox": [
1215
+ 70,
1216
+ 611,
1217
+ 491,
1218
+ 867
1219
+ ],
1220
+ "page_idx": 5
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Fig. 4 compares our proposed joint power allocation and scheduling design with the baselines without a joint design. It",
1225
+ "bbox": [
1226
+ 70,
1227
+ 869,
1228
+ 491,
1229
+ 898
1230
+ ],
1231
+ "page_idx": 5
1232
+ },
1233
+ {
1234
+ "type": "image",
1235
+ "img_path": "images/9354308eb292f13f5eb1cbce4825b37a3fc2f50ff64a3d3ee2fef09a4608e1b9.jpg",
1236
+ "image_caption": [
1237
+ "Fig. 3. Impact of angle deviations on the FL convergence."
1238
+ ],
1239
+ "image_footnote": [],
1240
+ "bbox": [
1241
+ 562,
1242
+ 66,
1243
+ 864,
1244
+ 227
1245
+ ],
1246
+ "page_idx": 5
1247
+ },
1248
+ {
1249
+ "type": "image",
1250
+ "img_path": "images/98d46815a2e58e129133ac172afe0dc66d6f03182f512840f7e8d36b11a7477b.jpg",
1251
+ "image_caption": [
1252
+ "Fig. 4. Comparisons between systems with and without joint design."
1253
+ ],
1254
+ "image_footnote": [],
1255
+ "bbox": [
1256
+ 555,
1257
+ 266,
1258
+ 859,
1259
+ 425
1260
+ ],
1261
+ "page_idx": 5
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "is shown that, for the same network setting, the convergence round for a network with joint design is always less than its counterparts of baselines. In particular, when the bandwidth is $1\\mathrm{MHz}$ , the system with a joint design reduces the convergence round by as much as $35\\%$ compared with the baseline system with optimized scheduling and randomized power allocation design. Moreover, as shown in Fig. 4, when the bandwidth assigned to uplink and downlink increases, the performance gap between the system with the proposed joint design and the baselines decreases. That is because, as we increase the bandwidth, it becomes more probable for all three systems to meet the delay constraints at uplink and downlink. Therefore, the impact of communications delay on the FL convergence will be minimized.",
1266
+ "bbox": [
1267
+ 501,
1268
+ 473,
1269
+ 926,
1270
+ 684
1271
+ ],
1272
+ "page_idx": 5
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "V. CONCLUSIONS",
1277
+ "text_level": 1,
1278
+ "bbox": [
1279
+ 648,
1280
+ 694,
1281
+ 779,
1282
+ 707
1283
+ ],
1284
+ "page_idx": 5
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "In this paper, we have studied the possibility of implementing FL over a swarm of UAVs. In particular, we have carried out a convergence analysis to study the impact of wireless factors, such as transmission delay and antenna angle deviations, on the convergence of FL. Using the derived insight, we have jointly designed the power allocation and scheduling policy for the UAV swarm to optimize the convergence performance of FL while guaranteeing the stability of control system and controlling the energy consumption. Simulation results have corroborated the convergence analysis of FL and showed the merits of the proposed joint design.",
1289
+ "bbox": [
1290
+ 501,
1291
+ 712,
1292
+ 924,
1293
+ 878
1294
+ ],
1295
+ "page_idx": 5
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "APPENDIX",
1300
+ "text_level": 1,
1301
+ "bbox": [
1302
+ 243,
1303
+ 66,
1304
+ 320,
1305
+ 79
1306
+ ],
1307
+ "page_idx": 6
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "A. Proof of Theorem 1",
1312
+ "text_level": 1,
1313
+ "bbox": [
1314
+ 70,
1315
+ 85,
1316
+ 230,
1317
+ 99
1318
+ ],
1319
+ "page_idx": 6
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "According to the assumptions about function $F(\\pmb{w}) : \\mathbb{R}^n \\to \\mathbb{R}$ made in Section III, we know that function $F(\\pmb{w})$ is continuously differentiable, and the gradient of $F(\\pmb{w})$ is uniformly Lipschitz continuous, i.e., for some positive parameter $U$ , $||\\nabla F(\\pmb{w}^{(t + 1)}) - \\nabla F(\\pmb{w}^{(t)})|| \\leq U||\\pmb{w}^{(t + 1)} - \\pmb{w}^{(t)}||$ ; the function $F$ is strongly convex with positive parameter $\\mu$ : $F(\\pmb{w}^{(t + 1)}) \\geq F(\\pmb{w}^{(t)}) + (\\pmb{w}^{(t + 1)} - \\pmb{w}^{(t)})^T\\nabla F(\\pmb{w}^{(t)}) + \\frac{1}{2}\\mu ||\\pmb{w}^{(t + 1)} - \\pmb{w}^{(t)}||$ . If $F$ is twice-continuously differentiable, these two assumptions are equivalent to $\\mu I \\leq \\nabla^2 F(\\pmb{w}) \\leq UI$ . Also, following a standard assumption in stochastic optimization, we consider that there exists constants $\\zeta_1 \\geq 0$ and $\\zeta_2 \\geq 1$ , meeting $||\\nabla F_i(\\pmb{w})||^2 \\leq \\zeta_1 + \\zeta_2||\\nabla F(\\pmb{w})||^2$ [14].",
1324
+ "bbox": [
1325
+ 70,
1326
+ 104,
1327
+ 491,
1328
+ 285
1329
+ ],
1330
+ "page_idx": 6
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "In this case, since the global FL model is the aggregation of all local FL models, the global FL model without the impact of the transmission delay can be given as",
1335
+ "bbox": [
1336
+ 70,
1337
+ 286,
1338
+ 491,
1339
+ 330
1340
+ ],
1341
+ "page_idx": 6
1342
+ },
1343
+ {
1344
+ "type": "equation",
1345
+ "text": "\n$$\n\\boldsymbol {w} ^ {(t)} = \\frac {\\sum_ {i = 1} ^ {I} N _ {i} \\boldsymbol {w} _ {i} ^ {(t)}}{\\sum_ {i = 1} ^ {I} N _ {i}} = \\boldsymbol {w} ^ {(t - 1)} - \\lambda \\nabla F (\\boldsymbol {w} ^ {(t - 1)}). \\tag {26}\n$$\n",
1346
+ "text_format": "latex",
1347
+ "bbox": [
1348
+ 99,
1349
+ 329,
1350
+ 488,
1351
+ 366
1352
+ ],
1353
+ "page_idx": 6
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "After taking into account the impact of transmission delays, we can rewrite the global FL model update as",
1358
+ "bbox": [
1359
+ 70,
1360
+ 364,
1361
+ 488,
1362
+ 393
1363
+ ],
1364
+ "page_idx": 6
1365
+ },
1366
+ {
1367
+ "type": "equation",
1368
+ "text": "\n$$\n\\boldsymbol {w} ^ {(t)} = \\frac {\\sum_ {i = 1} ^ {I} N _ {i} \\boldsymbol {w} _ {i} ^ {(t)} C _ {i , t}}{\\sum_ {i = 1} ^ {I} N _ {i} C _ {i , t}} = \\boldsymbol {w} ^ {(t - 1)} - \\lambda (\\nabla F (\\boldsymbol {w} ^ {(t - 1)}) + e ^ {(t)}),\n$$\n",
1369
+ "text_format": "latex",
1370
+ "bbox": [
1371
+ 71,
1372
+ 391,
1373
+ 488,
1374
+ 430
1375
+ ],
1376
+ "page_idx": 6
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "where $e^{(t)} = -\\nabla F(\\pmb{w}^{(t-1)}) + \\frac{\\sum_{i=1}^{I} N_i \\nabla F_i(\\pmb{w}^{(t-1)}) C_{i,t}}{\\sum_{i=1}^{I} N_i C_{i,t}}$ . Based on the assumption on the uniform Lipschitz continuity and strong convexity, we can have the following inequalities:",
1381
+ "bbox": [
1382
+ 70,
1383
+ 429,
1384
+ 488,
1385
+ 478
1386
+ ],
1387
+ "page_idx": 6
1388
+ },
1389
+ {
1390
+ "type": "equation",
1391
+ "text": "\n$$\n\\begin{array}{l} F (\\boldsymbol {w} ^ {(t)}) \\leq F (\\boldsymbol {w} ^ {(t - 1)}) + (\\boldsymbol {w} ^ {(t)} - \\boldsymbol {w} ^ {(t - 1)}) ^ {T} \\nabla \\tilde {F} (\\boldsymbol {w} ^ {(t - 1)}) \\\\ + \\frac {U}{2} \\| \\boldsymbol {w} ^ {(t)} - \\boldsymbol {w} ^ {(t - 1)} \\| ^ {2}, \\tag {27} \\\\ \\end{array}\n$$\n",
1392
+ "text_format": "latex",
1393
+ "bbox": [
1394
+ 91,
1395
+ 478,
1396
+ 488,
1397
+ 526
1398
+ ],
1399
+ "page_idx": 6
1400
+ },
1401
+ {
1402
+ "type": "equation",
1403
+ "text": "\n$$\n\\begin{array}{l} F (\\boldsymbol {w} ^ {(t)}) \\geq F (\\boldsymbol {w} ^ {(t - 1)}) + (\\boldsymbol {w} ^ {(t)} - \\boldsymbol {w} ^ {(t - 1)}) ^ {T} \\nabla F (\\boldsymbol {w} ^ {(t - 1)}) \\\\ + \\frac {\\mu}{2} \\left\\| \\boldsymbol {w} ^ {(t)} - \\boldsymbol {w} ^ {(t - 1)} \\right\\| ^ {2}. \\tag {28} \\\\ \\end{array}\n$$\n",
1404
+ "text_format": "latex",
1405
+ "bbox": [
1406
+ 91,
1407
+ 527,
1408
+ 488,
1409
+ 571
1410
+ ],
1411
+ "page_idx": 6
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "Since $\\pmb{w}^{(t)} = \\overline{\\pmb{w}}^{(t - 1)} - \\lambda (\\nabla F(\\pmb{w}^{(t - 1)}) + e^{(t)})$ , we can simplify (27) when the learning rate is $\\lambda = \\frac{1}{U}$ as",
1416
+ "bbox": [
1417
+ 70,
1418
+ 571,
1419
+ 488,
1420
+ 602
1421
+ ],
1422
+ "page_idx": 6
1423
+ },
1424
+ {
1425
+ "type": "equation",
1426
+ "text": "\n$$\n\\begin{array}{l} F (\\boldsymbol {w} ^ {(t)}) \\leq F (\\boldsymbol {w} ^ {(t - 1)}) - \\frac {1}{U} \\left(\\nabla F (\\boldsymbol {w} ^ {(t - 1)}) + e ^ {(t)}\\right) ^ {T} \\nabla F (\\boldsymbol {w} ^ {(t - 1)}) \\\\ + \\frac {1}{2 U} | | \\nabla F (\\boldsymbol {w} ^ {(t - 1)}) + e ^ {(t)} | | ^ {2} \\\\ = F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) - \\frac {1}{2 U} \\left\\| \\nabla F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) \\right\\| ^ {2} + \\frac {1}{2 U} \\left\\| e ^ {(t)} \\right\\| ^ {2}. \\tag {29} \\\\ \\end{array}\n$$\n",
1427
+ "text_format": "latex",
1428
+ "bbox": [
1429
+ 71,
1430
+ 602,
1431
+ 488,
1432
+ 699
1433
+ ],
1434
+ "page_idx": 6
1435
+ },
1436
+ {
1437
+ "type": "text",
1438
+ "text": "To find a lower bound on the norm of $\\nabla F(\\pmb{w}^{(t)})$ , we can minimize both sides of (28) with respect $\\pmb{w}^{(t)}$ . The minimal value of the left-hand side of (28) is achieved when $\\pmb{w}^{(t)} = \\pmb{w}^*$ , and the minimal value of the right-hand side of (28) is realized when $\\pmb{w}^{(t)} = \\pmb{w}^{(t - 1)} - \\frac{1}{\\mu}\\nabla F(\\pmb{w}^{(t - 1)})$ . Particularly, we have",
1439
+ "bbox": [
1440
+ 70,
1441
+ 700,
1442
+ 488,
1443
+ 777
1444
+ ],
1445
+ "page_idx": 6
1446
+ },
1447
+ {
1448
+ "type": "equation",
1449
+ "text": "\n$$\nF \\left(\\boldsymbol {w} ^ {*}\\right) \\geq F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) - \\frac {1}{2 \\mu} | | \\nabla F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) | | ^ {2}. \\tag {30}\n$$\n",
1450
+ "text_format": "latex",
1451
+ "bbox": [
1452
+ 130,
1453
+ 777,
1454
+ 488,
1455
+ 806
1456
+ ],
1457
+ "page_idx": 6
1458
+ },
1459
+ {
1460
+ "type": "text",
1461
+ "text": "When replacing $\\pmb{w}^{(t - 1)}$ with $\\pmb{w}^{(t)}$ in (30), we can obtain a lower bound for the norm of $\\nabla F(\\pmb{w}^{(t)})$ as",
1462
+ "bbox": [
1463
+ 70,
1464
+ 805,
1465
+ 488,
1466
+ 835
1467
+ ],
1468
+ "page_idx": 6
1469
+ },
1470
+ {
1471
+ "type": "equation",
1472
+ "text": "\n$$\n\\left| \\left| \\nabla F \\left(\\boldsymbol {w} ^ {(t)}\\right) \\right| \\right| ^ {2} \\geq 2 \\mu \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right). \\tag {31}\n$$\n",
1473
+ "text_format": "latex",
1474
+ "bbox": [
1475
+ 143,
1476
+ 835,
1477
+ 488,
1478
+ 852
1479
+ ],
1480
+ "page_idx": 6
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "Combining (29) and (31), we can obtain an upper bound of the current loss and the minimal loss given by",
1485
+ "bbox": [
1486
+ 70,
1487
+ 851,
1488
+ 491,
1489
+ 880
1490
+ ],
1491
+ "page_idx": 6
1492
+ },
1493
+ {
1494
+ "type": "equation",
1495
+ "text": "\n$$\nF \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right) \\leq \\left(1 - \\frac {\\mu}{U}\\right) \\left[ F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right) \\right] + \\frac {1}{2 U} \\left\\| e ^ {(t)} \\right\\| ^ {2}.\n$$\n",
1496
+ "text_format": "latex",
1497
+ "bbox": [
1498
+ 71,
1499
+ 880,
1500
+ 491,
1501
+ 906
1502
+ ],
1503
+ "page_idx": 6
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "According to [19], when $\\mathbb{E}[||e^{(t)}||^2] \\leq 2U\\left(\\frac{\\mu}{U} - \\rho^{(t)}\\right)\\mathbb{E}(F(\\boldsymbol{w}^{(t)}) - F(\\boldsymbol{w}^*))$ , we can achieve the strong expected linear convergence, i.e.,",
1508
+ "bbox": [
1509
+ 503,
1510
+ 80,
1511
+ 924,
1512
+ 126
1513
+ ],
1514
+ "page_idx": 6
1515
+ },
1516
+ {
1517
+ "type": "equation",
1518
+ "text": "\n$$\n\\overline {{\\mathbb {E}}} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right) \\leq (1 - \\rho^ {(t)}) \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right).\n$$\n",
1519
+ "text_format": "latex",
1520
+ "bbox": [
1521
+ 506,
1522
+ 125,
1523
+ 916,
1524
+ 143
1525
+ ],
1526
+ "page_idx": 6
1527
+ },
1528
+ {
1529
+ "type": "text",
1530
+ "text": "According to the strong expected linear convergence requirement, we know that the convergence rate satisfies",
1531
+ "bbox": [
1532
+ 503,
1533
+ 143,
1534
+ 921,
1535
+ 170
1536
+ ],
1537
+ "page_idx": 6
1538
+ },
1539
+ {
1540
+ "type": "equation",
1541
+ "text": "\n$$\n\\rho^ {(t)} \\leq \\frac {\\mu}{U} - \\frac {\\mathbb {E} [ | | e ^ {(t)} | | ^ {2} ]}{2 U \\mathbb {E} (F (\\boldsymbol {w} ^ {(t)}) - F (\\boldsymbol {w} ^ {*}))}. \\tag {32}\n$$\n",
1542
+ "text_format": "latex",
1543
+ "bbox": [
1544
+ 581,
1545
+ 170,
1546
+ 923,
1547
+ 203
1548
+ ],
1549
+ "page_idx": 6
1550
+ },
1551
+ {
1552
+ "type": "text",
1553
+ "text": "By using the results in [20], we have the following inequality:",
1554
+ "bbox": [
1555
+ 504,
1556
+ 200,
1557
+ 923,
1558
+ 215
1559
+ ],
1560
+ "page_idx": 6
1561
+ },
1562
+ {
1563
+ "type": "equation",
1564
+ "text": "\n$$\n\\begin{array}{l} \\mathbb {E} \\left(\\left\\| e ^ {(t)} \\right\\| ^ {2}\\right) \\leq \\frac {1}{N} \\sum_ {i = 1} ^ {I} N _ {i} \\left(\\zeta_ {1} + \\zeta_ {2} \\mathbb {E} \\left(\\nabla F \\left(\\boldsymbol {w} ^ {(t)}\\right)\\right)\\right) \\times \\\\ (1 - \\mathbb {P} (T _ {i L} \\leq T _ {u} (\\beta), T _ {L i} \\leq T _ {d} (\\beta))). \\tag {33} \\\\ \\end{array}\n$$\n",
1565
+ "text_format": "latex",
1566
+ "bbox": [
1567
+ 537,
1568
+ 214,
1569
+ 923,
1570
+ 271
1571
+ ],
1572
+ "page_idx": 6
1573
+ },
1574
+ {
1575
+ "type": "text",
1576
+ "text": "The right-hand side of (32) will meet the following inequality:",
1577
+ "bbox": [
1578
+ 504,
1579
+ 272,
1580
+ 923,
1581
+ 286
1582
+ ],
1583
+ "page_idx": 6
1584
+ },
1585
+ {
1586
+ "type": "equation",
1587
+ "text": "\n$$\n\\begin{array}{l} \\frac {\\mu}{U} - \\frac {\\mathbb {E} [ | | e ^ {(t)} | | ^ {2} ]}{2 U \\mathbb {E} (F (\\boldsymbol {w} ^ {(t)}) - F (\\boldsymbol {w} ^ {*}))} \\geq \\frac {\\mu}{U} - \\sum_ {i = 1} ^ {I} N _ {i} \\left(\\zeta_ {1} + \\zeta_ {2} \\mathbb {E} \\left(\\nabla F (\\boldsymbol {w} ^ {(t)})\\right)\\right) \\\\ \\times \\frac {\\left(1 - \\mathbb {P} \\left(T _ {i L} \\leq T _ {u} (\\beta) , T _ {L i} \\leq T _ {d} (\\beta)\\right)\\right)}{2 N U \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right)}. \\tag {34} \\\\ \\end{array}\n$$\n",
1588
+ "text_format": "latex",
1589
+ "bbox": [
1590
+ 506,
1591
+ 285,
1592
+ 923,
1593
+ 358
1594
+ ],
1595
+ "page_idx": 6
1596
+ },
1597
+ {
1598
+ "type": "text",
1599
+ "text": "Therefore, to guarantee that (32) always exists, we have",
1600
+ "bbox": [
1601
+ 504,
1602
+ 356,
1603
+ 885,
1604
+ 369
1605
+ ],
1606
+ "page_idx": 6
1607
+ },
1608
+ {
1609
+ "type": "equation",
1610
+ "text": "\n$$\n\\begin{array}{l} \\rho^ {(t)} \\leq \\frac {\\mu}{U} - \\sum_ {i = 1} ^ {I} N _ {i} \\left(\\zeta_ {1} + \\zeta_ {2} \\mathbb {E} \\left(\\nabla F \\left(\\boldsymbol {w} ^ {(t)}\\right)\\right)\\right) \\\\ \\times \\frac {(1 - \\mathbb {P} (T _ {i L} \\leq T _ {u} (\\beta) , T _ {L i} \\leq T _ {d} (\\beta)))}{2 N U \\mathbb {E} (F (\\boldsymbol {w} ^ {(t)}) - F (\\boldsymbol {w} ^ {*}))} \\\\ \\end{array}\n$$\n",
1611
+ "text_format": "latex",
1612
+ "bbox": [
1613
+ 517,
1614
+ 369,
1615
+ 828,
1616
+ 444
1617
+ ],
1618
+ "page_idx": 6
1619
+ },
1620
+ {
1621
+ "type": "equation",
1622
+ "text": "\n$$\n\\begin{array}{l} \\stackrel {(a)} {\\leq} \\frac {\\mu}{U} - \\sum_ {i = 1} ^ {I} N _ {i} \\left(\\zeta_ {1} + \\zeta_ {2} 2 \\mu \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right)\\right) \\\\ \\times \\frac {\\left(1 - \\mathbb {P} \\left(T _ {i L} \\leq T _ {u} (\\beta) , T _ {L i} \\leq T _ {d} (\\beta)\\right)\\right)}{2 N U \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right)} \\\\ \\end{array}\n$$\n",
1623
+ "text_format": "latex",
1624
+ "bbox": [
1625
+ 524,
1626
+ 445,
1627
+ 825,
1628
+ 520
1629
+ ],
1630
+ "page_idx": 6
1631
+ },
1632
+ {
1633
+ "type": "equation",
1634
+ "text": "\n$$\n\\begin{array}{l} \\stackrel {(b)} {\\leq} \\frac {\\mu}{U} - \\sum_ {i = 1} ^ {I} N _ {i} \\left(2 \\mu \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right)\\right) \\\\ \\times \\frac {\\left(1 - \\mathbb {P} \\left(T _ {i L} \\leq T _ {u} (\\beta) , T _ {L i} \\leq T _ {d} (\\beta)\\right)\\right)}{2 N U \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right)} \\\\ \\end{array}\n$$\n",
1635
+ "text_format": "latex",
1636
+ "bbox": [
1637
+ 524,
1638
+ 522,
1639
+ 828,
1640
+ 597
1641
+ ],
1642
+ "page_idx": 6
1643
+ },
1644
+ {
1645
+ "type": "equation",
1646
+ "text": "\n$$\n= \\frac {\\mu}{U} - \\frac {\\sum_ {i = 1} ^ {I} N _ {i} \\mu \\left(1 - \\mathbb {P} \\left(T _ {i L} \\leq T _ {u} (\\beta) , T _ {L i} \\leq T _ {d} (\\beta)\\right)\\right)}{N U}, \\tag {35}\n$$\n",
1647
+ "text_format": "latex",
1648
+ "bbox": [
1649
+ 522,
1650
+ 598,
1651
+ 923,
1652
+ 630
1653
+ ],
1654
+ "page_idx": 6
1655
+ },
1656
+ {
1657
+ "type": "text",
1658
+ "text": "where in (a), we use the results derived in (31), and the derivation in (b) is based on the fact that $\\zeta_1 \\geq 0$ and $\\zeta_2 \\geq 1$ . Assume $\\rho = \\frac{\\mu}{U} - \\frac{\\sum_{i=1}^{I} N_i \\mu(1 - \\mathbb{P}(T_{iL} \\leq T_u(\\beta), T_{Li} \\leq T_d(\\beta)))}{NU} = \\frac{\\sum_{i=1}^{I} N_i \\mu(\\mathbb{P}(T_{iL} \\leq T_u(\\beta), T_{Li} \\leq T_d(\\beta)))}{NU}$ , then, we can have",
1659
+ "bbox": [
1660
+ 504,
1661
+ 627,
1662
+ 923,
1663
+ 693
1664
+ ],
1665
+ "page_idx": 6
1666
+ },
1667
+ {
1668
+ "type": "equation",
1669
+ "text": "\n$$\n\\begin{array}{l} \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right) \\leq (1 - \\rho) \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right) \\\\ \\leq (1 - \\rho) ^ {2} \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t - 2)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right) \\\\ \\end{array}\n$$\n",
1670
+ "text_format": "latex",
1671
+ "bbox": [
1672
+ 519,
1673
+ 691,
1674
+ 908,
1675
+ 729
1676
+ ],
1677
+ "page_idx": 6
1678
+ },
1679
+ {
1680
+ "type": "text",
1681
+ "text": "··",
1682
+ "bbox": [
1683
+ 666,
1684
+ 739,
1685
+ 681,
1686
+ 746
1687
+ ],
1688
+ "page_idx": 6
1689
+ },
1690
+ {
1691
+ "type": "equation",
1692
+ "text": "\n$$\n\\leq (1 - \\rho) ^ {t} \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(0)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right).\n$$\n",
1693
+ "text_format": "latex",
1694
+ "bbox": [
1695
+ 669,
1696
+ 751,
1697
+ 895,
1698
+ 768
1699
+ ],
1700
+ "page_idx": 6
1701
+ },
1702
+ {
1703
+ "type": "text",
1704
+ "text": "We can further determine the convergence round needed to achieve a target difference threshold, i.e., $\\mathbb{E}(F(\\boldsymbol{w}) - F(\\boldsymbol{w}^{*}))\\leq \\varepsilon$ , as follows:",
1705
+ "bbox": [
1706
+ 503,
1707
+ 768,
1708
+ 923,
1709
+ 811
1710
+ ],
1711
+ "page_idx": 6
1712
+ },
1713
+ {
1714
+ "type": "equation",
1715
+ "text": "\n$$\n\\begin{array}{l} t \\geq \\log_ {1 - \\rho} \\frac {\\varepsilon}{\\mathbb {E} (F (\\boldsymbol {w} ^ {(0)}) - F (\\boldsymbol {w} ^ {*}))} \\\\ \\stackrel {(a)} {\\geq} \\log_ {1 - \\rho} \\frac {\\varepsilon}{\\mathbb {E} (F (\\boldsymbol {w} ^ {(0)}))} \\\\ = \\log_ {1 - \\rho} \\frac {\\varepsilon}{\\sum_ {i = 1} ^ {I} \\sum_ {n = 1} ^ {N _ {i}} f \\left(\\boldsymbol {w} ^ {(0)}, \\boldsymbol {x} _ {i n} , y _ {i n}\\right)}, \\tag {36} \\\\ \\end{array}\n$$\n",
1716
+ "text_format": "latex",
1717
+ "bbox": [
1718
+ 568,
1719
+ 810,
1720
+ 923,
1721
+ 906
1722
+ ],
1723
+ "page_idx": 6
1724
+ },
1725
+ {
1726
+ "type": "text",
1727
+ "text": "where in (a), we use the fact that $1 - \\rho \\leq 1$ . Since the convergence round must be integral, we can have the results in Theorem 1.",
1728
+ "bbox": [
1729
+ 70,
1730
+ 66,
1731
+ 491,
1732
+ 111
1733
+ ],
1734
+ "page_idx": 7
1735
+ },
1736
+ {
1737
+ "type": "text",
1738
+ "text": "REFERENCES",
1739
+ "text_level": 1,
1740
+ "bbox": [
1741
+ 233,
1742
+ 119,
1743
+ 330,
1744
+ 133
1745
+ ],
1746
+ "page_idx": 7
1747
+ },
1748
+ {
1749
+ "type": "list",
1750
+ "sub_type": "ref_text",
1751
+ "list_items": [
1752
+ "[1] M. Mozaffari, W. Saad, M. Dennis, Y. Nam, and M. Debbah, \"A tutorial on UAVs for wireless networks: Applications, challenges, and open problems,\" IEEE Communications Surveys Tutorials, vol. 21, no. 3, pp. 2334-2360, Third Quarter, 2019.",
1753
+ "[2] M. Mozaffari, A. Kasgari, W. Saad, M. Bennis, and M. Debbah, \"Beyond 5G with UAVs: Foundations of a 3D wireless cellular network,\" IEEE Transactions on Wireless Communications, vol. 18, no. 1, pp. 357-372, Jan 2019.",
1754
+ "[3] J. Park, S. Samarakoon, M. Bennis, and M. Debbah, \"Wireless network intelligence at the edge,\" Proceeding of the IEEE, to appear, 2019.",
1755
+ "[4] J. Konecný, H. B. McMahan, D. Ramage, and P. Richtárik, \"Federated optimization: Distributed machine learning for on-device intelligence,\" arXiv preprint http://arxiv.org/abs/1610.02527 arXiv:1610.02527, 2016.",
1756
+ "[5] M. Chen, H. V. Poor, W. Saad, and S. Cui, \"Convergence time optimization for federated learning over wireless networks,\" arXiv preprint http://arxiv.org/abs/2001.07845 arXiv:2001.07845.",
1757
+ "[6] Q. Zeng, Y. Du, K. K. Leung, and K. Huang, \"Energy-efficient radio resource allocation for federated edge learning,\" arXiv preprint http://arxiv.org/abs/1907.06040 arXiv:1907.06040, 2019.",
1758
+ "[7] H. H. Yang, Z. Liu, T. Q. S. Quek, and H. V. Poor, \"Scheduling policies for federated learning in wireless networks,\" IEEE Transactions on Communications, to appear, 2019.",
1759
+ "[8] N. H. Tran, W. Bao, A. Zomaya, N. Minh N.H., and C. S. Hong, \"Federated learning over wireless networks: Optimization model design and analysis,\" in Proc. of IEEE International Conference on Computer Communications, Paris, France, Apr. 2019.",
1760
+ "[9] Y. Pan, C. Pan, Z. Yang, and M. Chen, \"Resource allocation for D2D communications underlaying a NOMA-based cellular network,\" IEEE Wireless Communications Letters, vol. 7, no. 1, pp. 130-133, Feb. 2018.",
1761
+ "[10] M. T. Dabiri, H. Safi, S. Parsaeefard, and W. Saad, \"Analytical channel models for millimeter wave UAV networks under hovering fluctuations,\" arXiv preprint http://arxiv.org/abs/1905.01477 arXiv:1905.01477, 2019.",
1762
+ "[11] ITU-R, Mathematical models for radiodetermination radar systems antenna patterns for use in interference analyses, Recommendation ITU-R M.1851-1, Jan. 2018.",
1763
+ "[12] T. Zeng, M. Mozaffari, O. Semiari, W. Saad, M. Bennis, and M. Debbah, \"Wireless communications and control for swarms of cellular-connected UAVs,\" in Proc. of IEEE Asilomar Conference on Signals, Systems, and Computers, Pacific Grove, CA, USA, Oct. 2018.",
1764
+ "[13] J. K. Stolaroff, C. Samaras, E. R. O'Neill, A. S. Mitchell, and D. Ceperley, \"Energy use and life cycle greenhouse gas emissions of drones for commercial package delivery,\" Nature Communications, vol. 9, no. 409, pp. 1-13, Feb. 2018.",
1765
+ "[14] D. P. Bertsekas and J. N. Tsitsiklis, Neuro-dynamic programming. Athena Scientific Belmont, MA, 1996, vol. 5.",
1766
+ "[15] B. K. Pagnoncelli, S. Ahmed, and A. Shapiro, \"Sample average approximation method for chance constrained programming: theory and applications,\" Journal of optimization theory and applications, vol. 142, no. 2, pp. 399-416, 2009.",
1767
+ "[16] W. Yu and R. Lui, “Dual methods for nonconvex spectrum optimization of multicarrier systems,” IEEE Transactions on Communications, vol. 54, no. 7, pp. 1310–1322, July 2006.",
1768
+ "[17] Y. Nesterov, Lectures on convex optimization. Springer, 2018, vol. 137.",
1769
+ "[18] F. Zhou, Y. Wu, R. Q. Hu, and Y. Qian, \"Computation rate maximization in UAV-enabled wireless-powered mobile-edge computing systems,\" IEEE Journal on Selected Areas in Communications, vol. 36, no. 9, pp. 1927-1941, Sep. 2018.",
1770
+ "[19] M. P. Friedlander and M. Schmidt, “Hybrid deterministic-stochastic methods for data fitting,” SIAM Journal on Scientific Computing, vol. 34, no. 3, pp. A1380-A1405, 2012.",
1771
+ "[20] M. Chen, Z. Yang, W. Saad, C. Yin, H. V. Poor, and S. Cui, \"A joint learning and communications framework for federated learning over wireless networks,\" arXiv preprint http://arxiv.org/abs/1909.07972 arXiv:1909.07972, 2019."
1772
+ ],
1773
+ "bbox": [
1774
+ 73,
1775
+ 141,
1776
+ 491,
1777
+ 866
1778
+ ],
1779
+ "page_idx": 7
1780
+ }
1781
+ ]
2002.08xxx/2002.08196/36a27757-1c49-4da1-b5a3-ec1408b5d759_model.json ADDED
@@ -0,0 +1,2031 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ [
3
+ {
4
+ "type": "aside_text",
5
+ "bbox": [
6
+ 0.023,
7
+ 0.268,
8
+ 0.058,
9
+ 0.708
10
+ ],
11
+ "angle": 270,
12
+ "content": "arXiv:2002.08196v2 [cs.LG] 10 Jun 2020"
13
+ },
14
+ {
15
+ "type": "title",
16
+ "bbox": [
17
+ 0.128,
18
+ 0.068,
19
+ 0.87,
20
+ 0.138
21
+ ],
22
+ "angle": 0,
23
+ "content": "Federated Learning in the Sky: Joint Power Allocation and Scheduling with UAV Swarms"
24
+ },
25
+ {
26
+ "type": "text",
27
+ "bbox": [
28
+ 0.116,
29
+ 0.156,
30
+ 0.882,
31
+ 0.173
32
+ ],
33
+ "angle": 0,
34
+ "content": "Tengchan Zeng, Omid Semiari, Mohammad Mozaffari, Mingzhe Chen, Walid Saad, and Mehdi Bennis"
35
+ },
36
+ {
37
+ "type": "text",
38
+ "bbox": [
39
+ 0.07,
40
+ 0.204,
41
+ 0.493,
42
+ 0.52
43
+ ],
44
+ "angle": 0,
45
+ "content": "Abstract—Unmanned aerial vehicle (UAV) swarms must exploit machine learning (ML) in order to execute various tasks ranging from coordinated trajectory planning to cooperative target recognition. However, due to the lack of continuous connections between the UAV swarm and ground base stations (BSs), using centralized ML will be challenging, particularly when dealing with a large volume of data. In this paper, a novel framework is proposed to implement distributed federated learning (FL) algorithms within a UAV swarm that consists of a leading UAV and several following UAVs. Each following UAV trains a local FL model based on its collected data and then sends this trained local model to the leading UAV who will aggregate the received models, generate a global FL model, and transmit it to followers over the intra-swarm network. To identify how wireless factors, like fading, transmission delay, and UAV antenna angle deviations resulting from wind and mechanical vibrations, impact the performance of FL, a rigorous convergence analysis for FL is performed. Then, a joint power allocation and scheduling design is proposed to optimize the convergence rate of FL while taking into account the energy consumption during convergence and the delay requirement imposed by the swarm's control system. Simulation results validate the effectiveness of the FL convergence analysis and show that the joint design strategy can reduce the number of communication rounds needed for convergence by as much as \\(35\\%\\) compared with the baseline design."
46
+ },
47
+ {
48
+ "type": "title",
49
+ "bbox": [
50
+ 0.215,
51
+ 0.529,
52
+ 0.348,
53
+ 0.542
54
+ ],
55
+ "angle": 0,
56
+ "content": "I. INTRODUCTION"
57
+ },
58
+ {
59
+ "type": "text",
60
+ "bbox": [
61
+ 0.07,
62
+ 0.547,
63
+ 0.493,
64
+ 0.7
65
+ ],
66
+ "angle": 0,
67
+ "content": "Swarms of unmanned aerial vehicles (UAVs) will play an important role in various services ranging from delivery of goods to monitoring [1] and [2]. To deliver those services, UAV swarms will employ machine learning (ML) for executing various tasks such as consensus trajectory planning, target recognition, and localization. However, due to the high altitude and mobility of UAVs, continuous connections between UAVs and ground base stations (BSs) cannot be guaranteed. Hence, using centralized ML approaches to execute learning-related tasks will be challenging, particularly when transmitting a large"
68
+ },
69
+ {
70
+ "type": "text",
71
+ "bbox": [
72
+ 0.07,
73
+ 0.709,
74
+ 0.493,
75
+ 0.766
76
+ ],
77
+ "angle": 0,
78
+ "content": "This research was supported, in part, by the U.S. National Science Foundation under Grants CNS-1739642 and CNS-1941348, and by the Academy of Finland Project CARMA, by the Academy of Finland Project MISSION, by the Academy of Finland Project SMARTER, as well as by the INFOTECH Project NOOR."
79
+ },
80
+ {
81
+ "type": "text",
82
+ "bbox": [
83
+ 0.07,
84
+ 0.766,
85
+ 0.493,
86
+ 0.8
87
+ ],
88
+ "angle": 0,
89
+ "content": "T. Zeng and W. Saad are with Wireless@VT, Department of Electrical and Computer Engineering, Virginia Tech, Blacksburg, VA, 24061 USA (e-mail: tengchan@vt.edu; walids@vt.edu)."
90
+ },
91
+ {
92
+ "type": "text",
93
+ "bbox": [
94
+ 0.071,
95
+ 0.8,
96
+ 0.493,
97
+ 0.834
98
+ ],
99
+ "angle": 0,
100
+ "content": "O. Semiari is with Department of Electrical and Computer Engineering, University of Colorado Colorado Springs, Colorado Springs, CO, 80918 USA (e-mail: osemiari@uccs.edu)."
101
+ },
102
+ {
103
+ "type": "text",
104
+ "bbox": [
105
+ 0.071,
106
+ 0.834,
107
+ 0.493,
108
+ 0.857
109
+ ],
110
+ "angle": 0,
111
+ "content": "M. Mozaffari is with Ericsson Research, Santa Clara, CA, 95054 USA (e-mail: mohammad.mozaffari@ericsson.com)."
112
+ },
113
+ {
114
+ "type": "text",
115
+ "bbox": [
116
+ 0.071,
117
+ 0.857,
118
+ 0.493,
119
+ 0.879
120
+ ],
121
+ "angle": 0,
122
+ "content": "M. Chen is with Department of Electrical Engineering, Princeton University, Princeton, NJ, 08544 USA (e-mail: mingzhec@princeton.edu)."
123
+ },
124
+ {
125
+ "type": "text",
126
+ "bbox": [
127
+ 0.071,
128
+ 0.879,
129
+ 0.493,
130
+ 0.902
131
+ ],
132
+ "angle": 0,
133
+ "content": "M. Dennis is with the Centre for Wireless Communications, University of Oulu, 90014 Oulu, Finland (e-mail:mehdi.bennis@oulu.fi)."
134
+ },
135
+ {
136
+ "type": "list",
137
+ "bbox": [
138
+ 0.07,
139
+ 0.766,
140
+ 0.493,
141
+ 0.902
142
+ ],
143
+ "angle": 0,
144
+ "content": null
145
+ },
146
+ {
147
+ "type": "text",
148
+ "bbox": [
149
+ 0.503,
150
+ 0.203,
151
+ 0.925,
152
+ 0.293
153
+ ],
154
+ "angle": 0,
155
+ "content": "volume of data over aerial links. Instead, a distributed learning approach would be more apropos [3]. In particular, one can use federated learning (FL) to enable each UAV to perform distributed ML tasks without relying on any centralized BSs [4]. In this case, UAVs do not need to send any raw data to BSs when training learning models."
156
+ },
157
+ {
158
+ "type": "text",
159
+ "bbox": [
160
+ 0.503,
161
+ 0.293,
162
+ 0.927,
163
+ 0.504
164
+ ],
165
+ "angle": 0,
166
+ "content": "In essence, FL allows each UAV in a swarm to train its learning model based on its own collected data, and it can use the intra-swarm network to share FL parameters related to the learned models with other UAVs. As the learning process proceeds, UAVs in the swarm can reach a consensus on their collective learning tasks, e.g., trajectory planning or target recognition. However, since the updates of the learning models in FL are transmitted over a wireless network, the FL convergence and task consensus for the UAV swarm will inevitably be affected by wireless factors such as transmission delay. Also, due to the high mobility of UAVs, other factors (like wind and mechanical vibrations) can increase the uncertainty of wireless channels by affecting the UAVs' antenna angles which, in turn, will impact the FL convergence."
167
+ },
168
+ {
169
+ "type": "text",
170
+ "bbox": [
171
+ 0.503,
172
+ 0.505,
173
+ 0.927,
174
+ 0.7
175
+ ],
176
+ "angle": 0,
177
+ "content": "A number of recent works have investigated how wireless communication impacts FL [5]–[7]. For instance, in [5], the authors solve the joint learning, wireless resource allocation, and user selection problem to minimize the FL convergence time while optimizing the FL performance. Also, the work in [6] proposes a strategy for bandwidth allocation and device scheduling to improve the energy efficiency for networks implementing FL. Moreover, [7] studies the impact of different scheduling policies on the performance of FL. While interesting, none of these works in [5]–[7] considers the role of FL in a UAV swarm. Also, due to the high mobility of UAVs and their limited energy, the analysis in [5]–[7] cannot be directly applied for UAV swarms."
178
+ },
179
+ {
180
+ "type": "text",
181
+ "bbox": [
182
+ 0.503,
183
+ 0.701,
184
+ 0.927,
185
+ 0.897
186
+ ],
187
+ "angle": 0,
188
+ "content": "The main contribution of this paper is a novel framework for enabling FL within a swarm of wireless-connected UAVs. In particular, we first conduct a convergence analysis for FL to show how wireless factors within the UAV swarm impact the convergence of FL. We then determine the convergence round, defined as the minimum number of communication rounds needed to achieve FL convergence. Using this key insight, we formulate an optimization problem that jointly designs the power allocation and scheduling for the UAV swarm network to reduce the FL convergence round. In particular, due to the stringent energy limitations of UAVs, we consider the constraint of the energy consumed by learning, communications, and flying during FL convergence. We also take into account"
189
+ }
190
+ ],
191
+ [
192
+ {
193
+ "type": "text",
194
+ "bbox": [
195
+ 0.07,
196
+ 0.067,
197
+ 0.493,
198
+ 0.248
199
+ ],
200
+ "angle": 0,
201
+ "content": "the delay constraint imposed by the control system to guarantee the stability of the UAV swarm. To solve the joint design problem, we use a sample average approximation approach from stochastic programming along with a dual method from convex optimization. To the best of our knowledge, this is the first work that implements FL for the UAV swarm, studies the impact of wireless factors on the convergence of FL, and optimizes the FL convergence by jointly designing power allocation and scheduling of the UAV network. Simulation results validate the convergence analysis of FL and show that the joint design can reduce the convergence round by as much as \\(35\\%\\) compared with baselines without the joint design."
202
+ },
203
+ {
204
+ "type": "text",
205
+ "bbox": [
206
+ 0.071,
207
+ 0.248,
208
+ 0.492,
209
+ 0.324
210
+ ],
211
+ "angle": 0,
212
+ "content": "The rest of the paper is organized as follows. Section II presents the system model for the UAV swarm. Section III analyzes the FL convergence and shows the joint system design. Section IV provides simulation results, and conclusions are drawn in Section V."
213
+ },
214
+ {
215
+ "type": "title",
216
+ "bbox": [
217
+ 0.208,
218
+ 0.332,
219
+ 0.356,
220
+ 0.345
221
+ ],
222
+ "angle": 0,
223
+ "content": "II. SYSTEM MODEL"
224
+ },
225
+ {
226
+ "type": "text",
227
+ "bbox": [
228
+ 0.07,
229
+ 0.351,
230
+ 0.493,
231
+ 0.593
232
+ ],
233
+ "angle": 0,
234
+ "content": "Consider a swarm of wirelessly connected autonomous UAVs flying at the same altitude, as shown in Fig. 1(a). The UAV swarm consists of a leader \\( L \\) and a set \\( \\mathcal{I} \\) of \\( I \\) followers. Every follower keeps a target distance and speed with the leader. While flying, the UAV swarm collects data and performs FL for data analysis and inference tasks like trajectory planning and cooperative target recognition. Using FL, each follower uses its collected data to train a local FL model and send the parameters related to the learned model to the leading UAV in the uplink, as shown in Fig. 1(a). The leading UAV will integrate all received information to generate a global FL model, and, then, transmit the parameters of the global model to following UAVs over the downlink. Moreover, to guarantee that the followers fly with the same speed while keeping a safe distance, the leading UAV will also broadcast the target spacing information and its speed and heading direction."
235
+ },
236
+ {
237
+ "type": "title",
238
+ "bbox": [
239
+ 0.071,
240
+ 0.601,
241
+ 0.273,
242
+ 0.617
243
+ ],
244
+ "angle": 0,
245
+ "content": "A. Federated learning model"
246
+ },
247
+ {
248
+ "type": "text",
249
+ "bbox": [
250
+ 0.07,
251
+ 0.62,
252
+ 0.491,
253
+ 0.801
254
+ ],
255
+ "angle": 0,
256
+ "content": "In the learning model, we assume that UAV \\(i \\in \\mathcal{I}\\) collects a set \\(\\{\\pmb{x}_{i1},\\pmb{x}_{i2},\\dots,\\pmb{x}_{iN_i}\\}\\) of input data where each collected sample is represented by a vector \\(\\pmb{x}_{in}\\), \\(n \\in \\{1,\\dots,N_i\\}\\) that captures the input features and \\(N_{i}\\) is the number of collected samples. We also assume the input sample \\(\\pmb{x}_{in}\\), \\(n \\in \\{1,\\dots,N_i\\}\\), corresponds to a single output \\(y_{in}\\) [4]. The output vector is thereby \\(\\{y_{i1},\\dots,y_{iN_i}\\}\\) for UAV \\(i\\). We define a vector \\(\\pmb{w}_i\\) as the parameters related to the local FL model that is trained by \\(\\{\\pmb{x}_{i1},\\pmb{x}_{i2},\\dots,\\pmb{x}_{iN_i}\\}\\) and \\(\\{y_{i1},\\dots,y_{iN_i}\\}\\) at UAV \\(i\\). The convergence of the FL training processes requires each local learning vector to converge to a vector \\(\\pmb{w}^*\\) which solves the following problem:"
257
+ },
258
+ {
259
+ "type": "equation",
260
+ "bbox": [
261
+ 0.131,
262
+ 0.8,
263
+ 0.49,
264
+ 0.84
265
+ ],
266
+ "angle": 0,
267
+ "content": "\\[\n\\underset {\\boldsymbol {w} \\in \\mathbb {R} ^ {d}} {\\arg \\min } F (\\boldsymbol {w}) = \\frac {1}{N} \\sum_ {i} ^ {I} \\sum_ {n = 1} ^ {N _ {i}} f (\\boldsymbol {w}, \\boldsymbol {x} _ {i n}, y _ {i n}), \\tag {1}\n\\]"
268
+ },
269
+ {
270
+ "type": "text",
271
+ "bbox": [
272
+ 0.07,
273
+ 0.84,
274
+ 0.492,
275
+ 0.902
276
+ ],
277
+ "angle": 0,
278
+ "content": "where \\(N = \\sum_{i}^{I}N_{i}\\) is the total number of the collected samples by all followers, and \\(f(\\pmb {w},\\pmb{x}_{in},y_{in})\\) captures the loss function when using learning vector \\(\\pmb{w}\\) for dataset \\(\\{\\pmb {x}_{in},y_{in}\\}\\). Note that, the loss function \\(f(\\pmb {w},\\pmb{x}_{in},y_{in}),i\\in \\mathcal{I},0\\leq n\\leq N_i,\\)"
279
+ },
280
+ {
281
+ "type": "image",
282
+ "bbox": [
283
+ 0.548,
284
+ 0.068,
285
+ 0.872,
286
+ 0.219
287
+ ],
288
+ "angle": 0,
289
+ "content": null
290
+ },
291
+ {
292
+ "type": "image_caption",
293
+ "bbox": [
294
+ 0.605,
295
+ 0.223,
296
+ 0.826,
297
+ 0.235
298
+ ],
299
+ "angle": 0,
300
+ "content": "(a) Communication and learning models."
301
+ },
302
+ {
303
+ "type": "image",
304
+ "bbox": [
305
+ 0.544,
306
+ 0.248,
307
+ 0.88,
308
+ 0.318
309
+ ],
310
+ "angle": 0,
311
+ "content": null
312
+ },
313
+ {
314
+ "type": "image_caption",
315
+ "bbox": [
316
+ 0.605,
317
+ 0.32,
318
+ 0.825,
319
+ 0.332
320
+ ],
321
+ "angle": 0,
322
+ "content": "(b) Angle deviations and control system."
323
+ },
324
+ {
325
+ "type": "image_caption",
326
+ "bbox": [
327
+ 0.59,
328
+ 0.339,
329
+ 0.838,
330
+ 0.353
331
+ ],
332
+ "angle": 0,
333
+ "content": "Fig. 1. Illustration of our system model."
334
+ },
335
+ {
336
+ "type": "text",
337
+ "bbox": [
338
+ 0.504,
339
+ 0.371,
340
+ 0.925,
341
+ 0.432
342
+ ],
343
+ "angle": 0,
344
+ "content": "plays a pivotal role in determining the FL performance, and the expression of the loss function is application-specific. For example, for a simple linear regression FL algorithm, \\( f(\\boldsymbol{w}, \\boldsymbol{x}_{in}, y_{in}) = (\\boldsymbol{w}^T \\boldsymbol{x}_{in} - y_{in})^2 \\)."
345
+ },
346
+ {
347
+ "type": "text",
348
+ "bbox": [
349
+ 0.504,
350
+ 0.432,
351
+ 0.927,
352
+ 0.749
353
+ ],
354
+ "angle": 0,
355
+ "content": "To solve (1), the FL framework uses an iterative update scheme [4]. In particular, the leading UAV will first generate an initial global FL model represented by vector \\(\\boldsymbol{w}^{(0)}\\) and send the initial vector to all followers. Hence, in the first communication round, follower \\(i\\in \\mathcal{I}\\) will first use \\(\\boldsymbol{w}^{(0)}\\) for its own data to train the local model and, then, it sends the vector of the trained model to the leader. Next, the leading UAV will aggregate all received local FL vectors and update the global FL model vector which will be later transmitted to the followers. Each communication round will be followed by another round, and the same process will repeat among leader and followers in each round. In this case, as FL proceeds, the local and global models are sequentially updated, and the total loss \\(F(\\boldsymbol {w})\\) for the updated global model with vector \\(\\boldsymbol{w}\\) will continuously decrease [4]. To identify whether the optimal solution is found for (1), one must analyze the convergence of the loss function \\(F(\\boldsymbol {w})\\) to \\(F(\\boldsymbol {w}^{*})\\). That is, when the gap between the current loss \\(F(\\boldsymbol {w})\\) and the minimal loss \\(F(\\boldsymbol {w}^{*})\\) is below a threshold \\(\\varepsilon\\), the FL optimization problem is solved [8]. Therefore, we can use the convergence of \\(F(\\boldsymbol {w})\\) to \\(F(\\boldsymbol {w}^{*})\\) to quantify the FL performance."
356
+ },
357
+ {
358
+ "type": "text",
359
+ "bbox": [
360
+ 0.503,
361
+ 0.749,
362
+ 0.925,
363
+ 0.901
364
+ ],
365
+ "angle": 0,
366
+ "content": "Moreover, for each communication round, we can divide the total time duration \\( T_{r} \\) into two periods: Uplink and downlink transmission. In particular, to guarantee that the leading UAV has enough time to process all received models from its followers, all uplink transmissions should be completed within a target time \\( T_{u}(\\beta) = \\beta T_{r} \\), where \\( \\beta \\in \\{0,1\\} \\) is a scheduling parameter to schedule uplink-downlink traffic in time. Also, to receive the global FL model update from the leading UAV successfully, the time constraint for downlink transmissions is thereby \\( T_{d}(\\beta) = (1 - \\beta)T_{r} \\). In this case, if the communication"
367
+ }
368
+ ],
369
+ [
370
+ {
371
+ "type": "text",
372
+ "bbox": [
373
+ 0.07,
374
+ 0.066,
375
+ 0.493,
376
+ 0.188
377
+ ],
378
+ "angle": 0,
379
+ "content": "link between follower \\( i \\in \\mathcal{I} \\) and leader \\( L \\) fails to meet the time constraints \\( T_{d}(\\beta) \\) and \\( T_{u}(\\beta) \\), the global FL model cannot use the corresponding FL model for the aggregation. At the same time, for the local FL model, the following UAV cannot use the recently updated global vector to train its local data. In other words, the transmission delay of the uplink and downlink links will impact the update of the global and local FL models thus having a major impact on FL convergence."
380
+ },
381
+ {
382
+ "type": "text",
383
+ "bbox": [
384
+ 0.071,
385
+ 0.188,
386
+ 0.493,
387
+ 0.326
388
+ ],
389
+ "angle": 0,
390
+ "content": "In addition, when training the global FL model, we can calculate the energy consumption for the UAV \\( L \\) as \\( E_{L} = \\kappa C\\phi^{2}\\sum_{i=1}^{I}S(\\pmb{w}_{i}) \\), where \\( \\kappa \\) captures the energy consumption coefficient depending on the computing system and \\( C \\) is the number of computing cycles needed per data bit [9]. \\( \\phi \\) is the frequency of the CPU clock of UAVs, and \\( S(\\pmb{w}_{i}) \\) is the packet size of \\( \\pmb{w}_{i} \\), transmitted from UAV \\( i \\in \\mathcal{I} \\), in bits. Similarly, we can determine the training energy consumption for follower \\( i \\in \\mathcal{I} \\) as \\( E_{i} = \\kappa C\\phi^{2}\\sum_{n=1}^{N_{i}}S(\\pmb{x}_{in}) \\)."
391
+ },
392
+ {
393
+ "type": "title",
394
+ "bbox": [
395
+ 0.072,
396
+ 0.332,
397
+ 0.251,
398
+ 0.346
399
+ ],
400
+ "angle": 0,
401
+ "content": "B. Communication model"
402
+ },
403
+ {
404
+ "type": "text",
405
+ "bbox": [
406
+ 0.07,
407
+ 0.351,
408
+ 0.491,
409
+ 0.516
410
+ ],
411
+ "angle": 0,
412
+ "content": "To minimize the interference from other UAVs located outside of the swarm, we assume that all UAVs use directional antennas, as shown in Fig. 1(a), However, as shown in Fig. 1(b), due to the impact of wind, payload, and non-ideal mechanical and control systems, the angle of the UAVs will randomly fluctuate and deviate from the initial angle setting. Based on the central limit theorem, we model the angle deviation for each UAV as a Gaussian random variable [10]. Moreover, we consider a squared cosine function to capture the antenna aperture of UAV \\( j \\in \\mathcal{I} \\cup \\{L\\} \\) when communicating with UAV \\( l \\in \\mathcal{I} \\cup \\{L\\} / j \\) as follows [11]:"
413
+ },
414
+ {
415
+ "type": "equation",
416
+ "bbox": [
417
+ 0.076,
418
+ 0.516,
419
+ 0.49,
420
+ 0.558
421
+ ],
422
+ "angle": 0,
423
+ "content": "\\[\nG _ {j l} \\left(\\theta_ {j l} + \\vartheta_ {j}\\right) = \\left\\{ \\begin{array}{c c} \\cos^ {2} \\left(\\frac {\\pi}{2} \\left(\\theta_ {j l} + \\vartheta_ {j}\\right)\\right), & \\text {i f} | \\theta_ {j l} + \\vartheta_ {j} | \\leq 1, \\\\ G _ {\\min }, & \\text {o t h e r w i s e}, \\end{array} \\right. \\tag {2}\n\\]"
424
+ },
425
+ {
426
+ "type": "text",
427
+ "bbox": [
428
+ 0.071,
429
+ 0.559,
430
+ 0.493,
431
+ 0.633
432
+ ],
433
+ "angle": 0,
434
+ "content": "where \\(\\theta_{jl}\\) is the initial angle setting for UAV \\(j\\) when communicating with UAV \\(l\\), \\(\\vartheta_{j} \\sim \\mathcal{N}(0, \\sigma_{j}^{2})\\) is the angle deviation with variance \\(\\sigma_{j}^{2}\\), and \\(G_{\\mathrm{min}}\\) captures the antenna gain at the side lobes. Also, similar to [10], we can approximate (2) by using a sectionalized expression:"
435
+ },
436
+ {
437
+ "type": "equation",
438
+ "bbox": [
439
+ 0.078,
440
+ 0.632,
441
+ 0.49,
442
+ 0.675
443
+ ],
444
+ "angle": 0,
445
+ "content": "\\[\nG _ {j l} \\left(\\theta_ {j l} + \\vartheta_ {j}, M\\right) = \\left\\{ \\begin{array}{c c} \\cos^ {2} \\left(\\frac {\\pi m}{2 M}\\right), & \\text {i f} \\frac {m}{M} \\leq \\left| \\theta_ {j l} + \\vartheta_ {j} \\right| \\leq \\frac {m + 1}{M}, \\\\ G _ {\\min }, & \\text {o t h e r w i s e}, \\end{array} \\right. \\tag {3}\n\\]"
446
+ },
447
+ {
448
+ "type": "text",
449
+ "bbox": [
450
+ 0.071,
451
+ 0.676,
452
+ 0.231,
453
+ 0.691
454
+ ],
455
+ "angle": 0,
456
+ "content": "where \\(m\\in \\{1,\\dots,M\\}\\)"
457
+ },
458
+ {
459
+ "type": "text",
460
+ "bbox": [
461
+ 0.071,
462
+ 0.692,
463
+ 0.492,
464
+ 0.749
465
+ ],
466
+ "angle": 0,
467
+ "content": "To reduce the interference over the uplink transmissions, we assume that uplinks do not share the wireless resource with each other. Hence, the transmission delay of the uplink between follower \\( i \\in \\mathcal{I} \\) and leader \\( L \\) can be calculated as"
468
+ },
469
+ {
470
+ "type": "equation",
471
+ "bbox": [
472
+ 0.085,
473
+ 0.749,
474
+ 0.49,
475
+ 0.789
476
+ ],
477
+ "angle": 0,
478
+ "content": "\\[\nT _ {i L} = \\frac {S (\\boldsymbol {w} _ {i})}{B _ {u} \\log_ {2} \\left(1 + \\frac {p _ {i} h _ {i L} d _ {i L} ^ {- \\alpha} G _ {i L} G _ {L i}}{\\sum_ {i ^ {\\prime} \\in \\Phi_ {i}} p _ {i ^ {\\prime}} h _ {i ^ {\\prime} L} d _ {i ^ {\\prime} L} ^ {- \\alpha} G _ {i ^ {\\prime} L} G _ {L i ^ {\\prime}} + B _ {u} \\gamma_ {0}}\\right)}, \\tag {4}\n\\]"
479
+ },
480
+ {
481
+ "type": "text",
482
+ "bbox": [
483
+ 0.071,
484
+ 0.789,
485
+ 0.493,
486
+ 0.894
487
+ ],
488
+ "angle": 0,
489
+ "content": "where \\(B_{u}\\) is the bandwidth used by each subchannel in the uplink, \\(p_i\\in (0,p_{\\mathrm{max}})\\) is the transmission power of UAV \\(i\\) with maximum power as \\(p_{\\mathrm{max}}\\) and \\(\\alpha\\) is the path-loss exponent. \\(h_{iL}\\) is the channel gain of the Rician fading channel between UAVs \\(i\\) and \\(L\\) ,and \\(\\gamma_0\\) is the noise power spectral density. Note that, despite the use of directional antenna, the swarm still experiences uplink interference generated by UAVs located"
490
+ },
491
+ {
492
+ "type": "text",
493
+ "bbox": [
494
+ 0.503,
495
+ 0.066,
496
+ 0.925,
497
+ 0.127
498
+ ],
499
+ "angle": 0,
500
+ "content": "outside of the swarm. In particular, these interfering UAVs share the same channel resource and exist in the main lobe of the UAV \\( L \\), and we define \\( \\Phi_{i} \\) as the set of UAVs that generates interference to the uplink from UAV \\( i \\) to UAV \\( L \\)."
501
+ },
502
+ {
503
+ "type": "text",
504
+ "bbox": [
505
+ 0.504,
506
+ 0.127,
507
+ 0.925,
508
+ 0.156
509
+ ],
510
+ "angle": 0,
511
+ "content": "Similarly, we can derive the transmission delay \\( T_{Li} \\) for the downlink from UAV \\( L \\) to UAV \\( i \\in \\mathcal{I} \\) as:"
512
+ },
513
+ {
514
+ "type": "equation",
515
+ "bbox": [
516
+ 0.523,
517
+ 0.154,
518
+ 0.925,
519
+ 0.197
520
+ ],
521
+ "angle": 0,
522
+ "content": "\\[\nT _ {L i} = \\frac {S (\\boldsymbol {w})}{B _ {d} \\log_ {2} \\left(1 + \\frac {p _ {L} h _ {L i} d _ {L i} ^ {- \\alpha} G _ {L i} G _ {i L}}{\\sum_ {i ^ {\\prime} \\in \\Phi_ {L}} p _ {i ^ {\\prime}} h _ {i ^ {\\prime} i} d _ {i ^ {\\prime} i} ^ {- \\alpha} G _ {i ^ {\\prime} i} G _ {i i ^ {\\prime}} + B _ {d} \\gamma_ {0}}\\right)}, \\tag {5}\n\\]"
523
+ },
524
+ {
525
+ "type": "text",
526
+ "bbox": [
527
+ 0.504,
528
+ 0.195,
529
+ 0.927,
530
+ 0.24
531
+ ],
532
+ "angle": 0,
533
+ "content": "where \\(B_{d}\\) is the downlink bandwidth, \\(p_L \\in (0, p_{\\mathrm{max}})\\) is the transmission power of UAV \\(L\\), and \\(\\Phi_L\\) refers to the set of UAVs that will generate interference at the downlink."
534
+ },
535
+ {
536
+ "type": "title",
537
+ "bbox": [
538
+ 0.505,
539
+ 0.247,
540
+ 0.631,
541
+ 0.26
542
+ ],
543
+ "angle": 0,
544
+ "content": "C. Control model"
545
+ },
546
+ {
547
+ "type": "text",
548
+ "bbox": [
549
+ 0.503,
550
+ 0.265,
551
+ 0.925,
552
+ 0.401
553
+ ],
554
+ "angle": 0,
555
+ "content": "To guarantee constant speed and altitude and avoid collisions between UAVs within the swarm, the leading UAV will broadcast its speed and heading direction to the followers in the downlink. Here, the control system of each follower will use both its sensor data (e.g. location) and information received from the wireless links to coordinate its movement and achieve a target spacing and speed. Note that the target distance between the UAV leader and each follower is predefined such that there will be no collision between two nearby UAVs."
556
+ },
557
+ {
558
+ "type": "text",
559
+ "bbox": [
560
+ 0.503,
561
+ 0.402,
562
+ 0.927,
563
+ 0.536
564
+ ],
565
+ "angle": 0,
566
+ "content": "Similar to our previous work in [12], we can build a Cartesian coordinate system to capture the locations of UAVs in the swarm, and, then, we decompose the velocity of each UAV into two components, as shown in Fig. 1(b). We can also define the control law of each UAV the same way as the one provided in [12]. Since the transmission delay will have a negative impact on the stability control of the UAV swarm, we must consider the delay requirement imposed by the control system when designing the UAV network."
567
+ },
568
+ {
569
+ "type": "text",
570
+ "bbox": [
571
+ 0.504,
572
+ 0.537,
573
+ 0.927,
574
+ 0.687
575
+ ],
576
+ "angle": 0,
577
+ "content": "In addition, in order to fly with a constant speed and maintain a stable flying motion, each UAV must spend energy to overcome the gravity and the air drag forces due to the wind and forward motions. For a forward speed \\( v \\in (0, v_{\\max}) \\) with \\( v_{\\max} \\) as the maximum speed, the minimum flying power of UAV \\( j \\in \\mathcal{I} \\cup \\{L\\} \\) is \\( \\bar{p}_{j,\\min}(v) = \\hat{v}_j A_j \\), where \\( \\hat{v}_j \\) is the induced velocity required for constant speed \\( v \\) and given thrust \\( A_j = mg \\) with \\( m \\) being the UAV mass and \\( g \\) being the gravitational constant [13]. Also, the induced velocity \\( \\hat{v}_j \\) can be obtained by solving the following equation [13]:"
578
+ },
579
+ {
580
+ "type": "equation",
581
+ "bbox": [
582
+ 0.635,
583
+ 0.686,
584
+ 0.925,
585
+ 0.725
586
+ ],
587
+ "angle": 0,
588
+ "content": "\\[\n\\hat {v} _ {j} = \\frac {2 A _ {j}}{q r ^ {2} \\pi \\varrho \\sqrt {v ^ {2} + \\hat {v} _ {j} ^ {2}}}, \\tag {6}\n\\]"
589
+ },
590
+ {
591
+ "type": "text",
592
+ "bbox": [
593
+ 0.503,
594
+ 0.723,
595
+ 0.927,
596
+ 0.873
597
+ ],
598
+ "angle": 0,
599
+ "content": "where \\( q \\) and \\( r \\) capture, respectively, the number and diameter of the UAV rotors, and \\( \\varrho \\) is the air density. Moreover, we can further correct the theoretical minimum motion power consumption by the overall power efficiency \\( \\eta \\) of the UAV in order to obtain the actual power consumption as \\( \\bar{p}_j(v) = \\bar{p}_{j,\\min}(v) / \\eta \\). Since the control of a UAV's dynamic motion consumes the most energy [13], we must consider the flying energy consumption when designing the swarm of UAVs. In particular, the flying energy consumption can be calculated as \\( \\bar{p}_j(v)T \\) during the flying time \\( T \\)."
600
+ },
601
+ {
602
+ "type": "text",
603
+ "bbox": [
604
+ 0.504,
605
+ 0.873,
606
+ 0.925,
607
+ 0.904
608
+ ],
609
+ "angle": 0,
610
+ "content": "To guarantee the convergence of FL and the stable operation of the control system in the UAV swarm, we need to properly"
611
+ }
612
+ ],
613
+ [
614
+ {
615
+ "type": "text",
616
+ "bbox": [
617
+ 0.071,
618
+ 0.067,
619
+ 0.493,
620
+ 0.248
621
+ ],
622
+ "angle": 0,
623
+ "content": "design the wireless communication network. At the same time, to guarantee that the energy spent on learning, communication, and flying will not exceed the energy limitation of each UAV, we need to consider the energy consumption during the FL convergence. Next, we first conduct the convergence analysis for the FL algorithm and derive the number of communication rounds needed to achieve the FL convergence. Then, we formulate an optimization problem that jointly designs the power allocation and scheduling policy to minimize the convergence round of FL while considering the delay requirement from the control system and energy consumption during the FL convergence."
624
+ },
625
+ {
626
+ "type": "title",
627
+ "bbox": [
628
+ 0.101,
629
+ 0.254,
630
+ 0.462,
631
+ 0.267
632
+ ],
633
+ "angle": 0,
634
+ "content": "III. CONVERGENCE ANALYSIS AND JOINT DESIGN"
635
+ },
636
+ {
637
+ "type": "title",
638
+ "bbox": [
639
+ 0.071,
640
+ 0.272,
641
+ 0.266,
642
+ 0.287
643
+ ],
644
+ "angle": 0,
645
+ "content": "A. FL convergence analysis"
646
+ },
647
+ {
648
+ "type": "text",
649
+ "bbox": [
650
+ 0.071,
651
+ 0.291,
652
+ 0.492,
653
+ 0.366
654
+ ],
655
+ "angle": 0,
656
+ "content": "In order to guarantee FL convergence, we assume that the following UAVs adopt a standard gradient descent method to update their local FL models [4]. Thus, for following UAV \\( i \\in \\mathcal{I} \\), the local model \\( \\boldsymbol{w}_i^{(t)} \\) at communication round \\( t \\) is given by"
657
+ },
658
+ {
659
+ "type": "equation",
660
+ "bbox": [
661
+ 0.163,
662
+ 0.365,
663
+ 0.49,
664
+ 0.395
665
+ ],
666
+ "angle": 0,
667
+ "content": "\\[\n\\boldsymbol {w} _ {i} ^ {(t)} = \\boldsymbol {w} ^ {(t - 1)} - \\frac {\\bar {\\lambda}}{N _ {i}} \\nabla F _ {i} (\\boldsymbol {w} ^ {(t - 1)}), \\tag {7}\n\\]"
668
+ },
669
+ {
670
+ "type": "text",
671
+ "bbox": [
672
+ 0.071,
673
+ 0.395,
674
+ 0.492,
675
+ 0.459
676
+ ],
677
+ "angle": 0,
678
+ "content": "where \\(\\pmb{w}^{(t - 1)}\\) is the global FL model at communication round \\(t - 1\\), \\(\\bar{\\lambda}\\) is the learning rate, and \\(F_{i}(\\pmb{w}^{(t - 1)}) = \\sum_{n = 1}^{N_{i}}f(\\pmb{w}^{(t - 1)},\\pmb{x}_{in},y_{in})\\). After the leading UAV collects local vectors \\(\\pmb{w}_i^{(t)}, i\\in \\mathcal{I}\\), the global FL model can be updated:"
679
+ },
680
+ {
681
+ "type": "equation",
682
+ "bbox": [
683
+ 0.205,
684
+ 0.457,
685
+ 0.49,
686
+ 0.495
687
+ ],
688
+ "angle": 0,
689
+ "content": "\\[\n\\boldsymbol {w} ^ {(t)} = \\frac {\\sum_ {i = 1} ^ {I} N _ {i} \\boldsymbol {w} _ {i} ^ {(t)}}{\\sum_ {i = 1} ^ {I} N _ {i}}. \\tag {8}\n\\]"
690
+ },
691
+ {
692
+ "type": "text",
693
+ "bbox": [
694
+ 0.071,
695
+ 0.492,
696
+ 0.492,
697
+ 0.58
698
+ ],
699
+ "angle": 0,
700
+ "content": "However, for ensuring successful updates of both global and local FL models as shown in (7) and (8), the transmission delay of uplink and downlink should be within, respectively, \\( T_{u}(\\beta) \\) and \\( T_{d}(\\beta) \\). Hence, after considering the impact of the transmission delays, we can rewrite the global FL model update as"
701
+ },
702
+ {
703
+ "type": "equation",
704
+ "bbox": [
705
+ 0.191,
706
+ 0.578,
707
+ 0.49,
708
+ 0.617
709
+ ],
710
+ "angle": 0,
711
+ "content": "\\[\n\\boldsymbol {w} ^ {(t)} = \\frac {\\sum_ {i = 1} ^ {I} N _ {i} \\boldsymbol {w} _ {i} ^ {(t)} C _ {i , t}}{\\sum_ {i = 1} ^ {I} N _ {i} C _ {i , t}}, \\tag {9}\n\\]"
712
+ },
713
+ {
714
+ "type": "text",
715
+ "bbox": [
716
+ 0.073,
717
+ 0.614,
718
+ 0.107,
719
+ 0.625
720
+ ],
721
+ "angle": 0,
722
+ "content": "with"
723
+ },
724
+ {
725
+ "type": "text",
726
+ "bbox": [
727
+ 0.073,
728
+ 0.623,
729
+ 0.497,
730
+ 0.652
731
+ ],
732
+ "angle": 0,
733
+ "content": "with \\(C_{i,t} = \\left\\{ \\begin{array}{ll}1, & \\mathrm{with~probability~}\\mathbb{P}(T_{iL,t}\\leq T_u(\\beta),T_{Li,t}\\leq T_d(\\beta)),\\\\ 0, & \\mathrm{otherwise.} \\end{array} \\right.\\)"
734
+ },
735
+ {
736
+ "type": "text",
737
+ "bbox": [
738
+ 0.071,
739
+ 0.652,
740
+ 0.493,
741
+ 0.848
742
+ ],
743
+ "angle": 0,
744
+ "content": "With the aim of quantifying the convergence of FL, we use the notion of a convergence round, defined as the minimum number of communication rounds needed to achieve a target difference \\(\\varepsilon\\) of the expected gap between current loss and the minimal loss, i.e., \\(\\mathbb{E}(F(\\boldsymbol{w}) - F(\\boldsymbol{w}^{*})) \\leq \\varepsilon\\). Moreover, to determine the convergence round, we make the following two standard assumptions: Function \\(F(\\boldsymbol{w})\\): \\(\\mathbb{R}^n \\to \\mathbb{R}\\) is continuously differentiable, and the gradient of \\(F(\\boldsymbol{w})\\) is uniformly Lipschitz continuous with positive parameter \\(U\\). We also consider the function \\(F\\) to be strongly convex with positive parameter \\(\\mu\\), and these exists constants \\(\\zeta_1 \\geq 0\\) and \\(\\zeta_2 \\geq 1\\), meeting \\(||\\nabla F_i(\\boldsymbol{w})||^2 \\leq \\zeta_1 + \\zeta_2||\\nabla F(\\boldsymbol{w})||^2\\) [14]. Given the above assumptions, we can derive the convergence round."
745
+ },
746
+ {
747
+ "type": "text",
748
+ "bbox": [
749
+ 0.071,
750
+ 0.855,
751
+ 0.492,
752
+ 0.886
753
+ ],
754
+ "angle": 0,
755
+ "content": "Theorem 1. To realize an expected convergence of \\( F(\\boldsymbol{w}) \\) under an accuracy threshold \\( \\varepsilon \\), i.e., \\( \\mathbb{E}(F(\\boldsymbol{w}) - F(\\boldsymbol{w}^{*})) \\leq \\varepsilon \\),"
756
+ },
757
+ {
758
+ "type": "text",
759
+ "bbox": [
760
+ 0.505,
761
+ 0.067,
762
+ 0.747,
763
+ 0.081
764
+ ],
765
+ "angle": 0,
766
+ "content": "the convergence round is given by:"
767
+ },
768
+ {
769
+ "type": "equation",
770
+ "bbox": [
771
+ 0.541,
772
+ 0.08,
773
+ 0.925,
774
+ 0.121
775
+ ],
776
+ "angle": 0,
777
+ "content": "\\[\n\\varphi = \\left[ \\log_ {1 - \\rho} \\frac {\\varepsilon}{\\sum_ {i = 1} ^ {I} \\sum_ {n = 1} ^ {N _ {i}} f (\\boldsymbol {w} ^ {(0)} , \\boldsymbol {x} _ {i n} , y _ {i n})} \\right], \\tag {10}\n\\]"
778
+ },
779
+ {
780
+ "type": "text",
781
+ "bbox": [
782
+ 0.504,
783
+ 0.117,
784
+ 0.925,
785
+ 0.146
786
+ ],
787
+ "angle": 0,
788
+ "content": "where \\( \\lceil \\cdot \\rceil \\) is the ceiling function, and \\( \\rho \\) captures the convergence speed given as follows"
789
+ },
790
+ {
791
+ "type": "equation",
792
+ "bbox": [
793
+ 0.542,
794
+ 0.146,
795
+ 0.925,
796
+ 0.178
797
+ ],
798
+ "angle": 0,
799
+ "content": "\\[\n\\rho = \\frac {\\sum_ {i = 1} ^ {T} N _ {i} \\mathbb {P} \\left(T _ {i L , t} \\leq T _ {u} (\\beta) , T _ {L i , t} \\leq T _ {d} (\\beta)\\right) \\mu}{N U}. \\tag {11}\n\\]"
800
+ },
801
+ {
802
+ "type": "text",
803
+ "bbox": [
804
+ 0.504,
805
+ 0.181,
806
+ 0.925,
807
+ 0.211
808
+ ],
809
+ "angle": 0,
810
+ "content": "Proof: Due to the space limitation, the proof is included in Appendix A."
811
+ },
812
+ {
813
+ "type": "text",
814
+ "bbox": [
815
+ 0.503,
816
+ 0.218,
817
+ 0.927,
818
+ 0.338
819
+ ],
820
+ "angle": 0,
821
+ "content": "As shown in Theorem 1, the convergence performance of FL depends on the transmission delay of both uplink and downlink in the network. In particular, to increase the convergence speed, we need to maximize the probability that both uplink and downlink meet the corresponding delay requirements of FL. Thus, Theorem 1 provides a concrete characterization of the interplay between wireless communications and FL performance in a UAV swarm."
822
+ },
823
+ {
824
+ "type": "text",
825
+ "bbox": [
826
+ 0.503,
827
+ 0.339,
828
+ 0.926,
829
+ 0.43
830
+ ],
831
+ "angle": 0,
832
+ "content": "For the stability analysis of the control system, we will follow the method provided by our previous work in [12]. That is, we first build the augmented error state vector. Then, we use Lyapunov-Razumikhin theorem to derive the control system delay requirements \\(\\tau_{i}, i \\in \\mathcal{I}\\), for downlink that can guarantee the stability of the UAV swarm."
833
+ },
834
+ {
835
+ "type": "title",
836
+ "bbox": [
837
+ 0.505,
838
+ 0.438,
839
+ 0.816,
840
+ 0.453
841
+ ],
842
+ "angle": 0,
843
+ "content": "B. Problem formulation and solution concept"
844
+ },
845
+ {
846
+ "type": "text",
847
+ "bbox": [
848
+ 0.504,
849
+ 0.457,
850
+ 0.925,
851
+ 0.502
852
+ ],
853
+ "angle": 0,
854
+ "content": "Here, we formulate an optimization problem to minimize the convergence round by jointly designing the power allocation and scheduling for the UAV network, as follows:"
855
+ },
856
+ {
857
+ "type": "equation",
858
+ "bbox": [
859
+ 0.545,
860
+ 0.503,
861
+ 0.925,
862
+ 0.527
863
+ ],
864
+ "angle": 0,
865
+ "content": "\\[\n\\min _ {\\left\\{\\boldsymbol {p}, p _ {L}, \\beta , v \\right\\}} \\varphi \\tag {12}\n\\]"
866
+ },
867
+ {
868
+ "type": "equation",
869
+ "bbox": [
870
+ 0.545,
871
+ 0.528,
872
+ 0.925,
873
+ 0.553
874
+ ],
875
+ "angle": 0,
876
+ "content": "\\[\n\\mathrm {s . t .} \\mathbb {P} \\left[ \\varphi E _ {L} + \\varphi p _ {L} T _ {d} (\\beta) + \\varphi \\bar {p} _ {L} (v) T _ {r} \\leq \\bar {E} \\right] \\geq \\xi_ {L}, \\tag {13}\n\\]"
877
+ },
878
+ {
879
+ "type": "equation",
880
+ "bbox": [
881
+ 0.567,
882
+ 0.554,
883
+ 0.925,
884
+ 0.58
885
+ ],
886
+ "angle": 0,
887
+ "content": "\\[\n\\mathbb {P} \\left[ \\varphi E _ {i} + \\varphi p _ {i} T _ {i L} + \\varphi \\bar {p} _ {i} (v) T _ {r} \\leq \\bar {E} \\right] \\geq \\xi_ {i}, i \\in \\mathcal {I}, \\tag {14}\n\\]"
888
+ },
889
+ {
890
+ "type": "equation",
891
+ "bbox": [
892
+ 0.567,
893
+ 0.581,
894
+ 0.925,
895
+ 0.598
896
+ ],
897
+ "angle": 0,
898
+ "content": "\\[\n\\mathbb {P} \\left(T _ {L i} \\leq \\tau_ {i}\\right) \\geq \\xi_ {C}, i \\in \\mathcal {I}, \\tag {15}\n\\]"
899
+ },
900
+ {
901
+ "type": "equation",
902
+ "bbox": [
903
+ 0.566,
904
+ 0.6,
905
+ 0.925,
906
+ 0.617
907
+ ],
908
+ "angle": 0,
909
+ "content": "\\[\np _ {L} \\in (0, p _ {L, \\max }, p _ {i} \\in (0, p _ {i, \\max }), i \\in \\mathcal {I}, \\tag {16}\n\\]"
910
+ },
911
+ {
912
+ "type": "equation",
913
+ "bbox": [
914
+ 0.567,
915
+ 0.62,
916
+ 0.925,
917
+ 0.636
918
+ ],
919
+ "angle": 0,
920
+ "content": "\\[\n\\beta \\in (0, 1), v \\in (0, v _ {\\max }) \\tag {17}\n\\]"
921
+ },
922
+ {
923
+ "type": "text",
924
+ "bbox": [
925
+ 0.503,
926
+ 0.635,
927
+ 0.927,
928
+ 0.83
929
+ ],
930
+ "angle": 0,
931
+ "content": "where vector \\(\\pmb{p} = [p_1, \\dots, p_I]\\). Constraint (13) guarantees that the probability of total energy consumption for the leading UAV being less than a threshold \\(\\bar{E}\\) will be greater than \\(\\xi_L \\in (0, 1)\\). Similarly to (13), constraint (14) represents the constraint on energy consumption of each follower \\(i \\in \\mathcal{I}\\). Constraint (15) guarantees that the UAV communication network is reliable to support the stability of the swarm with probability \\(\\xi_C\\). Constraints (16) and (17) ensure that the optimization variables, i.e., the transmission power, scheduling parameter, and velocity, are chosen within reasonable ranges. Note that, in the optimization problem, we also optimize the operation speed of the UAV swarm to minimize the motion energy consumption and relax the energy constraints in (13) and (14)."
932
+ },
933
+ {
934
+ "type": "text",
935
+ "bbox": [
936
+ 0.504,
937
+ 0.831,
938
+ 0.926,
939
+ 0.861
940
+ ],
941
+ "angle": 0,
942
+ "content": "Since both exponent and base in the logarithm function (10) are less than 1, minimizing the logarithm function in (12) is"
943
+ }
944
+ ],
945
+ [
946
+ {
947
+ "type": "text",
948
+ "bbox": [
949
+ 0.071,
950
+ 0.067,
951
+ 0.49,
952
+ 0.097
953
+ ],
954
+ "angle": 0,
955
+ "content": "equivalent to minimizing the base for the constant exponent. Also, according to (11), we can simplify (12) as"
956
+ },
957
+ {
958
+ "type": "equation",
959
+ "bbox": [
960
+ 0.106,
961
+ 0.097,
962
+ 0.49,
963
+ 0.134
964
+ ],
965
+ "angle": 0,
966
+ "content": "\\[\n\\max _ {\\left\\{\\boldsymbol {p}, p _ {L}, \\beta , v \\right\\}} \\sum_ {i = 1} ^ {I} N _ {i} \\mathbb {P} \\left(T _ {i L, t} \\leq T _ {u} (\\beta), T _ {L i, t} \\leq T _ {d} (\\beta)\\right). \\tag {18}\n\\]"
967
+ },
968
+ {
969
+ "type": "text",
970
+ "bbox": [
971
+ 0.071,
972
+ 0.133,
973
+ 0.491,
974
+ 0.344
975
+ ],
976
+ "angle": 0,
977
+ "content": "We observe that, after simplifications, both objective function and constraints are represented by probability terms. In this case, directly deriving the probability terms will be challenging since it requires multidimensional integrations. Also, as the optimization problem is not convex, employing convex approximations to simplify the optimization problem will be impossible. Instead, we use a sample average approximation approach where the probability terms in the objective function and constraints are replaced by an empirical distribution found by random samples [15]. In particular, we first generate \\(K\\) independent samples of the random parameters, i.e., wireless channel gains and angle deviations, and we calculate the corresponding transmission delay and convergence round. Then, we can reformulate the optimization problem as"
978
+ },
979
+ {
980
+ "type": "equation",
981
+ "bbox": [
982
+ 0.085,
983
+ 0.344,
984
+ 0.49,
985
+ 0.396
986
+ ],
987
+ "angle": 0,
988
+ "content": "\\[\n\\max _ {\\left\\{\\boldsymbol {p}, p _ {L}, \\beta , v \\right\\}} \\sum_ {i = 1} ^ {I} \\sum_ {k = 1} ^ {K} N _ {i} \\mathbb {1} \\left(T _ {u} (\\beta) - T _ {i L, k}\\right) \\mathbb {1} \\left(T _ {d} (\\beta) - T _ {L i, k}\\right) \\tag {19}\n\\]"
989
+ },
990
+ {
991
+ "type": "equation",
992
+ "bbox": [
993
+ 0.082,
994
+ 0.4,
995
+ 0.49,
996
+ 0.455
997
+ ],
998
+ "angle": 0,
999
+ "content": "\\[\n\\text {s . t .} \\sum_ {k = 1} ^ {K} \\mathbb {1} \\left(\\bar {E} - \\left(\\varphi_ {k} E _ {L} + \\varphi_ {k} p _ {L} T _ {d} (\\beta) + \\varphi_ {k} \\bar {p} _ {L} (v) T _ {r}\\right)\\right) \\geq K \\xi_ {L}, \\tag {20}\n\\]"
1000
+ },
1001
+ {
1002
+ "type": "equation",
1003
+ "bbox": [
1004
+ 0.099,
1005
+ 0.458,
1006
+ 0.49,
1007
+ 0.513
1008
+ ],
1009
+ "angle": 0,
1010
+ "content": "\\[\n\\sum_ {k = 1} ^ {K} \\mathbb {1} \\left(\\bar {E} - \\left(\\varphi_ {k} E _ {i} + \\varphi_ {k} p _ {i} T _ {i L, k} + \\varphi_ {k} \\bar {p} _ {i} (v) T _ {r}\\right)\\right) \\geq K \\xi_ {i}, i \\in \\mathcal {I}, \\tag {21}\n\\]"
1011
+ },
1012
+ {
1013
+ "type": "equation",
1014
+ "bbox": [
1015
+ 0.099,
1016
+ 0.516,
1017
+ 0.49,
1018
+ 0.558
1019
+ ],
1020
+ "angle": 0,
1021
+ "content": "\\[\n\\sum_ {k = 1} ^ {K} \\mathbb {1} \\left(\\tau_ {i} - T _ {L i, k}\\right) \\geq K \\xi_ {C}, i \\in \\mathcal {I}, \\tag {22}\n\\]"
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "bbox": [
1026
+ 0.099,
1027
+ 0.56,
1028
+ 0.2,
1029
+ 0.575
1030
+ ],
1031
+ "angle": 0,
1032
+ "content": "(16) and (17),"
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "bbox": [
1037
+ 0.071,
1038
+ 0.575,
1039
+ 0.491,
1040
+ 0.727
1041
+ ],
1042
+ "angle": 0,
1043
+ "content": "where the indicator function \\(\\mathbb{1}(r) = 1\\), once \\(r \\geq 0\\); otherwise, we have \\(\\mathbb{1}(r) = 0\\). Due to the presence of the indicator function, the reformulated problem is non-smooth. To obtain a smooth problem, we can further replace the indicator functions with modified sigmoid functions, i.e., \\(\\Gamma(r) = \\frac{1}{1 + \\exp(-\\bar{c}r)}\\), where \\(\\bar{c}\\) determines how quickly the modified sigmoid function changes near 0. To obtain a sub-optimal solution to the reformulated optimization problem with the indicator functions replaced by the modified sigmoid functions, we can use the dual method [16]. In particular, the Lagrangian function is"
1044
+ },
1045
+ {
1046
+ "type": "equation",
1047
+ "bbox": [
1048
+ 0.074,
1049
+ 0.733,
1050
+ 0.489,
1051
+ 0.771
1052
+ ],
1053
+ "angle": 0,
1054
+ "content": "\\[\n\\mathcal {J} (\\boldsymbol {\\lambda}, \\boldsymbol {p}, p _ {L}, \\beta , v) = \\sum_ {i = 1} ^ {I} \\sum_ {k = 1} ^ {K} N _ {i} \\Gamma (T _ {u} (\\beta) - T _ {i L, k}) \\Gamma (T _ {d} (\\beta) - T _ {L i, k}) +\n\\]"
1055
+ },
1056
+ {
1057
+ "type": "equation",
1058
+ "bbox": [
1059
+ 0.075,
1060
+ 0.773,
1061
+ 0.468,
1062
+ 0.809
1063
+ ],
1064
+ "angle": 0,
1065
+ "content": "\\[\n\\lambda_ {1} \\left(\\sum_ {k = 1} ^ {K} \\Gamma \\left(\\bar {E} - \\left(\\varphi_ {k} E _ {L} + \\varphi_ {k} p _ {L} T _ {d} (\\beta) + \\varphi_ {k} \\bar {p} _ {L} (v) T _ {r}\\right)\\right) - K \\xi_ {L}\\right) +\n\\]"
1066
+ },
1067
+ {
1068
+ "type": "equation",
1069
+ "bbox": [
1070
+ 0.075,
1071
+ 0.811,
1072
+ 0.488,
1073
+ 0.848
1074
+ ],
1075
+ "angle": 0,
1076
+ "content": "\\[\n\\sum_ {i = 1} ^ {I} \\lambda_ {i + 1} \\left(\\sum_ {k = 1} ^ {K} \\Gamma \\left(\\bar {E} - \\left(\\varphi_ {k} E _ {i} + \\varphi_ {k} p _ {i} T _ {i L, k} + \\varphi_ {k} \\bar {p} _ {i} (v) T _ {r}\\right)\\right) - K \\xi_ {i}\\right) +\n\\]"
1077
+ },
1078
+ {
1079
+ "type": "equation",
1080
+ "bbox": [
1081
+ 0.076,
1082
+ 0.851,
1083
+ 0.49,
1084
+ 0.886
1085
+ ],
1086
+ "angle": 0,
1087
+ "content": "\\[\n\\sum_ {i = 1} ^ {I} \\lambda_ {I + 1 + i} \\left(\\sum_ {k = 1} ^ {K} \\Gamma \\left(\\tau_ {i} - T _ {L i, k}\\right) - K \\xi_ {C}\\right), \\tag {23}\n\\]"
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "bbox": [
1092
+ 0.074,
1093
+ 0.886,
1094
+ 0.491,
1095
+ 0.902
1096
+ ],
1097
+ "angle": 0,
1098
+ "content": "where vector \\(\\pmb{\\lambda} = [\\lambda_1, \\dots, \\lambda_{2I + 1}] \\succeq \\mathbf{0}_{1 \\times (2I + 1)}\\) is the vector"
1099
+ },
1100
+ {
1101
+ "type": "table_caption",
1102
+ "bbox": [
1103
+ 0.616,
1104
+ 0.062,
1105
+ 0.812,
1106
+ 0.074
1107
+ ],
1108
+ "angle": 0,
1109
+ "content": "Table. I. Simulation parameters."
1110
+ },
1111
+ {
1112
+ "type": "table",
1113
+ "bbox": [
1114
+ 0.544,
1115
+ 0.074,
1116
+ 0.892,
1117
+ 0.232
1118
+ ],
1119
+ "angle": 0,
1120
+ "content": "<table><tr><td>Parameters</td><td>Values</td></tr><tr><td>Number of followers I</td><td>5</td></tr><tr><td>Transmission power threshold pmax</td><td>0.5 W</td></tr><tr><td>Maximum speed vmax</td><td>20 m/s [18]</td></tr><tr><td>Energy consumption efficient κ</td><td>10-28 [18]</td></tr><tr><td>Number of cycles needed per bit C</td><td>103 [18]</td></tr><tr><td>Frequency of the CPU φ</td><td>109cycle/s</td></tr><tr><td>Time for each communication round Tr</td><td>0.1 s</td></tr><tr><td>Side lobe gain Gmin, path loss exponent α</td><td>-2 dB, 2.5</td></tr><tr><td>Noise spectral density γ0</td><td>-174 dBm/Hz</td></tr><tr><td>Packet size Sw and Swi</td><td>10 kB</td></tr><tr><td>Number of rotors q and the diameter r</td><td>4, 0.254 m [4]</td></tr><tr><td>Power efficiency η and density ρ of the air</td><td>70 %, 1.225 kg/m3 [4]</td></tr><tr><td>Number of samples K, Energy limits E</td><td>1,000, 7,000 J</td></tr></table>"
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "bbox": [
1125
+ 0.504,
1126
+ 0.244,
1127
+ 0.924,
1128
+ 0.289
1129
+ ],
1130
+ "angle": 0,
1131
+ "content": "of Lagrangian multipliers, and the dual objective function can be defined as \\(\\mathcal{D}(\\pmb{\\lambda}) = \\max_{\\pmb{p}, p_L, v, \\beta} \\mathcal{J}(\\pmb{\\lambda}, \\pmb{p}, p_L, \\beta, v)\\). The corresponding dual optimization problem is"
1132
+ },
1133
+ {
1134
+ "type": "equation",
1135
+ "bbox": [
1136
+ 0.634,
1137
+ 0.29,
1138
+ 0.924,
1139
+ 0.31
1140
+ ],
1141
+ "angle": 0,
1142
+ "content": "\\[\n\\min _ {\\boldsymbol {\\lambda}} \\mathcal {D} (\\boldsymbol {\\lambda}) \\quad \\text {s . t .} \\boldsymbol {\\lambda} \\geq \\mathbf {0}. \\tag {24}\n\\]"
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "bbox": [
1147
+ 0.504,
1148
+ 0.308,
1149
+ 0.924,
1150
+ 0.337
1151
+ ],
1152
+ "angle": 0,
1153
+ "content": "Although the dual problem in (24) is always convex [17], \\(\\mathcal{D}(\\lambda)\\) is not differentiable. Instead, we can use subgradients given by"
1154
+ },
1155
+ {
1156
+ "type": "equation",
1157
+ "bbox": [
1158
+ 0.508,
1159
+ 0.337,
1160
+ 0.878,
1161
+ 0.377
1162
+ ],
1163
+ "angle": 0,
1164
+ "content": "\\[\n\\Delta \\lambda_ {1} = \\sum_ {k = 1} ^ {K} \\Gamma \\left(\\bar {E} - \\left(\\varphi_ {k} ^ {*} E _ {L} + \\varphi_ {k} ^ {*} p _ {L} T _ {d} ^ {*} + \\varphi_ {k} ^ {*} \\bar {p} _ {L} ^ {*} T _ {r}\\right)\\right) - K \\xi_ {L},\n\\]"
1165
+ },
1166
+ {
1167
+ "type": "equation",
1168
+ "bbox": [
1169
+ 0.509,
1170
+ 0.379,
1171
+ 0.922,
1172
+ 0.42
1173
+ ],
1174
+ "angle": 0,
1175
+ "content": "\\[\n\\Delta \\lambda_ {i + 1} = \\sum_ {k = 1} ^ {K} \\Gamma \\left(\\bar {E} - \\left(\\varphi_ {k} ^ {*} E _ {i} + \\varphi_ {k} ^ {*} p _ {i} ^ {*} T _ {i L, k} ^ {*} + \\varphi_ {k} ^ {*} \\bar {p} _ {i} ^ {*} T _ {r}\\right)\\right) - K \\xi_ {i}, i \\in \\mathcal {I},\n\\]"
1176
+ },
1177
+ {
1178
+ "type": "equation",
1179
+ "bbox": [
1180
+ 0.508,
1181
+ 0.422,
1182
+ 0.924,
1183
+ 0.462
1184
+ ],
1185
+ "angle": 0,
1186
+ "content": "\\[\n\\Delta \\lambda_ {I + 1 + i} = \\sum_ {k = 1} ^ {K} \\Gamma \\left(\\tau_ {i} - T _ {L i, k} ^ {*}\\right) - K \\xi_ {C}, i \\in \\mathcal {I}, \\tag {25}\n\\]"
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "bbox": [
1191
+ 0.503,
1192
+ 0.461,
1193
+ 0.924,
1194
+ 0.807
1195
+ ],
1196
+ "angle": 0,
1197
+ "content": "where the terms \\(\\varphi_k^*, T_d^*, T_{iL,k}^*, T_{Li,k}^*, \\bar{p}_L^*, \\bar{p}_i^*\\) are expressed by optimized variables \\(p^*, p_L^*, \\beta^*, v^*\\). The proof of subgradients is similar to the one provided in [16], and is omitted here. Thereby, we can solve the problem in (24) by either the subgradient method or the ellipsoid method, and their complexities are, respectively, \\(\\mathcal{O}\\left(\\frac{2I + 1}{\\epsilon^2}\\right)\\) and \\(\\mathcal{O}\\left((2I + 1)^2 \\ln \\frac{1}{\\epsilon}\\right)\\) with accuracy \\(\\epsilon\\) [17]. Then, the sub-optimal solution of \\(\\{\\pmb{p}, p_L, \\beta, v\\}\\) can be obtained by solving dual objective function \\(\\mathcal{D}(\\lambda)\\). In particular, similar to [16], we use the iterative method to sequentially derive the sub-optimal value of each element in \\(\\{\\pmb{p}, p_L, \\beta, v\\}\\) (the details are omitted here due to space limitations). Note that, we assume that all these steps of solving the optimization problem are done by a central unit (e.g., cloud or BS), before the swarm starts training their learning models in FL. In particular, there is no need for the central unit to collect any information from UAVs, since all samples of wireless channel gains and antenna deviations are randomly generated by the central unit itself. Also, since the number of UAVs in the swarm is usually small, the complexity of using sample average approximation and dual approach will be low. As a result, the central unit can readily obtain the sub-optimal solution to the joint design problem and later send the power allocation and scheduling parameters to UAVs in the swarm."
1198
+ },
1199
+ {
1200
+ "type": "title",
1201
+ "bbox": [
1202
+ 0.564,
1203
+ 0.816,
1204
+ 0.866,
1205
+ 0.83
1206
+ ],
1207
+ "angle": 0,
1208
+ "content": "IV. SIMULATION RESULTS AND ANALYSIS"
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "bbox": [
1213
+ 0.504,
1214
+ 0.835,
1215
+ 0.924,
1216
+ 0.895
1217
+ ],
1218
+ "angle": 0,
1219
+ "content": "For our simulations, we first validate the theoretical analysis in Theorem 1. Then, we show the impact of angle deviations on the convergence of FL, and we compare our joint design with baseline schemes that optimize power allocation and schedul"
1220
+ }
1221
+ ],
1222
+ [
1223
+ {
1224
+ "type": "image",
1225
+ "bbox": [
1226
+ 0.139,
1227
+ 0.069,
1228
+ 0.422,
1229
+ 0.23
1230
+ ],
1231
+ "angle": 0,
1232
+ "content": null
1233
+ },
1234
+ {
1235
+ "type": "image_caption",
1236
+ "bbox": [
1237
+ 0.18,
1238
+ 0.239,
1239
+ 0.383,
1240
+ 0.253
1241
+ ],
1242
+ "angle": 0,
1243
+ "content": "Fig. 2. Validation of Theorem 1."
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "bbox": [
1248
+ 0.071,
1249
+ 0.28,
1250
+ 0.493,
1251
+ 0.416
1252
+ ],
1253
+ "angle": 0,
1254
+ "content": "ing separately. In particular, we consider two baselines. The first baseline is a system with optimized power allocation (same power allocation in the joint design) and randomized scheduling parameters. The second baseline is a system with optimized scheduling (same scheduling used by the joint design) and randomized power allocation. We also assume equal uplink and downlink bandwidths, i.e., \\( B_{u} = B_{d} = 1 \\mathrm{MHz} \\), and equal angle deviation variance for each UAV, i.e., \\( \\sigma_j^2 = \\sigma^2 \\), \\( j \\in \\mathcal{I} \\cup \\{L\\} \\). All simulation parameters are summarized in Table I."
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "bbox": [
1259
+ 0.071,
1260
+ 0.417,
1261
+ 0.493,
1262
+ 0.612
1263
+ ],
1264
+ "angle": 0,
1265
+ "content": "Fig. 2 shows the convergence round versus the difference threshold \\(\\varepsilon\\). Note that, in Fig. 2, we choose the range of \\(\\varepsilon \\in (5, 25)\\) based on the value of \\(\\sum_{i=1}^{I} \\sum_{n=1}^{N_i} f(\\boldsymbol{w}_0, \\boldsymbol{x}_{in}, y_{in})\\) and the range of \\(\\varepsilon\\) will be varied for different settings of data and initial global FL model and the accuracy requirement. As observed from Fig. 2, the theoretical analysis derived in Theorem 1 is aligned with the simulation results with less than \\(5\\%\\) difference, thus corroborating the validity of Theorem 1. Moreover, Fig. 2 shows that, when the difference threshold increases, the convergence round decreases. This is because, with a larger difference threshold, the requirement of convergence becomes less stringent. In this case, FL requires fewer communication rounds to converge."
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "bbox": [
1270
+ 0.071,
1271
+ 0.612,
1272
+ 0.493,
1273
+ 0.868
1274
+ ],
1275
+ "angle": 0,
1276
+ "content": "Fig. 3 shows the convergence round when the variance of angle deviations changes. From Fig. 3, we observe that, when the variance of angle deviations increases, FL needs more communication rounds to converge. This is due to the fact that, when the angle deviation variance increases, the antennas at transmitter and receiver in the network will be less aligned, leading to a drop in the antenna gains' product between transmitter and receiver in (4) and (5). As a result, the transmission delay of wireless links will increase, and the probability of meeting the delay requirements, i.e., \\(\\mathbb{P}(T_{iL,t} \\leq T_u, T_{Li,t} \\leq T_d)\\), decreases. Therefore, more communication rounds are needed to achieve the FL convergence. Moreover, as shown in Fig. 3, when the bandwidth allocated to uplink and downlink increases, the FL algorithm requires fewer communication rounds to achieve convergence. This stems from the fact that, a large bandwidth improves the probability of meeting the delay requirements, yielding a fast FL convergence."
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "bbox": [
1281
+ 0.071,
1282
+ 0.87,
1283
+ 0.492,
1284
+ 0.899
1285
+ ],
1286
+ "angle": 0,
1287
+ "content": "Fig. 4 compares our proposed joint power allocation and scheduling design with the baselines without a joint design. It"
1288
+ },
1289
+ {
1290
+ "type": "image",
1291
+ "bbox": [
1292
+ 0.563,
1293
+ 0.068,
1294
+ 0.865,
1295
+ 0.228
1296
+ ],
1297
+ "angle": 0,
1298
+ "content": null
1299
+ },
1300
+ {
1301
+ "type": "image_caption",
1302
+ "bbox": [
1303
+ 0.536,
1304
+ 0.234,
1305
+ 0.894,
1306
+ 0.25
1307
+ ],
1308
+ "angle": 0,
1309
+ "content": "Fig. 3. Impact of angle deviations on the FL convergence."
1310
+ },
1311
+ {
1312
+ "type": "image",
1313
+ "bbox": [
1314
+ 0.557,
1315
+ 0.267,
1316
+ 0.861,
1317
+ 0.426
1318
+ ],
1319
+ "angle": 0,
1320
+ "content": null
1321
+ },
1322
+ {
1323
+ "type": "image_caption",
1324
+ "bbox": [
1325
+ 0.505,
1326
+ 0.433,
1327
+ 0.925,
1328
+ 0.448
1329
+ ],
1330
+ "angle": 0,
1331
+ "content": "Fig. 4. Comparisons between systems with and without joint design."
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "bbox": [
1336
+ 0.503,
1337
+ 0.474,
1338
+ 0.927,
1339
+ 0.685
1340
+ ],
1341
+ "angle": 0,
1342
+ "content": "is shown that, for the same network setting, the convergence round for a network with joint design is always less than its counterparts of baselines. In particular, when the bandwidth is \\(1\\mathrm{MHz}\\), the system with a joint design reduces the convergence round by as much as \\(35\\%\\) compared with the baseline system with optimized scheduling and randomized power allocation design. Moreover, as shown in Fig. 4, when the bandwidth assigned to uplink and downlink increases, the performance gap between the system with the proposed joint design and the baselines decreases. That is because, as we increase the bandwidth, it becomes more probable for all three systems to meet the delay constraints at uplink and downlink. Therefore, the impact of communications delay on the FL convergence will be minimized."
1343
+ },
1344
+ {
1345
+ "type": "title",
1346
+ "bbox": [
1347
+ 0.65,
1348
+ 0.695,
1349
+ 0.78,
1350
+ 0.708
1351
+ ],
1352
+ "angle": 0,
1353
+ "content": "V. CONCLUSIONS"
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "bbox": [
1358
+ 0.503,
1359
+ 0.713,
1360
+ 0.925,
1361
+ 0.88
1362
+ ],
1363
+ "angle": 0,
1364
+ "content": "In this paper, we have studied the possibility of implementing FL over a swarm of UAVs. In particular, we have carried out a convergence analysis to study the impact of wireless factors, such as transmission delay and antenna angle deviations, on the convergence of FL. Using the derived insight, we have jointly designed the power allocation and scheduling policy for the UAV swarm to optimize the convergence performance of FL while guaranteeing the stability of control system and controlling the energy consumption. Simulation results have corroborated the convergence analysis of FL and showed the merits of the proposed joint design."
1365
+ }
1366
+ ],
1367
+ [
1368
+ {
1369
+ "type": "title",
1370
+ "bbox": [
1371
+ 0.244,
1372
+ 0.068,
1373
+ 0.321,
1374
+ 0.08
1375
+ ],
1376
+ "angle": 0,
1377
+ "content": "APPENDIX"
1378
+ },
1379
+ {
1380
+ "type": "title",
1381
+ "bbox": [
1382
+ 0.071,
1383
+ 0.086,
1384
+ 0.232,
1385
+ 0.101
1386
+ ],
1387
+ "angle": 0,
1388
+ "content": "A. Proof of Theorem 1"
1389
+ },
1390
+ {
1391
+ "type": "text",
1392
+ "bbox": [
1393
+ 0.071,
1394
+ 0.105,
1395
+ 0.493,
1396
+ 0.286
1397
+ ],
1398
+ "angle": 0,
1399
+ "content": "According to the assumptions about function \\( F(\\pmb{w}) : \\mathbb{R}^n \\to \\mathbb{R} \\) made in Section III, we know that function \\( F(\\pmb{w}) \\) is continuously differentiable, and the gradient of \\( F(\\pmb{w}) \\) is uniformly Lipschitz continuous, i.e., for some positive parameter \\( U \\), \\( ||\\nabla F(\\pmb{w}^{(t + 1)}) - \\nabla F(\\pmb{w}^{(t)})|| \\leq U||\\pmb{w}^{(t + 1)} - \\pmb{w}^{(t)}|| \\); the function \\( F \\) is strongly convex with positive parameter \\( \\mu \\): \\( F(\\pmb{w}^{(t + 1)}) \\geq F(\\pmb{w}^{(t)}) + (\\pmb{w}^{(t + 1)} - \\pmb{w}^{(t)})^T\\nabla F(\\pmb{w}^{(t)}) + \\frac{1}{2}\\mu ||\\pmb{w}^{(t + 1)} - \\pmb{w}^{(t)}|| \\). If \\( F \\) is twice-continuously differentiable, these two assumptions are equivalent to \\( \\mu I \\leq \\nabla^2 F(\\pmb{w}) \\leq UI \\). Also, following a standard assumption in stochastic optimization, we consider that there exists constants \\( \\zeta_1 \\geq 0 \\) and \\( \\zeta_2 \\geq 1 \\), meeting \\( ||\\nabla F_i(\\pmb{w})||^2 \\leq \\zeta_1 + \\zeta_2||\\nabla F(\\pmb{w})||^2 \\) [14]."
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "bbox": [
1404
+ 0.071,
1405
+ 0.287,
1406
+ 0.493,
1407
+ 0.331
1408
+ ],
1409
+ "angle": 0,
1410
+ "content": "In this case, since the global FL model is the aggregation of all local FL models, the global FL model without the impact of the transmission delay can be given as"
1411
+ },
1412
+ {
1413
+ "type": "equation",
1414
+ "bbox": [
1415
+ 0.1,
1416
+ 0.33,
1417
+ 0.49,
1418
+ 0.367
1419
+ ],
1420
+ "angle": 0,
1421
+ "content": "\\[\n\\boldsymbol {w} ^ {(t)} = \\frac {\\sum_ {i = 1} ^ {I} N _ {i} \\boldsymbol {w} _ {i} ^ {(t)}}{\\sum_ {i = 1} ^ {I} N _ {i}} = \\boldsymbol {w} ^ {(t - 1)} - \\lambda \\nabla F (\\boldsymbol {w} ^ {(t - 1)}). \\tag {26}\n\\]"
1422
+ },
1423
+ {
1424
+ "type": "text",
1425
+ "bbox": [
1426
+ 0.071,
1427
+ 0.365,
1428
+ 0.49,
1429
+ 0.394
1430
+ ],
1431
+ "angle": 0,
1432
+ "content": "After taking into account the impact of transmission delays, we can rewrite the global FL model update as"
1433
+ },
1434
+ {
1435
+ "type": "equation",
1436
+ "bbox": [
1437
+ 0.073,
1438
+ 0.392,
1439
+ 0.49,
1440
+ 0.431
1441
+ ],
1442
+ "angle": 0,
1443
+ "content": "\\[\n\\boldsymbol {w} ^ {(t)} = \\frac {\\sum_ {i = 1} ^ {I} N _ {i} \\boldsymbol {w} _ {i} ^ {(t)} C _ {i , t}}{\\sum_ {i = 1} ^ {I} N _ {i} C _ {i , t}} = \\boldsymbol {w} ^ {(t - 1)} - \\lambda (\\nabla F (\\boldsymbol {w} ^ {(t - 1)}) + e ^ {(t)}),\n\\]"
1444
+ },
1445
+ {
1446
+ "type": "text",
1447
+ "bbox": [
1448
+ 0.071,
1449
+ 0.43,
1450
+ 0.49,
1451
+ 0.479
1452
+ ],
1453
+ "angle": 0,
1454
+ "content": "where \\(e^{(t)} = -\\nabla F(\\pmb{w}^{(t-1)}) + \\frac{\\sum_{i=1}^{I} N_i \\nabla F_i(\\pmb{w}^{(t-1)}) C_{i,t}}{\\sum_{i=1}^{I} N_i C_{i,t}}\\). Based on the assumption on the uniform Lipschitz continuity and strong convexity, we can have the following inequalities:"
1455
+ },
1456
+ {
1457
+ "type": "equation",
1458
+ "bbox": [
1459
+ 0.093,
1460
+ 0.479,
1461
+ 0.49,
1462
+ 0.527
1463
+ ],
1464
+ "angle": 0,
1465
+ "content": "\\[\n\\begin{array}{l} F (\\boldsymbol {w} ^ {(t)}) \\leq F (\\boldsymbol {w} ^ {(t - 1)}) + (\\boldsymbol {w} ^ {(t)} - \\boldsymbol {w} ^ {(t - 1)}) ^ {T} \\nabla \\tilde {F} (\\boldsymbol {w} ^ {(t - 1)}) \\\\ + \\frac {U}{2} \\| \\boldsymbol {w} ^ {(t)} - \\boldsymbol {w} ^ {(t - 1)} \\| ^ {2}, \\tag {27} \\\\ \\end{array}\n\\]"
1466
+ },
1467
+ {
1468
+ "type": "equation",
1469
+ "bbox": [
1470
+ 0.093,
1471
+ 0.528,
1472
+ 0.49,
1473
+ 0.572
1474
+ ],
1475
+ "angle": 0,
1476
+ "content": "\\[\n\\begin{array}{l} F (\\boldsymbol {w} ^ {(t)}) \\geq F (\\boldsymbol {w} ^ {(t - 1)}) + (\\boldsymbol {w} ^ {(t)} - \\boldsymbol {w} ^ {(t - 1)}) ^ {T} \\nabla F (\\boldsymbol {w} ^ {(t - 1)}) \\\\ + \\frac {\\mu}{2} \\left\\| \\boldsymbol {w} ^ {(t)} - \\boldsymbol {w} ^ {(t - 1)} \\right\\| ^ {2}. \\tag {28} \\\\ \\end{array}\n\\]"
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "bbox": [
1481
+ 0.071,
1482
+ 0.572,
1483
+ 0.49,
1484
+ 0.603
1485
+ ],
1486
+ "angle": 0,
1487
+ "content": "Since \\(\\pmb{w}^{(t)} = \\overline{\\pmb{w}}^{(t - 1)} - \\lambda (\\nabla F(\\pmb{w}^{(t - 1)}) + e^{(t)})\\), we can simplify (27) when the learning rate is \\(\\lambda = \\frac{1}{U}\\) as"
1488
+ },
1489
+ {
1490
+ "type": "equation",
1491
+ "bbox": [
1492
+ 0.073,
1493
+ 0.603,
1494
+ 0.49,
1495
+ 0.7
1496
+ ],
1497
+ "angle": 0,
1498
+ "content": "\\[\n\\begin{array}{l} F (\\boldsymbol {w} ^ {(t)}) \\leq F (\\boldsymbol {w} ^ {(t - 1)}) - \\frac {1}{U} \\left(\\nabla F (\\boldsymbol {w} ^ {(t - 1)}) + e ^ {(t)}\\right) ^ {T} \\nabla F (\\boldsymbol {w} ^ {(t - 1)}) \\\\ + \\frac {1}{2 U} | | \\nabla F (\\boldsymbol {w} ^ {(t - 1)}) + e ^ {(t)} | | ^ {2} \\\\ = F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) - \\frac {1}{2 U} \\left\\| \\nabla F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) \\right\\| ^ {2} + \\frac {1}{2 U} \\left\\| e ^ {(t)} \\right\\| ^ {2}. \\tag {29} \\\\ \\end{array}\n\\]"
1499
+ },
1500
+ {
1501
+ "type": "text",
1502
+ "bbox": [
1503
+ 0.071,
1504
+ 0.701,
1505
+ 0.49,
1506
+ 0.779
1507
+ ],
1508
+ "angle": 0,
1509
+ "content": "To find a lower bound on the norm of \\(\\nabla F(\\pmb{w}^{(t)})\\), we can minimize both sides of (28) with respect \\(\\pmb{w}^{(t)}\\). The minimal value of the left-hand side of (28) is achieved when \\(\\pmb{w}^{(t)} = \\pmb{w}^*\\), and the minimal value of the right-hand side of (28) is realized when \\(\\pmb{w}^{(t)} = \\pmb{w}^{(t - 1)} - \\frac{1}{\\mu}\\nabla F(\\pmb{w}^{(t - 1)})\\). Particularly, we have"
1510
+ },
1511
+ {
1512
+ "type": "equation",
1513
+ "bbox": [
1514
+ 0.132,
1515
+ 0.778,
1516
+ 0.49,
1517
+ 0.807
1518
+ ],
1519
+ "angle": 0,
1520
+ "content": "\\[\nF \\left(\\boldsymbol {w} ^ {*}\\right) \\geq F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) - \\frac {1}{2 \\mu} | | \\nabla F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) | | ^ {2}. \\tag {30}\n\\]"
1521
+ },
1522
+ {
1523
+ "type": "text",
1524
+ "bbox": [
1525
+ 0.071,
1526
+ 0.806,
1527
+ 0.49,
1528
+ 0.836
1529
+ ],
1530
+ "angle": 0,
1531
+ "content": "When replacing \\(\\pmb{w}^{(t - 1)}\\) with \\(\\pmb{w}^{(t)}\\) in (30), we can obtain a lower bound for the norm of \\(\\nabla F(\\pmb{w}^{(t)})\\) as"
1532
+ },
1533
+ {
1534
+ "type": "equation",
1535
+ "bbox": [
1536
+ 0.144,
1537
+ 0.836,
1538
+ 0.49,
1539
+ 0.853
1540
+ ],
1541
+ "angle": 0,
1542
+ "content": "\\[\n\\left| \\left| \\nabla F \\left(\\boldsymbol {w} ^ {(t)}\\right) \\right| \\right| ^ {2} \\geq 2 \\mu \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right). \\tag {31}\n\\]"
1543
+ },
1544
+ {
1545
+ "type": "text",
1546
+ "bbox": [
1547
+ 0.071,
1548
+ 0.852,
1549
+ 0.492,
1550
+ 0.881
1551
+ ],
1552
+ "angle": 0,
1553
+ "content": "Combining (29) and (31), we can obtain an upper bound of the current loss and the minimal loss given by"
1554
+ },
1555
+ {
1556
+ "type": "equation",
1557
+ "bbox": [
1558
+ 0.073,
1559
+ 0.881,
1560
+ 0.492,
1561
+ 0.907
1562
+ ],
1563
+ "angle": 0,
1564
+ "content": "\\[\nF \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right) \\leq \\left(1 - \\frac {\\mu}{U}\\right) \\left[ F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right) \\right] + \\frac {1}{2 U} \\left\\| e ^ {(t)} \\right\\| ^ {2}.\n\\]"
1565
+ },
1566
+ {
1567
+ "type": "text",
1568
+ "bbox": [
1569
+ 0.504,
1570
+ 0.081,
1571
+ 0.925,
1572
+ 0.127
1573
+ ],
1574
+ "angle": 0,
1575
+ "content": "According to [19], when \\(\\mathbb{E}[||e^{(t)}||^2] \\leq 2U\\left(\\frac{\\mu}{U} - \\rho^{(t)}\\right)\\mathbb{E}(F(\\boldsymbol{w}^{(t)}) - F(\\boldsymbol{w}^*))\\), we can achieve the strong expected linear convergence, i.e.,"
1576
+ },
1577
+ {
1578
+ "type": "equation",
1579
+ "bbox": [
1580
+ 0.508,
1581
+ 0.126,
1582
+ 0.917,
1583
+ 0.144
1584
+ ],
1585
+ "angle": 0,
1586
+ "content": "\\[\n\\overline {{\\mathbb {E}}} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right) \\leq (1 - \\rho^ {(t)}) \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right).\n\\]"
1587
+ },
1588
+ {
1589
+ "type": "text",
1590
+ "bbox": [
1591
+ 0.504,
1592
+ 0.144,
1593
+ 0.923,
1594
+ 0.171
1595
+ ],
1596
+ "angle": 0,
1597
+ "content": "According to the strong expected linear convergence requirement, we know that the convergence rate satisfies"
1598
+ },
1599
+ {
1600
+ "type": "equation",
1601
+ "bbox": [
1602
+ 0.583,
1603
+ 0.171,
1604
+ 0.924,
1605
+ 0.204
1606
+ ],
1607
+ "angle": 0,
1608
+ "content": "\\[\n\\rho^ {(t)} \\leq \\frac {\\mu}{U} - \\frac {\\mathbb {E} [ | | e ^ {(t)} | | ^ {2} ]}{2 U \\mathbb {E} (F (\\boldsymbol {w} ^ {(t)}) - F (\\boldsymbol {w} ^ {*}))}. \\tag {32}\n\\]"
1609
+ },
1610
+ {
1611
+ "type": "text",
1612
+ "bbox": [
1613
+ 0.505,
1614
+ 0.202,
1615
+ 0.924,
1616
+ 0.216
1617
+ ],
1618
+ "angle": 0,
1619
+ "content": "By using the results in [20], we have the following inequality:"
1620
+ },
1621
+ {
1622
+ "type": "equation",
1623
+ "bbox": [
1624
+ 0.538,
1625
+ 0.215,
1626
+ 0.924,
1627
+ 0.272
1628
+ ],
1629
+ "angle": 0,
1630
+ "content": "\\[\n\\begin{array}{l} \\mathbb {E} \\left(\\left\\| e ^ {(t)} \\right\\| ^ {2}\\right) \\leq \\frac {1}{N} \\sum_ {i = 1} ^ {I} N _ {i} \\left(\\zeta_ {1} + \\zeta_ {2} \\mathbb {E} \\left(\\nabla F \\left(\\boldsymbol {w} ^ {(t)}\\right)\\right)\\right) \\times \\\\ (1 - \\mathbb {P} (T _ {i L} \\leq T _ {u} (\\beta), T _ {L i} \\leq T _ {d} (\\beta))). \\tag {33} \\\\ \\end{array}\n\\]"
1631
+ },
1632
+ {
1633
+ "type": "text",
1634
+ "bbox": [
1635
+ 0.505,
1636
+ 0.273,
1637
+ 0.924,
1638
+ 0.287
1639
+ ],
1640
+ "angle": 0,
1641
+ "content": "The right-hand side of (32) will meet the following inequality:"
1642
+ },
1643
+ {
1644
+ "type": "equation",
1645
+ "bbox": [
1646
+ 0.508,
1647
+ 0.286,
1648
+ 0.924,
1649
+ 0.359
1650
+ ],
1651
+ "angle": 0,
1652
+ "content": "\\[\n\\begin{array}{l} \\frac {\\mu}{U} - \\frac {\\mathbb {E} [ | | e ^ {(t)} | | ^ {2} ]}{2 U \\mathbb {E} (F (\\boldsymbol {w} ^ {(t)}) - F (\\boldsymbol {w} ^ {*}))} \\geq \\frac {\\mu}{U} - \\sum_ {i = 1} ^ {I} N _ {i} \\left(\\zeta_ {1} + \\zeta_ {2} \\mathbb {E} \\left(\\nabla F (\\boldsymbol {w} ^ {(t)})\\right)\\right) \\\\ \\times \\frac {\\left(1 - \\mathbb {P} \\left(T _ {i L} \\leq T _ {u} (\\beta) , T _ {L i} \\leq T _ {d} (\\beta)\\right)\\right)}{2 N U \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right)}. \\tag {34} \\\\ \\end{array}\n\\]"
1653
+ },
1654
+ {
1655
+ "type": "text",
1656
+ "bbox": [
1657
+ 0.505,
1658
+ 0.357,
1659
+ 0.887,
1660
+ 0.371
1661
+ ],
1662
+ "angle": 0,
1663
+ "content": "Therefore, to guarantee that (32) always exists, we have"
1664
+ },
1665
+ {
1666
+ "type": "equation",
1667
+ "bbox": [
1668
+ 0.518,
1669
+ 0.371,
1670
+ 0.83,
1671
+ 0.445
1672
+ ],
1673
+ "angle": 0,
1674
+ "content": "\\[\n\\begin{array}{l} \\rho^ {(t)} \\leq \\frac {\\mu}{U} - \\sum_ {i = 1} ^ {I} N _ {i} \\left(\\zeta_ {1} + \\zeta_ {2} \\mathbb {E} \\left(\\nabla F \\left(\\boldsymbol {w} ^ {(t)}\\right)\\right)\\right) \\\\ \\times \\frac {(1 - \\mathbb {P} (T _ {i L} \\leq T _ {u} (\\beta) , T _ {L i} \\leq T _ {d} (\\beta)))}{2 N U \\mathbb {E} (F (\\boldsymbol {w} ^ {(t)}) - F (\\boldsymbol {w} ^ {*}))} \\\\ \\end{array}\n\\]"
1675
+ },
1676
+ {
1677
+ "type": "equation",
1678
+ "bbox": [
1679
+ 0.525,
1680
+ 0.446,
1681
+ 0.826,
1682
+ 0.521
1683
+ ],
1684
+ "angle": 0,
1685
+ "content": "\\[\n\\begin{array}{l} \\stackrel {(a)} {\\leq} \\frac {\\mu}{U} - \\sum_ {i = 1} ^ {I} N _ {i} \\left(\\zeta_ {1} + \\zeta_ {2} 2 \\mu \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right)\\right) \\\\ \\times \\frac {\\left(1 - \\mathbb {P} \\left(T _ {i L} \\leq T _ {u} (\\beta) , T _ {L i} \\leq T _ {d} (\\beta)\\right)\\right)}{2 N U \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right)} \\\\ \\end{array}\n\\]"
1686
+ },
1687
+ {
1688
+ "type": "equation",
1689
+ "bbox": [
1690
+ 0.525,
1691
+ 0.523,
1692
+ 0.83,
1693
+ 0.598
1694
+ ],
1695
+ "angle": 0,
1696
+ "content": "\\[\n\\begin{array}{l} \\stackrel {(b)} {\\leq} \\frac {\\mu}{U} - \\sum_ {i = 1} ^ {I} N _ {i} \\left(2 \\mu \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right)\\right) \\\\ \\times \\frac {\\left(1 - \\mathbb {P} \\left(T _ {i L} \\leq T _ {u} (\\beta) , T _ {L i} \\leq T _ {d} (\\beta)\\right)\\right)}{2 N U \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right)} \\\\ \\end{array}\n\\]"
1697
+ },
1698
+ {
1699
+ "type": "equation",
1700
+ "bbox": [
1701
+ 0.523,
1702
+ 0.599,
1703
+ 0.924,
1704
+ 0.631
1705
+ ],
1706
+ "angle": 0,
1707
+ "content": "\\[\n= \\frac {\\mu}{U} - \\frac {\\sum_ {i = 1} ^ {I} N _ {i} \\mu \\left(1 - \\mathbb {P} \\left(T _ {i L} \\leq T _ {u} (\\beta) , T _ {L i} \\leq T _ {d} (\\beta)\\right)\\right)}{N U}, \\tag {35}\n\\]"
1708
+ },
1709
+ {
1710
+ "type": "text",
1711
+ "bbox": [
1712
+ 0.505,
1713
+ 0.628,
1714
+ 0.924,
1715
+ 0.694
1716
+ ],
1717
+ "angle": 0,
1718
+ "content": "where in (a), we use the results derived in (31), and the derivation in (b) is based on the fact that \\(\\zeta_1 \\geq 0\\) and \\(\\zeta_2 \\geq 1\\). Assume \\(\\rho = \\frac{\\mu}{U} - \\frac{\\sum_{i=1}^{I} N_i \\mu(1 - \\mathbb{P}(T_{iL} \\leq T_u(\\beta), T_{Li} \\leq T_d(\\beta)))}{NU} = \\frac{\\sum_{i=1}^{I} N_i \\mu(\\mathbb{P}(T_{iL} \\leq T_u(\\beta), T_{Li} \\leq T_d(\\beta)))}{NU}\\), then, we can have"
1719
+ },
1720
+ {
1721
+ "type": "equation",
1722
+ "bbox": [
1723
+ 0.52,
1724
+ 0.693,
1725
+ 0.909,
1726
+ 0.731
1727
+ ],
1728
+ "angle": 0,
1729
+ "content": "\\[\n\\begin{array}{l} \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right) \\leq (1 - \\rho) \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t - 1)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right) \\\\ \\leq (1 - \\rho) ^ {2} \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(t - 2)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right) \\\\ \\end{array}\n\\]"
1730
+ },
1731
+ {
1732
+ "type": "text",
1733
+ "bbox": [
1734
+ 0.667,
1735
+ 0.74,
1736
+ 0.683,
1737
+ 0.747
1738
+ ],
1739
+ "angle": 0,
1740
+ "content": "··"
1741
+ },
1742
+ {
1743
+ "type": "equation",
1744
+ "bbox": [
1745
+ 0.671,
1746
+ 0.752,
1747
+ 0.897,
1748
+ 0.769
1749
+ ],
1750
+ "angle": 0,
1751
+ "content": "\\[\n\\leq (1 - \\rho) ^ {t} \\mathbb {E} \\left(F \\left(\\boldsymbol {w} ^ {(0)}\\right) - F \\left(\\boldsymbol {w} ^ {*}\\right)\\right).\n\\]"
1752
+ },
1753
+ {
1754
+ "type": "text",
1755
+ "bbox": [
1756
+ 0.504,
1757
+ 0.769,
1758
+ 0.924,
1759
+ 0.812
1760
+ ],
1761
+ "angle": 0,
1762
+ "content": "We can further determine the convergence round needed to achieve a target difference threshold, i.e., \\(\\mathbb{E}(F(\\boldsymbol{w}) - F(\\boldsymbol{w}^{*}))\\leq \\varepsilon\\), as follows:"
1763
+ },
1764
+ {
1765
+ "type": "equation",
1766
+ "bbox": [
1767
+ 0.57,
1768
+ 0.811,
1769
+ 0.924,
1770
+ 0.907
1771
+ ],
1772
+ "angle": 0,
1773
+ "content": "\\[\n\\begin{array}{l} t \\geq \\log_ {1 - \\rho} \\frac {\\varepsilon}{\\mathbb {E} (F (\\boldsymbol {w} ^ {(0)}) - F (\\boldsymbol {w} ^ {*}))} \\\\ \\stackrel {(a)} {\\geq} \\log_ {1 - \\rho} \\frac {\\varepsilon}{\\mathbb {E} (F (\\boldsymbol {w} ^ {(0)}))} \\\\ = \\log_ {1 - \\rho} \\frac {\\varepsilon}{\\sum_ {i = 1} ^ {I} \\sum_ {n = 1} ^ {N _ {i}} f \\left(\\boldsymbol {w} ^ {(0)}, \\boldsymbol {x} _ {i n} , y _ {i n}\\right)}, \\tag {36} \\\\ \\end{array}\n\\]"
1774
+ }
1775
+ ],
1776
+ [
1777
+ {
1778
+ "type": "text",
1779
+ "bbox": [
1780
+ 0.071,
1781
+ 0.067,
1782
+ 0.493,
1783
+ 0.112
1784
+ ],
1785
+ "angle": 0,
1786
+ "content": "where in (a), we use the fact that \\(1 - \\rho \\leq 1\\). Since the convergence round must be integral, we can have the results in Theorem 1."
1787
+ },
1788
+ {
1789
+ "type": "title",
1790
+ "bbox": [
1791
+ 0.234,
1792
+ 0.121,
1793
+ 0.331,
1794
+ 0.134
1795
+ ],
1796
+ "angle": 0,
1797
+ "content": "REFERENCES"
1798
+ },
1799
+ {
1800
+ "type": "ref_text",
1801
+ "bbox": [
1802
+ 0.082,
1803
+ 0.142,
1804
+ 0.49,
1805
+ 0.187
1806
+ ],
1807
+ "angle": 0,
1808
+ "content": "[1] M. Mozaffari, W. Saad, M. Dennis, Y. Nam, and M. Debbah, \"A tutorial on UAVs for wireless networks: Applications, challenges, and open problems,\" IEEE Communications Surveys Tutorials, vol. 21, no. 3, pp. 2334-2360, Third Quarter, 2019."
1809
+ },
1810
+ {
1811
+ "type": "ref_text",
1812
+ "bbox": [
1813
+ 0.082,
1814
+ 0.187,
1815
+ 0.492,
1816
+ 0.232
1817
+ ],
1818
+ "angle": 0,
1819
+ "content": "[2] M. Mozaffari, A. Kasgari, W. Saad, M. Bennis, and M. Debbah, \"Beyond 5G with UAVs: Foundations of a 3D wireless cellular network,\" IEEE Transactions on Wireless Communications, vol. 18, no. 1, pp. 357-372, Jan 2019."
1820
+ },
1821
+ {
1822
+ "type": "ref_text",
1823
+ "bbox": [
1824
+ 0.081,
1825
+ 0.233,
1826
+ 0.492,
1827
+ 0.255
1828
+ ],
1829
+ "angle": 0,
1830
+ "content": "[3] J. Park, S. Samarakoon, M. Bennis, and M. Debbah, \"Wireless network intelligence at the edge,\" Proceeding of the IEEE, to appear, 2019."
1831
+ },
1832
+ {
1833
+ "type": "ref_text",
1834
+ "bbox": [
1835
+ 0.081,
1836
+ 0.256,
1837
+ 0.492,
1838
+ 0.289
1839
+ ],
1840
+ "angle": 0,
1841
+ "content": "[4] J. Konecný, H. B. McMahan, D. Ramage, and P. Richtárik, \"Federated optimization: Distributed machine learning for on-device intelligence,\" arXiv preprint http://arxiv.org/abs/1610.02527 arXiv:1610.02527, 2016."
1842
+ },
1843
+ {
1844
+ "type": "ref_text",
1845
+ "bbox": [
1846
+ 0.081,
1847
+ 0.289,
1848
+ 0.492,
1849
+ 0.323
1850
+ ],
1851
+ "angle": 0,
1852
+ "content": "[5] M. Chen, H. V. Poor, W. Saad, and S. Cui, \"Convergence time optimization for federated learning over wireless networks,\" arXiv preprint http://arxiv.org/abs/2001.07845 arXiv:2001.07845."
1853
+ },
1854
+ {
1855
+ "type": "ref_text",
1856
+ "bbox": [
1857
+ 0.081,
1858
+ 0.323,
1859
+ 0.492,
1860
+ 0.357
1861
+ ],
1862
+ "angle": 0,
1863
+ "content": "[6] Q. Zeng, Y. Du, K. K. Leung, and K. Huang, \"Energy-efficient radio resource allocation for federated edge learning,\" arXiv preprint http://arxiv.org/abs/1907.06040 arXiv:1907.06040, 2019."
1864
+ },
1865
+ {
1866
+ "type": "ref_text",
1867
+ "bbox": [
1868
+ 0.081,
1869
+ 0.357,
1870
+ 0.492,
1871
+ 0.391
1872
+ ],
1873
+ "angle": 0,
1874
+ "content": "[7] H. H. Yang, Z. Liu, T. Q. S. Quek, and H. V. Poor, \"Scheduling policies for federated learning in wireless networks,\" IEEE Transactions on Communications, to appear, 2019."
1875
+ },
1876
+ {
1877
+ "type": "ref_text",
1878
+ "bbox": [
1879
+ 0.081,
1880
+ 0.391,
1881
+ 0.492,
1882
+ 0.436
1883
+ ],
1884
+ "angle": 0,
1885
+ "content": "[8] N. H. Tran, W. Bao, A. Zomaya, N. Minh N.H., and C. S. Hong, \"Federated learning over wireless networks: Optimization model design and analysis,\" in Proc. of IEEE International Conference on Computer Communications, Paris, France, Apr. 2019."
1886
+ },
1887
+ {
1888
+ "type": "ref_text",
1889
+ "bbox": [
1890
+ 0.081,
1891
+ 0.436,
1892
+ 0.492,
1893
+ 0.47
1894
+ ],
1895
+ "angle": 0,
1896
+ "content": "[9] Y. Pan, C. Pan, Z. Yang, and M. Chen, \"Resource allocation for D2D communications underlaying a NOMA-based cellular network,\" IEEE Wireless Communications Letters, vol. 7, no. 1, pp. 130-133, Feb. 2018."
1897
+ },
1898
+ {
1899
+ "type": "ref_text",
1900
+ "bbox": [
1901
+ 0.074,
1902
+ 0.47,
1903
+ 0.491,
1904
+ 0.504
1905
+ ],
1906
+ "angle": 0,
1907
+ "content": "[10] M. T. Dabiri, H. Safi, S. Parsaeefard, and W. Saad, \"Analytical channel models for millimeter wave UAV networks under hovering fluctuations,\" arXiv preprint http://arxiv.org/abs/1905.01477 arXiv:1905.01477, 2019."
1908
+ },
1909
+ {
1910
+ "type": "ref_text",
1911
+ "bbox": [
1912
+ 0.074,
1913
+ 0.505,
1914
+ 0.491,
1915
+ 0.537
1916
+ ],
1917
+ "angle": 0,
1918
+ "content": "[11] ITU-R, Mathematical models for radiodetermination radar systems antenna patterns for use in interference analyses, Recommendation ITU-R M.1851-1, Jan. 2018."
1919
+ },
1920
+ {
1921
+ "type": "ref_text",
1922
+ "bbox": [
1923
+ 0.074,
1924
+ 0.537,
1925
+ 0.492,
1926
+ 0.583
1927
+ ],
1928
+ "angle": 0,
1929
+ "content": "[12] T. Zeng, M. Mozaffari, O. Semiari, W. Saad, M. Bennis, and M. Debbah, \"Wireless communications and control for swarms of cellular-connected UAVs,\" in Proc. of IEEE Asilomar Conference on Signals, Systems, and Computers, Pacific Grove, CA, USA, Oct. 2018."
1930
+ },
1931
+ {
1932
+ "type": "ref_text",
1933
+ "bbox": [
1934
+ 0.074,
1935
+ 0.583,
1936
+ 0.492,
1937
+ 0.628
1938
+ ],
1939
+ "angle": 0,
1940
+ "content": "[13] J. K. Stolaroff, C. Samaras, E. R. O'Neill, A. S. Mitchell, and D. Ceperley, \"Energy use and life cycle greenhouse gas emissions of drones for commercial package delivery,\" Nature Communications, vol. 9, no. 409, pp. 1-13, Feb. 2018."
1941
+ },
1942
+ {
1943
+ "type": "ref_text",
1944
+ "bbox": [
1945
+ 0.074,
1946
+ 0.629,
1947
+ 0.492,
1948
+ 0.652
1949
+ ],
1950
+ "angle": 0,
1951
+ "content": "[14] D. P. Bertsekas and J. N. Tsitsiklis, Neuro-dynamic programming. Athena Scientific Belmont, MA, 1996, vol. 5."
1952
+ },
1953
+ {
1954
+ "type": "ref_text",
1955
+ "bbox": [
1956
+ 0.074,
1957
+ 0.652,
1958
+ 0.492,
1959
+ 0.697
1960
+ ],
1961
+ "angle": 0,
1962
+ "content": "[15] B. K. Pagnoncelli, S. Ahmed, and A. Shapiro, \"Sample average approximation method for chance constrained programming: theory and applications,\" Journal of optimization theory and applications, vol. 142, no. 2, pp. 399-416, 2009."
1963
+ },
1964
+ {
1965
+ "type": "ref_text",
1966
+ "bbox": [
1967
+ 0.074,
1968
+ 0.697,
1969
+ 0.492,
1970
+ 0.731
1971
+ ],
1972
+ "angle": 0,
1973
+ "content": "[16] W. Yu and R. Lui, “Dual methods for nonconvex spectrum optimization of multicarrier systems,” IEEE Transactions on Communications, vol. 54, no. 7, pp. 1310–1322, July 2006."
1974
+ },
1975
+ {
1976
+ "type": "ref_text",
1977
+ "bbox": [
1978
+ 0.074,
1979
+ 0.731,
1980
+ 0.492,
1981
+ 0.742
1982
+ ],
1983
+ "angle": 0,
1984
+ "content": "[17] Y. Nesterov, Lectures on convex optimization. Springer, 2018, vol. 137."
1985
+ },
1986
+ {
1987
+ "type": "ref_text",
1988
+ "bbox": [
1989
+ 0.074,
1990
+ 0.742,
1991
+ 0.492,
1992
+ 0.787
1993
+ ],
1994
+ "angle": 0,
1995
+ "content": "[18] F. Zhou, Y. Wu, R. Q. Hu, and Y. Qian, \"Computation rate maximization in UAV-enabled wireless-powered mobile-edge computing systems,\" IEEE Journal on Selected Areas in Communications, vol. 36, no. 9, pp. 1927-1941, Sep. 2018."
1996
+ },
1997
+ {
1998
+ "type": "ref_text",
1999
+ "bbox": [
2000
+ 0.074,
2001
+ 0.787,
2002
+ 0.492,
2003
+ 0.821
2004
+ ],
2005
+ "angle": 0,
2006
+ "content": "[19] M. P. Friedlander and M. Schmidt, “Hybrid deterministic-stochastic methods for data fitting,” SIAM Journal on Scientific Computing, vol. 34, no. 3, pp. A1380-A1405, 2012."
2007
+ },
2008
+ {
2009
+ "type": "ref_text",
2010
+ "bbox": [
2011
+ 0.074,
2012
+ 0.821,
2013
+ 0.492,
2014
+ 0.867
2015
+ ],
2016
+ "angle": 0,
2017
+ "content": "[20] M. Chen, Z. Yang, W. Saad, C. Yin, H. V. Poor, and S. Cui, \"A joint learning and communications framework for federated learning over wireless networks,\" arXiv preprint http://arxiv.org/abs/1909.07972 arXiv:1909.07972, 2019."
2018
+ },
2019
+ {
2020
+ "type": "list",
2021
+ "bbox": [
2022
+ 0.074,
2023
+ 0.142,
2024
+ 0.492,
2025
+ 0.867
2026
+ ],
2027
+ "angle": 0,
2028
+ "content": null
2029
+ }
2030
+ ]
2031
+ ]
2002.08xxx/2002.08196/36a27757-1c49-4da1-b5a3-ec1408b5d759_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad5388c1ac0c822802fd741a181094e6de5a261955e88ce2802ee851a30f4dc0
3
+ size 477476
2002.08xxx/2002.08196/full.md ADDED
@@ -0,0 +1,428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Federated Learning in the Sky: Joint Power Allocation and Scheduling with UAV Swarms
2
+
3
+ Tengchan Zeng, Omid Semiari, Mohammad Mozaffari, Mingzhe Chen, Walid Saad, and Mehdi Bennis
4
+
5
+ Abstract—Unmanned aerial vehicle (UAV) swarms must exploit machine learning (ML) in order to execute various tasks ranging from coordinated trajectory planning to cooperative target recognition. However, due to the lack of continuous connections between the UAV swarm and ground base stations (BSs), using centralized ML will be challenging, particularly when dealing with a large volume of data. In this paper, a novel framework is proposed to implement distributed federated learning (FL) algorithms within a UAV swarm that consists of a leading UAV and several following UAVs. Each following UAV trains a local FL model based on its collected data and then sends this trained local model to the leading UAV who will aggregate the received models, generate a global FL model, and transmit it to followers over the intra-swarm network. To identify how wireless factors, like fading, transmission delay, and UAV antenna angle deviations resulting from wind and mechanical vibrations, impact the performance of FL, a rigorous convergence analysis for FL is performed. Then, a joint power allocation and scheduling design is proposed to optimize the convergence rate of FL while taking into account the energy consumption during convergence and the delay requirement imposed by the swarm's control system. Simulation results validate the effectiveness of the FL convergence analysis and show that the joint design strategy can reduce the number of communication rounds needed for convergence by as much as $35\%$ compared with the baseline design.
6
+
7
+ # I. INTRODUCTION
8
+
9
+ Swarms of unmanned aerial vehicles (UAVs) will play an important role in various services ranging from delivery of goods to monitoring [1] and [2]. To deliver those services, UAV swarms will employ machine learning (ML) for executing various tasks such as consensus trajectory planning, target recognition, and localization. However, due to the high altitude and mobility of UAVs, continuous connections between UAVs and ground base stations (BSs) cannot be guaranteed. Hence, using centralized ML approaches to execute learning-related tasks will be challenging, particularly when transmitting a large
10
+
11
+ This research was supported, in part, by the U.S. National Science Foundation under Grants CNS-1739642 and CNS-1941348, and by the Academy of Finland Project CARMA, by the Academy of Finland Project MISSION, by the Academy of Finland Project SMARTER, as well as by the INFOTECH Project NOOR.
12
+
13
+ T. Zeng and W. Saad are with Wireless@VT, Department of Electrical and Computer Engineering, Virginia Tech, Blacksburg, VA, 24061 USA (e-mail: tengchan@vt.edu; walids@vt.edu).
14
+ O. Semiari is with Department of Electrical and Computer Engineering, University of Colorado Colorado Springs, Colorado Springs, CO, 80918 USA (e-mail: osemiari@uccs.edu).
15
+ M. Mozaffari is with Ericsson Research, Santa Clara, CA, 95054 USA (e-mail: mohammad.mozaffari@ericsson.com).
16
+ M. Chen is with Department of Electrical Engineering, Princeton University, Princeton, NJ, 08544 USA (e-mail: mingzhec@princeton.edu).
17
+ M. Dennis is with the Centre for Wireless Communications, University of Oulu, 90014 Oulu, Finland (e-mail:mehdi.bennis@oulu.fi).
18
+
19
+ volume of data over aerial links. Instead, a distributed learning approach would be more apropos [3]. In particular, one can use federated learning (FL) to enable each UAV to perform distributed ML tasks without relying on any centralized BSs [4]. In this case, UAVs do not need to send any raw data to BSs when training learning models.
20
+
21
+ In essence, FL allows each UAV in a swarm to train its learning model based on its own collected data, and it can use the intra-swarm network to share FL parameters related to the learned models with other UAVs. As the learning process proceeds, UAVs in the swarm can reach a consensus on their collective learning tasks, e.g., trajectory planning or target recognition. However, since the updates of the learning models in FL are transmitted over a wireless network, the FL convergence and task consensus for the UAV swarm will inevitably be affected by wireless factors such as transmission delay. Also, due to the high mobility of UAVs, other factors (like wind and mechanical vibrations) can increase the uncertainty of wireless channels by affecting the UAVs' antenna angles which, in turn, will impact the FL convergence.
22
+
23
+ A number of recent works have investigated how wireless communication impacts FL [5]–[7]. For instance, in [5], the authors solve the joint learning, wireless resource allocation, and user selection problem to minimize the FL convergence time while optimizing the FL performance. Also, the work in [6] proposes a strategy for bandwidth allocation and device scheduling to improve the energy efficiency for networks implementing FL. Moreover, [7] studies the impact of different scheduling policies on the performance of FL. While interesting, none of these works in [5]–[7] considers the role of FL in a UAV swarm. Also, due to the high mobility of UAVs and their limited energy, the analysis in [5]–[7] cannot be directly applied for UAV swarms.
24
+
25
+ The main contribution of this paper is a novel framework for enabling FL within a swarm of wireless-connected UAVs. In particular, we first conduct a convergence analysis for FL to show how wireless factors within the UAV swarm impact the convergence of FL. We then determine the convergence round, defined as the minimum number of communication rounds needed to achieve FL convergence. Using this key insight, we formulate an optimization problem that jointly designs the power allocation and scheduling for the UAV swarm network to reduce the FL convergence round. In particular, due to the stringent energy limitations of UAVs, we consider the constraint of the energy consumed by learning, communications, and flying during FL convergence. We also take into account
26
+
27
+ the delay constraint imposed by the control system to guarantee the stability of the UAV swarm. To solve the joint design problem, we use a sample average approximation approach from stochastic programming along with a dual method from convex optimization. To the best of our knowledge, this is the first work that implements FL for the UAV swarm, studies the impact of wireless factors on the convergence of FL, and optimizes the FL convergence by jointly designing power allocation and scheduling of the UAV network. Simulation results validate the convergence analysis of FL and show that the joint design can reduce the convergence round by as much as $35\%$ compared with baselines without the joint design.
28
+
29
+ The rest of the paper is organized as follows. Section II presents the system model for the UAV swarm. Section III analyzes the FL convergence and shows the joint system design. Section IV provides simulation results, and conclusions are drawn in Section V.
30
+
31
+ # II. SYSTEM MODEL
32
+
33
+ Consider a swarm of wirelessly connected autonomous UAVs flying at the same altitude, as shown in Fig. 1(a). The UAV swarm consists of a leader $L$ and a set $\mathcal{I}$ of $I$ followers. Every follower keeps a target distance and speed with the leader. While flying, the UAV swarm collects data and performs FL for data analysis and inference tasks like trajectory planning and cooperative target recognition. Using FL, each follower uses its collected data to train a local FL model and send the parameters related to the learned model to the leading UAV in the uplink, as shown in Fig. 1(a). The leading UAV will integrate all received information to generate a global FL model, and, then, transmit the parameters of the global model to following UAVs over the downlink. Moreover, to guarantee that the followers fly with the same speed while keeping a safe distance, the leading UAV will also broadcast the target spacing information and its speed and heading direction.
34
+
35
+ # A. Federated learning model
36
+
37
+ In the learning model, we assume that UAV $i \in \mathcal{I}$ collects a set $\{\pmb{x}_{i1},\pmb{x}_{i2},\dots,\pmb{x}_{iN_i}\}$ of input data where each collected sample is represented by a vector $\pmb{x}_{in}$ , $n \in \{1,\dots,N_i\}$ that captures the input features and $N_{i}$ is the number of collected samples. We also assume the input sample $\pmb{x}_{in}$ , $n \in \{1,\dots,N_i\}$ , corresponds to a single output $y_{in}$ [4]. The output vector is thereby $\{y_{i1},\dots,y_{iN_i}\}$ for UAV $i$ . We define a vector $\pmb{w}_i$ as the parameters related to the local FL model that is trained by $\{\pmb{x}_{i1},\pmb{x}_{i2},\dots,\pmb{x}_{iN_i}\}$ and $\{y_{i1},\dots,y_{iN_i}\}$ at UAV $i$ . The convergence of the FL training processes requires each local learning vector to converge to a vector $\pmb{w}^*$ which solves the following problem:
38
+
39
+ $$
40
+ \underset {\boldsymbol {w} \in \mathbb {R} ^ {d}} {\arg \min } F (\boldsymbol {w}) = \frac {1}{N} \sum_ {i} ^ {I} \sum_ {n = 1} ^ {N _ {i}} f (\boldsymbol {w}, \boldsymbol {x} _ {i n}, y _ {i n}), \tag {1}
41
+ $$
42
+
43
+ where $N = \sum_{i}^{I}N_{i}$ is the total number of the collected samples by all followers, and $f(\pmb {w},\pmb{x}_{in},y_{in})$ captures the loss function when using learning vector $\pmb{w}$ for dataset $\{\pmb {x}_{in},y_{in}\}$ . Note that, the loss function $f(\pmb {w},\pmb{x}_{in},y_{in}),i\in \mathcal{I},0\leq n\leq N_i,$
44
+
45
+ ![](images/56d45f43e204b171ef87a2bb14d6dbde9f1ed2fd7efef56ae10faca062d78ebf.jpg)
46
+ (a) Communication and learning models.
47
+
48
+ ![](images/532aa106c947b40349baa42189c3b1f0f2989912d8c82bd93117fbbc95e83a61.jpg)
49
+ (b) Angle deviations and control system.
50
+ Fig. 1. Illustration of our system model.
51
+
52
+ plays a pivotal role in determining the FL performance, and the expression of the loss function is application-specific. For example, for a simple linear regression FL algorithm, $f(\boldsymbol{w}, \boldsymbol{x}_{in}, y_{in}) = (\boldsymbol{w}^T \boldsymbol{x}_{in} - y_{in})^2$ .
53
+
54
+ To solve (1), the FL framework uses an iterative update scheme [4]. In particular, the leading UAV will first generate an initial global FL model represented by vector $\boldsymbol{w}^{(0)}$ and send the initial vector to all followers. Hence, in the first communication round, follower $i\in \mathcal{I}$ will first use $\boldsymbol{w}^{(0)}$ for its own data to train the local model and, then, it sends the vector of the trained model to the leader. Next, the leading UAV will aggregate all received local FL vectors and update the global FL model vector which will be later transmitted to the followers. Each communication round will be followed by another round, and the same process will repeat among leader and followers in each round. In this case, as FL proceeds, the local and global models are sequentially updated, and the total loss $F(\boldsymbol {w})$ for the updated global model with vector $\boldsymbol{w}$ will continuously decrease [4]. To identify whether the optimal solution is found for (1), one must analyze the convergence of the loss function $F(\boldsymbol {w})$ to $F(\boldsymbol {w}^{*})$ . That is, when the gap between the current loss $F(\boldsymbol {w})$ and the minimal loss $F(\boldsymbol {w}^{*})$ is below a threshold $\varepsilon$ , the FL optimization problem is solved [8]. Therefore, we can use the convergence of $F(\boldsymbol {w})$ to $F(\boldsymbol {w}^{*})$ to quantify the FL performance.
55
+
56
+ Moreover, for each communication round, we can divide the total time duration $T_{r}$ into two periods: Uplink and downlink transmission. In particular, to guarantee that the leading UAV has enough time to process all received models from its followers, all uplink transmissions should be completed within a target time $T_{u}(\beta) = \beta T_{r}$ , where $\beta \in \{0,1\}$ is a scheduling parameter to schedule uplink-downlink traffic in time. Also, to receive the global FL model update from the leading UAV successfully, the time constraint for downlink transmissions is thereby $T_{d}(\beta) = (1 - \beta)T_{r}$ . In this case, if the communication
57
+
58
+ link between follower $i \in \mathcal{I}$ and leader $L$ fails to meet the time constraints $T_{d}(\beta)$ and $T_{u}(\beta)$ , the global FL model cannot use the corresponding FL model for the aggregation. At the same time, for the local FL model, the following UAV cannot use the recently updated global vector to train its local data. In other words, the transmission delay of the uplink and downlink links will impact the update of the global and local FL models thus having a major impact on FL convergence.
59
+
60
+ In addition, when training the global FL model, we can calculate the energy consumption for the UAV $L$ as $E_{L} = \kappa C\phi^{2}\sum_{i=1}^{I}S(\pmb{w}_{i})$ , where $\kappa$ captures the energy consumption coefficient depending on the computing system and $C$ is the number of computing cycles needed per data bit [9]. $\phi$ is the frequency of the CPU clock of UAVs, and $S(\pmb{w}_{i})$ is the packet size of $\pmb{w}_{i}$ , transmitted from UAV $i \in \mathcal{I}$ , in bits. Similarly, we can determine the training energy consumption for follower $i \in \mathcal{I}$ as $E_{i} = \kappa C\phi^{2}\sum_{n=1}^{N_{i}}S(\pmb{x}_{in})$ .
61
+
62
+ # B. Communication model
63
+
64
+ To minimize the interference from other UAVs located outside of the swarm, we assume that all UAVs use directional antennas, as shown in Fig. 1(a), However, as shown in Fig. 1(b), due to the impact of wind, payload, and non-ideal mechanical and control systems, the angle of the UAVs will randomly fluctuate and deviate from the initial angle setting. Based on the central limit theorem, we model the angle deviation for each UAV as a Gaussian random variable [10]. Moreover, we consider a squared cosine function to capture the antenna aperture of UAV $j \in \mathcal{I} \cup \{L\}$ when communicating with UAV $l \in \mathcal{I} \cup \{L\} / j$ as follows [11]:
65
+
66
+ $$
67
+ G _ {j l} \left(\theta_ {j l} + \vartheta_ {j}\right) = \left\{ \begin{array}{c c} \cos^ {2} \left(\frac {\pi}{2} \left(\theta_ {j l} + \vartheta_ {j}\right)\right), & \text {i f} | \theta_ {j l} + \vartheta_ {j} | \leq 1, \\ G _ {\min }, & \text {o t h e r w i s e}, \end{array} \right. \tag {2}
68
+ $$
69
+
70
+ where $\theta_{jl}$ is the initial angle setting for UAV $j$ when communicating with UAV $l$ , $\vartheta_{j} \sim \mathcal{N}(0, \sigma_{j}^{2})$ is the angle deviation with variance $\sigma_{j}^{2}$ , and $G_{\mathrm{min}}$ captures the antenna gain at the side lobes. Also, similar to [10], we can approximate (2) by using a sectionalized expression:
71
+
72
+ $$
73
+ G _ {j l} \left(\theta_ {j l} + \vartheta_ {j}, M\right) = \left\{ \begin{array}{c c} \cos^ {2} \left(\frac {\pi m}{2 M}\right), & \text {i f} \frac {m}{M} \leq \left| \theta_ {j l} + \vartheta_ {j} \right| \leq \frac {m + 1}{M}, \\ G _ {\min }, & \text {o t h e r w i s e}, \end{array} \right. \tag {3}
74
+ $$
75
+
76
+ where $m\in \{1,\dots,M\}$
77
+
78
+ To reduce the interference over the uplink transmissions, we assume that uplinks do not share the wireless resource with each other. Hence, the transmission delay of the uplink between follower $i \in \mathcal{I}$ and leader $L$ can be calculated as
79
+
80
+ $$
81
+ T _ {i L} = \frac {S (\boldsymbol {w} _ {i})}{B _ {u} \log_ {2} \left(1 + \frac {p _ {i} h _ {i L} d _ {i L} ^ {- \alpha} G _ {i L} G _ {L i}}{\sum_ {i ^ {\prime} \in \Phi_ {i}} p _ {i ^ {\prime}} h _ {i ^ {\prime} L} d _ {i ^ {\prime} L} ^ {- \alpha} G _ {i ^ {\prime} L} G _ {L i ^ {\prime}} + B _ {u} \gamma_ {0}}\right)}, \tag {4}
82
+ $$
83
+
84
+ where $B_{u}$ is the bandwidth used by each subchannel in the uplink, $p_i\in (0,p_{\mathrm{max}})$ is the transmission power of UAV $i$ with maximum power as $p_{\mathrm{max}}$ and $\alpha$ is the path-loss exponent. $h_{iL}$ is the channel gain of the Rician fading channel between UAVs $i$ and $L$ ,and $\gamma_0$ is the noise power spectral density. Note that, despite the use of directional antenna, the swarm still experiences uplink interference generated by UAVs located
85
+
86
+ outside of the swarm. In particular, these interfering UAVs share the same channel resource and exist in the main lobe of the UAV $L$ , and we define $\Phi_{i}$ as the set of UAVs that generates interference to the uplink from UAV $i$ to UAV $L$ .
87
+
88
+ Similarly, we can derive the transmission delay $T_{Li}$ for the downlink from UAV $L$ to UAV $i \in \mathcal{I}$ as:
89
+
90
+ $$
91
+ T _ {L i} = \frac {S (\boldsymbol {w})}{B _ {d} \log_ {2} \left(1 + \frac {p _ {L} h _ {L i} d _ {L i} ^ {- \alpha} G _ {L i} G _ {i L}}{\sum_ {i ^ {\prime} \in \Phi_ {L}} p _ {i ^ {\prime}} h _ {i ^ {\prime} i} d _ {i ^ {\prime} i} ^ {- \alpha} G _ {i ^ {\prime} i} G _ {i i ^ {\prime}} + B _ {d} \gamma_ {0}}\right)}, \tag {5}
92
+ $$
93
+
94
+ where $B_{d}$ is the downlink bandwidth, $p_L \in (0, p_{\mathrm{max}})$ is the transmission power of UAV $L$ , and $\Phi_L$ refers to the set of UAVs that will generate interference at the downlink.
95
+
96
+ # C. Control model
97
+
98
+ To guarantee constant speed and altitude and avoid collisions between UAVs within the swarm, the leading UAV will broadcast its speed and heading direction to the followers in the downlink. Here, the control system of each follower will use both its sensor data (e.g. location) and information received from the wireless links to coordinate its movement and achieve a target spacing and speed. Note that the target distance between the UAV leader and each follower is predefined such that there will be no collision between two nearby UAVs.
99
+
100
+ Similar to our previous work in [12], we can build a Cartesian coordinate system to capture the locations of UAVs in the swarm, and, then, we decompose the velocity of each UAV into two components, as shown in Fig. 1(b). We can also define the control law of each UAV the same way as the one provided in [12]. Since the transmission delay will have a negative impact on the stability control of the UAV swarm, we must consider the delay requirement imposed by the control system when designing the UAV network.
101
+
102
+ In addition, in order to fly with a constant speed and maintain a stable flying motion, each UAV must spend energy to overcome the gravity and the air drag forces due to the wind and forward motions. For a forward speed $v \in (0, v_{\max})$ with $v_{\max}$ as the maximum speed, the minimum flying power of UAV $j \in \mathcal{I} \cup \{L\}$ is $\bar{p}_{j,\min}(v) = \hat{v}_j A_j$ , where $\hat{v}_j$ is the induced velocity required for constant speed $v$ and given thrust $A_j = mg$ with $m$ being the UAV mass and $g$ being the gravitational constant [13]. Also, the induced velocity $\hat{v}_j$ can be obtained by solving the following equation [13]:
103
+
104
+ $$
105
+ \hat {v} _ {j} = \frac {2 A _ {j}}{q r ^ {2} \pi \varrho \sqrt {v ^ {2} + \hat {v} _ {j} ^ {2}}}, \tag {6}
106
+ $$
107
+
108
+ where $q$ and $r$ capture, respectively, the number and diameter of the UAV rotors, and $\varrho$ is the air density. Moreover, we can further correct the theoretical minimum motion power consumption by the overall power efficiency $\eta$ of the UAV in order to obtain the actual power consumption as $\bar{p}_j(v) = \bar{p}_{j,\min}(v) / \eta$ . Since the control of a UAV's dynamic motion consumes the most energy [13], we must consider the flying energy consumption when designing the swarm of UAVs. In particular, the flying energy consumption can be calculated as $\bar{p}_j(v)T$ during the flying time $T$ .
109
+
110
+ To guarantee the convergence of FL and the stable operation of the control system in the UAV swarm, we need to properly
111
+
112
+ design the wireless communication network. At the same time, to guarantee that the energy spent on learning, communication, and flying will not exceed the energy limitation of each UAV, we need to consider the energy consumption during the FL convergence. Next, we first conduct the convergence analysis for the FL algorithm and derive the number of communication rounds needed to achieve the FL convergence. Then, we formulate an optimization problem that jointly designs the power allocation and scheduling policy to minimize the convergence round of FL while considering the delay requirement from the control system and energy consumption during the FL convergence.
113
+
114
+ # III. CONVERGENCE ANALYSIS AND JOINT DESIGN
115
+
116
+ # A. FL convergence analysis
117
+
118
+ In order to guarantee FL convergence, we assume that the following UAVs adopt a standard gradient descent method to update their local FL models [4]. Thus, for following UAV $i \in \mathcal{I}$ , the local model $\boldsymbol{w}_i^{(t)}$ at communication round $t$ is given by
119
+
120
+ $$
121
+ \boldsymbol {w} _ {i} ^ {(t)} = \boldsymbol {w} ^ {(t - 1)} - \frac {\bar {\lambda}}{N _ {i}} \nabla F _ {i} (\boldsymbol {w} ^ {(t - 1)}), \tag {7}
122
+ $$
123
+
124
+ where $\pmb{w}^{(t - 1)}$ is the global FL model at communication round $t - 1$ , $\bar{\lambda}$ is the learning rate, and $F_{i}(\pmb{w}^{(t - 1)}) = \sum_{n = 1}^{N_{i}}f(\pmb{w}^{(t - 1)},\pmb{x}_{in},y_{in})$ . After the leading UAV collects local vectors $\pmb{w}_i^{(t)}, i\in \mathcal{I}$ , the global FL model can be updated:
125
+
126
+ $$
127
+ \boldsymbol {w} ^ {(t)} = \frac {\sum_ {i = 1} ^ {I} N _ {i} \boldsymbol {w} _ {i} ^ {(t)}}{\sum_ {i = 1} ^ {I} N _ {i}}. \tag {8}
128
+ $$
129
+
130
+ However, for ensuring successful updates of both global and local FL models as shown in (7) and (8), the transmission delay of uplink and downlink should be within, respectively, $T_{u}(\beta)$ and $T_{d}(\beta)$ . Hence, after considering the impact of the transmission delays, we can rewrite the global FL model update as
131
+
132
+ $$
133
+ \boldsymbol {w} ^ {(t)} = \frac {\sum_ {i = 1} ^ {I} N _ {i} \boldsymbol {w} _ {i} ^ {(t)} C _ {i , t}}{\sum_ {i = 1} ^ {I} N _ {i} C _ {i , t}}, \tag {9}
134
+ $$
135
+
136
+ with
137
+
138
+ with $C_{i,t} = \left\{ \begin{array}{ll}1, & \mathrm{with~probability~}\mathbb{P}(T_{iL,t}\leq T_u(\beta),T_{Li,t}\leq T_d(\beta)),\\ 0, & \mathrm{otherwise.} \end{array} \right.$
139
+
140
+ With the aim of quantifying the convergence of FL, we use the notion of a convergence round, defined as the minimum number of communication rounds needed to achieve a target difference $\varepsilon$ of the expected gap between current loss and the minimal loss, i.e., $\mathbb{E}(F(\boldsymbol{w}) - F(\boldsymbol{w}^{*})) \leq \varepsilon$ . Moreover, to determine the convergence round, we make the following two standard assumptions: Function $F(\boldsymbol{w})$ : $\mathbb{R}^n \to \mathbb{R}$ is continuously differentiable, and the gradient of $F(\boldsymbol{w})$ is uniformly Lipschitz continuous with positive parameter $U$ . We also consider the function $F$ to be strongly convex with positive parameter $\mu$ , and these exists constants $\zeta_1 \geq 0$ and $\zeta_2 \geq 1$ , meeting $||\nabla F_i(\boldsymbol{w})||^2 \leq \zeta_1 + \zeta_2||\nabla F(\boldsymbol{w})||^2$ [14]. Given the above assumptions, we can derive the convergence round.
141
+
142
+ Theorem 1. To realize an expected convergence of $F(\boldsymbol{w})$ under an accuracy threshold $\varepsilon$ , i.e., $\mathbb{E}(F(\boldsymbol{w}) - F(\boldsymbol{w}^{*})) \leq \varepsilon$ ,
143
+
144
+ the convergence round is given by:
145
+
146
+ $$
147
+ \varphi = \left[ \log_ {1 - \rho} \frac {\varepsilon}{\sum_ {i = 1} ^ {I} \sum_ {n = 1} ^ {N _ {i}} f (\boldsymbol {w} ^ {(0)} , \boldsymbol {x} _ {i n} , y _ {i n})} \right], \tag {10}
148
+ $$
149
+
150
+ where $\lceil \cdot \rceil$ is the ceiling function, and $\rho$ captures the convergence speed given as follows
151
+
152
+ $$
153
+ \rho = \frac {\sum_ {i = 1} ^ {T} N _ {i} \mathbb {P} \left(T _ {i L , t} \leq T _ {u} (\beta) , T _ {L i , t} \leq T _ {d} (\beta)\right) \mu}{N U}. \tag {11}
154
+ $$
155
+
156
+ Proof: Due to the space limitation, the proof is included in Appendix A.
157
+
158
+ As shown in Theorem 1, the convergence performance of FL depends on the transmission delay of both uplink and downlink in the network. In particular, to increase the convergence speed, we need to maximize the probability that both uplink and downlink meet the corresponding delay requirements of FL. Thus, Theorem 1 provides a concrete characterization of the interplay between wireless communications and FL performance in a UAV swarm.
159
+
160
+ For the stability analysis of the control system, we will follow the method provided by our previous work in [12]. That is, we first build the augmented error state vector. Then, we use Lyapunov-Razumikhin theorem to derive the control system delay requirements $\tau_{i}, i \in \mathcal{I}$ , for downlink that can guarantee the stability of the UAV swarm.
161
+
162
+ # B. Problem formulation and solution concept
163
+
164
+ Here, we formulate an optimization problem to minimize the convergence round by jointly designing the power allocation and scheduling for the UAV network, as follows:
165
+
166
+ $$
167
+ \min _ {\left\{\boldsymbol {p}, p _ {L}, \beta , v \right\}} \varphi \tag {12}
168
+ $$
169
+
170
+ $$
171
+ \mathrm {s . t .} \mathbb {P} \left[ \varphi E _ {L} + \varphi p _ {L} T _ {d} (\beta) + \varphi \bar {p} _ {L} (v) T _ {r} \leq \bar {E} \right] \geq \xi_ {L}, \tag {13}
172
+ $$
173
+
174
+ $$
175
+ \mathbb {P} \left[ \varphi E _ {i} + \varphi p _ {i} T _ {i L} + \varphi \bar {p} _ {i} (v) T _ {r} \leq \bar {E} \right] \geq \xi_ {i}, i \in \mathcal {I}, \tag {14}
176
+ $$
177
+
178
+ $$
179
+ \mathbb {P} \left(T _ {L i} \leq \tau_ {i}\right) \geq \xi_ {C}, i \in \mathcal {I}, \tag {15}
180
+ $$
181
+
182
+ $$
183
+ p _ {L} \in (0, p _ {L, \max }, p _ {i} \in (0, p _ {i, \max }), i \in \mathcal {I}, \tag {16}
184
+ $$
185
+
186
+ $$
187
+ \beta \in (0, 1), v \in (0, v _ {\max }) \tag {17}
188
+ $$
189
+
190
+ where vector $\pmb{p} = [p_1, \dots, p_I]$ . Constraint (13) guarantees that the probability of total energy consumption for the leading UAV being less than a threshold $\bar{E}$ will be greater than $\xi_L \in (0, 1)$ . Similarly to (13), constraint (14) represents the constraint on energy consumption of each follower $i \in \mathcal{I}$ . Constraint (15) guarantees that the UAV communication network is reliable to support the stability of the swarm with probability $\xi_C$ . Constraints (16) and (17) ensure that the optimization variables, i.e., the transmission power, scheduling parameter, and velocity, are chosen within reasonable ranges. Note that, in the optimization problem, we also optimize the operation speed of the UAV swarm to minimize the motion energy consumption and relax the energy constraints in (13) and (14).
191
+
192
+ Since both exponent and base in the logarithm function (10) are less than 1, minimizing the logarithm function in (12) is
193
+
194
+ equivalent to minimizing the base for the constant exponent. Also, according to (11), we can simplify (12) as
195
+
196
+ $$
197
+ \max _ {\left\{\boldsymbol {p}, p _ {L}, \beta , v \right\}} \sum_ {i = 1} ^ {I} N _ {i} \mathbb {P} \left(T _ {i L, t} \leq T _ {u} (\beta), T _ {L i, t} \leq T _ {d} (\beta)\right). \tag {18}
198
+ $$
199
+
200
+ We observe that, after simplifications, both objective function and constraints are represented by probability terms. In this case, directly deriving the probability terms will be challenging since it requires multidimensional integrations. Also, as the optimization problem is not convex, employing convex approximations to simplify the optimization problem will be impossible. Instead, we use a sample average approximation approach where the probability terms in the objective function and constraints are replaced by an empirical distribution found by random samples [15]. In particular, we first generate $K$ independent samples of the random parameters, i.e., wireless channel gains and angle deviations, and we calculate the corresponding transmission delay and convergence round. Then, we can reformulate the optimization problem as
201
+
202
+ $$
203
+ \max _ {\left\{\boldsymbol {p}, p _ {L}, \beta , v \right\}} \sum_ {i = 1} ^ {I} \sum_ {k = 1} ^ {K} N _ {i} \mathbb {1} \left(T _ {u} (\beta) - T _ {i L, k}\right) \mathbb {1} \left(T _ {d} (\beta) - T _ {L i, k}\right) \tag {19}
204
+ $$
205
+
206
+ $$
207
+ \text {s . t .} \sum_ {k = 1} ^ {K} \mathbb {1} \left(\bar {E} - \left(\varphi_ {k} E _ {L} + \varphi_ {k} p _ {L} T _ {d} (\beta) + \varphi_ {k} \bar {p} _ {L} (v) T _ {r}\right)\right) \geq K \xi_ {L}, \tag {20}
208
+ $$
209
+
210
+ $$
211
+ \sum_ {k = 1} ^ {K} \mathbb {1} \left(\bar {E} - \left(\varphi_ {k} E _ {i} + \varphi_ {k} p _ {i} T _ {i L, k} + \varphi_ {k} \bar {p} _ {i} (v) T _ {r}\right)\right) \geq K \xi_ {i}, i \in \mathcal {I}, \tag {21}
212
+ $$
213
+
214
+ $$
215
+ \sum_ {k = 1} ^ {K} \mathbb {1} \left(\tau_ {i} - T _ {L i, k}\right) \geq K \xi_ {C}, i \in \mathcal {I}, \tag {22}
216
+ $$
217
+
218
+ (16) and (17),
219
+
220
+ where the indicator function $\mathbb{1}(r) = 1$ , once $r \geq 0$ ; otherwise, we have $\mathbb{1}(r) = 0$ . Due to the presence of the indicator function, the reformulated problem is non-smooth. To obtain a smooth problem, we can further replace the indicator functions with modified sigmoid functions, i.e., $\Gamma(r) = \frac{1}{1 + \exp(-\bar{c}r)}$ , where $\bar{c}$ determines how quickly the modified sigmoid function changes near 0. To obtain a sub-optimal solution to the reformulated optimization problem with the indicator functions replaced by the modified sigmoid functions, we can use the dual method [16]. In particular, the Lagrangian function is
221
+
222
+ $$
223
+ \mathcal {J} (\boldsymbol {\lambda}, \boldsymbol {p}, p _ {L}, \beta , v) = \sum_ {i = 1} ^ {I} \sum_ {k = 1} ^ {K} N _ {i} \Gamma (T _ {u} (\beta) - T _ {i L, k}) \Gamma (T _ {d} (\beta) - T _ {L i, k}) +
224
+ $$
225
+
226
+ $$
227
+ \lambda_ {1} \left(\sum_ {k = 1} ^ {K} \Gamma \left(\bar {E} - \left(\varphi_ {k} E _ {L} + \varphi_ {k} p _ {L} T _ {d} (\beta) + \varphi_ {k} \bar {p} _ {L} (v) T _ {r}\right)\right) - K \xi_ {L}\right) +
228
+ $$
229
+
230
+ $$
231
+ \sum_ {i = 1} ^ {I} \lambda_ {i + 1} \left(\sum_ {k = 1} ^ {K} \Gamma \left(\bar {E} - \left(\varphi_ {k} E _ {i} + \varphi_ {k} p _ {i} T _ {i L, k} + \varphi_ {k} \bar {p} _ {i} (v) T _ {r}\right)\right) - K \xi_ {i}\right) +
232
+ $$
233
+
234
+ $$
235
+ \sum_ {i = 1} ^ {I} \lambda_ {I + 1 + i} \left(\sum_ {k = 1} ^ {K} \Gamma \left(\tau_ {i} - T _ {L i, k}\right) - K \xi_ {C}\right), \tag {23}
236
+ $$
237
+
238
+ where vector $\pmb{\lambda} = [\lambda_1, \dots, \lambda_{2I + 1}] \succeq \mathbf{0}_{1 \times (2I + 1)}$ is the vector
239
+
240
+ Table. I. Simulation parameters.
241
+
242
+ <table><tr><td>Parameters</td><td>Values</td></tr><tr><td>Number of followers I</td><td>5</td></tr><tr><td>Transmission power threshold pmax</td><td>0.5 W</td></tr><tr><td>Maximum speed vmax</td><td>20 m/s [18]</td></tr><tr><td>Energy consumption efficient κ</td><td>10-28 [18]</td></tr><tr><td>Number of cycles needed per bit C</td><td>103 [18]</td></tr><tr><td>Frequency of the CPU φ</td><td>109cycle/s</td></tr><tr><td>Time for each communication round Tr</td><td>0.1 s</td></tr><tr><td>Side lobe gain Gmin, path loss exponent α</td><td>-2 dB, 2.5</td></tr><tr><td>Noise spectral density γ0</td><td>-174 dBm/Hz</td></tr><tr><td>Packet size Sw and Swi</td><td>10 kB</td></tr><tr><td>Number of rotors q and the diameter r</td><td>4, 0.254 m [4]</td></tr><tr><td>Power efficiency η and density ρ of the air</td><td>70 %, 1.225 kg/m3 [4]</td></tr><tr><td>Number of samples K, Energy limits E</td><td>1,000, 7,000 J</td></tr></table>
243
+
244
+ of Lagrangian multipliers, and the dual objective function can be defined as $\mathcal{D}(\pmb{\lambda}) = \max_{\pmb{p}, p_L, v, \beta} \mathcal{J}(\pmb{\lambda}, \pmb{p}, p_L, \beta, v)$ . The corresponding dual optimization problem is
245
+
246
+ $$
247
+ \min _ {\boldsymbol {\lambda}} \mathcal {D} (\boldsymbol {\lambda}) \quad \text {s . t .} \boldsymbol {\lambda} \geq \mathbf {0}. \tag {24}
248
+ $$
249
+
250
+ Although the dual problem in (24) is always convex [17], $\mathcal{D}(\lambda)$ is not differentiable. Instead, we can use subgradients given by
251
+
252
+ $$
253
+ \Delta \lambda_ {1} = \sum_ {k = 1} ^ {K} \Gamma \left(\bar {E} - \left(\varphi_ {k} ^ {*} E _ {L} + \varphi_ {k} ^ {*} p _ {L} T _ {d} ^ {*} + \varphi_ {k} ^ {*} \bar {p} _ {L} ^ {*} T _ {r}\right)\right) - K \xi_ {L},
254
+ $$
255
+
256
+ $$
257
+ \Delta \lambda_ {i + 1} = \sum_ {k = 1} ^ {K} \Gamma \left(\bar {E} - \left(\varphi_ {k} ^ {*} E _ {i} + \varphi_ {k} ^ {*} p _ {i} ^ {*} T _ {i L, k} ^ {*} + \varphi_ {k} ^ {*} \bar {p} _ {i} ^ {*} T _ {r}\right)\right) - K \xi_ {i}, i \in \mathcal {I},
258
+ $$
259
+
260
+ $$
261
+ \Delta \lambda_ {I + 1 + i} = \sum_ {k = 1} ^ {K} \Gamma \left(\tau_ {i} - T _ {L i, k} ^ {*}\right) - K \xi_ {C}, i \in \mathcal {I}, \tag {25}
262
+ $$
263
+
264
+ where the terms $\varphi_k^*, T_d^*, T_{iL,k}^*, T_{Li,k}^*, \bar{p}_L^*, \bar{p}_i^*$ are expressed by optimized variables $p^*, p_L^*, \beta^*, v^*$ . The proof of subgradients is similar to the one provided in [16], and is omitted here. Thereby, we can solve the problem in (24) by either the subgradient method or the ellipsoid method, and their complexities are, respectively, $\mathcal{O}\left(\frac{2I + 1}{\epsilon^2}\right)$ and $\mathcal{O}\left((2I + 1)^2 \ln \frac{1}{\epsilon}\right)$ with accuracy $\epsilon$ [17]. Then, the sub-optimal solution of $\{\pmb{p}, p_L, \beta, v\}$ can be obtained by solving dual objective function $\mathcal{D}(\lambda)$ . In particular, similar to [16], we use the iterative method to sequentially derive the sub-optimal value of each element in $\{\pmb{p}, p_L, \beta, v\}$ (the details are omitted here due to space limitations). Note that, we assume that all these steps of solving the optimization problem are done by a central unit (e.g., cloud or BS), before the swarm starts training their learning models in FL. In particular, there is no need for the central unit to collect any information from UAVs, since all samples of wireless channel gains and antenna deviations are randomly generated by the central unit itself. Also, since the number of UAVs in the swarm is usually small, the complexity of using sample average approximation and dual approach will be low. As a result, the central unit can readily obtain the sub-optimal solution to the joint design problem and later send the power allocation and scheduling parameters to UAVs in the swarm.
265
+
266
+ # IV. SIMULATION RESULTS AND ANALYSIS
267
+
268
+ For our simulations, we first validate the theoretical analysis in Theorem 1. Then, we show the impact of angle deviations on the convergence of FL, and we compare our joint design with baseline schemes that optimize power allocation and schedul
269
+
270
+ ![](images/d48332a15ab16294fc429fd8db6df0fd8d11ab440b33f32abda4c4400b076a11.jpg)
271
+ Fig. 2. Validation of Theorem 1.
272
+
273
+ ing separately. In particular, we consider two baselines. The first baseline is a system with optimized power allocation (same power allocation in the joint design) and randomized scheduling parameters. The second baseline is a system with optimized scheduling (same scheduling used by the joint design) and randomized power allocation. We also assume equal uplink and downlink bandwidths, i.e., $B_{u} = B_{d} = 1 \mathrm{MHz}$ , and equal angle deviation variance for each UAV, i.e., $\sigma_j^2 = \sigma^2$ , $j \in \mathcal{I} \cup \{L\}$ . All simulation parameters are summarized in Table I.
274
+
275
+ Fig. 2 shows the convergence round versus the difference threshold $\varepsilon$ . Note that, in Fig. 2, we choose the range of $\varepsilon \in (5, 25)$ based on the value of $\sum_{i=1}^{I} \sum_{n=1}^{N_i} f(\boldsymbol{w}_0, \boldsymbol{x}_{in}, y_{in})$ and the range of $\varepsilon$ will be varied for different settings of data and initial global FL model and the accuracy requirement. As observed from Fig. 2, the theoretical analysis derived in Theorem 1 is aligned with the simulation results with less than $5\%$ difference, thus corroborating the validity of Theorem 1. Moreover, Fig. 2 shows that, when the difference threshold increases, the convergence round decreases. This is because, with a larger difference threshold, the requirement of convergence becomes less stringent. In this case, FL requires fewer communication rounds to converge.
276
+
277
+ Fig. 3 shows the convergence round when the variance of angle deviations changes. From Fig. 3, we observe that, when the variance of angle deviations increases, FL needs more communication rounds to converge. This is due to the fact that, when the angle deviation variance increases, the antennas at transmitter and receiver in the network will be less aligned, leading to a drop in the antenna gains' product between transmitter and receiver in (4) and (5). As a result, the transmission delay of wireless links will increase, and the probability of meeting the delay requirements, i.e., $\mathbb{P}(T_{iL,t} \leq T_u, T_{Li,t} \leq T_d)$ , decreases. Therefore, more communication rounds are needed to achieve the FL convergence. Moreover, as shown in Fig. 3, when the bandwidth allocated to uplink and downlink increases, the FL algorithm requires fewer communication rounds to achieve convergence. This stems from the fact that, a large bandwidth improves the probability of meeting the delay requirements, yielding a fast FL convergence.
278
+
279
+ Fig. 4 compares our proposed joint power allocation and scheduling design with the baselines without a joint design. It
280
+
281
+ ![](images/9354308eb292f13f5eb1cbce4825b37a3fc2f50ff64a3d3ee2fef09a4608e1b9.jpg)
282
+ Fig. 3. Impact of angle deviations on the FL convergence.
283
+
284
+ ![](images/98d46815a2e58e129133ac172afe0dc66d6f03182f512840f7e8d36b11a7477b.jpg)
285
+ Fig. 4. Comparisons between systems with and without joint design.
286
+
287
+ is shown that, for the same network setting, the convergence round for a network with joint design is always less than its counterparts of baselines. In particular, when the bandwidth is $1\mathrm{MHz}$ , the system with a joint design reduces the convergence round by as much as $35\%$ compared with the baseline system with optimized scheduling and randomized power allocation design. Moreover, as shown in Fig. 4, when the bandwidth assigned to uplink and downlink increases, the performance gap between the system with the proposed joint design and the baselines decreases. That is because, as we increase the bandwidth, it becomes more probable for all three systems to meet the delay constraints at uplink and downlink. Therefore, the impact of communications delay on the FL convergence will be minimized.
288
+
289
+ # V. CONCLUSIONS
290
+
291
+ In this paper, we have studied the possibility of implementing FL over a swarm of UAVs. In particular, we have carried out a convergence analysis to study the impact of wireless factors, such as transmission delay and antenna angle deviations, on the convergence of FL. Using the derived insight, we have jointly designed the power allocation and scheduling policy for the UAV swarm to optimize the convergence performance of FL while guaranteeing the stability of control system and controlling the energy consumption. Simulation results have corroborated the convergence analysis of FL and showed the merits of the proposed joint design.
292
+
293
+ # APPENDIX
294
+
295
+ # A. Proof of Theorem 1
296
+
297
+ According to the assumptions about function $F(\pmb{w}) : \mathbb{R}^n \to \mathbb{R}$ made in Section III, we know that function $F(\pmb{w})$ is continuously differentiable, and the gradient of $F(\pmb{w})$ is uniformly Lipschitz continuous, i.e., for some positive parameter $U$ , $||\nabla F(\pmb{w}^{(t + 1)}) - \nabla F(\pmb{w}^{(t)})|| \leq U||\pmb{w}^{(t + 1)} - \pmb{w}^{(t)}||$ ; the function $F$ is strongly convex with positive parameter $\mu$ : $F(\pmb{w}^{(t + 1)}) \geq F(\pmb{w}^{(t)}) + (\pmb{w}^{(t + 1)} - \pmb{w}^{(t)})^T\nabla F(\pmb{w}^{(t)}) + \frac{1}{2}\mu ||\pmb{w}^{(t + 1)} - \pmb{w}^{(t)}||$ . If $F$ is twice-continuously differentiable, these two assumptions are equivalent to $\mu I \leq \nabla^2 F(\pmb{w}) \leq UI$ . Also, following a standard assumption in stochastic optimization, we consider that there exists constants $\zeta_1 \geq 0$ and $\zeta_2 \geq 1$ , meeting $||\nabla F_i(\pmb{w})||^2 \leq \zeta_1 + \zeta_2||\nabla F(\pmb{w})||^2$ [14].
298
+
299
+ In this case, since the global FL model is the aggregation of all local FL models, the global FL model without the impact of the transmission delay can be given as
300
+
301
+ $$
302
+ \boldsymbol {w} ^ {(t)} = \frac {\sum_ {i = 1} ^ {I} N _ {i} \boldsymbol {w} _ {i} ^ {(t)}}{\sum_ {i = 1} ^ {I} N _ {i}} = \boldsymbol {w} ^ {(t - 1)} - \lambda \nabla F (\boldsymbol {w} ^ {(t - 1)}). \tag {26}
303
+ $$
304
+
305
+ After taking into account the impact of transmission delays, we can rewrite the global FL model update as
306
+
307
+ $$
308
+ \boldsymbol {w} ^ {(t)} = \frac {\sum_ {i = 1} ^ {I} N _ {i} \boldsymbol {w} _ {i} ^ {(t)} C _ {i , t}}{\sum_ {i = 1} ^ {I} N _ {i} C _ {i , t}} = \boldsymbol {w} ^ {(t - 1)} - \lambda (\nabla F (\boldsymbol {w} ^ {(t - 1)}) + e ^ {(t)}),
309
+ $$
310
+
311
+ where $e^{(t)} = -\nabla F(\pmb{w}^{(t-1)}) + \frac{\sum_{i=1}^{I} N_i \nabla F_i(\pmb{w}^{(t-1)}) C_{i,t}}{\sum_{i=1}^{I} N_i C_{i,t}}$ . Based on the assumption on the uniform Lipschitz continuity and strong convexity, we can have the following inequalities:
312
+
313
+ $$
314
+ \begin{array}{l} F (\boldsymbol {w} ^ {(t)}) \leq F (\boldsymbol {w} ^ {(t - 1)}) + (\boldsymbol {w} ^ {(t)} - \boldsymbol {w} ^ {(t - 1)}) ^ {T} \nabla \tilde {F} (\boldsymbol {w} ^ {(t - 1)}) \\ + \frac {U}{2} \| \boldsymbol {w} ^ {(t)} - \boldsymbol {w} ^ {(t - 1)} \| ^ {2}, \tag {27} \\ \end{array}
315
+ $$
316
+
317
+ $$
318
+ \begin{array}{l} F (\boldsymbol {w} ^ {(t)}) \geq F (\boldsymbol {w} ^ {(t - 1)}) + (\boldsymbol {w} ^ {(t)} - \boldsymbol {w} ^ {(t - 1)}) ^ {T} \nabla F (\boldsymbol {w} ^ {(t - 1)}) \\ + \frac {\mu}{2} \left\| \boldsymbol {w} ^ {(t)} - \boldsymbol {w} ^ {(t - 1)} \right\| ^ {2}. \tag {28} \\ \end{array}
319
+ $$
320
+
321
+ Since $\pmb{w}^{(t)} = \overline{\pmb{w}}^{(t - 1)} - \lambda (\nabla F(\pmb{w}^{(t - 1)}) + e^{(t)})$ , we can simplify (27) when the learning rate is $\lambda = \frac{1}{U}$ as
322
+
323
+ $$
324
+ \begin{array}{l} F (\boldsymbol {w} ^ {(t)}) \leq F (\boldsymbol {w} ^ {(t - 1)}) - \frac {1}{U} \left(\nabla F (\boldsymbol {w} ^ {(t - 1)}) + e ^ {(t)}\right) ^ {T} \nabla F (\boldsymbol {w} ^ {(t - 1)}) \\ + \frac {1}{2 U} | | \nabla F (\boldsymbol {w} ^ {(t - 1)}) + e ^ {(t)} | | ^ {2} \\ = F \left(\boldsymbol {w} ^ {(t - 1)}\right) - \frac {1}{2 U} \left\| \nabla F \left(\boldsymbol {w} ^ {(t - 1)}\right) \right\| ^ {2} + \frac {1}{2 U} \left\| e ^ {(t)} \right\| ^ {2}. \tag {29} \\ \end{array}
325
+ $$
326
+
327
+ To find a lower bound on the norm of $\nabla F(\pmb{w}^{(t)})$ , we can minimize both sides of (28) with respect $\pmb{w}^{(t)}$ . The minimal value of the left-hand side of (28) is achieved when $\pmb{w}^{(t)} = \pmb{w}^*$ , and the minimal value of the right-hand side of (28) is realized when $\pmb{w}^{(t)} = \pmb{w}^{(t - 1)} - \frac{1}{\mu}\nabla F(\pmb{w}^{(t - 1)})$ . Particularly, we have
328
+
329
+ $$
330
+ F \left(\boldsymbol {w} ^ {*}\right) \geq F \left(\boldsymbol {w} ^ {(t - 1)}\right) - \frac {1}{2 \mu} | | \nabla F \left(\boldsymbol {w} ^ {(t - 1)}\right) | | ^ {2}. \tag {30}
331
+ $$
332
+
333
+ When replacing $\pmb{w}^{(t - 1)}$ with $\pmb{w}^{(t)}$ in (30), we can obtain a lower bound for the norm of $\nabla F(\pmb{w}^{(t)})$ as
334
+
335
+ $$
336
+ \left| \left| \nabla F \left(\boldsymbol {w} ^ {(t)}\right) \right| \right| ^ {2} \geq 2 \mu \left(F \left(\boldsymbol {w} ^ {(t)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right). \tag {31}
337
+ $$
338
+
339
+ Combining (29) and (31), we can obtain an upper bound of the current loss and the minimal loss given by
340
+
341
+ $$
342
+ F \left(\boldsymbol {w} ^ {(t)}\right) - F \left(\boldsymbol {w} ^ {*}\right) \leq \left(1 - \frac {\mu}{U}\right) \left[ F \left(\boldsymbol {w} ^ {(t - 1)}\right) - F \left(\boldsymbol {w} ^ {*}\right) \right] + \frac {1}{2 U} \left\| e ^ {(t)} \right\| ^ {2}.
343
+ $$
344
+
345
+ According to [19], when $\mathbb{E}[||e^{(t)}||^2] \leq 2U\left(\frac{\mu}{U} - \rho^{(t)}\right)\mathbb{E}(F(\boldsymbol{w}^{(t)}) - F(\boldsymbol{w}^*))$ , we can achieve the strong expected linear convergence, i.e.,
346
+
347
+ $$
348
+ \overline {{\mathbb {E}}} \left(F \left(\boldsymbol {w} ^ {(t)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right) \leq (1 - \rho^ {(t)}) \mathbb {E} \left(F \left(\boldsymbol {w} ^ {(t - 1)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right).
349
+ $$
350
+
351
+ According to the strong expected linear convergence requirement, we know that the convergence rate satisfies
352
+
353
+ $$
354
+ \rho^ {(t)} \leq \frac {\mu}{U} - \frac {\mathbb {E} [ | | e ^ {(t)} | | ^ {2} ]}{2 U \mathbb {E} (F (\boldsymbol {w} ^ {(t)}) - F (\boldsymbol {w} ^ {*}))}. \tag {32}
355
+ $$
356
+
357
+ By using the results in [20], we have the following inequality:
358
+
359
+ $$
360
+ \begin{array}{l} \mathbb {E} \left(\left\| e ^ {(t)} \right\| ^ {2}\right) \leq \frac {1}{N} \sum_ {i = 1} ^ {I} N _ {i} \left(\zeta_ {1} + \zeta_ {2} \mathbb {E} \left(\nabla F \left(\boldsymbol {w} ^ {(t)}\right)\right)\right) \times \\ (1 - \mathbb {P} (T _ {i L} \leq T _ {u} (\beta), T _ {L i} \leq T _ {d} (\beta))). \tag {33} \\ \end{array}
361
+ $$
362
+
363
+ The right-hand side of (32) will meet the following inequality:
364
+
365
+ $$
366
+ \begin{array}{l} \frac {\mu}{U} - \frac {\mathbb {E} [ | | e ^ {(t)} | | ^ {2} ]}{2 U \mathbb {E} (F (\boldsymbol {w} ^ {(t)}) - F (\boldsymbol {w} ^ {*}))} \geq \frac {\mu}{U} - \sum_ {i = 1} ^ {I} N _ {i} \left(\zeta_ {1} + \zeta_ {2} \mathbb {E} \left(\nabla F (\boldsymbol {w} ^ {(t)})\right)\right) \\ \times \frac {\left(1 - \mathbb {P} \left(T _ {i L} \leq T _ {u} (\beta) , T _ {L i} \leq T _ {d} (\beta)\right)\right)}{2 N U \mathbb {E} \left(F \left(\boldsymbol {w} ^ {(t)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right)}. \tag {34} \\ \end{array}
367
+ $$
368
+
369
+ Therefore, to guarantee that (32) always exists, we have
370
+
371
+ $$
372
+ \begin{array}{l} \rho^ {(t)} \leq \frac {\mu}{U} - \sum_ {i = 1} ^ {I} N _ {i} \left(\zeta_ {1} + \zeta_ {2} \mathbb {E} \left(\nabla F \left(\boldsymbol {w} ^ {(t)}\right)\right)\right) \\ \times \frac {(1 - \mathbb {P} (T _ {i L} \leq T _ {u} (\beta) , T _ {L i} \leq T _ {d} (\beta)))}{2 N U \mathbb {E} (F (\boldsymbol {w} ^ {(t)}) - F (\boldsymbol {w} ^ {*}))} \\ \end{array}
373
+ $$
374
+
375
+ $$
376
+ \begin{array}{l} \stackrel {(a)} {\leq} \frac {\mu}{U} - \sum_ {i = 1} ^ {I} N _ {i} \left(\zeta_ {1} + \zeta_ {2} 2 \mu \left(F \left(\boldsymbol {w} ^ {(t)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right)\right) \\ \times \frac {\left(1 - \mathbb {P} \left(T _ {i L} \leq T _ {u} (\beta) , T _ {L i} \leq T _ {d} (\beta)\right)\right)}{2 N U \mathbb {E} \left(F \left(\boldsymbol {w} ^ {(t)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right)} \\ \end{array}
377
+ $$
378
+
379
+ $$
380
+ \begin{array}{l} \stackrel {(b)} {\leq} \frac {\mu}{U} - \sum_ {i = 1} ^ {I} N _ {i} \left(2 \mu \mathbb {E} \left(F \left(\boldsymbol {w} ^ {(t)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right)\right) \\ \times \frac {\left(1 - \mathbb {P} \left(T _ {i L} \leq T _ {u} (\beta) , T _ {L i} \leq T _ {d} (\beta)\right)\right)}{2 N U \mathbb {E} \left(F \left(\boldsymbol {w} ^ {(t)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right)} \\ \end{array}
381
+ $$
382
+
383
+ $$
384
+ = \frac {\mu}{U} - \frac {\sum_ {i = 1} ^ {I} N _ {i} \mu \left(1 - \mathbb {P} \left(T _ {i L} \leq T _ {u} (\beta) , T _ {L i} \leq T _ {d} (\beta)\right)\right)}{N U}, \tag {35}
385
+ $$
386
+
387
+ where in (a), we use the results derived in (31), and the derivation in (b) is based on the fact that $\zeta_1 \geq 0$ and $\zeta_2 \geq 1$ . Assume $\rho = \frac{\mu}{U} - \frac{\sum_{i=1}^{I} N_i \mu(1 - \mathbb{P}(T_{iL} \leq T_u(\beta), T_{Li} \leq T_d(\beta)))}{NU} = \frac{\sum_{i=1}^{I} N_i \mu(\mathbb{P}(T_{iL} \leq T_u(\beta), T_{Li} \leq T_d(\beta)))}{NU}$ , then, we can have
388
+
389
+ $$
390
+ \begin{array}{l} \mathbb {E} \left(F \left(\boldsymbol {w} ^ {(t)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right) \leq (1 - \rho) \mathbb {E} \left(F \left(\boldsymbol {w} ^ {(t - 1)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right) \\ \leq (1 - \rho) ^ {2} \mathbb {E} \left(F \left(\boldsymbol {w} ^ {(t - 2)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right) \\ \end{array}
391
+ $$
392
+
393
+ ··
394
+
395
+ $$
396
+ \leq (1 - \rho) ^ {t} \mathbb {E} \left(F \left(\boldsymbol {w} ^ {(0)}\right) - F \left(\boldsymbol {w} ^ {*}\right)\right).
397
+ $$
398
+
399
+ We can further determine the convergence round needed to achieve a target difference threshold, i.e., $\mathbb{E}(F(\boldsymbol{w}) - F(\boldsymbol{w}^{*}))\leq \varepsilon$ , as follows:
400
+
401
+ $$
402
+ \begin{array}{l} t \geq \log_ {1 - \rho} \frac {\varepsilon}{\mathbb {E} (F (\boldsymbol {w} ^ {(0)}) - F (\boldsymbol {w} ^ {*}))} \\ \stackrel {(a)} {\geq} \log_ {1 - \rho} \frac {\varepsilon}{\mathbb {E} (F (\boldsymbol {w} ^ {(0)}))} \\ = \log_ {1 - \rho} \frac {\varepsilon}{\sum_ {i = 1} ^ {I} \sum_ {n = 1} ^ {N _ {i}} f \left(\boldsymbol {w} ^ {(0)}, \boldsymbol {x} _ {i n} , y _ {i n}\right)}, \tag {36} \\ \end{array}
403
+ $$
404
+
405
+ where in (a), we use the fact that $1 - \rho \leq 1$ . Since the convergence round must be integral, we can have the results in Theorem 1.
406
+
407
+ # REFERENCES
408
+
409
+ [1] M. Mozaffari, W. Saad, M. Dennis, Y. Nam, and M. Debbah, "A tutorial on UAVs for wireless networks: Applications, challenges, and open problems," IEEE Communications Surveys Tutorials, vol. 21, no. 3, pp. 2334-2360, Third Quarter, 2019.
410
+ [2] M. Mozaffari, A. Kasgari, W. Saad, M. Bennis, and M. Debbah, "Beyond 5G with UAVs: Foundations of a 3D wireless cellular network," IEEE Transactions on Wireless Communications, vol. 18, no. 1, pp. 357-372, Jan 2019.
411
+ [3] J. Park, S. Samarakoon, M. Bennis, and M. Debbah, "Wireless network intelligence at the edge," Proceeding of the IEEE, to appear, 2019.
412
+ [4] J. Konecný, H. B. McMahan, D. Ramage, and P. Richtárik, "Federated optimization: Distributed machine learning for on-device intelligence," arXiv preprint http://arxiv.org/abs/1610.02527 arXiv:1610.02527, 2016.
413
+ [5] M. Chen, H. V. Poor, W. Saad, and S. Cui, "Convergence time optimization for federated learning over wireless networks," arXiv preprint http://arxiv.org/abs/2001.07845 arXiv:2001.07845.
414
+ [6] Q. Zeng, Y. Du, K. K. Leung, and K. Huang, "Energy-efficient radio resource allocation for federated edge learning," arXiv preprint http://arxiv.org/abs/1907.06040 arXiv:1907.06040, 2019.
415
+ [7] H. H. Yang, Z. Liu, T. Q. S. Quek, and H. V. Poor, "Scheduling policies for federated learning in wireless networks," IEEE Transactions on Communications, to appear, 2019.
416
+ [8] N. H. Tran, W. Bao, A. Zomaya, N. Minh N.H., and C. S. Hong, "Federated learning over wireless networks: Optimization model design and analysis," in Proc. of IEEE International Conference on Computer Communications, Paris, France, Apr. 2019.
417
+ [9] Y. Pan, C. Pan, Z. Yang, and M. Chen, "Resource allocation for D2D communications underlaying a NOMA-based cellular network," IEEE Wireless Communications Letters, vol. 7, no. 1, pp. 130-133, Feb. 2018.
418
+ [10] M. T. Dabiri, H. Safi, S. Parsaeefard, and W. Saad, "Analytical channel models for millimeter wave UAV networks under hovering fluctuations," arXiv preprint http://arxiv.org/abs/1905.01477 arXiv:1905.01477, 2019.
419
+ [11] ITU-R, Mathematical models for radiodetermination radar systems antenna patterns for use in interference analyses, Recommendation ITU-R M.1851-1, Jan. 2018.
420
+ [12] T. Zeng, M. Mozaffari, O. Semiari, W. Saad, M. Bennis, and M. Debbah, "Wireless communications and control for swarms of cellular-connected UAVs," in Proc. of IEEE Asilomar Conference on Signals, Systems, and Computers, Pacific Grove, CA, USA, Oct. 2018.
421
+ [13] J. K. Stolaroff, C. Samaras, E. R. O'Neill, A. S. Mitchell, and D. Ceperley, "Energy use and life cycle greenhouse gas emissions of drones for commercial package delivery," Nature Communications, vol. 9, no. 409, pp. 1-13, Feb. 2018.
422
+ [14] D. P. Bertsekas and J. N. Tsitsiklis, Neuro-dynamic programming. Athena Scientific Belmont, MA, 1996, vol. 5.
423
+ [15] B. K. Pagnoncelli, S. Ahmed, and A. Shapiro, "Sample average approximation method for chance constrained programming: theory and applications," Journal of optimization theory and applications, vol. 142, no. 2, pp. 399-416, 2009.
424
+ [16] W. Yu and R. Lui, “Dual methods for nonconvex spectrum optimization of multicarrier systems,” IEEE Transactions on Communications, vol. 54, no. 7, pp. 1310–1322, July 2006.
425
+ [17] Y. Nesterov, Lectures on convex optimization. Springer, 2018, vol. 137.
426
+ [18] F. Zhou, Y. Wu, R. Q. Hu, and Y. Qian, "Computation rate maximization in UAV-enabled wireless-powered mobile-edge computing systems," IEEE Journal on Selected Areas in Communications, vol. 36, no. 9, pp. 1927-1941, Sep. 2018.
427
+ [19] M. P. Friedlander and M. Schmidt, “Hybrid deterministic-stochastic methods for data fitting,” SIAM Journal on Scientific Computing, vol. 34, no. 3, pp. A1380-A1405, 2012.
428
+ [20] M. Chen, Z. Yang, W. Saad, C. Yin, H. V. Poor, and S. Cui, "A joint learning and communications framework for federated learning over wireless networks," arXiv preprint http://arxiv.org/abs/1909.07972 arXiv:1909.07972, 2019.
2002.08xxx/2002.08196/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1803710979c4b9e09e9241f3c626ed8ca434f0acf05b8a8f2114ecf723564b7b
3
+ size 551439
2002.08xxx/2002.08196/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08235/e47c5a69-7d21-48e3-9d80-4939a14a1d4e_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08235/e47c5a69-7d21-48e3-9d80-4939a14a1d4e_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08235/e47c5a69-7d21-48e3-9d80-4939a14a1d4e_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:437ccab3cdea620669939b54a65a82ca45780c3ac9797721f92e3631b8443155
3
+ size 3325862
2002.08xxx/2002.08235/full.md ADDED
@@ -0,0 +1,715 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PHYSICS-INFORMED NEURAL NETWORKS FOR SOLVING NONLINEAR DIFFUSIVITY AND BIOT'S EQUATIONS
2
+
3
+ A PREPRINT
4
+
5
+ # Teeratorn Kadeethum
6
+
7
+ Department of Applied Mathematics and Computer Science
8
+
9
+ Technical University of Denmark
10
+
11
+ Lyngby, Denmark
12
+
13
+ teekad@dtu.dk
14
+
15
+ # Thomas M Jørgensen
16
+
17
+ Department of Applied Mathematics and Computer Science
18
+
19
+ Technical University of Denmark
20
+
21
+ Lyngby, Denmark
22
+
23
+ tmjq@dtu.dk
24
+
25
+ # Hamidreza M Nick
26
+
27
+ The Danish Hydrocarbon Research and Technology Centre
28
+
29
+ Technical University of Denmark
30
+
31
+ Lyngby, Denmark
32
+
33
+ hamid@dtu.dk
34
+
35
+ February 20, 2020
36
+
37
+ # ABSTRACT
38
+
39
+ This paper presents the potential of applying physics-informed neural networks for solving nonlinear multiphysics problems, which are essential to many fields such as biomedical engineering, earthquake prediction, and underground energy harvesting. Specifically, we investigate how to extend the methodology of physics-informed neural networks to solve both the forward and inverse problems in relation to the nonlinear diffusivity and Biot's equations. We explore the accuracy of the physics-informed neural networks with different training example sizes and choices of hyperparameters. The impacts of the stochastic variations between various training realizations are also investigated. In the inverse case, we also study the effects of noisy measurements. Furthermore, we address the challenge of selecting the hyperparameters of the inverse model and illustrate how this challenge is linked to the hyperparameters selection performed for the forward one.
40
+
41
+ Keywords physics-informed neural networks $\cdot$ nonlinear Biot's equations $\cdot$ deep learning $\cdot$ inverse problem
42
+
43
+ # Introduction
44
+
45
+ The volumetric displacement of a porous medium caused by the changes in fluid pressure inside the pore spaces is essential for many applications, including groundwater flow, underground heat mining, fossil fuel production, earthquake mechanics, and biomedical engineering [1-5]. Such volumetric deformation may impact the hydraulic storability and permeability of porous material, which influences the fluid flow behavior. This multiphysics problem, i.e., the coupling between fluid flow and solid deformation, can be captured through the application of Biot's equations of poroelasticity [6, 7]. The Biot's equations can be solved by analytical solutions for simple cases [8, 9]. In complex cases, the finite difference approximation [10, 11], finite volume discretization [12, 13], or more commonly finite element
46
+
47
+ methods such as the mixed formulation or discontinuous/enriched Galerkin, [14-21], can be used. These numerical methods, however, require significant computational resources, and the accuracy of the solution depends heavily on the quality of the generated mesh. Hence, these methods may not be suitable to handle an inverse problem [22, 23] or a forward problem with complex geometries [24-26].
48
+
49
+ Recent proposals have speculated that neural-network-based approaches such as deep learning might be an appealing alternative in solving physical problems, which are governed by partial differential equations since they operate without a mesh and are scalable on multithreaded systems [25-29]. Moreover, deep learning has been successfully applied to many applications [30-32] because of its capability to handle highly nonlinear problems [33]. As this technique, in general, requires a significantly large data set to reach a reasonable accuracy [34], its applicability to many scientific and industrial problems can be a challenge [35]. Use of a priori knowledge, however, can reduce the amount of examples needed. For instance, the idea of encoding physical information into the architectures and loss functions of the deep neural networks has been successfully applied to computational fluid dynamics problems [24, 26-29, 36]. The published results illustrate that by incorporating the physical information in the form of regularization terms of the loss functions, the neural networks can be trained to provide good accuracy with a reasonably sized data set.
50
+
51
+ Since the coupled fluid and solid mechanics process is highly nonlinear and generally involves complex geometries [19,37,38], it seems to fit well into the context of physics-informed neural networks (PINN). For this reason, we propose to apply PINN for solving the nonlinear diffusivity and Biot's equations, both concerning forward and inverse modeling. The rest of the paper is organized as follows. The governing equations of the coupled solid and fluid mechanics are presented in the methodology section. Subsequently, the PINN architecture and its loss functions are defined. We then present forward and inverse modeling results for both the nonlinear diffusivity equation as well as Biot's equations. We also study the impact of the stochastic variations of the training procedures on the accuracy of the predicted primary variables and estimated parameters. Finally, we conclude the findings and describe the possibilities that can enhance the capability of this model, which should be addressed in future works.
52
+
53
+ # Methodology
54
+
55
+ # Governing equations
56
+
57
+ We are interested in solving the nonlinear Biot's equations on the closed domain $(\Omega)$ which amounts to a time-dependent multiphysics problem coupling solid deformation with fluid flow. Let $\Omega \subset \mathbb{R}^d$ be the domain of interest in $d$ -dimensional space where $d = 1,2$ , or 3 and bounded by boundary, $\partial \Omega$ . $\partial \Omega$ can be decomposed into displacement and traction boundaries, $\partial \Omega_u$ and $\partial \Omega_\sigma$ , respectively, for the solid deformation problem. For the fluid flow problem, $\partial \Omega$ is decomposed into pressure and flux boundaries, $\partial \Omega_p$ and $\partial \Omega_q$ , respectively. In short, $\partial \Omega_u$ and $\partial \Omega_p$ represent the first-kind boundary condition or Dirichlet boundary condition $(\partial \Omega_D)$ . The $\partial \Omega_\sigma$ and $\partial \Omega_q$ , on the other hand, represent the second-kind boundary condition or Neumann boundary condition $(\partial \Omega_N)$ . The time domain is denoted by $\mathbb{T} = (0,\tau]$ with $\tau > 0$ .
58
+
59
+ As just stated, the coupling between the fluid flow and solid deformation can be captured through the application of Biot's equations of poroelasticity, which is composed of linear momentum and mass balance equations [6]. The linear momentum balance equation can be written as follows:
60
+
61
+ $$
62
+ \nabla \cdot \boldsymbol {\sigma} (\boldsymbol {u}, p) = \boldsymbol {f}, \tag {1}
63
+ $$
64
+
65
+ where $\pmb{u}$ is displacement, $p$ is fluid pressure, $\pmb{f}$ is body force. The bold-face letters or symbols denote tensors and vectors, and the normal letters or symbols denote scalar values. Here, $\sigma$ is the total stress, which is defined as:
66
+
67
+ $$
68
+ \boldsymbol {\sigma} := \boldsymbol {\sigma} ^ {\prime} (\boldsymbol {u}) - \alpha p \boldsymbol {I}, \tag {2}
69
+ $$
70
+
71
+ where $I$ is the identity tensor and $\alpha$ is Biot's coefficient defined as [39]:
72
+
73
+ $$
74
+ \alpha := 1 - \frac {K}{K _ {s}}, \tag {3}
75
+ $$
76
+
77
+ with the bulk modulus of a rock matrix $K$ and the solid grains modulus $K_{s}$ . In addition, $\sigma^{\prime}$ is an effective stress defined as:
78
+
79
+ $$
80
+ \boldsymbol {\sigma} ^ {\prime} (\boldsymbol {u}) := 2 \mu_ {l} \varepsilon (\boldsymbol {u}) + \lambda_ {l} \boldsymbol {u} \boldsymbol {I}, \tag {4}
81
+ $$
82
+
83
+ where $\lambda_{l}$ and $\mu_{l}$ are Lamé constants, $\varepsilon (\pmb {u})$ is strain assuming infinitesimal displacements defined as:
84
+
85
+ $$
86
+ \varepsilon (\boldsymbol {u}) := \frac {1}{2} \left(\nabla \boldsymbol {u} + \nabla^ {T} \boldsymbol {u}\right). \tag {5}
87
+ $$
88
+
89
+ We can write the linear momentum balance and its boundary conditions as:
90
+
91
+ $$
92
+ \nabla \cdot \boldsymbol {\sigma} ^ {\prime} (\boldsymbol {u}) - \alpha \nabla \cdot p \boldsymbol {I} = \boldsymbol {f} \text {i n} \Omega \times \mathbb {T}, \tag {6}
93
+ $$
94
+
95
+ $$
96
+ \boldsymbol {u} = \boldsymbol {u} _ {D} \text {o n} \partial \Omega_ {u} \times \mathbb {T}, \tag {7}
97
+ $$
98
+
99
+ $$
100
+ \boldsymbol {\sigma} \cdot \boldsymbol {n} = \boldsymbol {\sigma} _ {D} \text {o n} \partial \Omega_ {\sigma} \times \mathbb {T}, \tag {8}
101
+ $$
102
+
103
+ $$
104
+ \boldsymbol {u} = \boldsymbol {u} _ {0} \text {i n} \Omega \text {a t} t = 0, \tag {9}
105
+ $$
106
+
107
+ where $\boldsymbol{u}_D$ and $\sigma_D$ are prescribed displacement and traction at boundaries, respectively, $n$ is a normal unit vector, and $t$ is time.
108
+
109
+ The mass balance equation is written as [38, 40]:
110
+
111
+ $$
112
+ \left(\phi c _ {f} + \frac {\alpha - \phi}{K _ {s}}\right) \frac {\partial p}{\partial t} + \alpha \frac {\partial \nabla \cdot \boldsymbol {u}}{\partial t} - \nabla \cdot \mathcal {N} [ \boldsymbol {\kappa} ] (\nabla p - \rho \mathbf {g}) = g \text {i n} \Omega \times \mathbb {T}, \tag {10}
113
+ $$
114
+
115
+ $$
116
+ p = p _ {D} \text {o n} \partial \Omega_ {p} \times \mathbb {T}, \tag {11}
117
+ $$
118
+
119
+ $$
120
+ - \mathcal {N} [ \boldsymbol {\kappa} ] (\nabla p - \rho \mathbf {g}) \cdot \boldsymbol {n} = q _ {D} \text {o n} \partial \Omega_ {q} \times \mathbb {T}, \tag {12}
121
+ $$
122
+
123
+ $$
124
+ p = p _ {0} \text {i n} \Omega \text {a t} t = 0, \tag {13}
125
+ $$
126
+
127
+ where $\rho$ is fluid density, $\phi$ is initial porosity and remains constant throughout the simulation (the volumetric deformation is represented by $\partial \nabla \cdot \boldsymbol{u} / \partial t$ ), $c_{f}$ is fluid compressibility, $\mathbf{g}$ is a gravitational vector, $g$ is sink/source, $p_{D}$ and $q_{D}$ are specified pressure and flux, respectively, $\mathcal{N}[\cdot]$ represents a nonlinear operator, and $\kappa$ is hydraulic conductivity defined as:
128
+
129
+ $$
130
+ \kappa := \left[ \begin{array}{l l l} \kappa^ {x x} & \kappa^ {x y} & \kappa^ {x z} \\ \kappa^ {y x} & \kappa^ {y y} & \kappa^ {y z} \\ \kappa^ {z x} & \kappa^ {z y} & \kappa^ {z z} \end{array} \right], \tag {14}
131
+ $$
132
+
133
+ where the tensor components characterize the transformation of the components of the gradient of fluid pressure into the components of the velocity vector. The $\kappa^{xx}$ , $\kappa^{yy}$ , and $\kappa^{zz}$ represent the matrix permeability in x-, y-, and z-direction, respectively. In this study, all off-diagonal terms are zero because we assume that a porous media is isotropic and homogeneous [41, 42]. Note that the diffusivity equation is a specific case of the Biot's equations since Eqs (6) and (10) decouple when $\alpha = 0$ . The details of this equation are presented in the results and discussion section.
134
+
135
+ # Physics-informed neural networks model
136
+
137
+ # Neural network architecture
138
+
139
+ The neural network architecture used in this study is presented in Fig 1 [33,43,44]. The number of input and output nodes in the neural networks are determined from the problem formulation; for example, if the problem is time-dependent poroelasticity (as discussed in the previous section) and bounded by $\Omega = [0,1]^1$ , we have two input nodes $(x$ and $t)$ and two output nodes $(u$ and $p)$ where $x$ is coordinate in x-direction, $t$ is time, $u$ is the displacement in x-direction, and $p$ is fluid pressure. The number of hidden layers $(N_{hl})$ and the number of neurons $(N_{n})$ act as so-called hyperparameters [45]. Each neuron (e.g., $\mathrm{H}_{1,1}\ldots \mathrm{H}_{1,\mathrm{N}_n}$ ) is connected to the nodes of the previous layer with adjustable
140
+
141
+ weights and also has an adjustable bias. We denote the set of weights and biases as (W) and (b), respectively. These variables are learned during a training phase [44,45]. In this paper, we define all hidden layers to have the same number of neurons.
142
+
143
+ Physics-informed neural networks encode the information given by the differential operators as specific regularizing terms of the loss functions used when training the networks (see the section below). Because the training examples that are used to evaluate these extra regularizing terms, in general, are different from those used to train the network shown in Fig 1, one conceptually introduces an additional neural network - denoted the physical informed neural network [26]. This additional neural network is dependent on all the W and b of the first neural network, but it introduces some extra variables to be learned for the inverse modeling case. This is elaborated in more detail in the below section on training the PINN. Note that while the neural network shown in Fig 1 can be seen as point-to-point learning, the physics-informed regularization indirectly contributes to the local interactions (the stencil). The neural networks are built on the Tensorflow platform [46]. The results produced using either the rectified linear unit (ReLU) or the hyperbolic tangent (tanh) were comparable. Hence, we only present the results using the tanh activation function in this paper.
144
+
145
+ ![](images/78fe112e3aa3aca0013531170de5c6e6db0aff61826ee4141f40a3ab7ea5e089.jpg)
146
+ Figure 1: General neural network architecture used in this study [33,43,44]. The input layer contains up to $i$ input nodes, and the output layer is composed of $1,\dots,k$ output nodes. $N_{hl}$ refers to the number of hidden layers, and each hidden layer is composed of $N_{n}$ neurons. Each neuron (e.g., $\mathrm{H}_{1,1}\ldots \mathrm{H}_{1,\mathrm{N}_n}$ ) is connected to the nodes of the previous layer with adjustable weights and also has an adjustable bias.
147
+
148
+ # Physics-informed function
149
+
150
+ We encode the underlying physical information to the neural networks through the so-called physics-informed function (II), acting as additional regularizing terms in the loss function defined below.
151
+
152
+ For the linear momentum balance equation Eq (6), we define $\Pi_{\pmb{u}}$ as follows:
153
+
154
+ $$
155
+ \Pi_ {\boldsymbol {u}} := \nabla \cdot \boldsymbol {\sigma} ^ {\prime} (\boldsymbol {u}) - \alpha \nabla \cdot p \boldsymbol {I} - \boldsymbol {f} \text {i n} \Omega \times \mathbb {T}, \tag {15}
156
+ $$
157
+
158
+ and with reference to Eq (8) for its $\partial \Omega_{\sigma}$ :
159
+
160
+ $$
161
+ \Pi_ {u _ {\sigma}} := \boldsymbol {\sigma} \cdot \boldsymbol {n} - \boldsymbol {\sigma} _ {D} \text {o n} \partial \Omega_ {\sigma} \times \mathbb {T}, \tag {16}
162
+ $$
163
+
164
+ and for the mass balance equation Eq (10), we define the $\Pi_p$ as:
165
+
166
+ $$
167
+ \Pi_ {p} := \left(\phi c _ {f} + \frac {\alpha - \phi}{K _ {s}}\right) \frac {\partial p}{\partial t} + \alpha \frac {\partial \nabla \cdot \boldsymbol {u}}{\partial t} - \nabla \cdot \mathcal {N} [ \boldsymbol {\kappa} ] (\nabla p - \rho \mathbf {g}) - g \text {i n} \Omega \times \mathbb {T}, \tag {17}
168
+ $$
169
+
170
+ and for its $\partial \Omega_q$ according to Eq (12)
171
+
172
+ $$
173
+ \Pi_ {p _ {q}} := - \mathcal {N} [ \boldsymbol {\kappa} ] (\nabla p - \rho \mathbf {g}) \cdot \boldsymbol {n} - q _ {D} \text {o n} \partial \Omega_ {q} \times \mathbb {T}. \tag {18}
174
+ $$
175
+
176
+ Demanding the $\Pi$ terms above to be as close to zero as possible corresponds to fulfilling Eqs. (6), (8), (10), and (12).
177
+
178
+ # Loss function definition
179
+
180
+ The loss function applied with the PINN scheme is composed of two parts (here we use a mean squared error - $MSE$ as the metric). The error on the training data $(MSE_{tr})$ and the mean square value of the regularization term given by the physics-informed function $(MSE_{\Pi})$ :
181
+
182
+ $$
183
+ M S E = M S E _ {t r} + M S E _ {\Pi}, \tag {19}
184
+ $$
185
+
186
+ where
187
+
188
+ $$
189
+ M S E _ {\Pi} = M S E _ {\Pi_ {\Omega}} + M S E _ {\Pi_ {\partial \Omega_ {N}}}, \tag {20}
190
+ $$
191
+
192
+ $$
193
+ M S E _ {\Pi_ {\Omega}} = M S E _ {\Pi_ {u}} + M S E _ {\Pi_ {p}}, \tag {21}
194
+ $$
195
+
196
+ and
197
+
198
+ $$
199
+ M S E _ {\Pi_ {\partial \Omega_ {N}}} = M S E _ {\Pi_ {u _ {\sigma}}} + M S E _ {\Pi_ {p q}}. \tag {22}
200
+ $$
201
+
202
+ where $MSE_{\Pi_u}, MSE_{\Pi_{u_\sigma}}, MSE_{\Pi_p}$ , and $MSE_{\Pi_{p_q}}$ correspond to the loss function of Eqs (15), (16), (17), and (18), respectively. The Dirichlet boundary conditions given on $\partial \Omega_D$ with respect to the linear momentum Eq (7) and mass balance Eq (11) equations are automatically incorporated into the $MSE_{tr}$ .
203
+
204
+ A graphical presentation of how boundary points, initial points, as well as domain data, are used for training the neural networks is provided in Fig 2. For the forward model, the set of points that constitutes $\partial \Omega_D \times \mathbb{T}$ and $\Omega$ at $t = 0$ contributes to the $MSE_{tr}$ term of the loss function. We denote this set of training data as $N_b$ . Besides, we have a set of collocation points that are sampled from $\partial \Omega_N \times \mathbb{T}$ and $\Omega \times \mathbb{T}$ . These training data are used to minimize the $\Pi$ parts of the loss function, and we denote these data points as $N_{\Pi}$ .
205
+
206
+ For the inverse model, we will have a set of known/measured data points that can be sampled from the whole domain, i.e., $\Omega \times \mathbb{T}$ . We refer to this set of training data as $N_{tr}$ . All this data will contribute to both the $MSE_{tr}$ and the $MSE_{\Pi_{\Omega}}$ terms of the loss function. Also, we may include an extra set of collocation points (i.e., data where we would have no measured values), which would contribute only to the $MSE_{\Pi_{\Omega}}$ term.
207
+
208
+ # Training the PINN
209
+
210
+ The structure of a PINN architecture is shown in Fig 3. We assume a simple case of two inputs, $\mathrm{I}_1$ and $\mathrm{I}_2$ , one output, $\mathrm{O}$ , and one hidden layer with two neurons. Moreover, we here assume that $\Pi$ is a function of $\mathrm{O}$ , the first derivative of $\mathrm{O}$ with respect to the set of inputs, and the set of physical parameters, $\theta$ . With $(\cdot)_{\mathrm{tr}}$ we represent a training set, where the $\mathrm{O}$ values are known for given $\mathrm{I}_{1,\mathrm{tr}}$ and $\mathrm{I}_{2,\mathrm{tr}}$ . This set is used to evaluate the $MSE_{tr}$ term of Eq (19) at each training cycle. The $MSE_{\Pi}$ part of Eq (19) is obtained by calculating $\Pi$ for the collocation points $(\cdot)_{\Pi}$ ; see bottom part of Fig 3. Calculating $\Pi$ involves knowing $\mathrm{O}$ and its derivatives with respect to $\mathrm{I}_1$ and $\mathrm{I}_2$ . As these values are unknown for the collocation points, they are estimated using the current approximation of $\mathrm{O}(\mathrm{W},\mathrm{b},\mathrm{I}_1,\mathrm{I}_2)$ and its derivatives, which can be obtained using automatic differentiation [47,48]. In this way, the regularization term $MSE_{\Pi}$ indirectly depends on the weights, $\mathrm{W}$ , and biases, $\mathrm{b}$ , of the neural architecture shown at the top of Fig 3. As a result, $\Pi$ can be written as a function of $\mathrm{W}$ , $\mathrm{b}$ , $\mathrm{I}_{1,\Pi}$ , $\mathrm{I}_{2,\Pi}$ , and $\theta$ . If we denote this function, $\gamma$ , we have $\gamma (\mathrm{W},\mathrm{b},\mathrm{I}_{1,\Pi},\mathrm{I}_{2,\Pi},\theta) = \Pi\left(O(\mathrm{W},\mathrm{b},\mathrm{I}_{1,\Pi},\mathrm{I}_{2,\Pi}),\frac{\partial\mathrm{O}}{\partial\mathrm{I}_1},\frac{\partial\mathrm{O}}{\partial\mathrm{I}_2},\theta\right)$ . Note that the specific mapping of $\mathrm{I}_{1,\Pi}$ and $\mathrm{I}_{2,\Pi}$ to $\Pi$ has been defined as the physical informed neural network in previous work [26] as opposed to the neural network shown in the top of Fig 3.
211
+
212
+ For both the forward and the inverse modeling cases, one trains the neural networks to establish a mapping from the input space given by $\mathrm{I}_1$ and $\mathrm{I}_2$ to the output space, O, by minimizing $MSE_{tr}$ and $MSE_{\Pi}$ . The essential differences between the two cases come down to the type of training examples being available to train the networks, as discussed in Fig 2, and whether the physical parameters $(\theta)$ are known or not. For the forward modeling, we apply $(\cdot)_{\mathrm{tr}}$ to evaluate the $MSE_{tr}$ term and $(\cdot)_{\Pi}$ to evaluate the $MSE_{\Pi}$ term. The W and b are then adjusted to minimize the sum of these
213
+
214
+ ![](images/a2ee06213ad211268cbf3f570afd3d215b25d20700c558967deef639ee86b147.jpg)
215
+ Figure 2: Illustration of the parts of input space used for training the PINN: (a) forward model and (b) inverse model. The collocation $(\Omega \times \mathbb{T})$ , boundary and initial points $(\partial \Omega_{D} \times \mathbb{T}$ and $\Omega$ at $t = 0$ ) are utilized in the forward model. However, only the training points $(\Omega \times \mathbb{T})$ are employed in the inverse model. X represents a set of spatial coordinates $(x, y, \text{and } z)$ , $t$ is a set of coordinates in the time domain, and S is a set of solution values $(\boldsymbol{u}$ and $p$ ) corresponding to X and $t$ .
216
+
217
+ ![](images/8f4c097b72c037011ac27c8d87b9f7e7f15d8ce5e1802c1159d9a1b4ff53e4b8.jpg)
218
+
219
+ terms. One should emphasize that for the forward modeling, all the variables to be learned belong to the neural network depicted in the top of Fig 3.
220
+
221
+ For the inverse modeling, the aim is to estimate $\theta$ . We still, however, train a neural network to predict O (similar to the forward case). That is, we are not using a loss function that involves measuring a distance between estimated values of $\theta$ and their ground truth values. Instead, the reasoning behind solving the inverse problem is that we expect the unknown $\theta$ to converge towards their true values during training because we also allow $\theta$ to be adjusted along with W and b. During a training phase, these variables are learned to minimize the combined sum of $MSE_{tr}$ and $MSE_{\Pi}$ . Specifically, the variables are adjusted by backpropagating the errors as calculated by Eq. (19) [44, 45]. Unlike the forward problem, the boundary and initial conditions are unknown and cannot be used to generate training examples. Instead, we provide training examples that, in real cases, would be obtained from measurements, which ideally correspond to solution points of the forward problem inside $\Omega$ (see Fig 2b).
222
+
223
+ As discussed above, the solution of the inverse problem is based on training the neural network to establish a mapping from $\mathrm{I}_1$ and $\mathrm{I}_2$ to $\mathrm{O}$ as we do in the forward case. This means that the hyperparameters estimated from the forward modeling may act as qualified estimates for the hyperparameters in the inverse case, assuming the number of training examples in both cases are similar. By definition of the inverse problem, we do not know the true values of $\theta$ , so we would have to assume that the exact values of $\theta$ have a limited influence on the hyperparameters. A more direct way of estimating the hyperparameters in the inverse case would be to divide the data into training and validation sets and then select the hyperparameters that minimize $MSE$ with respect to learning the mapping from $\mathrm{I}_1$ and $\mathrm{I}_2$ to $\mathrm{O}$ . The downside of this is that we could then not spend all the measurement data on training the neural networks.
224
+
225
+ # Results and Discussion
226
+
227
+ We first consider the results of forward and inverse models of the nonlinear diffusivity equation. Subsequently, we present the results of the nonlinear Biot's equations for both the forward and inverse models.
228
+
229
+ # Nonlinear diffusivity equation
230
+
231
+ We assume $\alpha = 0$ to decouple the momentum and mass balance equations and focus on Eq (10), which is reduced to
232
+
233
+ $$
234
+ \phi c _ {t} \frac {\partial p}{\partial t} - \nabla \cdot \mathcal {N} [ \kappa ] (\nabla p - \rho \mathbf {g}) = g \text {i n} \Omega \times \mathbb {T}, \tag {23}
235
+ $$
236
+
237
+ ![](images/87471125d011f1bfb078f608555c2c8c3dd34cb00d82abbe1f05a34084d291b1.jpg)
238
+ Figure 3: Graphical illustration of how a traditional neural network is linked to a physics-informed neural network. The set of $\theta$ represents unknown physical parameters that we want to estimate.
239
+
240
+ where $c_{t}$ is a total compressibility. The same boundary and initial conditions, Eqs (11) to (13), are still valid.
241
+
242
+ We take $\Omega = [0,1]^1$ , $\mathbb{T} = [0,1]$ , and choose the exact solution in $\Omega$ as:
243
+
244
+ $$
245
+ p (x, t) := \sin (x + t), \tag {24}
246
+ $$
247
+
248
+ and $\mathcal{N}[\kappa ]$ as:
249
+
250
+ $$
251
+ \mathcal {N} [ \kappa ] := \kappa_ {0} p ^ {2}, \tag {25}
252
+ $$
253
+
254
+ where $x$ and $t$ represent points in $x$ -direction and time domain, respectively. The $\kappa_0$ is assumed to be a scalar in this case, i.e., $\kappa_0 = \kappa_0$ . All the physical constants are set to 1.0; and subsequently, $g$ is chosen as:
255
+
256
+ $$
257
+ g (x, t) := \cos (x + t) + \sin (x + t) ^ {3} - 2 \cos (x + t) ^ {2} \sin (x + t), \tag {26}
258
+ $$
259
+
260
+ to satisfy the exact solution. Furthermore, the homogeneous boundary conditions are applied to all boundaries and initial conditions using Eq (24). Combining Eqs (23) to (26), the physics-informed function (II) for the nonlinear diffusivity equation is defined:
261
+
262
+ $$
263
+ \Pi (x, t) := \phi c _ {t} \frac {\partial p}{\partial t} - \kappa_ {0} \frac {\partial}{\partial x} p ^ {2} \left(\frac {\partial}{\partial x} p\right) - g. \tag {27}
264
+ $$
265
+
266
+ We generate the solution based on an interval mesh having 2559 equidistant spatial intervals and 99 temporal ones; hence, in total, we have 256000 solution points, including the points on boundaries. Subsequently, we randomly draw $n$ training examples. Half of the remaining points are randomly selected as a validation set, and the remaining ones are used for testing. As an illustration, if we have 256000 solution points and use 100 examples to train the model. We then use 127950 examples for the validation and 127950 examples for the test set.
267
+
268
+ For the nonlinear diffusivity equation, the forward modeling with a neural network should calculate the $p$ at any given $x$ and $t$ from provided values of $\phi$ , $c_t$ , and $\kappa_0$ . For the inverse case, the aim is to infer $\phi$ , $c_t$ , and $\kappa_0$ from observed values of $x$ , $t$ , and $p$ . The architecture of the neural network corresponding to the top of Fig 3 is illustrated in Fig 4. We have two input nodes and one output node for this case. We use L-BFGS [49]; a quasi-Newton, fullbatch gradient-based optimization algorithm to minimize the loss function with stop criteria as $\frac{|MSE^k - MSE^{k + 1}|}{\max(|MSE^k|, |MSE^{k + 1}|, 1.0)} < = 10^{-16}$ where $(\cdot)^k$ and $(\cdot)^{k + 1}$ are previous and current iteration, respectively. The L-BFGS algorithm has several advantages that are suitable for this study; for example, it is more stable compared to stochastic gradient descent (SGD) and can handle large batch sizes well [49, 50]. This setting is used for all the simulations presented in this paper unless stated otherwise.
269
+
270
+ ![](images/2a3168c38adb25fc94e711da36eadb60db9d95211699766b7c218512b7f2e421.jpg)
271
+ Figure 4: Neural network architecture used for nonlinear diffusivity equation. This network corresponds to the top part of Fig 3. There are two input nodes, $x$ and $t$ , and one output node, $p$ . The number of hidden layers, $N_{hl}$ , and the number of neurons for each hidden layer, $N_{n}$ , denote the hyperparameters.
272
+
273
+ To reiterate, the sampling strategies of the forward and inverse modelings are illustrated in Fig 2. To be specific, in the forward case, we must determine the solution of the partial differential equation based on known boundary values for the time interval of $\mathbb{T} = (0,\tau ]$ combined with the initial values at $t = 0$ . These boundary and initial points are used to calculate the $MSE_{tr}$ term of Eq. 19. The inner points act as collocation points and are used to calculate the $MSE_{\Pi}$ term of Eq. 19. Note that for the forward case, we can pick as many points as we wish to calculate for both terms of the loss function. For the inverse model, we know a set of $x$ and $t$ and their corresponding values of $p$ in advance. These examples are used to calculate the $MSE_{tr}$ and $MSE_{\Pi}$ terms of Eq. 19. In a real setting, the amount of training examples is limited by the available measurements.
274
+
275
+ # Verification of the forward model
276
+
277
+ Following Eq (19) we obtain:
278
+
279
+ $$
280
+ M S E = M S E _ {b} + M S E _ {\Pi}, \tag {28}
281
+ $$
282
+
283
+ where
284
+
285
+ $$
286
+ M S E _ {b} = \frac {1}{N _ {b}} \sum_ {i = 1} ^ {N _ {b}} \left| p \left(x _ {b} ^ {i}, t _ {b} ^ {i}\right) - p ^ {i} \right| ^ {2} \tag {29}
287
+ $$
288
+
289
+ and
290
+
291
+ $$
292
+ M S E _ {\Pi} = \frac {1}{N _ {\Pi}} \sum_ {i = 1} ^ {N _ {\Pi}} \left| \Pi \left(x _ {\Pi} ^ {i}, t _ {\Pi} ^ {i}\right) \right| ^ {2}, \tag {30}
293
+ $$
294
+
295
+ where $\{x_b^i, t_b^i, p^i\}_{i=1}^{N_b}$ refer to the initial and boundary training data on $p(x,t)$ while $\{x_{\Pi}^i, t_{\Pi}^i\}_{i=1}^{N_{\Pi}}$ denote the collocation points for $\Pi$ , which are sampled using the Latin Hypercube method provided within the pyDOE package [51]. The $N_b$ is the combined number of initial and boundary training data, and $N_{\Pi}$ is the number of collocation points.
296
+
297
+ In Table 1, we explore the accuracy of the PINN as a function of the number of training examples, i.e., different numbers of $N_{b}$ and $N_{\Pi}$ for a given size of the network; $N_{hl}$ and $N_{n}$ are fixed to four and ten, respectively. Due to the stochastic behavior of the training procedure of the neural networks, we calculate the results as an average over many realizations as it otherwise might be difficult to observe a clear trend of the relative $\mathcal{L}^2$ error as a function of the number of training examples (see Panel A of Table 1). From Panels B and C of Table 1, we observe that the average accuracy of the PINN is improved as $N_{b}$ and $N_{\Pi}$ are increased. Moreover, the combined number of $N_{b}$ and $N_{\Pi}$ to obtain an average value of the $\mathcal{L}^2$ error below $1.0 \times 10^{-2}$ is in the order of 100s. To illustrate the impact of $\Pi$ terms, we consider the case
298
+
299
+ where we simply train a neural network to interpolate a feed-forward solution based on a known set of solution points. Without $\Pi$ regularization we obtain an average relative $\mathcal{L}^2$ error of $5.6\times 10^{-2}$ based on 96 training examples while the average $\mathcal{L}^2$ error becomes less than $1.0\times 10^{-2}$ when including $\Pi$ .
300
+
301
+ Table 1: Diffusivity equation - forward modeling: PINN performance as function of training set size. Relative $\mathcal{L}^2$ errors between the exact and predicted values of $p$ for the validation set. The table shows the dependency on the number of the initial and boundary training data, $N_{b}$ , and on the number of collocation points, $N_{\Pi}$ . Here, the network architecture is fixed to 4 layers with 10 neurons per hidden layer.
302
+ Panel A: Average over 1 realization
303
+
304
+ <table><tr><td>NII
305
+ Nb</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td><td>160</td><td>320</td><td>640</td></tr><tr><td>2</td><td>0.1010</td><td>0.1150</td><td>0.4060</td><td>0.2570</td><td>0.1530</td><td>0.0108</td><td>0.1930</td><td>0.0236</td><td>0.0216</td></tr><tr><td>3</td><td>0.0339</td><td>0.0665</td><td>0.1050</td><td>0.0122</td><td>0.0020</td><td>0.0973</td><td>0.0025</td><td>0.0314</td><td>0.0074</td></tr><tr><td>6</td><td>0.0248</td><td>0.0401</td><td>0.1110</td><td>0.0807</td><td>0.0012</td><td>0.0057</td><td>0.0014</td><td>0.0116</td><td>0.0046</td></tr><tr><td>12</td><td>0.0072</td><td>0.1230</td><td>0.0126</td><td>0.0296</td><td>0.0012</td><td>0.0119</td><td>0.0010</td><td>0.0015</td><td>0.0076</td></tr><tr><td>24</td><td>0.0152</td><td>0.0018</td><td>0.0008</td><td>0.0008</td><td>0.0006</td><td>0.0016</td><td>0.0008</td><td>0.0006</td><td>0.0009</td></tr><tr><td>48</td><td>0.0124</td><td>0.0127</td><td>0.0015</td><td>0.0037</td><td>0.0044</td><td>0.0013</td><td>0.0035</td><td>0.0002</td><td>0.0026</td></tr><tr><td>96</td><td>0.0076</td><td>0.0010</td><td>0.0023</td><td>0.0015</td><td>0.0026</td><td>0.0017</td><td>0.0009</td><td>0.0007</td><td>0.0010</td></tr><tr><td>192</td><td>0.0036</td><td>0.0006</td><td>0.0205</td><td>0.0025</td><td>0.0010</td><td>0.0051</td><td>0.0005</td><td>0.0008</td><td>0.0002</td></tr><tr><td>384</td><td>0.0020</td><td>0.0019</td><td>0.0009</td><td>0.0004</td><td>0.0008</td><td>0.0001</td><td>0.0005</td><td>0.0005</td><td>0.0003</td></tr></table>
306
+
307
+ Panel B: Average over 3 realizations
308
+
309
+ <table><tr><td>NII
310
+ Nb</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td><td>160</td><td>320</td><td>640</td></tr><tr><td>2</td><td>0.0972</td><td>0.0596</td><td>0.0417</td><td>0.0859</td><td>0.0380</td><td>0.0086</td><td>0.0041</td><td>0.0105</td><td>0.0050</td></tr><tr><td>3</td><td>0.0744</td><td>0.0652</td><td>0.0969</td><td>0.0415</td><td>0.0173</td><td>0.0268</td><td>0.0261</td><td>0.0084</td><td>0.0077</td></tr><tr><td>6</td><td>0.1020</td><td>0.1160</td><td>0.0841</td><td>0.0133</td><td>0.0071</td><td>0.0756</td><td>0.0217</td><td>0.0078</td><td>0.0064</td></tr><tr><td>12</td><td>0.0853</td><td>0.0099</td><td>0.0751</td><td>0.0088</td><td>0.0061</td><td>0.0456</td><td>0.0036</td><td>0.0059</td><td>0.0033</td></tr><tr><td>24</td><td>0.0447</td><td>0.0272</td><td>0.0104</td><td>0.0214</td><td>0.0290</td><td>0.0015</td><td>0.0041</td><td>0.0017</td><td>0.0060</td></tr><tr><td>48</td><td>0.0201</td><td>0.0037</td><td>0.0012</td><td>0.0230</td><td>0.0040</td><td>0.0072</td><td>0.0042</td><td>0.0060</td><td>0.0025</td></tr><tr><td>96</td><td>0.0104</td><td>0.0020</td><td>0.0013</td><td>0.0024</td><td>0.0048</td><td>0.0011</td><td>0.0009</td><td>0.0019</td><td>0.0020</td></tr><tr><td>192</td><td>0.0186</td><td>0.0014</td><td>0.0022</td><td>0.0006</td><td>0.0007</td><td>0.0011</td><td>0.0006</td><td>0.0004</td><td>0.0008</td></tr><tr><td>384</td><td>0.0015</td><td>0.0011</td><td>0.0010</td><td>0.0009</td><td>0.0005</td><td>0.0007</td><td>0.0010</td><td>0.0005</td><td>0.0005</td></tr></table>
311
+
312
+ Panel C: Average over 24 realizations
313
+
314
+ <table><tr><td>NII
315
+ Nb</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td><td>160</td><td>320</td><td>640</td></tr><tr><td>2</td><td>0.1002</td><td>0.0965</td><td>0.0904</td><td>0.0732</td><td>0.0849</td><td>0.0514</td><td>0.0139</td><td>0.0194</td><td>0.0188</td></tr><tr><td>3</td><td>0.0879</td><td>0.0775</td><td>0.0861</td><td>0.0513</td><td>0.0352</td><td>0.0354</td><td>0.0260</td><td>0.0111</td><td>0.0117</td></tr><tr><td>6</td><td>0.0710</td><td>0.0537</td><td>0.0529</td><td>0.0241</td><td>0.0144</td><td>0.0265</td><td>0.0153</td><td>0.0056</td><td>0.0107</td></tr><tr><td>12</td><td>0.0541</td><td>0.0351</td><td>0.0376</td><td>0.0302</td><td>0.0104</td><td>0.0235</td><td>0.0111</td><td>0.0135</td><td>0.0058</td></tr><tr><td>24</td><td>0.0320</td><td>0.0233</td><td>0.0141</td><td>0.0311</td><td>0.0160</td><td>0.0052</td><td>0.0061</td><td>0.0043</td><td>0.0039</td></tr><tr><td>48</td><td>0.0178</td><td>0.0050</td><td>0.0162</td><td>0.0111</td><td>0.0040</td><td>0.0024</td><td>0.0044</td><td>0.0041</td><td>0.0026</td></tr><tr><td>96</td><td>0.0087</td><td>0.0037</td><td>0.0031</td><td>0.0034</td><td>0.0022</td><td>0.0015</td><td>0.0021</td><td>0.0010</td><td>0.0012</td></tr><tr><td>192</td><td>0.0064</td><td>0.0049</td><td>0.0017</td><td>0.0010</td><td>0.0010</td><td>0.0011</td><td>0.0012</td><td>0.0009</td><td>0.0009</td></tr><tr><td>384</td><td>0.0046</td><td>0.0026</td><td>0.0011</td><td>0.0011</td><td>0.0010</td><td>0.0007</td><td>0.0008</td><td>0.0007</td><td>0.0006</td></tr></table>
316
+
317
+ Next, we perform a sensitivity analysis to explore how the PINN performance depends on the hyperparameters, $N_{hl}$ and $N_{n}$ . We do this using a fixed size of the training set with $N_{b}$ and $N_{\Pi}$ equal to 96 and 160, respectively. Ideally, the explored space of the hyperparameters should reveal a parameter set that produces a minimum of the loss function on a validation set. To deal with the stochastic nature of the training procedure, again, we calculate average values obtained over many realizations. The results are presented in Table 2. From panel C, we observe that selecting $N_{hl} = 6$ and
318
+
319
+ $N_{n} = 5$ corresponds to the best accuracy in the explored space. For a smaller and larger size of the architecture, the accuracy decreases, corresponding to underfitting and overfitting, respectively [52]. We now apply the trained PINN model using $N_{b} = 96$ , $N_{\Pi} = 160$ , $N_{hl} = 6$ , and $N_{n} = 5$ to the test set. The relative $\mathcal{L}^2$ error is $1.43 \times 10^{-3}$ , which is comparable to that of the validation set (see Table 2 - Panel C).
320
+
321
+ Table 2: Diffusivity equation - forward modeling: PINN performance as function of hyperparameters. Relative $\mathcal{L}^2$ errors between the exact and predicted values of $p$ for the validation set. The table shows the dependency on the different number of hidden layers $N_{hl}$ and different number of neurons per layer $N_{n}$ . Here, the total number of training and collocation points is fixed to $N_{b} = 96$ and $N_{\Pi} = 160$ , respectively.
322
+
323
+ Panel A: Average over 1 realization
324
+
325
+ <table><tr><td>Nn
326
+ Nhl</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td></tr><tr><td>2</td><td>0.0009</td><td>0.0015</td><td>0.0062</td><td>0.0003</td><td>0.0003</td><td>0.0088</td></tr><tr><td>4</td><td>0.0033</td><td>0.0036</td><td>0.0098</td><td>0.0009</td><td>0.0144</td><td>0.0007</td></tr><tr><td>6</td><td>0.0003</td><td>0.0038</td><td>0.0017</td><td>0.0175</td><td>0.0268</td><td>0.0009</td></tr><tr><td>8</td><td>0.0021</td><td>0.0010</td><td>0.0005</td><td>0.0005</td><td>0.0006</td><td>0.0058</td></tr><tr><td>16</td><td>0.0411</td><td>0.0003</td><td>0.0105</td><td>0.0007</td><td>0.0175</td><td>0.0019</td></tr><tr><td>32</td><td>0.0735</td><td>0.0019</td><td>0.0073</td><td>0.1970</td><td>0.0024</td><td>0.0081</td></tr></table>
327
+
328
+ Panel B: Average over 3 realizations
329
+
330
+ <table><tr><td>Nn
331
+ Nhl</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td></tr><tr><td>2</td><td>0.0027</td><td>0.0015</td><td>0.0021</td><td>0.0042</td><td>0.0025</td><td>0.0026</td></tr><tr><td>4</td><td>0.0004</td><td>0.0025</td><td>0.0013</td><td>0.0024</td><td>0.0014</td><td>0.0025</td></tr><tr><td>6</td><td>0.0023</td><td>0.0021</td><td>0.0020</td><td>0.0028</td><td>0.0026</td><td>0.0025</td></tr><tr><td>8</td><td>0.0049</td><td>0.0010</td><td>0.0023</td><td>0.0017</td><td>0.0016</td><td>0.0020</td></tr><tr><td>16</td><td>0.5580</td><td>0.0029</td><td>0.0012</td><td>0.0030</td><td>0.0019</td><td>0.0027</td></tr><tr><td>32</td><td>0.1150</td><td>0.0328</td><td>0.0036</td><td>0.0034</td><td>0.0107</td><td>0.0022</td></tr></table>
332
+
333
+ Panel C: Average over 24 realizations
334
+
335
+ <table><tr><td>Nn
336
+ Nhl</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td></tr><tr><td>2</td><td>0.1660</td><td>0.0022</td><td>0.0032</td><td>0.0025</td><td>0.0025</td><td>0.0020</td></tr><tr><td>4</td><td>0.0171</td><td>0.0024</td><td>0.0018</td><td>0.0021</td><td>0.0018</td><td>0.0022</td></tr><tr><td>6</td><td>0.0032</td><td>0.0014</td><td>0.0018</td><td>0.0024</td><td>0.0020</td><td>0.0023</td></tr><tr><td>8</td><td>0.0253</td><td>0.0016</td><td>0.0019</td><td>0.0020</td><td>0.0021</td><td>0.0025</td></tr><tr><td>16</td><td>0.0912</td><td>0.0019</td><td>0.0019</td><td>0.0019</td><td>0.0025</td><td>0.0033</td></tr><tr><td>32</td><td>0.0462</td><td>0.0090</td><td>0.0037</td><td>0.0027</td><td>0.0036</td><td>0.0031</td></tr></table>
337
+
338
+ For the selected model ( $N_{hl} = 6$ , $N_{n} = 5$ , $N_{b} = 96$ , and $N_{\Pi} = 160$ ), we illustrate the behavior of the mean square training error of this model as function of the training iterations in Fig 5. One can observe that $MSE_{b}$ is higher than $MSE_{\Pi}$ in the beginning, but later it approaches zero faster than $MSE_{\Pi}$ . The $MSE$ converges steadily without any oscillations.
339
+
340
+ # Inverse model of diffusivity equation
341
+
342
+ We rewrite Eq (27) in the parametrized form [23] as presented below:
343
+
344
+ $$
345
+ \Pi (x, t) := \theta_ {1} \frac {\partial p}{\partial t} - \theta_ {2} \frac {\partial}{\partial x} p ^ {2} \left(\frac {\partial}{\partial x} p\right) - g, \tag {31}
346
+ $$
347
+
348
+ where
349
+
350
+ $$
351
+ \theta_ {1} = \phi c _ {t} \quad \text {a n d} \quad \theta_ {2} = \kappa_ {0}. \tag {32}
352
+ $$
353
+
354
+ ![](images/02edd3a3781935b718db5419237166060d6bb7fa006433069341463f539e654a.jpg)
355
+ Figure 5: Diffusivity equation - forward modeling: mean square training error plot. This model uses $N_{hl} = 6$ , $N_{n} = 5$ , $N_{b} = 96$ , and $N_{\Pi} = 160$ . MSE, $MSE_{b}$ , and $MSE_{\Pi}$ are calculated using Eqs. 28, 29, and 30, respectively.
356
+
357
+ Unlike the forward mode, where the weights and biases are the unknown parameters to be learned, we now have two more unknowns, $\theta_{1}$ and $\theta_{2}$ . Using Eq (19) we have:
358
+
359
+ $$
360
+ M S E _ {t r} = \frac {1}{N _ {t r}} \sum_ {i = 1} ^ {N _ {t r}} \left| p \left(x _ {t r} ^ {i} t _ {t r} ^ {i}\right) - p ^ {i} \right| ^ {2} \tag {33}
361
+ $$
362
+
363
+ and
364
+
365
+ $$
366
+ M S E _ {\Pi} = \frac {1}{N _ {t r}} \sum_ {i = 1} ^ {N _ {t r}} \left| \Pi \left(x _ {t r} ^ {i}, t _ {t r} ^ {i}\right) \right| ^ {2}, \tag {34}
367
+ $$
368
+
369
+ where $\left\{x_{tr}^i,t_{tr}^i,p^i\right\}_{i = 1}^{N_{tr}}$ refers to the set of training data and $N_{tr}$ is the number of training data. In contrast to the forward model, we do not need to specify specific collocation points to activate the II dependent loss term; here we can just use the training examples used to calculate $MSE_{tr}$ . All physical constants are set to one; hence, $\theta_{1} = 1.0$ and $\theta_{2} = 1.0$ . Note that $\theta_{1}$ and $\theta_{2}$ are considered constant throughout the domain.
370
+
371
+ We use the hyperparameters obtained from the sensitivity analysis of the forward model (see Panel C of Table 2), i.e., $N_{hl} = 6$ and $N_{n} = 5$ . In Table 3, we illustrate that this choice also yields the least $\mathcal{L}^2$ error of $p$ and percentage errors of $\theta_{1}$ and $\theta_{2}$ for the inverse problem, supporting the heuristic arguments presented above in the section "Training the PINN". Moreover, we find that the $\mathcal{L}^2$ error of $p$ and percentage error of $\theta_{1}$ and $\theta_{2}$ are not much different with different combinations of the hyperparameters. Note that the $\mathcal{L}^2$ error of $p$ and percentage errors of $\theta_{1}$ and $\theta_{2}$ presented in Table 3 represent average values over 24 realizations.
372
+
373
+ We depict the performance of the PINN model for solving the inverse problem as a function of $N_{tr}$ in Fig 6. The reported error values of $\theta_{1}$ and $\theta_{2}$ are percentage errors, while the relative $\mathcal{L}^2$ error is shown for $p$ . The error bars show the standard derivation (±1 SD) based on 24 realizations. We observe that a minimum of $N_{tr} = 200$ is required by the PINN model to avoid substantial stochastic fluctuations in the estimated values of $\theta_{1}$ and $\theta_{2}$ . Moreover, we observe that the PINN model with $N_{tr} > 200$ provides average percentage errors of $\theta_{1}$ and $\theta_{2}$ less than $1\%$ , but with a large standard deviation. Over 24 realizations of the trained PINN with $N_{tr} = 200$ , the minimum percentage errors are $2.31 \times 10^{-2}$ and $7.33 \times 10^{-2}$ and the maximum are $1.93 \times 10^{-1}$ and $4.92 \times 10^{-1}$ , for $\theta_{1}$ and $\theta_{2}$ , respectively. To obtain 200 training examples in a real setting, i.e., lab experiments or field observations, is realistic; hence, the results illustrate the feasibility of PINN to solve the inverse problem based on a reasonably sized data set.
374
+
375
+ Table 3: Diffusivity equation - inverse modeling: PINN performance as function of hyperparameters. Relative $\mathcal{L}^2$ error of $p$ and percentage error of $\theta_{1}$ and $\theta_{2}$ for different number of hidden layers, $N_{hl}$ , and different number of neurons per layer, $N_{n}$ . The $N_{tr}$ is fixed at 250. Note that we pick the optimal hyperparameters, i.e., $N_{hl} = 6$ and $N_{n} = 5$ from the sensitivity analysis of the forward model. Results shown in this table are an average over 24 realizations.
376
+
377
+ <table><tr><td></td><td>\(N_{n}\) \(N_{hl}\)</td><td>2</td><td>5</td><td>10</td></tr><tr><td rowspan="3">p</td><td>4</td><td>0.0004</td><td>0.0003</td><td>0.0003</td></tr><tr><td>6</td><td>0.0007</td><td>0.0002</td><td>0.0004</td></tr><tr><td>8</td><td>0.0010</td><td>0.0002</td><td>0.0003</td></tr><tr><td rowspan="3">\(\theta_{1}\)</td><td>4</td><td>0.1888</td><td>0.1357</td><td>0.1969</td></tr><tr><td>6</td><td>0.3200</td><td>0.1065</td><td>0.3261</td></tr><tr><td>8</td><td>0.5195</td><td>0.1272</td><td>0.1125</td></tr><tr><td rowspan="3">\(\theta_{2}\)</td><td>4</td><td>0.3443</td><td>0.3562</td><td>0.3289</td></tr><tr><td>6</td><td>0.7121</td><td>0.1912</td><td>0.6946</td></tr><tr><td>8</td><td>0.7949</td><td>0.3088</td><td>0.2504</td></tr></table>
378
+
379
+ ![](images/1a6c0e478f956100123b74325ff51b9c1c8b8141f93270a358542a0ebef96bf9.jpg)
380
+ Figure 6: Diffusivity equation - inverse modeling: PINN performance as function of training set size. This figure shows the estimated error dependency on the amount of training data, $N_{tr}$ . The error bars show mean and standard derivation (±1 SD) based on 24 realizations. Note that there is no noise added in this investigation, and all physical constants are set to one, i.e., $\theta_{1} = \theta_{2} = 1.0$ . The reported error values of $\theta_{1}$ and $\theta_{2}$ are percentage errors while the relative $\mathcal{L}^2$ error is shown for $p$ .
381
+
382
+ Next, we perform a systematic study of the effect of additive noise in data, which is created from the true data as follows [26]:
383
+
384
+ $$
385
+ \boldsymbol {X} _ {\text {n o i s e}} = \boldsymbol {X} _ {\text {t r u e}} + \epsilon \mathcal {S} \left(\boldsymbol {X} _ {\text {t r u e}}\right) \mathcal {G} (0, 1), \tag {35}
386
+ $$
387
+
388
+ where $X_{noise}$ and $X_{true}$ is the vector of the data with and without noise, respectively. The $\epsilon$ determines the noise level, $S(\cdot)$ represents a standard deviation operator, $\mathcal{G}(0,1)$ is a random value, which is sampled from the Gaussian distribution with mean and standard deviation of zero and one, respectively. The noise generated from this procedure is fully random and uncorrelated. The results are presented in Table 4 as average values over 10 training realizations. We can observe that the error increases with the noise level $(\epsilon)$ while the error decreases as the $N_{tr}$ is increased. As expected, the PINN model requires more data to accurately approximate the unknown physical parameters when the noise level is high.
389
+
390
+ Table 4: Diffusivity equation - inverse modeling: PINN performance as function of noise. This figure shows the average percentage errors of $\theta_{1}$ and $\theta_{2}$ for different numbers of training data, $N_{tr}$ , as function of the noise levels. Here, the neural network architecture is kept fixed to 6 layers and 5 neurons per layer. The results are averages over 10 realizations.
391
+
392
+ <table><tr><td colspan="2">Noise (ε)</td><td rowspan="2">0%</td><td rowspan="2">1%</td><td rowspan="2">5%</td><td rowspan="2">10%</td></tr><tr><td colspan="2">Ntr</td></tr><tr><td rowspan="4">θ1</td><td>100</td><td>0.17</td><td>1.82</td><td>4.40</td><td>4.67</td></tr><tr><td>250</td><td>0.15</td><td>0.30</td><td>1.00</td><td>1.98</td></tr><tr><td>500</td><td>0.12</td><td>0.17</td><td>0.77</td><td>0.84</td></tr><tr><td>1000</td><td>0.04</td><td>0.09</td><td>0.34</td><td>0.94</td></tr><tr><td rowspan="4">θ2</td><td>100</td><td>0.22</td><td>1.49</td><td>4.35</td><td>4.90</td></tr><tr><td>250</td><td>0.24</td><td>0.52</td><td>1.80</td><td>2.45</td></tr><tr><td>500</td><td>0.23</td><td>0.47</td><td>0.99</td><td>1.48</td></tr><tr><td>1000</td><td>0.13</td><td>0.28</td><td>0.41</td><td>0.79</td></tr></table>
393
+
394
+ # Nonlinear Biot's equations
395
+
396
+ From the nonlinear diffusivity equation section, we have shown that the PINN model can solve forward and inverse problems. We then progress to the multiphysics problem represented by the nonlinear Biot's equations. We take $\Omega = [0,1]^2$ , $\mathbb{T} = [0,1]$ , and choose the exact solution in $\Omega$ as:
397
+
398
+ $$
399
+ \boldsymbol {u} (x, y, t) := \left[ \begin{array}{l} u \\ v \end{array} \right] = \left[ \begin{array}{l} \sin (x + y + t) \\ \cos (x + y + t) \end{array} \right], \tag {36}
400
+ $$
401
+
402
+ for the displacement variable where $u$ and $v$ are displacements in x- and y-direction, respectively. Note that as we focus on the 2-Dimensional domain; therefore, $\pmb{u}(x,y,t)$ is composed of two spatial components. For the pressure variable, we choose
403
+
404
+ $$
405
+ p (x, y, t) := e ^ {(x + y + t)}. \tag {37}
406
+ $$
407
+
408
+ Here $x$ , $y$ , and $t$ represent points in $\mathbf{x}$ -, $\mathbf{y}$ -direction, and time domain, respectively. The $\mathcal{N}[\kappa]$ is chosen as:
409
+
410
+ $$
411
+ \mathcal {N} [ \kappa ] := \kappa_ {0} e ^ {\varepsilon_ {v}}, \tag {38}
412
+ $$
413
+
414
+ where $\kappa_0$ represent initial rock matrix conductivity. Again, we assume $\kappa_0$ to be a scalar in this case, i.e., $\kappa_0 = \kappa_0$ . The $\varepsilon_v$ is the total volumetric strain defined as:
415
+
416
+ $$
417
+ \varepsilon_ {v} := \operatorname {t r} (\varepsilon) = \sum_ {i = 1} ^ {2} \varepsilon_ {i i}. \tag {39}
418
+ $$
419
+
420
+ The choice of $\mathcal{N}[\kappa]$ function is selected to represent the change in a volumetric strain that affects the porous media conductivity, and it is adapted from [53-55]. All the physical constants are set to 1.0; and subsequently, $\pmb{f}$ is chosen as:
421
+
422
+ $$
423
+ \boldsymbol {f} (x, y, t) := \left[ \begin{array}{l} f _ {u} (x, y, t) \\ f _ {v} (x, y, t) \end{array} \right], \tag {40}
424
+ $$
425
+
426
+ where
427
+
428
+ $$
429
+ f _ {u} (x, y, t) := - 4. 0 \sin (x + y + t) - 2. 0 \cos (x + y + t) - e ^ {(x + y + t)}, \tag {41}
430
+ $$
431
+
432
+ and
433
+
434
+ $$
435
+ f _ {v} (x, y, t) := - 4. 0 \cos (x + y + t) - 2. 0 \sin (x + y + t) - e ^ {(x + y + t)}, \tag {42}
436
+ $$
437
+
438
+ for the momentum balance equation, Eq (6). The source term of the mass balance equation, Eq (10), $g$ is chosen as:
439
+
440
+ $$
441
+ \begin{array}{l} g (x, y, t) := \left(\cos (x + y + t) + \sin (x + y + t) - 1\right) \mathrm {e} ^ {\cos (x + y + t) - \sin (x + y + t) + x + y + t} \\ - \cos (x + y + t) + e ^ {x + y + t} - \sin (x + y + t), \tag {43} \\ \end{array}
442
+ $$
443
+
444
+ to satisfy the exact solution. Furthermore, the boundary conditions and initial conditions are applied using Eqs (36) and (37). The $\Pi_{\boldsymbol{u}}(x,y,t)$ and $\Pi_p(x,y,t)$ , Eqs (15) and (17), here act as the physics-informed function.
445
+
446
+ We generate the exact solution points, Eqs (36) and (37), based on a rectangular mesh $(\Omega = [0,1]^2)$ with 99 equidistant intervals in both x- and y-direction, i.e. $\Delta x = \Delta y$ . Using 49 equidistant temporal intervals, in total, we have 500000 examples. Similar to the diffusivity equation case, we draw $n$ training examples randomly. Subsequently, we split the remaining examples equally for validation and test sets. Again, assuming we have 500000 solution points for the sake of illustration, we use 100 examples to train the model; we then have 249950 examples for both the validation and the test sets.
447
+
448
+ To recap, the forward modeling of Biot's system aims to predict the displacement $(\pmb{u})$ and pressure $(p)$ by specifying the initial and boundary conditions, collocation points, and as well as the physical parameters $(\mu_l,\lambda_l,\alpha ,\phi ,c_f,K_s,$ and $\kappa_0)$ . The inverse modeling, however, aims to estimate the physical parameters from observed values of $\pmb{u}$ and $p$ with their corresponding values of $x,y$ , and $t$ .
449
+
450
+ In the case of the nonlinear Biot's equations, the architecture of the neural network corresponding to the top of Fig 3 is presented in Fig 7. We have three input nodes and three output nodes for this case. For the forward modeling, the hyperparameters $N_{hl}$ and $N_{n}$ are found using a sensitivity analysis, and as argued in the above section, "Training the PINN," we apply the same hyperparameters for the inverse model. Again, we use L-BFGS; a quasi-Newton, fullbatch gradient-based optimization algorithm to minimize the loss function [49] for the forward model. For the inverse problem, we find that combining ADAM, stochastic gradient descent, and L-BFGS might provide faster convergence when training the neural network. Specifically, we use ADAM for the first 10000 iterations and then continue using L-BFGS until the stop criterion is met. Note that we apply the same stop criterion as described above for the diffusivity case. Since the ADAM is a first-order method compared to L-BFGS, which is a second-order model, ADAM is less computationally demanding. Initially, where the weights of the neural network are far from convergence, we speculate that the less computational effort of ADAM is an advantage. However, as we approach the minimum, L-BFGS is likely to provide a better estimate of the steepest descent. Whether these observations could be made when dealing with other types of partial differential equations is an open question, but the use of a similar combined optimization scheme has been reported in the literature for the case of the Navier-Stokes equations [26].
451
+
452
+ ![](images/fab0562fd188bed3d7c4a24b84abbd8c6efe99bce401f1615a505e03196bf62d.jpg)
453
+ Figure 7: Neural networks architecture used for nonlinear Biot's equations. This figure corresponds to the top part of Fig 3. There are three inputs, $x$ , $y$ , and $t$ , and three outputs, $u$ , $v$ , and $p$ . The number of hidden layers, $N_{hl}$ , and the number of neurons for each hidden layer, $N_{n}$ , denote the hyperparameters.
454
+
455
+ # Verification of the forward model
456
+
457
+ Again, we apply Eq. (19) and obtain:
458
+
459
+ $$
460
+ M S E = M S E _ {b} + M S E _ {\Pi_ {u}} + M S E _ {\Pi_ {p}} \tag {44}
461
+ $$
462
+
463
+ where
464
+
465
+ $$
466
+ M S E _ {b} = \frac {1}{N _ {b}} \sum_ {i = 1} ^ {N _ {b}} \left(\left| u \left(x _ {b} ^ {i}, y _ {b} ^ {i}, t _ {b} ^ {i}\right) - u ^ {i} \right| ^ {2} + \left| v \left(x _ {b} ^ {i}, y _ {b} ^ {i}, t _ {b} ^ {i}\right) - v ^ {i} \right| ^ {2} \right. \tag {45}
467
+ $$
468
+
469
+ $$
470
+ + \left| p \left(x _ {b} ^ {i}, y _ {b} ^ {i}, t _ {b} ^ {i}\right) - p ^ {i} \right| ^ {2}),
471
+ $$
472
+
473
+ $$
474
+ M S E _ {\Pi_ {u}} = \frac {1}{N _ {\Pi_ {u}}} \sum_ {i = 1} ^ {N _ {\Pi_ {u}}} \left| \Pi_ {u} \left(x _ {\Pi_ {u}} ^ {i}, y _ {\Pi_ {u}} ^ {i}, t _ {\Pi_ {u}} ^ {i}\right) \right| ^ {2}, \tag {46}
475
+ $$
476
+
477
+ and
478
+
479
+ $$
480
+ M S E _ {\Pi_ {p}} = \frac {1}{N _ {\Pi_ {p}}} \sum_ {i = 1} ^ {N _ {\Pi_ {p}}} \left| \Pi_ {p} \left(x _ {\Pi_ {p}} ^ {i}, y _ {\Pi_ {p}} ^ {i}, t _ {\Pi_ {p}} ^ {i}\right) \right| ^ {2}, \tag {47}
481
+ $$
482
+
483
+ where $\left\{x_b^i,y_b^i,t_b^i,u^i,v^i,p^i\right\}_{i = 1}^{N_b}$ refer to the initial and boundary training data. $\left\{x_{\Pi_u}^i,y_{\Pi_u}^i,t_{\Pi_u}^i\right\}_{i = 1}^{N_{\Pi_u}}$ and $\left\{x_{\Pi_p}^i,y_{\Pi_p}^i,t_{\Pi_p}^i\right\}_{i = 1}^{N_{\Pi_p}}$ specify the collocation points for $\Pi_{u}(x,y,t)$ and $\Pi_p(x,y,t)$ , as defined in Eqs (15) and (17). Similar to the diffusivity equation case, these collocation points are sampled using the Latin Hypercube method [51]. $N_{b}$ denotes the number of initial and boundary training data, and $N_{\Pi_u}$ and $N_{\Pi_p}$ are the number of collocation points for $\Pi_{u}$ and $\Pi_p$ , respectively. For the sake of simplification, in this investigation, we assume $N_{\Pi_u} = N_{\Pi_p} = N_{\Pi}$ and
484
+
485
+ $$
486
+ \left\{x _ {\Pi_ {u}} ^ {i}, y _ {\Pi_ {u}} ^ {i}, t _ {\Pi_ {u}} ^ {i} \right\} _ {i = 1} ^ {N _ {\Pi_ {u}}} = \left\{x _ {\Pi_ {p}} ^ {i}, y _ {\Pi_ {p}} ^ {i}, t _ {\Pi_ {p}} ^ {i} \right\} _ {i = 1} ^ {N _ {\Pi_ {p}}} = \left\{x _ {\Pi} ^ {i}, y _ {\Pi} ^ {i}, t _ {\Pi} ^ {i} \right\} _ {i = 1} ^ {N _ {\Pi}}.
487
+ $$
488
+
489
+ In Fig 8, we illustrate an example of exact solutions of $u$ , $v$ , and $p$ , and compare them to the prediction values obtained from our test set using the PINN trained with $N_{b} = 24$ , $N_{\Pi} = 20$ , $N_{hl} = 6$ , and $N_{n} = 5$ . This figure demonstrates that the PINN provides good approximations of the exact solutions. The dependency of the prediction accuracy on $N_{b}$ and $N_{\Pi}$ with the $N_{hl}$ and $N_{n}$ fixed to four and ten, respectively is illustrated in Table 5. Again, to deal with the stochastic behavior of the neural networks, we calculate an average of the relative $\mathcal{L}^2$ error over many realizations to obtain a clear pattern; see Panels B and C of Table 5. Similar to the diffusivity equation case, we observe the accuracy of the PINN is improved when $N_{b}$ and $N_{\Pi}$ are increased. We also note that the total amount of training examples required to achieve high accuracy, i.e., an average $\mathcal{L}^2$ error less than $1.0 \times 10^{-3}$ , is in the order of 100s. Again, we can illustrate the impact of the $\Pi$ terms by considering the case where we train a neural network to interpolate a feed-forward solution based on a known set of solution points with and without making use of the regularization terms. Without using $\Pi$ we obtain an average relative $\mathcal{L}^2$ error of $1.1 \times 10^{-1}$ based on 96 solution points while the average $\mathcal{L}^2$ error becomes less than $1.0 \times 10^{-3}$ when including $\Pi$ .
490
+
491
+ In Table 6, we present a sensitivity analysis of $N_{hl}$ and $N_{n}$ with a fixed size of the training set; $N_{b} = 96$ and $N_{\Pi} = 160$ . Once again, the observed trend becomes more apparent by averaging over many training realizations. We can now identify an extremum in the explored space of the hyperparameters corresponding to have $N_{hl} = 6$ and $N_{n} = 20$ ; see Panel C of Table 6. We then apply all of the 27 PINN networks trained with that choice of hyperparameters to the test set. We obtain the average $\mathcal{L}^2$ error of the test set to be $9.05 \times 10^{-5}$ , which is comparable to that of the validation set, $9.08 \times 10^{-5}$ .
492
+
493
+ In Fig 9, we show the behavior of the different loss terms as function of the training iterations, when using $N_{hl} = 6$ , $N_{n} = 20$ , $N_{b} = 96$ , and $N_{\Pi} = 160$ . Similar to the diffusivity equation, we observe that $MSE_{b}$ is generally higher than $MSE_{\Pi_{u}}$ and $MSE_{\Pi_{p}}$ . Furthermore, $MSE_{\Pi_{u}}$ and $MSE_{\Pi_{p}}$ are comparable. Unlike the diffusivity equation case (see Fig 5), we observe minor oscillations of $MSE$ , $MSE_{b}$ , $MSE_{\Pi_{u}}$ , and $MSE_{\Pi_{p}}$ during convergence.
494
+
495
+ ![](images/12144c380ae8989caa95192173434f5e4b03f0f096bd74a60152e60f0e0141fc.jpg)
496
+
497
+ ![](images/6a455be744817413d0c8ec1dd3b3001735c79ac14becc5250dcc7c5a61ddc734.jpg)
498
+
499
+ ![](images/8686a47027f12dfaf1e878215ed24dc7ec67ed5c862db1b245ee310d10d26004.jpg)
500
+
501
+ ![](images/c209eb370f94ae00614b40897057c4efda47411ccac22cdcc5c17eddf9e69c14.jpg)
502
+
503
+ ![](images/454c6d6e0c7a1e6dd350cb1dd413e6d0d7c740fc39763ddb0b5eda2a2c1122f8.jpg)
504
+
505
+ ![](images/f0e19696d359279d87365aa4d08b862c482c0e847eead11935da3cf6651107fe.jpg)
506
+
507
+ ![](images/a48ae9a9ca3d956d421143bd955cc8c827deda42068aa0524aeb6274d069960a.jpg)
508
+ Figure 8: Biot's equations - forward modeling: exact solutions (shown by surface plot) and 100 PINN predictions per time step using the test set (shown by black points). The PINN was trained using $N_{b} = 24$ , $N_{\Pi} = 20$ , $N_{hl} = 6$ , and $N_{n} = 5$ . The top row illustrates the displacement in the x-direction, $u$ , at (a) $t = 0.0$ , (b) $t = 0.5$ , and (c) $t = 1.0$ . The middle row illustrates the displacement in the y-direction, $v$ , at (d) $t = 0.0$ , (e) $t = 0.5$ , and (f) $t = 1.0$ . The bottom row illustrates the pressure, $p$ , at (g) $t = 0.0$ , (h) $t = 0.5$ , and (i) $t = 1.0$ .
509
+
510
+ ![](images/7adabcfbec8045ea92ccb0d859d569a83cb63dde0ea04785feb9451188156533.jpg)
511
+
512
+ ![](images/5a1cb363cb632ca141948c636262a8557a894988f188fb17f26a6d5ce39e23c1.jpg)
513
+
514
+ # Inverse model of Biot's equations
515
+
516
+ We rewrite Eq (15) to the parametrized form as:
517
+
518
+ $$
519
+ \Pi_ {\boldsymbol {u}} = \nabla \cdot \left[ 2 \theta_ {1} \varepsilon (\boldsymbol {u}) + \theta_ {2} \boldsymbol {u} \boldsymbol {I} \right] - \theta_ {3} \nabla \cdot p \boldsymbol {I} - \boldsymbol {f} \text {i n} \Omega \times \mathbb {T}, \tag {48}
520
+ $$
521
+
522
+ and Eq (17) as:
523
+
524
+ $$
525
+ \Pi_ {p} = \theta_ {4} \frac {\partial p}{\partial t} + \theta_ {3} \frac {\partial \nabla \cdot \boldsymbol {u}}{\partial t} - \theta_ {5} \nabla \cdot e ^ {\varepsilon_ {v}} (\nabla p - \rho \mathbf {g}) - g \text {i n} \Omega \times \mathbb {T}, \tag {49}
526
+ $$
527
+
528
+ where
529
+
530
+ $$
531
+ \theta_ {1} = \mu_ {l}, \quad \theta_ {2} = \lambda_ {l}, \quad \theta_ {3} = \alpha , \quad \theta_ {4} = \phi c _ {f} + \frac {\alpha - \phi}{K _ {s}}, \text {a n d} \quad \theta_ {5} = \kappa_ {0}. \tag {50}
532
+ $$
533
+
534
+ The II terms now have five additional unknown parameters, $\theta_{1},\theta_{2},\theta_{3},\theta_{4}$ , and $\theta_{5}$ that along with the weights and biases of the neural network are adjusted during the training of the network. Once again we apply Eq. (19) and obtain:
535
+
536
+ $$
537
+ M S E = M S E _ {t r} + M S E _ {\Pi_ {u}} + + M S E _ {\Pi_ {p}} \tag {51}
538
+ $$
539
+
540
+ Table 5: Biot's equations - forward modeling: PINN performance as function of training set size. Sum of relative $\mathcal{L}^2$ errors between the exact and predicted values of $u$ , $v$ , and $p$ for the validation set. The table shows the dependency on the number of the initial and boundary training data, $N_b$ , and on the number of collocation points, $N_{\Pi}$ . The hyperparemeters are fixed to 4 layers with 10 neurons per hidden layer.
541
+ Panel A: Average over 1 realization
542
+
543
+ <table><tr><td>NII
544
+ Nb</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td><td>160</td></tr><tr><td>2</td><td>0.4475</td><td>0.4257</td><td>0.5010</td><td>0.2865</td><td>0.2826</td><td>0.1438</td><td>0.1982</td></tr><tr><td>3</td><td>0.1770</td><td>0.1508</td><td>0.2464</td><td>0.2009</td><td>0.2059</td><td>0.1410</td><td>0.1751</td></tr><tr><td>6</td><td>0.4056</td><td>0.4615</td><td>0.0824</td><td>0.0042</td><td>0.1236</td><td>0.1327</td><td>0.1662</td></tr><tr><td>12</td><td>0.0412</td><td>0.0860</td><td>0.0722</td><td>0.0035</td><td>0.0005</td><td>0.0013</td><td>0.0267</td></tr><tr><td>24</td><td>0.0148</td><td>0.0824</td><td>0.0037</td><td>0.0019</td><td>0.0015</td><td>0.0007</td><td>0.0003</td></tr><tr><td>48</td><td>0.0532</td><td>0.0045</td><td>0.0027</td><td>0.0008</td><td>0.0019</td><td>0.0002</td><td>0.0099</td></tr><tr><td>96</td><td>0.0007</td><td>0.0005</td><td>0.0003</td><td>0.0006</td><td>0.0004</td><td>0.0001</td><td>0.0003</td></tr></table>
545
+
546
+ Panel B: Average over 3 realizations
547
+
548
+ <table><tr><td>NII
549
+ Nb</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td><td>160</td></tr><tr><td>2</td><td>0.4738</td><td>0.5502</td><td>0.5458</td><td>0.1493</td><td>0.1310</td><td>0.2138</td><td>0.1804</td></tr><tr><td>3</td><td>0.3415</td><td>0.1240</td><td>0.3578</td><td>0.3044</td><td>0.1573</td><td>0.1192</td><td>0.1562</td></tr><tr><td>6</td><td>0.5052</td><td>0.1423</td><td>0.0733</td><td>0.1688</td><td>0.2066</td><td>0.1158</td><td>0.0005</td></tr><tr><td>12</td><td>0.0551</td><td>0.0566</td><td>0.0044</td><td>0.0087</td><td>0.0472</td><td>0.0037</td><td>0.1108</td></tr><tr><td>24</td><td>0.0498</td><td>0.0135</td><td>0.0045</td><td>0.0005</td><td>0.0009</td><td>0.0016</td><td>0.0013</td></tr><tr><td>48</td><td>0.0034</td><td>0.0016</td><td>0.0246</td><td>0.0012</td><td>0.0027</td><td>0.0002</td><td>0.0015</td></tr><tr><td>96</td><td>0.0004</td><td>0.0002</td><td>0.0006</td><td>0.0005</td><td>0.0006</td><td>0.0001</td><td>0.0014</td></tr></table>
550
+
551
+ Panel C: Average over 27 realizations
552
+
553
+ <table><tr><td>NII
554
+ Nb</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td><td>160</td></tr><tr><td>2</td><td>0.5320</td><td>0.4828</td><td>0.4473</td><td>0.2458</td><td>0.2253</td><td>0.2660</td><td>0.3100</td></tr><tr><td>3</td><td>0.4660</td><td>0.4211</td><td>0.3503</td><td>0.1781</td><td>0.1644</td><td>0.1661</td><td>0.1870</td></tr><tr><td>6</td><td>0.4031</td><td>0.1765</td><td>0.1380</td><td>0.0583</td><td>0.0871</td><td>0.0852</td><td>0.1340</td></tr><tr><td>12</td><td>0.1086</td><td>0.0641</td><td>0.0471</td><td>0.0059</td><td>0.0169</td><td>0.0164</td><td>0.0195</td></tr><tr><td>24</td><td>0.0525</td><td>0.0220</td><td>0.0101</td><td>0.0142</td><td>0.0052</td><td>0.0016</td><td>0.0012</td></tr><tr><td>48</td><td>0.0061</td><td>0.0030</td><td>0.0013</td><td>0.0013</td><td>0.0012</td><td>0.0003</td><td>0.0009</td></tr><tr><td>96</td><td>0.0022</td><td>0.0005</td><td>0.0008</td><td>0.0006</td><td>0.0004</td><td>0.0007</td><td>0.0005</td></tr></table>
555
+
556
+ where
557
+
558
+ $$
559
+ \begin{array}{l} M S E _ {t r} = \frac {1}{N _ {t r}} \sum_ {i = 1} ^ {N _ {t r}} \left(\left| u \left(x _ {t r} ^ {i}, y _ {t r} ^ {i}, t _ {t r} ^ {i}\right) - u ^ {i} \right| ^ {2} + \left| v \left(x _ {t r} ^ {i}, y _ {t r} ^ {i}, t _ {t r} ^ {i}\right) - v ^ {i} \right| ^ {2} \right. \tag {52} \\ + \left| p \left(x _ {t r} ^ {i}, y _ {t r} ^ {i}, t _ {t r} ^ {i}\right) - p ^ {i} \right| ^ {2}), \\ \end{array}
560
+ $$
561
+
562
+ $$
563
+ M S E _ {\Pi_ {u}} = \frac {1}{N _ {\Pi_ {u}}} \sum_ {i = 1} ^ {N _ {\Pi_ {u}}} \left| \Pi_ {u} \left(x _ {\Pi_ {u}} ^ {i}, y _ {\Pi_ {u}} ^ {i}, t _ {\Pi_ {u}} ^ {i}\right) \right| ^ {2}, \tag {53}
564
+ $$
565
+
566
+ Table 6: Biot's equations - forward modeling: PINN performance as function of hyperparameters. Sum of relative $\mathcal{L}^2$ errors between the exact and predicted values of $u$ , $v$ , and $p$ for the validation set. The table shows the dependency on the different number of hidden layers, $N_{hl}$ , and different number of neurons per layer, $N_{n}$ . Here, the total number of training and collocation points is fixed to $N_{b} = 96$ and $N_{\Pi} = 160$ , respectively.
567
+
568
+ Panel A: Average over 1 realization
569
+
570
+ <table><tr><td>Nn
571
+ Nhl</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td></tr><tr><td>2</td><td>0.56506</td><td>0.01617</td><td>0.00782</td><td>0.00045</td><td>0.00021</td><td>0.00115</td></tr><tr><td>4</td><td>0.12080</td><td>0.00316</td><td>0.00013</td><td>0.00019</td><td>0.00020</td><td>0.00016</td></tr><tr><td>6</td><td>0.45949</td><td>0.02069</td><td>0.00052</td><td>0.00060</td><td>0.00010</td><td>0.00020</td></tr><tr><td>8</td><td>0.14333</td><td>0.00971</td><td>0.93757</td><td>0.00048</td><td>0.00034</td><td>0.00015</td></tr><tr><td>16</td><td>0.14052</td><td>0.14110</td><td>0.00041</td><td>0.00020</td><td>0.00020</td><td>0.00019</td></tr><tr><td>32</td><td>0.60485</td><td>0.03188</td><td>0.00866</td><td>0.00972</td><td>0.00028</td><td>0.00039</td></tr></table>
572
+
573
+ Panel B: Average over 3 realizations
574
+
575
+ <table><tr><td>Nn
576
+ Nhl</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td></tr><tr><td>2</td><td>0.30761</td><td>0.01074</td><td>0.00346</td><td>0.00019</td><td>0.00026</td><td>0.00020</td></tr><tr><td>4</td><td>0.13684</td><td>0.01101</td><td>0.00032</td><td>0.00006</td><td>0.00007</td><td>0.00008</td></tr><tr><td>6</td><td>0.14338</td><td>0.04415</td><td>0.00018</td><td>0.00012</td><td>0.00009</td><td>0.00007</td></tr><tr><td>8</td><td>0.47702</td><td>0.01634</td><td>0.00020</td><td>0.00010</td><td>0.00008</td><td>0.00007</td></tr><tr><td>16</td><td>0.33020</td><td>0.13525</td><td>0.00081</td><td>0.00041</td><td>0.00013</td><td>0.00013</td></tr><tr><td>32</td><td>0.46854</td><td>0.61381</td><td>0.38437</td><td>0.07503</td><td>0.00087</td><td>0.00010</td></tr></table>
577
+
578
+ Panel C: Average over 27 realizations
579
+
580
+ <table><tr><td>Nn
581
+ Nhl</td><td>2</td><td>5</td><td>10</td><td>20</td><td>40</td><td>80</td></tr><tr><td>2</td><td>0.24203</td><td>0.02952</td><td>0.00180</td><td>0.00062</td><td>0.00021</td><td>0.00023</td></tr><tr><td>4</td><td>0.39596</td><td>0.06005</td><td>0.00368</td><td>0.00039</td><td>0.00010</td><td>0.00014</td></tr><tr><td>6</td><td>0.32610</td><td>0.07829</td><td>0.00018</td><td>0.00009</td><td>0.00010</td><td>0.00014</td></tr><tr><td>8</td><td>0.42070</td><td>0.12314</td><td>0.00037</td><td>0.00013</td><td>0.00010</td><td>0.00012</td></tr><tr><td>16</td><td>0.46364</td><td>0.12222</td><td>0.09613</td><td>0.05190</td><td>0.00012</td><td>0.00011</td></tr><tr><td>32</td><td>0.41372</td><td>0.38439</td><td>0.38473</td><td>0.03998</td><td>0.05080</td><td>0.01052</td></tr></table>
582
+
583
+ and
584
+
585
+ $$
586
+ M S E _ {\Pi_ {p}} = \frac {1}{N _ {\Pi_ {p}}} \sum_ {i = 1} ^ {N _ {\Pi_ {p}}} \left| \Pi_ {p} \left(x _ {\Pi_ {p}} ^ {i}, y _ {\Pi_ {p}} ^ {i}, t _ {\Pi_ {p}} ^ {i}\right) \right| ^ {2}, \tag {54}
587
+ $$
588
+
589
+ where $\{x_{tr}^i, y_{tr}^i, t_{tr}^i, u^i, v^i, p^i\}_{i=1}^{N_{tr}}$ refer to the set of training data. In contrast to the forward model, we can apply the training points as collocation points when calculating the terms given by Eqs (48) and (49). To recap, the $N_{tr}$ denotes the number of training data. Similar to the forward model, all physical constants are set to one, i.e., $\theta_1, \theta_2, \theta_3, \theta_4$ , and $\theta_5$ are equal to one. Note that these $\theta$ are constant throughout the domain.
590
+
591
+ We use the optimal hyperparameters, i.e., $N_{hl} = 6$ and $N_{n} = 20$ from the sensitivity analysis of the forward model (see Panel C of Table 6). In Table 7, we can observe that this choice also yields the least $\mathcal{L}^2$ error with respect to both $p$ , $u$ , and $v$ and the lowest percentage error for the unknown physical parameters $(\theta_1, \theta_2, \theta_3, \theta_4,$ and $\theta_5)$ . Moreover, we observe that the $\mathcal{L}^2$ error of the output space and percentage error of the unknown physical parameters are not much different with different combinations of the hyperparameters.
592
+
593
+ The performance of the PINN model as a function of the number of training examples $N_{tr}$ is depicted in Fig 10. We can observe that the stochastic variations in the estimated values of $\theta_{1}, \theta_{2}, \theta_{3}, \theta_{4}$ and $\theta_{5}$ , in general, are reduced the more training examples we apply. Moreover, the relative $\mathcal{L}^2$ errors of $u, v$ , and $p$ are always less than $0.01\%$ . Using
594
+
595
+ ![](images/fec0f640dd10f5528acc4e6e46affbf34844f26c485fc5dd5e62fad757a8eb9b.jpg)
596
+ Figure 9: Biot's equations - forward modeling: mean square training error plot. This model uses $N_{hl} = 6$ , $N_{n} = 20$ , $N_{b} = 96$ , and $N_{\Pi} = 160$ . MSE, $MSE_{b}$ , $MSE_{\Pi_{u}}$ , and $MSE_{\Pi_{p}}$ are calculated using Eqs. 44, 45, 46, and 47, respectively.
597
+
598
+ in the order of 1000 examples, the average estimation error of the physical parameters is in the order of $1\%$ , but as with the diffusivity case, there is a large variation between the trained PINN models. Within the 27 realizations of the trained PINN models with $N_{tr} = 1000$ the percentage errors of $\theta_{1}, \theta_{2}, \theta_{3}, \theta_{4}$ and $\theta_{5}$ varied between 0.05, 0.02, 0.03, 0.04, and 0.03 and 2.51, 6.14, 4.75, 8.12, and 3.60, respectively. Having 1000 training examples in actual cases, i.e., lab experiments or field observations, is realistic. Hence, also for the Biot's equations, we observe the feasibility of the PINN model to handle the inverse problem by estimating the unknown physical parameters using a reasonably sized data set.
599
+
600
+ Next, we perform a systematic study of the effect of noise in data, which is created utilizing Eq (35). The results are presented in Table 8 for $\theta_{1}$ , $\theta_{2}$ , $\theta_{3}$ , $\theta_{4}$ , and $\theta_{5}$ . Note that these results are an average over ten realizations. We can observe that the percentage error of $\theta_{1}$ , $\theta_{2}$ , $\theta_{3}$ , $\theta_{4}$ , and $\theta_{5}$ increase along with the noise level $(\epsilon)$ , but as $N_{tr}$ is increased, the impact of the noise is reduced.
601
+
602
+ All calculations were carried out using a XeonE5_2660v3 processor with a single thread. As an example of the Biot's equations, the CPU time for training the neural networks using $N_{tr} = 10000$ and 15000 with no noise are 128037 seconds and 186154 seconds, respectively. Note that the reported values are obtained from the model trained using the combined ADAM and L-BFGS. Using L-BFGS alone, the CPU times of model with $N_{tr} = 10000$ and 15000 are 222681 and 294768 seconds, respectively.
603
+
604
+ # Conclusion
605
+
606
+ This paper studies the application of physics-informed neural networks (PINN) for solving the nonlinear diffusivity and Biot's equations in the context of forward and inverse modelings. The following conclusions are drawn:
607
+
608
+ - PINN can be used to solve the forward modeling problem for the nonlinear diffusivity and Biot's equations, at least for the type of geometries considered in this paper. The displacement and pressure variables of our test sets could be predicted with an average $\mathcal{L}^2$ error of $9.05 \times 10^{-5} \pm 3.1 \times 10^{-4}$ based on 27 realizations.
609
+ - For the inverse modeling cases, PINN can predict all of the unknown physical parameters with an average percentage error of around $1\%$ ; however, the stochastic variations from one PINN implementation to the next is quite large. Using, for instance, 1000 training examples in the Biot's equation case, the percentage error of the estimated physical parameters over 27 PINN models could vary from 0.02 to 8.12. Increasing the number of training examples reduces this problem. Still, our results indicate it would be essential to do an average over PINN models with different random initialization of the weights and biases. This process may lead to the
610
+
611
+ Table 7: Biot's equations - inverse modeling: PINN performance as function of hyperparameters. Relative $\mathcal{L}^2$ error of $p$ , $u$ , and $v$ and percentage error of $\theta_{1}$ , $\theta_{2}$ , $\theta_{3}$ , $\theta_{4}$ , and $\theta_{5}$ for different number of hidden layers, $N_{hl}$ , and different number of neurons per layer, $N_{n}$ . The $N_{tr}$ is fixed at 250. Note that we pick the optimal hyperparameters, i.e., $N_{hl} = 6$ and $N_{n} = 20$ from the sensitivity analysis of the forward model. Results shown in this table are an average over 27 realizations.
612
+
613
+ <table><tr><td></td><td>\(N_{n}\) \(N_{hl}\)</td><td>2</td><td>5</td><td>10</td></tr><tr><td rowspan="3">p</td><td>4</td><td>0.00006</td><td>0.00004</td><td>0.00008</td></tr><tr><td>6</td><td>0.00009</td><td>0.00004</td><td>0.00006</td></tr><tr><td>8</td><td>0.00008</td><td>0.00006</td><td>0.00005</td></tr><tr><td rowspan="3">u</td><td>4</td><td>0.00019</td><td>0.00016</td><td>0.00047</td></tr><tr><td>6</td><td>0.00051</td><td>0.00013</td><td>0.00036</td></tr><tr><td>8</td><td>0.00027</td><td>0.00036</td><td>0.00034</td></tr><tr><td rowspan="3">v</td><td>4</td><td>0.00042</td><td>0.00045</td><td>0.00098</td></tr><tr><td>6</td><td>0.00114</td><td>0.00038</td><td>0.00074</td></tr><tr><td>8</td><td>0.00060</td><td>0.00079</td><td>0.00071</td></tr><tr><td rowspan="3">θ1</td><td>4</td><td>0.20180</td><td>0.28665</td><td>1.06223</td></tr><tr><td>6</td><td>0.72512</td><td>0.16844</td><td>0.97916</td></tr><tr><td>8</td><td>0.30534</td><td>0.70613</td><td>0.99229</td></tr><tr><td rowspan="3">θ2</td><td>4</td><td>0.65507</td><td>0.66560</td><td>3.56789</td></tr><tr><td>6</td><td>2.23747</td><td>0.23053</td><td>2.80360</td></tr><tr><td>8</td><td>1.21152</td><td>1.47513</td><td>2.45137</td></tr><tr><td rowspan="3">θ3</td><td>4</td><td>0.02968</td><td>0.05016</td><td>0.23851</td></tr><tr><td>6</td><td>0.33292</td><td>0.02935</td><td>0.10100</td></tr><tr><td>8</td><td>0.22593</td><td>0.11796</td><td>0.07371</td></tr><tr><td rowspan="3">θ4</td><td>4</td><td>0.04834</td><td>0.06162</td><td>0.19135</td></tr><tr><td>6</td><td>0.18104</td><td>0.04666</td><td>0.13785</td></tr><tr><td>8</td><td>0.10711</td><td>0.16124</td><td>0.12127</td></tr><tr><td rowspan="3">θ5</td><td>4</td><td>0.19710</td><td>0.21622</td><td>1.10700</td></tr><tr><td>6</td><td>1.24043</td><td>0.17633</td><td>0.60595</td></tr><tr><td>8</td><td>0.81199</td><td>0.50331</td><td>0.39558</td></tr></table>
614
+
615
+ requirement of more processing power. This challenge might be even higher when applying PINN to more complex geometries and heterogeneous materials.
616
+
617
+ - For the inverse modeling, PINN is tolerant to a noise level up to $5\%$ (the estimation error of physical parameters is approximately less than $15\%$ ). Again, this requires that one does an average over several PINN realizations. As expected, the result improves when the number of training examples is increased.
618
+ - We have presented arguments on why the hyperparameters selection process for the forward case is likely to be applicable to the inverse case. For the cases considered here, this was confirmed experimentally. However, this should be explored in more detail by investigating the use of PINN for other types of nonlinear partial differential equations.
619
+
620
+ Finally, in terms of future work, the capability of the physics-informed neural networks should be tested in the case where the input data is incomplete, i.e., $\mathbf{u}$ and $p$ are not available at the same spatial and temporal coordinates. Besides, one could investigate the potential benefits of training networks using mini-batches. Moreover, smarter initialization of the weights and biases (based on transfer learning principles) could potentially be employed to increase the speed and accuracy of the training procedure [56].
621
+
622
+ # Acknowledgments
623
+
624
+ The research leading to these results has received funding from the Danish Hydrocarbon Research and Technology Centre under the Advanced Water Flooding program.
625
+
626
+ # Author Contributions
627
+
628
+ Conceptualization: Teeratorn Kadeethum, Thomas M Jorgensen, Hamidreza M Nick
629
+
630
+ ![](images/58f80bd7405b1772bd996dfd34a2b891782cbe83c845713bff8fafe01a5ba324.jpg)
631
+ Figure 10: Biot's equations - inverse modeling: PINN performance as function of training set size. This figure shows the estimated error dependency on the amount of training data, $N_{tr}$ . (a) $\theta_1$ , $\theta_2$ , $\theta_3$ , $\theta_4$ , and $\theta_5$ and (b) $u$ , $v$ , and $p$ . The error bars show mean and standard derivation (± 1 SD) based on 27 realizations. The reported error values of $\theta_1$ , $\theta_2$ , $\theta_3$ , $\theta_4$ , and $\theta_5$ are percentage errors while the relative $\mathcal{L}^2$ error is shown for $u$ , $v$ , and $p$ . Note that there is no noise in this investigation.
632
+
633
+ ![](images/332a1f424a396128bbd82bab758d49b3bbf981c4a36306b23f22f7c0cd7d135e.jpg)
634
+
635
+ Formal Analysis: Teeratorn Kadeethum
636
+
637
+ Funding Acquisition: Hamidreza M Nick
638
+
639
+ Software: Teeratorn Kadeethum
640
+
641
+ Supervision: Thomas M Jorgensen, Hamidreza M Nick
642
+
643
+ Validation: Thomas M Jorgensen, Hamidreza M Nick
644
+
645
+ Writing - Original Draft Preparation: Teeratorn Kadeethum, Thomas M Jorgensen
646
+
647
+ Writing - Review and Editing: Teeratorn Kadeethum, Thomas M Jorgensen, Hamidreza M Nick
648
+
649
+ # References
650
+
651
+ [1] HM Nick, A Raoof, F Centler, M Thullner, and P Regnier. Reactive dispersive contaminant transport in coastal aquifers: numerical simulation of a reactive Henry problem. Journal of contaminant hydrology, 145:90-104, 2013.
652
+ [2] Kevin Bisdom, Giovanni Bertotti, and Hamidreza M Nick. The impact of in-situ stress and outcrop-based fracture geometry on hydraulic aperture and upscaled permeability in fractured reservoirs. Tectonophysics, 690:63-75, 2016.
653
+ [3] Sanghyun Lee, Mary F Wheeler, and Thomas Wick. Pressure and fluid-driven fracture propagation in porous media using an adaptive finite element phase field model. Computer Methods in Applied Mechanics and Engineering, 305:111-132, 2016.
654
+ [4] R Juanes, B Jha, BH Hager, JH Shaw, A Plesch, L Astiz, JH Dieterich, and C Frohlich. Were the May 2012 Emilia-Romagna earthquakes induced? A coupled flow-geomechanics modeling assessment. Geophysical Research Letters, 43(13):6891-6897, 2016.
655
+ [5] V Vinje, J Brucker, ME Rognes, KA Mardal, and V Haughton. Fluid dynamics in syringomyelia cavities: Effects of heart rate, CSF velocity, CSF velocity waveform and craniovertebral decompression. The neuroradiology journal, page 1971400918795482, 2018.
656
+
657
+ Table 8: Biot's equations - inverse modeling: PINN performance as function of noise. This figure shows the average percentage errors of $\theta_{1}$ , $\theta_{2}$ , $\theta_{3}$ , $\theta_{4}$ , and $\theta_{5}$ for different numbers of training data $N_{tr}$ corrupted by different noise levels (ε). Here, the neural network architecture is kept fixed to 6 layers and 20 neurons per layer. These results are an average over 10 realizations.
658
+
659
+ <table><tr><td colspan="2">Noise (ε)</td><td rowspan="2">0%</td><td rowspan="2">1%</td><td rowspan="2">5%</td><td rowspan="2">10%</td></tr><tr><td colspan="2">Ntr</td></tr><tr><td rowspan="5">θ1</td><td>1000</td><td>0.91</td><td>6.40</td><td>7.15</td><td>29.55</td></tr><tr><td>1500</td><td>0.98</td><td>4.64</td><td>5.70</td><td>14.86</td></tr><tr><td>2000</td><td>0.67</td><td>2.17</td><td>5.26</td><td>15.95</td></tr><tr><td>2500</td><td>0.52</td><td>3.87</td><td>5.33</td><td>12.24</td></tr><tr><td>5000</td><td>0.30</td><td>1.39</td><td>3.32</td><td>7.60</td></tr><tr><td rowspan="5">θ2</td><td>1000</td><td>1.48</td><td>10.26</td><td>12.30</td><td>17.50</td></tr><tr><td>1500</td><td>0.84</td><td>6.95</td><td>5.44</td><td>14.53</td></tr><tr><td>2000</td><td>1.37</td><td>4.38</td><td>6.73</td><td>13.48</td></tr><tr><td>2500</td><td>0.80</td><td>3.95</td><td>2.91</td><td>6.31</td></tr><tr><td>5000</td><td>0.51</td><td>1.97</td><td>2.90</td><td>3.14</td></tr><tr><td rowspan="5">θ3</td><td>1000</td><td>1.19</td><td>2.85</td><td>5.06</td><td>8.10</td></tr><tr><td>1500</td><td>0.87</td><td>1.32</td><td>2.52</td><td>4.80</td></tr><tr><td>2000</td><td>0.58</td><td>1.35</td><td>2.49</td><td>4.11</td></tr><tr><td>2500</td><td>0.11</td><td>0.38</td><td>1.54</td><td>4.12</td></tr><tr><td>5000</td><td>0.10</td><td>0.24</td><td>1.72</td><td>2.36</td></tr><tr><td rowspan="5">θ4</td><td>1000</td><td>0.46</td><td>4.70</td><td>8.35</td><td>13.75</td></tr><tr><td>1500</td><td>0.43</td><td>3.01</td><td>5.22</td><td>8.53</td></tr><tr><td>2000</td><td>0.23</td><td>2.99</td><td>4.12</td><td>10.08</td></tr><tr><td>2500</td><td>0.24</td><td>0.64</td><td>5.88</td><td>9.34</td></tr><tr><td>5000</td><td>0.20</td><td>0.45</td><td>1.62</td><td>6.53</td></tr><tr><td rowspan="5">θ5</td><td>1000</td><td>3.46</td><td>9.22</td><td>16.15</td><td>24.52</td></tr><tr><td>1500</td><td>2.70</td><td>5.64</td><td>14.16</td><td>19.75</td></tr><tr><td>2000</td><td>0.44</td><td>3.76</td><td>11.56</td><td>17.55</td></tr><tr><td>2500</td><td>0.66</td><td>2.23</td><td>6.82</td><td>7.09</td></tr><tr><td>5000</td><td>0.24</td><td>1.28</td><td>4.26</td><td>5.91</td></tr></table>
660
+
661
+ As the noise $(\epsilon)$ is increased, the error increases as expected.
662
+
663
+ [6] Maurice Biot. General theory of three-dimensional consolidation. Journal of applied physics, 12(2):155-164, 1941.
664
+ [7] MA Biot and DG Willis. The elastic coeff cients of the theory of consolidation. J. appl. Mech, 15:594-601, 1957.
665
+ [8] Karl Terzaghi. Theoretical soil mechanics. Chapman And Hall, Limited.; London, 1951.
666
+ [9] Herbert F Wang. Theory of linear poroelasticity with applications to geomechanics and hydrogeology. Princeton University Press, 2017.
667
+ [10] Yder J Masson and SR Pride. Finite-difference modeling of biot's poroelastic equations across all frequencies. Geophysics, 75(2):N33–N41, 2010.
668
+ [11] Fabian Wenzlau and Tobias M Müller. Finite-difference modeling of wave propagation and diffusion in poroelastic media. Geophysics, 74(4):T55–T66, 2009.
669
+ [12] Jan Martin Nordbotten. Cell-centered finite volume discretizations for deformable porous media. International journal for numerical methods in engineering, 100(6):399-418, 2014.
670
+ [13] Irina Sokolova, Muhammad Gusti Bastisya, and Hadi Hajibeygi. Multiscale finite volume method for finite-volume-based simulation of poroelasticity. Journal of Computational Physics, 379:309-324, 2019.
671
+ [14] Joachim Berdal Haga, Harald Osnes, and Hans Petter Langtangen. On the causes of pressure oscillations in low permeable and low compressible porous media. International Journal for Numerical and Analytical Methods in Geomechanics, 36(12):1507-1522, 2012.
672
+ [15] Marcio A Murad, Marcio Borges, Jesus A Obregón, and Maicon Correa. A new locally conservative numerical method for two-phase flow in heterogeneous poroelastic media. Computers and Geotechnics, 48:192-207, 2013.
673
+ [16] Mary Wheeler, Guangri Xue, and Ivan Yotov. Coupling multipoint flux mixed finite element methods with continuous Galerkin methods for poroelasticity. Computational Geosciences, 18(1):57-75, 2014.
674
+
675
+ [17] Nikolaos Bouklas, Chad M Landis, and Rui Huang. A nonlinear, transient finite element method for coupled solvent diffusion and large deformation of hydrogels. Journal of the Mechanics and Physics of Solids, 79:21-43, 2015.
676
+ [18] Nikolaos Bouklas, Chad M Landis, and Rui Huang. Effect of solvent diffusion on crack-tip fields and driving force for fracture of hydrogels. Journal of Applied Mechanics, 82(8), 2015.
677
+ [19] Jinhyun Choo and Sanghyun Lee. Enriched Galerkin finite elements for coupled poromechanics with local mass conservation. Computer Methods in Applied Mechanics and Engineering, 341:311-332, 2018.
678
+ [20] Jiangguo Liu, Simon Tavener, and Zhuoran Wang. Lowest-order weak Galerkin finite element method for Darcy flow on convex polygonal meshes. SIAM Journal on Scientific Computing, 40(5):B1229-B1252, 2018.
679
+ [21] R Liu, Mary F Wheeler, Clinton N Dawson, and RH Dean. On a coupled discontinuous/continuous galerkin framework and an adaptive penalty scheme for poroelasticity problems. Computer Methods in Applied Mechanics and Engineering, 198(41-44):3499-3510, 2009.
680
+ [22] Per Christian Hansen. Discrete inverse problems: insight and algorithms, volume 7. Siam, 2010.
681
+ [23] Jan S Hesthaven, Gianluigi Rozza, Benjamin Stamm, et al. Certified reduced basis methods for parametrized partial differential equations. Springer, 2016.
682
+ [24] Jian-Xun Wang, Jin-Long Wu, and Heng Xiao. Physics-informed machine learning approach for reconstructing reynolds stress modeling discrepancies based on dns data. Physical Review Fluids, 2(3):034603, 2017.
683
+ [25] Maziar Raissi. Deep hidden physics models: Deep learning of nonlinear partial differential equations. The Journal of Machine Learning Research, 19(1):932-955, 2018.
684
+ [26] Maziar Raissi, Paris Perdikaris, and George E Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378:686-707, 2019.
685
+ [27] J Nathan Kutz. Deep learning in fluid dynamics. Journal of Fluid Mechanics, 814:1-4, 2017.
686
+ [28] Zheng Wang, Dunhui Xiao, Fangxin Fang, Rajesh Govindan, Christopher C Pain, and Yike Guo. Model identification of reduced order fluid dynamics systems using deep learning. International Journal for Numerical Methods in Fluids, 86(4):255-268, 2018.
687
+ [29] Zhen Zhang, Xu-dong Song, Shu-ran Ye, Yi-wei Wang, Chen-guang Huang, Yi-ran An, and Yao-song Chen. Application of deep learning method to reynolds stress models of channel flow based on reduced-order modeling of dns data. Journal of Hydrodynamics, 31(1):58-65, 2019.
688
+ [30] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097-1105, 2012.
689
+ [31] Babak Alipanahi, Andrew Delong, Matthew T Weirauch, and Brendan J Frey. Predicting the sequence specificities of dna-and rna-binding proteins by deep learning. Nature biotechnology, 33(8):831, 2015.
690
+ [32] Dinggang Shen, Guorong Wu, and Heung-Il Suk. Deep learning in medical image analysis. Annual review of biomedical engineering, 19:221–248, 2017.
691
+ [33] Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. nature, 521(7553):436, 2015.
692
+ [34] Ejaz Ahmed, Michael Jones, and Tim K Marks. An improved deep learning architecture for person re-identification. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3908–3916, 2015.
693
+ [35] Maziar Raissi, Paris Perdikaris, and George Em Karniadakis. Inferring solutions of differential equations using noisy multi-fidelity data. Journal of Computational Physics, 335:736-746, 2017.
694
+ [36] Heng Xiao, J-L Wu, J-X Wang, Rui Sun, and CJ Roy. Quantifying and reducing model-form uncertainties in reynolds-averaged navier-stokes simulations: A data-driven, physics-informed bayesian approach. Journal of Computational Physics, 324:115-136, 2016.
695
+ [37] Ricardo Ruiz Baier, Alessio Gizzi, Alessandro Loppini, Christian Cherubini, and Simonetta Filippi. Modelling thermo-electro-mechanical effects in orthotropic cardiac tissue. Communications in Computational Physics, 2019.
696
+ [38] T. Kadeethum, H.M. Nick, S. Lee, C.N. Richardson, S. Salimzadeh, and F. Ballarin. A Novel Enriched Galerkin Method for Modelling Coupled Flow and Mechanical Deformation in Heterogeneous Porous Media. In 53rd US Rock Mechanics/Geomechanics Symposium, New York, NY, USA, 2019. American Rock Mechanics Association.
697
+ [39] J. Jaeger, N. Cook, and R. Zimmerman. Fundamentals of Rock Mechanics. Wiley-Blackwell, 4th edition, 2010.
698
+ [40] Olivier Coussy. Poromechanics. John Wiley & Sons, 2004.
699
+
700
+ [41] Louis J Durlofsky. Numerical calculation of equivalent grid block permeability tensors for heterogeneous porous media. Water resources research, 27(5):699-708, 1991.
701
+ [42] Lars Holden and Oddvar Lia. A tensor estimator for the homogenization of absolute permeability. Transport in porous media, 8(1):37-46, 1992.
702
+ [43] David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning representations by back-propagating errors. nature, 323(6088):533-536, 1986.
703
+ [44] Geoffrey E Hinton and Ruslan R Salakhutdinov. Reducing the dimensionality of data with neural networks. science, 313(5786):504-507, 2006.
704
+ [45] Ian Goodfellow, *Yoshua Bengio*, and Aaron Courville. *Deep learning*. MIT press, 2016.
705
+ [46] Martin Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dandelion Mané, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaogiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. Software available from tensorflow.org.
706
+ [47] Andreas Griewank et al. On automatic differentiation. Mathematical Programming: recent developments and applications, 6(6):83-107, 1989.
707
+ [48] George Corliss, Christele Faure, Andreas Griewank, Laurent Hascoet, and Uwe Naumann. Automatic differentiation of algorithms: from simulation to optimization. Springer Science & Business Media, 2002.
708
+ [49] Dong C Liu and Jorge Nocedal. On the limited memory bfgs method for large scale optimization. Mathematical programming, 45(1-3):503-528, 1989.
709
+ [50] Robert Malouf. A comparison of algorithms for maximum entropy parameter estimation. In proceedings of the 6th conference on Natural language learning-Volume 20, pages 1-7. Association for Computational Linguistics, 2002.
710
+ [51] M Baudin et al. pydoe: The experimental design package for python, 2015.
711
+ [52] Igor V Tetko, David J Livingstone, and Alexander I Luik. Neural network studies. 1. comparison of overfitting and overtraining. Journal of chemical information and computer sciences, 35(5):826-833, 1995.
712
+ [53] Jiancheng Du and R. C K Wong. Application of strain-induced permeability model in a coupled geomechanics-reservoir simulator. Journal of Canadian Petroleum Technology, 46(12):55-61, 2007.
713
+ [54] Jamal Hussein Abou-Kassem, M Rafiq Islam, and SM Farouq-Ali. Petroleum Reservoir Simulations. Elsevier, 2013.
714
+ [55] Teeratorn Kadeethum, Hamid Nick, and S Lee. Comparison of two-and three-field formulation discretizations for flow and solid deformation in heterogeneous porous media. In 20th Annual Conference of the International Association for Mathematical Geosciences, 2019.
715
+ [56] Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? In Advances in neural information processing systems, pages 3320-3328, 2014.
2002.08xxx/2002.08235/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88740587f70b90a53d88b4ceec5803f08d67744cfb3d3c7610b8b063c5a98b14
3
+ size 1788798
2002.08xxx/2002.08235/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08243/5cf00148-c56b-49a8-b569-25f6b6dabd16_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08243/5cf00148-c56b-49a8-b569-25f6b6dabd16_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08243/5cf00148-c56b-49a8-b569-25f6b6dabd16_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64ff25df7d1856d0471eada92628a37cb63b5714b8ff68428e26c5115128c78f
3
+ size 421450
2002.08xxx/2002.08243/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08243/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7b50f41a1a39d632b7b69ddd0be26176804c7e18425aba685408151ced4982a
3
+ size 2380307
2002.08xxx/2002.08243/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08246/71cdedc4-ea57-42fa-8215-2dac1de995f9_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08246/71cdedc4-ea57-42fa-8215-2dac1de995f9_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08246/71cdedc4-ea57-42fa-8215-2dac1de995f9_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83b2b704d851d9af470229a0c7a51171acd723778afef18377a106b7e8286840
3
+ size 1298128
2002.08xxx/2002.08246/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08246/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88469e7c4d6e8ab33ecb2b8b3b6af3c39651e0f95455888b6b8dd7062f07a588
3
+ size 2526422
2002.08xxx/2002.08246/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08264/1ab8352f-8757-44cd-b927-0e5a09266b46_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08264/1ab8352f-8757-44cd-b927-0e5a09266b46_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08264/1ab8352f-8757-44cd-b927-0e5a09266b46_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8099dfac545e4d6c1ced9bf52f0d06caf3c7c6b9ec3f74a31fd563d43f6ab1cb
3
+ size 706129
2002.08xxx/2002.08264/full.md ADDED
@@ -0,0 +1,465 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Łukasz Maziarka $^{12}$ Tomasz Danel $^{12}$ Sławomir Mucha $^{2}$ Krzysztof Rataj $^{1}$ Jacek Tabor $^{2}$ Stanisław Jastrzebski $^{3,4}$
2
+
3
+ # Abstract
4
+
5
+ Designing a single neural network architecture that performs competitively across a range of molecule property prediction tasks remains largely an open challenge, and its solution may unlock a widespread use of deep learning in the drug discovery industry. To move towards this goal, we propose Molecule Attention Transformer (MAT). Our key innovation is to augment the attention mechanism in Transformer using inter-atomic distances and the molecular graph structure. Experiments show that MAT performs competitively on a diverse set of molecular prediction tasks. Most importantly, with a simple self-supervised pretraining, MAT requires tuning of only a few hyperparameter values to achieve state-of-the-art performance on downstream tasks. Finally, we show that attention weights learned by MAT are interpretable from the chemical point of view.
6
+
7
+ # 1. Introduction
8
+
9
+ The task of predicting properties of a molecule lies at the center of applications such as drug discovery or material design. In particular, estimated $85\%$ drug candidates fail the clinical trials in the United States after a long and costly development process (Wong et al., 2018). Potentially, many of these failures could have been avoided by having correctly predicted a clinically relevant property of a molecule such as its toxicity or bioactivity.
10
+
11
+ Following the breakthroughs in image (Krizhevsky et al., 2012) and text classification (Vaswani et al., 2017), deep neural networks (DNNs) are expected to revolutionize other fields such as drug discovery or material design (Jr et al.,
12
+
13
+ 2019). However, on many molecular property prediction tasks DNNs are outperformed by shallow models such as support vector machine or random forest (Korotcov et al., 2017; Wu et al., 2018). On the other hand, while DNNs can outperform shallow models on some tasks, they tend to be difficult to train (Ishiguro et al., 2019; Hu et al., 2019), and can require tuning of a large number of hyperparameters. We also observe both issues on our benchmark (see Section 4.2).
14
+
15
+ Making deep networks easier to train has been the central force behind their widespread use. In particular, one of the most important breakthroughs in deep learning was the development of initialization methods that allowed to train easily deep networks end-to-end (Goodfellow et al., 2016). In a similar spirit, our aim is to develop a deep model that is simple to use out-of-the-box, and achieves strong performance on a wide range of tasks in the field of molecule property prediction.
16
+
17
+ In this paper we propose the Molecule Attention Transformer (MAT). We adapt Transformer (Devlin et al., 2018) to chemical molecules by augmenting the self-attention with inter-atomic distances and molecular graph structure. Figure 1 shows the architecture. We demonstrate that MAT, in contrast to other tested models, achieves strong performance across a wide range of tasks (see Figure 2). Next, we show that self-supervised pre-training further improves performance, while drastically reducing the time needed for hyperparameter tuning (see Table 3). In these experiments we tuned only the learning rate, testing 7 different values. Finally, we find that MAT has interpretable attention weights. We share pretrained weights at https://github.com/gmum/MAT.
18
+
19
+ # 2. Related work
20
+
21
+ Molecule property prediction. Predicting properties of a candidate molecule lies at the heart of many fields such as drug discovery and material design. Broadly speaking, there are two main approaches to predicting molecular properties. First, we can use our knowledge of the underlying physics (Lipinski et al., 1997). However, despite recent advances (Schütt et al., 2017), current approaches remain prohibitively costly to accurately predict many properties of
22
+
23
+ ![](images/65e6d9f097c96932cb35445e1a888158906ece969291d97a079e225115218f81.jpg)
24
+ Figure 1. Molecule Attention Transformer architecture. We largely base our model on the Transformer encoder. In the first layer we embed each atom using one-hot encoding and atomic features. The main innovation is the Molecule Multi-Head Self-Attention layer that augments attention with distance and graph structure of the molecule. We implement this using a weighted (by $\lambda_d$ , $\lambda_g$ , and $\lambda_a$ ) element-wise sum of the corresponding matrices.
25
+
26
+ interest such as bioactivity. The second approach is to use existing data to train a predictive model (Haghighatlari & Hachmann, 2019). Here the key issue is the lack of large datasets. Even for the most popular drug targets, such as 5-HT1A (a popular target for depression), only thousands of active compounds are known. Promising direction is using hybrid approaches such as Wallach et al. (2015) or approaches leveraging domain knowledge and underlying physics to impose a strong prior such as Feinberg et al. (2018).
27
+
28
+ Deep learning for molecule property prediction. Deep learning has become a valuable tool for modeling molecules. During the years, the community has progressed from using handcrafted representations to representing molecules as strings of symbols, and finally to the currently popular approaches based on molecular graphs.
29
+
30
+ Graph convolutional networks in each subsequent layer gather information from adjacent nodes in the graph. In this way after $N$ convolution layers each node has information from its $N$ -edges distant neighbors. Using the graph structure improves performance in a range of molecule modeling tasks (Wu et al., 2018). Some of the most recent works
31
+
32
+ implement more sophisticated generalization methods for gathering the neighbor data. Velicković et al. (2017); Shang et al. (2018) propose to augment GCNs with an attention mechanism. Li et al. (2018) introduces a model that dynamically learns neighbourhood function in the graph.
33
+
34
+ In parallel to these advances, using the three-dimensional structure of the molecule is becoming increasingly popular. Perhaps the most closely related models are 3D Graph Convolutional Neural Network (3DGCN), Message Passing Neural Network (MPNN), and Adaptive Graph Convolutional Network (AGCN) (Cho & Choi, 2018; Gilmer et al., 2017; Li et al., 2018). 3DGCN and MPNN integrate graph and distance information in a single model, which enables them to achieve strong performance on tasks such as solubility prediction. In contrast to them, we additionally allow for a flexible neighbourhood based on self-attention.
35
+
36
+ Transformer, originally developed for natural language processing (Vaswani et al., 2017), has been recently applied to retrosynthesis in Karpov et al. (2019). They represent compounds as sentences using the SMILES notation (Weininger, 1988). In contrast to them, we represent compounds as a list of atoms, and ensure that models understand the structure of
37
+
38
+ the molecule by augmenting the self-attention mechanism (see Figure 1). Our ablation studies show it is a critical component of the model.
39
+
40
+ To summarize, methods related to our model have been proposed in the literature. Our contribution is unifying these ideas in a single model based on the state-of-the-art Transformer architecture that preserves strong performance across many chemical tasks.
41
+
42
+ How easy is it to use deep learning for molecule property prediction? DNNs performance is not always competitive to methods such as support vector machine or random forest. MoleculeNet is a popular benchmark for methods for molecule property prediction (Wu et al., 2018) that demonstrates this phenomenon. Similar results can be found in Withnall et al. (2019). We reproduce a similar issue on our benchmark. This makes using deep learning less applicable to molecule property prediction because in some cases practitioners might actually benefit from using other methods. Another issue is that graph neural networks, which are the most popular class of models for molecule property prediction, can be difficult to train. Ishiguro et al. (2019) show and try to address the problem that graph neural networks tend to underfit the training set. We also reproduce this issue on our benchmark (see also App. C).
43
+
44
+ There has been a considerable interest in developing easier to use deep models for molecule property prediction. Goh et al. (2017) pretrains a deep network that takes as an input an image of a molecule. Another studies highlight the need to augment feedforward (Mayr et al., 2018) and graph neural networks (Yang et al., 2019) with handcrafted representations of molecules. Hu et al. (2019) proposes pretraining methods for graph neural networks and shows this largely alleviates the problem of underfitting, present in these architectures (Ishiguro et al., 2019). We take inspiration from Hu et al. (2019) and use one of the three pretraining tasks proposed therein.
45
+
46
+ Concurrently, Wang et al. (2019); Honda et al. (2019) pretrain a vanilla Transformer (Devlin et al., 2018) that takes as input a text representation (SMILES) of a molecule. Honda et al. (2019) shows that decoding based approach improves data efficiency of the model. A similar approach, specialized to the task of drug-target interaction prediction, was concurrently proposed in Shin et al. (2019). In contrast to them, we adapt Transformer to chemical structures, which in our opinion is crucial for achieving strong empirical performance. We also use a domain-specific pretraining based on Wu et al. (2018). We further confirm importance of both approaches by comparing directly with Honda et al. (2019).
47
+
48
+ Self-attention based models. Arguably, the attention mechanism (Bahdanau et al., 2014) has been one of the
49
+
50
+ most important breakthroughs in deep learning. This is perhaps best illustrated by the wide-spread use of Transformer architecture in natural language processing (Vaswani et al., 2017; Devlin et al., 2018).
51
+
52
+ Multiple prior works have augmented self-attention in Transformer using domain-specific knowledge (Chen et al., 2018; Shaw et al., 2018; Bello et al., 2019; Guo et al., 2019). Guo et al. (2019) encourages Transformer to attend to adjacent words in a sentence, and Chen et al. (2018) encourages another attention-based model to focus on pairs of words in a sentence that are connected in an external knowledge base. Our novelty is applying this successive modeling idea to molecule property prediction.
53
+
54
+ # 3. Molecule Attention Transformer
55
+
56
+ As the rich literature on deep learning for molecule property prediction suggests, it is necessary for a model to be flexible enough to represent a range of possible relationships between atoms of a compound. Inspired by its flexibility and strong empirical performance, we base our model on the Transformer encoder (Vaswani et al., 2017; Devlin et al., 2018). It is worth noting that natural language processing has inspired important advances in cheminformatics (Segler et al., 2017; Gómez-Bombarelli et al., 2018), which might be due to similarities between the two domains (Jastrzewski et al., 2016).
57
+
58
+ Transformer. We begin by briefly introducing the Transformer architecture. On a high level, Transformer for classifications has $N$ attention blocks followed by a pooling and a classification layer. Each attention block is composed of a multi-head self-attention layer, followed by a feed-forward block that includes a residual connection and layer normalization.
59
+
60
+ The multi-head self-attention is composed of $H$ heads. Head $i$ ( $i = 1, \dots, H$ ) takes as input hidden state $\mathbf{H}$ and computes first $\mathbf{Q}_i = \mathbf{H}\mathbf{W}_i^Q$ , $\mathbf{K}_i = \mathbf{H}\mathbf{W}_i^H$ , and $\mathbf{V}_i = \mathbf{H}\mathbf{W}_i^V$ . These are used in the attention operation as follows:
61
+
62
+ $$
63
+ \mathcal {A} ^ {(i)} = \rho \left(\frac {\mathbf {Q} _ {i} \mathbf {K} _ {i} ^ {T}}{\sqrt {d _ {k}}}\right) \mathbf {V} _ {i}, \tag {1}
64
+ $$
65
+
66
+ Molecule Self-Attention. Using a naive Transformer architecture would require encoding of chemical molecules as sentences. Instead, inspired by Battaglia et al. (2018), we interpret the self-attention as a soft adjacency matrix between the elements of the input sequence. Following this line of thought, it is natural to augment the self-attention using information about the actual structure of the model. This allows us to avoid using linearized (textual) representation of molecule as input (Jastrzebski et al., 2016), which we expect to be a better inductive bias for the model.
67
+
68
+ More concretely, we propose the Molecule Self-Attention layer, which we describe in Equation 2. We augment the self-attention matrix as follows: let $\mathbf{A} \in \{0,1\}^{N_{\mathrm{atoms}} \times N_{\mathrm{atoms}}}$ denote the graph adjacency matrix, and $\mathbf{D} \in \mathbb{R}^{N_{\mathrm{atoms}} \times N_{\mathrm{atoms}}}$ denote the inter-atomic distances. Let $\lambda_{a}, \lambda_{d}$ , and $\lambda_{g}$ denote scalars weighting the self-attention, distance, and adjacency matrices. We modify Equation 1 as follows:
69
+
70
+ $$
71
+ \mathcal {A} ^ {(i)} = \left(\lambda_ {a} \rho \left(\frac {\mathbf {Q} _ {i} \mathbf {K} _ {i} ^ {T}}{\sqrt {d _ {k}}}\right) + \lambda_ {d} g (\mathbf {D}) + \lambda_ {g} \mathbf {A}\right) \mathbf {V} _ {i}, \quad (2)
72
+ $$
73
+
74
+ see also Figure 1. We denote $\lambda_{a}$ , $\lambda_{d}$ , and $\lambda_{g}$ jointly as $\lambda$ . We use as $g$ either softmax (normalized over the rows), or an element-wise $g(d) = \exp(-d)$ . Finally, the distance matrix $\mathbf{D}$ is computed using RDKit package (Landrum, 2016).
75
+
76
+ Note that while we use only the adjacency and the distance matrices, MAT can be easily extended to include other types of information, e.g. forces between the atoms.
77
+
78
+ Molecule Attention Transformer. To define the model, we replace all self-attention layers in the original Transformer encoder by our Molecular Self Attention layers. We embed each atom as a 26 dimensional vector following (Coley et al., 2017), shown in Table 1. In the experiments, we treat $\lambda_{a}$ , $\lambda_{d}$ , and $\lambda_{g}$ as hyperparameters and keep them frozen during training. Figure 1 illustrates the model.
79
+
80
+ Pretraining. We experiment with one of the two node-level pretraining tasks proposed in Hu et al. (2019), which involves predicting the masked input nodes. Consistently with Hu et al. (2019), we found it stabilizes learning (see Figure 6) and reduces the need for an extensive hyperparameter search (see Table 3). Given that MAT already achieves good performance using this simple pretraining task, we leave for future work exploring the other tasks proposed in Hu et al. (2019).
81
+
82
+ Other details. Inspired by Li et al. (2017); Clark et al. (2019), we add an artificial dummy node to the molecule. The dummy node is not connected by an edge to any other atom and the distance to any of them is set to $10^{6}$ . Our motivation is to allow the model to skip searching for a molecular pattern if none is to find by putting higher attention on that distant node, which is similar to how BERT uses the separation token (Devlin et al., 2018; Clark et al., 2019). We confirm this intuition in Section 4.4 and Section 4.5.
83
+
84
+ Finally, the distance matrices are calculated from 3D conformers calculated using UFFOPTIMIZEMOLECULE function from the RDKit package (Landrum, 2016), and the default parameters (MAXITERS=200, VDWTHRESH=10.0, CONFID=-1, UNUSEDINTERFRAGINTERACTIONS=True). For each compound we use one pre-computed conformation.
85
+
86
+ We experimented with sampling more conformations for each compound, but did not observe a consistent boost in performance, however it is possible that using more sophisticated algorithms for compound 3D structure minimization could improve the results. We leave this for future work.
87
+
88
+ Table 1. Featurization used to embed atoms in MAT.
89
+
90
+ <table><tr><td>INDICES</td><td>DESCRIPTION</td></tr><tr><td>0-11</td><td>ATOMIC IDENTITY AS A ONE-HOT VECTOR OF B, N, C, O, F, P, S, CL, BR, I, DUMMY, OTHER</td></tr><tr><td>12-17</td><td>NUMBER OF HEAVY NEIGHBORS AS ONE-HOT VECTOR OF 0, 1, 2, 3, 4, 5</td></tr><tr><td>18-22</td><td>NUMBER OF HYDROGEN ATOMS AS ONE-HOT VECTOR OF 0, 1, 2, 3, 4</td></tr><tr><td>23</td><td>FORMAL CHARGE</td></tr><tr><td>24</td><td>IS IN A RING</td></tr><tr><td>25</td><td>IS Aromatic</td></tr></table>
91
+
92
+ # 4. Experiments
93
+
94
+ We begin by comparing MAT to other popular models in the literature on a wide range of tasks. We find that with simple pretraining MAT outperforms other methods, while using a small budget for hyperparameter tuning.
95
+
96
+ In the rest of this section we try to develop understanding of what makes MAT work well. In particular, we find that individual heads in the multi-headed self-attention layers learn chemically interpretable functions.
97
+
98
+ # 4.1. Experimental settings
99
+
100
+ Comparing different models for molecule property prediction is challenging. Despite considerable efforts, the community still lacks a standardized way to compare different models. In our work, we use a similar setting to MoleculeNet (Wu et al., 2018).
101
+
102
+ Evaluation. Following recommendations of Wu et al. (2018) and the experimental setup of Podlewska & Kafel (2018), we use random split for FreeSolv, ESOL, and MetStab. For all the other datasets we use scaffold split, which assigns compounds that share the same molecular scaffolding to different subsets of the data (Bemis & Murcko, 1996). In regression tasks, the property value was standardized. Test performance is based on the model which gave best results in the validation setting. Each training was repeated 6 times, on different train/validation/test splits. All the other experimental details are reported in the Supplement.
103
+
104
+ Datasets. We run experiments on a wide range of datasets that represent typical tasks encountered in molecule mod
105
+
106
+ eling. Below, we include a short description of these tasks, and a more detailed description is moved to App. A.
107
+
108
+ - FreeSolv, ESOL. Regression tasks used in Wu et al. (2018) for predicting water solubility in terms of the hydration free energy (FreeSolv) and log solubility in mols per litre (ESOL). The datasets have 642 and 1128 molecules, respectively.
109
+ - Blood-brain barrier permeability (BBBP). Binary classification task used in Wu et al. (2018) for predicting the ability of a molecule to penetrate the blood-brain barrier. The dataset has 2039 molecules.
110
+ - Estrogen Alpha, Estrogen Beta. The tasks are to predict whether a compound is active towards a given target (Estrogen- $\alpha$ , Estrogen- $\beta$ ) based on experimental data from the ChEMBL database (Gaulton et al., 2011). The datasets have 2398, and 1961 molecules, respectively.
111
+ - MetStab $_{\text{high}}$ , MetStab $_{\text{low}}$ . Binary classification tasks based on data from Podlewska & Kafel (2018) to predict whether a compound has high (over 2.32 h half-time) or low (lower than 0.6 h half-time) metabolic stability. Both datasets contain the same 2127 molecules.
112
+
113
+ # 4.2. Molecule Attention Transformer
114
+
115
+ Models. Similarly to Wu et al. (2018), we test a comprehensive set of baselines that span both shallow and deep models. We compare MAT to the following baselines: GCN (Duvenaud et al., 2015), Random Forest (RF) and Support Vector Machine with RBF kernel (SVM). We also test the following recently proposed models: Edge Attention-based Multi-Relational Graph Convolutional Network (EAGCN) (Shang et al., 2018), and Weave (Kearnes et al., 2016).
116
+
117
+ Hyperparameter tuning. For each method we extensively tune their hyperparameters using random search (Bergstra & Bengio, 2012). To ensure fair comparison, each model is given the same budget for hyperparameter search. We run two sets of experiments with budget of 150 and 500 evaluations. We include hyperparameter ranges in App. B.
118
+
119
+ Results. We evaluate models by their average rank according to the test set performance on the 7 datasets. Figure 2 reports ranks of all methods for the two considered hyperparameter budgets (150 and 500). Additionally, we report in Table 2 detailed scores on all datasets. We make three main observations.
120
+
121
+ First, graph neural networks (GCN, Weave, EAGCN) on average do not outperform the other models. The best graph
122
+
123
+ model achieves average rank 3.28 compared to 3.14 by RF. On the whole, performance of the deep models improves with larger hyperparameter search budget. This further corroborates the original motivation of our study. Indeed, using common deep learning methods for molecule property prediction is challenging in practice. It requires a large computational budget, and might still result in poor performance.
124
+
125
+ Second, MAT outperforms the other tested methods in terms of the average rank. MAT achieves average rank of 2.71 and 2.42 for 150 and 500 budgets, compared to 3.14 of RF, which is the second best performing model. This shows that architecture MAT is flexible enough and has the correct inductive bias to perform well on a wide range of tasks.
126
+
127
+ Examining performance of MAT across individual datasets, we observe that RF and SVM perform better on Estrogen- $\beta$ , MetStab low, and MetStab high. Both RF and SVM use extended-connectivity fingerprint (Rogers & Hahn, 2010) as input representation, which encodes substructures in the molecule as features. Metabolic stability of a compound depends on existence of particular moieties, which are recognized by enzymes. Therefore a simple structure-based fingerprints perform well in such a setting. Wang et al. (2019); Mayr et al. (2018) show that using fingerprint as input representation improves performance of deep networks on related datasets. These two observations suggest that MAT could benefit from using fingerprints. Instead, we avoid using handcrafted representations, and investigate pretraining as an alternative in the next section. Though fingerprint-based models show excellent performance in all presented tasks, there are datasets on which they fail to match the performance of graph approaches. We observed this also on an energy prediction task (see the extension of our benchmark in App. C).
128
+
129
+ # 4.3. Pretrained Molecule Attention Transformer
130
+
131
+ Self-supervised pretraining has revolutionized natural language processing (Devlin et al., 2018) and has improved performance in molecule property prediction (Hu et al., 2019). We apply here node-level self-supervised pretraining from Hu et al. (2019) to MAT. The task is to predict features of masked out nodes. We refer the reader to App. D for more details.
132
+
133
+ Models. We compare MAT to the two following baselines. First, we apply the same pretraining to EAGCN, which we will refer to as "Pretrained EAGCN". Second, we compare to a concurrent work by Honda et al. (2019). They pretrain a vanilla Transformer by decoding textual representation (SMILES) of molecules. We will refer to their method as "SMILES Transformer".
134
+
135
+ ![](images/61f6eb4bb83284b601ae4d6db51999fba2760aa4d5f0504d818adb1a395643bf.jpg)
136
+ (a) Hyperparameter search budget of 500 combinations.
137
+
138
+ ![](images/d1cd6f4628e3e9bff050960c05663b5ca6b40450f448e5992ae623e39fb013f7.jpg)
139
+ (b) Hyperparameter search budget of 150 combinations.
140
+ Figure 2. The average rank across the 7 datasets in the benchmark. For each model we test 500 (left) or 150 (right) hyperparameter combinations. We split the data using random or scaffold split (according to the dataset description) 6 times into train/validation/test folds and use the mean metrics across the test folds to obtain the ranklists of models. Interestingly, shallow models (RF and SVM) outperform graph models (GCN, EAGCN and Weave).
141
+
142
+ Table 2. Test performances in the benchmark. For each model we test 500 (top) and 150 (bottom) hyperparameter combinations. On ESOL and FreeSolv we report RMSE (lower is better). The other tasks are evaluated using ROC AUC (higher is better). Experiments are repeated 6 times.
143
+ (a) Hyperparameter search budget of 500 combinations.
144
+
145
+ <table><tr><td></td><td>BBBP</td><td>ESOL</td><td>FREESOLV</td><td>ESTROGEN-α</td><td>ESTROGEN-β</td><td>\( METSTAB_{LOW} \)</td><td>\( METSTAB_{HIGH} \)</td></tr><tr><td>SVM</td><td>.707 ± .000</td><td>.478 ± .054</td><td>.461 ± .077</td><td>.973 ± .000</td><td>.778 ± .000</td><td>.893 ± .030</td><td>.890 ± .029</td></tr><tr><td>RF</td><td>.725 ± .006</td><td>.534 ± .073</td><td>.523 ± .097</td><td>.977 ± .001</td><td>.797 ± .007</td><td>.885 ± .029</td><td>.888 ± .030</td></tr><tr><td>GCN</td><td>.712 ± .010</td><td>.357 ± .032</td><td>.271 ± .048</td><td>.975 ± .003</td><td>.730 ± .006</td><td>.881 ± .031</td><td>.875 ± .036</td></tr><tr><td>WEAVE</td><td>.701 ± .016</td><td>.311 ± .023</td><td>.311 ± .072</td><td>.974 ± .003</td><td>.769 ± .023</td><td>.863 ± .028</td><td>.882 ± .043</td></tr><tr><td>EAGCN</td><td>.680 ± .014</td><td>.316 ± .024</td><td>.345 ± .051</td><td>.961 ± .011</td><td>.781 ± .012</td><td>.883 ± .024</td><td>.868 ± .034</td></tr><tr><td>MAT (OURS)</td><td>.728 ± .008</td><td>.285 ± .022</td><td>.263 ± .046</td><td>.979 ± .003</td><td>.765 ± .007</td><td>.862 ± .038</td><td>.888 ± .027</td></tr></table>
146
+
147
+ (b) Hyperparameter search budget of 150 combinations.
148
+
149
+ <table><tr><td></td><td>BBBP</td><td>ESOL</td><td>FREESOLV</td><td>ESTROGEN-α</td><td>ESTROGEN-β</td><td>\( METSTAB_{LOW} \)</td><td>\( METSTAB_{HIGH} \)</td></tr><tr><td>SVM</td><td>.723 ± .000</td><td>.479 ± .055</td><td>.461 ± .077</td><td>.973 ± .000</td><td>.772 ± .000</td><td>.893 ± .030</td><td>.890 ± .029</td></tr><tr><td>RF</td><td>.721 ± .003</td><td>.534 ± .073</td><td>.524 ± .098</td><td>.977 ± .001</td><td>.791 ± .012</td><td>.892 ± .026</td><td>.888 ± .030</td></tr><tr><td>GCN</td><td>.695 ± .013</td><td>.369 ± .032</td><td>.299 ± .068</td><td>.975 ± .003</td><td>.730 ± .006</td><td>.884 ± .033</td><td>.875 ± .036</td></tr><tr><td>WEAVE</td><td>.702 ± .009</td><td>.298 ± .025</td><td>.298 ± .049</td><td>.974 ± .003</td><td>.769 ± .023</td><td>.863 ± .028</td><td>.885 ± .042</td></tr><tr><td>EAGCN</td><td>.680 ± .014</td><td>.322 ± .052</td><td>.337 ± .042</td><td>.961 ± .011</td><td>.781 ± .012</td><td>.859 ± .024</td><td>.844 ± .037</td></tr><tr><td>MAT (OURS)</td><td>.727 ± .006</td><td>.290 ± .019</td><td>.289 ± .047</td><td>.979 ± .003</td><td>.765 ± .007</td><td>.861 ± .029</td><td>.844 ± .052</td></tr></table>
150
+
151
+ Hyperparameters. For all methods that use pretraining we reduce the hyperparameter grid to a minimum. We tune only the learning rate in $\{1e - 3,5e - 4,1e - 4,5e - 5,1e - 5,5e - 6,1e - 6\}$ . We set the other hyperparameters to reasonable defaults based on results from Section 4.2. For MAT and EAGCN, we follow (Devlin et al., 2018) and use the largest model that still fits the GPU memory. For SMILES Transformer we use pretrained weights provided by Honda et al. (2019).
152
+
153
+ Results. As in previous section, we compare the models based on their average rank on our benchmark. Figure 3 and Table 3 summarize the results.
154
+
155
+ We observe that Pretrained MAT achieves average rank of 1.57 and outperforms MAT (average rank of 2.14). Importantly, for Pretrained MAT we only tuned the learning rate by evaluating 7 different values. This is in stark contrast to the 500 hyperparameter combinations tested for MAT and EAGCN. To visualize this, in Figure 4 we plot the average test performance of all models as a function of the number of tested hyperparameter combinations. We also note that
156
+
157
+ ![](images/43c9783876a6ff79df5cd42b562f555fcbade1e9037526174f0c607ff4723a68.jpg)
158
+ Figure 3. The average ranks across the 7 datasets in the benchmark. Pretrained MAT outperforms the other methods, despite a drastically smaller number of tested hyperparameters (7) compared to MAT and EAGCN (500).
159
+
160
+ Pretrained MAT is more competitive on the three datasets mentioned in the previous section.
161
+
162
+ We also find that Pretrained MAT outperforms the other two pretrained methods. Pretraining degrades the performance of EAGCN (average rank of 4.0), and SMILES Transformer achieves the worst average rank (average rank of 4.29). This suggests that both the architecture, and the choice of the pretraining task are important for the overall performance of the model.
163
+
164
+ # 4.4. Ablation studies
165
+
166
+ To better understand what contributes to the performance of MAT, we run a series of ablation studies on three representative datasets from our benchmark. We leave understanding how these choices interact with pretraining for future work.
167
+
168
+ For experiments in this section we generated additional splits for ESOL, FreeSolv and BBBP datasets (different than in Section 4.2). For each configuration we select the best hyperparameters settings using random search under a budget of 100 evaluations. Experiments are repeated 3 times.
169
+
170
+ Dummy node is not so dummy. MAT uses a dummy node that is disconnected from other atoms in the graph (Li et al., 2017). Our intuition is that such functionality can be useful to automatically adapt capacity on small datasets. By attending to the dummy node, the model can effectively choose to avoid changing the internal representation in a given layer. To examine this architectural choice, in Table 4 we compare MAT to a variant that does not include the dummy node. Results show that dummy node improves performance of the model.
171
+
172
+ Knowing molecular graph and distances between atoms improves performance. Our key architectural innovation is integrating the molecule graph and inter-atomic distances with the self-attention layer in Transformer, as shown in Figure 1. To probe the importance of each of these sources of information, we removed them individually during training. Results in Table 5 suggest that keeping all sources of information results in the most stable performance across the three tasks, which is our primary goal. We also show that MAT can effectively use distance information in a toy task involving 3-dimensional distances between functional groups (see App.F).
173
+
174
+ Using a more complex featurization does not improve performance. Many models for predicting molecule properties use additional edge features (Coley et al., 2017; Shang et al., 2018; Gilmer et al., 2017). In Table 6 we show that adding additional edge features does not improve MAT performance. This is certainly possible that a more comprehensive set of edge features or a better method to integrate them would improve performance, which we leave for future work. Procedure of using edge features is described in detail in App. E.
175
+
176
+ # 4.5. Analysis.
177
+
178
+ To understand MAT better, we investigate attention weights of the model, and the effect of pretraining on the learning dynamics.
179
+
180
+ What is MAT looking at? In natural language processing, it has been shown that heads in Transformer seem to implement interpretable functions (Htut et al., 2019; Clark et al., 2019). Similarly, we investigate here the chemical function implemented by self-attention heads in MAT. We show patterns found in the model that was pretrained with the atom masking strategy (Hu et al., 2019), and then we verify our findings on a set of molecules extracted from the BBBP testing dataset.
181
+
182
+ Based on a manual inspection of attention matrices of MAT, we find two broad patterns: (1) many attention heads are almost fully focused on the dummy node, (2) many attention heads focus only on a few atoms. This seems consistent with observations about Transformer in Clark et al. (2019). We also notice that initial self-attention layers learn simple and easily interpretable chemical patterns, while subsequent layers capture more complex arrangements of atoms. In Figure 5 we exemplify attention patterns on a random molecule from the BBBP dataset.
183
+
184
+ To quantify the above findings, we select six heads from the first layer that fit the second category and seem to implement six patterns: (i) focuses on 2-neighboured aromatic carbons (not substituted); (ii) focuses on sulfurs; (iii) focuses on non-
185
+
186
+ Table 3. Test set performances of methods that use pretraining. Experiments are repeated 6 times. SMILES refers to SMILES Transformer from Honda et al. (2019).
187
+
188
+ <table><tr><td></td><td>BBBP</td><td>ESOL</td><td>FREESOLV</td><td>ESTROGEN-α</td><td>ESTROGEN-β</td><td>METSTABLOW</td><td>METSTABHIGH</td></tr><tr><td>MAT</td><td>.737 ± .009</td><td>.278 ± .020</td><td>.265 ± .042</td><td>.998 ± .000</td><td>.773 ± .012</td><td>.862 ± .025</td><td>.884 ± .030</td></tr><tr><td>EAGCN</td><td>.687 ± .023</td><td>.323 ± .031</td><td>1.244 ± .341</td><td>.994 ± .002</td><td>.770 ± .010</td><td>.861 ± .029</td><td>.839 ± .038</td></tr><tr><td>SMILES</td><td>.717 ± .008</td><td>.356 ± .017</td><td>.393 ± .032</td><td>.953 ± .002</td><td>.757 ± .002</td><td>.860 ± .038</td><td>.881 ± .036</td></tr></table>
189
+
190
+ ![](images/aa58e51cbc83957b112f0e46ba1fdda3281f0f4f5e821d6d62e1ba79686ffd31.jpg)
191
+ (a) Regression tasks.
192
+
193
+ ![](images/b6d84d38085b9952cf17e7445f111e445cccb7d54c644ee2f3cee21051df4e7b.jpg)
194
+ (b) Classification tasks.
195
+ Figure 4. Test performance of all models as a function of the number of tested hyperparameter combinations (on a logarithmic scale). Figures show the aggregated mean RMSE for regression tasks (left) and the aggregated mean ROC AUC for classification tasks (right). Pretrained MAT requires tuning an order of magnitude less hyperparameters, and performs competitively on both sets of tasks.
196
+
197
+ Table 4. Test performance of MAT model variant without the dummy node (- DUMMY) compared to performance of the original MAT.
198
+
199
+ <table><tr><td></td><td>BBBP</td><td>ESOL</td><td>FREESOLV</td></tr><tr><td>MAT</td><td>.723 ± .008</td><td>.286 ± .006</td><td>.250 ± .007</td></tr><tr><td>- DUMMY</td><td>.714 ± .010</td><td>.317 ± .014</td><td>.249 ± .014</td></tr></table>
200
+
201
+ Table 5. Test performance of MAT with different sources of information removed (equivalent to setting the corresponding $\lambda$ to zero).
202
+
203
+ <table><tr><td></td><td>BBBP</td><td>ESOL</td><td>FREESOLV</td></tr><tr><td>MAT</td><td>.723 ± .008</td><td>.286 ± .006</td><td>.250 ± .007</td></tr><tr><td>- GRAPH</td><td>.716 ± .009</td><td>.316 ± .036</td><td>.276 ± .034</td></tr><tr><td>- DISTANCE</td><td>.729 ± .013</td><td>.281 ± .001</td><td>.281 ± .013</td></tr><tr><td>- ATTENTION</td><td>.692 ± .001</td><td>.306 ± .026</td><td>.329 ± .014</td></tr></table>
204
+
205
+ Table 6. Test performance of MAT using additional edge features (+ EDGES F.), compared to vanilla MAT.
206
+
207
+ <table><tr><td></td><td>BBBP</td><td>ESOL</td><td>FREESOLV</td></tr><tr><td>MAT</td><td>.723 ± .008</td><td>.286 ± .006</td><td>.250 ± .007</td></tr><tr><td>+ EDGES F.</td><td>.683 ± .008</td><td>.314 ± .014</td><td>.358 ± .023</td></tr></table>
208
+
209
+ ring nitrogens; (iv) focuses on oxygen in carbonyl groups; (v) focuses on 3-neighboured aromatic atoms (positions of aromatic ring substitutions) and on sulfur for different atoms; (vi) focuses on nitrogens in aromatic rings. We found that on the BBBP testing dataset the atoms corresponding to these definitions (queried with SMARTS expressions) have indeed higher attention weights assigned to them than other atoms. For each head, we calculated attention weights for all atoms in all molecules and compared those matching our hypothesis against the other atoms. Their distributions differ significantly ( $p < 0.001$ in Kruskal-Wallis test) for all the patterns. The statistics and experimental details are summarized in App. G.
210
+
211
+ Effect of pretraining. Wu et al. (2018) observed that using pretraining stabilizes and speeds up training of graph convolutional models. We observe a similar effect in our case. Figure 6 reports training error of MAT and Pretrained MAT on the ESOL (left), and the FreeSolv (right) datasets. We use the learning rate that achieved the best generalization on each dataset in Sec. 4.3. The experiments are repeated 6 times. On both datasets, Pretrained MAT converges faster and has a lower variance of training error across repetitions. Mean standard deviation of training error for Pretrained MAT (MAT) is 0.027 (0.057) and 0.040 (0.076) for ESOL
212
+
213
+ ![](images/90f7f84e42dab8dbe6872eea3b56339eb70fb5a2aa502968f37ba3ea43289d5e.jpg)
214
+ Figure 5. The heatmaps show selected self-attention weights from the first layer of MAT, on a random molecule from the BBBP dataset (center). The atoms, which these heads focus on, are marked with the same color as the corresponding matrix. The interpretation of the presented patterns is described in the text.
215
+
216
+ and FreeSolv, respectively.
217
+
218
+ ![](images/a20326c199962e3361f567ebc320d21eef8431a1b9215fc8a59a0a71c265d654.jpg)
219
+ (a) ESOL
220
+ Figure 6. Training of MAT with (blue) and without (orange) pretraining, on ESOL (left) and FreeSolv (right). Pretraining stabilizes training (smaller variance of the training error) and improves convergence speed.
221
+
222
+ ![](images/fa4dea71c7d254c4e41deecd772edd449d688f2ab17bc98e81ba293787dd3715.jpg)
223
+ (b) FreeSolv
224
+
225
+ # 5. Conclusions.
226
+
227
+ In this work we propose Molecule Attention Transformer as a versatile architecture for molecular property prediction. In contrast to other tested models, MAT performs well across a wide range of molecule property prediction tasks. Moreover, inclusion of self-supervised pretraining further improves its performance, and drastically reduces the need for tuning of hyperparameters.
228
+
229
+ We hope that our work will widen adoption of deep learning in applications involving molecular property prediction,
230
+
231
+ as well as inspire new modeling approaches. One particularly promising avenue for future work is exploring better pretraining tasks for MAT.
232
+
233
+ # References
234
+
235
+ Bahdanau, D., Cho, K., and Bengio, Y. Neural machine translation by jointly learning to align and translate, 2014.
236
+ Battaglia, P. W., Hamrick, J. B., Bapst, V., Sanchez-Gonzalez, A., Zambaldi, V. F., Malinowski, M., Tacchetti, A., Raposo, D., Santoro, A., Faulkner, R., Gülçehre, C., Song, F., Ballard, A. J., Gilmer, J., Dahl, G. E., Vaswani, A., Allen, K., Nash, C., Langston, V., Dyer, C., Heess, N., Wierstra, D., Kohli, P., Botvinick, M., Vinyals, O., Li, Y., and Pascanu, R. Relational inductive biases, deep learning, and graph networks. CoRR, abs/1806.01261, 2018.
237
+ Bello, I., Zoph, B., Vaswani, A., Shlens, J., and Le, Q. V. Attention augmented convolutional networks. CoRR, abs/1904.09925, 2019.
238
+ Bemis, G. W. and Murcko, M. A. The properties of known drugs. 1. molecular frameworks. Journal of medicinal chemistry, 39(15):2887-2893, 1996.
239
+ Bergstra, J. and Bengio, Y. Random search for hyperparameter optimization. *J. Mach. Learn. Res.*, 13(1): 281-305, February 2012. ISSN 1532-4435.
240
+ Chen, G., Chen, P., Hsieh, C.-Y., Lee, C.-K., Liao, B., Liao, R., Liu, W., Qiu, J., Sun, Q., Tang, J., et al. Alchemy: A quantum chemistry dataset for benchmarking ai models. arXiv preprint arXiv:1906.09427, 2019.
241
+ Chen, Q., Zhu, X., Ling, Z.-H., Inkpen, D., and Wei, S. Neural natural language inference models enhanced with external knowledge. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 2406-2417, Melbourne, Australia, July 2018. Association for Computational Linguistics.
242
+ Cho, H. and Choi, I. S. Three-dimensionally embedded graph convolutional network (3DGCN) for molecule interpretation. CoRR, abs/1811.09794, 2018.
243
+ Clark, K., Khandelwal, U., Levy, O., and Manning, C. D. What does bert look at? an analysis of bert's attention. arXiv preprint arXiv:1906.04341, 2019.
244
+ Coley, C. W., Barzilay, R., Green, W. H., Jaakkola, T. S., and Jensen, K. F. Convolutional embedding of attributed molecular graphs for physical property prediction. Journal of Chemical Information and Modeling, 57(8):1757-1772, 2017. doi: 10.1021/acs.jcim.6b00601. PMID: 28696688.
245
+
246
+ Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. Bert: Pre-training of deep bidirectional transformers for language understanding, 2018. cite arxiv:1810.04805Comment: 13 pages.
247
+ Duvenaud, D. K., Maclaurin, D., Iparraguirre, J., Bombarell, R., Hirzel, T., Aspuru-Guzik, A., and Adams, R. P. Convolutional networks on graphs for learning molecular fingerprints. In Cortes, C., Lawrence, N. D., Lee, D. D., Sugiyama, M., and Garnett, R. (eds.), Advances in Neural Information Processing Systems 28, pp. 2224-2232. Curran Associates, Inc., 2015.
248
+ Feinberg, E. N., Sur, D., Wu, Z., Husic, B. E., Mai, H., Li, Y., Sun, S., Yang, J., Ramsundar, B., and Pande, V. S. Potentialnet for molecular property prediction. ACS Central Science, 4(11):1520-1530, 2018. doi: 10.1021/acscentsci.8b00507.
249
+ Gaulton, A., Bellis, L. J., Bento, A. P., Chambers, J., Davies, M., Hersey, A., Light, Y., McGlinchey, S., Michalovich, D., Al-Lazikani, B., and Overington, J. P. ChEMBL: a large-scale bioactivity database for drug discovery. *Nucleic Acids Research*, 40(D1):D1100–D1107, 09 2011. ISSN 0305-1048. doi: 10.1093/nar/gkr777.
250
+ Gilmer, J., Schoenholz, S. S., Riley, P. F., Vinyals, O., and Dahl, G. E. Neural message passing for quantum chemistry. In Precup, D. and Teh, Y. W. (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1263-1272, International Convention Centre, Sydney, Australia, 06-11 Aug 2017. PMLR.
251
+ Goh, G., Siegel, C., Vishnu, A., Hodas, N., and Baker, N. Chemception: A deep neural network with minimal chemistry knowledge matches the performance of expert-developed qsar/qspr models. arXiv preprint arXiv:1706.06689, 06 2017.
252
+ Gómez-Bombarelli, R., Wei, J. N., Duvenaud, D., Hernández-Lobato, J., Sánchez-Lengeling, B., Sheberla, D., Aguilera-Iparraguirre, J., Hirzel, T. D., Adams, R. P., and Aspuru-Guzik, A. Automatic chemical design using a data-driven continuous representation of molecules. ACS Central Science, 4(2):268-276, 02 2018. doi: 10.1021/acscentsci.7b00572.
253
+ Goodfellow, I., Bengio, Y., and Courville, A. Deep Learning. MIT Press, 2016.
254
+ Guo, M., Zhang, Y., and Liu, T. Gaussian transformer: a lightweight approach for natural language inference. In AAAI 2019, 2019.
255
+ Haghhighatlari, M. and Hachmann, J. Advances of machine learning in molecular modeling and simulation. Current Opinion in Chemical Engineering, 23:51 - 57, 2019.
256
+
257
+ ISSN 2211-3398. doi: https://doi.org/10.1016/j.coche.2019.02.009. Frontiers of Chemical Engineering: Molecular Modeling.
258
+ Honda, S., Shi, S., and Ueda, H. R. Smiles transformer: Pre-trained molecular fingerprint for low data drug discovery, 2019.
259
+ Htut, P. M., Phang, J., Bordia, S., and Bowman, S. R. Do attention heads in bert track syntactic dependencies?, 2019.
260
+ Hu, W., Liu, B., Gomes, J., Zitnik, M., Liang, P., Pande, V. S., and Leskovec, J. Pre-training graph neural networks. CoRR, abs/1905.12265, 2019.
261
+ Ishiguro, K., Maeda, S., and Koyama, M. Graph warp module: an auxiliary module for boosting the power of graph neural networks. CoRR, abs/1902.01020, 2019.
262
+ Jastrzebski, S., Lesniak, D., and Czarnecki, W. M. Learning to smile (s). arXiv preprint arXiv:1602.06289, 2016.
263
+ Jr, J. F. R., Florea, L., de Oliveira, M. C. F., Diamond, D., and Jr, O. N. O. A survey on big data and machine learning for chemistry, 2019.
264
+ Karpov, P., Godin, G., and Tetko, I. V. A transformer model for retrosynthesis. In International Conference on Artificial Neural Networks, pp. 817-830. Springer, 2019.
265
+ Kearnes, S., McCloskey, K., Berndl, M., Pande, V., and Riley, P. Molecular graph convolutions: Moving beyond fingerprints. Journal of Computer-Aided Molecular Design, 30, 03 2016. doi: 10.1007/s10822-016-9938-8.
266
+ Kim, S., Chen, J., Cheng, T., Gindulyte, A., He, J., He, S., Li, Q., Shoemaker, B. A., Thiessen, P. A., Yu, B., et al. Pubchem 2019 update: improved access to chemical data. *Nucleic acids research*, 47(D1):D1102–D1109, 2018.
267
+ Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
268
+ Korotcov, A., Tkachenko, V., Russo, D. P., and Ekins, S. Comparison of deep learning with multiple machine learning methods and metrics using diverse drug discovery data sets. Molecular Pharmaceutics, 14(12):4462-4475, 12 2017. doi: 10.1021/acs.molpharmaceut.7b00578.
269
+ Krizhevsky, A., Sutskever, I., and Hinton, G. E. Imagenet classification with deep convolutional neural networks. In Pereira, F., Burges, C. J. C., Bottou, L., and Weinberger, K. Q. (eds.), Advances in Neural Information Processing Systems 25, pp. 1097-1105. Curran Associates, Inc., 2012.
270
+ Landrum, G. Rdkit: Open-source cheminformatics software. 2016.
271
+
272
+ Li, J., Cai, D., and He, X. Learning graph-level representation for drug discovery. arXiv preprint arXiv:1709.03741, 2017.
273
+ Li, R., Wang, S., Zhu, F., and Huang, J. Adaptive graph convolutional neural networks. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
274
+ Lipinski, C. A., Lombardo, F., Dominy, B. W., and Feeney, P. J. Experimental and computational approaches to estimate solubility and permeability in drug discovery and development settings. Advanced Drug Delivery Reviews, 23(1):3 - 25, 1997. ISSN 0169-409X. doi: https://doi.org/10.1016/S0169-409X(96)00423-1. In Vitro Models for Selection of Development Candidates.
275
+ Mayr, A., Klambauer, G., Unterthiner, T., Steijaert, M., Wegner, J. K., Ceulemans, H., Clevert, D.-A., and Hochreiter, S. Large-scale comparison of machine learning methods for drug target prediction on chembl. Chem. Sci., 9: 5441-5451, 2018. doi: 10.1039/C8SC00148K.
276
+ Podlewska, S. and Kafel, R. Metstabon—online platform for metabolic stability predictions. International journal of molecular sciences, 19(4):1040, 2018.
277
+ Ramsundar, B., Eastman, P., Walters, P., Pande, V., Leswing, K., and Wu, Z. Deep Learning for the Life Sciences. O'Reilly Media, 2019.
278
+ Rogers, D. and Hahn, M. Extended-connectivity fingerprints. Journal of chemical information and modeling, 50 (5):742-754, 2010.
279
+ Schütt, K. T., Arbabzadah, F., Chmiela, S., Müller, K. R., and Tkatchenko, A. Quantum-chemical insights from deep tensor neural networks. Nature Communications, 8: 13890, Jan 2017. doi: 10.1038/ncomms13890.
280
+ Segler, M., Kogej, T., Tyrchan, C., and Waller, M. Generating focused molecule libraries for drug discovery with recurrent neural networks. ACS Central Science, 4, 01 2017. doi: 10.1021/acscentsci.7b00512.
281
+ Shang, C., Liu, Q., Chen, K.-S., Sun, J., Lu, J., Yi, J., and Bi, J. Edge Attention-based Multi-Relational Graph Convolutional Networks. arXiv e-prints, art. arXiv:1802.04944, Feb 2018.
282
+ Shaw, P., Uszkoreit, J., and Vaswani, A. Self-attention with relative position representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pp. 464-468, New Orleans, Louisiana, June 2018. Association for Computational Linguistics. doi: 10.18653/v1/N18-2074.
283
+
284
+ Shin, B., Park, S., Kang, K., and Ho, J. C. Self-attention based molecule representation for predicting drug-target interaction. In Doshi-Velez, F., Fackler, J., Jung, K., Kale, D., Ranganath, R., Wallace, B., and Wiens, J. (eds.), Proceedings of the 4th Machine Learning for Healthcare Conference, volume 106 of Proceedings of Machine Learning Research, pp. 230–248, Ann Arbor, Michigan, 09–10 Aug 2019. PMLR.
285
+ Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I. Attention is all you need. CoRR, abs/1706.03762, 2017.
286
+ Veličković, P., Cucurull, G., Casanova, A., Romero, A., Liò, P., and Bengio, Y. Graph Attention Networks. arXiv e-prints, art. arXiv:1710.10903, Oct 2017.
287
+ Wallach, I., Dzamba, M., and Heifets, A. Atomnet: A deep convolutional neural network for bioactivity prediction in structure-based drug discovery. *ArXiv*, abs/1510.02855, 2015.
288
+ Wang, S., Guo, Y., Wang, Y., Sun, H., and Huang, J. Smilesbert: Large scale unsupervised pre-training for molecular property prediction. In Proceedings of the 10th ACM International Conference on Bioinformatics, Computational Biology and Health Informatics, BCB '19, pp. 429-436, New York, NY, USA, 2019. Association for Computing Machinery. ISBN 9781450366663. doi: 10.1145/3307339.3342186.
289
+ Weininger, D. Smiles, a chemical language and information system. 1. introduction to methodology and encoding rules. Journal of chemical information and computer sciences, 28(1):31-36, 1988.
290
+ Withnall, M., Lindelöf, E., Engkvist, O., and Chen, H. Building attention and edge convolution neural networks for bioactivity and physical-chemical property prediction, Sep 2019.
291
+ Wong, C. H., Siah, K. W., and Lo, A. W. Estimation of clinical trial success rates and related parameters. *Bio/statistics*, 20(2):273-286, 01 2018. ISSN 1465-4644. doi: 10.1093/biostatistics/kxx069.
292
+ Wu, Z., Ramsundar, B., Feinberg, E. N., Gomes, J., Geniesse, C., Pappu, A. S., Leswing, K., and Pande, V. Moleculenet: a benchmark for molecular machine learning. Chem. Sci., 9:513-530, 2018. doi: 10.1039/C7SC02664A.
293
+ Yang, K., Swanson, K., Jin, W., Coley, C., Eiden, P., Gao, H., Guzman-Perez, A., Hopper, T., Kelley, B., Mathea, M., et al. Analyzing learned molecular representations for property prediction. Journal of chemical information and modeling, 59(8):3370-3388, 2019.
294
+
295
+ # A. Dataset details.
296
+
297
+ We include below a more detailed description of the datasets used in our benchmark.
298
+
299
+ - FreeSolv, ESOL. Regression tasks. Popular tasks for predicting water solubility in terms of the hydration free energy (FreeSolv) and logS (ESOL). Solubility of molecules is an important property that influences the bioavailability of drugs.
300
+ - Blood-brain barrier permeability (BBBP). Binary classification task. The blood-brain barrier (BBB) separates the central nervous system from the bloodstream. Predicting BBB penetration is especially relevant in drug design when the goal for the molecule is either to reach the central nervous system or the contrary – not to affect the brain.
301
+ - MetStab $_{\text{high}}$ , MetStab $_{\text{low}}$ . Binary classification tasks. The metabolic stability of a compound is a measure of the half-life time of the compound within an organism. The compounds for this task were taken from (Podlewska & Kafel, 2018), where compounds were divided into three sets: high, medium, and low stability. In this paper we concatenated these sets in order to build two classification tasks: MetStab $_{\text{high}}$ (discriminating high against others) and MetStab $_{\text{low}}$ (discriminating low against others).
302
+ - Estrogen Alpha, Estrogen Beta. Binary classification tasks. Often in drug discovery, it is important that a molecule is not potent towards a given target. Modulating of the estrogen receptors changes the genomic expression throughout the body, which in turn may lead to the development of cancer. For these tasks, the compounds with known activities towards the receptors were extracted from ChEMBL (Gaulton et al., 2011) database and divided into active and inactive sets based on their reported inhibition constant (Ki), being $< 100$ nM and $>1000$ nM, respectively.
303
+
304
+ # B. Other experimental details
305
+
306
+ In this section we include details for hyperparameters and training settings used in Section 4.2.
307
+
308
+ Molecule Attention Trainsformer. Table 7 shows hyperparameter ranges used in experiments for MAT. A short description of these hyperparameters is listed below:
309
+
310
+ - MODEL DIM - size of embedded atom features,
311
+ - LAYERS NUMBER - number of encoder module repeats (N in Figure 1),
312
+
313
+ - ATTENTION HEADS NUMBER - number of molecule self-attention heads,
314
+ - PFFs NUMBER - number of dense layers in the position-wise feed forward block ( $\mathbf{K}$ in Figure 1),
315
+ - $\lambda_{att}$ - self-attention weight $\lambda_{att}$ ,
316
+ - $\lambda_{dist} -$ distance weight $\lambda_{d}$
317
+ - DISTANCE MATRIX KERNEL - function $g$ used to transform the distance matrix $\mathbf{D}$
318
+ - MODEL DROPOUT - dropout applied after the embedding layer, position-wise feed forward layers, and residual layers (before sum operation),
319
+ - WEIGHT DECAY - optimizer weight decay,
320
+ - LEARNING RATE - (see Equation 3)
321
+ - EPOCHS NUMBER - number of epochs for which the model is trained
322
+ - BATCH SIZE - batch size used during the training of the model
323
+ - WARMUP FACTOR - fraction of epochs after which we end with increasing the learning rate linearly and begin with decreasing it proportionally to the inverse square root of the step number. (see Equation 3)
324
+
325
+ Table 7. Molecule Attention Transformer hyperparameters ranges
326
+
327
+ <table><tr><td></td><td>PARAMETERS</td></tr><tr><td>BATCH SIZE</td><td>8, 16, 32, 64, 128</td></tr><tr><td>LEARNING RATE</td><td>.01, .005, .001, .0005, .0001</td></tr><tr><td>EPOCHS</td><td>30, 100</td></tr><tr><td>MODEL DIM</td><td>32, 64, 128, 256, 512, 1024</td></tr><tr><td>LAYERS NUMBER</td><td>1, 2, 4, 6, 8</td></tr><tr><td>ATTENTION HEADS NUMBER</td><td>1, 2, 4, 8, 16</td></tr><tr><td>PFFS NUMBER</td><td>1</td></tr><tr><td>λatt</td><td>0, .1, .2, .3, .4, .5, .6, .7, .8, .9, 1</td></tr><tr><td>λdistance</td><td>0, .1, .2, .3, .4, .5, .6, .7, .8, .9, 1</td></tr><tr><td>DISTANCE MATRIX KERNEL</td><td>‘SOFTMAX’, ‘EXP’</td></tr><tr><td>MODEL DROPOUT</td><td>.0, .1, .2</td></tr><tr><td>WEIGHT DECAY</td><td>.0, .00001, .0001, .001, .01</td></tr><tr><td>WARMUP FACTOR</td><td>.0, .1, .2, .3, .4, .5</td></tr></table>
328
+
329
+ As suggested in (Vaswani et al., 2017), for optimization of MAT we used Adam optimizer (Kingma & Ba, 2014), with learning rate scheduler given by the following formula:
330
+
331
+ $$
332
+ \begin{array}{l} \text {S t e p} _ {L R} = \text {o p t i m i z e r} \quad f a c t o r \cdot \text {m o d e l} \quad \dim^ {- 0. 5}. \\ \cdot \min \left(\text {s t e p} n u m ^ {- 0. 5}, \text {s t e p} n u m \cdot \text {w a r m u p s t e p s} ^ {- 0. 5}\right). \tag {3} \\ \end{array}
333
+ $$
334
+
335
+ Where optimizer factor is given by $100 \cdot$ LEARNING RATE and warmup steps is given by WARMUP FACTOR $\cdot$ total train steps number.
336
+
337
+ After $N$ layers embedding of the molecule is calculated by taking the mean of returned by the network vector representations of all atoms (Global pooling in Figure 1). Then it is passed to the single linear layer, which returns the prediction.
338
+
339
+ SVM, RF, GCN, Weave. In our experiments, we used DeepChem (Ramsundar et al., 2019) implementation of baseline algorithms (SVM, RF, GCN, Weave). We used the same hyperparameters for tuning as were used in DeepChem, having regard to their proposed default values (we list them in Tables 8 - 11).
340
+
341
+ RF and SVM work on the vector representation of molecule given by the Extended-connectivity fingerprints (Rogers & Hahn, 2010). ECFP vectors were calculated using class CIRCULARFINGERPRINT from the DeepChem package, with default parameters (RADIUS=2, SIZE=2048).
342
+
343
+ Table 8. SVM hyperparameter ranges
344
+
345
+ <table><tr><td></td><td>PARAMETERS</td></tr><tr><td rowspan="2">C</td><td>.25, .4375, .625, .8125, 1., 1.1875, 1.375, 1.5625, 1.75, 1.9375, 2.125, 2.3125, 2.5, 2.6875, 2.875, 3.0625, 3.25, 3.4375, 3.625, 3.8125, 4.</td></tr><tr><td rowspan="2">.0125, .021875, .03125, .040625, .05, .059375, .06875, .078125, .0875, .096875, .10625, .115625, .125, .134375, .14375, .153125, .1625, .171875, .18125, .190625, .2</td></tr><tr><td>GAMMA</td></tr></table>
346
+
347
+ Table 9. RF hyperparameter ranges
348
+
349
+ <table><tr><td colspan="2">PARAMETERS</td></tr><tr><td>N ESTIMATORS</td><td>125, 218, 312, 406, 500, 593, 687, 781, 875, 968, 1062, 1156, 1250, 1343, 1437, 1531, 1625, 1718, 1812, 1906, 2000</td></tr></table>
350
+
351
+ Table 10. GCN hyperparameter ranges
352
+
353
+ <table><tr><td></td><td>PARAMETERS</td></tr><tr><td>BATCH SIZE</td><td>64, 128, 256</td></tr><tr><td>LEARNING RATE</td><td>0.002, 0.001, 0.0005</td></tr><tr><td>N FILTERS</td><td>64, 128, 192, 256</td></tr><tr><td>N FULLY CONNECTED NODES</td><td>128, 256, 512</td></tr></table>
354
+
355
+ EAGCN Table 12 shows hyperparameter ranges used in experiments for EAGCN. For EAGCN with weighted struc
356
+
357
+ Table 11. Weave hyperparameter ranges
358
+
359
+ <table><tr><td></td><td>PARAMETERS</td></tr><tr><td>BATCH SIZE</td><td>16, 32, 64, 128</td></tr><tr><td>NB EPOCH</td><td>20, 40, 60, 80, 100</td></tr><tr><td>LEARNING RATE</td><td>0.002, 0.001, 0.00075, 0.0005</td></tr><tr><td>N GRAPH FEAT</td><td>32, 64, 96, 128, 256</td></tr><tr><td>N PAIR FEAT</td><td>14</td></tr></table>
360
+
361
+ ture number of convolutional features $n\_ sgc = n\_ sgc\_ 1 + n\_ sgc\_ 2 + n\_ sgc\_ 3 + n\_ sgc\_ 4 + n\_ sgc\_ 5.$
362
+
363
+ Table 12. EAGCN hyperparameter ranges
364
+
365
+ <table><tr><td></td><td>PARAMETERS</td></tr><tr><td>BATCH SIZE</td><td>16, 32, 64, 128, 256, 512</td></tr><tr><td>EAGCN STRUCTURE</td><td>&#x27;CONCATE&#x27;, &#x27;WEIGHTED&#x27;</td></tr><tr><td>NUM EPOCHS</td><td>30, 100</td></tr><tr><td>LEARNING RATE</td><td>.01, .005, .001, .0005, .0001</td></tr><tr><td>DROPOUT</td><td>.0, .1, .3</td></tr><tr><td>WEIGHT DECAY</td><td>.0, .001, .01, .0001</td></tr><tr><td>N CONV LAYERS</td><td>1, 2, 4, 6</td></tr><tr><td>N DENSE LAYERS</td><td>1, 2, 3, 4</td></tr><tr><td>N SGC 1</td><td>30, 60</td></tr><tr><td>N SGC 2</td><td>5, 10, 15, 20, 30</td></tr><tr><td>N SGC 3</td><td>5, 10, 15, 20, 30</td></tr><tr><td>N SGC 4</td><td>5, 10, 15, 20, 30</td></tr><tr><td>N SGC 5</td><td>5, 10, 15, 20, 30</td></tr><tr><td>DENSE DIM</td><td>16, 32, 64, 128</td></tr></table>
366
+
367
+ # C. Additional results for Sec. 4.2
368
+
369
+ Predicting internal energy We run an additional experiment on a regression task related to quantum mechanics. From the Alchemy dataset (Chen et al., 2019), which is a dataset of 12 quantum properties calculated for $200\mathrm{K}$ molecules, we have chosen internal energy at $298.15\mathrm{K}$ to further test the performance of our model. We hypothesize that our molecule self-attention should perform particularly well in tasks involving atom level interactions such as energy prediction.
370
+
371
+ Table 13 presents mean absolute errors of three methods: one classical method (RF), one graph method (GCN), and our pretrained MAT. We use original train-valid/test splits of the dataset. For RF and GCN we run a random search with budget of 500 hyperparameter sets. For pretrained MAT, we tune only the learning rate, that is selected from $\{1e - 3,5e - 4,1e - 4,5e - 5,1e - 5,5e - 6,1e - 6\}$ .
372
+
373
+ MAT achieves a slightly lower error than GCN. As can be expected, both graph methods can learn internal energy function correctly because of the locality preserved in the graph structure. The classical method based on fingerprints gives MAE that is almost two orders of magnitude higher than MAE of the other methods in the comparison.
374
+
375
+ Table 13. Test results for internal energy prediction reported as MAE. All methods were tuned with a random search with budget of 500 hyperparameter combinations.
376
+
377
+ <table><tr><td></td><td>U (INTERNAL ENERGY)</td></tr><tr><td>RF</td><td>.380</td></tr><tr><td>GCN</td><td>.006</td></tr><tr><td>MAT</td><td>.004</td></tr></table>
378
+
379
+ ![](images/8de4bf30b00c174983ec590d4a0d5df4016e25653ae24460d4ef2e9af0da8a31.jpg)
380
+ Figure 7. Training loss of MAT and GCN as a function of the number of layers (left) and model dimensionality (right).
381
+
382
+ ![](images/1ce07000f1a11e485fb43e80268f0be1ab641e4897cd1373ae7ee42dd0680162.jpg)
383
+
384
+ Training error for graph-based neural networks Ishiguro et al. (2019) show that graph neural networks suffer from underfitting of the training set and their performance does not scale well with the complexity of the network. We reproduce their experiments and confirm that this problem is indeed present for both GCN and MAT. According to Figure 7, the training loss of GCN and MAT flattens at some point and stops decreasing even if we keep increasing the number of layers and model dimensionality. Despite this issue, for almost all settings, MAT achieves lower training error than GCN.
385
+
386
+ # D. Additional details for Sec. 4.3
387
+
388
+ Task description. As a node-level pretraining task we chose masking from (Hu et al., 2019) which is a version of BERT masked language model adapted to graph structured data. The idea is that predicting masked nodes based on their neighbourhood will encourage model to capture domain specific relationships between atoms.
389
+
390
+ For each molecular graph we randomly replace $15\%$ of input nodes (atom attributes) with special mask token. After forward pass we apply linear model to corresponding node embeddings to predict masked node attributes. In case of EAGCN we additionally mask attributes of edges connected to masked nodes to prevent model from learning simple value copying.
391
+
392
+ Pretraining setting. Training dataset consisted of $2\mathrm{m}$ n molecules sampled from the ZINC15 database. Models
393
+
394
+ were trained for 8 epochs with learning rate set to 0.001 and batch size 256. MAT was optimized with Noam optimizer (described in App. B), whereas for EAGCN we used Adam (Kingma & Ba, 2014). In both cases procedure minimized binary cross entropy loss.
395
+
396
+ Fine-tuning setting. All our pretrained models are finetuned on the target tasks for 100 epochs, with batch size equal to 32 and learning rate selected from the set of $\{1e - 3,5e - 4,1e - 4,5e - 5,1e - 5,5e - 6,1e - 6\}$ .
397
+
398
+ In Estrogen Alpha experiments we excluded three molecules (with the highest number of atoms) from the dataset, due to the memory issues.
399
+
400
+ Table 14. Pretrained MAT hyperparameters
401
+
402
+ <table><tr><td></td><td>PARAMETERS</td></tr><tr><td>MODEL DIM</td><td>1024</td></tr><tr><td>LAYERS NUMBER</td><td>8</td></tr><tr><td>ATTENTION HEADS NUMBER</td><td>16</td></tr><tr><td>PFFS NUMBER</td><td>1</td></tr><tr><td>λatt</td><td>.33</td></tr><tr><td>λdistance</td><td>.33</td></tr><tr><td>DISTANCE MATRIX KERNEL</td><td>&#x27;EXP&#x27;</td></tr><tr><td>MODEL DROPOUT</td><td>.0</td></tr><tr><td>WEIGHT DECAY</td><td>.0</td></tr></table>
403
+
404
+ Table 15. Pretrained EAGCN hyperparameters
405
+
406
+ <table><tr><td></td><td>PARAMETERS</td></tr><tr><td>EAGCN STRUCTURE</td><td>&#x27;WEIGHTED&#x27;</td></tr><tr><td>DROPOUT</td><td>.0</td></tr><tr><td>WEIGHT DECAY</td><td>.0</td></tr><tr><td>N CONV LAYERS</td><td>8</td></tr><tr><td>N DENSE LAYERS</td><td>1</td></tr><tr><td>N SGC</td><td>1080</td></tr></table>
407
+
408
+ SMILES Transformer. We used pretrained weights of SMILES-Transformers conducted by Honda et al. (2019). In this setting, according to the authors, we used MLP with 1 hidden layer, with 100 hidden units, that works on the 1024-dimensional molecule embedding returned by the pretrained transformer. We trained this MLP on the target tasks for 100 epochs, with batch size equal to 32 and learning rate selected from the set of $\{1e - 3,5e - 4,1e - 4,5e - 5,1e - 5,5e - 6,1e - 6\}$ .
409
+
410
+ # E. Additional results for Sec. 4.4
411
+
412
+ Edge features. Every bond in the molecule was embedded by the vector of edge features (we used features similar to described in (Shang et al., 2018)). Every edge feature was then passed through linear layer, followed by ReLU activation, which returned one single value for every
413
+
414
+ single edge (if there is no edge between atoms, we pass zero vector through the layer). This results in the matrix $\mathbf{E} \in \mathbb{R}^{N_{\mathrm{atoms}} \times N_{\mathrm{atoms}}}$ which was then used in Molecule Self-Attention layer, instead of the adjacency matrix.
415
+
416
+ Table 16. Edge Features used for experiments form Table 6
417
+
418
+ <table><tr><td>ATTRIBUTE</td><td>DESCRIPTION</td></tr><tr><td>BOND ORDER</td><td>VALUES FROM SET {1, 1.5, 2, 3}</td></tr><tr><td>AROMATICITY</td><td>IS Aromatic</td></tr><tr><td>CONJUGATION</td><td>IS CONJUGATED</td></tr><tr><td>RING STATUS</td><td>IS IN A RING</td></tr></table>
419
+
420
+ # F. Toy task
421
+
422
+ Task description. The essential feature of Molecule Attention Transformer is that it augments the self-attention module using molecule structure. Here we investigate MAT on a task heavily reliant on distances between atoms; we are primarily interested in how the performance of MAT depends on $\lambda_{a}$ , $\lambda_{d}$ , $\lambda_{g}$ that are used to weight the adjacency and the distance matrices in Equation 2.
423
+
424
+ Naturally, many properties of molecules depend on their geometry. For instance, steric effect happens when a spatial proximity of a given group, blocks reaction from happening, due to an overlap in electronic groups. However, this type of reasoning can be difficult to learn based only on the graph information, as it does not always reflect the geometry well. Furthermore, focusing on distance information might require selecting low values for either $\lambda_{g}$ or $\lambda_{a}$ (see Figure 1).
425
+
426
+ To illustrate this, we designed a toy task to predict whether or not two substructures are closer to each other in space than a predefined threshold; see also Figure 8a. We expect that MAT will work significantly better than a vanilla graph convolutional network if $\lambda_{d}$ is tuned well.
427
+
428
+ Experimental setting. We construct the dataset by sampling 2677 molecules from PubChem (Kim et al., 2018), and use $20\AA$ threshold between $-\mathrm{NH}_2$ fragment and tert-butyl group to determine the binary label. The threshold was selected so that positive and negative examples are well balanced.
429
+
430
+ Results. First, we plot Molecule Attention Transformer performance as a function of $\lambda_{d}$ in Figure 8b for three settings of $\lambda$ : $\lambda_{a} = 0$ (blue), $\lambda_{a} = \lambda_{g}$ (orange), and $\lambda_{g} = 0$ (green). In all cases we find that using distance information improves the performance significantly. Additionally, we found that GCN achieves 0.93 AUC on this task, compared to 0.98 by MAT with $\lambda_{d} = 1.0$ . These results both motivate tuning $\lambda$ , and show that MAT can efficiently use distance information if it is important for the task at hand.
431
+
432
+ ![](images/703f992bc7172029fcd9712bc38c8b90e862083f3ba2e9073dec53bec92aa0a0.jpg)
433
+ (a) The toy task is to predict whether two substructures $\left(-\mathrm{NH}_{2}\right.$ fragment and tert-butyl group) co-occur within given distance.
434
+
435
+ ![](images/9ef996bb3009e6273f6df2b191addee41ed644c8bba55529c2f2eed25767b08e.jpg)
436
+ (b) Molecule Attention Transformer performance on the toy task as a function of $\lambda_{d}$ , for different settings of $\lambda_{g}$ and $\lambda_{a}$ .
437
+ Figure 8. MAT can efficiently use the inter-atomic distances to solve the toy task (see left). Additionally, the performance is heavily dependent on $\lambda_{d}$ , which motivates tuning $\lambda$ in the main experiments (see right).
438
+
439
+ Further details. The molecules in the toy task dataset were downloaded from PubChem. The SMARTS query used to find the compounds was (C([C;H3])([C;H3])([C;H3]).[NX3H2]). All molecules were then filtered so that only those with exactly one tert-butyl group and one $-\mathrm{NH}_2$ fragment were left. For each of them, five conformers were created with RDKit implementation of the Universal Force Field (UFF).
440
+
441
+ The task is a binary classification of the distance between two molecule fragments. If the euclidean distance between $-\mathrm{NH}_2$ fragment and tert-butyl group is greater than a given threshold, the label is 1 (0 otherwise). As the distance we mean the distance between the closest heavy atoms in these two fragments across calculated conformers. We used $20\AA$ as the threshold as it leads to a balanced dataset. There are 2677 compounds total from which 1140 are in a positive class. The dataset was randomly split into training, validation, and test datasets.
442
+
443
+ In experiments the hyperparameters that yielded promising results on our datasets were used (listed in Table 17). The values of $\lambda$ parameters were tuned, and their scores are shown in Figure 8b. All three $\lambda$ parameters $(\lambda_d, \lambda_g, \lambda_a)$ sum to 1 in all experiments.
444
+
445
+ To compare our results with a standard graph convolutional neural network, we run a grid search over hyperparameters shown in Table 18. The hyperparameters for which the best validation AUC score was reached are emboldened, and their test AUC score is $0.925 \pm 0.006$ .
446
+
447
+ Table 17. MAT hyperparameters used.
448
+
449
+ <table><tr><td></td><td>PARAMETERS</td></tr><tr><td>BATCH SIZE</td><td>16</td></tr><tr><td>LEARNING RATE</td><td>0.0005</td></tr><tr><td>EPOCHS</td><td>100</td></tr><tr><td>MODEL DIM</td><td>64</td></tr><tr><td>MODEL N</td><td>4</td></tr><tr><td>MODEL H</td><td>8</td></tr><tr><td>MODEL N DENSE</td><td>2</td></tr><tr><td>MODEL DENSE OUTPUT NONLINEARITY</td><td>’TANH’</td></tr><tr><td>DISTANCE MATRIX KERNEL</td><td>’SOFTMAX’</td></tr><tr><td>MODEL DROPOUT</td><td>0.0</td></tr><tr><td>WEIGHT DECAY</td><td>0.001</td></tr><tr><td>OPTIMIZER</td><td>’ADAM_ANNEAL’</td></tr><tr><td>AGGREGATION TYPE</td><td>’MEAN’</td></tr></table>
450
+
451
+ Table 18. Hyperparameters used for tuning GCN.
452
+
453
+ <table><tr><td></td><td>PARAMETERS</td></tr><tr><td>BATCH SIZE</td><td>16, 32, 64</td></tr><tr><td>LEARNING RATE</td><td>0.0005</td></tr><tr><td>EPOCHS</td><td>20, 40, 60, 80, 100</td></tr><tr><td>N FILTERS</td><td>64, 128</td></tr><tr><td>N FULLY CONNECTED NODES</td><td>128, 256</td></tr></table>
454
+
455
+ # G. Interpretability analysis
456
+
457
+ Table 19. Statistics of the six attention head patterns described in the text. Each head function is defined by a SMARTS that selects atoms with high attention weights. For each atom in the dataset we calculated mean weight assigned to them by the corresponding attention head (average column value of the attention matrix). Calculated means and standard deviations show the difference between attention weights of matching atoms $(\mu^{+},\sigma^{+})$ against the other atoms $(\mu^{-},\sigma^{-})$ .
458
+
459
+ <table><tr><td>HEAD</td><td>I</td><td>II</td><td>III</td><td>IV</td><td>V</td><td>VI</td></tr><tr><td>SMARTS</td><td>[c;D2]</td><td>[S,S]</td><td>[N;R0]</td><td>O=*</td><td>[A;D3]</td><td>N</td></tr><tr><td>μ+</td><td>.136</td><td>.330</td><td>.061</td><td>.095</td><td>.043</td><td>.228</td></tr><tr><td>σ+</td><td>.080</td><td>.280</td><td>.074</td><td>.120</td><td>.032</td><td>.171</td></tr><tr><td>μ-</td><td>.008</td><td>.001</td><td>.002</td><td>.006</td><td>.006</td><td>.005</td></tr><tr><td>σ-</td><td>.032</td><td>.003</td><td>.016</td><td>.034</td><td>.014</td><td>.009</td></tr></table>
460
+
461
+ We found several patterns in the self-attention heads by looking at the first layer of MAT. These patterns correspond to chemical structures that can be found in molecules. For
462
+
463
+ each such pattern found in a qualitative manner, we tested quantitatively if our hypotheses are true about what these particular attention heads represent.
464
+
465
+ For each pattern found in one of the attention heads, we construct a SMARTS expression describing atoms that belong to our hypothetical molecular structures. Then, all atoms matching the pattern are extracted from the BBBP dataset, and their mean attention weights (average column value of the attention matrix) are compared against atoms that do not match the pattern. Table 19 shows the distributions of attention weights for matching and not matching atoms. Atoms which match the SMARTS expression have significantly higher attention weights $(\mu^{+} > \mu^{-})$ .
2002.08xxx/2002.08264/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0701ebc3b6e2bc8a609d5bce79a4899fa639f08445463f9782866565b61bce5
3
+ size 913991
2002.08xxx/2002.08264/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2002.08xxx/2002.08267/a18561e3-151b-44a2-895b-fa2c83db4550_content_list.json ADDED
@@ -0,0 +1,1752 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Multilogue-Net: A Context Aware RNN for Multi-modal Emotion Detection and Sentiment Analysis in Conversation",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 161,
8
+ 79,
9
+ 840,
10
+ 118
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Aman Shenoy*",
17
+ "bbox": [
18
+ 272,
19
+ 147,
20
+ 403,
21
+ 162
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Birla Inst. of Technology and Science, Pilani",
28
+ "bbox": [
29
+ 152,
30
+ 164,
31
+ 517,
32
+ 179
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Pilani, RA, India",
39
+ "bbox": [
40
+ 265,
41
+ 181,
42
+ 405,
43
+ 195
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "f2016393@pilani(bits-pilani.ac.in",
50
+ "bbox": [
51
+ 136,
52
+ 197,
53
+ 534,
54
+ 212
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Ashish Sardana",
61
+ "bbox": [
62
+ 596,
63
+ 147,
64
+ 737,
65
+ 162
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "NVIDIA Graphics",
72
+ "bbox": [
73
+ 591,
74
+ 164,
75
+ 742,
76
+ 180
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "Bengaluru, KA, India",
83
+ "bbox": [
84
+ 579,
85
+ 181,
86
+ 756,
87
+ 196
88
+ ],
89
+ "page_idx": 0
90
+ },
91
+ {
92
+ "type": "text",
93
+ "text": "asardana@nvidia.com",
94
+ "bbox": [
95
+ 552,
96
+ 198,
97
+ 784,
98
+ 212
99
+ ],
100
+ "page_idx": 0
101
+ },
102
+ {
103
+ "type": "text",
104
+ "text": "Abstract",
105
+ "text_level": 1,
106
+ "bbox": [
107
+ 263,
108
+ 263,
109
+ 342,
110
+ 279
111
+ ],
112
+ "page_idx": 0
113
+ },
114
+ {
115
+ "type": "text",
116
+ "text": "Sentiment Analysis and Emotion Detection in conversation is key in several real-world applications, with an increase in modalities available aiding a better understanding of the underlying emotions. Multi-modal Emotion Detection and Sentiment Analysis can be particularly useful, as applications will be able to use specific subsets of available modalities, as per the available data. Current systems dealing with Multi-modal functionality fail to leverage and capture - the context of the conversation through all modalities, the dependency between the listener(s) and speaker emotional states, and the relevance and relationship between the available modalities. In this paper, we propose an end to end RNN architecture that attempts to take into account all the mentioned drawbacks. Our proposed model, at the time of writing, out-performs the state of the art on a benchmark dataset on a variety of accuracy and regression metrics.",
117
+ "bbox": [
118
+ 142,
119
+ 287,
120
+ 463,
121
+ 587
122
+ ],
123
+ "page_idx": 0
124
+ },
125
+ {
126
+ "type": "text",
127
+ "text": "1 Introduction",
128
+ "text_level": 1,
129
+ "bbox": [
130
+ 115,
131
+ 595,
132
+ 260,
133
+ 609
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Multi-modal Emotion Detection and Sentiment Analysis in conversation is gathering a lot of attention recently considering its potential use cases owing to the rapid growth of online social media platforms such as YouTube, Facebook, Instagram, Twitter etc. (Chen et al., 2017, Poria et al., 2016, Poria et al., 2017, Zadeh et al., 2016b, Zadeh et al., 2017), especially knowing that information obtained from any combination of more than one of the available modalities (e.g. text, audio, video) can be used to produce meaningful results.",
140
+ "bbox": [
141
+ 114,
142
+ 620,
143
+ 490,
144
+ 796
145
+ ],
146
+ "page_idx": 0
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "The current state of the art systems on multimodal emotion detection and sentiment analysis do not treat the modalities in accordance to the information they are capable of holding (e.g. textual information is significantly more likely to hold",
151
+ "bbox": [
152
+ 114,
153
+ 797,
154
+ 490,
155
+ 878
156
+ ],
157
+ "page_idx": 0
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "contextual information then audio or video features are), lack an adequate fusion mechanism, and fail to effectively capture the context of a conversation in a multi-modal setting. In addition to the lack of proper usage of the available modalities, models also fail to effectively capture the flow of a conversation, the separation between speaker and listener states, and the emotional effect a speakers utterance has on the listener (s) in dyadic conversations.",
162
+ "bbox": [
163
+ 509,
164
+ 263,
165
+ 885,
166
+ 409
167
+ ],
168
+ "page_idx": 0
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "Our proposed model Multilogue-Net, attempts to embed basic domain knowledge and takes insight from Poria et al. (2019), assuming that the sentiment or emotion governing a particular utterance predominantly depends on 4 factors interlocutor state, interlocutor intent, the preceding and future emotions, and the context of the conversation. Interlocutor intent amongst the mentioned is particularly difficult to model due to its dependency of prior knowledge about the speaker, but modelling the other 3 separately, yet in an interrelated manner was theorized to produce meaningful results if managed to be captured effectively. The key intention was to attempt to simulate the setting in which an utterance is said, and use the actual utterance at that point to be able to gain better insights regarding emotion and sentiment of that utterance. The model uses information from all modalities learning multiple state vectors (representing interlocutor state) for a given utterance, followed by a pairwise attention mechanism inspired by Ghosal et al. (2018), attempting to better capture the relationship between all pairs of the available modalities.",
173
+ "bbox": [
174
+ 509,
175
+ 409,
176
+ 885,
177
+ 778
178
+ ],
179
+ "page_idx": 0
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "The model uses two gated recurrent units (GRU) (Chung et al., 2014) for each modality for modelling interlocutor state and emotion. Along with these GRU's, the model also uses an interconnected context network, consisting of the same number of GRU's as the number of available modalities, to model a different learned context representation for each modality. The incoming utterance",
184
+ "bbox": [
185
+ 509,
186
+ 780,
187
+ 885,
188
+ 910
189
+ ],
190
+ "page_idx": 0
191
+ },
192
+ {
193
+ "type": "aside_text",
194
+ "text": "arXiv:2002.08267v3 [cs.CL] 22 Jun 2020",
195
+ "bbox": [
196
+ 21,
197
+ 310,
198
+ 60,
199
+ 725
200
+ ],
201
+ "page_idx": 0
202
+ },
203
+ {
204
+ "type": "page_footnote",
205
+ "text": "* The following work was pursued when author was an intern at NVIDIA Graphics, Bengaluru",
206
+ "bbox": [
207
+ 115,
208
+ 883,
209
+ 489,
210
+ 909
211
+ ],
212
+ "page_idx": 0
213
+ },
214
+ {
215
+ "type": "text",
216
+ "text": "representations and the historical GRU outputs are used at every timestamp to be able to arrive at a prediction for that timestamp.",
217
+ "bbox": [
218
+ 114,
219
+ 74,
220
+ 490,
221
+ 123
222
+ ],
223
+ "page_idx": 1
224
+ },
225
+ {
226
+ "type": "text",
227
+ "text": "The model produces $m$ different representations at every timestamp (Where $m$ is the number of modalities), where each representation is the emotional state at that timestamp as conveyed by each of the modalities. These $m$ representations are used by the fusion mechanism to incorporate information from each of the $m$ representations to be able to arrive at the final prediction for that timestamp. We understand that the usage of the pairwise attention mechanism, along with the Emotion GRU are what make the model flexible across tasks.",
228
+ "bbox": [
229
+ 114,
230
+ 124,
231
+ 492,
232
+ 299
233
+ ],
234
+ "page_idx": 1
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "The usage of only the text representation as input to the context GRUs has been observed to be key to the results, as the context of the conversation would be better captured by textual information then it would have with audio or video information. We believe that Multilogue-net performs better than the current state of the art (Ghosal et al., 2018) on multi-modal datasets because of better context representation leveraging all available modalities.<sup>1</sup>",
239
+ "bbox": [
240
+ 114,
241
+ 302,
242
+ 490,
243
+ 445
244
+ ],
245
+ "page_idx": 1
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "The remaining sections of the paper are arranged as follows: Section 2 discusses related work; Section 3 discusses the model in detail; Section 4 provides experimental results, dataset details, and analysis; Section 5 contains our ablation studies and its implications; and finally Section 6 speaks on potential future work, and concludes our paper.",
250
+ "bbox": [
251
+ 114,
252
+ 448,
253
+ 492,
254
+ 560
255
+ ],
256
+ "page_idx": 1
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "2 Related Work",
261
+ "text_level": 1,
262
+ "bbox": [
263
+ 115,
264
+ 574,
265
+ 272,
266
+ 589
267
+ ],
268
+ "page_idx": 1
269
+ },
270
+ {
271
+ "type": "text",
272
+ "text": "Multi-modal Emotion recognition and Sentiment Analysis has always attracted attention in multiple fields such as natural language processing, psychology, cognitive science, and so on (Picard, 2010). Previous works have been done studying factors of variation that have a more direct correlation with emotion, such as Ekman et al. (1992), who found correlation between emotion and facial cues, and a lot of studies extensively focus on emotions and their relationship with one another such as Plutchiks wheel of emotions, which defines eight primary emotion types, each of which has a multitude of emotions as sub-types.",
273
+ "bbox": [
274
+ 114,
275
+ 601,
276
+ 492,
277
+ 810
278
+ ],
279
+ "page_idx": 1
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "Early work done to leverage multi-modal information for emotion recognition includes works such as Datcu and Rothkrantz (2012), who fused",
284
+ "bbox": [
285
+ 114,
286
+ 812,
287
+ 492,
288
+ 860
289
+ ],
290
+ "page_idx": 1
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "acoustic information with visual cues for emotion recognition and Eyben et al. (2010), who used contextual information for emotion recognition in multi-modal settings. More recently, deep recurrent neural networks have been used to be able make the best of the learned representations of the modalities available to be able to give very effective and accurate emotion and sentiment predictions. Poria et al. (2017) successfully used RNN-based deep networks for multi-modal emotion recognition, which was followed by multiple other works (Chen et al., 2017; Zadeh et al., 2018a; Zadeh et al., 2018c) giving results far better than what was seen before. Recent works also include works such as Hazarika et al. (2018), who used memory networks for emotion recognition in dyadic conversations, where two distinct memory networks enabled interspeaker interaction.",
295
+ "bbox": [
296
+ 509,
297
+ 74,
298
+ 887,
299
+ 363
300
+ ],
301
+ "page_idx": 1
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "Some works such as DialogueRNN (Majumder et al., 2018), though focused on emotion recognition and sentiment analysis using a single modality (text), works very well in a multi-modal setting by just replacing the text representation with a concatenated vector of all the modality representations. DialogueRNN effectively leveraged the separation between the speakers by maintaining two independent gated recurrent units to keep track of the interlocutor states, also effectively capturing context in the conversation, yielding state-of-the-art performance on uni-modal data. Even though DialogueRNN was able to give reasonably good results on multi-modal data, the lack of an adequate fusion mechanism and the lack of focus on a multi-modal representation held its multi-modal performance back.",
306
+ "bbox": [
307
+ 509,
308
+ 370,
309
+ 887,
310
+ 645
311
+ ],
312
+ "page_idx": 1
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "Apart from the kind of works shown before, where a methodology or a model was proposed, works such as Poria et al. (2019) spoke extensively about the research challenges and advancements in emotion detection in conversation and gave a comprehensive overview of the problem. Most recently Ghosal et al. (2018) introduced the idea of learning the relationship between pairs of all available modalities using pairwise attention, in a multimodal setting, where similar attributes learned by multiple modalities are emphasized and differences between the modality representations are diminished. Pairwise attention proved to be incredibly effective yielding state-of-the-art performance on multi-modal data with just simple representations for each modality.",
317
+ "bbox": [
318
+ 509,
319
+ 652,
320
+ 887,
321
+ 910
322
+ ],
323
+ "page_idx": 1
324
+ },
325
+ {
326
+ "type": "page_footnote",
327
+ "text": "<sup>1</sup>A basic model and training implementation of Multilogue-Net can be found at https://github.com/amanshenoy/multilogue-net.",
328
+ "bbox": [
329
+ 115,
330
+ 871,
331
+ 492,
332
+ 909
333
+ ],
334
+ "page_idx": 1
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "3 Proposed Methodology",
339
+ "text_level": 1,
340
+ "bbox": [
341
+ 115,
342
+ 74,
343
+ 349,
344
+ 91
345
+ ],
346
+ "page_idx": 2
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "3.1 Problem Formulation",
351
+ "text_level": 1,
352
+ "bbox": [
353
+ 115,
354
+ 99,
355
+ 332,
356
+ 114
357
+ ],
358
+ "page_idx": 2
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "Let there be a $P$ number of participants $p_1, p_2, \\ldots, p_P$ in the conversation. The problem is defined such that for every utterance $u_1, u_2, \\ldots, u_N$ uttered by any participant(s), a sentiment score is allotted along with a predicted emotion label (one of happy, sad, angry, surprise, disgust, and fear). Each utterance corresponds to a particular participant of the conversation, allowing this formulation of the problem to also capture the average sentiment of a participant in the conversation. Predictions over utterances also avoid problems such as classification during long moments of silence when predictions are made for a fixed time interval, and is also mostly common practice.",
363
+ "bbox": [
364
+ 114,
365
+ 120,
366
+ 489,
367
+ 344
368
+ ],
369
+ "page_idx": 2
370
+ },
371
+ {
372
+ "type": "text",
373
+ "text": "For every utterance $u_{t}(p)$ , where $p$ is the party who uttered the utterance, there exist three independent representations, $t_{t} \\in \\mathbb{R}^{D_{t}}$ , $a_{t} \\in \\mathbb{R}^{D_{a}}$ , and $v_{t} \\in \\mathbb{R}^{D_{v}}$ , and are obtained using the feature extractors further explained in section 4.2.",
374
+ "bbox": [
375
+ 114,
376
+ 346,
377
+ 490,
378
+ 425
379
+ ],
380
+ "page_idx": 2
381
+ },
382
+ {
383
+ "type": "text",
384
+ "text": "This gives us our overall formulation of the problem, which is to be able to learn a function which would take as input three independent representations of a particular utterance, information regarding the previous emotional state of the participant, and a representation of the current context of the conversation - to be able to map to an output prediction of a sentiment score and emotion label.",
385
+ "bbox": [
386
+ 114,
387
+ 426,
388
+ 490,
389
+ 552
390
+ ],
391
+ "page_idx": 2
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "Details regarding how these representations are updated and how the output is generated using these inputs are described in detail below.",
396
+ "bbox": [
397
+ 115,
398
+ 555,
399
+ 489,
400
+ 602
401
+ ],
402
+ "page_idx": 2
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "3.2 Model Details",
407
+ "text_level": 1,
408
+ "bbox": [
409
+ 115,
410
+ 613,
411
+ 272,
412
+ 627
413
+ ],
414
+ "page_idx": 2
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "Modelling was done under the underlying assumption that the sentiment or emotion of an utterance predominantly depends on four factors as mentioned before:",
419
+ "bbox": [
420
+ 114,
421
+ 634,
422
+ 490,
423
+ 697
424
+ ],
425
+ "page_idx": 2
426
+ },
427
+ {
428
+ "type": "list",
429
+ "sub_type": "text",
430
+ "list_items": [
431
+ "- Interlocutor State",
432
+ "- Interlocutor Intent",
433
+ "- Context of the conversation until that point",
434
+ "- Previous interlocutor states and emotions of a particular participant in the conversation"
435
+ ],
436
+ "bbox": [
437
+ 136,
438
+ 708,
439
+ 487,
440
+ 818
441
+ ],
442
+ "page_idx": 2
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "The proposed model attempts to model three out of the mentioned four explicitly, and assume that interlocutor intent will be modelled implicitly during model training. Interlocutor state is modelled using a state GRU (will be referred to as $sGRU$ ),",
447
+ "bbox": [
448
+ 114,
449
+ 829,
450
+ 490,
451
+ 909
452
+ ],
453
+ "page_idx": 2
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "A context GRU is used to keep track of the context of the conversation ( $cGRU$ ), and an emotion GRU ( $eGRU$ ) is used to keep track of the emotional state of that particular participant. Finally, a pairwise attention mechanism, which uses the emotion representation of all modalities at a particular timestamp is used to leverage the important modalities and relevant combination of the modalities for emotion or sentiment prediction at that timestamp.",
458
+ "bbox": [
459
+ 509,
460
+ 74,
461
+ 885,
462
+ 219
463
+ ],
464
+ "page_idx": 2
465
+ },
466
+ {
467
+ "type": "image",
468
+ "img_path": "images/c34e7778da243f7711db919a17bfb0023082fe04b2a090a52ddce68eb90026d4.jpg",
469
+ "image_caption": [
470
+ "Figure 1: Description of all the state updates at times-tamp $t$ for a single participant $p_1$"
471
+ ],
472
+ "image_footnote": [],
473
+ "bbox": [
474
+ 517,
475
+ 236,
476
+ 878,
477
+ 418
478
+ ],
479
+ "page_idx": 2
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "Every utterance has three independent feature representations (text, audio, and video features), $t_t \\in \\mathbb{R}^{D_t}$ , $a_t \\in \\mathbb{R}^{D_a}$ , and $v_t \\in \\mathbb{R}^{D_v}$ . Each of these feature representations are treated and operated on independently until the pairwise attention mechanism. The model consists of two GRUs (state GRU, and emotion GRU) for every modality and participant, and a context GRU for each modality common to all participants in the conversation (If $p$ is the number of participants and $m$ is the number of modalities, the model would have a total of $2mp + m$ GRUs). The inputs at the current timestamp and the previous state, context, and emotion representations are operated on to be able to arrive at the prediction at that timestamp. Figure 1 describes the updates at a particular timestamp and the role of each GRU is further explained below.",
484
+ "bbox": [
485
+ 509,
486
+ 476,
487
+ 885,
488
+ 749
489
+ ],
490
+ "page_idx": 2
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "3.2.1 Context GRU (cGRU)",
495
+ "text_level": 1,
496
+ "bbox": [
497
+ 510,
498
+ 760,
499
+ 746,
500
+ 775
501
+ ],
502
+ "page_idx": 2
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "The Context GRU $(cGRU)$ for each modality aims to capture the context of the conversation by jointly encoding the utterance representation of that modality (at timestamp $t$ in the given diagram) $(t_{t} \\in \\mathbb{R}^{D_{t}}$ , $a_{t} \\in \\mathbb{R}^{D_{a}}$ , or $v_{t} \\in \\mathbb{R}^{D_{v}}$ ) and the previous times- tamp speaker state GRU output of that modality. This accounts for inter-speaker and inter-utterance dependencies to produce an effective context rep",
507
+ "bbox": [
508
+ 509,
509
+ 780,
510
+ 885,
511
+ 910
512
+ ],
513
+ "page_idx": 2
514
+ },
515
+ {
516
+ "type": "image",
517
+ "img_path": "images/8f6ec70f61cf8fe3a8ad36a9aa5898bf8d51a12b676025ee92651ffb28fab3f2.jpg",
518
+ "image_caption": [
519
+ "Figure 2: State updates and final prediction output in a conversation between two participants $p_1$ and $p_2$ , where the updates of each participant at a timestamp is as given in figure 1"
520
+ ],
521
+ "image_footnote": [],
522
+ "bbox": [
523
+ 147,
524
+ 74,
525
+ 850,
526
+ 338
527
+ ],
528
+ "page_idx": 3
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "resentation. The current utterance $t_t$ , $a_t$ , or $v_t$ , changes the state of that speaker from $(s_t^t, s_t^a, s_t^v)$ to $(s_{t+1}^t, s_{t+1}^a, s_{t+1}^v)$ . To capture this change in context we use GRU cell $cGRU$ having output size $D_c$ , using $t_t$ , $a_t$ , or $v_t$ and $(s_t^t, s_t^a, s_t^v)$ as:",
533
+ "bbox": [
534
+ 114,
535
+ 417,
536
+ 489,
537
+ 498
538
+ ],
539
+ "page_idx": 3
540
+ },
541
+ {
542
+ "type": "equation",
543
+ "text": "\n$$\nc _ {t + 1} ^ {t} = c G R U \\left(c _ {t} ^ {t}, \\left(t _ {t} \\oplus s _ {t} ^ {t}\\right)\\right) \\tag {1}\n$$\n",
544
+ "text_format": "latex",
545
+ "bbox": [
546
+ 194,
547
+ 514,
548
+ 487,
549
+ 533
550
+ ],
551
+ "page_idx": 3
552
+ },
553
+ {
554
+ "type": "equation",
555
+ "text": "\n$$\nc _ {t + 1} ^ {a} = c G R U \\left(c _ {t} ^ {a}, \\left(a _ {t} \\oplus s _ {t} ^ {a}\\right)\\right) \\tag {2}\n$$\n",
556
+ "text_format": "latex",
557
+ "bbox": [
558
+ 191,
559
+ 561,
560
+ 487,
561
+ 579
562
+ ],
563
+ "page_idx": 3
564
+ },
565
+ {
566
+ "type": "equation",
567
+ "text": "\n$$\nc _ {t + 1} ^ {v} = c G R U \\left(c _ {t} ^ {v}, \\left(v _ {t} \\oplus s _ {t} ^ {v}\\right)\\right) \\tag {3}\n$$\n",
568
+ "text_format": "latex",
569
+ "bbox": [
570
+ 191,
571
+ 607,
572
+ 487,
573
+ 626
574
+ ],
575
+ "page_idx": 3
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "Where $D_{c}$ is the size of the context vectors $c_{t + 1}^{t}$ , $c_{t + 1}^{a}$ , and $c_{t + 1}^{v}$ . $D_{t}$ , $D_{a}$ , and $D_{v}$ are the sizes of utterance representations of text, audio, and video respectively. $\\oplus$ represents the concatenation operation, $D_{s}$ is the size of all the state vectors $s_{t + 1}^{t}$ , $s_{t + 1}^{a}$ , and $s_{t + 1}^{v}$ ; and all GRU weight and biases shapes are such that they produce the expected shape of outputs taking the given shape of inputs.",
580
+ "bbox": [
581
+ 114,
582
+ 636,
583
+ 489,
584
+ 765
585
+ ],
586
+ "page_idx": 3
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "3.2.2 State GRU (sGRU)",
591
+ "text_level": 1,
592
+ "bbox": [
593
+ 115,
594
+ 776,
595
+ 329,
596
+ 791
597
+ ],
598
+ "page_idx": 3
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "The network keeps track of the participants involved in a conversation by employing a $p * m$ number of (sGRU)'s, where $p$ is the number participants in the conversation and $m$ is the number of available modalities. The sGRU associated with a participant outputs fixed size vectors which serve as an encoding to represent the interlocutor state,",
603
+ "bbox": [
604
+ 114,
605
+ 797,
606
+ 490,
607
+ 909
608
+ ],
609
+ "page_idx": 3
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "and are directly used for both emotion and sentiment prediction, and updating the context vectors.",
614
+ "bbox": [
615
+ 509,
616
+ 417,
617
+ 884,
618
+ 449
619
+ ],
620
+ "page_idx": 3
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "All the state vectors are initialized to null at the first timestamp. For a timestamp $t$ , the state vector of participant $p$ and modality $m \\in \\{t, a, v\\}$ is updated using the input feature representation of that modality and simple attention over all the context vectors until that timestamp. The simple attention mechanism over all the context vectors is described by the following equations:",
625
+ "bbox": [
626
+ 509,
627
+ 450,
628
+ 884,
629
+ 577
630
+ ],
631
+ "page_idx": 3
632
+ },
633
+ {
634
+ "type": "equation",
635
+ "text": "\n$$\n\\alpha = \\operatorname {s o f t m a x} \\left(m _ {t} ^ {T} W _ {\\alpha} \\left[ c _ {1} ^ {m}, c _ {2} ^ {m}, \\dots , c _ {t} ^ {m} \\right]\\right) \\tag {4}\n$$\n",
636
+ "text_format": "latex",
637
+ "bbox": [
638
+ 537,
639
+ 607,
640
+ 882,
641
+ 626
642
+ ],
643
+ "page_idx": 3
644
+ },
645
+ {
646
+ "type": "equation",
647
+ "text": "\n$$\na t t _ {t} = \\alpha \\left[ c _ {1} ^ {m}, c _ {2} ^ {m}, \\dots , c _ {t} ^ {m} \\right] ^ {T} \\tag {5}\n$$\n",
648
+ "text_format": "latex",
649
+ "bbox": [
650
+ 598,
651
+ 655,
652
+ 882,
653
+ 674
654
+ ],
655
+ "page_idx": 3
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "Where $m_t^T \\in \\{t_t^T, a_t^T, v_t^T\\}$ , $W_\\alpha \\in \\mathbb{R}^{D_{t,a,v} \\times D_c}$ , $\\alpha^T \\in \\mathbb{R}^{(t-1)}$ , and $att_t \\in \\mathbb{R}^{D_c}$ . In equation 4, we calculate attention scores over all previous context representations of all previous utterances, highlighting the relative importance of all the previous context vectors to $m_t$ . A softmax layer is applied to amplify this relative importance, and finally equation 5 the final output of attention over context $att_t$ is calculated by pooling the previous context vectors with $\\alpha$ .",
660
+ "bbox": [
661
+ 509,
662
+ 681,
663
+ 885,
664
+ 841
665
+ ],
666
+ "page_idx": 3
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "We then employ $sGRU^{t,a,v}$ to update $s_t^{t,a,v}$ to $s_{t+1}^{t,a,v}$ on the basis of incoming utterance representations for each modality $m_t^T \\in \\{t_t^T, a_t^T, v_t^T\\}$ and the context representations $att_t^T, att_t^a$ , and $att_v^v$ using",
671
+ "bbox": [
672
+ 509,
673
+ 844,
674
+ 884,
675
+ 910
676
+ ],
677
+ "page_idx": 3
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "GRU cells $sGRU_{t}^{t}$ , $sGRU_{t}^{a}$ , and $sGRU_{t}^{v}$ , each of output size $D_{s}$ .",
682
+ "bbox": [
683
+ 115,
684
+ 74,
685
+ 489,
686
+ 105
687
+ ],
688
+ "page_idx": 4
689
+ },
690
+ {
691
+ "type": "equation",
692
+ "text": "\n$$\ns _ {t + 1} ^ {t} = s G R U \\left(s _ {t} ^ {t}, \\left(t _ {t} \\oplus a t t _ {t + 1} ^ {t}\\right)\\right) \\tag {6}\n$$\n",
693
+ "text_format": "latex",
694
+ "bbox": [
695
+ 178,
696
+ 124,
697
+ 487,
698
+ 143
699
+ ],
700
+ "page_idx": 4
701
+ },
702
+ {
703
+ "type": "equation",
704
+ "text": "\n$$\ns _ {t + 1} ^ {a} = s G R U \\left(s _ {t} ^ {a}, \\left(a _ {t} \\oplus a t t _ {t + 1} ^ {a}\\right)\\right) \\tag {7}\n$$\n",
705
+ "text_format": "latex",
706
+ "bbox": [
707
+ 174,
708
+ 170,
709
+ 487,
710
+ 187
711
+ ],
712
+ "page_idx": 4
713
+ },
714
+ {
715
+ "type": "equation",
716
+ "text": "\n$$\ns _ {t + 1} ^ {v} = s G R U \\left(s _ {t} ^ {v}, \\left(v _ {t} \\oplus a t t _ {t + 1} ^ {v}\\right)\\right) \\tag {8}\n$$\n",
717
+ "text_format": "latex",
718
+ "bbox": [
719
+ 174,
720
+ 215,
721
+ 487,
722
+ 233
723
+ ],
724
+ "page_idx": 4
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "Where $D_{s}$ is the size of all the state vectors $s_{t + 1}^{t}, s_{t + 1}^{a},$ and $s_{t + 1}^{v}.D_{t}, D_{a}, D_{v}$ are the sizes of utterance representations of text, audio, and video respectively. $\\oplus$ represents concatenation operation, and all GRU weights shapes are such that they produce the expected shape of outputs taking the given shape of inputs.",
729
+ "bbox": [
730
+ 115,
731
+ 242,
732
+ 489,
733
+ 354
734
+ ],
735
+ "page_idx": 4
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "The intended purpose of using this as the input to $sGRU^{t,a,v}$ is to model the dependency of the speaker state on the context of the conversation as understood by the utterances until that point, along with the utterance representation at that point. The output of the $sGRU$ for modality $m$ and times-tamp $t$ serves as an encoding of the speaker state as conveyed by modality $m$ , at time $t$ .",
740
+ "bbox": [
741
+ 115,
742
+ 356,
743
+ 490,
744
+ 483
745
+ ],
746
+ "page_idx": 4
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "3.2.3 Emotion GRU (eGRU)",
751
+ "text_level": 1,
752
+ "bbox": [
753
+ 115,
754
+ 495,
755
+ 356,
756
+ 510
757
+ ],
758
+ "page_idx": 4
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "The emotion GRU serves as the decoder for the encoding produced by the state GRU. The emotion GRU uses the previous timestamp $eGRU$ output, and the encoding provided by $sGRU$ to produce an emotion or sentiment representation which is further used by the pairwise attention mechanism to be able to produce the relevant output for prediction. At timestamp $(t + 1)$ the emotion vectors are updated as:",
763
+ "bbox": [
764
+ 114,
765
+ 516,
766
+ 489,
767
+ 659
768
+ ],
769
+ "page_idx": 4
770
+ },
771
+ {
772
+ "type": "equation",
773
+ "text": "\n$$\ne _ {t + 1} ^ {t} = e G R U \\left(e _ {t} ^ {t}, s _ {t + 1} ^ {t}\\right) \\tag {9}\n$$\n",
774
+ "text_format": "latex",
775
+ "bbox": [
776
+ 208,
777
+ 678,
778
+ 487,
779
+ 697
780
+ ],
781
+ "page_idx": 4
782
+ },
783
+ {
784
+ "type": "equation",
785
+ "text": "\n$$\ne _ {t + 1} ^ {a} = e G R U \\left(e _ {t} ^ {a}, s _ {t + 1} ^ {a}\\right) \\tag {10}\n$$\n",
786
+ "text_format": "latex",
787
+ "bbox": [
788
+ 208,
789
+ 724,
790
+ 487,
791
+ 741
792
+ ],
793
+ "page_idx": 4
794
+ },
795
+ {
796
+ "type": "equation",
797
+ "text": "\n$$\ne _ {t + 1} ^ {v} = e G R U \\left(e _ {t} ^ {v}, s _ {t + 1} ^ {v}\\right) \\tag {11}\n$$\n",
798
+ "text_format": "latex",
799
+ "bbox": [
800
+ 208,
801
+ 769,
802
+ 487,
803
+ 787
804
+ ],
805
+ "page_idx": 4
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "Where $D_{e}$ is the size of all the emotion vectors $e_{t + 1}^{t}, e_{t + 1}^{a}$ , and $e_{t + 1}^{v}.D_{t}, D_{a},$ and $D_{v}$ are the sizes of utterance representations of text, audio, and video respectively. $D_{e}$ is the size of the state vectors $s_{t + 1}^{t}, s_{t + 1}^{a}$ , and $s_{t + 1}^{v}$ ; and all GRU weights shapes are such that they produce the expected shape of outputs taking the given shape of inputs.",
810
+ "bbox": [
811
+ 115,
812
+ 796,
813
+ 489,
814
+ 909
815
+ ],
816
+ "page_idx": 4
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "The emotion GRU acts as a decoder to the encoding produced by the associated state GRU, producing a vector which can be used for both sentiment and emotion prediction.",
821
+ "bbox": [
822
+ 509,
823
+ 74,
824
+ 885,
825
+ 139
826
+ ],
827
+ "page_idx": 4
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "3.2.4 Pairwise Attention Mechanism",
832
+ "text_level": 1,
833
+ "bbox": [
834
+ 510,
835
+ 147,
836
+ 811,
837
+ 161
838
+ ],
839
+ "page_idx": 4
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "The emotion GRU for each timestamp will produce an $m$ number of vectors (where $m$ is the number of modalities available). Pairwise attention is then used over these $m$ vectors to produce the final prediction output. In particular pairwise attention is calculated over the following pairs in our case $(e^v, e^t), (e^t, e^a)$ , and $(e^a, e^v)$ . Pairwise attention for pair $(e^v, e^t)$ would be calculated as follows:",
844
+ "bbox": [
845
+ 509,
846
+ 166,
847
+ 885,
848
+ 294
849
+ ],
850
+ "page_idx": 4
851
+ },
852
+ {
853
+ "type": "image",
854
+ "img_path": "images/a8bf6f89254a51886bd7d32722236e03897cbf1eb8d20fcfff18178be7bf37ae.jpg",
855
+ "image_caption": [
856
+ "Figure 3: Pairwise attention mechanism used as the fusion mechanism followed by the final prediction layer"
857
+ ],
858
+ "image_footnote": [],
859
+ "bbox": [
860
+ 542,
861
+ 313,
862
+ 857,
863
+ 546
864
+ ],
865
+ "page_idx": 4
866
+ },
867
+ {
868
+ "type": "equation",
869
+ "text": "\n$$\nB _ {1} = e ^ {v}. \\left(e ^ {t}\\right) ^ {T}, B _ {2} = e ^ {t}. \\left(e ^ {v}\\right) ^ {T} \\tag {12}\n$$\n",
870
+ "text_format": "latex",
871
+ "bbox": [
872
+ 583,
873
+ 618,
874
+ 882,
875
+ 637
876
+ ],
877
+ "page_idx": 4
878
+ },
879
+ {
880
+ "type": "equation",
881
+ "text": "\n$$\nN _ {1} = \\operatorname {s o f t m a x} \\left(B _ {1}\\right), N _ {2} = \\operatorname {s o f t m a x} \\left(B _ {2}\\right) \\tag {13}\n$$\n",
882
+ "text_format": "latex",
883
+ "bbox": [
884
+ 521,
885
+ 670,
886
+ 882,
887
+ 687
888
+ ],
889
+ "page_idx": 4
890
+ },
891
+ {
892
+ "type": "equation",
893
+ "text": "\n$$\nO _ {1} = N _ {1}. e ^ {t}, O _ {2} = N _ {2}. e ^ {v} \\tag {14}\n$$\n",
894
+ "text_format": "latex",
895
+ "bbox": [
896
+ 600,
897
+ 712,
898
+ 882,
899
+ 728
900
+ ],
901
+ "page_idx": 4
902
+ },
903
+ {
904
+ "type": "equation",
905
+ "text": "\n$$\nA _ {1} = O _ {1} \\odot e ^ {v}, A _ {2} = O _ {2} \\odot e ^ {t} \\tag {15}\n$$\n",
906
+ "text_format": "latex",
907
+ "bbox": [
908
+ 584,
909
+ 750,
910
+ 882,
911
+ 766
912
+ ],
913
+ "page_idx": 4
914
+ },
915
+ {
916
+ "type": "equation",
917
+ "text": "\n$$\n\\operatorname {p a i r w i s e} \\left(e ^ {v}, e ^ {t}\\right) = A _ {1} \\oplus A _ {2} \\tag {16}\n$$\n",
918
+ "text_format": "latex",
919
+ "bbox": [
920
+ 586,
921
+ 789,
922
+ 882,
923
+ 806
924
+ ],
925
+ "page_idx": 4
926
+ },
927
+ {
928
+ "type": "text",
929
+ "text": "Where $B_{1}, B_{2} \\in \\mathbb{R}^{D_{e} \\times D_{e}}$ ; $N_{1}, N_{2} \\in \\mathbb{R}^{D_{e} \\times D_{e}}$ ; $A_{1}, A_{2} \\in \\mathbb{R}^{D_{e} \\times D_{e}}$ ; and pairwise $(e^{v}, e^{t}) \\in \\mathbb{R}^{D_{e} \\times 2D_{e}}$ ; $\\odot$ represents element-wise product; and $\\oplus$ represents concatenation.",
930
+ "bbox": [
931
+ 510,
932
+ 810,
933
+ 884,
934
+ 876
935
+ ],
936
+ "page_idx": 4
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "A complete analysis on the pairwise attention mechanism has been done by Ghosal et al. (2018),",
941
+ "bbox": [
942
+ 509,
943
+ 877,
944
+ 884,
945
+ 909
946
+ ],
947
+ "page_idx": 4
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "where the role of each one of the intermediate variables has been described. These equations (12, 13, 14, 15, 16) calculate ${}^{m}C_{2}$ pairwise fusion representations, which are further concatenated to make the final prediction as described below.",
952
+ "bbox": [
953
+ 114,
954
+ 74,
955
+ 492,
956
+ 156
957
+ ],
958
+ "page_idx": 5
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "3.2.5 Final Predictions",
963
+ "text_level": 1,
964
+ "bbox": [
965
+ 115,
966
+ 164,
967
+ 312,
968
+ 179
969
+ ],
970
+ "page_idx": 5
971
+ },
972
+ {
973
+ "type": "text",
974
+ "text": "The prediction layer varies based on whether a sentiment or emotion prediction is expected. For sentiment prediction first all three pairs of pairwise attention i.e. $pairwise(e^v, e^t)$ , $pairwise(e^a, e^t)$ , and $pairwise(e^v, e^a)$ at that timestamp are concatenated along with the emotion GRU outputs at that timestamp $(e_t^t, e_t^a)$ , and $e_t^v$ and the concatenated layer is passed through a fully connected layer followed by a softmax or tanh layer based on the nature of the expected prediction. For sentiment prediction between -1 and +1 at timestamp t the output layer would equate as follows:",
975
+ "bbox": [
976
+ 114,
977
+ 183,
978
+ 490,
979
+ 376
980
+ ],
981
+ "page_idx": 5
982
+ },
983
+ {
984
+ "type": "equation",
985
+ "text": "\n$$\np w = p w \\left(e ^ {v}, e ^ {t}\\right) \\oplus p w \\left(e ^ {a}, e ^ {t}\\right) \\oplus p w \\left(e ^ {v}, e ^ {a}\\right) \\tag {17}\n$$\n",
986
+ "text_format": "latex",
987
+ "bbox": [
988
+ 124,
989
+ 404,
990
+ 489,
991
+ 423
992
+ ],
993
+ "page_idx": 5
994
+ },
995
+ {
996
+ "type": "equation",
997
+ "text": "\n$$\nL _ {t} = p w \\oplus e _ {t} ^ {t} \\oplus e _ {t} ^ {a} \\oplus e _ {t} ^ {v} \\tag {18}\n$$\n",
998
+ "text_format": "latex",
999
+ "bbox": [
1000
+ 208,
1001
+ 451,
1002
+ 489,
1003
+ 469
1004
+ ],
1005
+ "page_idx": 5
1006
+ },
1007
+ {
1008
+ "type": "equation",
1009
+ "text": "\n$$\n\\operatorname {p r e d} _ {\\text {s e n t i m e n t} (t)} = \\tanh \\left(W _ {L} L _ {t}\\right) \\tag {19}\n$$\n",
1010
+ "text_format": "latex",
1011
+ "bbox": [
1012
+ 178,
1013
+ 492,
1014
+ 487,
1015
+ 510
1016
+ ],
1017
+ "page_idx": 5
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Where pairwise $(e^v, e^t)$ has been represented as $pw(e^v, e^t)$ ; and $W_L \\in \\mathbb{R}^{9D_e \\times 1}$ .",
1022
+ "bbox": [
1023
+ 114,
1024
+ 516,
1025
+ 487,
1026
+ 548
1027
+ ],
1028
+ "page_idx": 5
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "For emotion prediction we use a fully connected layer along with a final softmax layer to calculate 6 emotion class probabilities from $L_{t}$ .",
1033
+ "bbox": [
1034
+ 114,
1035
+ 549,
1036
+ 489,
1037
+ 596
1038
+ ],
1039
+ "page_idx": 5
1040
+ },
1041
+ {
1042
+ "type": "equation",
1043
+ "text": "\n$$\nl _ {t} = \\operatorname {R e L U} \\left(W _ {l} L _ {t} + b _ {l}\\right) \\tag {20}\n$$\n",
1044
+ "text_format": "latex",
1045
+ "bbox": [
1046
+ 210,
1047
+ 613,
1048
+ 487,
1049
+ 630
1050
+ ],
1051
+ "page_idx": 5
1052
+ },
1053
+ {
1054
+ "type": "equation",
1055
+ "text": "\n$$\nP _ {t} = \\operatorname {s o f t m a x} \\left(W _ {\\text {s m a x}} l _ {t} + b _ {\\text {s m a x}}\\right) \\tag {21}\n$$\n",
1056
+ "text_format": "latex",
1057
+ "bbox": [
1058
+ 154,
1059
+ 653,
1060
+ 487,
1061
+ 671
1062
+ ],
1063
+ "page_idx": 5
1064
+ },
1065
+ {
1066
+ "type": "equation",
1067
+ "text": "\n$$\n\\operatorname {p r e d} _ {\\text {e m o t i o n} (t)} = \\operatorname {a r g m a x} \\left(P _ {t}\\right) \\tag {22}\n$$\n",
1068
+ "text_format": "latex",
1069
+ "bbox": [
1070
+ 184,
1071
+ 695,
1072
+ 487,
1073
+ 712
1074
+ ],
1075
+ "page_idx": 5
1076
+ },
1077
+ {
1078
+ "type": "equation",
1079
+ "text": "\n$$\n\\begin{array}{c} \\text {W h e r e} W _ {l} \\in \\mathbb {R} ^ {D _ {l} \\times 9 D _ {e}}; b _ {l} = \\in \\mathbb {R} ^ {D _ {l}}; W _ {s m a x} \\in \\\\ \\mathbb {R} ^ {c \\times D _ {l}}; b _ {s m a x} \\in \\mathbb {R} ^ {c} \\text {a n d} P _ {t} \\in \\mathbb {R} ^ {c} \\end{array}\n$$\n",
1080
+ "text_format": "latex",
1081
+ "bbox": [
1082
+ 115,
1083
+ 719,
1084
+ 487,
1085
+ 752
1086
+ ],
1087
+ "page_idx": 5
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "3.2.6 Training",
1092
+ "text_level": 1,
1093
+ "bbox": [
1094
+ 115,
1095
+ 760,
1096
+ 245,
1097
+ 777
1098
+ ],
1099
+ "page_idx": 5
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "Fairly standard practices have been employed for the training of the model. Categorical cross-entropy has been used along with L2-regularization as the loss function during training for emotion prediction, to maximize likelihood over each of the classes.",
1104
+ "bbox": [
1105
+ 114,
1106
+ 780,
1107
+ 489,
1108
+ 860
1109
+ ],
1110
+ "page_idx": 5
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "Mean Square Error (MSE) along with L2 regularization has been employed as loss function during training for sentiment regression. The usage of a",
1115
+ "bbox": [
1116
+ 114,
1117
+ 860,
1118
+ 490,
1119
+ 910
1120
+ ],
1121
+ "page_idx": 5
1122
+ },
1123
+ {
1124
+ "type": "table",
1125
+ "img_path": "images/c72d52d61c956c854c4ab49fb53c326e9641644a955fdf755de2943d8756420a.jpg",
1126
+ "table_caption": [],
1127
+ "table_footnote": [],
1128
+ "table_body": "<table><tr><td>Metric</td><td>A2</td><td>F1</td></tr><tr><td colspan=\"3\">Text + Audio</td></tr><tr><td>BC-LSTM</td><td>79.30</td><td>-</td></tr><tr><td>MMMU-BA</td><td>80.58</td><td>-</td></tr><tr><td>DialogueRNN</td><td>78.81</td><td>79.12</td></tr><tr><td>Multilogue-net</td><td>80.12</td><td>78.84</td></tr><tr><td colspan=\"3\">Video + Audio</td></tr><tr><td>BC-LSTM</td><td>62.10</td><td>-</td></tr><tr><td>MMMU-BA</td><td>65.16</td><td>-</td></tr><tr><td>DialogueRNN</td><td>63.22</td><td>60.14</td></tr><tr><td>Multilogue-net</td><td>69.55</td><td>63.40</td></tr><tr><td colspan=\"3\">Text + Video</td></tr><tr><td>BC-LSTM</td><td>80.20</td><td>-</td></tr><tr><td>MMMU-BA</td><td>81.51</td><td>-</td></tr><tr><td>DialogueRNN</td><td>79.88</td><td>79.10</td></tr><tr><td>Multilogue-net</td><td>80.66</td><td>79.62</td></tr><tr><td colspan=\"3\">Text + Audio + Video</td></tr><tr><td>BC-LSTM</td><td>80.30</td><td>-</td></tr><tr><td>MMMU-BA</td><td>82.31</td><td>-</td></tr><tr><td>DialogueRNN</td><td>79.80</td><td>79.48</td></tr><tr><td>Multilogue-net</td><td>81.19</td><td>80.10</td></tr></table>",
1129
+ "bbox": [
1130
+ 542,
1131
+ 71,
1132
+ 855,
1133
+ 418
1134
+ ],
1135
+ "page_idx": 5
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "Table 1: Multilogue-Net performance on CMU-MOSI in comparison with the current and previous state-of-the-art on the dataset. A2 indicating accuracy with 2 classes, and F1 indicating F1 score.",
1140
+ "bbox": [
1141
+ 509,
1142
+ 426,
1143
+ 885,
1144
+ 485
1145
+ ],
1146
+ "page_idx": 5
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "saturating output layer and a loss function that does not undo the saturation, leads to the model to stop training when it makes extreme predictions (close to -1 or +1) due to very small gradients. Using initialization strategies that start at smaller model weights, mini-batch gradient descent-based Adam (Kingma and Ba, 2014) optimizer, and using L2 regularization is used to avoid this failure mode.",
1151
+ "bbox": [
1152
+ 509,
1153
+ 511,
1154
+ 885,
1155
+ 640
1156
+ ],
1157
+ "page_idx": 5
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "4 Experiments, Datasets, and Results",
1162
+ "text_level": 1,
1163
+ "bbox": [
1164
+ 510,
1165
+ 653,
1166
+ 848,
1167
+ 669
1168
+ ],
1169
+ "page_idx": 5
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "4.1 Datasets",
1174
+ "text_level": 1,
1175
+ "bbox": [
1176
+ 510,
1177
+ 680,
1178
+ 626,
1179
+ 694
1180
+ ],
1181
+ "page_idx": 5
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "We evaluate our model using two benchmark datasets - CMU Multi-modal Opinion-level Sentiment Intensity (CMU-MOSI) (Zadeh et al., 2016a) and the recently published CMU Multi-modal Opinion Sentiment and Emotion Intensity (CMU-MOSEI) dataset (Zadeh et al., 2018b).",
1186
+ "bbox": [
1187
+ 509,
1188
+ 701,
1189
+ 885,
1190
+ 797
1191
+ ],
1192
+ "page_idx": 5
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "4.1.1 CMU-MOSI",
1197
+ "text_level": 1,
1198
+ "bbox": [
1199
+ 510,
1200
+ 809,
1201
+ 672,
1202
+ 822
1203
+ ],
1204
+ "page_idx": 5
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "CMU-MOSI dataset consists of 93 videos spanning over 2199 utterances. Each utterance has a sentiment label associated with it. It has 52, 10 & 31 videos in training, validation & test set accounting for 1151, 296 & 752 utterances. CMU-MOSEI",
1209
+ "bbox": [
1210
+ 509,
1211
+ 828,
1212
+ 885,
1213
+ 909
1214
+ ],
1215
+ "page_idx": 5
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "has 3229 videos with 22676 utterances from more than 1000 online YouTube speakers. The training, validation & test set consist of 16216, 1835 & 4625 utterances, respectively. Each utterance in CMUMOSI dataset has been annotated as either positive or negative.",
1220
+ "bbox": [
1221
+ 114,
1222
+ 74,
1223
+ 492,
1224
+ 172
1225
+ ],
1226
+ "page_idx": 6
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "4.1.2 CMU-MOSEI",
1231
+ "text_level": 1,
1232
+ "bbox": [
1233
+ 115,
1234
+ 180,
1235
+ 292,
1236
+ 195
1237
+ ],
1238
+ "page_idx": 6
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "In CMU-MOSEI dataset labels are in a continuous range of -3 to +3 and are accompanied by an emotion label being one of six emotions. However, in this work we also project the instances of CMU-MOSEI in a two-class classification setup with values $\\geq 0$ signifies positive sentiments and values $< 0$ signify negative sentiments. We have called this A2 accuracy (accuracy with 2 classes). Along with this we have also shown results for continuous range prediction between -3 and +3, and emotion prediction with the 6 emotion labels for each utterance in CMU-MOSEI. We have used A2 as a metric to be consistent with the previous published works on CMU-MOSEI dataset (Ghosal et al., 2018; Zadeh et al., 2018b). CMU-MOSEI has further been used for other comprehensive experiments due to its large sizer and easier feature extraction",
1243
+ "bbox": [
1244
+ 114,
1245
+ 199,
1246
+ 492,
1247
+ 489
1248
+ ],
1249
+ "page_idx": 6
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "4.2 Uni-modal Feature Extraction",
1254
+ "text_level": 1,
1255
+ "bbox": [
1256
+ 115,
1257
+ 501,
1258
+ 401,
1259
+ 516
1260
+ ],
1261
+ "page_idx": 6
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "4.2.1 CMU-MOSEI",
1266
+ "text_level": 1,
1267
+ "bbox": [
1268
+ 115,
1269
+ 521,
1270
+ 289,
1271
+ 537
1272
+ ],
1273
+ "page_idx": 6
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "We use the CMU-Multi-modal Data SDK (Zadeh et al., 2018b) for feature extraction. For MOSEI dataset, sentiment label-level features were provided where text features used were GloVe embeddings (Pennington et al., 2014), visual features extracted by Facet (Stckli et al., 2017) & acoustic features by OpenSMILE (Eyben et al., 2010). Thereafter, we compute the average of sentiment label-level features in an utterance to obtain the utterance-level features. For each sentiment label-level feature, the dimension of the feature vector is set to 300 (text), 35 (visual) & 384 (acoustic).",
1278
+ "bbox": [
1279
+ 114,
1280
+ 542,
1281
+ 492,
1282
+ 737
1283
+ ],
1284
+ "page_idx": 6
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "4.2.2 CMU-MOSI",
1289
+ "text_level": 1,
1290
+ "bbox": [
1291
+ 115,
1292
+ 745,
1293
+ 275,
1294
+ 760
1295
+ ],
1296
+ "page_idx": 6
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "In contrast, for MOSI dataset we use utterance level features provided in Poria et al. (2017). These utterance-level features represent the outputs of a convolutional neural network (Karpathy et al., 2014), 3D convolutional neural network (Ji et al., 2010) & openSMILE (Eyben et al., 2010) for text, visual & acoustic modalities, respectively. Dimensions of utterance-level features are 100, 100 & 73 for text, visual & acoustic, respectively.",
1301
+ "bbox": [
1302
+ 114,
1303
+ 765,
1304
+ 492,
1305
+ 910
1306
+ ],
1307
+ "page_idx": 6
1308
+ },
1309
+ {
1310
+ "type": "table",
1311
+ "img_path": "images/bffba207437805566f071975444fffa9e169d9c2afb3c25da1baf10872eb115e.jpg",
1312
+ "table_caption": [],
1313
+ "table_footnote": [],
1314
+ "table_body": "<table><tr><td>Metric</td><td>A2</td><td>F1</td><td>MAE</td><td>r</td></tr><tr><td colspan=\"5\">T + A</td></tr><tr><td>MMMU-BA</td><td>79.74</td><td>-</td><td>-</td><td>-</td></tr><tr><td>DialogueRNN</td><td>79.80</td><td>78.32</td><td>-</td><td>-</td></tr><tr><td>Multilogue-net</td><td>80.18</td><td>79.88</td><td>-</td><td>-</td></tr><tr><td colspan=\"5\">V + A</td></tr><tr><td>MMMU-BA</td><td>76.66</td><td>-</td><td>-</td><td>-</td></tr><tr><td>DialogueRNN</td><td>73.90</td><td>73.92</td><td>-</td><td>-</td></tr><tr><td>Multilogue-net</td><td>75.16</td><td>74.04</td><td>-</td><td>-</td></tr><tr><td colspan=\"5\">V + T</td></tr><tr><td>MMMU-BA</td><td>79.40</td><td>-</td><td>-</td><td>-</td></tr><tr><td>DialogueRNN</td><td>78.90</td><td>78.12</td><td>-</td><td>-</td></tr><tr><td>Multilogue-net</td><td>80.06</td><td>79.84</td><td>-</td><td>-</td></tr><tr><td colspan=\"5\">T + A + V</td></tr><tr><td>Graph-MFN</td><td>76.90</td><td>77.00</td><td>0.71</td><td>0.54</td></tr><tr><td>MMMU-BA</td><td>79.80</td><td>-</td><td>-</td><td>-</td></tr><tr><td>DialogueRNN</td><td>79.98</td><td>79.82</td><td>0.69</td><td>0.42</td></tr><tr><td>Multilogue-net</td><td>82.10</td><td>80.01</td><td>0.59</td><td>0.50</td></tr></table>",
1315
+ "bbox": [
1316
+ 512,
1317
+ 71,
1318
+ 885,
1319
+ 369
1320
+ ],
1321
+ "page_idx": 6
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "Table 2: Multilogue-Net performance on CMU-MOSEI Sentiment Labels compared to previous state-of-the-art models on regression and accuracy Metrics. All metrics apart from MAE represents higher values for better results, MAE represents lower values for better results.",
1326
+ "bbox": [
1327
+ 509,
1328
+ 378,
1329
+ 887,
1330
+ 464
1331
+ ],
1332
+ "page_idx": 6
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "4.3 Experiments",
1337
+ "text_level": 1,
1338
+ "bbox": [
1339
+ 510,
1340
+ 494,
1341
+ 658,
1342
+ 510
1343
+ ],
1344
+ "page_idx": 6
1345
+ },
1346
+ {
1347
+ "type": "text",
1348
+ "text": "We evaluate our proposed approach on CMU-MOSI (test-set) on accuracy and F1 score, and CMU-MOSEI (dev-set) on accuracy, F1 score, mean absolute error $(MAE)$ , Pearson score $(r)$ , and accuracy's on the emotion labels. Due to the lack of speaker information in CMU-MOSI we were not able to use the CMU-Multi-modal Data SDK for sentiment label extraction, to be able to evaluate our approach on CMU-MOSI on mean absolute error and Pearson score.",
1349
+ "bbox": [
1350
+ 509,
1351
+ 519,
1352
+ 885,
1353
+ 678
1354
+ ],
1355
+ "page_idx": 6
1356
+ },
1357
+ {
1358
+ "type": "text",
1359
+ "text": "Results have also been reported for usage of two of the three available modalities. Uni-modal performance has not been reported as the focus of the paper is the effective usage of multi-modal data. In a uni-modal setting the model would not be using the fusion mechanism and the output would be equivalent to having a few dense layers after the emotion GRU to directly output the final prediction. F1 scores have not been mentioned by most previous models being used for comparison, but have been reported for Multilogue-Net for additional comparison to any future models using CMU-MOSI dataset.",
1360
+ "bbox": [
1361
+ 509,
1362
+ 682,
1363
+ 885,
1364
+ 890
1365
+ ],
1366
+ "page_idx": 6
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "text": "Table 1 shows the performance of Multilogue-",
1371
+ "bbox": [
1372
+ 529,
1373
+ 892,
1374
+ 885,
1375
+ 910
1376
+ ],
1377
+ "page_idx": 6
1378
+ },
1379
+ {
1380
+ "type": "table",
1381
+ "img_path": "images/d13ce9bb85c5b155522f0390ee986ed828ee1c6801212d27137497b9f139c749.jpg",
1382
+ "table_caption": [],
1383
+ "table_footnote": [],
1384
+ "table_body": "<table><tr><td colspan=\"13\">MOSEI Emotions (Text + Video + Audio)</td></tr><tr><td>Emotion</td><td colspan=\"2\">Anger</td><td colspan=\"2\">Disgust</td><td colspan=\"2\">Fear</td><td colspan=\"2\">Happy</td><td colspan=\"2\">Sad</td><td colspan=\"2\">Surprise</td></tr><tr><td>Metric</td><td>WA</td><td>F1</td><td>WA</td><td>F1</td><td>WA</td><td>F1</td><td>WA</td><td>F1</td><td>WA</td><td>F1</td><td>WA</td><td>F1</td></tr><tr><td>Graph-MFN</td><td>62.6</td><td>72.8</td><td>69.1</td><td>76.6</td><td>62.0</td><td>89.9</td><td>66.3</td><td>66.3</td><td>60.4</td><td>66.9</td><td>53.7</td><td>85.5</td></tr><tr><td>Multilogue-Net</td><td>83.1</td><td>80.9</td><td>90.3</td><td>87.3</td><td>89.7</td><td>87.0</td><td>70.0</td><td>68.4</td><td>76.1</td><td>74.5</td><td>87.4</td><td>84.0</td></tr></table>",
1385
+ "bbox": [
1386
+ 119,
1387
+ 72,
1388
+ 884,
1389
+ 158
1390
+ ],
1391
+ "page_idx": 7
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "Table 3: Multilogue-Net performance on MOSEI Emotion Labels compared with that of Graph-MFN on weighted accuracy and F1 score. MOSEI Emotion label results were presented by only one model, and comprehensive results have not been published for the same.",
1396
+ "bbox": [
1397
+ 114,
1398
+ 167,
1399
+ 884,
1400
+ 210
1401
+ ],
1402
+ "page_idx": 7
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "Net on CMU-MOSI dataset, comparing to the current state of the art (Ghosal et al., 2018), previous state-of-the-art (Poria et al., 2017), and DialogueRNN (Majumder et al., 2018) (Multi-modal performance of DialogueRNN has not been reported by Majumder et al. (2018), and we have run these experiments additionally for a better comparative study, where concatenating the input representations has been used as a fusion mechanism). Our model consistently outperforms the previous state-of-the-art but performs better only on one of the subsets of the modalities when compared to the current state-of-the-art.",
1407
+ "bbox": [
1408
+ 114,
1409
+ 235,
1410
+ 492,
1411
+ 445
1412
+ ],
1413
+ "page_idx": 7
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "text": "In comparison to MMMU-BA our model also lacks in Multi-modal performance. We theorize that the model performance is lacking because of the low number of training examples (CMU-MOSI consists only of 93 conversations out of which 62 were used for training), in contrast to our model which has a high capacity (Relative to models being compared with). Since Multilogue-Net learns a lot of intermediate representations in order to make a prediction, it would need a larger dataset with more variability to be able to learn meaningful representations. The proposition that performance lacks due to a lack of training examples is backed by the results on CMU-MOSEI (demonstrated in a comparative setting in Table 2 and 3) where the model consistently outperforms the current state-of-the-art on most metrics.",
1418
+ "bbox": [
1419
+ 114,
1420
+ 450,
1421
+ 490,
1422
+ 722
1423
+ ],
1424
+ "page_idx": 7
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "On CMU-MOSEI, our model seems to perform very consistently on both sentiment and emotion labels. The model outperforms the current state of the art on all but one metric (both classification and accuracy) on sentiment labels in the tri-modal setting. Multilogue-Net also outperforms the current state of the art on the emotion labels by a considerable margin (This is also attributed to the fact that not a lot of models have presented results on these labels).",
1429
+ "bbox": [
1430
+ 114,
1431
+ 727,
1432
+ 492,
1433
+ 888
1434
+ ],
1435
+ "page_idx": 7
1436
+ },
1437
+ {
1438
+ "type": "text",
1439
+ "text": "Similar observations are made in both datasets,",
1440
+ "bbox": [
1441
+ 132,
1442
+ 892,
1443
+ 489,
1444
+ 909
1445
+ ],
1446
+ "page_idx": 7
1447
+ },
1448
+ {
1449
+ "type": "text",
1450
+ "text": "where the tri-modal metrics show the best performance, and audio + video show the worst relative performance (suggesting the importance of text in a multi-modal setting). Textual information seems to be the guiding factor for multi-modal performance, with video and audio features simply acting as a push to the uni-modal performance on text.",
1451
+ "bbox": [
1452
+ 509,
1453
+ 235,
1454
+ 885,
1455
+ 348
1456
+ ],
1457
+ "page_idx": 7
1458
+ },
1459
+ {
1460
+ "type": "text",
1461
+ "text": "We theorize that the performance of Multilogue-Net is majorly attributed to its increased capacity as compared to previous models. Effective usage of this increased capacity, using representations inspired from a basic understanding of conversation, along with a larger dataset for training have been key in achieving the improved results.",
1462
+ "bbox": [
1463
+ 509,
1464
+ 349,
1465
+ 885,
1466
+ 462
1467
+ ],
1468
+ "page_idx": 7
1469
+ },
1470
+ {
1471
+ "type": "text",
1472
+ "text": "5 Ablation Studies and Analysis",
1473
+ "text_level": 1,
1474
+ "bbox": [
1475
+ 510,
1476
+ 476,
1477
+ 806,
1478
+ 493
1479
+ ],
1480
+ "page_idx": 7
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "Until now, some architectural considerations, such as the use of $eGRU$ and the fusion mechanism, have been briefly explained but not empirically justified. This section aims to get empirical evidence regarding the effectiveness of these modules. Since our model completely hinges around the usage of the context and state GRU's, our ablation studies and analysis have focused on the fusion mechanism and emotion GRU ( $eGRU$ ) only.",
1485
+ "bbox": [
1486
+ 509,
1487
+ 502,
1488
+ 885,
1489
+ 646
1490
+ ],
1491
+ "page_idx": 7
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "text": "5.1 Fusion Mechanism",
1496
+ "text_level": 1,
1497
+ "bbox": [
1498
+ 510,
1499
+ 661,
1500
+ 705,
1501
+ 676
1502
+ ],
1503
+ "page_idx": 7
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "The effectiveness of the fusion mechanism can be very easily examined by observing the results of the model on both tasks - Sentiment Regression and Emotion Recognition, with and without the fusion mechanism. Table 4 shows these results on CMU-MOSEI modality subsets.",
1508
+ "bbox": [
1509
+ 509,
1510
+ 683,
1511
+ 885,
1512
+ 778
1513
+ ],
1514
+ "page_idx": 7
1515
+ },
1516
+ {
1517
+ "type": "text",
1518
+ "text": "The bi-modal results in table 4 involve evaluating the pairwise attention module only once (Since there is only one pair available), directly followed by the prediction layer. The tri-modal case on the other hand involves evaluating the pairwise attention module thrice (Once for each pair). In general, the number of times this module will have to be evaluated for $m$ modalities is $^m C_2$ , which raises",
1519
+ "bbox": [
1520
+ 509,
1521
+ 780,
1522
+ 885,
1523
+ 909
1524
+ ],
1525
+ "page_idx": 7
1526
+ },
1527
+ {
1528
+ "type": "table",
1529
+ "img_path": "images/142328d1eaa3c5b14453fe739332440f787cb3609c0805b17c3445195d5ae641.jpg",
1530
+ "table_caption": [],
1531
+ "table_footnote": [],
1532
+ "table_body": "<table><tr><td>Fusion Mechanism</td><td>A2</td><td>MAE</td></tr><tr><td colspan=\"3\">Text + Audio</td></tr><tr><td>without</td><td>75.78</td><td>-</td></tr><tr><td>with</td><td>80.18</td><td>-</td></tr><tr><td colspan=\"3\">Video + Audio</td></tr><tr><td>without</td><td>75.66</td><td>-</td></tr><tr><td>with</td><td>75.16</td><td>-</td></tr><tr><td colspan=\"3\">Text + Video</td></tr><tr><td>without</td><td>76.80</td><td>-</td></tr><tr><td>with</td><td>80.06</td><td>-</td></tr><tr><td colspan=\"3\">Text + Audio + Video</td></tr><tr><td>without</td><td>79.80</td><td>0.66</td></tr><tr><td>with</td><td>82.10</td><td>0.59</td></tr></table>",
1533
+ "bbox": [
1534
+ 144,
1535
+ 71,
1536
+ 460,
1537
+ 288
1538
+ ],
1539
+ "page_idx": 8
1540
+ },
1541
+ {
1542
+ "type": "text",
1543
+ "text": "a fair concern regarding the trade-off between the additional computational cost and performance.",
1544
+ "bbox": [
1545
+ 114,
1546
+ 384,
1547
+ 487,
1548
+ 414
1549
+ ],
1550
+ "page_idx": 8
1551
+ },
1552
+ {
1553
+ "type": "text",
1554
+ "text": "We empirically observe that the additional computational cost can be considered negligible in context of the increased performance, largely attributing to the non-parametric nature of the fusion mechanism and the relatively small number of additional parameters in the prediction layer ( $6D_{e}$ for the sentiment regression; $36D_{e}$ for emotion recognition).",
1555
+ "bbox": [
1556
+ 114,
1557
+ 417,
1558
+ 489,
1559
+ 529
1560
+ ],
1561
+ "page_idx": 8
1562
+ },
1563
+ {
1564
+ "type": "text",
1565
+ "text": "The fusion mechanism seems to clearly be beneficial in all of the reported cases apart from video + audio, implying that the fusion mechanism is useful only in the cases the text representation is used. This further strengthens our claim that the text representation guides tri-modal performance.",
1566
+ "bbox": [
1567
+ 112,
1568
+ 531,
1569
+ 489,
1570
+ 627
1571
+ ],
1572
+ "page_idx": 8
1573
+ },
1574
+ {
1575
+ "type": "text",
1576
+ "text": "5.2 Emotion GRU (eGRU)",
1577
+ "text_level": 1,
1578
+ "bbox": [
1579
+ 115,
1580
+ 643,
1581
+ 344,
1582
+ 659
1583
+ ],
1584
+ "page_idx": 8
1585
+ },
1586
+ {
1587
+ "type": "text",
1588
+ "text": "Unlike as done with the fusion mechanism, the effectiveness of the $eGRU$ cannot be examined by evaluating metrics with and without it. Removing the Emotion GRU would clearly be detrimental to the results, and would not convey the intention of having it.",
1589
+ "bbox": [
1590
+ 114,
1591
+ 665,
1592
+ 489,
1593
+ 763
1594
+ ],
1595
+ "page_idx": 8
1596
+ },
1597
+ {
1598
+ "type": "text",
1599
+ "text": "The primary intention of having the $eGRU$ can be considered to be maintaining consistency between tasks. To better understand what this means table 5 quantitatively demonstrates this effect. The model was trained separately for Emotion Detection and Sentiment Regression tasks. After both the models were trained satisfactorily, a particular sample from the test set (test sample 6) was inferred on. We then retrieved the intermediate text repre",
1600
+ "bbox": [
1601
+ 114,
1602
+ 765,
1603
+ 490,
1604
+ 910
1605
+ ],
1606
+ "page_idx": 8
1607
+ },
1608
+ {
1609
+ "type": "table",
1610
+ "img_path": "images/3e88cd50e3b94836a9e016c6be7e3f2a08c9328c68f1990d22b3fbe2693e4cb7.jpg",
1611
+ "table_caption": [
1612
+ "Table 4: Multilogue-Net performance on CMU-MOSEI with and without the fusion mechanism - for 'without' fusion we have concatenated all the representations and directly passed them to the prediction layer."
1613
+ ],
1614
+ "table_footnote": [],
1615
+ "table_body": "<table><tr><td>Representation</td><td>Euclidean Distance</td></tr><tr><td colspan=\"2\">Sample 6 with t = 4</td></tr><tr><td>s4t</td><td>4.6 units</td></tr><tr><td>c4t</td><td>6.1 units</td></tr><tr><td>e4t</td><td>26.4 units</td></tr></table>",
1616
+ "bbox": [
1617
+ 521,
1618
+ 71,
1619
+ 873,
1620
+ 156
1621
+ ],
1622
+ "page_idx": 8
1623
+ },
1624
+ {
1625
+ "type": "text",
1626
+ "text": "Table 5: Euclidean Distance between the same representations for Sentiment Regression as compared to Emotion Detection. (Distances have been converted to units for convenience and easier comparison)",
1627
+ "bbox": [
1628
+ 509,
1629
+ 167,
1630
+ 885,
1631
+ 225
1632
+ ],
1633
+ "page_idx": 8
1634
+ },
1635
+ {
1636
+ "type": "text",
1637
+ "text": "sentations $(e_4^t, c_4^t$ , and $s_4^t$ ; superscript $t$ indicating text modality) at a particular timestamp $(t = 4)$ for both models on that sample. The Euclidean Distance between these two sets of representations (one for each task) was evaluated and have been shown in table 5, where we can clearly observe that the euclidean distance between the emotion representations is much larger as compared to the state and context representations.",
1638
+ "bbox": [
1639
+ 509,
1640
+ 250,
1641
+ 884,
1642
+ 395
1643
+ ],
1644
+ "page_idx": 8
1645
+ },
1646
+ {
1647
+ "type": "text",
1648
+ "text": "This shows that for both tasks, interlocutor state and context representations are relatively similar to each other, whereas the emotion state representation is more varied and task dependant. This not only allows us to use the same cGRU and sGRU weights across tasks, but would also allow us to train for multiple tasks in parallel using a different eGRU for each task - giving us consistent and accurate predictions across multiple tasks. Analysis of such a network, and whether training for multiple tasks in parallel aids one another, has not been covered in this paper and is left to our future work.",
1649
+ "bbox": [
1650
+ 509,
1651
+ 397,
1652
+ 885,
1653
+ 590
1654
+ ],
1655
+ "page_idx": 8
1656
+ },
1657
+ {
1658
+ "type": "text",
1659
+ "text": "6 Conclusion",
1660
+ "text_level": 1,
1661
+ "bbox": [
1662
+ 510,
1663
+ 606,
1664
+ 643,
1665
+ 621
1666
+ ],
1667
+ "page_idx": 8
1668
+ },
1669
+ {
1670
+ "type": "text",
1671
+ "text": "In this paper, we have presented an RNN architecture for multi-modal sentiment analysis and emotion detection in conversation. In contrast to the current state-of-the-art models, our model focuses on effectively capturing the context of a conversation and treats each modality independently, taking into account the information a particular modality is capable of holding. Our model consistently performs well on benchmark datasets such as CMU-MOSI and CMU-MOSEI in any multi-modal setting.",
1672
+ "bbox": [
1673
+ 509,
1674
+ 634,
1675
+ 885,
1676
+ 795
1677
+ ],
1678
+ "page_idx": 8
1679
+ },
1680
+ {
1681
+ "type": "text",
1682
+ "text": "The model can be further extended to have better feature extractors, and increase both the number of modalities and the number of participants in the conversation. Due to the lack of availability of datasets consisting of these extensions with emotion or sentiment labels, we have left this to our future work.",
1683
+ "bbox": [
1684
+ 509,
1685
+ 797,
1686
+ 885,
1687
+ 908
1688
+ ],
1689
+ "page_idx": 8
1690
+ },
1691
+ {
1692
+ "type": "text",
1693
+ "text": "References",
1694
+ "text_level": 1,
1695
+ "bbox": [
1696
+ 117,
1697
+ 74,
1698
+ 215,
1699
+ 89
1700
+ ],
1701
+ "page_idx": 9
1702
+ },
1703
+ {
1704
+ "type": "list",
1705
+ "sub_type": "ref_text",
1706
+ "list_items": [
1707
+ "Minghai Chen, Sen Wang, Paul Pu Liang, Tadas Baltruaiitis, Amir Zadeh, and Louis-Philippe Morency. 2017. Multimodal sentiment analysis with word-level fusion and reinforcement learning. In Proceedings of the 19th ACM International Conference on Multimodal Interaction, pages 163-171.",
1708
+ "Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Y. Bengio. 2014. Empirical evaluation of gated recurrent neural networks on sequence modeling.",
1709
+ "Dragos Datcu and Lon Rothkrantz. 2012. Semantic audiovisual data fusion for automatic emotion recognition.",
1710
+ "P. Ekman, Edmund Rolls, David Perrett, and H. Ellis. 1992. Facial expressions of emotion: An old controversy and new findings: Discussion. Royal Society of London Philosophical Transactions Series B, 335:69-.",
1711
+ "Florian Eyben, Martin Wllmer, and Bjrn Schuller. 2010. opensmile - the munich versatile and fast opensource audio feature extractor. pages 1459-1462.",
1712
+ "Deepanway Ghosal, Md Shad Akhtar, Dushyant Chauhan, Soujanya Poria, and Pushpak Bhattacharyya Asif Ekbal. 2018. Contextual inter-modal attention for multi-modal sentiment analysis. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 3454-3466.",
1713
+ "Devamanyu Hazarika, Soujanya Poria, Amir Zadeh, Erik Cambria, Louis-Philippe Morency, and Roger Zimmermann. 2018. Conversational memory network for emotion recognition in dyadic dialogue videos. volume 2018, pages 2122-2132.",
1714
+ "Shuiwang Ji, Wei Xu, Ming Yang, and Kai Yu. 2010. 3d convolutional neural networks for human action recognition. volume 35, pages 495-502.",
1715
+ "Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li Fei-Fei. 2014. Large-scale video classification with convolutional neural networks. pages 1725-1732.",
1716
+ "Diederik Kingma and Jimmy Ba. 2014. Adam: A method for stochastic optimization. International Conference on Learning Representations.",
1717
+ "Navonil Majumder, Soujanya Poria, Devamanyu Hazarika, Rada Mihalcea, Alexander Gelbukh, and Erik Cambria. 2018. Dialoguernn: An attentive rn for emotion detection in conversations.",
1718
+ "Jeffrey Pennington, Richard Socher, and Christoper Manning. 2014. Glove: Global vectors for word representation. volume 14, pages 1532-1543.",
1719
+ "Rosalind Picard. 2010. Affective computing: From laughter to ieee. IEEE Transactions on Affective Computing, 1:11-17."
1720
+ ],
1721
+ "bbox": [
1722
+ 117,
1723
+ 97,
1724
+ 490,
1725
+ 908
1726
+ ],
1727
+ "page_idx": 9
1728
+ },
1729
+ {
1730
+ "type": "list",
1731
+ "sub_type": "ref_text",
1732
+ "list_items": [
1733
+ "Soujanya Poria, Erik Cambria, Devamanyu Hazarika, Navonil Majumder, Amir Zadeh, and Louis-Philippe Morency. 2017. Context-dependent sentiment analysis in user-generated videos. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 873-883.",
1734
+ "Soujanya Poria, Iti Chaturvedi, Erik Cambria, and Amir Hussain. 2016. Convolutional mkl based multimodal emotion recognition and sentiment analysis. In IEEE 16th International Conference on Data Mining (ICDM), pages 439-448.",
1735
+ "Soujanya Poria, Navonil Majumder, Rada Mihalcea, and Eduard Hovy. 2019. Emotion recognition in conversation: Research challenges, datasets, and recent advances. arXiv:1905.02947.",
1736
+ "Sabrina Stckli, Michael Schulte-Mecklenbeck, Stefan Borer, and Andrea Samson. 2017. Facial expression analysis with affdex and facet: A validation study. Behavior Research Methods, 50.",
1737
+ "Amir Zadeh, Minghai Chen, Soujanya Poria, Erik Cambria, and Louis-Philippe Morency. 2017. Tensor fusion network for multimodal sentiment analysis. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 1103-1114.",
1738
+ "Amir Zadeh, Paul Liang, Navonil Mazumder, Soujanya Poria, Erik Cambria, and Louis-Philippe Morency. 2018a. Memory fusion network for multi-view sequential learning.",
1739
+ "Amir Zadeh, Paul Liang, Soujanya Poria, Erik Cambria, and Louis-Philippe Morency. 2018b. Multi-modal language analysis in the wild: Cmu-mosei dataset and interpretable dynamic fusion graph. pages 2236-2246.",
1740
+ "Amir Zadeh, Paul Liang, Soujanya Poria, Prateek Vij, Erik Cambria, and Louis-Philippe Morency. 2018c. Multi-attention recurrent network for human communication comprehension. Proceedings of the 2018 AAAI Conference on Artificial Intelligence, 2018.",
1741
+ "Amir Zadeh, Rowan Zellers, Eli Pincus, and Louis-Philippe Morency. 2016a. Mosi: Multimodal corpus of sentiment intensity and subjectivity analysis in online opinion videos.",
1742
+ "Amir Zadeh, Rowan Zellers, Eli Pincus, and Louis-Philippe Morency. 2016b. Multimodal sentiment intensity analysis in videos: Facial gestures and verbal messages. Intelligent Systems, IEEE, pages 82-88."
1743
+ ],
1744
+ "bbox": [
1745
+ 512,
1746
+ 76,
1747
+ 884,
1748
+ 797
1749
+ ],
1750
+ "page_idx": 9
1751
+ }
1752
+ ]